# Functions
AddPaymentUTXOsToTx adds the given payment utxos to the tx.
AddUTXOToTx adds the given utxo to the specified tx Make sure the utxo is valid.
AssetTypeFromDenom returns the asset type according to the denom.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BuildBtcBatchWithdrawPsbt builds the psbt to perform btc batch withdrawal.
BuildEdictScript builds the edict script.
BuildPsbt builds a bitcoin psbt from the given params.
BuildRunesPsbt builds a bitcoin psbt for runes edict from the given params.
BuildTransferAllBtcPsbt builds a bitcoin psbt to transfer all given btc.
BuildTransferAllRunesPsbt builds a bitcoin psbt to transfer all specified runes.
BuildUnsignedTransaction builds an unsigned tx from the given params.
BuildUnsignedTransactionWithoutExtraChange builds an unsigned tx from the given params.
CheckDKGCompletionRequests checks if the vaults of all the DKG completion requests are same.
CheckRunesDepositTransaction checks if the given tx is valid runes deposit tx.
CheckTransactionWeight checks if the weight of the given tx exceeds the allowed maximum weight.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultGenesis returns the default genesis state.
No description provided by the author
DefaultParams returns a default set of parameters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExtractCommonRecipientAddr extracts the recipient address for minting voucher token in the common case.
ExtractRecipientAddr extracts the recipient address for minting voucher token by the type of the asset to be deposited.
ExtractRunesRecipientAddr extracts the recipient address for minting runes voucher token.
GetChangeUTXO returns the change output from the given tx Make sure that the tx is valid and the change output is the last output.
GetRunesChangeUTXO gets the runes change utxo.
GetSigMsgFromDKGCompletionReq gets the msg to be signed from the given DKG completion request.
GetTxVirtualSize gets the virtual size of the given tx.
IsDustOut returns true if the given output is dust, false otherwise.
IsOpReturnOutput returns true if the script of the given out starts with OP_RETURN.
IsValidBtcAddress returns true if the given address is a standard bitcoin address, false otherwise.
MarshalRuneAmount marshals the given amount.
MarshalRuneAmountFromString marshals the given amount string.
MarshalRuneIdFromString marshals the given id string.
MustPkScriptFromAddress returns the public key script of the given address Panic if any error occurred.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewParams creates a new Params instance.
No description provided by the author
ParseEdict parses the given payload to edict.
ParseEdicts parses the given payload to a set of edicts.
ParseRunes parses the potential runes protocol from the given tx; If no OP_RETURN found, no error returned Only support edicts for now.
ParticipantExists returns true if the given address is a participant, false otherwise.
PopulateTxWithDummyTaprootWitness populates the given tx with the dummy taproot witness.
PopulateTxWithDummyWitness populates the given tx with the dummy witness Assume that the utxo script type is the witness type.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
RuneAmountFromString converts the given string to the rune amount Panic if any error occurred.
SelectVaultByAddress returns the vault by the given address.
SelectVaultByAssetType returns the vault by the asset type of the highest version.
SelectVaultByPkScript returns the vault by the given pk script for convenience.
SelectVaultByPubKey returns the vault by the given public key.
UnmarshalRuneAmount unmarshals the given bytes to the rune amount.
UnmarshalRuneId unmarshals the given bytes to the rune id.
VerifyMerkleProof verifies the merkle proof.
VerifyPsbtSignatures verifies the signatures of the given psbt Note: assume that the psbt is finalized and all inputs are witness type.
VerifySignature verifies the given signature against the given DKG completion request.
# Constants
BRC20: ordi, sats.
BTC.
RUNE: dog•go•to•the•moon.
Unspecified asset type.
default sig hash type.
DKG_REQUEST_STATUS_COMPLETED defines the status of the DKG request which is completed.
DKG_REQUEST_STATUS_FAILED defines the status of the DKG request which failed.
DKG_REQUEST_STATUS_PENDING defines the status of the DKG request which is pending.
DKG_REQUEST_STATUS_TIMEDOUT defines the status of the DKG request which timed out.
DKG_REQUEST_STATUS_UNSPECIFIED defines the unknown DKG request status.
the number of components of each edict.
runes magic number.
transaction input sequence intended to identify the txs built by the bridge (for relayers' convenience).
maximum allowed number of the non-vault outputs for the btc deposit transaction.
default maximum allowed transaction weight.
MemStoreKey defines the in-memory store key.
default minimum relay fee.
ModuleName defines the module name.
RouterKey defines the module's message routing key.
allowed number of edicts in the runes payload for the runes deposit transaction.
maximum allowed number of the non-vault outputs for the runes deposit transaction.
sats in the runes output by default.
runes protocol name.
SIGNING_STATUS_BROADCASTED - The signing request is broadcasted.
SIGNING_STATUS_CONFIRMED - The signing request is confirmed.
SIGNING_STATUS_FAILED - The signing request failed to be signed or broadcast due to unexpected exceptions.
SIGNING_STATUS_PENDING - The signing request is pending.
SIGNING_STATUS_UNSPECIFIED - Default value, should not be used.
StoreKey defines the primary module store key.
tag indicating that the following are edicts.
default tx version.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
key for the best block height.
prefix for each key to a block header, for a hash.
prefix for each key to a block hash, for a height.
key for the bitcoin network fee rate.
prefix for each key to a minted tx hash.
prefix for each key to an owned runes utxo.
prefix for each key to an owned utxo by amount.
prefix for each key to an owned utxo.
prefix for each key to a signing request by status.
prefix for each key to a signing request from tx hash.
prefix for each key to a signing request.
key for the signing request sequence.
prefix for each key to a utxo.
prefix for each key to a withdrawal request by tx hash.
prefix for each key to a withdrawal request.
prefix for each key to a pending btc withdrawal request.
key for the withdrawal request sequence.
default btc batch withdrawal period.
1 day.
default maximum number of btc batch withdrawal per batch.
default maximum number of utxos used to build the signing request.
14 days.
5 mins.
prefix for each key to a DKG completion request.
key for the DKG request id.
prefix for each key to a DKG request.
No description provided by the author
No description provided by the author
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
x/btcbridge module sentinel errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
key for vault version increased by 1 once updated.
# Structs
Bitcoin Block Header.
BTC UTXO Consolidation.
DKG Completion Request.
DKG Participant.
DKG Request.
Rune Edict.
GenesisState defines the btc bridge module's genesis state.
MsgCompleteDKG is the Msg/CompleteDKG request type.
MsgCompleteDKGResponse defines the Msg/CompleteDKG response type.
MsgConsolidateVaults is the Msg/ConsolidateVaults request type.
MsgConsolidateVaultsResponse defines the Msg/ConsolidateVaults response type.
MsgInitiateDKG is the Msg/InitiateDKG request type.
MsgInitiateDKGResponse defines the Msg/InitiateDKG response type.
MsgSubmitBlockHeaders defines the Msg/SubmitBlockHeaders request type.
MsgSubmitBlockHeadersResponse defines the Msg/SubmitBlockHeaders response type.
MsgSubmitDepositTransaction defines the Msg/SubmitDepositTransaction request type.
MsgSubmitDepositTransactionResponse defines the Msg/SubmitDepositTransaction response type.
MsgSubmitFeeRate defines the Msg/SubmitFeeRate request type.
MsgSubmitFeeRateResponse defines the Msg/SubmitFeeRate response type.
MsgSubmitSignatures defines the Msg/SubmitSignatures request type.
MsgSubmitSignaturesResponse defines the Msg/SubmitSignatures response type.
MsgSubmitWithdrawTransaction defines the Msg/SubmitWithdrawTransaction request type.
MsgSubmitWithdrawTransactionResponse defines the Msg/SubmitWithdrawTransaction response type.
MsgTerminateSigningRequests is the Msg/TerminateSigningRequests request type.
MsgTerminateSigningRequestsResponse defines the Msg/TerminateSigningRequests response type.
MsgTransferVault is the Msg/TransferVault request type.
MsgTransferVaultResponse defines the Msg/TransferVault response type.
MsgUpdateParams is the Msg/UpdateParams request type.
MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
MsgUpdateTrustedNonBtcRelayers defines the Msg/UpdateTrustedNonBtcRelayers request type.
MsgUpdateTrustedNonBtcRelayersResponse defines the Msg/UpdateTrustedNonBtcRelayers response type.
MsgUpdateTrustedOracles defines the Msg/UpdateTrustedOracles request type.
MsgUpdateTrustedOraclesResponse defines the Msg/UpdateTrustedOracles response type.
MsgWithdrawToBitcoin defines the Msg/WithdrawToBitcoin request type.
MsgWithdrawToBitcoinResponse defines the Msg/WithdrawToBitcoin response type.
Params defines the parameters for the module.
ParamsV1 defines the parameters for the module v1.
ProtocolFees defines the params related to the protocol fees.
ProtocolLimits defines the params related to the the protocol limitations.
QueryAllDKGRequestsRequest is the request type for the Query/AllDKGRequests RPC method.
QueryAllDKGRequestsResponse is the response type for the Query/AllDKGRequests RPC method.
QueryBlockHeaderByHashRequest is the request type for the Query/BlockHeaderByHash RPC method.
QueryBlockHeaderByHashResponse is the response type for the Query/BlockHeaderByHash RPC method.
QueryBlockHeaderByHeightRequest is the request type for the Query/BlockHeaderByHeight RPC method.
QueryBlockHeaderByHeightResponse is the response type for the Query/BlockHeaderByHeight RPC method.
QueryChainTipRequest is request type for the Query/ChainTip RPC method.
QueryChainTipResponse is response type for the Query/ChainTip RPC method.
QueryDKGCompletionRequestsRequest is the request type for the Query/DKGCompletionRequests RPC method.
QueryDKGCompletionRequestsResponse is the response type for the Query/DKGCompletionRequests RPC method.
QueryDKGRequestRequest is the request type for the Query/DKGRequest RPC method.
QueryDKGRequestResponse is the response type for the Query/DKGRequest RPC method.
QueryDKGRequestsRequest is the request type for the Query/DKGRequests RPC method.
QueryDKGRequestsResponse is the response type for the Query/DKGRequests RPC method.
QueryFeeRateRequest is request type for the Query/FeeRate RPC method.
QueryFeeRateResponse is response type for the Query/FeeRate RPC method.
QueryParamsRequest is request type for the Query/Params RPC method.
QueryParamsResponse is response type for the Query/Params RPC method.
QueryPendingBtcWithdrawRequestsRequest is request type for the Query/PendingBtcWithdrawRequests RPC method.
QueryPendingBtcWithdrawRequestsResponse is response type for the Query/PendingBtcWithdrawRequests RPC method.
QuerySigningRequestByTxHashRequest is request type for the Query/SigningRequestByTxHash RPC method.
QuerySigningRequestByTxHashResponse is response type for the Query/SigningRequestByTxHashResponse RPC method.
QuerySigningRequestsByAddressRequest is request type for the Query/SigningRequestsByAddress RPC method.
QuerySigningRequestsByAddressResponse is response type for the Query/SigningRequestsByAddress RPC method.
QuerySigningRequestsRequest is request type for the Query/SigningRequests RPC method.
QuerySigningRequestsResponse is response type for the Query/SigningRequests RPC method.
QueryUTXOCountAndBalancesByAddressRequest is the request type for the Query/UTXOCountAndBalancesByAddress RPC method.
QueryUTXOCountAndBalancesByAddressResponse is the response type for the Query/UTXOCountAndBalancesByAddress RPC method.
QueryUTXOsByAddressRequest is the request type for the Query/UTXOsByAddress RPC method.
QueryUTXOsByAddressResponse is the response type for the Query/UTXOsByAddress RPC method.
QueryUTXOsRequest is the request type for the Query/UTXOs RPC method.
QueryUTXOsResponse is the response type for the Query/UTXOs RPC method.
QueryWithdrawalNetworkFeeRequest is request type for the Query/WithdrawalNetworkFee RPC method.
QueryWithdrawalNetworkFeeResponse is response type for the Query/WithdrawalNetworkFee RPC method.
QueryWithdrawRequestsByAddressRequest is request type for the Query/WithdrawRequestsByAddress RPC method.
QueryWithdrawRequestsByAddressResponse is response type for the Query/WithdrawRequestsByAddress RPC method.
QueryWithdrawRequestsByTxHashRequest is request type for the Query/WithdrawRequestsByTxHash RPC method.
QueryWithdrawRequestsByTxHashResponse is response type for the Query/WithdrawRequestsByTxHash RPC method.
Rune Balance.
Rune ID.
Runes UTXO Consolidation.
Bitcoin Signing Request.
Bitcoin Signing Request V1.
TSSParams defines the params related to TSS.
TSSParamsV1 defines the params related to TSS for v1.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Bitcoin UTXO.
Vault defines the asset vault.
No description provided by the author
Withdrawal Request.
# Interfaces
AccountKeeper defines the expected account keeper used for simulations (noalias).
BankKeeper defines the expected interface needed to retrieve account balances.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
StakingKeeper defines the expected staking keeper used to retrieve validator (noalias).
UTXOIterator defines the interface of the iterator over the utxos.
# Type aliases
AssetType defines the type of asset.
No description provided by the author
RuneBalances defines a set of rune balances.
Bitcoin Signing Status.