transactor

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: LGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TxPriorities = map[string]uint8{
	"none":   0,
	"slow":   1,
	"medium": 2,
	"fast":   3,
}

to save on data, we encode uin8 for transaction priority

Functions

func MergeTransactionOptions

func MergeTransactionOptions(primary *TransactOptions, additional *TransactOptions) error

Types

type TransactOptions

type TransactOptions struct {
	GasLimit uint64
	GasPrice *big.Int
	Value    *big.Int
	Nonce    *big.Int
	ChainID  *big.Int
	Priority uint8
}

type Transactor

type Transactor interface {
	Transact(to *common.Address, data []byte, opts TransactOptions) (*common.Hash, error)
}

Directories

Path Synopsis
itx
mock
Package mock_itx is a generated GoMock package.
Package mock_itx is a generated GoMock package.
Package mock_transactor is a generated GoMock package.
Package mock_transactor is a generated GoMock package.

Jump to

Keyboard shortcuts

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