Documentation ¶
Index ¶
- func ComputeFeesWithBaseReq(clientCtx client.Context, br rest.BaseReq, msgs ...sdk.Msg) (*legacytx.StdFee, error)
- func ComputeFeesWithCmd(clientCtx client.Context, flagSet *pflag.FlagSet, msgs ...sdk.Msg) (*legacytx.StdFee, error)
- func FilterMsgAndComputeTax(clientCtx client.Context, msgs ...sdk.Msg) (taxes sdk.Coins, err error)
- func ParseFloat64(s string, defaultIfEmpty float64) (n float64, err error)
- type ComputeReqParams
- type EstimateFeeReq
- type EstimateFeeResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFeesWithBaseReq ¶
func ComputeFeesWithBaseReq( clientCtx client.Context, br rest.BaseReq, msgs ...sdk.Msg, ) (*legacytx.StdFee, error)
ComputeFeesWithBaseReq returns fee amount with given stdTx.
func ComputeFeesWithCmd ¶
func ComputeFeesWithCmd( clientCtx client.Context, flagSet *pflag.FlagSet, msgs ...sdk.Msg, ) (*legacytx.StdFee, error)
ComputeFeesWithCmd returns fee amount with cli options.
func FilterMsgAndComputeTax ¶
FilterMsgAndComputeTax computes the stability tax on MsgSend and MsgMultiSend.
Types ¶
type ComputeReqParams ¶
type ComputeReqParams struct { Memo string ChainID string AccountNumber uint64 Sequence uint64 GasPrices sdk.DecCoins Gas string GasAdjustment string Msgs []sdk.Msg }
ComputeReqParams no-lint
type EstimateFeeReq ¶
type EstimateFeeReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Msgs []sdk.Msg `json:"msgs" yaml:"msgs"` }
EstimateFeeReq defines a tx fee estimation request.
func (EstimateFeeReq) UnpackInterfaces ¶
func (m EstimateFeeReq) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements the UnpackInterfacesMessage interface.
type EstimateFeeResp ¶
EstimateFeeResp defines a tx fee estimation response
Click to show internal directories.
Click to hide internal directories.