nonceHandlerV2

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 12 Imported by: 1 module, 1 package

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

This section is empty.

Functions

func NewAddressNonceHandler

func NewAddressNonceHandler(proxy interactors.Proxy, address sdkCore.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 sdkCore.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