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 MsgTransfer(cmd *cobra.Command, ctx sdkclient.Context, srcPort string, srcChannel string, ...) (sdktypes.Msg, error)
- func MsgWithdraw(poolCreator string, poolId uint64, poolCoin sdktypes.Coin) (sdktypes.Msg, error)
- type IBCtransaction
- type Transaction
- func (t *Transaction) CreateSwapBot(ctx context.Context, poolCreator string, poolId uint64, ...) ([]sdktypes.Msg, error)
- func (t *Transaction) CreateTransferBot(cmd *cobra.Command, ctx sdkclient.Context, srcPort string, srcChannel string, ...) ([]sdktypes.Msg, error)
- func (t *Transaction) IbcSign(ctx context.Context, accSeq uint64, accNum uint64, privKey *secp256k1.PrivKey, ...) ([]byte, error)
- func (t *Transaction) Sign(ctx context.Context, accSeq uint64, accNum uint64, privKey *secp256k1.PrivKey, ...) ([]byte, error)
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.
func MsgSwap ¶
func MsgSwap(poolCreator string, poolId uint64, swapTypeId uint32, offerCoin sdktypes.Coin, demandCoinDenom string, orderPrice sdktypes.Dec, swapFeeRate sdktypes.Dec) (sdktypes.Msg, error)
MsgSwap creates swap message and returns MsgWithdraw MsgSwap message.
Types ¶
type IBCtransaction ¶
type IBCtransaction 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.
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 IbcNewtransaction ¶
func IbcNewtransaction(client *client.Client, chainID string, gasLimit uint64, fees sdktypes.Coins, memo string) *Transaction
NewTransaction returns new Transaction object.
func NewTransaction ¶
func NewTransaction(client *client.Client, chainID string, gasLimit uint64, fees sdktypes.Coins, memo string) *Transaction
NewTransaction returns new Transaction object.
func (*Transaction) CreateSwapBot ¶
func (t *Transaction) CreateSwapBot(ctx context.Context, poolCreator string, poolId uint64, offerCoin sdktypes.Coin, demandCoinDenom string, msgNum int) ([]sdktypes.Msg, error)
CreateSwapBot creates a bot that makes multiple swaps which increases and decreases
func (*Transaction) CreateTransferBot ¶
Click to show internal directories.
Click to hide internal directories.