utils

package
v3.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func FilterMsgAndComputeTax(clientCtx client.Context, msgs ...sdk.Msg) (taxes sdk.Coins, err error)

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
}

type EstimateFeeResp

type EstimateFeeResp struct {
	Fee legacytx.StdFee `json:"fee" yaml:"fee"`
}

EstimateFeeResp defines a tx fee estimation response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL