Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the liquidity Msg service.
Submit a create liquidity pool message.
MsgCreatePool defines an sdk.Msg type that supports submitting a create liquidity pool tx. See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
id of the target pool type, must match the value in the pool. Only pool-type-id 1 is supported.
reserve coin pair of the pool to deposit.
MsgCreatePoolResponse defines the Msg/CreatePool response type.
(message has no fields)
Submit a deposit to the liquidity pool batch.
MsgDepositWithinBatchResponse defines the Msg/DepositWithinBatch response type.
(message has no fields)
Submit a withdraw from the liquidity pool batch.
MsgWithdrawWithinBatchResponse defines the Msg/WithdrawWithinBatch response type.
(message has no fields)
Submit a swap to the liquidity pool batch.
MsgSwapWithinBatchResponse defines the Msg/Swap response type.
(message has no fields)
Query defines the gRPC query service for the liquidity module.
Get existing liquidity pools.
the request type for the QueryLiquidityPools RPC method. Requestable including pagination offset, limit, key.
pagination defines an optional pagination for the request.
the response type for the QueryLiquidityPoolsResponse RPC method. This includes a list of all existing liquidity pools and paging results that contain next_key and total count.
pagination defines the pagination in the response. not working on this version.
Get specific liquidity pool.
the request type for the QueryLiquidityPool RPC method. requestable specified pool_id.
Get specific liquidity pool corresponding to the pool_coin_denom.
the request type for the QueryLiquidityByPoolCoinDenomPool RPC method. Requestable specified pool_coin_denom.
Get specific liquidity pool corresponding to the reserve account.
the request type for the QueryLiquidityByReserveAcc RPC method. Requestable specified reserve_acc.
Get the pool's current batch.
the request type for the QueryLiquidityPoolBatch RPC method. requestable including specified pool_id.
id of the target pool for query
the response type for the QueryLiquidityPoolBatchResponse RPC method. Returns the liquidity pool batch that corresponds to the requested pool_id.
Get all swap messages in the pool's current batch.
the request type for the QueryPoolBatchSwapMsgs RPC method. Requestable including specified pool_id and pagination offset, limit, key.
id of the target pool for query
pagination defines an optional pagination for the request.
the response type for the QueryPoolBatchSwapMsgs RPC method. This includes list of all currently existing swap messages of the batch and paging results that contain next_key and total count.
pagination defines the pagination in the response. not working on this version.
Get a specific swap message in the pool's current batch.
the request type for the QueryPoolBatchSwap RPC method. Requestable including specified pool_id and msg_index.
id of the target pool for query
target msg_index of the pool
the response type for the QueryPoolBatchSwapMsg RPC method. This includes a batch swap message of the batch.
Get all deposit messages in the pool's current batch.
the request type for the QueryPoolBatchDeposit RPC method. Requestable including specified pool_id and pagination offset, limit, key.
id of the target pool for query
pagination defines an optional pagination for the request.
the response type for the QueryPoolBatchDeposit RPC method. This includes a list of all currently existing deposit messages of the batch and paging results that contain next_key and total count.
pagination defines the pagination in the response. not working on this version.
Get a specific deposit message in the pool's current batch.
the request type for the QueryPoolBatchDeposit RPC method. requestable including specified pool_id and msg_index.
id of the target pool for query
target msg_index of the pool
the response type for the QueryPoolBatchDepositMsg RPC method. This includes a batch swap message of the batch.
Get all withdraw messages in the pool's current batch.
the request type for the QueryPoolBatchWithdraw RPC method. Requestable including specified pool_id and pagination offset, limit, key.
id of the target pool for query
pagination defines an optional pagination for the request.
the response type for the QueryPoolBatchWithdraw RPC method. This includes a list of all currently existing withdraw messages of the batch and paging results that contain next_key and total count.
pagination defines the pagination in the response. Not supported on this version.
Get a specific withdraw message in the pool's current batch.
the request type for the QueryPoolBatchWithdraw RPC method. requestable including specified pool_id and msg_index.
id of the target pool for query
target msg_index of the pool
the response type for the QueryPoolBatchWithdrawMsg RPC method. This includes a batch swap message of the batch.
Get all parameters of the liquidity module.
QueryParamsRequest is request type for the QueryParams RPC method.
(message has no fields)
the response type for the QueryParamsResponse RPC method. This includes current parameter of the liquidity module.
params holds all the parameters of this module.
DepositMsgState defines the state of deposit message that contains state information as it is processed in the next batch or batches.
Used in:
, ,height where this message is appended to the batch
index of this deposit message in this liquidity pool
true if executed on this batch, false if not executed
true if executed successfully on this batch, false if failed
true if ready to be deleted on kvstore, false if not ready to be deleted
MsgDepositWithinBatch
GenesisState defines the liquidity module's genesis state.
params defines all the parameters for the liquidity module.
`MsgDepositWithinBatch defines` an `sdk.Msg` type that supports submitting a deposit request to the batch of the liquidity pool. Deposit is submitted to the batch of the Liquidity pool with the specified `pool_id`, `deposit_coins` for reserve. This request is stacked in the batch of the liquidity pool, is not processed immediately, and is processed in the `endblock` at the same time as other requests. See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
Used as request type in: Msg.DepositWithinBatch
Used as field type in:
id of the target pool
reserve coin pair of the pool to deposit
`MsgSwapWithinBatch` defines an sdk.Msg type that supports submitting a swap offer request to the batch of the liquidity pool. Submit swap offer to the liquidity pool batch with the specified the `pool_id`, `swap_type_id`, `demand_coin_denom` with the coin and the price you're offering and `offer_coin_fee` must be half of offer coin amount * current `params.swap_fee_rate` and ceil for reservation to pay fees. This request is stacked in the batch of the liquidity pool, is not processed immediately, and is processed in the `endblock` at the same time as other requests. You must request the same fields as the pool. Only the default `swap_type_id` 1 is supported. See: https://github.com/tendermint/liquidity/tree/develop/doc https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
Used as request type in: Msg.Swap
Used as field type in:
address of swap requester
id of swap type, must match the value in the pool. Only `swap_type_id` 1 is supported.
id of swap type. Must match the value in the pool.
offer sdk.coin for the swap request, must match the denom in the pool.
denom of demand coin to be exchanged on the swap request, must match the denom in the pool.
half of offer coin amount * params.swap_fee_rate and ceil for reservation to pay fees.
limit order price for the order, the price is the exchange ratio of X/Y where X is the amount of the first coin and Y is the amount of the second coin when their denoms are sorted alphabetically.
`MsgWithdrawWithinBatch` defines an `sdk.Msg` type that supports submitting a withdraw request to the batch of the liquidity pool. Withdraw is submitted to the batch from the Liquidity pool with the specified `pool_id`, `pool_coin` of the pool. This request is stacked in the batch of the liquidity pool, is not processed immediately, and is processed in the `endblock` at the same time as other requests. See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
Used as request type in: Msg.WithdrawWithinBatch
Used as field type in:
id of the target pool
Params defines the parameters for the liquidity module.
Used in:
,list of available pool types
Minimum number of coins to be deposited to the liquidity pool on pool creation.
Initial mint amount of pool coins upon pool creation.
Limit the size of each liquidity pool to minimize risk. In development, set to 0 for no limit. In production, set a limit.
Fee paid to create a Liquidity Pool. Set a fee to prevent spamming.
Swap fee rate for every executed swap.
Reserve coin withdrawal with less proportion by withdrawFeeRate.
Maximum ratio of reserve coins that can be ordered at a swap order.
The smallest unit batch height for every liquidity pool.
Circuit breaker enables or disables transaction messages in liquidity module.
Pool defines the liquidity pool that contains pool information.
Used in:
, ,id of the pool
id of the pool_type
denoms of reserve coin pair of the pool
reserve account address of the pool
denom of pool coin of the pool
PoolBatch defines the batch or batches of a given liquidity pool that contains indexes of deposit, withdraw, and swap messages. Index param increments by 1 if the pool id is same.
Used in:
,id of the pool
index of this batch
height where this batch is started
last index of DepositMsgStates
last index of WithdrawMsgStates
last index of SwapMsgStates
true if executed, false if not executed
Metadata for the state of each pool for invariant checking after genesis export or import.
Used in:
id of the pool
pool coin issued at the pool
reserve coins deposited in the pool
records the state of each pool after genesis export or import, used to check variables
Used in:
Structure for the pool type to distinguish the characteristics of the reserve pools.
Used in:
This is the id of the pool_type that is used as pool_type_id for pool creation. In this version, only pool-type-id 1 is supported. {"id":1,"name":"ConstantProductLiquidityPool","min_reserve_coin_num":2,"max_reserve_coin_num":2,"description":""}
name of the pool type.
minimum number of reserveCoins for LiquidityPoolType, only 2 reserve coins are supported.
maximum number of reserveCoins for LiquidityPoolType, only 2 reserve coins are supported.
description of the pool type.
the response type for the QueryLiquidityPoolResponse RPC method. Returns the liquidity pool that corresponds to the requested pool_id.
Used as response type in: Query.LiquidityPool, Query.LiquidityPoolByPoolCoinDenom, Query.LiquidityPoolByReserveAcc
SwapMsgState defines the state of the swap message that contains state information as the message is processed in the next batch or batches.
Used in:
, ,height where this message is appended to the batch
index of this swap message in this liquidity pool
true if executed on this batch, false if not executed
true if executed successfully on this batch, false if failed
true if ready to be deleted on kvstore, false if not ready to be deleted
swap orders are cancelled when current height is equal to or higher than ExpiryHeight
offer coin exchanged until now
offer coin currently remaining to be exchanged
reserve fee for pays fee in half offer coin
MsgSwapWithinBatch
WithdrawMsgState defines the state of the withdraw message that contains state information as the message is processed in the next batch or batches.
Used in:
, ,height where this message is appended to the batch
index of this withdraw message in this liquidity pool
true if executed on this batch, false if not executed
true if executed successfully on this batch, false if failed
true if ready to be deleted on kvstore, false if not ready to be deleted
MsgWithdrawWithinBatch