Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinswapClient ¶
type CoinswapClient struct { }
func NewClient ¶
func NewClient() CoinswapClient
func (CoinswapClient) HandleTxMsg ¶
func (coinswap CoinswapClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)
type DocTxMsgAddLiquidity ¶
type DocTxMsgAddLiquidity struct { MaxToken models.Coin `bson:"max_token"` // coin to be deposited as liquidity with an upper bound for its amount ExactIrisAmt string `bson:"exact_iris_amt"` // exact amount of native asset being add to the liquidity pool MinLiquidity string `bson:"min_liquidity"` // lower bound UNI sender is willing to accept for deposited coins Deadline int64 `bson:"deadline"` Sender string `bson:"sender"` }
func (*DocTxMsgAddLiquidity) BuildMsg ¶
func (doctx *DocTxMsgAddLiquidity) BuildMsg(txMsg interface{})
func (*DocTxMsgAddLiquidity) GetType ¶
func (doctx *DocTxMsgAddLiquidity) GetType() string
func (*DocTxMsgAddLiquidity) HandleTxMsg ¶
func (m *DocTxMsgAddLiquidity) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgRemoveLiquidity ¶
type DocTxMsgRemoveLiquidity struct { MinToken string `bson:"min_token"` // coin to be withdrawn with a lower bound for its amount WithdrawLiquidity models.Coin `bson:"withdraw_liquidity"` // amount of UNI to be burned to withdraw liquidity from a reserve pool MinIrisAmt string `bson:"min_iris_amt"` // minimum amount of the native asset the sender is willing to accept Deadline int64 `bson:"deadline"` Sender string `bson:"sender"` }
func (*DocTxMsgRemoveLiquidity) BuildMsg ¶
func (doctx *DocTxMsgRemoveLiquidity) BuildMsg(txMsg interface{})
func (*DocTxMsgRemoveLiquidity) GetType ¶
func (doctx *DocTxMsgRemoveLiquidity) GetType() string
func (*DocTxMsgRemoveLiquidity) HandleTxMsg ¶
func (m *DocTxMsgRemoveLiquidity) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgSwapOrder ¶
type DocTxMsgSwapOrder struct { Input Input `bson:"input"` // the amount the sender is trading Output Output `bson:"output"` // the amount the sender is receiving Deadline int64 `bson:"deadline"` // deadline for the transaction to still be considered valid IsBuyOrder bool `bson:"is_buy_order"` // boolean indicating whether the order should be treated as a buy or sell }
func (*DocTxMsgSwapOrder) BuildMsg ¶
func (doctx *DocTxMsgSwapOrder) BuildMsg(txMsg interface{})
func (*DocTxMsgSwapOrder) GetType ¶
func (doctx *DocTxMsgSwapOrder) GetType() string
func (*DocTxMsgSwapOrder) HandleTxMsg ¶
func (m *DocTxMsgSwapOrder) HandleTxMsg(v SdkMsg) MsgDocInfo
Click to show internal directories.
Click to hide internal directories.