Documentation ¶
Index ¶
- type NonceSetterBase
- func (b *NonceSetterBase) AdjustNonce(address string, value uint64) (nonce uint64)
- func (b *NonceSetterBase) AllocateNonce(args *tokens.BuildTxArgs) (nonce uint64, err error)
- func (b *NonceSetterBase) GetSwapNonce(address string) uint64
- func (b *NonceSetterBase) InitSwapNonce(br tokens.NonceSetter, address string, nonce uint64)
- func (b *NonceSetterBase) RecycleSwapNonce(sender string, nonce uint64)
- func (b *NonceSetterBase) SetNonce(address string, value uint64)
- func (b *NonceSetterBase) TryAllocateRecycleNonce(args *tokens.BuildTxArgs, lifetime int64) (nonce uint64, err error)
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
Click to show internal directories.
Click to hide internal directories.