Versions in this module Expand all Collapse all v1 v1.21.0 Feb 1, 2024 Changes in this version + const DefaultHistoryDepth + const DefaultIdleBackOffTime + const DefaultRestartBackoffTime + const DefaultTransactionLimit + func Initialize(ctx context.Context, config Config, spvChain Chain, btcDiffChain btcdiff.Chain, ...) + func SubmitDepositSweepProof(transactionHash bitcoin.Hash, requiredConfirmations uint, ...) error + func SubmitRedemptionProof(transactionHash bitcoin.Hash, requiredConfirmations uint, ...) error + type Chain interface + BlockCounter func() (chain.BlockCounter, error) + ComputeMainUtxoHash func(mainUtxo *bitcoin.UnspentTransactionOutput) [32]byte + GetDepositRequest func(fundingTxHash bitcoin.Hash, fundingOutputIndex uint32) (*tbtc.DepositChainRequest, bool, error) + GetPendingRedemptionRequest func(walletPublicKeyHash [20]byte, redeemerOutputScript bitcoin.Script) (*tbtc.RedemptionRequest, bool, error) + GetWallet func(walletPublicKeyHash [20]byte) (*tbtc.WalletChainData, error) + PastDepositRevealedEvents func(filter *tbtc.DepositRevealedEventFilter) ([]*tbtc.DepositRevealedEvent, error) + PastRedemptionRequestedEvents func(filter *tbtc.RedemptionRequestedEventFilter) ([]*tbtc.RedemptionRequestedEvent, error) + SubmitDepositSweepProofWithReimbursement func(transaction *bitcoin.Transaction, proof *bitcoin.SpvProof, ...) error + SubmitRedemptionProofWithReimbursement func(transaction *bitcoin.Transaction, proof *bitcoin.SpvProof, ...) error + TxProofDifficultyFactor func() (*big.Int, error) + type Config struct + Enabled bool + HistoryDepth uint64 + IdleBackoffTime time.Duration + RestartBackoffTime time.Duration + TransactionLimit int