base

package
v3.0.0-...-e8b7a4c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 9 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

type ReSwapableBridgeBase

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

func NewReSwapableBridgeBase

func NewReSwapableBridgeBase() *ReSwapableBridgeBase

NewNonceSetterBase new base nonce setter

func (*ReSwapableBridgeBase) GetTimeoutConfig

func (b *ReSwapableBridgeBase) GetTimeoutConfig() uint64

func (*ReSwapableBridgeBase) IsTxTimeout

func (b *ReSwapableBridgeBase) IsTxTimeout(txValue, currentValue *uint64) bool

func (*ReSwapableBridgeBase) SetReswapMaxValueRate

func (b *ReSwapableBridgeBase) SetReswapMaxValueRate(rate uint64)

func (*ReSwapableBridgeBase) SetTimeoutConfig

func (b *ReSwapableBridgeBase) SetTimeoutConfig(txTimeout uint64)

func (*ReSwapableBridgeBase) SetTxTimeout

func (b *ReSwapableBridgeBase) SetTxTimeout(args *tokens.BuildTxArgs, txTimeout *uint64)

Jump to

Keyboard shortcuts

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