@babylonlabs-io/ts-sdk 0.53.0 → 0.55.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.
Files changed (98) hide show
  1. package/dist/{PayoutManager-Ddo9_Ozc.js → PayoutManager-BJmPnyRP.js} +120 -103
  2. package/dist/PayoutManager-BJmPnyRP.js.map +1 -0
  3. package/dist/PayoutManager-aqtsj60t.cjs +2 -0
  4. package/dist/PayoutManager-aqtsj60t.cjs.map +1 -0
  5. package/dist/{PeginManager-CTU0wgkJ.js → PeginManager-D22MLWfM.js} +113 -128
  6. package/dist/PeginManager-D22MLWfM.js.map +1 -0
  7. package/dist/PeginManager-vUUfZCzj.cjs +2 -0
  8. package/dist/PeginManager-vUUfZCzj.cjs.map +1 -0
  9. package/dist/{buildAndBroadcastRefund-DjS9nf87.js → buildAndBroadcastRefund-BiSO4zg2.js} +222 -235
  10. package/dist/buildAndBroadcastRefund-BiSO4zg2.js.map +1 -0
  11. package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs +2 -0
  12. package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs.map +1 -0
  13. package/dist/{fundPeginTransaction-96FxwYYJ.js → fundPeginTransaction-B2wyjqp0.js} +21 -22
  14. package/dist/fundPeginTransaction-B2wyjqp0.js.map +1 -0
  15. package/dist/fundPeginTransaction-BLD8FRL9.cjs +2 -0
  16. package/dist/fundPeginTransaction-BLD8FRL9.cjs.map +1 -0
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +176 -175
  19. package/dist/{noPayout-8dDKwi6n.cjs → noPayout-CNMqNNpc.cjs} +2 -2
  20. package/dist/{noPayout-8dDKwi6n.cjs.map → noPayout-CNMqNNpc.cjs.map} +1 -1
  21. package/dist/{noPayout-tZFoNun3.js → noPayout-CfBg3HzC.js} +2 -2
  22. package/dist/{noPayout-tZFoNun3.js.map → noPayout-CfBg3HzC.js.map} +1 -1
  23. package/dist/tbv/core/index.cjs +1 -1
  24. package/dist/tbv/core/index.js +176 -175
  25. package/dist/tbv/core/managers/PeginManager.d.ts +3 -2
  26. package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
  27. package/dist/tbv/core/managers/index.cjs +1 -1
  28. package/dist/tbv/core/managers/index.js +2 -2
  29. package/dist/tbv/core/managers/pegin/signPsbtsWithFallback.d.ts +10 -6
  30. package/dist/tbv/core/managers/pegin/signPsbtsWithFallback.d.ts.map +1 -1
  31. package/dist/tbv/core/primitives/index.cjs +1 -1
  32. package/dist/tbv/core/primitives/index.d.ts +2 -2
  33. package/dist/tbv/core/primitives/index.d.ts.map +1 -1
  34. package/dist/tbv/core/primitives/index.js +38 -36
  35. package/dist/tbv/core/primitives/psbt/__tests__/assertPeginTxShape.test.d.ts +11 -0
  36. package/dist/tbv/core/primitives/psbt/__tests__/assertPeginTxShape.test.d.ts.map +1 -0
  37. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts +11 -10
  38. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
  39. package/dist/tbv/core/primitives/psbt/pegin.d.ts +10 -2
  40. package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
  41. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
  42. package/dist/tbv/core/services/index.cjs +1 -1
  43. package/dist/tbv/core/services/index.js +2 -2
  44. package/dist/tbv/core/utils/fee/constants.d.ts +6 -14
  45. package/dist/tbv/core/utils/fee/constants.d.ts.map +1 -1
  46. package/dist/tbv/core/utils/index.cjs +1 -1
  47. package/dist/tbv/core/utils/index.js +35 -36
  48. package/dist/tbv/index.cjs +1 -1
  49. package/dist/tbv/index.js +176 -175
  50. package/dist/tbv/integrations/aave/clients/abis/AaveAdapterPositionProxy.abi.json.d.ts +16 -0
  51. package/dist/tbv/integrations/aave/clients/abis/AaveIntegrationAdapter.abi.json.d.ts +2 -2
  52. package/dist/tbv/integrations/aave/clients/index.d.ts +1 -0
  53. package/dist/tbv/integrations/aave/clients/index.d.ts.map +1 -1
  54. package/dist/tbv/integrations/aave/clients/positionProxy.d.ts +8 -0
  55. package/dist/tbv/integrations/aave/clients/positionProxy.d.ts.map +1 -0
  56. package/dist/tbv/integrations/aave/clients/spoke.d.ts +11 -10
  57. package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
  58. package/dist/tbv/integrations/aave/clients/transaction.d.ts +6 -1
  59. package/dist/tbv/integrations/aave/clients/transaction.d.ts.map +1 -1
  60. package/dist/tbv/integrations/aave/constants.d.ts +6 -14
  61. package/dist/tbv/integrations/aave/constants.d.ts.map +1 -1
  62. package/dist/tbv/integrations/aave/index.cjs +1 -1
  63. package/dist/tbv/integrations/aave/index.cjs.map +1 -1
  64. package/dist/tbv/integrations/aave/index.d.ts +2 -2
  65. package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
  66. package/dist/tbv/integrations/aave/index.js +119 -85
  67. package/dist/tbv/integrations/aave/index.js.map +1 -1
  68. package/dist/testing/MockBitcoinWallet.d.ts +1 -1
  69. package/dist/testing/MockBitcoinWallet.d.ts.map +1 -1
  70. package/dist/testing/index.cjs +1 -1
  71. package/dist/testing/index.cjs.map +1 -1
  72. package/dist/testing/index.js +3 -3
  73. package/dist/testing/index.js.map +1 -1
  74. package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs +2 -0
  75. package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs.map +1 -0
  76. package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js +658 -0
  77. package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js.map +1 -0
  78. package/dist/{waitForTransactionReceiptSmartAware-U706oKTc.cjs → waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs} +2 -2
  79. package/dist/{waitForTransactionReceiptSmartAware-U706oKTc.cjs.map → waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs.map} +1 -1
  80. package/dist/{waitForTransactionReceiptSmartAware-Ckg_oZAo.js → waitForTransactionReceiptSmartAware-lobLm0q0.js} +2 -2
  81. package/dist/{waitForTransactionReceiptSmartAware-Ckg_oZAo.js.map → waitForTransactionReceiptSmartAware-lobLm0q0.js.map} +1 -1
  82. package/package.json +1 -1
  83. package/dist/PayoutManager-1GWmbvI9.cjs +0 -2
  84. package/dist/PayoutManager-1GWmbvI9.cjs.map +0 -1
  85. package/dist/PayoutManager-Ddo9_Ozc.js.map +0 -1
  86. package/dist/PeginManager-CTU0wgkJ.js.map +0 -1
  87. package/dist/PeginManager-De-eHl3v.cjs +0 -2
  88. package/dist/PeginManager-De-eHl3v.cjs.map +0 -1
  89. package/dist/buildAndBroadcastRefund-BnD2qUDW.cjs +0 -2
  90. package/dist/buildAndBroadcastRefund-BnD2qUDW.cjs.map +0 -1
  91. package/dist/buildAndBroadcastRefund-DjS9nf87.js.map +0 -1
  92. package/dist/fundPeginTransaction-96FxwYYJ.js.map +0 -1
  93. package/dist/fundPeginTransaction-DuMwnytD.cjs +0 -2
  94. package/dist/fundPeginTransaction-DuMwnytD.cjs.map +0 -1
  95. package/dist/verifyScriptPathSchnorrSignature-DpWZx5J0.js +0 -567
  96. package/dist/verifyScriptPathSchnorrSignature-DpWZx5J0.js.map +0 -1
  97. package/dist/verifyScriptPathSchnorrSignature-a4Us7D3e.cjs +0 -2
  98. package/dist/verifyScriptPathSchnorrSignature-a4Us7D3e.cjs.map +0 -1
@@ -1,12 +1,16 @@
1
1
  import { BitcoinWallet, SignPsbtOptions } from '../../../../shared/wallets';
2
2
  /**
3
- * Sign multiple PSBTs against a wallet. Wallets exposing native batch
4
- * signing (e.g. UniSat) sign all PSBTs in a single interaction; others
5
- * (Ledger, AppKit) loop `signPsbt` internally, so the popup UX depends
6
- * on the wallet adapter.
3
+ * Sign one or more PSBTs against a wallet.
7
4
  *
8
- * @throws If `signPsbts` returns a different number of signed PSBTs
5
+ * A single PSBT is always signed via `signPsbt`, never the batch endpoint: it's
6
+ * one wallet interaction either way, and `signPsbt` is the universally-required
7
+ * wallet method (batch `signPsbts` is optional), so single-sign is the portable
8
+ * choice — some integrations (notably MPC / institutional wallets) prefer it.
9
+ * For a real batch (>1), wallets exposing native `signPsbts` (e.g. UniSat) sign
10
+ * in one interaction; others loop `signPsbt`.
11
+ *
12
+ * @throws If native `signPsbts` returns a different number of signed PSBTs
9
13
  * than were submitted.
10
14
  */
11
- export declare function signPsbtsWithFallback(wallet: BitcoinWallet, psbtsHexes: string[], options: SignPsbtOptions[]): Promise<string[]>;
15
+ export declare function signPsbtsWithFallback(wallet: BitcoinWallet, psbtsHexes: string[], options?: SignPsbtOptions[]): Promise<string[]>;
12
16
  //# sourceMappingURL=signPsbtsWithFallback.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signPsbtsWithFallback.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/pegin/signPsbtsWithFallback.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,eAAe,EAAE,GACzB,OAAO,CAAC,MAAM,EAAE,CAAC,CAiBnB"}
1
+ {"version":3,"file":"signPsbtsWithFallback.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/pegin/signPsbtsWithFallback.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;GAYG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,eAAe,EAAE,GAC1B,OAAO,CAAC,MAAM,EAAE,CAAC,CAoBnB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../challengeAssert-DLQfNcfU.cjs"),n=require("../../../constants-CvbARMl-.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-a4Us7D3e.cjs"),s=require("../../../peginInput-CAiiDZeO.cjs"),u=require("../../../noPayout-8dDKwi6n.cjs"),e=require("../../../bitcoin-CHfKAhcI.cjs");exports.buildChallengeAssertPsbt=i.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=i.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=i.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=n.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,"supportedTxGraphVersions",{enumerable:!0,get:()=>r.supportedTxGraphVersions});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=s.buildPeginInputPsbt;exports.extractPeginInputSignature=s.extractPeginInputSignature;exports.finalizePeginInputPsbt=s.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../challengeAssert-DLQfNcfU.cjs"),s=require("../../../constants-CvbARMl-.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-BDznSCOR.cjs"),u=require("../../../peginInput-CAiiDZeO.cjs"),n=require("../../../noPayout-CNMqNNpc.cjs"),e=require("../../../bitcoin-CHfKAhcI.cjs");exports.buildChallengeAssertPsbt=i.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=i.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=i.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=u.buildPeginInputPsbt;exports.extractPeginInputSignature=u.extractPeginInputSignature;exports.finalizePeginInputPsbt=u.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=n.buildNoPayoutPsbt;exports.buildRefundPsbt=n.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
@@ -75,8 +75,8 @@
75
75
  */
76
76
  export { computeNumLocalChallengers } from './challengers';
77
77
  export { assertValidVaultCoreVersion } from './vaultCoreVersion';
78
- export { computeMinClaimValue, computeMinPeginFee, deriveVaultId, supportedTxGraphVersions, } from '@babylonlabs-io/babylon-tbv-rust-wasm';
79
- export type { AssertPayoutNoPayoutConnectorParams, ChallengeAssertConnectorParams, Network, PayoutConnectorParams, } from '@babylonlabs-io/babylon-tbv-rust-wasm';
78
+ export { computeMinClaimValue, computeMinPeginFee, deriveVaultId, peginP2aAnchorOutput, supportedTxGraphVersions, validatePeginP2aAnchor, } from '@babylonlabs-io/babylon-tbv-rust-wasm';
79
+ export type { AssertPayoutNoPayoutConnectorParams, ChallengeAssertConnectorParams, Network, PayoutConnectorParams, PeginP2aAnchorInfo, } from '@babylonlabs-io/babylon-tbv-rust-wasm';
80
80
  /**
81
81
  * 0x-prefixed bytes32, keccak256(abi.encode(peginTxHash, depositor)).
82
82
  * On-chain vault identifier used by BTCVaultRegistry contract.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/primitives/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAGH,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAGjE,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,wBAAwB,GACzB,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EACV,mCAAmC,EACnC,8BAA8B,EAC9B,OAAO,EACP,qBAAqB,GACtB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,MAAM,EAAE,CAAC;AAGpC,OAAO,EACL,8BAA8B,EAC9B,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,YAAY,EACV,qBAAqB,EACrB,qBAAqB,G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,wBAAwB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG/E,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,uBAAuB,EACvB,cAAc,EACd,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,KAAK,4BAA4B,GAClC,MAAM,iBAAiB,CAAC"}
@@ -1,45 +1,47 @@
1
- import { a, b as t, c as r } from "../../../challengeAssert-DvdbpEDY.js";
1
+ import { a as s, b as t, c as r } from "../../../challengeAssert-DvdbpEDY.js";
2
2
  import { a as o } from "../../../constants-BhclpREj.js";
3
- import { computeMinClaimValue as P, computeMinPeginFee as n, deriveVaultId as d, supportedTxGraphVersions as b } from "@babylonlabs-io/babylon-tbv-rust-wasm";
4
- import { P as p, d as x, f as c, c as g, b as f, a as m, g as y, e as S } from "../../../verifyScriptPathSchnorrSignature-DpWZx5J0.js";
5
- import { b as T, e as v, f as V } from "../../../peginInput-BKD_b3gq.js";
6
- import { a as H, b as C } from "../../../noPayout-tZFoNun3.js";
7
- import { d as I, a as K, b as M, e as N, f as O, g as X, h as k, i as B, c as U, p as w, s as z, t as D, u as E, v as G } from "../../../bitcoin-B5aNKtsk.js";
3
+ import { computeMinClaimValue as n, computeMinPeginFee as P, deriveVaultId as d, peginP2aAnchorOutput as b, supportedTxGraphVersions as l, validatePeginP2aAnchor as p } from "@babylonlabs-io/babylon-tbv-rust-wasm";
4
+ import { P as x, d as g, f, c as m, b as y, a as h, g as S, e as v } from "../../../verifyScriptPathSchnorrSignature-DA4Z4yZ3.js";
5
+ import { b as T, e as V, f as H } from "../../../peginInput-BKD_b3gq.js";
6
+ import { a as F, b as I } from "../../../noPayout-CfBg3HzC.js";
7
+ import { d as K, a as M, b as N, e as X, f as k, g as B, h as U, i as w, c as z, p as D, s as E, t as G, u as L, v as R } from "../../../bitcoin-B5aNKtsk.js";
8
8
  export {
9
- p as PsbtSubstitutionError,
10
- x as assertPsbtUnsignedTxMatches,
11
- c as assertScriptPathSchnorrSignature,
9
+ x as PsbtSubstitutionError,
10
+ g as assertPsbtUnsignedTxMatches,
11
+ f as assertScriptPathSchnorrSignature,
12
12
  o as assertValidVaultCoreVersion,
13
- a as buildChallengeAssertPsbt,
13
+ s as buildChallengeAssertPsbt,
14
14
  t as buildDepositorPayoutPsbt,
15
- H as buildNoPayoutPsbt,
16
- g as buildPayoutPsbt,
15
+ F as buildNoPayoutPsbt,
16
+ m as buildPayoutPsbt,
17
17
  T as buildPeginInputPsbt,
18
- f as buildPeginTxFromFundedPrePegin,
19
- m as buildPrePeginPsbt,
20
- C as buildRefundPsbt,
21
- P as computeMinClaimValue,
22
- n as computeMinPeginFee,
18
+ y as buildPeginTxFromFundedPrePegin,
19
+ h as buildPrePeginPsbt,
20
+ I as buildRefundPsbt,
21
+ n as computeMinClaimValue,
22
+ P as computeMinPeginFee,
23
23
  r as computeNumLocalChallengers,
24
- y as createPayoutScript,
25
- I as deriveBip86ScriptPubKeyHex,
26
- K as deriveNativeSegwitAddress,
27
- M as deriveTaprootAddress,
24
+ S as createPayoutScript,
25
+ K as deriveBip86ScriptPubKeyHex,
26
+ M as deriveNativeSegwitAddress,
27
+ N as deriveTaprootAddress,
28
28
  d as deriveVaultId,
29
- N as ensureHexPrefix,
30
- S as extractPayoutSignature,
31
- v as extractPeginInputSignature,
32
- V as finalizePeginInputPsbt,
33
- O as formatSatoshisToBtc,
34
- X as getSortedXOnlyPubkeys,
35
- k as hexToUint8Array,
36
- B as isAddressFromPublicKey,
37
- U as isValidHex,
38
- w as processPublicKeyToXOnly,
39
- z as stripHexPrefix,
40
- b as supportedTxGraphVersions,
41
- D as toXOnly,
42
- E as uint8ArrayToHex,
43
- G as validateWalletPubkey
29
+ X as ensureHexPrefix,
30
+ v as extractPayoutSignature,
31
+ V as extractPeginInputSignature,
32
+ H as finalizePeginInputPsbt,
33
+ k as formatSatoshisToBtc,
34
+ B as getSortedXOnlyPubkeys,
35
+ U as hexToUint8Array,
36
+ w as isAddressFromPublicKey,
37
+ z as isValidHex,
38
+ b as peginP2aAnchorOutput,
39
+ D as processPublicKeyToXOnly,
40
+ E as stripHexPrefix,
41
+ l as supportedTxGraphVersions,
42
+ G as toXOnly,
43
+ L as uint8ArrayToHex,
44
+ p as validatePeginP2aAnchor,
45
+ R as validateWalletPubkey
44
46
  };
45
47
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Negative-path tests for the PegIn shape assertion inside
3
+ * `buildPeginTxFromFundedPrePegin`: every bind (input outpoint, output
4
+ * count, vault value/script, txid, depositor-claim value/script, anchor
5
+ * validation) must reject a doctored WASM result. The WASM boundary is
6
+ * mocked so each dimension can be corrupted independently; the happy path
7
+ * against the real binary is covered by the golden vectors in
8
+ * `pegin.test.ts`.
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=assertPeginTxShape.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertPeginTxShape.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/primitives/psbt/__tests__/assertPeginTxShape.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -5,20 +5,21 @@ import { PrePeginParams } from './pegin';
5
5
  * Assert the WASM Pre-PegIn sizing result is internally consistent and
6
6
  * matches what the caller requested.
7
7
  *
8
- * The strong checks are pure-JS and fully independent of the WASM binary:
9
- * the per-HTLC `peginAmount` must equal the requested amount, array lengths
10
- * must match, and every value must be positive. The implied PegIn fee
11
- * (`htlcValue - peginAmount - depositorClaimValue`) is bounded by
12
- * plausibility rather than recomputed exactly, because JS↔Rust vbyte parity
13
- * is not a cross-stack guarantee (see {@link MAX_REASONABLE_PEGIN_VBYTES}).
14
- * The `depositorClaimValue` cross-check against `computeMinClaimValue` is a
15
- * WASM-vs-WASM consistency check (a different entry point), not an
16
- * independent one.
8
+ * Two layers of checks. Pure-JS, binary-INDEPENDENT: the per-HTLC
9
+ * `peginAmount` must echo the requested amount, array lengths must match,
10
+ * every value must be positive, and the implied per-HTLC reserve
11
+ * (`htlcValue - peginAmount - depositorClaimValue`) must be strictly
12
+ * positive and under the plausibility cap
13
+ * ({@link MAX_REASONABLE_PEGIN_VBYTES}). WASM-vs-WASM consistency: the
14
+ * reserve must also EXACTLY equal `computeMinPeginFee(version, …) +
15
+ * p2aAnchorValue(version)` (like the `computeMinClaimValue` check) —
16
+ * exact, but both sides come from the same binary, which is why the
17
+ * independent bounds above are kept alongside it.
17
18
  *
18
19
  * @param result - The result returned by `createPrePeginTransaction`.
19
20
  * @param params - The parameters that were passed to build it.
20
21
  * @throws If any value is missing, non-positive, mismatched against the
21
- * request, or outside the protocol formula / plausibility bounds.
22
+ * request, or outside the protocol formula.
22
23
  */
23
24
  export declare function assertWasmPeginSizing(result: PrePeginResult, params: PrePeginParams): Promise<void>;
24
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"assertWasmPeginSizing.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertWasmPeginSizing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CA8Gf;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,iBAAiB,EAAE,SAAS,MAAM,EAAE,GACnC,IAAI,CA2BN"}
1
+ {"version":3,"file":"assertWasmPeginSizing.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertWasmPeginSizing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CAoJf;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,iBAAiB,EAAE,SAAS,MAAM,EAAE,GACnC,IAAI,CA2BN"}
@@ -61,7 +61,11 @@ export interface PrePeginPsbtResult {
61
61
  psbtHex: string;
62
62
  /** Sum of all unfunded outputs — use this for UTXO selection */
63
63
  totalOutputValue: bigint;
64
- /** HTLC output values in satoshis, one per deposit (each includes peginAmount + depositorClaimValue + minPeginFee) */
64
+ /**
65
+ * HTLC output values in satoshis, one per deposit. Each includes
66
+ * peginAmount + depositorClaimValue + p2aAnchorValue + minPeginFee (the
67
+ * anchor term is 0 for graph versions without a P2A anchor, 240 for v2).
68
+ */
65
69
  htlcValues: readonly bigint[];
66
70
  /** HTLC output scriptPubKeys (hex encoded), one per deposit */
67
71
  htlcScriptPubKeys: readonly string[];
@@ -95,7 +99,11 @@ export interface BuildPeginTxParams {
95
99
  * Result of building the PegIn transaction
96
100
  */
97
101
  export interface PeginTxResult {
98
- /** PegIn transaction hex (1 input spending HTLC, 1 vault output) */
102
+ /**
103
+ * PegIn transaction hex. 1 input spending the HTLC; outputs are
104
+ * version-shaped: v1 = vault + depositor claim, v2 = vault + depositor
105
+ * claim + P2A anchor at vout 2 (nVersion 3 / TRUC).
106
+ */
99
107
  txHex: string;
100
108
  /** PegIn transaction ID */
101
109
  txid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pegin.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/pegin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,uCAAuC,CAAC;AAS/C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,0EAA0E;IAC1E,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,+DAA+D;IAC/D,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,sDAAsD;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,iGAAiG;IACjG,OAAO,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IAC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1
- {"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAG3B,MAAM,oCAAoC,CAAC;AA2d5C;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,0EAA0E;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,cAAc,EAAE,0BAA0B,CAAC;IAC3C,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,8DAA8D;IAC9D,cAAc,EAAE,4BAA4B,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CA2C1C"}
1
+ {"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAG3B,MAAM,oCAAoC,CAAC;AAwc5C;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,0EAA0E;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,cAAc,EAAE,0BAA0B,CAAC;IAC3C,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,8DAA8D;IAC9D,cAAc,EAAE,4BAA4B,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CAuC1C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../PayoutManager-1GWmbvI9.cjs"),t=require("../../../buildAndBroadcastRefund-BnD2qUDW.cjs"),e=require("../../../peginState-CBBJw4Za.cjs");exports.computeHashlock=a.computeHashlock;exports.validateSecretAgainstHashlock=a.validateSecretAgainstHashlock;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=t.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.activateVault=t.activateVault;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isPegoutTerminalStatus=t.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=t.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginStatus=t.waitForPeginStatus;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../PayoutManager-aqtsj60t.cjs"),t=require("../../../buildAndBroadcastRefund-Bwi1I5we.cjs"),e=require("../../../peginState-CBBJw4Za.cjs");exports.computeHashlock=a.computeHashlock;exports.validateSecretAgainstHashlock=a.validateSecretAgainstHashlock;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=t.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.activateVault=t.activateVault;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isPegoutTerminalStatus=t.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=t.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginStatus=t.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
@@ -1,5 +1,5 @@
1
- import { c as s, v as e } from "../../../PayoutManager-Ddo9_Ozc.js";
2
- import { B as o, C as r, p as n, q as u, t as l, u as d, R as c, a as R, n as g, o as A, i as E, m as P, l as m, j as v, r as p, b as V, s as _, v as F, g as S, h as D, d as N, c as C, e as M, f, k as h, w as O } from "../../../buildAndBroadcastRefund-DjS9nf87.js";
1
+ import { c as s, v as e } from "../../../PayoutManager-BJmPnyRP.js";
2
+ import { B as o, C as r, p as n, q as u, t as l, u as d, R as c, a as R, n as g, o as A, i as E, m as P, l as m, j as v, r as p, b as V, s as _, v as F, g as S, h as D, d as N, c as C, e as M, f, k as h, w as O } from "../../../buildAndBroadcastRefund-BiSO4zg2.js";
3
3
  import { C as I, P as b, c as y, g as U, i as k } from "../../../peginState-BB81JI6I.js";
4
4
  export {
5
5
  o as BIP68NotMatureError,
@@ -10,7 +10,6 @@ export declare const BTC_DUST_SAT = 546;
10
10
  export declare const DUST_THRESHOLD: bigint;
11
11
  export declare const LOW_RATE_ESTIMATION_ACCURACY_BUFFER = 30;
12
12
  export declare const WALLET_RELAY_FEE_RATE_THRESHOLD = 2;
13
- export declare const FEE_SAFETY_MARGIN = 1.1;
14
13
  /**
15
14
  * Adds a buffer to the transaction fee calculation if the fee rate is low.
16
15
  *
@@ -63,19 +62,12 @@ export declare function peginOutputCount(vaultCount: number, hasAuthAnchor: bool
63
62
  */
64
63
  export declare const SPLIT_TX_FEE_SAFETY_MULTIPLIER = 5;
65
64
  /**
66
- * Upper bound (vbytes) used to plausibility-check the implied per-HTLC
67
- * PegIn fee returned by WASM: `htlcValue - peginAmount - depositorClaimValue`.
68
- *
69
- * The WASM sizes the PegIn fee internally as `minPeginFeeRate × peginTxVsize`.
70
- * We do not reproduce the exact Rust vsize model here — JS↔Rust vbyte parity
71
- * is explicitly NOT a cross-stack guarantee (see `peginFeeMath.ts`), so an
72
- * exact recompute would false-positive on valid deposits. Instead we bound
73
- * the implied fee by the largest vsize any *standard, relayable* Bitcoin
74
- * transaction can have: 100,000 vbytes (400,000 weight units, the consensus
75
- * tx-weight limit). A PegIn is a single transaction, so its real vsize is far
76
- * below this; an implied fee above `minPeginFeeRate × MAX_REASONABLE_PEGIN_VBYTES`
77
- * therefore signals a grossly inflated `htlcValue` (excess sats that would be
78
- * locked irrecoverably in the HTLC), not legitimate sizing.
65
+ * Binary-independent cap on the implied per-HTLC reserve
66
+ * (`htlcValue - peginAmount - depositorClaimValue`): the exact identity in
67
+ * `assertWasmPeginSizing` is WASM-vs-WASM, so this pure-JS bound is what
68
+ * limits a doctored binary. 100,000 vbytes = Bitcoin Core's relay ceiling
69
+ * (MAX_STANDARD_TX_WEIGHT / 4) — ~19× the protocol-max PegIn (~5,150 vbytes
70
+ * at 99 VKs + 99 UCs), so it can never false-positive.
79
71
  */
80
72
  export declare const MAX_REASONABLE_PEGIN_VBYTES = 100000n;
81
73
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/utils/fee/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,eAAe,KAAK,CAAC;AAGlC,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAG7C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAG1C,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,oFAAoF;AACpF,eAAO,MAAM,cAAc,QAAuB,CAAC;AAGnD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O,GACrB,MAAM,CAWR;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,UAAW,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../signing-Bnsro0hE.cjs"),a=require("../../../validation-u8W7Lp2x.cjs"),e=require("../../../waitForTransactionReceiptSmartAware-U706oKTc.cjs"),t=require("../../../fundPeginTransaction-DuMwnytD.cjs"),E=require("../../../reservation-ClEs2X0H.cjs"),T=require("../../../bitcoin-CHfKAhcI.cjs");exports.createTaprootScriptPathSignOptions=_.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=a.BITCOIN_ADDRESS_RE;exports.HEX_RE=a.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=a.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=a.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=a.TXID_RE;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=e.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=t.FEE_SAFETY_MARGIN;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=E.UtxoNotAvailableError;exports.assertUtxosAvailable=E.assertUtxosAvailable;exports.extractInputsFromTransaction=E.extractInputsFromTransaction;exports.findOverlappingPendingVaults=E.findOverlappingPendingVaults;exports.validateUtxosAvailable=E.validateUtxosAvailable;exports.getNetwork=T.getNetwork;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../signing-Bnsro0hE.cjs"),a=require("../../../validation-u8W7Lp2x.cjs"),e=require("../../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),t=require("../../../fundPeginTransaction-BLD8FRL9.cjs"),T=require("../../../reservation-ClEs2X0H.cjs"),E=require("../../../bitcoin-CHfKAhcI.cjs");exports.createTaprootScriptPathSignOptions=_.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=a.BITCOIN_ADDRESS_RE;exports.HEX_RE=a.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=a.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=a.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=a.TXID_RE;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=e.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=T.UtxoNotAvailableError;exports.assertUtxosAvailable=T.assertUtxosAvailable;exports.extractInputsFromTransaction=T.extractInputsFromTransaction;exports.findOverlappingPendingVaults=T.findOverlappingPendingVaults;exports.validateUtxosAvailable=T.validateUtxosAvailable;exports.getNetwork=E.getNetwork;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,49 +1,48 @@
1
1
  import { c as t } from "../../../signing-DaLvGwQe.js";
2
- import { B as E, H as T, K as _, M as o, T as r } from "../../../validation-CxqROCno.js";
3
- import { B as S, a as A, f as i, c as n, b as c, d as R, g as u, i as I, h as F, s as O, e as P, w as U } from "../../../waitForTransactionReceiptSmartAware-Ckg_oZAo.js";
4
- import { B as N, D as g, F as B, L as d, M as f, c as x, P as L, b as m, a as C, S as D, T as H, W as h, f as M, d as X, p as b, r as v } from "../../../fundPeginTransaction-96FxwYYJ.js";
5
- import { U as G, a as W, e as w, f as y, v as V } from "../../../reservation-cHDRn4DA.js";
6
- import { j as K } from "../../../bitcoin-B5aNKtsk.js";
2
+ import { B as T, H as _, K as E, M as o, T as r } from "../../../validation-CxqROCno.js";
3
+ import { B as S, a as i, f as n, c as A, b as c, d as u, g as R, i as I, h as O, s as P, e as U, w as l } from "../../../waitForTransactionReceiptSmartAware-lobLm0q0.js";
4
+ import { B as g, D as B, L as N, M as d, c as f, P as x, b as L, a as m, S as C, T as D, W as H, f as h, d as X, p as M, r as b } from "../../../fundPeginTransaction-B2wyjqp0.js";
5
+ import { U as W, a as Y, e as w, f as y, v as G } from "../../../reservation-cHDRn4DA.js";
6
+ import { j as Z } from "../../../bitcoin-B5aNKtsk.js";
7
7
  export {
8
- E as BITCOIN_ADDRESS_RE,
9
- N as BTC_DUST_SAT,
8
+ T as BITCOIN_ADDRESS_RE,
9
+ g as BTC_DUST_SAT,
10
10
  S as BitcoinScriptType,
11
- g as DUST_THRESHOLD,
12
- B as FEE_SAFETY_MARGIN,
13
- T as HEX_RE,
14
- _ as KNOWN_SCRIPT_PREFIXES,
15
- d as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
16
- f as MAX_NON_LEGACY_OUTPUT_SIZE,
11
+ B as DUST_THRESHOLD,
12
+ _ as HEX_RE,
13
+ E as KNOWN_SCRIPT_PREFIXES,
14
+ N as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
15
+ d as MAX_NON_LEGACY_OUTPUT_SIZE,
17
16
  o as MAX_REASONABLE_FEE_SATS,
18
- x as MAX_REASONABLE_PEGIN_VBYTES,
19
- L as P2TR_INPUT_SIZE,
20
- m as PEGIN_AUTH_ANCHOR_OUTPUTS,
21
- C as PEGIN_FIXED_OUTPUTS,
22
- D as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
17
+ f as MAX_REASONABLE_PEGIN_VBYTES,
18
+ x as P2TR_INPUT_SIZE,
19
+ L as PEGIN_AUTH_ANCHOR_OUTPUTS,
20
+ m as PEGIN_FIXED_OUTPUTS,
21
+ C as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
23
22
  r as TXID_RE,
24
- H as TX_BUFFER_SIZE_OVERHEAD,
25
- G as UtxoNotAvailableError,
26
- h as WALLET_RELAY_FEE_RATE_THRESHOLD,
27
- A as applyChangeOutputPolicy,
28
- W as assertUtxosAvailable,
29
- i as calculateBtcTxHash,
30
- n as computeChangeOutputFeeSats,
23
+ D as TX_BUFFER_SIZE_OVERHEAD,
24
+ W as UtxoNotAvailableError,
25
+ H as WALLET_RELAY_FEE_RATE_THRESHOLD,
26
+ i as applyChangeOutputPolicy,
27
+ Y as assertUtxosAvailable,
28
+ n as calculateBtcTxHash,
29
+ A as computeChangeOutputFeeSats,
31
30
  c as computeMaxDeposit,
32
- R as computePeginBaseFeeSats,
31
+ u as computePeginBaseFeeSats,
33
32
  t as createTaprootScriptPathSignOptions,
34
33
  w as extractInputsFromTransaction,
35
34
  y as findOverlappingPendingVaults,
36
- M as fundPeginTransaction,
37
- u as getDustThreshold,
38
- K as getNetwork,
35
+ h as fundPeginTransaction,
36
+ R as getDustThreshold,
37
+ Z as getNetwork,
39
38
  I as getPsbtInputFields,
40
- F as getScriptType,
39
+ O as getScriptType,
41
40
  X as parseUnfundedWasmTransaction,
42
- b as peginOutputCount,
43
- v as rateBasedTxBufferFee,
44
- O as selectUtxosForPegin,
45
- P as shouldAddChangeOutput,
46
- V as validateUtxosAvailable,
47
- U as waitForTransactionReceiptSmartAware
41
+ M as peginOutputCount,
42
+ b as rateBasedTxBufferFee,
43
+ P as selectUtxosForPegin,
44
+ U as shouldAddChangeOutput,
45
+ G as validateUtxosAvailable,
46
+ l as waitForTransactionReceiptSmartAware
48
47
  };
49
48
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../challengeAssert-DLQfNcfU.cjs"),R=require("../constants-CvbARMl-.cjs"),l=require("@babylonlabs-io/babylon-tbv-rust-wasm"),n=require("../verifyScriptPathSchnorrSignature-a4Us7D3e.cjs"),E=require("../peginInput-CAiiDZeO.cjs"),A=require("../noPayout-8dDKwi6n.cjs"),r=require("../bitcoin-CHfKAhcI.cjs"),m=require("../signing-Bnsro0hE.cjs"),d=require("../validation-u8W7Lp2x.cjs"),u=require("../PeginManager-De-eHl3v.cjs"),S=require("../PayoutManager-1GWmbvI9.cjs"),_=require("../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../BTCVaultRegistry.abi-JdeqLz4x.cjs"),c=require("../errors-CGcNP0rV.cjs"),o=require("../waitForTransactionReceiptSmartAware-U706oKTc.cjs"),t=require("../fundPeginTransaction-DuMwnytD.cjs"),P=require("../reservation-ClEs2X0H.cjs"),i=require("../mempoolApi-DqJByvqR.cjs"),a=require("../primeVpAuth-CF4cH5_e.cjs"),s=require("../types-WA0LrDk1.cjs"),g=require("../errors-Bu0H-dZD.cjs"),e=require("../buildAndBroadcastRefund-BnD2qUDW.cjs"),T=require("../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=p.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=p.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=p.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>l.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>l.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>l.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>l.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>l.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>l.expandWotsSeed});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>l.supportedTxGraphVersions});exports.PsbtSubstitutionError=n.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=n.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=n.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=n.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=n.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=n.buildPrePeginPsbt;exports.createPayoutScript=n.createPayoutScript;exports.extractPayoutSignature=n.extractPayoutSignature;exports.buildPeginInputPsbt=E.buildPeginInputPsbt;exports.extractPeginInputSignature=E.extractPeginInputSignature;exports.finalizePeginInputPsbt=E.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=A.buildNoPayoutPsbt;exports.buildRefundPsbt=A.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.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=d.BITCOIN_ADDRESS_RE;exports.HEX_RE=d.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=d.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=d.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=d.TXID_RE;exports.PeginManager=u.PeginManager;exports.VAULT_APP_NAME=u.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=u.buildFundingOutpointsCommitment;exports.buildVaultContext=u.buildVaultContext;exports.computeWotsBlockPublicKeysHash=u.computeWotsBlockPublicKeysHash;exports.deriveVaultRoot=u.deriveVaultRoot;exports.deriveWotsBlocksFromSeed=u.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=u.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=S.PayoutManager;exports.computeHashlock=S.computeHashlock;exports.validateSecretAgainstHashlock=S.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=c.CONTRACT_ERRORS;exports.extractErrorData=c.extractErrorData;exports.getContractErrorMessage=c.getContractErrorMessage;exports.handleContractError=c.handleContractError;exports.isKnownContractError=c.isKnownContractError;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=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=t.FEE_SAFETY_MARGIN;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.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=g.isWotsMismatchError;exports.parseFundingOutpointsFromTx=g.parseFundingOutpointsFromTx;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 T=require("../challengeAssert-DLQfNcfU.cjs"),R=require("../constants-CvbARMl-.cjs"),n=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../verifyScriptPathSchnorrSignature-BDznSCOR.cjs"),S=require("../peginInput-CAiiDZeO.cjs"),E=require("../noPayout-CNMqNNpc.cjs"),t=require("../bitcoin-CHfKAhcI.cjs"),m=require("../signing-Bnsro0hE.cjs"),c=require("../validation-u8W7Lp2x.cjs"),l=require("../PeginManager-vUUfZCzj.cjs"),A=require("../PayoutManager-aqtsj60t.cjs"),g=require("../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../BTCVaultRegistry.abi-JdeqLz4x.cjs"),d=require("../errors-CGcNP0rV.cjs"),o=require("../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../fundPeginTransaction-BLD8FRL9.cjs"),P=require("../reservation-ClEs2X0H.cjs"),i=require("../mempoolApi-DqJByvqR.cjs"),a=require("../primeVpAuth-CF4cH5_e.cjs"),s=require("../types-WA0LrDk1.cjs"),_=require("../errors-Bu0H-dZD.cjs"),e=require("../buildAndBroadcastRefund-Bwi1I5we.cjs"),p=require("../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=T.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=T.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=T.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.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=c.BITCOIN_ADDRESS_RE;exports.HEX_RE=c.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=c.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=c.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=c.TXID_RE;exports.PeginManager=l.PeginManager;exports.VAULT_APP_NAME=l.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=l.buildFundingOutpointsCommitment;exports.buildVaultContext=l.buildVaultContext;exports.computeWotsBlockPublicKeysHash=l.computeWotsBlockPublicKeysHash;exports.deriveVaultRoot=l.deriveVaultRoot;exports.deriveWotsBlocksFromSeed=l.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=l.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=A.PayoutManager;exports.computeHashlock=A.computeHashlock;exports.validateSecretAgainstHashlock=A.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=g.ApplicationRegistryABI;exports.ProtocolParamsABI=g.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=d.CONTRACT_ERRORS;exports.extractErrorData=d.extractErrorData;exports.getContractErrorMessage=d.getContractErrorMessage;exports.handleContractError=d.handleContractError;exports.isKnownContractError=d.isKnownContractError;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=_.isWotsMismatchError;exports.parseFundingOutpointsFromTx=_.parseFundingOutpointsFromTx;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=p.ContractStatus;exports.PeginAction=p.PeginAction;exports.canPerformAction=p.canPerformAction;exports.getPeginProtocolState=p.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=p.isActivationDeadlinePassedOnChain;
2
2
  //# sourceMappingURL=index.cjs.map