types

package
v0.0.1-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 ClientOptionsFromFlags

func ClientOptionsFromFlags(flagSet *pflag.FlagSet) ([]ClientOption, 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 flags.GasSetting) ClientOption

func WithGasAdjustment

func WithGasAdjustment(val float64) ClientOption

func WithGasPrices

func WithGasPrices(val string) ClientOption

func WithNote

func WithNote(val string) ClientOption

func WithTimeoutHeight

func WithTimeoutHeight(val uint64) ClientOption

type ClientOptions

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

Jump to

Keyboard shortcuts

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