Skip to main content
Version: 1.2.0

Protocol Documentation

Table of Contents​

Top

centerchain/liquidity/v1/tx.proto​

MsgAcceptOwnershipTransfer​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgAcceptOwnershipTransferResponse​

MsgActivateEmergencyOwnershipTransfer​

FieldTypeLabelDescription
authoritystring
pool_iduint64

MsgActivateEmergencyOwnershipTransferResponse​

MsgAddLiquidity​

FieldTypeLabelDescription
senderstring
pool_iduint64
amount0cosmos.base.v1beta1.Coin
amount1cosmos.base.v1beta1.Coin
min_sharesstring

MsgAddLiquidityResponse​

FieldTypeLabelDescription
sharesstring

MsgCancelFeeUpdate​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgCancelFeeUpdateResponse​

MsgCancelOwnershipTransfer​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgCancelOwnershipTransferResponse​

MsgClaimFarm​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgClaimFarmResponse​

FieldTypeLabelDescription
claimedcosmos.base.v1beta1.Coinrepeated

MsgClosePool​

FieldTypeLabelDescription
authoritystring
pool_iduint64

MsgClosePoolResponse​

MsgCreateEmissionSchedule​

FieldTypeLabelDescription
senderstring
pool_iduint64
budgetcosmos.base.v1beta1.Coin
start_heightint64
end_heightint64

MsgCreateEmissionScheduleResponse​

MsgCreatePool​

FieldTypeLabelDescription
senderstring
denom0string
denom1string
initial_amount0cosmos.base.v1beta1.Coin
initial_amount1cosmos.base.v1beta1.Coin
swap_fee_ppmuint64
lp_fee_share_ppmuint64
staking_fee_share_ppmuint64
farm_lock_duration_blocksuint64

MsgCreatePoolResponse​

FieldTypeLabelDescription
pool_iduint64
lp_share_denomstring

MsgDepositFarm​

FieldTypeLabelDescription
senderstring
pool_iduint64
amountstring

MsgDepositFarmResponse​

FieldTypeLabelDescription
positionstring

MsgEmergencyPausePool​

FieldTypeLabelDescription
authoritystring
pool_iduint64

MsgEmergencyPausePoolResponse​

MsgEmergencyUnpausePool​

FieldTypeLabelDescription
authoritystring
pool_iduint64

MsgEmergencyUnpausePoolResponse​

MsgPausePool​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgPausePoolResponse​

MsgRecoverPoolCoins​

FieldTypeLabelDescription
senderstring
pool_iduint64
account_typestring
coincosmos.base.v1beta1.Coin

MsgRecoverPoolCoinsResponse​

MsgRefundEmissionSchedule​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgRefundEmissionScheduleResponse​

FieldTypeLabelDescription
refundedcosmos.base.v1beta1.Coin

MsgRegisterIBCDenom​

FieldTypeLabelDescription
authoritystring
denomstring
full_tracestring
source_portstring
source_channelstring
base_denomstring

MsgRegisterIBCDenomResponse​

MsgRemoveIBCDenom​

FieldTypeLabelDescription
authoritystring
denomstring

MsgRemoveIBCDenomResponse​

MsgRemoveLiquidity​

FieldTypeLabelDescription
senderstring
pool_iduint64
sharesstring
min_amount0cosmos.base.v1beta1.Coin
min_amount1cosmos.base.v1beta1.Coin

MsgRemoveLiquidityResponse​

FieldTypeLabelDescription
amount0cosmos.base.v1beta1.Coin
amount1cosmos.base.v1beta1.Coin

MsgRequestEmergencyOwnershipTransfer​

FieldTypeLabelDescription
authoritystring
pool_iduint64
new_ownerstring

MsgRequestEmergencyOwnershipTransferResponse​

FieldTypeLabelDescription
activation_heightint64

MsgRequestFeeUpdate​

FieldTypeLabelDescription
senderstring
pool_iduint64
swap_fee_ppmuint64
lp_fee_share_ppmuint64
staking_fee_share_ppmuint64

MsgRequestFeeUpdateResponse​

FieldTypeLabelDescription
activation_heightint64

MsgRequestOwnershipTransfer​

FieldTypeLabelDescription
senderstring
pool_iduint64
new_ownerstring

MsgRequestOwnershipTransferResponse​

FieldTypeLabelDescription
activation_heightint64

MsgSwapExactAmountIn​

FieldTypeLabelDescription
senderstring
pool_iduint64
token_incosmos.base.v1beta1.Coin
token_out_denomstring
token_out_min_amountstring

MsgSwapExactAmountInResponse​

FieldTypeLabelDescription
token_outcosmos.base.v1beta1.Coin

MsgSwapExactAmountOut​

FieldTypeLabelDescription
senderstring
pool_iduint64
token_outcosmos.base.v1beta1.Coin
token_in_denomstring
token_in_max_amountstring

MsgSwapExactAmountOutResponse​

FieldTypeLabelDescription
token_incosmos.base.v1beta1.Coin

MsgUnpausePool​

FieldTypeLabelDescription
senderstring
pool_iduint64

MsgUnpausePoolResponse​

MsgUpdateEmissionSchedule​

FieldTypeLabelDescription
senderstring
pool_iduint64
additional_budgetcosmos.base.v1beta1.Coin
end_heightint64

MsgUpdateEmissionScheduleResponse​

MsgUpdateParams​

FieldTypeLabelDescription
authoritystring
paramsParams

MsgUpdateParamsResponse​

MsgWithdrawFarm​

FieldTypeLabelDescription
senderstring
pool_iduint64
amountstring
emergencybool

MsgWithdrawFarmResponse​

FieldTypeLabelDescription
claimedcosmos.base.v1beta1.Coinrepeated
positionstring

Msg​

Method NameRequest TypeResponse TypeDescription
CreatePoolMsgCreatePoolMsgCreatePoolResponse
AddLiquidityMsgAddLiquidityMsgAddLiquidityResponse
RemoveLiquidityMsgRemoveLiquidityMsgRemoveLiquidityResponse
SwapExactAmountInMsgSwapExactAmountInMsgSwapExactAmountInResponse
SwapExactAmountOutMsgSwapExactAmountOutMsgSwapExactAmountOutResponse
PausePoolMsgPausePoolMsgPausePoolResponse
UnpausePoolMsgUnpausePoolMsgUnpausePoolResponse
EmergencyPausePoolMsgEmergencyPausePoolMsgEmergencyPausePoolResponse
EmergencyUnpausePoolMsgEmergencyUnpausePoolMsgEmergencyUnpausePoolResponse
DepositFarmMsgDepositFarmMsgDepositFarmResponse
WithdrawFarmMsgWithdrawFarmMsgWithdrawFarmResponse
ClaimFarmMsgClaimFarmMsgClaimFarmResponse
CreateEmissionScheduleMsgCreateEmissionScheduleMsgCreateEmissionScheduleResponse
UpdateEmissionScheduleMsgUpdateEmissionScheduleMsgUpdateEmissionScheduleResponse
RefundEmissionScheduleMsgRefundEmissionScheduleMsgRefundEmissionScheduleResponse
UpdateParamsMsgUpdateParamsMsgUpdateParamsResponse
RequestOwnershipTransferMsgRequestOwnershipTransferMsgRequestOwnershipTransferResponse
AcceptOwnershipTransferMsgAcceptOwnershipTransferMsgAcceptOwnershipTransferResponse
CancelOwnershipTransferMsgCancelOwnershipTransferMsgCancelOwnershipTransferResponse
RequestEmergencyOwnershipTransferMsgRequestEmergencyOwnershipTransferMsgRequestEmergencyOwnershipTransferResponse
ActivateEmergencyOwnershipTransferMsgActivateEmergencyOwnershipTransferMsgActivateEmergencyOwnershipTransferResponse
RequestFeeUpdateMsgRequestFeeUpdateMsgRequestFeeUpdateResponse
CancelFeeUpdateMsgCancelFeeUpdateMsgCancelFeeUpdateResponse
RecoverPoolCoinsMsgRecoverPoolCoinsMsgRecoverPoolCoinsResponse
RegisterIBCDenomMsgRegisterIBCDenomMsgRegisterIBCDenomResponse
RemoveIBCDenomMsgRemoveIBCDenomMsgRemoveIBCDenomResponse
ClosePoolMsgClosePoolMsgClosePoolResponse

Scalar Value Types​

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)