Versions in this module Expand all Collapse all v0 v0.3.10 Nov 26, 2021 Changes in this version + func AdjustGatewayOrder(isSrc bool) + func GetLatestScanHeight(isSrc bool) uint64 + func GetP2shBindAddress(p2shAddress string) (bindAddress string) + func IsAddressRegistered(address string) bool + func IsSwapAlreadyExistRegisterError(err error) bool + func IsSwapExist(txid, pairID, bind string, isSwapin bool) bool + func LoopGetLatestBlockNumber(b tokens.CrossChainBridge) uint64 + func RegisterP2shSwapin(txid string, swapInfo *tokens.TxSwapInfo, verifyError error) + func RegisterSwapin(txid string, swapInfos []*tokens.TxSwapInfo, verifyErrors []error) + func RegisterSwapout(txid string, swapInfos []*tokens.TxSwapInfo, verifyErrors []error) + func UpdateLatestScanInfo(isSrc bool, height uint64) error + type CachedScannedBlocks struct + func NewCachedScannedBlocks(capacity int) *CachedScannedBlocks + func (c *CachedScannedBlocks) CacheScannedBlock(hash string, height uint64) + func (c *CachedScannedBlocks) IsBlockScanned(blockHash string) bool + type CachedScannedTxs struct + func NewCachedScannedTxs(capacity int) *CachedScannedTxs + func (c *CachedScannedTxs) CacheScannedTx(hash string) + func (c *CachedScannedTxs) IsTxScanned(txHash string) bool + type WeightedString struct + Content string + Weight uint64 + type WeightedStringSlice []*WeightedString + func (s WeightedStringSlice) Add(content string, weight uint64) WeightedStringSlice + func (s WeightedStringSlice) GetStrings() (result []string) + func (s WeightedStringSlice) Len() int + func (s WeightedStringSlice) Less(i, j int) bool + func (s WeightedStringSlice) Reverse() + func (s WeightedStringSlice) Sort() WeightedStringSlice + func (s WeightedStringSlice) String() (result string) + func (s WeightedStringSlice) Swap(i, j int) v0.3.9-1 Nov 26, 2021