Documentation ¶
Index ¶
- func MsgCreatePool(poolCreator string, poolTypeId uint32, depositCoins sdktypes.Coins) (sdktypes.Msg, error)
- func MsgDeposit(poolCreator string, poolId uint64, depositCoins sdktypes.Coins) (sdktypes.Msg, error)
- func MsgSwap(poolCreator string, poolId uint64, swapTypeId uint32, offerCoin sdktypes.Coin, ...) (sdktypes.Msg, error)
- func MsgWithdraw(poolCreator string, poolId uint64, poolCoin sdktypes.Coin) (sdktypes.Msg, error)
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MsgCreatePool ¶
func MsgCreatePool(poolCreator string, poolTypeId uint32, depositCoins sdktypes.Coins) (sdktypes.Msg, error)
MsgCreatePool creates create pool message and returns MsgCreatePool transaction message.
func MsgDeposit ¶
func MsgDeposit(poolCreator string, poolId uint64, depositCoins sdktypes.Coins) (sdktypes.Msg, error)
MsgDeposit creates deposit message and returns MsgDeposit transaction message.
Types ¶
type Transaction ¶
type Transaction struct { Client *client.Client `json:"client"` ChainID string `json:"chain_id"` GasLimit uint64 `json:"gas_limit"` Fees sdktypes.Coins `json:"fees"` Memo string `json:"memo"` }
Transaction is an object that has common fields when signing transaction.
func NewTransaction ¶
func NewTransaction(client *client.Client, chainID string, gasLimit uint64, fees sdktypes.Coins, memo string) *Transaction
NewTransaction returns new Transaction object.
Click to show internal directories.
Click to hide internal directories.