jvmMain.terra.oracle.v1beta1.tx.converter.jvm.kt Maven / Gradle / Ivy
// Transform from terra/oracle/v1beta1/tx.proto
@file:GeneratorVersion(version = "0.5.2")
package terra.oracle.v1beta1
import com.google.protobuf.Descriptors
import com.google.protobuf.Parser
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.mapper.ProtobufTypeMapper
public open class MsgAggregateExchangeRatePrevoteJvmConverter :
ProtobufTypeMapper {
override val descriptor: Descriptors.Descriptor =
Tx.MsgAggregateExchangeRatePrevote.getDescriptor()
override val parser: Parser =
Tx.MsgAggregateExchangeRatePrevote.parser()
override val default: Tx.MsgAggregateExchangeRatePrevote =
Tx.MsgAggregateExchangeRatePrevote.getDefaultInstance()
override fun convert(obj: Tx.MsgAggregateExchangeRatePrevote): MsgAggregateExchangeRatePrevote =
MsgAggregateExchangeRatePrevote(
hash = obj.getHash(),
feeder = obj.getFeeder(),
validator = obj.getValidator(),
)
override fun convert(obj: MsgAggregateExchangeRatePrevote): Tx.MsgAggregateExchangeRatePrevote {
val builder = Tx.MsgAggregateExchangeRatePrevote.newBuilder()
builder.setHash(obj.hash)
builder.setFeeder(obj.feeder)
builder.setValidator(obj.validator)
return builder.build()
}
}
public open class MsgAggregateExchangeRatePrevoteResponseJvmConverter :
ProtobufTypeMapper
{
override val descriptor: Descriptors.Descriptor =
Tx.MsgAggregateExchangeRatePrevoteResponse.getDescriptor()
override val parser: Parser =
Tx.MsgAggregateExchangeRatePrevoteResponse.parser()
override val default: Tx.MsgAggregateExchangeRatePrevoteResponse =
Tx.MsgAggregateExchangeRatePrevoteResponse.getDefaultInstance()
override fun convert(obj: Tx.MsgAggregateExchangeRatePrevoteResponse):
MsgAggregateExchangeRatePrevoteResponse = MsgAggregateExchangeRatePrevoteResponse(
)
override fun convert(obj: MsgAggregateExchangeRatePrevoteResponse):
Tx.MsgAggregateExchangeRatePrevoteResponse {
val builder = Tx.MsgAggregateExchangeRatePrevoteResponse.newBuilder()
return builder.build()
}
}
public open class MsgAggregateExchangeRateVoteJvmConverter :
ProtobufTypeMapper {
override val descriptor: Descriptors.Descriptor = Tx.MsgAggregateExchangeRateVote.getDescriptor()
override val parser: Parser =
Tx.MsgAggregateExchangeRateVote.parser()
override val default: Tx.MsgAggregateExchangeRateVote =
Tx.MsgAggregateExchangeRateVote.getDefaultInstance()
override fun convert(obj: Tx.MsgAggregateExchangeRateVote): MsgAggregateExchangeRateVote =
MsgAggregateExchangeRateVote(
salt = obj.getSalt(),
exchangeRates = obj.getExchangeRates(),
feeder = obj.getFeeder(),
validator = obj.getValidator(),
)
override fun convert(obj: MsgAggregateExchangeRateVote): Tx.MsgAggregateExchangeRateVote {
val builder = Tx.MsgAggregateExchangeRateVote.newBuilder()
builder.setSalt(obj.salt)
builder.setExchangeRates(obj.exchangeRates)
builder.setFeeder(obj.feeder)
builder.setValidator(obj.validator)
return builder.build()
}
}
public open class MsgAggregateExchangeRateVoteResponseJvmConverter :
ProtobufTypeMapper
{
override val descriptor: Descriptors.Descriptor =
Tx.MsgAggregateExchangeRateVoteResponse.getDescriptor()
override val parser: Parser =
Tx.MsgAggregateExchangeRateVoteResponse.parser()
override val default: Tx.MsgAggregateExchangeRateVoteResponse =
Tx.MsgAggregateExchangeRateVoteResponse.getDefaultInstance()
override fun convert(obj: Tx.MsgAggregateExchangeRateVoteResponse):
MsgAggregateExchangeRateVoteResponse = MsgAggregateExchangeRateVoteResponse(
)
override fun convert(obj: MsgAggregateExchangeRateVoteResponse):
Tx.MsgAggregateExchangeRateVoteResponse {
val builder = Tx.MsgAggregateExchangeRateVoteResponse.newBuilder()
return builder.build()
}
}
public open class MsgDelegateFeedConsentJvmConverter :
ProtobufTypeMapper {
override val descriptor: Descriptors.Descriptor = Tx.MsgDelegateFeedConsent.getDescriptor()
override val parser: Parser = Tx.MsgDelegateFeedConsent.parser()
override val default: Tx.MsgDelegateFeedConsent = Tx.MsgDelegateFeedConsent.getDefaultInstance()
override fun convert(obj: Tx.MsgDelegateFeedConsent): MsgDelegateFeedConsent =
MsgDelegateFeedConsent(
`operator` = obj.getOperator(),
`delegate` = obj.getDelegate(),
)
override fun convert(obj: MsgDelegateFeedConsent): Tx.MsgDelegateFeedConsent {
val builder = Tx.MsgDelegateFeedConsent.newBuilder()
builder.setOperator(obj.`operator`)
builder.setDelegate(obj.`delegate`)
return builder.build()
}
}
public open class MsgDelegateFeedConsentResponseJvmConverter :
ProtobufTypeMapper {
override val descriptor: Descriptors.Descriptor =
Tx.MsgDelegateFeedConsentResponse.getDescriptor()
override val parser: Parser =
Tx.MsgDelegateFeedConsentResponse.parser()
override val default: Tx.MsgDelegateFeedConsentResponse =
Tx.MsgDelegateFeedConsentResponse.getDefaultInstance()
override fun convert(obj: Tx.MsgDelegateFeedConsentResponse): MsgDelegateFeedConsentResponse =
MsgDelegateFeedConsentResponse(
)
override fun convert(obj: MsgDelegateFeedConsentResponse): Tx.MsgDelegateFeedConsentResponse {
val builder = Tx.MsgDelegateFeedConsentResponse.newBuilder()
return builder.build()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy