commonMain.terra.vesting.v1beta1.vesting.converter.kt Maven / Gradle / Ivy
// Transform from terra/vesting/v1beta1/vesting.proto
@file:GeneratorVersion(version = "0.5.2")
package terra.vesting.v1beta1
import google.protobuf.Any
import java.lang.IllegalStateException
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
import kr.jadekim.protobuf.converter.parseProtobuf
public expect object LazyGradedVestingAccountConverter : ProtobufConverter
public fun LazyGradedVestingAccount.toAny(): Any = Any(LazyGradedVestingAccount.TYPE_URL,
with(LazyGradedVestingAccountConverter) { toByteArray() })
public fun Any.parse(converter: ProtobufConverter =
LazyGradedVestingAccountConverter): LazyGradedVestingAccount {
if (typeUrl != LazyGradedVestingAccount.TYPE_URL) throw
IllegalStateException("Please check the type_url")
return value.parseProtobuf(converter)
}
public val LazyGradedVestingAccount.Companion.converter: LazyGradedVestingAccountConverter
get() = LazyGradedVestingAccountConverter
public expect object ScheduleConverter : ProtobufConverter
public fun Schedule.toAny(): Any = Any(Schedule.TYPE_URL, with(ScheduleConverter) { toByteArray() })
public fun Any.parse(converter: ProtobufConverter = ScheduleConverter): Schedule {
if (typeUrl != Schedule.TYPE_URL) throw IllegalStateException("Please check the type_url")
return value.parseProtobuf(converter)
}
public val Schedule.Companion.converter: ScheduleConverter
get() = ScheduleConverter
public expect object VestingScheduleConverter : ProtobufConverter
public fun VestingSchedule.toAny(): Any = Any(VestingSchedule.TYPE_URL,
with(VestingScheduleConverter) { toByteArray() })
public fun Any.parse(converter: ProtobufConverter = VestingScheduleConverter):
VestingSchedule {
if (typeUrl != VestingSchedule.TYPE_URL) throw IllegalStateException("Please check the type_url")
return value.parseProtobuf(converter)
}
public val VestingSchedule.Companion.converter: VestingScheduleConverter
get() = VestingScheduleConverter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy