@babylonlabs-io/ts-sdk 0.55.1 → 0.56.0

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 (160) hide show
  1. package/README.md +0 -1
  2. package/dist/{PayoutManager-BJmPnyRP.js → PayoutManager-BVgmuKuK.js} +117 -105
  3. package/dist/PayoutManager-BVgmuKuK.js.map +1 -0
  4. package/dist/PayoutManager-Cu4_l-_Y.cjs +2 -0
  5. package/dist/PayoutManager-Cu4_l-_Y.cjs.map +1 -0
  6. package/dist/PeginManager-BkWdZI7P.cjs +2 -0
  7. package/dist/PeginManager-BkWdZI7P.cjs.map +1 -0
  8. package/dist/PeginManager-aYBkb-Qx.js +1289 -0
  9. package/dist/PeginManager-aYBkb-Qx.js.map +1 -0
  10. package/dist/{buildAndBroadcastRefund-BiSO4zg2.js → buildAndBroadcastRefund-BtXUqBkb.js} +444 -430
  11. package/dist/buildAndBroadcastRefund-BtXUqBkb.js.map +1 -0
  12. package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs +2 -0
  13. package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs.map +1 -0
  14. package/dist/challengeAssert-BVQq50su.js +75 -0
  15. package/dist/challengeAssert-BVQq50su.js.map +1 -0
  16. package/dist/challengeAssert-Cu-PtJ1g.cjs +2 -0
  17. package/dist/challengeAssert-Cu-PtJ1g.cjs.map +1 -0
  18. package/dist/constants-BqU1Uz15.cjs +2 -0
  19. package/dist/{constants-CvbARMl-.cjs.map → constants-BqU1Uz15.cjs.map} +1 -1
  20. package/dist/{constants-BhclpREj.js → constants-CDQE812z.js} +8 -6
  21. package/dist/{constants-BhclpREj.js.map → constants-CDQE812z.js.map} +1 -1
  22. package/dist/deriveVaultRoot-B_gEOTD6.js +72 -0
  23. package/dist/deriveVaultRoot-B_gEOTD6.js.map +1 -0
  24. package/dist/deriveVaultRoot-CebLadyJ.cjs +2 -0
  25. package/dist/deriveVaultRoot-CebLadyJ.cjs.map +1 -0
  26. package/dist/errors-B-H0seUG.js +8 -0
  27. package/dist/errors-B-H0seUG.js.map +1 -0
  28. package/dist/errors-Bfjxg_iJ.cjs +2 -0
  29. package/dist/errors-Bfjxg_iJ.cjs.map +1 -0
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.js +197 -193
  32. package/dist/index.js.map +1 -1
  33. package/dist/{mempoolApi-CB7bHuwi.js → mempoolApi-P_ApODLd.js} +2 -2
  34. package/dist/{mempoolApi-CB7bHuwi.js.map → mempoolApi-P_ApODLd.js.map} +1 -1
  35. package/dist/{mempoolApi-DqJByvqR.cjs → mempoolApi-emec8bHK.cjs} +2 -2
  36. package/dist/{mempoolApi-DqJByvqR.cjs.map → mempoolApi-emec8bHK.cjs.map} +1 -1
  37. package/dist/{noPayout-CNMqNNpc.cjs → noPayout-Cb8vFrkY.cjs} +2 -2
  38. package/dist/{noPayout-CNMqNNpc.cjs.map → noPayout-Cb8vFrkY.cjs.map} +1 -1
  39. package/dist/{noPayout-CfBg3HzC.js → noPayout-CihCk1HE.js} +2 -2
  40. package/dist/{noPayout-CfBg3HzC.js.map → noPayout-CihCk1HE.js.map} +1 -1
  41. package/dist/parseFundingOutpoints-C_-PT9BT.cjs +2 -0
  42. package/dist/parseFundingOutpoints-C_-PT9BT.cjs.map +1 -0
  43. package/dist/parseFundingOutpoints-GSM-IaaK.js +17 -0
  44. package/dist/parseFundingOutpoints-GSM-IaaK.js.map +1 -0
  45. package/dist/{primeVpAuth-l-5x_2UV.js → primeVpAuth-DZOaC_Ui.js} +3 -3
  46. package/dist/{primeVpAuth-l-5x_2UV.js.map → primeVpAuth-DZOaC_Ui.js.map} +1 -1
  47. package/dist/{primeVpAuth-CF4cH5_e.cjs → primeVpAuth-j2getl3f.cjs} +2 -2
  48. package/dist/{primeVpAuth-CF4cH5_e.cjs.map → primeVpAuth-j2getl3f.cjs.map} +1 -1
  49. package/dist/tbv/core/clients/index.cjs +1 -1
  50. package/dist/tbv/core/clients/index.js +2 -2
  51. package/dist/tbv/core/deposit-terms/__tests__/buildDepositTerms.test.d.ts +2 -0
  52. package/dist/tbv/core/deposit-terms/__tests__/buildDepositTerms.test.d.ts.map +1 -0
  53. package/dist/tbv/core/deposit-terms/buildDepositTerms.d.ts +8 -0
  54. package/dist/tbv/core/deposit-terms/buildDepositTerms.d.ts.map +1 -0
  55. package/dist/tbv/core/deposit-terms/depositTerms.d.ts +92 -0
  56. package/dist/tbv/core/deposit-terms/depositTerms.d.ts.map +1 -0
  57. package/dist/tbv/core/deposit-terms/index.d.ts +12 -0
  58. package/dist/tbv/core/deposit-terms/index.d.ts.map +1 -0
  59. package/dist/tbv/core/index.cjs +1 -1
  60. package/dist/tbv/core/index.d.ts +1 -0
  61. package/dist/tbv/core/index.d.ts.map +1 -1
  62. package/dist/tbv/core/index.js +195 -191
  63. package/dist/tbv/core/index.js.map +1 -1
  64. package/dist/tbv/core/managers/PayoutManager.d.ts +7 -0
  65. package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
  66. package/dist/tbv/core/managers/PeginManager.d.ts +13 -0
  67. package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
  68. package/dist/tbv/core/managers/index.cjs +1 -1
  69. package/dist/tbv/core/managers/index.js +2 -2
  70. package/dist/tbv/core/primitives/index.cjs +1 -1
  71. package/dist/tbv/core/primitives/index.d.ts +0 -3
  72. package/dist/tbv/core/primitives/index.d.ts.map +1 -1
  73. package/dist/tbv/core/primitives/index.js +37 -38
  74. package/dist/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.d.ts +7 -0
  75. package/dist/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.d.ts.map +1 -0
  76. package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts +63 -0
  77. package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts.map +1 -0
  78. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts +4 -1
  79. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
  80. package/dist/tbv/core/primitives/psbt/constants.d.ts +18 -4
  81. package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
  82. package/dist/tbv/core/primitives/psbt/payout.d.ts +21 -2
  83. package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
  84. package/dist/tbv/core/primitives/psbt/pegin.d.ts +6 -0
  85. package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
  86. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +12 -0
  87. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
  88. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +5 -0
  89. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
  90. package/dist/tbv/core/services/index.cjs +1 -1
  91. package/dist/tbv/core/services/index.js +2 -2
  92. package/dist/tbv/core/vault-secrets/index.cjs +2 -0
  93. package/dist/tbv/core/vault-secrets/index.cjs.map +1 -0
  94. package/dist/tbv/core/vault-secrets/index.js +14 -0
  95. package/dist/tbv/core/vault-secrets/index.js.map +1 -0
  96. package/dist/tbv/index.cjs +1 -1
  97. package/dist/tbv/index.js +195 -191
  98. package/dist/tbv/index.js.map +1 -1
  99. package/dist/tbv/integrations/aave/clients/index.d.ts +1 -1
  100. package/dist/tbv/integrations/aave/clients/index.d.ts.map +1 -1
  101. package/dist/tbv/integrations/aave/clients/spoke.d.ts +0 -20
  102. package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
  103. package/dist/tbv/integrations/aave/constants.d.ts +0 -22
  104. package/dist/tbv/integrations/aave/constants.d.ts.map +1 -1
  105. package/dist/tbv/integrations/aave/index.cjs +1 -1
  106. package/dist/tbv/integrations/aave/index.cjs.map +1 -1
  107. package/dist/tbv/integrations/aave/index.d.ts +5 -6
  108. package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
  109. package/dist/tbv/integrations/aave/index.js +236 -339
  110. package/dist/tbv/integrations/aave/index.js.map +1 -1
  111. package/dist/tbv/integrations/aave/types.d.ts +0 -7
  112. package/dist/tbv/integrations/aave/types.d.ts.map +1 -1
  113. package/dist/tbv/integrations/aave/utils/healthFactor.d.ts +0 -7
  114. package/dist/tbv/integrations/aave/utils/healthFactor.d.ts.map +1 -1
  115. package/dist/tbv/integrations/aave/utils/index.d.ts +3 -8
  116. package/dist/tbv/integrations/aave/utils/index.d.ts.map +1 -1
  117. package/dist/tbv/integrations/aave/utils/vaultSplit.d.ts +0 -65
  118. package/dist/tbv/integrations/aave/utils/vaultSplit.d.ts.map +1 -1
  119. package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs +2 -0
  120. package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs.map +1 -0
  121. package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js +724 -0
  122. package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js.map +1 -0
  123. package/package.json +4 -4
  124. package/dist/PayoutManager-BJmPnyRP.js.map +0 -1
  125. package/dist/PayoutManager-aqtsj60t.cjs +0 -2
  126. package/dist/PayoutManager-aqtsj60t.cjs.map +0 -1
  127. package/dist/PeginManager-D22MLWfM.js +0 -1295
  128. package/dist/PeginManager-D22MLWfM.js.map +0 -1
  129. package/dist/PeginManager-vUUfZCzj.cjs +0 -2
  130. package/dist/PeginManager-vUUfZCzj.cjs.map +0 -1
  131. package/dist/buildAndBroadcastRefund-BiSO4zg2.js.map +0 -1
  132. package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs +0 -2
  133. package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs.map +0 -1
  134. package/dist/challengeAssert-DLQfNcfU.cjs +0 -2
  135. package/dist/challengeAssert-DLQfNcfU.cjs.map +0 -1
  136. package/dist/challengeAssert-DvdbpEDY.js +0 -128
  137. package/dist/challengeAssert-DvdbpEDY.js.map +0 -1
  138. package/dist/constants-CvbARMl-.cjs +0 -2
  139. package/dist/errors-9AkghWyk.js +0 -22
  140. package/dist/errors-9AkghWyk.js.map +0 -1
  141. package/dist/errors-Bu0H-dZD.cjs +0 -2
  142. package/dist/errors-Bu0H-dZD.cjs.map +0 -1
  143. package/dist/tbv/core/primitives/psbt/depositorPayout.d.ts +0 -34
  144. package/dist/tbv/core/primitives/psbt/depositorPayout.d.ts.map +0 -1
  145. package/dist/tbv/integrations/aave/utils/__tests__/borrowRatio.test.d.ts +0 -5
  146. package/dist/tbv/integrations/aave/utils/__tests__/borrowRatio.test.d.ts.map +0 -1
  147. package/dist/tbv/integrations/aave/utils/__tests__/seizureSimulation.test.d.ts +0 -5
  148. package/dist/tbv/integrations/aave/utils/__tests__/seizureSimulation.test.d.ts.map +0 -1
  149. package/dist/tbv/integrations/aave/utils/__tests__/vaultSelection.test.d.ts +0 -2
  150. package/dist/tbv/integrations/aave/utils/__tests__/vaultSelection.test.d.ts.map +0 -1
  151. package/dist/tbv/integrations/aave/utils/borrowRatio.d.ts +0 -15
  152. package/dist/tbv/integrations/aave/utils/borrowRatio.d.ts.map +0 -1
  153. package/dist/tbv/integrations/aave/utils/seizureSimulation.d.ts +0 -109
  154. package/dist/tbv/integrations/aave/utils/seizureSimulation.d.ts.map +0 -1
  155. package/dist/tbv/integrations/aave/utils/vaultSelection.d.ts +0 -33
  156. package/dist/tbv/integrations/aave/utils/vaultSelection.d.ts.map +0 -1
  157. package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs +0 -2
  158. package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs.map +0 -1
  159. package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js +0 -658
  160. package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js.map +0 -1
@@ -1,47 +1,46 @@
1
- import { a as s, b as t, c as r } from "../../../challengeAssert-DvdbpEDY.js";
2
- import { a as o } from "../../../constants-BhclpREj.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";
1
+ import { b as s, c as t } from "../../../challengeAssert-BVQq50su.js";
2
+ import { a as i } from "../../../constants-CDQE812z.js";
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-CgrnAjMW.js";
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-CihCk1HE.js";
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
- x as PsbtSubstitutionError,
10
- g as assertPsbtUnsignedTxMatches,
11
- f as assertScriptPathSchnorrSignature,
12
- o as assertValidVaultCoreVersion,
9
+ c as PsbtSubstitutionError,
10
+ x as assertPsbtUnsignedTxMatches,
11
+ g as assertScriptPathSchnorrSignature,
12
+ i as assertValidVaultCoreVersion,
13
13
  s as buildChallengeAssertPsbt,
14
- t as buildDepositorPayoutPsbt,
15
- F as buildNoPayoutPsbt,
16
- m as buildPayoutPsbt,
17
- T as buildPeginInputPsbt,
18
- y as buildPeginTxFromFundedPrePegin,
19
- h as buildPrePeginPsbt,
20
- I as buildRefundPsbt,
21
- n as computeMinClaimValue,
22
- P as computeMinPeginFee,
23
- r as computeNumLocalChallengers,
24
- S as createPayoutScript,
25
- K as deriveBip86ScriptPubKeyHex,
26
- M as deriveNativeSegwitAddress,
27
- N as deriveTaprootAddress,
28
- d as deriveVaultId,
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,
14
+ C as buildNoPayoutPsbt,
15
+ f as buildPayoutPsbt,
16
+ A as buildPeginInputPsbt,
17
+ m as buildPeginTxFromFundedPrePegin,
18
+ y as buildPrePeginPsbt,
19
+ F as buildRefundPsbt,
20
+ u as computeMinClaimValue,
21
+ n as computeMinPeginFee,
22
+ t as computeNumLocalChallengers,
23
+ h as createPayoutScript,
24
+ O as deriveBip86ScriptPubKeyHex,
25
+ K as deriveNativeSegwitAddress,
26
+ M as deriveTaprootAddress,
27
+ P as deriveVaultId,
28
+ N as ensureHexPrefix,
29
+ S as extractPayoutSignature,
30
+ T as extractPeginInputSignature,
31
+ V as finalizePeginInputPsbt,
32
+ X as formatSatoshisToBtc,
33
+ k as getSortedXOnlyPubkeys,
34
+ B as hexToUint8Array,
35
+ U as isAddressFromPublicKey,
36
+ w as isValidHex,
37
+ d as peginP2aAnchorOutput,
38
+ z as processPublicKeyToXOnly,
40
39
  E as stripHexPrefix,
41
40
  l as supportedTxGraphVersions,
42
41
  G as toXOnly,
43
42
  L as uint8ArrayToHex,
44
- p as validatePeginP2aAnchor,
43
+ b as validatePeginP2aAnchor,
45
44
  R as validateWalletPubkey
46
45
  };
47
46
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Unit tests for the payout implicit-fee band (floor + ceiling) and its
3
+ * input-domain guard, exercised directly with plain numbers — the e2e wiring
4
+ * through buildPayoutPsbt is covered in payout.test.ts.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=assertPayoutFeeBand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertPayoutFeeBand.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Payout implicit-fee band validation (floor + ceiling).
3
+ *
4
+ * Bands the implicit fee of a VP-built payout transaction before the
5
+ * depositor pre-signs it:
6
+ * - Ceiling: the Ledger device's payout vsize model (`app-babylon-vault`
7
+ * `sign_psbt_validate.c`, HLD v22 §4.9.7.1) extended by measured script
8
+ * excess over its 34-byte assumption — blocks a VP deflating outputs and
9
+ * burning the difference as miner fee.
10
+ * - Floor: the minimum fee any known VP output-sizing model produces
11
+ * (vault-wasm `computePayoutFeeFloor`) — a lower fee is provably
12
+ * illegitimate and risks a payout that cannot relay at redemption time.
13
+ *
14
+ * Preconditions, enforced by the caller (`buildPayoutPsbt`):
15
+ * - `assertPayoutFeeBandDomain` has accepted the rate and participant counts,
16
+ * so the band runs exactly over the domain its dominance proof was swept.
17
+ * - `out0Len` is the layout-trusted length of the PINNED outs[0] script.
18
+ * `out1Len` is measured from the deliberately-unpinned VP commission
19
+ * output and is UNTRUSTED: it feeds only the floor, where padding cannot
20
+ * raise it (the fixed-34 model saturates the minimum) and shortening only
21
+ * lowers it. It must never widen the ceiling — a VP-controlled length
22
+ * there would buy burnable headroom.
23
+ * - `implicitFeeSats` is `inputs − outputs` over verified prevouts, `>= 0`.
24
+ *
25
+ * @module primitives/psbt/assertPayoutFeeBand
26
+ */
27
+ /** Shape/rate inputs the fee band is evaluated over. */
28
+ export interface PayoutFeeBandParams {
29
+ /** Vault core (tx-graph) version — selects the floor's pinned model set. */
30
+ vaultCoreVersion: number;
31
+ /** Vault keeper count (N). */
32
+ numVaultKeepers: number;
33
+ /** Universal challenger count (M). */
34
+ numUniversalChallengers: number;
35
+ /** Security council size from the locked offchain params version. */
36
+ councilSize: number;
37
+ /** Version-locked tx-graph fee rate (sat/vB); anchors both band ends. */
38
+ protocolFeeRate: bigint;
39
+ }
40
+ /**
41
+ * Validate that the fee-band inputs lie in the proven/accepted domain:
42
+ * `protocolFeeRate` in `[1, 0xffffffff]`, participant counts in `[1, 32]`,
43
+ * `councilSize` a positive integer.
44
+ *
45
+ * @throws If `protocolFeeRate` is not a bigint within the device's range
46
+ * @throws If a participant count is not an integer in the device range `[1, 32]`
47
+ * @throws If `councilSize` is not an integer `>= 1` — the contract write path
48
+ * (`ProtocolParams.sol`) rejects an empty council, and the WASM floor would
49
+ * silently treat 0 as a 1-member council rather than erroring
50
+ */
51
+ export declare function assertPayoutFeeBandDomain(params: PayoutFeeBandParams): void;
52
+ /**
53
+ * Assert `floor <= implicitFeeSats <= ceiling` for a payout of this shape.
54
+ * `out1Len` is `undefined` for the 2-output (no-commission) layouts.
55
+ *
56
+ * @throws If the fee is below the floor or above the extended device ceiling
57
+ */
58
+ export declare function assertPayoutFeeInBand(params: PayoutFeeBandParams, measured: {
59
+ implicitFeeSats: number;
60
+ out0Len: number;
61
+ out1Len: number | undefined;
62
+ }): Promise<void>;
63
+ //# sourceMappingURL=assertPayoutFeeBand.d.ts.map
@@ -0,0 +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,CAgDf"}
@@ -18,10 +18,13 @@ import { PrePeginParams } from './pegin';
18
18
  *
19
19
  * @param result - The result returned by `createPrePeginTransaction`.
20
20
  * @param params - The parameters that were passed to build it.
21
+ * @returns The independently computed `minPeginFee` this function already
22
+ * asserted against `result`'s implied reserve — callers that need the
23
+ * value should reuse this instead of recomputing it.
21
24
  * @throws If any value is missing, non-positive, mismatched against the
22
25
  * request, or outside the protocol formula.
23
26
  */
24
- export declare function assertWasmPeginSizing(result: PrePeginResult, params: PrePeginParams): Promise<void>;
27
+ export declare function assertWasmPeginSizing(result: PrePeginResult, params: PrePeginParams): Promise<bigint>;
25
28
  /**
26
29
  * Bind the validated metadata to the bytes that actually get funded and
27
30
  * signed.
@@ -1 +1 @@
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"}
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;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,MAAM,CAAC,CAsJjB;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"}
@@ -37,10 +37,24 @@ export declare const NON_VP_CLAIMER_PAYOUT_OUTPUT_COUNT = 2;
37
37
  */
38
38
  export declare const CHALLENGE_ASSERT_CONNECTORS_PER_CHALLENGER = 2;
39
39
  /**
40
- * Exclusive upper bound on VP commission (bps), and the bps denominator for
41
- * `floor(peginValue * bps / 10_000)`. Matches `BTCVaultRegistry._validateCommission`
42
- * (`commissionBps >= 10000` reverts). The minimum is version-locked
43
- * (`minVpCommissionBps`) and enforced upstream, not here.
40
+ * Exclusive upper bound on VP commission (bps). Matches
41
+ * `BTCVaultRegistry._validateCommission` (`commissionBps >= 10000` reverts).
42
+ * The minimum is version-locked (`minVpCommissionBps`) and enforced upstream,
43
+ * not here.
44
44
  */
45
45
  export declare const MAX_VP_COMMISSION_BPS_EXCLUSIVE = 10000;
46
+ /**
47
+ * Basis-points denominator for commission math:
48
+ * `floor(value * bps / BPS_DENOMINATOR)`. Numerically equal to
49
+ * {@link MAX_VP_COMMISSION_BPS_EXCLUSIVE} but a distinct concept — tightening
50
+ * the accepted bps range must never change the arithmetic.
51
+ */
52
+ export declare const BPS_DENOMINATOR = 10000;
53
+ /**
54
+ * Contract cap on a registered payout/commission scriptPubKey's byte length
55
+ * (`MAX_PAYOUT_ADDRESS_LENGTH`, Constants.sol; empty scripts are rejected at
56
+ * registration, so valid lengths are `[1, 128]`). A measured length outside
57
+ * this range is provably not a registered script.
58
+ */
59
+ export declare const MAX_PAYOUT_SCRIPT_LEN = 128;
46
60
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,sFAAsF;AACtF,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,+EAA+E;AAC/E,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,IAAI,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,QAAS,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,sFAAsF;AACtF,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,+EAA+E;AAC/E,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,IAAI,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,QAAS,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAS,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC"}
@@ -68,6 +68,20 @@ export interface PayoutParams {
68
68
  * upstream; here only `0 <= bps < 10_000` is checked, for safe cap math.
69
69
  */
70
70
  commissionBps: number;
71
+ /**
72
+ * Tx-graph fee rate (sat/vB) the graph was built with — the version-locked
73
+ * `offchainParams.feeRate` at the vault's stamped `offchainParamsVersion`,
74
+ * NOT a live read. Anchors both ends of the fee band.
75
+ */
76
+ protocolFeeRate: bigint;
77
+ /**
78
+ * Security council member count from the locked offchain params version.
79
+ * Mirrors the upstream estimator's signature; at the current model pins the
80
+ * council occupies a single taptree leaf regardless of size, so the floor
81
+ * is council-size-invariant — passed for forward compatibility with future
82
+ * pinned models.
83
+ */
84
+ councilSize: number;
71
85
  }
72
86
  /**
73
87
  * Result of building an unsigned payout PSBT
@@ -99,8 +113,13 @@ export interface PayoutPsbtResult {
99
113
  * @throws If input 1 does not spend Assert:0 (proof output)
100
114
  * @throws If previous output is not found for either input
101
115
  * @throws If sum of output values exceeds sum of input values (invalid tx)
102
- * @throws If implicit fee (inputs − outputs) exceeds the configured fraction
103
- * of total input value — see {@link MAX_PAYOUT_FEE_FRACTION_NUMERATOR}
116
+ * @throws If the implicit fee (inputs − outputs) is outside the fee band —
117
+ * below the floor or above the extended device ceiling (see
118
+ * {@link assertPayoutFeeInBand})
119
+ * @throws If `protocolFeeRate`, a participant count, or `councilSize` is
120
+ * outside the accepted input domain (see {@link assertPayoutFeeBandDomain})
121
+ * @throws If a non-anchor scriptPubKey length is outside `[1,
122
+ * {@link MAX_PAYOUT_SCRIPT_LEN}]`
104
123
  * @throws If `claimerBtcPubkey` is not VP, depositor, or a registered VK
105
124
  * @throws If payout output count, outs[0] script, outs[last] anchor value, or
106
125
  * (VP-claimer) outs[1] commission cap do not match the protocol layout
@@ -1 +1 @@
1
- {"version":3,"file":"payout.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/payout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,OAAO,EAEb,MAAM,uCAAuC,CAAC;AAyC/C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;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;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,gBAAgB,CAAC,CA+K3B;AAwHD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,UAAU,SAAI,GACb,MAAM,CA+CR"}
1
+ {"version":3,"file":"payout.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/payout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,OAAO,EAEb,MAAM,uCAAuC,CAAC;AAuC/C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;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;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,gBAAgB,CAAC,CAoF3B;AAmPD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,UAAU,SAAI,GACb,MAAM,CA+CR"}
@@ -81,6 +81,12 @@ export interface PrePeginPsbtResult {
81
81
  * Always equals `htlcValues.length` when present.
82
82
  */
83
83
  authAnchorVout: number | null;
84
+ /**
85
+ * Minimum PegIn fee (sats), independently computed and asserted against
86
+ * `htlcValues`' implied reserve by {@link assertWasmPeginSizing}. Reuse
87
+ * this instead of recomputing — it is already the cross-checked value.
88
+ */
89
+ minPeginFee: bigint;
84
90
  }
85
91
  /**
86
92
  * Parameters for building the PegIn transaction from a funded Pre-PegIn tx
@@ -1 +1 @@
1
- {"version":3,"file":"pegin.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/pegin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,KAAK,OAAO,EACb,MAAM,uCAAuC,CAAC;AAgB/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,SAA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rC,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,kBAAkB,CAAC,CA+D7B;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,MAAM,GAAG,SAAS,CAapB;AAED;;;;;;;;;GASG;AACH,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,aAAa,CAAC,CAwCxB"}
@@ -1,5 +1,6 @@
1
1
  import { Network } from '@babylonlabs-io/babylon-tbv-rust-wasm';
2
2
  import { BitcoinWallet } from '../../../../shared/wallets/interfaces';
3
+ import { DepositTerms } from '../../deposit-terms';
3
4
  import { PeginStatusReader, PresignClient } from './interfaces';
4
5
  /**
5
6
  * Context required for signing payout transactions.
@@ -52,6 +53,12 @@ export interface PayoutSigningContext {
52
53
  registeredPayoutScriptPubKey: string;
53
54
  /** VP commission (bps) from `BTCVaultRegistry`; caps the VP-claimer payout commission output. */
54
55
  commissionBps: number;
56
+ /**
57
+ * Tx-graph fee rate (sat/vB) from the locked offchain params version —
58
+ * `getOffchainParamsByVersion(...).feeRate`, the rate the VP built the
59
+ * graph with. Bounds every payout's implicit fee (device fee-bound model).
60
+ */
61
+ protocolFeeRate: bigint;
55
62
  }
56
63
  export interface RunDepositorPresignFlowParams {
57
64
  /** VP client implementing the status reader interface */
@@ -66,6 +73,11 @@ export interface RunDepositorPresignFlowParams {
66
73
  depositorPk: string;
67
74
  /** Signing context built from on-chain data */
68
75
  signingContext: PayoutSigningContext;
76
+ /**
77
+ * Required for approval-capable wallets; fresh flows thread
78
+ * PreparePeginResult.depositTerms. Resume-path rebuild is not wired yet.
79
+ */
80
+ depositTerms?: DepositTerms;
69
81
  /** Maximum polling timeout in milliseconds (default: 20 min) */
70
82
  timeoutMs?: number;
71
83
  /** AbortSignal for cancellation */
@@ -1 +1 @@
1
- {"version":3,"file":"runDepositorPresignFlow.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/runDeposit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CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sEAAsE;IACtE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAgMD;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CA+Gf"}
1
+ {"version":3,"file":"runDepositorPresignFlow.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/runDepositorPresignFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAM3E,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQrE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,yDAAyD;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,4BAA4B,EAAE,MAAM,CAAC;IACrC,iGAAiG;IACjG,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C,yDAAyD;IACzD,YAAY,EAAE,iBAAiB,CAAC;IAChC,oEAAoE;IACpE,aAAa,EAAE,aAAa,CAAC;IAC7B,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,cAAc,EAAE,oBAAoB,CAAC;IACrC;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sEAAsE;IACtE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAgMD;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAiJf"}
@@ -26,6 +26,11 @@ export interface DepositorGraphSigningContext {
26
26
  universalChallengerBtcPubkeys: string[];
27
27
  /** Pegin CSV timelock from the locked offchain params version (blocks) */
28
28
  timelockPegin: number;
29
+ /**
30
+ * Tx-graph fee rate (sat/vB) from the locked offchain params version —
31
+ * bounds the depositor-claimer payout's implicit fee (device fee-bound model).
32
+ */
33
+ protocolFeeRate: bigint;
29
34
  /**
30
35
  * Assert CSV timelock from the locked offchain params version (blocks).
31
36
  * Sourced from the on-chain ProtocolParams contract via
@@ -1 +1 @@
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
+ {"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/de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- "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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../PayoutManager-Cu4_l-_Y.cjs"),t=require("../../../buildAndBroadcastRefund-Cq01wyZX.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-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";
1
+ import { c as s, v as e } from "../../../PayoutManager-BVgmuKuK.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-BtXUqBkb.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,
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@babylonlabs-io/babylon-tbv-rust-wasm"),e=require("../../../deriveVaultRoot-CebLadyJ.cjs"),n=require("../../../parseFundingOutpoints-C_-PT9BT.cjs");Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>t.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>t.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>t.expandWotsSeed});exports.VAULT_APP_NAME=e.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=e.buildFundingOutpointsCommitment;exports.buildVaultContext=e.buildVaultContext;exports.deriveVaultRoot=e.deriveVaultRoot;exports.parseFundingOutpointsFromTx=n.parseFundingOutpointsFromTx;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { expandAuthAnchor as e, expandHashlockSecret as a, expandWotsSeed as n } from "@babylonlabs-io/babylon-tbv-rust-wasm";
2
+ import { V as d, b as p, a as s, d as u } from "../../../deriveVaultRoot-B_gEOTD6.js";
3
+ import { p as x } from "../../../parseFundingOutpoints-GSM-IaaK.js";
4
+ export {
5
+ d as VAULT_APP_NAME,
6
+ p as buildFundingOutpointsCommitment,
7
+ s as buildVaultContext,
8
+ u as deriveVaultRoot,
9
+ e as expandAuthAnchor,
10
+ a as expandHashlockSecret,
11
+ n as expandWotsSeed,
12
+ x as parseFundingOutpointsFromTx
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,2 +1,2 @@
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;
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"),m=require("../signing-Bnsro0hE.cjs"),l=require("../validation-u8W7Lp2x.cjs"),d=require("../PeginManager-BkWdZI7P.cjs"),c=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-emec8bHK.cjs"),a=require("../primeVpAuth-j2getl3f.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.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;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.PeginManager=d.PeginManager;exports.buildDepositTerms=d.buildDepositTerms;exports.computeWotsBlockPublicKeysHash=d.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=d.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=d.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=c.PayoutManager;exports.computeHashlock=c.computeHashlock;exports.forwardDepositApproval=c.forwardDepositApproval;exports.supportsDepositApproval=c.supportsDepositApproval;exports.validateSecretAgainstHashlock=c.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;
2
2
  //# sourceMappingURL=index.cjs.map