@babylonlabs-io/ts-sdk 0.56.1 → 0.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BTCVaultRegistry.abi-AUAyCHal.cjs +2 -0
- package/dist/BTCVaultRegistry.abi-AUAyCHal.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-Chs4AFBj.js → BTCVaultRegistry.abi-CixOlp3B.js} +73 -14
- package/dist/BTCVaultRegistry.abi-CixOlp3B.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js +111 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs +2 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs.map +1 -0
- package/dist/{PeginManager-Ba7Cr51Z.js → PeginManager-CnX3uFb0.js} +5 -5
- package/dist/{PeginManager-Ba7Cr51Z.js.map → PeginManager-CnX3uFb0.js.map} +1 -1
- package/dist/PeginManager-iDbqXsKD.cjs +2 -0
- package/dist/{PeginManager-CcjGRo4O.cjs.map → PeginManager-iDbqXsKD.cjs.map} +1 -1
- package/dist/ProtocolParams.abi-C8U7BHCS.cjs +2 -0
- package/dist/ProtocolParams.abi-C8U7BHCS.cjs.map +1 -0
- package/dist/{ApplicationRegistry.abi-w5prf7Ig.js → ProtocolParams.abi-CV938AYZ.js} +150 -80
- package/dist/ProtocolParams.abi-CV938AYZ.js.map +1 -0
- package/dist/batchPoll-BXIy3R7h.cjs +2 -0
- package/dist/batchPoll-BXIy3R7h.cjs.map +1 -0
- package/dist/{primeVpAuth-Caa5J_uv.js → batchPoll-DTYXoTEc.js} +515 -403
- package/dist/batchPoll-DTYXoTEc.js.map +1 -0
- package/dist/buildAndBroadcastRefund-4uAl7OIk.cjs +2 -0
- package/dist/buildAndBroadcastRefund-4uAl7OIk.cjs.map +1 -0
- package/dist/{buildAndBroadcastRefund-BtXUqBkb.js → buildAndBroadcastRefund-Bo3AlqCk.js} +627 -452
- package/dist/buildAndBroadcastRefund-Bo3AlqCk.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +168 -157
- package/dist/index.js.map +1 -1
- package/dist/json-rpc-client-BiAmg_ho.cjs +2 -0
- package/dist/json-rpc-client-BiAmg_ho.cjs.map +1 -0
- package/dist/json-rpc-client-DuUARJvV.js +334 -0
- package/dist/json-rpc-client-DuUARJvV.js.map +1 -0
- package/dist/mempoolApi-C0olk43O.js +536 -0
- package/dist/mempoolApi-C0olk43O.js.map +1 -0
- package/dist/mempoolApi-Dsm2VPXp.cjs +2 -0
- package/dist/mempoolApi-Dsm2VPXp.cjs.map +1 -0
- package/dist/{noPayout-CihCk1HE.js → noPayout-CI4l1qu2.js} +2 -2
- package/dist/{noPayout-CihCk1HE.js.map → noPayout-CI4l1qu2.js.map} +1 -1
- package/dist/{noPayout-Cb8vFrkY.cjs → noPayout-Djrv31V5.cjs} +2 -2
- package/dist/{noPayout-Cb8vFrkY.cjs.map → noPayout-Djrv31V5.cjs.map} +1 -1
- package/dist/onChainBtcPubkey-Cd9kpz-S.cjs +2 -0
- package/dist/onChainBtcPubkey-Cd9kpz-S.cjs.map +1 -0
- package/dist/onChainBtcPubkey-aPY5ib3Q.js +19 -0
- package/dist/onChainBtcPubkey-aPY5ib3Q.js.map +1 -0
- package/dist/signPsbtsWithFallback-C01N6Kdo.cjs +2 -0
- package/dist/signPsbtsWithFallback-C01N6Kdo.cjs.map +1 -0
- package/dist/{PayoutManager-BVgmuKuK.js → signPsbtsWithFallback-CzZFZf0I.js} +105 -101
- package/dist/signPsbtsWithFallback-CzZFZf0I.js.map +1 -0
- package/dist/tbv/core/clients/eth/index.d.ts +5 -3
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts +16 -0
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts +33 -0
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/types.d.ts +122 -3
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +25 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +36 -32
- package/dist/tbv/core/clients/index.js.map +1 -1
- package/dist/tbv/core/clients/vault-provider/index.d.ts +4 -4
- package/dist/tbv/core/clients/vault-provider/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/json-rpc-client.d.ts +36 -14
- package/dist/tbv/core/clients/vault-provider/json-rpc-client.d.ts.map +1 -1
- package/dist/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.d.ts +2 -0
- package/dist/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts +66 -0
- package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +50 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.d.ts +111 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +36 -0
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.d.ts +2 -1
- package/dist/tbv/core/contracts/index.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.js +8 -6
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +167 -156
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/PayoutManager.d.ts +8 -0
- package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.js +2 -2
- package/dist/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.d.ts +2 -0
- package/dist/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts +5 -5
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/payout.d.ts +23 -0
- package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/standardPayoutScript.d.ts +41 -0
- package/dist/tbv/core/primitives/psbt/standardPayoutScript.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts +7 -6
- package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +10 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +9 -0
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts +38 -1
- package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/verifyRegisteredParticipantKeys.d.ts +42 -0
- package/dist/tbv/core/services/deposit/verifyRegisteredParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.d.ts +1 -0
- package/dist/tbv/core/services/index.d.ts.map +1 -1
- package/dist/tbv/core/services/index.js +36 -31
- package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts +55 -0
- package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/__tests__/resolveParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/participants/__tests__/resolveParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/index.d.ts +8 -0
- package/dist/tbv/core/services/participants/index.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts +26 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/types.d.ts +62 -0
- package/dist/tbv/core/services/participants/types.d.ts.map +1 -0
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +167 -156
- package/dist/tbv/index.js.map +1 -1
- package/dist/verifyScriptPathSchnorrSignature-C-84KJ6U.cjs +2 -0
- package/dist/verifyScriptPathSchnorrSignature-C-84KJ6U.cjs.map +1 -0
- package/dist/{verifyScriptPathSchnorrSignature-CgrnAjMW.js → verifyScriptPathSchnorrSignature-Xoo9DOHW.js} +359 -301
- package/dist/verifyScriptPathSchnorrSignature-Xoo9DOHW.js.map +1 -0
- package/package.json +1 -1
- package/dist/ApplicationRegistry.abi-CLaa6E99.cjs +0 -2
- package/dist/ApplicationRegistry.abi-CLaa6E99.cjs.map +0 -1
- package/dist/ApplicationRegistry.abi-w5prf7Ig.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-Chs4AFBj.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-JdeqLz4x.cjs +0 -2
- package/dist/BTCVaultRegistry.abi-JdeqLz4x.cjs.map +0 -1
- package/dist/PayoutManager-BVgmuKuK.js.map +0 -1
- package/dist/PayoutManager-Cu4_l-_Y.cjs +0 -2
- package/dist/PayoutManager-Cu4_l-_Y.cjs.map +0 -1
- package/dist/PeginManager-CcjGRo4O.cjs +0 -2
- package/dist/buildAndBroadcastRefund-BtXUqBkb.js.map +0 -1
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs +0 -2
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs.map +0 -1
- package/dist/mempoolApi-DkyKmmgI.cjs +0 -2
- package/dist/mempoolApi-DkyKmmgI.cjs.map +0 -1
- package/dist/mempoolApi-lpJdvPkK.js +0 -483
- package/dist/mempoolApi-lpJdvPkK.js.map +0 -1
- package/dist/primeVpAuth-Caa5J_uv.js.map +0 -1
- package/dist/primeVpAuth-y-4A88ah.cjs +0 -2
- package/dist/primeVpAuth-y-4A88ah.cjs.map +0 -1
- package/dist/types-CQDRQvV-.js +0 -324
- package/dist/types-CQDRQvV-.js.map +0 -1
- package/dist/types-WA0LrDk1.cjs +0 -2
- package/dist/types-WA0LrDk1.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs +0 -2
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,UAAU,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { A as o, P as t } from "../../../
|
|
2
|
-
import { B as e } from "../../../BTCVaultRegistry.abi-
|
|
3
|
-
import {
|
|
1
|
+
import { A as o, P as t } from "../../../ProtocolParams.abi-CV938AYZ.js";
|
|
2
|
+
import { B as e } from "../../../BTCVaultRegistry.abi-CixOlp3B.js";
|
|
3
|
+
import { B as C } from "../../../BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
|
|
4
|
+
import { C as i, e as n, g as p, h as A, i as R } from "../../../errors-Blc-JWnI.js";
|
|
4
5
|
export {
|
|
5
6
|
o as ApplicationRegistryABI,
|
|
6
7
|
e as BTCVaultRegistryABI,
|
|
7
|
-
C as
|
|
8
|
+
C as BTCVaultRegistryKeyEpochsABI,
|
|
9
|
+
i as CONTRACT_ERRORS,
|
|
8
10
|
t as ProtocolParamsABI,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
n as extractErrorData,
|
|
12
|
+
p as getContractErrorMessage,
|
|
11
13
|
A as handleContractError,
|
|
12
14
|
R as isKnownContractError
|
|
13
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/tbv/core/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../challengeAssert-Cu-PtJ1g.cjs"),R=require("../../constants-BqU1Uz15.cjs"),n=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../verifyScriptPathSchnorrSignature-BZhX-SOd.cjs"),S=require("../../peginInput-CAiiDZeO.cjs"),E=require("../../noPayout-Cb8vFrkY.cjs"),t=require("../../bitcoin-CHfKAhcI.cjs"),l=require("../../validation-CDbOaDj7.cjs"),m=require("../../signing-Bnsro0hE.cjs"),c=require("../../PeginManager-CcjGRo4O.cjs"),d=require("../../PayoutManager-Cu4_l-_Y.cjs"),_=require("../../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../../BTCVaultRegistry.abi-JdeqLz4x.cjs"),P=require("../../errors-CGcNP0rV.cjs"),A=require("../../deriveVaultRoot-CebLadyJ.cjs"),b=require("../../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../../fundPeginTransaction-BLD8FRL9.cjs"),p=require("../../reservation-ClEs2X0H.cjs"),i=require("../../mempoolApi-DkyKmmgI.cjs"),a=require("../../primeVpAuth-y-4A88ah.cjs"),s=require("../../types-WA0LrDk1.cjs"),I=require("../../errors-Bfjxg_iJ.cjs"),e=require("../../buildAndBroadcastRefund-Cq01wyZX.cjs"),T=require("../../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=g.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=g.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>n.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>n.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>n.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>n.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>n.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>n.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>n.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>n.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>n.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=S.buildPeginInputPsbt;exports.extractPeginInputSignature=S.extractPeginInputSignature;exports.finalizePeginInputPsbt=S.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.combineAbortSignals=l.combineAbortSignals;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.PeginManager=c.PeginManager;exports.buildDepositTerms=c.buildDepositTerms;exports.computeWotsBlockPublicKeysHash=c.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=c.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=c.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=d.PayoutManager;exports.computeHashlock=d.computeHashlock;exports.forwardDepositApproval=d.forwardDepositApproval;exports.supportsDepositApproval=d.supportsDepositApproval;exports.validateSecretAgainstHashlock=d.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=P.CONTRACT_ERRORS;exports.extractErrorData=P.extractErrorData;exports.getContractErrorMessage=P.getContractErrorMessage;exports.handleContractError=P.handleContractError;exports.isKnownContractError=P.isKnownContractError;exports.VAULT_APP_NAME=A.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=A.buildFundingOutpointsCommitment;exports.buildVaultContext=A.buildVaultContext;exports.deriveVaultRoot=A.deriveVaultRoot;exports.parseFundingOutpointsFromTx=b.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=p.UtxoNotAvailableError;exports.assertUtxosAvailable=p.assertUtxosAvailable;exports.extractInputsFromTransaction=p.extractInputsFromTransaction;exports.findOverlappingPendingVaults=p.findOverlappingPendingVaults;exports.validateUtxosAvailable=p.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=s.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=s.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=s.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;exports.isWotsMismatchError=I.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=T.ContractStatus;exports.PeginAction=T.PeginAction;exports.canPerformAction=T.canPerformAction;exports.getPeginProtocolState=T.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=T.isActivationDeadlinePassedOnChain;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../../challengeAssert-Cu-PtJ1g.cjs"),_=require("../../constants-BqU1Uz15.cjs"),n=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../verifyScriptPathSchnorrSignature-C-84KJ6U.cjs"),g=require("../../peginInput-CAiiDZeO.cjs"),S=require("../../noPayout-Djrv31V5.cjs"),r=require("../../bitcoin-CHfKAhcI.cjs"),l=require("../../validation-CDbOaDj7.cjs"),m=require("../../signing-Bnsro0hE.cjs"),c=require("../../PeginManager-iDbqXsKD.cjs"),P=require("../../signPsbtsWithFallback-C01N6Kdo.cjs"),R=require("../../ProtocolParams.abi-C8U7BHCS.cjs"),O=require("../../BTCVaultRegistry.abi-AUAyCHal.cjs"),b=require("../../BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs"),d=require("../../errors-CGcNP0rV.cjs"),T=require("../../deriveVaultRoot-CebLadyJ.cjs"),y=require("../../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),i=require("../../fundPeginTransaction-BLD8FRL9.cjs"),p=require("../../reservation-ClEs2X0H.cjs"),a=require("../../mempoolApi-Dsm2VPXp.cjs"),t=require("../../batchPoll-BXIy3R7h.cjs"),s=require("../../json-rpc-client-BiAmg_ho.cjs"),C=require("../../onChainBtcPubkey-Cd9kpz-S.cjs"),V=require("../../errors-Bfjxg_iJ.cjs"),e=require("../../buildAndBroadcastRefund-4uAl7OIk.cjs"),E=require("../../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=A.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=A.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=_.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>n.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>n.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>n.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>n.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>n.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>n.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>n.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>n.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>n.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=g.buildPeginInputPsbt;exports.extractPeginInputSignature=g.extractPeginInputSignature;exports.finalizePeginInputPsbt=g.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=S.buildNoPayoutPsbt;exports.buildRefundPsbt=S.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=r.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=r.deriveNativeSegwitAddress;exports.deriveTaprootAddress=r.deriveTaprootAddress;exports.ensureHexPrefix=r.ensureHexPrefix;exports.formatSatoshisToBtc=r.formatSatoshisToBtc;exports.getNetwork=r.getNetwork;exports.getSortedXOnlyPubkeys=r.getSortedXOnlyPubkeys;exports.hexToUint8Array=r.hexToUint8Array;exports.isAddressFromPublicKey=r.isAddressFromPublicKey;exports.isValidHex=r.isValidHex;exports.processPublicKeyToXOnly=r.processPublicKeyToXOnly;exports.stripHexPrefix=r.stripHexPrefix;exports.toXOnly=r.toXOnly;exports.uint8ArrayToHex=r.uint8ArrayToHex;exports.validateWalletPubkey=r.validateWalletPubkey;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.combineAbortSignals=l.combineAbortSignals;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.PeginManager=c.PeginManager;exports.buildDepositTerms=c.buildDepositTerms;exports.computeWotsBlockPublicKeysHash=c.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=c.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=c.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=P.PayoutManager;exports.computeHashlock=P.computeHashlock;exports.forwardDepositApproval=P.forwardDepositApproval;exports.supportsDepositApproval=P.supportsDepositApproval;exports.validateSecretAgainstHashlock=P.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=R.ApplicationRegistryABI;exports.ProtocolParamsABI=R.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=b.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=d.CONTRACT_ERRORS;exports.extractErrorData=d.extractErrorData;exports.getContractErrorMessage=d.getContractErrorMessage;exports.handleContractError=d.handleContractError;exports.isKnownContractError=d.isKnownContractError;exports.VAULT_APP_NAME=T.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=T.buildFundingOutpointsCommitment;exports.buildVaultContext=T.buildVaultContext;exports.deriveVaultRoot=T.deriveVaultRoot;exports.parseFundingOutpointsFromTx=y.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=i.BTC_DUST_SAT;exports.DUST_THRESHOLD=i.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=i.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=i.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=i.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=i.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=i.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=i.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=i.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=i.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=i.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=i.fundPeginTransaction;exports.parseUnfundedWasmTransaction=i.parseUnfundedWasmTransaction;exports.peginOutputCount=i.peginOutputCount;exports.rateBasedTxBufferFee=i.rateBasedTxBufferFee;exports.UtxoNotAvailableError=p.UtxoNotAvailableError;exports.assertUtxosAvailable=p.assertUtxosAvailable;exports.extractInputsFromTransaction=p.extractInputsFromTransaction;exports.findOverlappingPendingVaults=p.findOverlappingPendingVaults;exports.validateUtxosAvailable=p.validateUtxosAvailable;exports.MEMPOOL_API_URLS=a.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=a.ViemVaultRegistryReader;exports.getAddressTxs=a.getAddressTxs;exports.getAddressUtxos=a.getAddressUtxos;exports.getMempoolApiUrl=a.getMempoolApiUrl;exports.getNetworkFees=a.getNetworkFees;exports.getOutspend=a.getOutspend;exports.getTipHeight=a.getTipHeight;exports.getTxHex=a.getTxHex;exports.getTxInfo=a.getTxInfo;exports.getUtxoInfo=a.getUtxoInfo;exports.pushTx=a.pushTx;exports.validateOffchainParams=a.validateOffchainParams;exports.validatePegInConfiguration=a.validatePegInConfiguration;exports.validateTBVProtocolParams=a.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=t.OnChainBtcVaultStatus;exports.ServerIdentityError=t.ServerIdentityError;exports.VaultProviderRpcClient=t.VaultProviderRpcClient;exports.ViemOperationKeyReader=t.ViemOperationKeyReader;exports.ViemProtocolParamsReader=t.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=t.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=t.ViemVaultKeeperReader;exports.VpResponseValidationError=t.VpResponseValidationError;exports.VpTokenRegistry=t.VpTokenRegistry;exports.batchPollByProvider=t.batchPollByProvider;exports.createAuthenticatedVpClient=t.createAuthenticatedVpClient;exports.primeVpTokenRegistry=t.primeVpTokenRegistry;exports.resolveProtocolAddresses=t.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=t.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=t.verifyServerIdentity;exports.vpTokenRegistry=t.vpTokenRegistry;exports.AUTH_REJECTED_RPC_CODE=s.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=s.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=s.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=s.isAuthRejectedError;exports.assertOnChainBtcPubkey=C.assertOnChainBtcPubkey;exports.isWotsMismatchError=V.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.ParticipantKeyDriftError=e.ParticipantKeyDriftError;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isParticipantKeyDriftError=e.isParticipantKeyDriftError;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.resolveCurrentParticipantKeys=e.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=e.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=e.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=E.ContractStatus;exports.PeginAction=E.PeginAction;exports.canPerformAction=E.canPerformAction;exports.getPeginProtocolState=E.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=E.isActivationDeadlinePassedOnChain;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,203 +1,214 @@
|
|
|
1
1
|
import { b as s, c as t } from "../../challengeAssert-BVQq50su.js";
|
|
2
2
|
import { a as o } from "../../constants-CDQE812z.js";
|
|
3
|
-
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as u, expandAuthAnchor as l, expandHashlockSecret as d, expandWotsSeed as P, peginP2aAnchorOutput as c, supportedTxGraphVersions as
|
|
4
|
-
import { P as S, d as g, f as
|
|
5
|
-
import { b as O, e as
|
|
6
|
-
import { a as
|
|
7
|
-
import { d as
|
|
8
|
-
import { B as
|
|
3
|
+
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as u, expandAuthAnchor as l, expandHashlockSecret as d, expandWotsSeed as P, peginP2aAnchorOutput as c, supportedTxGraphVersions as E, validatePeginP2aAnchor as T } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
+
import { P as S, d as g, f as R, c as _, b as m, a as f, g as x, e as b } from "../../verifyScriptPathSchnorrSignature-Xoo9DOHW.js";
|
|
5
|
+
import { b as O, e as V, f as v } from "../../peginInput-BKD_b3gq.js";
|
|
6
|
+
import { a as y, b as I } from "../../noPayout-CI4l1qu2.js";
|
|
7
|
+
import { d as U, a as B, b as D, e as N, f as M, j as H, g as L, h as K, i as k, c as X, p as W, s as w, t as G, u as j, v as J } from "../../bitcoin-B5aNKtsk.js";
|
|
8
|
+
import { B as Z, H as q, K as z, M as Q, T as $, c as aa } from "../../validation-Dj3dqYtl.js";
|
|
9
9
|
import { c as sa } from "../../signing-DaLvGwQe.js";
|
|
10
|
-
import { P as ra, b as oa, c as ia, d as na, e as pa } from "../../PeginManager-
|
|
11
|
-
import { P as la, c as da, f as Pa, s as ca, v as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { B as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
10
|
+
import { P as ra, b as oa, c as ia, d as na, e as pa } from "../../PeginManager-CnX3uFb0.js";
|
|
11
|
+
import { P as la, c as da, f as Pa, s as ca, v as Ea } from "../../signPsbtsWithFallback-CzZFZf0I.js";
|
|
12
|
+
import { A as Aa, P as Sa } from "../../ProtocolParams.abi-CV938AYZ.js";
|
|
13
|
+
import { B as Ra } from "../../BTCVaultRegistry.abi-CixOlp3B.js";
|
|
14
|
+
import { B as ma } from "../../BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
|
|
15
|
+
import { C as xa, e as ba, g as Ca, h as Oa, i as Va } from "../../errors-Blc-JWnI.js";
|
|
16
|
+
import { V as ha, b as ya, a as Ia, d as Fa } from "../../deriveVaultRoot-B_gEOTD6.js";
|
|
17
|
+
import { p as Ba } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
18
|
+
import { B as Na, a as Ma, f as Ha, c as La, b as Ka, d as ka, g as Xa, i as Wa, h as wa, s as Ga, e as ja, w as Ja } from "../../waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
19
|
+
import { B as Za, D as qa, L as za, M as Qa, c as $a, P as ae, b as ee, a as se, S as te, T as re, W as oe, f as ie, d as ne, p as pe, r as ue } from "../../fundPeginTransaction-B2wyjqp0.js";
|
|
20
|
+
import { U as de, a as Pe, e as ce, f as Ee, v as Te } from "../../reservation-cHDRn4DA.js";
|
|
21
|
+
import { M as Se, V as ge, g as Re, a as _e, b as me, c as fe, d as xe, e as be, f as Ce, h as Oe, i as Ve, p as ve, v as he, j as ye, k as Ie } from "../../mempoolApi-C0olk43O.js";
|
|
22
|
+
import { O as Ue, S as Be, V as De, g as Ne, h as Me, i as He, j as Le, a as Ke, d as ke, b as Xe, f as We, p as we, r as Ge, v as je, c as Je, e as Ye } from "../../batchPoll-DTYXoTEc.js";
|
|
23
|
+
import { A as qe, D as ze, J as Qe, a as $e, b as as, d as es, P as ss, R as ts, e as rs, c as os, V as is, i as ns } from "../../json-rpc-client-DuUARJvV.js";
|
|
24
|
+
import { a as us } from "../../onChainBtcPubkey-aPY5ib3Q.js";
|
|
25
|
+
import { i as ds } from "../../errors-B-H0seUG.js";
|
|
26
|
+
import { B as cs, C as Es, P as Ts, x as As, y as Ss, z as gs, A as Rs, R as _s, a as ms, t as fs, u as xs, i as bs, j as Cs, q as Os, p as Vs, l as vs, n as hs, o as ys, r as Is, s as Fs, b as Us, c as Bs, d as Ds, v as Ns, e as Ms, f as Hs, g as Ls, h as Ks, k as ks, m as Xs, w as Ws } from "../../buildAndBroadcastRefund-Bo3AlqCk.js";
|
|
27
|
+
import { C as Gs, P as js, c as Js, g as Ys, i as Zs } from "../../peginState-BB81JI6I.js";
|
|
26
28
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
qe as AUTH_REJECTED_RPC_CODE,
|
|
30
|
+
Aa as ApplicationRegistryABI,
|
|
31
|
+
cs as BIP68NotMatureError,
|
|
32
|
+
Z as BITCOIN_ADDRESS_RE,
|
|
33
|
+
Ra as BTCVaultRegistryABI,
|
|
34
|
+
ma as BTCVaultRegistryKeyEpochsABI,
|
|
32
35
|
Za as BTC_DUST_SAT,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
Na as BitcoinScriptType,
|
|
37
|
+
xa as CONTRACT_ERRORS,
|
|
38
|
+
Es as ClaimerPegoutStatusValue,
|
|
39
|
+
Gs as ContractStatus,
|
|
40
|
+
qa as DUST_THRESHOLD,
|
|
41
|
+
ze as DaemonStatus,
|
|
39
42
|
q as HEX_RE,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
Qe as JSON_RPC_ERROR_CODES,
|
|
44
|
+
$e as JsonRpcClient,
|
|
45
|
+
as as JsonRpcError,
|
|
43
46
|
z as KNOWN_SCRIPT_PREFIXES,
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
za as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
48
|
+
Qa as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
46
49
|
Q as MAX_REASONABLE_FEE_SATS,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
$a as MAX_REASONABLE_PEGIN_VBYTES,
|
|
51
|
+
Se as MEMPOOL_API_URLS,
|
|
52
|
+
Ue as OnChainBtcVaultStatus,
|
|
53
|
+
ae as P2TR_INPUT_SIZE,
|
|
54
|
+
ee as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
55
|
+
se as PEGIN_FIXED_OUTPUTS,
|
|
56
|
+
es as POST_WOTS_STATUSES,
|
|
57
|
+
ss as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
58
|
+
Ts as ParticipantKeyDriftError,
|
|
55
59
|
la as PayoutManager,
|
|
56
|
-
|
|
60
|
+
js as PeginAction,
|
|
57
61
|
ra as PeginManager,
|
|
58
62
|
Sa as ProtocolParamsABI,
|
|
59
63
|
S as PsbtSubstitutionError,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
As as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
65
|
+
Ss as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
66
|
+
gs as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
67
|
+
Rs as REFUND_VSIZE,
|
|
68
|
+
_s as RegisteredVaultVersionMismatchError,
|
|
69
|
+
ts as RpcErrorCode,
|
|
70
|
+
te as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
71
|
+
Be as ServerIdentityError,
|
|
68
72
|
$ as TXID_RE,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
73
|
+
re as TX_BUFFER_SIZE_OVERHEAD,
|
|
74
|
+
de as UtxoNotAvailableError,
|
|
75
|
+
ha as VAULT_APP_NAME,
|
|
76
|
+
rs as VP_BATCH_MAX_SIZE,
|
|
77
|
+
os as VP_TERMINAL_FAILURE_STATUSES,
|
|
78
|
+
is as VP_TRANSIENT_STATUSES,
|
|
79
|
+
De as VaultProviderRpcClient,
|
|
80
|
+
Ne as ViemOperationKeyReader,
|
|
81
|
+
Me as ViemProtocolParamsReader,
|
|
82
|
+
He as ViemUniversalChallengerReader,
|
|
83
|
+
Le as ViemVaultKeeperReader,
|
|
84
|
+
ge as ViemVaultRegistryReader,
|
|
85
|
+
Ke as VpResponseValidationError,
|
|
86
|
+
ke as VpTokenRegistry,
|
|
87
|
+
oe as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
88
|
+
ms as activateVault,
|
|
89
|
+
Ma as applyChangeOutputPolicy,
|
|
90
|
+
us as assertOnChainBtcPubkey,
|
|
85
91
|
g as assertPsbtUnsignedTxMatches,
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
R as assertScriptPathSchnorrSignature,
|
|
93
|
+
Pe as assertUtxosAvailable,
|
|
88
94
|
o as assertValidVaultCoreVersion,
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
Xe as batchPollByProvider,
|
|
96
|
+
fs as buildAndBroadcastRefund,
|
|
91
97
|
s as buildChallengeAssertPsbt,
|
|
92
98
|
oa as buildDepositTerms,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
ya as buildFundingOutpointsCommitment,
|
|
100
|
+
y as buildNoPayoutPsbt,
|
|
101
|
+
_ as buildPayoutPsbt,
|
|
96
102
|
O as buildPeginInputPsbt,
|
|
97
103
|
m as buildPeginTxFromFundedPrePegin,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
f as buildPrePeginPsbt,
|
|
105
|
+
I as buildRefundPsbt,
|
|
106
|
+
Ia as buildVaultContext,
|
|
107
|
+
Ha as calculateBtcTxHash,
|
|
108
|
+
Js as canPerformAction,
|
|
103
109
|
aa as combineAbortSignals,
|
|
104
|
-
|
|
110
|
+
La as computeChangeOutputFeeSats,
|
|
105
111
|
da as computeHashlock,
|
|
106
|
-
|
|
112
|
+
Ka as computeMaxDeposit,
|
|
107
113
|
n as computeMinClaimValue,
|
|
108
114
|
p as computeMinPeginFee,
|
|
109
115
|
t as computeNumLocalChallengers,
|
|
110
|
-
|
|
116
|
+
ka as computePeginBaseFeeSats,
|
|
111
117
|
ia as computeWotsBlockPublicKeysHash,
|
|
112
|
-
|
|
113
|
-
|
|
118
|
+
We as createAuthenticatedVpClient,
|
|
119
|
+
x as createPayoutScript,
|
|
114
120
|
sa as createTaprootScriptPathSignOptions,
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
U as deriveBip86ScriptPubKeyHex,
|
|
122
|
+
B as deriveNativeSegwitAddress,
|
|
117
123
|
D as deriveTaprootAddress,
|
|
118
124
|
u as deriveVaultId,
|
|
119
|
-
|
|
125
|
+
Fa as deriveVaultRoot,
|
|
120
126
|
na as deriveWotsBlocksFromSeed,
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
N as ensureHexPrefix,
|
|
128
|
+
xs as estimateRefundFeeSats,
|
|
123
129
|
pa as estimateSubmitPeginRequestBatchGas,
|
|
124
130
|
l as expandAuthAnchor,
|
|
125
131
|
d as expandHashlockSecret,
|
|
126
132
|
P as expandWotsSeed,
|
|
127
|
-
|
|
128
|
-
|
|
133
|
+
ba as extractErrorData,
|
|
134
|
+
ce as extractInputsFromTransaction,
|
|
129
135
|
b as extractPayoutSignature,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
V as extractPeginInputSignature,
|
|
137
|
+
v as finalizePeginInputPsbt,
|
|
138
|
+
Ee as findOverlappingPendingVaults,
|
|
133
139
|
M as formatSatoshisToBtc,
|
|
134
140
|
Pa as forwardDepositApproval,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
ie as fundPeginTransaction,
|
|
142
|
+
Re as getAddressTxs,
|
|
143
|
+
_e as getAddressUtxos,
|
|
144
|
+
Ca as getContractErrorMessage,
|
|
139
145
|
Xa as getDustThreshold,
|
|
140
|
-
|
|
146
|
+
me as getMempoolApiUrl,
|
|
141
147
|
H as getNetwork,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
fe as getNetworkFees,
|
|
149
|
+
xe as getOutspend,
|
|
150
|
+
Ys as getPeginProtocolState,
|
|
151
|
+
Wa as getPsbtInputFields,
|
|
152
|
+
wa as getScriptType,
|
|
147
153
|
L as getSortedXOnlyPubkeys,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
be as getTipHeight,
|
|
155
|
+
Ce as getTxHex,
|
|
156
|
+
Oe as getTxInfo,
|
|
151
157
|
Ve as getUtxoInfo,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
Oa as handleContractError,
|
|
159
|
+
K as hexToUint8Array,
|
|
160
|
+
Zs as isActivationDeadlinePassedOnChain,
|
|
155
161
|
k as isAddressFromPublicKey,
|
|
156
|
-
|
|
162
|
+
ns as isAuthRejectedError,
|
|
163
|
+
bs as isDepositAmountValid,
|
|
157
164
|
Va as isKnownContractError,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
Cs as isParticipantKeyDriftError,
|
|
166
|
+
Os as isPegoutTerminalStatus,
|
|
167
|
+
Vs as isRecognizedPegoutStatus,
|
|
168
|
+
vs as isRegisteredVaultVersionMismatchError,
|
|
169
|
+
X as isValidHex,
|
|
170
|
+
ds as isWotsMismatchError,
|
|
171
|
+
Ba as parseFundingOutpointsFromTx,
|
|
172
|
+
ne as parseUnfundedWasmTransaction,
|
|
173
|
+
pe as peginOutputCount,
|
|
166
174
|
c as peginP2aAnchorOutput,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
we as primeVpTokenRegistry,
|
|
176
|
+
W as processPublicKeyToXOnly,
|
|
177
|
+
ve as pushTx,
|
|
178
|
+
ue as rateBasedTxBufferFee,
|
|
179
|
+
hs as resolveCurrentParticipantKeys,
|
|
180
|
+
ys as resolveParticipantKeysAtEpochs,
|
|
181
|
+
Ge as resolveProtocolAddresses,
|
|
182
|
+
Is as runDepositorPresignFlow,
|
|
183
|
+
Ga as selectUtxosForPegin,
|
|
184
|
+
ja as shouldAddChangeOutput,
|
|
185
|
+
Fs as signDepositorGraph,
|
|
186
|
+
w as stripHexPrefix,
|
|
187
|
+
Us as submitWotsPublicKey,
|
|
188
|
+
E as supportedTxGraphVersions,
|
|
179
189
|
ca as supportsDepositApproval,
|
|
180
190
|
G as toXOnly,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
191
|
+
j as uint8ArrayToHex,
|
|
192
|
+
Bs as validateDepositAmount,
|
|
193
|
+
Ds as validateMultiVaultDepositInputs,
|
|
194
|
+
he as validateOffchainParams,
|
|
195
|
+
Ns as validateOnChainParticipantKeys,
|
|
196
|
+
ye as validatePegInConfiguration,
|
|
197
|
+
T as validatePeginP2aAnchor,
|
|
198
|
+
Ms as validateProviderSelection,
|
|
199
|
+
Hs as validateRemainingCapacity,
|
|
200
|
+
je as validateRequestDepositorClaimerArtifactsResponse,
|
|
201
|
+
Ea as validateSecretAgainstHashlock,
|
|
202
|
+
Ie as validateTBVProtocolParams,
|
|
203
|
+
Te as validateUtxosAvailable,
|
|
204
|
+
Ls as validateVaultAmounts,
|
|
205
|
+
Ks as validateVaultProviderPubkey,
|
|
206
|
+
J as validateWalletPubkey,
|
|
207
|
+
ks as verifyRegisteredParticipantKeys,
|
|
208
|
+
Xs as verifyRegisteredVaultVersions,
|
|
209
|
+
Je as verifyServerIdentity,
|
|
210
|
+
Ye as vpTokenRegistry,
|
|
211
|
+
Ws as waitForPeginStatus,
|
|
212
|
+
Ja as waitForTransactionReceiptSmartAware
|
|
202
213
|
};
|
|
203
214
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -76,6 +76,14 @@ interface SignPayoutBaseParams {
|
|
|
76
76
|
protocolFeeRate: bigint;
|
|
77
77
|
/** Security council member count; forwarded to the fee floor (see PayoutParams). */
|
|
78
78
|
councilSize: number;
|
|
79
|
+
/**
|
|
80
|
+
* RFC-006 resolved payout destinations, keyed by lowercased x-only operation
|
|
81
|
+
* pubkey. Forwarded verbatim to {@link buildPayoutPsbt}; every VK claimer
|
|
82
|
+
* must be present.
|
|
83
|
+
*/
|
|
84
|
+
vkClaimerPayoutScriptPubKeys: Readonly<Record<string, string>>;
|
|
85
|
+
/** RFC-006 VP commission destination. Forwarded to {@link buildPayoutPsbt}. */
|
|
86
|
+
vpCommissionScriptPubKey: string;
|
|
79
87
|
}
|
|
80
88
|
/**
|
|
81
89
|
* Parameters for signing a Payout transaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PayoutManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAML,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAMvB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PayoutManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAML,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAMvB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,+EAA+E;IAC/E,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;;OAIG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,qBAAqB,CACzB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,qBAAqB,CAAC;IA2DjC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,oBAAoB,IAAI,OAAO;IAI/B;;;;;;;;OAQG;IACG,2BAA2B,CAAC,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAC1E,KAAK,CAAC;QACJ,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC,CACH;CA4FF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-iDbqXsKD.cjs"),a=require("../../../signPsbtsWithFallback-C01N6Kdo.cjs");exports.PeginManager=e.PeginManager;exports.estimateSubmitPeginRequestBatchGas=e.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as t, e as r } from "../../../PeginManager-
|
|
2
|
-
import { P as o } from "../../../
|
|
1
|
+
import { P as t, e as r } from "../../../PeginManager-CnX3uFb0.js";
|
|
2
|
+
import { P as o } from "../../../signPsbtsWithFallback-CzZFZf0I.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PayoutManager,
|
|
5
5
|
t as PeginManager,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../challengeAssert-Cu-PtJ1g.cjs"),s=require("../../../constants-BqU1Uz15.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../challengeAssert-Cu-PtJ1g.cjs"),s=require("../../../constants-BqU1Uz15.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-C-84KJ6U.cjs"),i=require("../../../peginInput-CAiiDZeO.cjs"),u=require("../../../noPayout-Djrv31V5.cjs"),e=require("../../../bitcoin-CHfKAhcI.cjs");exports.buildChallengeAssertPsbt=n.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=n.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=s.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>r.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>r.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>r.deriveVaultId});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>r.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>r.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>r.validatePeginP2aAnchor});exports.PsbtSubstitutionError=t.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=t.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=t.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=t.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=t.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=t.buildPrePeginPsbt;exports.createPayoutScript=t.createPayoutScript;exports.extractPayoutSignature=t.extractPayoutSignature;exports.buildPeginInputPsbt=i.buildPeginInputPsbt;exports.extractPeginInputSignature=i.extractPeginInputSignature;exports.finalizePeginInputPsbt=i.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=u.buildNoPayoutPsbt;exports.buildRefundPsbt=u.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=e.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;exports.formatSatoshisToBtc=e.formatSatoshisToBtc;exports.getSortedXOnlyPubkeys=e.getSortedXOnlyPubkeys;exports.hexToUint8Array=e.hexToUint8Array;exports.isAddressFromPublicKey=e.isAddressFromPublicKey;exports.isValidHex=e.isValidHex;exports.processPublicKeyToXOnly=e.processPublicKeyToXOnly;exports.stripHexPrefix=e.stripHexPrefix;exports.toXOnly=e.toXOnly;exports.uint8ArrayToHex=e.uint8ArrayToHex;exports.validateWalletPubkey=e.validateWalletPubkey;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as s, c as t } from "../../../challengeAssert-BVQq50su.js";
|
|
2
2
|
import { a as i } from "../../../constants-CDQE812z.js";
|
|
3
3
|
import { computeMinClaimValue as u, computeMinPeginFee as n, deriveVaultId as P, peginP2aAnchorOutput as d, supportedTxGraphVersions as l, validatePeginP2aAnchor as b } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
-
import { P as c, d as x, f as g, c as f, b as m, a as y, g as h, e as S } from "../../../verifyScriptPathSchnorrSignature-
|
|
4
|
+
import { P as c, d as x, f as g, c as f, b as m, a as y, g as h, e as S } from "../../../verifyScriptPathSchnorrSignature-Xoo9DOHW.js";
|
|
5
5
|
import { b as A, e as T, f as V } from "../../../peginInput-BKD_b3gq.js";
|
|
6
|
-
import { a as C, b as F } from "../../../noPayout-
|
|
6
|
+
import { a as C, b as F } from "../../../noPayout-CI4l1qu2.js";
|
|
7
7
|
import { d as O, a as K, b as M, e as N, f as X, g as k, h as B, i as U, c as w, p as z, s as E, t as G, u as L, v as R } from "../../../bitcoin-B5aNKtsk.js";
|
|
8
8
|
export {
|
|
9
9
|
c as PsbtSubstitutionError,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standardPayoutScript.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.ts"],"names":[],"mappings":""}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
* - `assertPayoutFeeBandDomain` has accepted the rate and participant counts,
|
|
16
16
|
* so the band runs exactly over the domain its dominance proof was swept.
|
|
17
17
|
* - `out0Len` is the layout-trusted length of the PINNED outs[0] script.
|
|
18
|
-
* `out1Len` is
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* `out1Len` is the VP commission output's length. RFC-006 pins that output
|
|
19
|
+
* to the operator's registered scriptPubKey, so it is now layout-trusted
|
|
20
|
+
* too and bounded to a standard type. It still feeds only the floor and
|
|
21
|
+
* must never widen the ceiling: that separation is kept deliberately, so
|
|
22
|
+
* the bound holds even if a future change unpins the output again.
|
|
23
23
|
* - `implicitFeeSats` is `inputs − outputs` over verified prevouts, `>= 0`.
|
|
24
24
|
*
|
|
25
25
|
* @module primitives/psbt/assertPayoutFeeBand
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertPayoutFeeBand.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertPayoutFeeBand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AA6CH,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,8BAA8B;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE;IACR,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GACA,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"assertPayoutFeeBand.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertPayoutFeeBand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AA6CH,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,8BAA8B;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE;IACR,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GACA,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -82,6 +82,29 @@ export interface PayoutParams {
|
|
|
82
82
|
* pinned models.
|
|
83
83
|
*/
|
|
84
84
|
councilSize: number;
|
|
85
|
+
/**
|
|
86
|
+
* RFC-006. Expected `outs[0].script` per vault-keeper claimer, keyed by
|
|
87
|
+
* lowercased x-only **operation** pubkey (no `0x`), resolved from
|
|
88
|
+
* `ApplicationRegistry.getPayoutScriptAtEpoch` at the vault's frozen
|
|
89
|
+
* `appKeeperKeyEpoch`.
|
|
90
|
+
*
|
|
91
|
+
* Every VK claimer must be present: a claimer missing from the map is an
|
|
92
|
+
* error rather than a cue to derive BIP-86, because a gap means resolution
|
|
93
|
+
* was incomplete and we do not know what that keeper registered.
|
|
94
|
+
*
|
|
95
|
+
* Each entry accepts either that registered script or the BIP-86 default of
|
|
96
|
+
* the same bonded key, so graphs built before btc-vault#2440 remain signable
|
|
97
|
+
* — see {@link acceptedPayoutScriptHexes} for why that is required and when
|
|
98
|
+
* it can be dropped.
|
|
99
|
+
*/
|
|
100
|
+
vkClaimerPayoutScriptPubKeys: Readonly<Record<string, string>>;
|
|
101
|
+
/**
|
|
102
|
+
* RFC-006. Expected `outs[1].script` for the VP-claimer commission output,
|
|
103
|
+
* from `BTCVaultRegistry.getPayoutScriptAtEpoch` at the vault's frozen
|
|
104
|
+
* `vpKeyEpoch`. The BIP-86 default of the bonded VP key is accepted alongside
|
|
105
|
+
* it — see {@link acceptedPayoutScriptHexes}.
|
|
106
|
+
*/
|
|
107
|
+
vpCommissionScriptPubKey: string;
|
|
85
108
|
}
|
|
86
109
|
/**
|
|
87
110
|
* Result of building an unsigned payout PSBT
|