transactor

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: LGPL-3.0 Imports: 3 Imported by: 5 modules, 32 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTransactionOptions = TransactOptions{
	GasLimit: 2000000,
	GasPrice: big.NewInt(0),
	Value:    big.NewInt(0),
}
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