base

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonceSetterBase

type NonceSetterBase struct {
	*tokens.CrossChainBridgeBase
	// contains filtered or unexported fields
}

NonceSetterBase base nonce setter

func NewNonceSetterBase

func NewNonceSetterBase() *NonceSetterBase

NewNonceSetterBase new base nonce setter

func (*NonceSetterBase) AdjustNonce

func (b *NonceSetterBase) AdjustNonce(address string, value uint64) (nonce uint64)

AdjustNonce adjust account nonce (eth like chain)

func (*NonceSetterBase) AllocateNonce

func (b *NonceSetterBase) AllocateNonce(args *tokens.BuildTxArgs) (nonce uint64, err error)

AllocateNonce allocate nonce

func (*NonceSetterBase) GetSwapNonce

func (b *NonceSetterBase) GetSwapNonce(address string) uint64

GetSwapNonce get current swap nonce

func (*NonceSetterBase) InitSwapNonce

func (b *NonceSetterBase) InitSwapNonce(br tokens.NonceSetter, address string, nonce uint64)

InitSwapNonce init swap nonce

func (*NonceSetterBase) RecycleSwapNonce

func (b *NonceSetterBase) RecycleSwapNonce(sender string, nonce uint64)

RecycleSwapNonce recycle swap nonce

func (*NonceSetterBase) SetNonce

func (b *NonceSetterBase) SetNonce(address string, value uint64)

SetNonce set account nonce (eth like chain)

func (*NonceSetterBase) TryAllocateRecycleNonce

func (b *NonceSetterBase) TryAllocateRecycleNonce(args *tokens.BuildTxArgs, lifetime int64) (nonce uint64, err error)

TryAllocateRecycleNonce try allocate recycle swap nonce

Jump to

Keyboard shortcuts

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