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)
- type ReSwapableBridgeBase
- func (b *ReSwapableBridgeBase) GetTimeoutConfig() uint64
- func (b *ReSwapableBridgeBase) IsTxTimeout(txValue, currentValue *uint64) bool
- func (b *ReSwapableBridgeBase) SetReswapMaxValueRate(rate uint64)
- func (b *ReSwapableBridgeBase) SetTimeoutConfig(txTimeout uint64)
- func (b *ReSwapableBridgeBase) SetTxTimeout(args *tokens.BuildTxArgs, txTimeout *uint64)
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)
Click to show internal directories.
Click to hide internal directories.