nonceHandlerV2

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddressNonceHandler

func NewAddressNonceHandler(proxy interactors.Proxy, address erdgoCore.AddressHandler) (interactors.AddressNonceHandler, error)

NewAddressNonceHandler returns a new instance of a addressNonceHandler

func NewNonceTransactionHandlerV2

func NewNonceTransactionHandlerV2(args ArgsNonceTransactionsHandlerV2) (*nonceTransactionsHandlerV2, error)

NewNonceTransactionHandlerV2 will create a new instance of the nonceTransactionsHandlerV2. It requires a Proxy implementation and an interval at which the transactions sent are rechecked and eventually, resent.

func NewSingleTransactionAddressNonceHandler

func NewSingleTransactionAddressNonceHandler(proxy interactors.Proxy, address erdgoCore.AddressHandler) (*singleTransactionAddressNonceHandler, error)

NewSingleTransactionAddressNonceHandler returns a new instance of a singleTransactionAddressNonceHandler

Types

type AddressNonceHandlerCreator

type AddressNonceHandlerCreator struct{}

AddressNonceHandlerCreator is used to create addressNonceHandler instances

func (*AddressNonceHandlerCreator) Create

Create will create

func (*AddressNonceHandlerCreator) IsInterfaceNil

func (anhc *AddressNonceHandlerCreator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

type ArgsNonceTransactionsHandlerV2

type ArgsNonceTransactionsHandlerV2 struct {
	Proxy            interactors.Proxy
	IntervalToResend time.Duration
	Creator          interactors.AddressNonceHandlerCreator
}

ArgsNonceTransactionsHandlerV2 is the argument DTO for a nonce transactions handler component

type SingleTransactionAddressNonceHandlerCreator

type SingleTransactionAddressNonceHandlerCreator struct{}

SingleTransactionAddressNonceHandlerCreator is used to create singleTransactionAddressNonceHandler instances

func (*SingleTransactionAddressNonceHandlerCreator) Create

Create will create

func (*SingleTransactionAddressNonceHandlerCreator) IsInterfaceNil

func (anhc *SingleTransactionAddressNonceHandlerCreator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

Jump to

Keyboard shortcuts

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