Documentation ¶
Index ¶
- Variables
- func BankSend(keyName string, bankSendOpt BankSendOption, gas uint64) (string, error)
- func BroadcastTx(clientCtx client.Context, txf clienttx.Factory, msgs ...sdk.Msg) (uint32, string, string, error)
- func ClaimReward(keyName string, gas uint64) (string, error)
- func Delegate(keyName string, delegateOpt DelegateOption, gas uint64) (string, error)
- func HandleTx(tx Tx) error
- func HandleTxs(txs Txs) error
- func JoinPool(keyName string, joinPoolOpt JoinPoolOption, gas uint64) (string, error)
- func Lock(keyName string, lockOpt LockOption, gas uint64) (string, error)
- func NewMsgJoinPool(fromAddr sdk.AccAddress, poolId uint64, shareOutAmount sdk.Int, ...) sdk.Msg
- func NewMsgSwapExactAmountIn(fromAddr sdk.AccAddress, swapOpt SwapOption) (sdk.Msg, error)
- func NewTxFactoryFromClientCtx(clientCtx client.Context) tx.Factory
- func SetKeyNameToContext(clientCtx client.Context, keyName string) (client.Context, error)
- func Swap(keyName string, swapOpt SwapOption, gas uint64) (string, error)
- func SwapAndPool(keyName string, swapAndPoolOption SwapAndPoolOption, gas uint64) (string, error)
- type BankSendOption
- type BankSendTx
- type ClaimTx
- type DelegateOption
- type DelegateTx
- type JoinPoolOption
- type JoinPoolTx
- type LockOption
- type LockTx
- type SwapAndPoolOption
- type SwapAndPoolTx
- type SwapOption
- type SwapTx
- type Tx
- type Txs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Seperator = "\n\n==========================================\n" DefaultGas = 200000 )
Functions ¶
func BankSend ¶
func BankSend(keyName string, bankSendOpt BankSendOption, gas uint64) (string, error)
func BroadcastTx ¶
func BroadcastTx(clientCtx client.Context, txf clienttx.Factory, msgs ...sdk.Msg) (uint32, string, string, error)
BroadcastTx attempts to generate, sign and broadcast a transaction with the given set of messages. It will also simulate gas requirements if necessary. It will return an error upon failure.
func Delegate ¶
func Delegate(keyName string, delegateOpt DelegateOption, gas uint64) (string, error)
func JoinPool ¶
func JoinPool(keyName string, joinPoolOpt JoinPoolOption, gas uint64) (string, error)
func NewMsgJoinPool ¶
func NewMsgSwapExactAmountIn ¶
func NewMsgSwapExactAmountIn(fromAddr sdk.AccAddress, swapOpt SwapOption) (sdk.Msg, error)
func SetKeyNameToContext ¶
set fields in client context with keyname
func SwapAndPool ¶
func SwapAndPool(keyName string, swapAndPoolOption SwapAndPoolOption, gas uint64) (string, error)
Types ¶
type BankSendOption ¶
type BankSendOption struct { ToAddr sdk.AccAddress Denom string Amount sdk.Int }
type BankSendTx ¶
type BankSendTx struct { BankSendOpt BankSendOption KeyName string Hash string }
func (BankSendTx) Execute ¶
func (bankSendTx BankSendTx) Execute() (string, error)
func (BankSendTx) Prompt ¶
func (bankSendTx BankSendTx) Prompt()
func (BankSendTx) Report ¶
func (bankSendTx BankSendTx) Report(reportPath string)
type DelegateOption ¶
type DelegateOption struct { ValAddr sdk.ValAddress Denom string Amount sdk.Int }
type DelegateTx ¶
type DelegateTx struct { KeyName string DelegateOpt DelegateOption Hash string }
func (DelegateTx) Execute ¶
func (delegateTx DelegateTx) Execute() (string, error)
func (DelegateTx) Prompt ¶
func (delegateTx DelegateTx) Prompt()
func (DelegateTx) Report ¶
func (delegateTx DelegateTx) Report(reportPath string)
type JoinPoolOption ¶
type JoinPoolTx ¶
type JoinPoolTx struct { KeyName string JoinPoolOpt JoinPoolOption Hash string }
func (JoinPoolTx) Execute ¶
func (joinPoolTx JoinPoolTx) Execute() (string, error)
func (JoinPoolTx) Prompt ¶
func (joinPoolTx JoinPoolTx) Prompt()
func (JoinPoolTx) Report ¶
func (joinPoolTx JoinPoolTx) Report(reportPath string)
type LockTx ¶
type LockTx struct { KeyName string LockOpt LockOption Hash string }
type SwapAndPoolOption ¶
type SwapAndPoolTx ¶
type SwapAndPoolTx struct { KeyName string SwapAndPoolOpt SwapAndPoolOption Hash string }
func (SwapAndPoolTx) Execute ¶
func (swapAndPoolTx SwapAndPoolTx) Execute() (string, error)
func (SwapAndPoolTx) Prompt ¶
func (swapAndPoolTx SwapAndPoolTx) Prompt()
func (SwapAndPoolTx) Report ¶
func (swapAndPoolTx SwapAndPoolTx) Report(reportPath string)
type SwapOption ¶
type SwapTx ¶
type SwapTx struct { KeyName string SwapOpt SwapOption Hash string }
Click to show internal directories.
Click to hide internal directories.