Skip to main content
Version: 0.1.0

Protocol Documentation

Table of Contents​

Top

centerchain/liquidity/v1/query.proto​

QueryEmissionScheduleRequest​

FieldTypeLabelDescription
pool_iduint64

QueryEmissionScheduleResponse​

FieldTypeLabelDescription
scheduleEmissionSchedule
remaining_budgetstring

QueryFarmPositionRequest​

FieldTypeLabelDescription
pool_iduint64
ownerstring

QueryFarmPositionResponse​

FieldTypeLabelDescription
amountstring
claimable_fee_rewardscosmos.base.v1beta1.Coinrepeated
claimable_emission_rewardcosmos.base.v1beta1.Coin

QueryIBCDenomRequest​

FieldTypeLabelDescription
denomstring

QueryIBCDenomResponse​

FieldTypeLabelDescription
registrationIBCDenomRegistration
foundbool

QueryIBCDenomsRequest​

FieldTypeLabelDescription
paginationcosmos.base.query.v1beta1.PageRequest

QueryIBCDenomsResponse​

FieldTypeLabelDescription
registrationsIBCDenomRegistrationrepeated
paginationcosmos.base.query.v1beta1.PageResponse

QueryParamsRequest​

QueryParamsResponse​

FieldTypeLabelDescription
paramsParams

QueryPendingUpdatesRequest​

FieldTypeLabelDescription
pool_iduint64

QueryPendingUpdatesResponse​

FieldTypeLabelDescription
pending_ownerstring
pending_owner_activation_heightint64
pending_swap_fee_ppmuint64
pending_lp_fee_share_ppmuint64
pending_staking_fee_share_ppmuint64
pending_fee_activation_heightint64
pending_emergency_ownerstring
pending_emergency_owner_activation_heightint64

QueryPoolAccountBalancesRequest​

FieldTypeLabelDescription
pool_iduint64

QueryPoolAccountBalancesResponse​

FieldTypeLabelDescription
reservecosmos.base.v1beta1.Coinrepeated
farmcosmos.base.v1beta1.Coinrepeated
fee_collectorcosmos.base.v1beta1.Coinrepeated
balances_availablebool

QueryPoolByPairRequest​

FieldTypeLabelDescription
denom_astring
denom_bstring

QueryPoolByPairResponse​

FieldTypeLabelDescription
poolPool

QueryPoolRequest​

FieldTypeLabelDescription
pool_iduint64

QueryPoolResponse​

FieldTypeLabelDescription
poolPool

QueryPoolSharesRequest​

FieldTypeLabelDescription
pool_iduint64

QueryPoolSharesResponse​

FieldTypeLabelDescription
total_sharesstring
circulating_sharesstring
locked_sharesstring
farm_staked_sharesstring

QueryPoolsRequest​

FieldTypeLabelDescription
paginationcosmos.base.query.v1beta1.PageRequest

QueryPoolsResponse​

FieldTypeLabelDescription
poolsPoolrepeated
paginationcosmos.base.query.v1beta1.PageResponse

QuerySimulateSwapExactAmountInRequest​

FieldTypeLabelDescription
pool_iduint64
token_incosmos.base.v1beta1.Coin
token_out_denomstring

QuerySimulateSwapExactAmountInResponse​

FieldTypeLabelDescription
token_outcosmos.base.v1beta1.Coin

QuerySimulateSwapExactAmountOutRequest​

FieldTypeLabelDescription
pool_iduint64
token_outcosmos.base.v1beta1.Coin
token_in_denomstring

QuerySimulateSwapExactAmountOutResponse​

FieldTypeLabelDescription
token_incosmos.base.v1beta1.Coin

Query​

Method NameRequest TypeResponse TypeDescription
ParamsQueryParamsRequestQueryParamsResponse
PoolQueryPoolRequestQueryPoolResponse
PoolByPairQueryPoolByPairRequestQueryPoolByPairResponse
PoolsQueryPoolsRequestQueryPoolsResponse
PoolSharesQueryPoolSharesRequestQueryPoolSharesResponse
FarmPositionQueryFarmPositionRequestQueryFarmPositionResponse
EmissionScheduleQueryEmissionScheduleRequestQueryEmissionScheduleResponse
PendingUpdatesQueryPendingUpdatesRequestQueryPendingUpdatesResponse
PoolAccountBalancesQueryPoolAccountBalancesRequestQueryPoolAccountBalancesResponse
SimulateSwapExactAmountInQuerySimulateSwapExactAmountInRequestQuerySimulateSwapExactAmountInResponse
SimulateSwapExactAmountOutQuerySimulateSwapExactAmountOutRequestQuerySimulateSwapExactAmountOutResponse
IBCDenomQueryIBCDenomRequestQueryIBCDenomResponse
IBCDenomsQueryIBCDenomsRequestQueryIBCDenomsResponse

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)