Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the swap Msg service.
Deposit defines a method for depositing liquidity into a pool
MsgDeposit represents a message for depositing liquidity into a pool
depositor represents the address to deposit funds from
token_a represents one token of deposit pair
token_b represents one token of deposit pair
slippage represents the max decimal percentage price change
deadline represents the unix timestamp to complete the deposit by
MsgDepositResponse defines the Msg/Deposit response type.
(message has no fields)
Withdraw defines a method for withdrawing liquidity into a pool
MsgWithdraw represents a message for withdrawing liquidity from a pool
from represents the address we are withdrawing for
shares represents the amount of shares to withdraw
min_token_a represents the minimum a token to withdraw
min_token_a represents the minimum a token to withdraw
deadline represents the unix timestamp to complete the withdraw by
MsgWithdrawResponse defines the Msg/Withdraw response type.
(message has no fields)
SwapExactForTokens represents a message for trading exact coinA for coinB
MsgSwapExactForTokens represents a message for trading exact coinA for coinB
represents the address swaping the tokens
exact_token_a represents the exact amount to swap for token_b
token_b represents the desired token_b to swap for
slippage represents the maximum change in token_b allowed
deadline represents the unix timestamp to complete the swap by
MsgSwapExactForTokensResponse defines the Msg/SwapExactForTokens response type.
(message has no fields)
SwapForExactTokens represents a message for trading coinA for an exact coinB
MsgSwapForExactTokens represents a message for trading coinA for an exact coinB
represents the address swaping the tokens
token_a represents the desired token_a to swap for
exact_token_b represents the exact token b amount to swap for token a
slippage represents the maximum change in token_a allowed
deadline represents the unix timestamp to complete the swap by
MsgSwapForExactTokensResponse defines the Msg/SwapForExactTokensResponse response type.
(message has no fields)
Query defines the gRPC querier service for swap module
Params queries all parameters of the swap module.
QueryParamsRequest defines the request type for querying x/swap parameters.
(message has no fields)
QueryParamsResponse defines the response type for querying x/swap parameters.
params represents the swap module parameters
Pools queries pools based on pool ID
QueryPoolsRequest is the request type for the Query/Pools RPC method.
pool_id filters pools by id
pagination defines an optional pagination for the request.
QueryPoolsResponse is the response type for the Query/Pools RPC method.
pools represents returned pools
pagination defines the pagination in the response.
Deposits queries deposit details based on owner address and pool
QueryDepositsRequest is the request type for the Query/Deposits RPC method.
owner optionally filters deposits by owner
pool_id optionally fitlers deposits by pool id
pagination defines an optional pagination for the request.
QueryDepositsResponse is the response type for the Query/Deposits RPC method.
deposits returns the deposits matching the requested parameters
pagination defines the pagination in the response.
AllowedPool defines a pool that is allowed to be created
Used in:
token_a represents the a token allowed
token_b represents the b token allowed
DepositResponse defines a single deposit query response type.
Used in:
depositor represents the owner of the deposit
pool_id represents the pool the deposit is for
shares_owned presents the shares owned by the depositor for the pool
shares_value represents the coin value of the shares_owned
GenesisState defines the swap module's genesis state.
params defines all the parameters related to swap
pool_records defines the available pools
share_records defines the owned shares of each pool
Params defines the parameters for the swap module.
Used in:
,allowed_pools defines that pools that are allowed to be created
swap_fee defines the swap fee for all pools
PoolRecord represents the state of a liquidity pool and is used to store the state of a denominated pool
Used in:
pool_id represents the unique id of the pool
reserves_a is the a token coin reserves
reserves_b is the a token coin reserves
total_shares is the total distrubuted shares of the pool
Pool represents the state of a single pool
Used in:
name represents the name of the pool
coins represents the total reserves of the pool
total_shares represents the total shares of the pool
ShareRecord stores the shares owned for a depositor and pool
Used in:
depositor represents the owner of the shares
pool_id represents the pool the shares belong to
shares_owned represents the number of shares owned by depsoitor for the pool_id