types

package
v0.0.2-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// SignModeDirect is the value of the --sign-mode flag for SIGN_MODE_DIRECT
	SignModeDirect = "direct"
	// SignModeLegacyAminoJSON is the value of the --sign-mode flag for SIGN_MODE_LEGACY_AMINO_JSON
	SignModeLegacyAminoJSON = "amino-json"
	// SignModeDirectAux is the value of the --sign-mode flag for SIGN_MODE_DIRECT_AUX
	SignModeDirectAux = "direct-aux"
	// SignModeEIP191 is the value of the --sign-mode flag for SIGN_MODE_EIP_191
	SignModeEIP191 = "eip-191"
)

Variables

This section is empty.

Functions

func NewTxFactory

func NewTxFactory(cctx client.Context, opts ...ClientOption) (tx.Factory, error)

NewTxFactory creates a new Factory.

Types

type ClientOption

type ClientOption func(options *ClientOptions) error

func WithAccountNumber

func WithAccountNumber(val uint64) ClientOption

func WithAccountSequence

func WithAccountSequence(val uint64) ClientOption

func WithFees

func WithFees(val string) ClientOption

func WithGas

func WithGas(val GasSetting) ClientOption

func WithGasAdjustment

func WithGasAdjustment(val float64) ClientOption

func WithGasPrices

func WithGasPrices(val string) ClientOption

func WithNote

func WithNote(val string) ClientOption

func WithSignMode

func WithSignMode(val string) ClientOption

func WithSkipConfirm

func WithSkipConfirm(val bool) ClientOption

func WithTimeoutHeight

func WithTimeoutHeight(val uint64) ClientOption

type ClientOptions

type ClientOptions struct {
	AccountNumber    uint64
	AccountSequence  uint64
	GasAdjustment    float64
	Gas              GasSetting
	GasPrices        string
	Fees             string
	Note             string
	TimeoutHeight    uint64
	BroadcastTimeout time.Duration
	SkipConfirm      bool
	SignMode         string
}

type GasSetting

type GasSetting struct {
	Simulate bool
	Gas      uint64
}

GasSetting encapsulates the possible values passed through the --gas flag.

func (*GasSetting) String

func (v *GasSetting) String() string

Jump to

Keyboard shortcuts

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