types

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonceUpdateInterval = 3 * time.Minute

Functions

This section is empty.

Types

type Block

type Block struct {
	Transactions []string `json:"transactions"`
	GasUsed      string   `json:"gasUsed"`
}

type BlockNotification

type BlockNotification struct {
	Hash   common.Hash
	Height *big.Int
	Header *types.Header
	Logs   []types.Log
}

type NonceTracker added in v1.1.0

type NonceTracker struct {
	Getter func(context.Context, common.Address, *big.Int) (*big.Int, error)
	*sync.Mutex
	// contains filtered or unexported fields
}

func (*NonceTracker) Get added in v1.1.0

func (n *NonceTracker) Get(addr common.Address) *big.Int

Ugly hack to fix the nonce issue

func (*NonceTracker) Set added in v1.1.0

func (n *NonceTracker) Set(addr common.Address, nonce *big.Int)

type NonceTrackerI added in v1.1.0

type NonceTrackerI interface {
	Get(common.Address) *big.Int
	Set(common.Address, *big.Int)
}

func NewNonceTracker added in v1.1.0

func NewNonceTracker(getter func(context.Context, common.Address, *big.Int) (*big.Int, error)) NonceTrackerI

NewNonceTracker

type NonceValue added in v1.2.9

type NonceValue struct {
	LastUpdated time.Time
	Previous    *big.Int
	Current     *big.Int
}

Jump to

Keyboard shortcuts

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