nonce

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeWindow

type TimeWindow struct {
	// contains filtered or unexported fields
}

func NewTimeWindow

func NewTimeWindow(address ethereum.Address, window uint64) *TimeWindow

be very very careful to set `window` param, if we set it to high value, it can lead to nonce lost making the whole pricing operation stuck

func (*TimeWindow) GetAddress

func (tw *TimeWindow) GetAddress() ethereum.Address

func (*TimeWindow) GetNextNonce

func (tw *TimeWindow) GetNextNonce(ethclient *ethclient.Client) (*big.Int, error)

func (*TimeWindow) MinedNonce

func (tw *TimeWindow) MinedNonce(ethclient *ethclient.Client) (*big.Int, error)

Jump to

Keyboard shortcuts

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