@babylonlabs-io/ts-sdk 0.72.1 → 0.73.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 (154) hide show
  1. package/README.md +56 -13
  2. package/dist/BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs +2 -0
  3. package/dist/BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs.map +1 -0
  4. package/dist/BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js +229 -0
  5. package/dist/BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js.map +1 -0
  6. package/dist/PeginManager-C9RPOd0L.js +1216 -0
  7. package/dist/PeginManager-C9RPOd0L.js.map +1 -0
  8. package/dist/PeginManager-E-UHA1un.cjs +2 -0
  9. package/dist/PeginManager-E-UHA1un.cjs.map +1 -0
  10. package/dist/bip322Verify-B7_gIhRk.cjs +2 -0
  11. package/dist/bip322Verify-B7_gIhRk.cjs.map +1 -0
  12. package/dist/bip322Verify-D6sBBUHE.js +79 -0
  13. package/dist/bip322Verify-D6sBBUHE.js.map +1 -0
  14. package/dist/{buildAndBroadcastReclaim-QIN8Mcwq.js → buildAndBroadcastReclaim-BXclIcu_.js} +3 -3
  15. package/dist/{buildAndBroadcastReclaim-QIN8Mcwq.js.map → buildAndBroadcastReclaim-BXclIcu_.js.map} +1 -1
  16. package/dist/{buildAndBroadcastReclaim-HX2xQlbM.cjs → buildAndBroadcastReclaim-U-PyFfDg.cjs} +2 -2
  17. package/dist/{buildAndBroadcastReclaim-HX2xQlbM.cjs.map → buildAndBroadcastReclaim-U-PyFfDg.cjs.map} +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.js +209 -205
  20. package/dist/index.js.map +1 -1
  21. package/dist/onChainBtcPubkey-BbxRrbvg.cjs +2 -0
  22. package/dist/onChainBtcPubkey-BbxRrbvg.cjs.map +1 -0
  23. package/dist/onChainBtcPubkey-C-6UWpD8.js +34 -0
  24. package/dist/onChainBtcPubkey-C-6UWpD8.js.map +1 -0
  25. package/dist/{parseFundingOutpoints-BkgGihaY.cjs → parseFundingOutpoints-B4iQeX6q.cjs} +2 -2
  26. package/dist/{parseFundingOutpoints-BkgGihaY.cjs.map → parseFundingOutpoints-B4iQeX6q.cjs.map} +1 -1
  27. package/dist/{parseFundingOutpoints-DlINgQ3X.js → parseFundingOutpoints-B67CoXpF.js} +2 -2
  28. package/dist/{parseFundingOutpoints-DlINgQ3X.js.map → parseFundingOutpoints-B67CoXpF.js.map} +1 -1
  29. package/dist/pegin-registration-client-6vLk2itL.cjs +2 -0
  30. package/dist/pegin-registration-client-6vLk2itL.cjs.map +1 -0
  31. package/dist/pegin-registration-client-BdRiR8br.js +2635 -0
  32. package/dist/pegin-registration-client-BdRiR8br.js.map +1 -0
  33. package/dist/primeVpAuth-DBHohVKM.cjs +2 -0
  34. package/dist/primeVpAuth-DBHohVKM.cjs.map +1 -0
  35. package/dist/primeVpAuth-DvaD45q_.js +745 -0
  36. package/dist/primeVpAuth-DvaD45q_.js.map +1 -0
  37. package/dist/psbtInputFields-B3e05Xe6.js +171 -0
  38. package/dist/psbtInputFields-B3e05Xe6.js.map +1 -0
  39. package/dist/psbtInputFields-BIxBpPj2.cjs +2 -0
  40. package/dist/psbtInputFields-BIxBpPj2.cjs.map +1 -0
  41. package/dist/sha2-CrlWM5S8.js +312 -0
  42. package/dist/{sha2-BYVxyZzX.js.map → sha2-CrlWM5S8.js.map} +1 -1
  43. package/dist/sha2-DI0-0SHr.cjs +2 -0
  44. package/dist/{sha2-DsrLC4NM.cjs.map → sha2-DI0-0SHr.cjs.map} +1 -1
  45. package/dist/{signPsbtsWithFallback-CCFTzE0o.js → signPsbtsWithFallback-0VBALhjS.js} +2 -2
  46. package/dist/{signPsbtsWithFallback-CCFTzE0o.js.map → signPsbtsWithFallback-0VBALhjS.js.map} +1 -1
  47. package/dist/{signPsbtsWithFallback-CrkvpSJz.cjs → signPsbtsWithFallback-DMSpIQWH.cjs} +2 -2
  48. package/dist/{signPsbtsWithFallback-CrkvpSJz.cjs.map → signPsbtsWithFallback-DMSpIQWH.cjs.map} +1 -1
  49. package/dist/tbv/core/clients/eth/__tests__/eth-import-boundary.test.d.ts +2 -0
  50. package/dist/tbv/core/clients/eth/__tests__/eth-import-boundary.test.d.ts.map +1 -0
  51. package/dist/tbv/core/clients/eth/__tests__/onChainBtcPubkey.test.d.ts +2 -0
  52. package/dist/tbv/core/clients/eth/__tests__/onChainBtcPubkey.test.d.ts.map +1 -0
  53. package/dist/tbv/core/clients/eth/__tests__/payout-script.test.d.ts +2 -0
  54. package/dist/tbv/core/clients/eth/__tests__/payout-script.test.d.ts.map +1 -0
  55. package/dist/tbv/core/clients/eth/__tests__/pegin-registration-calldata.test.d.ts +2 -0
  56. package/dist/tbv/core/clients/eth/__tests__/pegin-registration-calldata.test.d.ts.map +1 -0
  57. package/dist/tbv/core/clients/eth/__tests__/pegin-registration-client.test.d.ts +2 -0
  58. package/dist/tbv/core/clients/eth/__tests__/pegin-registration-client.test.d.ts.map +1 -0
  59. package/dist/tbv/core/clients/eth/__tests__/pegin-transaction.test.d.ts +2 -0
  60. package/dist/tbv/core/clients/eth/__tests__/pegin-transaction.test.d.ts.map +1 -0
  61. package/dist/tbv/core/clients/eth/index.cjs +2 -0
  62. package/dist/tbv/core/clients/eth/index.cjs.map +1 -0
  63. package/dist/tbv/core/clients/eth/index.d.ts +4 -0
  64. package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
  65. package/dist/tbv/core/clients/eth/index.js +22 -0
  66. package/dist/tbv/core/clients/eth/index.js.map +1 -0
  67. package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts.map +1 -1
  68. package/dist/tbv/core/clients/eth/payout-script.d.ts +4 -0
  69. package/dist/tbv/core/clients/eth/payout-script.d.ts.map +1 -0
  70. package/dist/tbv/core/clients/eth/pegin-registration-client.d.ts +99 -0
  71. package/dist/tbv/core/clients/eth/pegin-registration-client.d.ts.map +1 -0
  72. package/dist/tbv/core/clients/eth/pegin-transaction.d.ts +14 -0
  73. package/dist/tbv/core/clients/eth/pegin-transaction.d.ts.map +1 -0
  74. package/dist/tbv/core/clients/index.cjs +1 -1
  75. package/dist/tbv/core/clients/index.js +55 -48
  76. package/dist/tbv/core/clients/index.js.map +1 -1
  77. package/dist/tbv/core/clients/mempool/index.cjs +2 -0
  78. package/dist/tbv/core/clients/mempool/index.cjs.map +1 -0
  79. package/dist/tbv/core/clients/mempool/index.js +222 -0
  80. package/dist/tbv/core/clients/mempool/index.js.map +1 -0
  81. package/dist/tbv/core/contracts/index.cjs +1 -1
  82. package/dist/tbv/core/contracts/index.cjs.map +1 -1
  83. package/dist/tbv/core/contracts/index.js +491 -12
  84. package/dist/tbv/core/contracts/index.js.map +1 -1
  85. package/dist/tbv/core/index.cjs +1 -1
  86. package/dist/tbv/core/index.d.ts +1 -0
  87. package/dist/tbv/core/index.d.ts.map +1 -1
  88. package/dist/tbv/core/index.js +207 -203
  89. package/dist/tbv/core/index.js.map +1 -1
  90. package/dist/tbv/core/managers/PeginManager.d.ts +38 -30
  91. package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
  92. package/dist/tbv/core/managers/index.cjs +1 -1
  93. package/dist/tbv/core/managers/index.d.ts +2 -1
  94. package/dist/tbv/core/managers/index.d.ts.map +1 -1
  95. package/dist/tbv/core/managers/index.js +2 -2
  96. package/dist/tbv/core/services/index.cjs +1 -1
  97. package/dist/tbv/core/services/index.js +2 -2
  98. package/dist/tbv/core/utils/eth/index.cjs +2 -0
  99. package/dist/tbv/core/utils/eth/index.cjs.map +1 -0
  100. package/dist/tbv/core/utils/eth/index.js +109 -0
  101. package/dist/tbv/core/utils/eth/index.js.map +1 -0
  102. package/dist/tbv/core/utils/index.cjs +1 -1
  103. package/dist/tbv/core/utils/index.js +41 -40
  104. package/dist/tbv/core/utils/index.js.map +1 -1
  105. package/dist/tbv/core/vault-secrets/index.cjs +1 -1
  106. package/dist/tbv/core/vault-secrets/index.js +1 -1
  107. package/dist/tbv/index.cjs +1 -1
  108. package/dist/tbv/index.js +207 -203
  109. package/dist/tbv/index.js.map +1 -1
  110. package/dist/testing/index.cjs +1 -1
  111. package/dist/testing/index.js +1 -1
  112. package/dist/{toRefundInputs-BG-qHCEu.js → toRefundInputs-BkcFhvDp.js} +5 -5
  113. package/dist/{toRefundInputs-BG-qHCEu.js.map → toRefundInputs-BkcFhvDp.js.map} +1 -1
  114. package/dist/{toRefundInputs-kVR-3EdD.cjs → toRefundInputs-CatCKniS.cjs} +2 -2
  115. package/dist/{toRefundInputs-kVR-3EdD.cjs.map → toRefundInputs-CatCKniS.cjs.map} +1 -1
  116. package/dist/types-CPDLZm3l.js +430 -0
  117. package/dist/types-CPDLZm3l.js.map +1 -0
  118. package/dist/types-DSlcXtog.cjs +2 -0
  119. package/dist/types-DSlcXtog.cjs.map +1 -0
  120. package/package.json +32 -3
  121. package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js +0 -111
  122. package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js.map +0 -1
  123. package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs +0 -2
  124. package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs.map +0 -1
  125. package/dist/PeginManager-Bwjqb0_6.cjs +0 -2
  126. package/dist/PeginManager-Bwjqb0_6.cjs.map +0 -1
  127. package/dist/PeginManager-DjatPUPS.js +0 -1503
  128. package/dist/PeginManager-DjatPUPS.js.map +0 -1
  129. package/dist/ProtocolParams.abi-C0TSRaHV.js +0 -486
  130. package/dist/ProtocolParams.abi-C0TSRaHV.js.map +0 -1
  131. package/dist/ProtocolParams.abi-CYZoV2EI.cjs +0 -2
  132. package/dist/ProtocolParams.abi-CYZoV2EI.cjs.map +0 -1
  133. package/dist/errors-Blc-JWnI.js +0 -121
  134. package/dist/errors-Blc-JWnI.js.map +0 -1
  135. package/dist/errors-CGcNP0rV.cjs +0 -2
  136. package/dist/errors-CGcNP0rV.cjs.map +0 -1
  137. package/dist/mempoolApi-BJvC9nPF.cjs +0 -2
  138. package/dist/mempoolApi-BJvC9nPF.cjs.map +0 -1
  139. package/dist/mempoolApi-_CoQH5vH.js +0 -612
  140. package/dist/mempoolApi-_CoQH5vH.js.map +0 -1
  141. package/dist/onChainBtcPubkey-B5ZvWCCF.cjs +0 -2
  142. package/dist/onChainBtcPubkey-B5ZvWCCF.cjs.map +0 -1
  143. package/dist/onChainBtcPubkey-DATNfAAl.js +0 -19
  144. package/dist/onChainBtcPubkey-DATNfAAl.js.map +0 -1
  145. package/dist/primeVpAuth-BI63kgdd.js +0 -1171
  146. package/dist/primeVpAuth-BI63kgdd.js.map +0 -1
  147. package/dist/primeVpAuth-D3xbar3j.cjs +0 -2
  148. package/dist/primeVpAuth-D3xbar3j.cjs.map +0 -1
  149. package/dist/sha2-BYVxyZzX.js +0 -274
  150. package/dist/sha2-DsrLC4NM.cjs +0 -2
  151. package/dist/waitForTransactionReceiptSmartAware-DpQ69ySe.cjs +0 -2
  152. package/dist/waitForTransactionReceiptSmartAware-DpQ69ySe.cjs.map +0 -1
  153. package/dist/waitForTransactionReceiptSmartAware-z3Xfmo44.js +0 -277
  154. package/dist/waitForTransactionReceiptSmartAware-z3Xfmo44.js.map +0 -1
@@ -1,16 +1,495 @@
1
- import { A as o, P as t } from "../../../ProtocolParams.abi-C0TSRaHV.js";
2
- import { B as e } from "../../../BTCVaultRegistry.abi-CJwWI2EO.js";
3
- import { B as C } from "../../../BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
4
- import { C as i, e as n, g as p, h as A, i as R } from "../../../errors-Blc-JWnI.js";
1
+ import { B as a } from "../../../BTCVaultRegistry.abi-CJwWI2EO.js";
2
+ import { B as s, C as y, e as r, g as u, h as l, i as m } from "../../../BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js";
3
+ const e = [
4
+ {
5
+ type: "function",
6
+ name: "getVaultKeepersByVersion",
7
+ inputs: [
8
+ {
9
+ name: "appEntryPoint",
10
+ type: "address",
11
+ internalType: "address"
12
+ },
13
+ {
14
+ name: "versionNumber",
15
+ type: "uint16",
16
+ internalType: "uint16"
17
+ }
18
+ ],
19
+ outputs: [
20
+ {
21
+ name: "",
22
+ type: "tuple[]",
23
+ internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
24
+ components: [
25
+ {
26
+ name: "ethAddress",
27
+ type: "address",
28
+ internalType: "address"
29
+ },
30
+ {
31
+ name: "btcPubKey",
32
+ type: "bytes32",
33
+ internalType: "bytes32"
34
+ }
35
+ ]
36
+ }
37
+ ],
38
+ stateMutability: "view"
39
+ },
40
+ {
41
+ type: "function",
42
+ name: "getCurrentVaultKeepers",
43
+ inputs: [
44
+ {
45
+ name: "appEntryPoint",
46
+ type: "address",
47
+ internalType: "address"
48
+ }
49
+ ],
50
+ outputs: [
51
+ {
52
+ name: "",
53
+ type: "tuple[]",
54
+ internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
55
+ components: [
56
+ {
57
+ name: "ethAddress",
58
+ type: "address",
59
+ internalType: "address"
60
+ },
61
+ {
62
+ name: "btcPubKey",
63
+ type: "bytes32",
64
+ internalType: "bytes32"
65
+ }
66
+ ]
67
+ }
68
+ ],
69
+ stateMutability: "view"
70
+ },
71
+ {
72
+ type: "function",
73
+ name: "getCurrentVaultKeepersVersion",
74
+ inputs: [
75
+ {
76
+ name: "appEntryPoint",
77
+ type: "address",
78
+ internalType: "address"
79
+ }
80
+ ],
81
+ outputs: [
82
+ {
83
+ name: "",
84
+ type: "uint16",
85
+ internalType: "uint16"
86
+ }
87
+ ],
88
+ stateMutability: "view"
89
+ },
90
+ // --- RFC-006 operation-key resolution ---------------------------------
91
+ // A keeper's roster entry (`AddressBTCKeyPair` above) carries its *admin*
92
+ // ETH address and its *genesis* BTC key. The key that actually goes into
93
+ // the scripts is the operation key bonded at the vault's frozen
94
+ // `appKeeperKeyEpoch`, which the admin address keys the lookup for.
95
+ //
96
+ // The `...OrGenesis` variant takes the roster key explicitly because the
97
+ // correct genesis for a keeper is its key in the vault's *frozen membership
98
+ // version* — a keeper may have been dropped from the current roster, or
99
+ // listed under a different key in an older version. The plain
100
+ // `getOperationBtcKeyAtEpoch` variant resolves genesis version-agnostically
101
+ // and can therefore pick the wrong one; do not use it for a frozen vault.
102
+ {
103
+ type: "function",
104
+ name: "getCurrentOperationBtcKey",
105
+ inputs: [
106
+ { name: "appEntryPoint", type: "address", internalType: "address" },
107
+ { name: "keeperAdmin", type: "address", internalType: "address" }
108
+ ],
109
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
110
+ stateMutability: "view"
111
+ },
112
+ {
113
+ type: "function",
114
+ name: "getOperationBtcKeyAtEpochOrGenesis",
115
+ inputs: [
116
+ { name: "appEntryPoint", type: "address", internalType: "address" },
117
+ { name: "keeperAdmin", type: "address", internalType: "address" },
118
+ { name: "epoch", type: "uint64", internalType: "uint64" },
119
+ { name: "rosterGenesisKey", type: "bytes32", internalType: "bytes32" }
120
+ ],
121
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
122
+ stateMutability: "view"
123
+ },
124
+ {
125
+ type: "function",
126
+ name: "getPayoutScriptAtEpoch",
127
+ inputs: [
128
+ { name: "appEntryPoint", type: "address", internalType: "address" },
129
+ { name: "keeperAdmin", type: "address", internalType: "address" },
130
+ { name: "epoch", type: "uint64", internalType: "uint64" }
131
+ ],
132
+ outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
133
+ stateMutability: "view"
134
+ }
135
+ ], t = [
136
+ {
137
+ type: "function",
138
+ name: "activeVaultCoreVersion",
139
+ inputs: [],
140
+ outputs: [
141
+ {
142
+ name: "",
143
+ type: "uint16",
144
+ internalType: "uint16"
145
+ }
146
+ ],
147
+ stateMutability: "view"
148
+ },
149
+ {
150
+ type: "function",
151
+ name: "getTBVProtocolParams",
152
+ inputs: [],
153
+ outputs: [
154
+ {
155
+ name: "",
156
+ type: "tuple",
157
+ internalType: "struct IProtocolParams.TBVProtocolParams",
158
+ components: [
159
+ {
160
+ name: "minimumPegInAmount",
161
+ type: "uint64",
162
+ internalType: "uint64"
163
+ },
164
+ {
165
+ name: "maxPegInAmount",
166
+ type: "uint64",
167
+ internalType: "uint64"
168
+ },
169
+ {
170
+ name: "pegInAckTimeout",
171
+ type: "uint64",
172
+ internalType: "uint64"
173
+ },
174
+ {
175
+ name: "pegInActivationTimeout",
176
+ type: "uint64",
177
+ internalType: "uint64"
178
+ },
179
+ {
180
+ name: "maxHtlcOutputCount",
181
+ type: "uint8",
182
+ internalType: "uint8"
183
+ },
184
+ {
185
+ name: "expiredPegInGraceBlocks",
186
+ type: "uint64",
187
+ internalType: "uint64"
188
+ }
189
+ ]
190
+ }
191
+ ],
192
+ stateMutability: "view"
193
+ },
194
+ {
195
+ type: "function",
196
+ name: "getLatestOffchainParams",
197
+ inputs: [],
198
+ outputs: [
199
+ {
200
+ name: "",
201
+ type: "tuple",
202
+ internalType: "struct IProtocolParams.VersionedOffchainParams",
203
+ components: [
204
+ {
205
+ name: "timelockAssert",
206
+ type: "uint256",
207
+ internalType: "uint256"
208
+ },
209
+ {
210
+ name: "timelockChallengeAssert",
211
+ type: "uint256",
212
+ internalType: "uint256"
213
+ },
214
+ {
215
+ name: "securityCouncilKeys",
216
+ type: "bytes32[]",
217
+ internalType: "bytes32[]"
218
+ },
219
+ {
220
+ name: "councilQuorum",
221
+ type: "uint8",
222
+ internalType: "uint8"
223
+ },
224
+ {
225
+ name: "feeRate",
226
+ type: "uint64",
227
+ internalType: "uint64"
228
+ },
229
+ {
230
+ name: "babeTotalInstances",
231
+ type: "uint16",
232
+ internalType: "uint16"
233
+ },
234
+ {
235
+ name: "babeInstancesToFinalize",
236
+ type: "uint8",
237
+ internalType: "uint8"
238
+ },
239
+ {
240
+ name: "minVpCommissionBps",
241
+ type: "uint16",
242
+ internalType: "uint16"
243
+ },
244
+ {
245
+ name: "tRefund",
246
+ type: "uint32",
247
+ internalType: "uint32"
248
+ },
249
+ {
250
+ name: "tStale",
251
+ type: "uint32",
252
+ internalType: "uint32"
253
+ },
254
+ {
255
+ name: "minPeginFeeRate",
256
+ type: "uint64",
257
+ internalType: "uint64"
258
+ },
259
+ {
260
+ name: "proverCircuitVersion",
261
+ type: "uint16",
262
+ internalType: "uint16"
263
+ },
264
+ {
265
+ name: "minPrepeginDepth",
266
+ type: "uint32",
267
+ internalType: "uint32"
268
+ }
269
+ ]
270
+ }
271
+ ],
272
+ stateMutability: "view"
273
+ },
274
+ {
275
+ type: "function",
276
+ name: "getOffchainParamsByVersion",
277
+ inputs: [
278
+ {
279
+ name: "versionNumber",
280
+ type: "uint16",
281
+ internalType: "uint16"
282
+ }
283
+ ],
284
+ outputs: [
285
+ {
286
+ name: "",
287
+ type: "tuple",
288
+ internalType: "struct IProtocolParams.VersionedOffchainParams",
289
+ components: [
290
+ {
291
+ name: "timelockAssert",
292
+ type: "uint256",
293
+ internalType: "uint256"
294
+ },
295
+ {
296
+ name: "timelockChallengeAssert",
297
+ type: "uint256",
298
+ internalType: "uint256"
299
+ },
300
+ {
301
+ name: "securityCouncilKeys",
302
+ type: "bytes32[]",
303
+ internalType: "bytes32[]"
304
+ },
305
+ {
306
+ name: "councilQuorum",
307
+ type: "uint8",
308
+ internalType: "uint8"
309
+ },
310
+ {
311
+ name: "feeRate",
312
+ type: "uint64",
313
+ internalType: "uint64"
314
+ },
315
+ {
316
+ name: "babeTotalInstances",
317
+ type: "uint16",
318
+ internalType: "uint16"
319
+ },
320
+ {
321
+ name: "babeInstancesToFinalize",
322
+ type: "uint8",
323
+ internalType: "uint8"
324
+ },
325
+ {
326
+ name: "minVpCommissionBps",
327
+ type: "uint16",
328
+ internalType: "uint16"
329
+ },
330
+ {
331
+ name: "tRefund",
332
+ type: "uint32",
333
+ internalType: "uint32"
334
+ },
335
+ {
336
+ name: "tStale",
337
+ type: "uint32",
338
+ internalType: "uint32"
339
+ },
340
+ {
341
+ name: "minPeginFeeRate",
342
+ type: "uint64",
343
+ internalType: "uint64"
344
+ },
345
+ {
346
+ name: "proverCircuitVersion",
347
+ type: "uint16",
348
+ internalType: "uint16"
349
+ },
350
+ {
351
+ name: "minPrepeginDepth",
352
+ type: "uint32",
353
+ internalType: "uint32"
354
+ }
355
+ ]
356
+ }
357
+ ],
358
+ stateMutability: "view"
359
+ },
360
+ {
361
+ type: "function",
362
+ name: "latestOffchainParamsVersion",
363
+ inputs: [],
364
+ outputs: [
365
+ {
366
+ name: "",
367
+ type: "uint16",
368
+ internalType: "uint16"
369
+ }
370
+ ],
371
+ stateMutability: "view"
372
+ },
373
+ {
374
+ type: "function",
375
+ name: "getUniversalChallengersByVersion",
376
+ inputs: [
377
+ {
378
+ name: "versionNumber",
379
+ type: "uint16",
380
+ internalType: "uint16"
381
+ }
382
+ ],
383
+ outputs: [
384
+ {
385
+ name: "",
386
+ type: "tuple[]",
387
+ internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
388
+ components: [
389
+ {
390
+ name: "ethAddress",
391
+ type: "address",
392
+ internalType: "address"
393
+ },
394
+ {
395
+ name: "btcPubKey",
396
+ type: "bytes32",
397
+ internalType: "bytes32"
398
+ }
399
+ ]
400
+ }
401
+ ],
402
+ stateMutability: "view"
403
+ },
404
+ {
405
+ type: "function",
406
+ name: "getCurrentUniversalChallengers",
407
+ inputs: [],
408
+ outputs: [
409
+ {
410
+ name: "",
411
+ type: "tuple[]",
412
+ internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
413
+ components: [
414
+ {
415
+ name: "ethAddress",
416
+ type: "address",
417
+ internalType: "address"
418
+ },
419
+ {
420
+ name: "btcPubKey",
421
+ type: "bytes32",
422
+ internalType: "bytes32"
423
+ }
424
+ ]
425
+ }
426
+ ],
427
+ stateMutability: "view"
428
+ },
429
+ {
430
+ type: "function",
431
+ name: "latestUniversalChallengersVersion",
432
+ inputs: [],
433
+ outputs: [
434
+ {
435
+ name: "",
436
+ type: "uint16",
437
+ internalType: "uint16"
438
+ }
439
+ ],
440
+ stateMutability: "view"
441
+ },
442
+ // --- RFC-006 operation-key resolution ---------------------------------
443
+ // Universal challengers get the reduced RFC-006 model: an operation key
444
+ // that goes into the challenge scripts, resolved against the vault's frozen
445
+ // `ucKeyEpoch`, but no payout script (a UC is never a claimer, so its only
446
+ // BTC output is the NoPayout anchor) and no per-UC setter — key changes go
447
+ // through a roster version bump. The roster entry's `ethAddress` is the
448
+ // `ucAdmin` lookup key and its `btcPubKey` is the genesis key.
449
+ {
450
+ type: "function",
451
+ name: "getCurrentOperationBtcKey",
452
+ inputs: [{ name: "ucAdmin", type: "address", internalType: "address" }],
453
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
454
+ stateMutability: "view"
455
+ },
456
+ {
457
+ type: "function",
458
+ name: "getOperationBtcKeyAtEpochOrGenesis",
459
+ inputs: [
460
+ { name: "ucAdmin", type: "address", internalType: "address" },
461
+ { name: "epoch", type: "uint64", internalType: "uint64" },
462
+ { name: "rosterGenesisKey", type: "bytes32", internalType: "bytes32" }
463
+ ],
464
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
465
+ stateMutability: "view"
466
+ },
467
+ // Observation window between a vault's final ACK and its activation, in ETH
468
+ // blocks, measured from `verifiedAt`. Read through this standalone getter
469
+ // rather than as a 7th component of `getTBVProtocolParams` above: the field
470
+ // was appended to the struct, so a 7-component tuple decodes only against
471
+ // deployments that carry it and throws `PositionOutOfBoundsError` against
472
+ // the 6-word return of those that don't. Deployments are currently split
473
+ // (devnet has it, testnet/staging do not), and that tuple feeds
474
+ // `getPegInConfiguration` -> `ProtocolParamsContext`, whose failure blanks
475
+ // the app. `uint256` (not the `uint64` storage width) — the accessor widens.
476
+ {
477
+ type: "function",
478
+ name: "peginActivationDelay",
479
+ inputs: [],
480
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
481
+ stateMutability: "view"
482
+ }
483
+ ];
5
484
  export {
6
- o as ApplicationRegistryABI,
7
- e as BTCVaultRegistryABI,
8
- C as BTCVaultRegistryKeyEpochsABI,
9
- i as CONTRACT_ERRORS,
485
+ e as ApplicationRegistryABI,
486
+ a as BTCVaultRegistryABI,
487
+ s as BTCVaultRegistryKeyEpochsABI,
488
+ y as CONTRACT_ERRORS,
10
489
  t as ProtocolParamsABI,
11
- n as extractErrorData,
12
- p as getContractErrorMessage,
13
- A as handleContractError,
14
- R as isKnownContractError
490
+ r as extractErrorData,
491
+ u as getContractErrorMessage,
492
+ l as handleContractError,
493
+ m as isKnownContractError
15
494
  };
16
495
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts","../../../../src/tbv/core/contracts/abis/ProtocolParams.abi.ts"],"sourcesContent":["/**\n * ApplicationRegistry Contract ABI\n *\n * Minimal ABI containing only the vault keeper read functions needed by the SDK.\n * Generated from vault-contracts-aave-v4 IApplicationRegistry.sol interface.\n *\n * @module contracts/abis/ApplicationRegistry\n */\n\nexport const ApplicationRegistryABI = [\n {\n type: \"function\",\n name: \"getVaultKeepersByVersion\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentVaultKeepers\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentVaultKeepersVersion\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n // --- RFC-006 operation-key resolution ---------------------------------\n // A keeper's roster entry (`AddressBTCKeyPair` above) carries its *admin*\n // ETH address and its *genesis* BTC key. The key that actually goes into\n // the scripts is the operation key bonded at the vault's frozen\n // `appKeeperKeyEpoch`, which the admin address keys the lookup for.\n //\n // The `...OrGenesis` variant takes the roster key explicitly because the\n // correct genesis for a keeper is its key in the vault's *frozen membership\n // version* — a keeper may have been dropped from the current roster, or\n // listed under a different key in an older version. The plain\n // `getOperationBtcKeyAtEpoch` variant resolves genesis version-agnostically\n // and can therefore pick the wrong one; do not use it for a frozen vault.\n {\n type: \"function\",\n name: \"getCurrentOperationBtcKey\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOperationBtcKeyAtEpochOrGenesis\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n { name: \"rosterGenesisKey\", type: \"bytes32\", internalType: \"bytes32\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getPayoutScriptAtEpoch\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n ],\n outputs: [{ name: \"\", type: \"bytes\", internalType: \"bytes\" }],\n stateMutability: \"view\",\n },\n] as const;\n","/**\n * ProtocolParams Contract ABI\n *\n * Minimal ABI containing only the read functions needed by the SDK.\n * Generated from vault-contracts-aave-v4 IProtocolParams.sol interface.\n *\n * @module contracts/abis/ProtocolParams\n */\n\nexport const ProtocolParamsABI = [\n {\n type: \"function\",\n name: \"activeVaultCoreVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getTBVProtocolParams\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.TBVProtocolParams\",\n components: [\n {\n name: \"minimumPegInAmount\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"maxPegInAmount\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"pegInAckTimeout\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"pegInActivationTimeout\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"maxHtlcOutputCount\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"expiredPegInGraceBlocks\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getLatestOffchainParams\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.VersionedOffchainParams\",\n components: [\n {\n name: \"timelockAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"timelockChallengeAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"securityCouncilKeys\",\n type: \"bytes32[]\",\n internalType: \"bytes32[]\",\n },\n {\n name: \"councilQuorum\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"feeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"babeTotalInstances\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"babeInstancesToFinalize\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"minVpCommissionBps\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"tRefund\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"tStale\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"minPeginFeeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"proverCircuitVersion\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"minPrepeginDepth\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOffchainParamsByVersion\",\n inputs: [\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.VersionedOffchainParams\",\n components: [\n {\n name: \"timelockAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"timelockChallengeAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"securityCouncilKeys\",\n type: \"bytes32[]\",\n internalType: \"bytes32[]\",\n },\n {\n name: \"councilQuorum\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"feeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"babeTotalInstances\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"babeInstancesToFinalize\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"minVpCommissionBps\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"tRefund\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"tStale\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"minPeginFeeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"proverCircuitVersion\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"minPrepeginDepth\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"latestOffchainParamsVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getUniversalChallengersByVersion\",\n inputs: [\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentUniversalChallengers\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"latestUniversalChallengersVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n // --- RFC-006 operation-key resolution ---------------------------------\n // Universal challengers get the reduced RFC-006 model: an operation key\n // that goes into the challenge scripts, resolved against the vault's frozen\n // `ucKeyEpoch`, but no payout script (a UC is never a claimer, so its only\n // BTC output is the NoPayout anchor) and no per-UC setter — key changes go\n // through a roster version bump. The roster entry's `ethAddress` is the\n // `ucAdmin` lookup key and its `btcPubKey` is the genesis key.\n {\n type: \"function\",\n name: \"getCurrentOperationBtcKey\",\n inputs: [{ name: \"ucAdmin\", type: \"address\", internalType: \"address\" }],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOperationBtcKeyAtEpochOrGenesis\",\n inputs: [\n { name: \"ucAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n { name: \"rosterGenesisKey\", type: \"bytes32\", internalType: \"bytes32\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n // Observation window between a vault's final ACK and its activation, in ETH\n // blocks, measured from `verifiedAt`. Read through this standalone getter\n // rather than as a 7th component of `getTBVProtocolParams` above: the field\n // was appended to the struct, so a 7-component tuple decodes only against\n // deployments that carry it and throws `PositionOutOfBoundsError` against\n // the 6-word return of those that don't. Deployments are currently split\n // (devnet has it, testnet/staging do not), and that tuple feeds\n // `getPegInConfiguration` -> `ProtocolParamsContext`, whose failure blanks\n // the app. `uint256` (not the `uint64` storage width) — the accessor widens.\n {\n type: \"function\",\n name: \"peginActivationDelay\",\n inputs: [],\n outputs: [{ name: \"\", type: \"uint256\", internalType: \"uint256\" }],\n stateMutability: \"view\",\n },\n] as const;\n"],"names":["ApplicationRegistryABI","ProtocolParamsABI"],"mappings":";;AASO,MAAMA,IAAyB;AAAA,EACpC;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,MACN;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,cAAc;AAAA,MAAA;AAAA,MAEhB;AAAA,QACE,MA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AAA,IAEvE,SAAS,CAAC,EAAE,MAAM,IAAI,MAAM,WAAW,cAAc,WAAW;AAAA,IAChE,iBAAiB;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWnB;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ,CAAA;AAAA,IACR,SAAS,CAAC,EAAE,MAAM,IAAI,MAAM,WAAW,cAAc,WAAW;AAAA,IAChE,iBAAiB;AAAA,EAAA;AAErB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../verifyScriptPathSchnorrSignature-BfNUSgA7.cjs"),C=require("../../vaultCoreVersion-DYfw3qed.cjs"),c=require("./wasm/index.cjs"),p=require("../../verifyKeyPathSchnorrSignature-BedSbH2D.cjs"),E=require("../../noPayout-zEifyecV.cjs"),O=require("../../challengeAssert-Z7_YULBb.cjs"),r=require("../../bitcoin-D-O2GjbC.cjs"),I=require("../../abortSignals-msbmbqFe.cjs"),T=require("../../signing-BJ3X66b-.cjs"),P=require("../../validation-C6XTfZak.cjs"),l=require("../../PeginManager-Bwjqb0_6.cjs"),d=require("../../signPsbtsWithFallback-CrkvpSJz.cjs"),m=require("../../ProtocolParams.abi-CYZoV2EI.cjs"),h=require("../../BTCVaultRegistry.abi-z7d_eP22.cjs"),v=require("../../BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs"),A=require("../../errors-CGcNP0rV.cjs"),_=require("../../parseFundingOutpoints-BkgGihaY.cjs"),u=require("../../waitForTransactionReceiptSmartAware-DpQ69ySe.cjs"),i=require("../../fundPeginTransaction-BLD8FRL9.cjs"),R=require("../../reservation-Dr2HLCxx.cjs"),a=require("../../mempoolApi-BJvC9nPF.cjs"),S=require("../../index-Cs7_Evtk.cjs"),o=require("../../json-rpc-client-BiAmg_ho.cjs"),n=require("../../primeVpAuth-D3xbar3j.cjs"),y=require("../../onChainBtcPubkey-B5ZvWCCF.cjs"),t=require("../../toRefundInputs-kVR-3EdD.cjs"),e=require("../../buildAndBroadcastReclaim-HX2xQlbM.cjs"),g=require("../../peginState-eaQ4IO_R.cjs");exports.PEGIN_DEPOSITOR_CLAIM_VOUT=s.PEGIN_DEPOSITOR_CLAIM_VOUT;exports.PsbtSubstitutionError=s.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=s.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=s.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=s.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=s.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=s.buildPrePeginPsbt;exports.computeNumLocalChallengers=s.computeNumLocalChallengers;exports.createPayoutScript=s.createPayoutScript;exports.deriveDepositorClaimDescriptor=s.deriveDepositorClaimDescriptor;exports.deriveDepositorClaimScriptPubKey=s.deriveDepositorClaimScriptPubKey;exports.extractPayoutSignature=s.extractPayoutSignature;exports.assertValidVaultCoreVersion=C.assertValidVaultCoreVersion;exports.computeMinClaimValue=c.computeMinClaimValue;exports.computeMinPeginFee=c.computeMinPeginFee;exports.deriveVaultId=c.deriveVaultId;exports.expandAuthAnchor=c.expandAuthAnchor;exports.expandHashlockSecret=c.expandHashlockSecret;exports.expandWotsSeed=c.expandWotsSeed;exports.peginP2aAnchorOutput=c.peginP2aAnchorOutput;exports.supportedTxGraphVersions=c.supportedTxGraphVersions;exports.validatePeginP2aAnchor=c.validatePeginP2aAnchor;exports.assertKeyPathSchnorrSignature=p.assertKeyPathSchnorrSignature;exports.assertReturnedKeyPathSignatures=p.assertReturnedKeyPathSignatures;exports.buildPeginInputPsbt=p.buildPeginInputPsbt;exports.extractPeginInputSignature=p.extractPeginInputSignature;exports.finalizePeginInputPsbt=p.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildReclaimPsbt=E.buildReclaimPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.estimateReclaimFeeSats=E.estimateReclaimFeeSats;exports.finalizeScriptPathWithSignatures=E.finalizeScriptPathWithSignatures;exports.reclaimVsize=E.reclaimVsize;exports.buildChallengeAssertPsbt=O.buildChallengeAssertPsbt;exports.canonicalizeBtcPubkey=r.canonicalizeBtcPubkey;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.combineAbortSignals=I.combineAbortSignals;exports.calculateBtcTxHash=T.calculateBtcTxHash;exports.createTaprootScriptPathSignOptions=T.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=P.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=P.COMPRESSED_PUBKEY_HEX_LEN;exports.HEX_RE=P.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=P.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=P.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=P.TXID_RE;exports.X_ONLY_PUBKEY_HEX_LEN=P.X_ONLY_PUBKEY_HEX_LEN;exports.COMMISSION_BPS_HEADROOM=l.COMMISSION_BPS_HEADROOM;exports.MAX_ACCEPTABLE_COMMISSION_BPS_CAP=l.MAX_ACCEPTABLE_COMMISSION_BPS_CAP;exports.PeginManager=l.PeginManager;exports.buildDepositTerms=l.buildDepositTerms;exports.capMaxAcceptableCommissionBps=l.capMaxAcceptableCommissionBps;exports.computeWotsBlockPublicKeysHash=l.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=l.deriveWotsBlocksFromSeed;exports.ensurePrePeginTermsApproval=l.ensurePrePeginTermsApproval;exports.estimateSubmitPeginRequestBatchGas=l.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=d.PayoutManager;exports.computeHashlock=d.computeHashlock;exports.forwardDepositApproval=d.forwardDepositApproval;exports.requireChangeAddress=d.requireChangeAddress;exports.supportsDepositApproval=d.supportsDepositApproval;exports.validateSecretAgainstHashlock=d.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=m.ApplicationRegistryABI;exports.ProtocolParamsABI=m.ProtocolParamsABI;exports.BTCVaultRegistryABI=h.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=v.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=A.CONTRACT_ERRORS;exports.extractErrorData=A.extractErrorData;exports.getContractErrorMessage=A.getContractErrorMessage;exports.handleContractError=A.handleContractError;exports.isKnownContractError=A.isKnownContractError;exports.VAULT_APP_NAME=_.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=_.buildFundingOutpointsCommitment;exports.buildVaultContext=_.buildVaultContext;exports.deriveVaultRoot=_.deriveVaultRoot;exports.forwardDeriveContextHash=_.forwardDeriveContextHash;exports.parseFundingOutpointsFromTx=_.parseFundingOutpointsFromTx;exports.BitcoinScriptType=u.BitcoinScriptType;exports.applyChangeOutputPolicy=u.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=u.computeChangeOutputFeeSats;exports.computeMaxDeposit=u.computeMaxDeposit;exports.computePeginBaseFeeSats=u.computePeginBaseFeeSats;exports.getDustThreshold=u.getDustThreshold;exports.getPsbtInputFields=u.getPsbtInputFields;exports.getScriptType=u.getScriptType;exports.selectUtxosForPegin=u.selectUtxosForPegin;exports.shouldAddChangeOutput=u.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=u.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=i.BTC_DUST_SAT;exports.DUST_THRESHOLD=i.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=i.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=i.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=i.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=i.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=i.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=i.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=i.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=i.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=i.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=i.fundPeginTransaction;exports.parseUnfundedWasmTransaction=i.parseUnfundedWasmTransaction;exports.peginOutputCount=i.peginOutputCount;exports.rateBasedTxBufferFee=i.rateBasedTxBufferFee;exports.UtxoNotAvailableError=R.UtxoNotAvailableError;exports.assertUtxosAvailable=R.assertUtxosAvailable;exports.extractInputsFromTransaction=R.extractInputsFromTransaction;exports.findOverlappingPendingVaults=R.findOverlappingPendingVaults;exports.validateUtxosAvailable=R.validateUtxosAvailable;exports.MEMPOOL_API_URLS=a.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=a.ViemVaultRegistryReader;exports.getAddressTxs=a.getAddressTxs;exports.getAddressUtxos=a.getAddressUtxos;exports.getMempoolApiUrl=a.getMempoolApiUrl;exports.getNetworkFees=a.getNetworkFees;exports.getOutspend=a.getOutspend;exports.getTipHeight=a.getTipHeight;exports.getTxHex=a.getTxHex;exports.getTxInfo=a.getTxInfo;exports.getUtxoInfo=a.getUtxoInfo;exports.pushTx=a.pushTx;exports.validateOffchainParams=a.validateOffchainParams;exports.validatePegInConfiguration=a.validatePegInConfiguration;exports.validateTBVProtocolParams=a.validateTBVProtocolParams;exports.VaultProviderRpcClient=S.VaultProviderRpcClient;exports.VpResponseValidationError=S.VpResponseValidationError;exports.batchPollByProvider=S.batchPollByProvider;exports.validateRequestDepositorClaimerArtifactsResponse=S.validateRequestDepositorClaimerArtifactsResponse;exports.AUTH_REJECTED_RPC_CODE=o.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=o.DaemonStatus;exports.JSON_RPC_ERROR_CODES=o.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=o.JsonRpcClient;exports.JsonRpcError=o.JsonRpcError;exports.POST_WOTS_STATUSES=o.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=o.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=o.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=o.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=o.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=o.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=o.isAuthRejectedError;exports.OnChainBtcVaultStatus=n.OnChainBtcVaultStatus;exports.ServerIdentityError=n.ServerIdentityError;exports.ViemOperationKeyReader=n.ViemOperationKeyReader;exports.ViemProtocolParamsReader=n.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=n.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=n.ViemVaultKeeperReader;exports.VpTokenRegistry=n.VpTokenRegistry;exports.createAuthenticatedVpClient=n.createAuthenticatedVpClient;exports.primeVpTokenRegistry=n.primeVpTokenRegistry;exports.resolveProtocolAddresses=n.resolveProtocolAddresses;exports.verifyServerIdentity=n.verifyServerIdentity;exports.vpTokenRegistry=n.vpTokenRegistry;exports.assertOnChainBtcPubkey=y.assertOnChainBtcPubkey;exports.DEPOSIT_TERMS_REJECTED_ERROR_NAME=t.DEPOSIT_TERMS_REJECTED_ERROR_NAME;exports.DepositTermsRejectedError=t.DepositTermsRejectedError;exports.PeginParamsAmbiguousError=t.PeginParamsAmbiguousError;exports.PeginParamsIncompleteSpaceError=t.PeginParamsIncompleteSpaceError;exports.PeginParamsNotFoundError=t.PeginParamsNotFoundError;exports.PeginSizingIntegrityError=t.PeginSizingIntegrityError;exports.UnanchoredPrePeginError=t.UnanchoredPrePeginError;exports.VaultRootMismatchError=t.VaultRootMismatchError;exports.buildPeginParamsCandidates=t.buildPeginParamsCandidates;exports.deriveHashlocksFromPrePegin=t.deriveHashlocksFromPrePegin;exports.describePeginParamsCandidate=t.describePeginParamsCandidate;exports.describeUnresolvedVersion=t.describeUnresolvedVersion;exports.isDepositTermsRejectedError=t.isDepositTermsRejectedError;exports.isWotsMismatchError=t.isWotsMismatchError;exports.rebuildDepositTermsCore=t.rebuildDepositTermsCore;exports.reconstructPeginParams=t.reconstructPeginParams;exports.toRefundInputs=t.toRefundInputs;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.PEGIN_ETH_CONFIRMATIONS=e.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=e.ParticipantKeyDriftError;exports.PeginRegistrationMissingError=e.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=e.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=e.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=e.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=e.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=e.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;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.ReclaimUneconomicalError=e.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.activateVaultAndRedeem=e.activateVaultAndRedeem;exports.assertVaultProviderHintAccepted=e.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=e.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isHintAccepted=e.isHintAccepted;exports.isParticipantKeyDriftError=e.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=e.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=e.isPeginRegistrationNotFinalError;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=e.matchKeyHint;exports.matchKeySetHint=e.matchKeySetHint;exports.resolveCurrentParticipantKeys=e.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=e.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=e.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=e.waitForPeginRegistrationDepth;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=g.ContractStatus;exports.PeginAction=g.PeginAction;exports.canPerformAction=g.canPerformAction;exports.getPeginProtocolState=g.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=g.isActivationDeadlinePassedOnChain;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../verifyScriptPathSchnorrSignature-BfNUSgA7.cjs"),I=require("../../vaultCoreVersion-DYfw3qed.cjs"),u=require("./wasm/index.cjs"),g=require("../../verifyKeyPathSchnorrSignature-BedSbH2D.cjs"),P=require("../../noPayout-zEifyecV.cjs"),h=require("../../challengeAssert-Z7_YULBb.cjs"),r=require("../../bitcoin-D-O2GjbC.cjs"),v=require("../../abortSignals-msbmbqFe.cjs"),C=require("../../signing-BJ3X66b-.cjs"),l=require("../../validation-C6XTfZak.cjs"),b=require("./utils/eth/index.cjs"),E=require("../../PeginManager-E-UHA1un.cjs"),d=require("../../signPsbtsWithFallback-DMSpIQWH.cjs"),o=require("./clients/mempool/index.cjs"),_=require("../../types-DSlcXtog.cjs"),V=require("../../onChainBtcPubkey-BbxRrbvg.cjs"),c=require("../../pegin-registration-client-6vLk2itL.cjs"),O=require("./contracts/index.cjs"),y=require("../../BTCVaultRegistry.abi-z7d_eP22.cjs"),p=require("../../BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs"),R=require("../../parseFundingOutpoints-B4iQeX6q.cjs"),n=require("../../psbtInputFields-BIxBpPj2.cjs"),i=require("../../fundPeginTransaction-BLD8FRL9.cjs"),S=require("../../reservation-Dr2HLCxx.cjs"),m=require("../../index-Cs7_Evtk.cjs"),s=require("../../json-rpc-client-BiAmg_ho.cjs"),A=require("../../primeVpAuth-DBHohVKM.cjs"),t=require("../../toRefundInputs-CatCKniS.cjs"),e=require("../../buildAndBroadcastReclaim-U-PyFfDg.cjs"),T=require("../../peginState-eaQ4IO_R.cjs");exports.PEGIN_DEPOSITOR_CLAIM_VOUT=a.PEGIN_DEPOSITOR_CLAIM_VOUT;exports.PsbtSubstitutionError=a.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=a.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=a.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=a.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=a.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=a.buildPrePeginPsbt;exports.computeNumLocalChallengers=a.computeNumLocalChallengers;exports.createPayoutScript=a.createPayoutScript;exports.deriveDepositorClaimDescriptor=a.deriveDepositorClaimDescriptor;exports.deriveDepositorClaimScriptPubKey=a.deriveDepositorClaimScriptPubKey;exports.extractPayoutSignature=a.extractPayoutSignature;exports.assertValidVaultCoreVersion=I.assertValidVaultCoreVersion;exports.computeMinClaimValue=u.computeMinClaimValue;exports.computeMinPeginFee=u.computeMinPeginFee;exports.deriveVaultId=u.deriveVaultId;exports.expandAuthAnchor=u.expandAuthAnchor;exports.expandHashlockSecret=u.expandHashlockSecret;exports.expandWotsSeed=u.expandWotsSeed;exports.peginP2aAnchorOutput=u.peginP2aAnchorOutput;exports.supportedTxGraphVersions=u.supportedTxGraphVersions;exports.validatePeginP2aAnchor=u.validatePeginP2aAnchor;exports.assertKeyPathSchnorrSignature=g.assertKeyPathSchnorrSignature;exports.assertReturnedKeyPathSignatures=g.assertReturnedKeyPathSignatures;exports.buildPeginInputPsbt=g.buildPeginInputPsbt;exports.extractPeginInputSignature=g.extractPeginInputSignature;exports.finalizePeginInputPsbt=g.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=P.buildNoPayoutPsbt;exports.buildReclaimPsbt=P.buildReclaimPsbt;exports.buildRefundPsbt=P.buildRefundPsbt;exports.estimateReclaimFeeSats=P.estimateReclaimFeeSats;exports.finalizeScriptPathWithSignatures=P.finalizeScriptPathWithSignatures;exports.reclaimVsize=P.reclaimVsize;exports.buildChallengeAssertPsbt=h.buildChallengeAssertPsbt;exports.canonicalizeBtcPubkey=r.canonicalizeBtcPubkey;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.combineAbortSignals=v.combineAbortSignals;exports.calculateBtcTxHash=C.calculateBtcTxHash;exports.createTaprootScriptPathSignOptions=C.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=l.COMPRESSED_PUBKEY_HEX_LEN;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.X_ONLY_PUBKEY_HEX_LEN=l.X_ONLY_PUBKEY_HEX_LEN;exports.waitForTransactionReceiptSmartAware=b.waitForTransactionReceiptSmartAware;exports.PeginManager=E.PeginManager;exports.buildDepositTerms=E.buildDepositTerms;exports.computeWotsBlockPublicKeysHash=E.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=E.deriveWotsBlocksFromSeed;exports.ensurePrePeginTermsApproval=E.ensurePrePeginTermsApproval;exports.estimateSubmitPeginRequestBatchGas=E.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=d.PayoutManager;exports.computeHashlock=d.computeHashlock;exports.forwardDepositApproval=d.forwardDepositApproval;exports.requireChangeAddress=d.requireChangeAddress;exports.supportsDepositApproval=d.supportsDepositApproval;exports.validateSecretAgainstHashlock=d.validateSecretAgainstHashlock;exports.MEMPOOL_API_URLS=o.MEMPOOL_API_URLS;exports.getAddressTxs=o.getAddressTxs;exports.getAddressUtxos=o.getAddressUtxos;exports.getMempoolApiUrl=o.getMempoolApiUrl;exports.getNetworkFees=o.getNetworkFees;exports.getOutspend=o.getOutspend;exports.getTipHeight=o.getTipHeight;exports.getTxHex=o.getTxHex;exports.getTxInfo=o.getTxInfo;exports.getUtxoInfo=o.getUtxoInfo;exports.pushTx=o.pushTx;exports.OnChainBtcVaultStatus=_.OnChainBtcVaultStatus;exports.ViemOperationKeyReader=_.ViemOperationKeyReader;exports.ViemProtocolParamsReader=_.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=_.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=_.ViemVaultKeeperReader;exports.resolveProtocolAddresses=_.resolveProtocolAddresses;exports.assertOnChainBtcPubkey=V.assertOnChainBtcPubkey;exports.COMMISSION_BPS_HEADROOM=c.COMMISSION_BPS_HEADROOM;exports.MAX_ACCEPTABLE_COMMISSION_BPS_CAP=c.MAX_ACCEPTABLE_COMMISSION_BPS_CAP;exports.ViemPeginRegistrationClient=c.ViemPeginRegistrationClient;exports.ViemVaultRegistryReader=c.ViemVaultRegistryReader;exports.capMaxAcceptableCommissionBps=c.capMaxAcceptableCommissionBps;exports.derivePeginVaultId=c.derivePeginVaultId;exports.validateOffchainParams=c.validateOffchainParams;exports.validatePegInConfiguration=c.validatePegInConfiguration;exports.validateTBVProtocolParams=c.validateTBVProtocolParams;exports.ApplicationRegistryABI=O.ApplicationRegistryABI;exports.ProtocolParamsABI=O.ProtocolParamsABI;exports.BTCVaultRegistryABI=y.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=p.BTCVaultRegistryKeyEpochsABI;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=R.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=R.buildFundingOutpointsCommitment;exports.buildVaultContext=R.buildVaultContext;exports.deriveVaultRoot=R.deriveVaultRoot;exports.forwardDeriveContextHash=R.forwardDeriveContextHash;exports.parseFundingOutpointsFromTx=R.parseFundingOutpointsFromTx;exports.BitcoinScriptType=n.BitcoinScriptType;exports.applyChangeOutputPolicy=n.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=n.computeChangeOutputFeeSats;exports.computeMaxDeposit=n.computeMaxDeposit;exports.computePeginBaseFeeSats=n.computePeginBaseFeeSats;exports.getDustThreshold=n.getDustThreshold;exports.getPsbtInputFields=n.getPsbtInputFields;exports.getScriptType=n.getScriptType;exports.selectUtxosForPegin=n.selectUtxosForPegin;exports.shouldAddChangeOutput=n.shouldAddChangeOutput;exports.BTC_DUST_SAT=i.BTC_DUST_SAT;exports.DUST_THRESHOLD=i.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=i.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=i.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=i.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=i.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=i.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=i.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=i.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=i.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=i.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=i.fundPeginTransaction;exports.parseUnfundedWasmTransaction=i.parseUnfundedWasmTransaction;exports.peginOutputCount=i.peginOutputCount;exports.rateBasedTxBufferFee=i.rateBasedTxBufferFee;exports.UtxoNotAvailableError=S.UtxoNotAvailableError;exports.assertUtxosAvailable=S.assertUtxosAvailable;exports.extractInputsFromTransaction=S.extractInputsFromTransaction;exports.findOverlappingPendingVaults=S.findOverlappingPendingVaults;exports.validateUtxosAvailable=S.validateUtxosAvailable;exports.VaultProviderRpcClient=m.VaultProviderRpcClient;exports.VpResponseValidationError=m.VpResponseValidationError;exports.batchPollByProvider=m.batchPollByProvider;exports.validateRequestDepositorClaimerArtifactsResponse=m.validateRequestDepositorClaimerArtifactsResponse;exports.AUTH_REJECTED_RPC_CODE=s.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=s.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=s.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=s.isAuthRejectedError;exports.ServerIdentityError=A.ServerIdentityError;exports.VpTokenRegistry=A.VpTokenRegistry;exports.createAuthenticatedVpClient=A.createAuthenticatedVpClient;exports.primeVpTokenRegistry=A.primeVpTokenRegistry;exports.verifyServerIdentity=A.verifyServerIdentity;exports.vpTokenRegistry=A.vpTokenRegistry;exports.DEPOSIT_TERMS_REJECTED_ERROR_NAME=t.DEPOSIT_TERMS_REJECTED_ERROR_NAME;exports.DepositTermsRejectedError=t.DepositTermsRejectedError;exports.PeginParamsAmbiguousError=t.PeginParamsAmbiguousError;exports.PeginParamsIncompleteSpaceError=t.PeginParamsIncompleteSpaceError;exports.PeginParamsNotFoundError=t.PeginParamsNotFoundError;exports.PeginSizingIntegrityError=t.PeginSizingIntegrityError;exports.UnanchoredPrePeginError=t.UnanchoredPrePeginError;exports.VaultRootMismatchError=t.VaultRootMismatchError;exports.buildPeginParamsCandidates=t.buildPeginParamsCandidates;exports.deriveHashlocksFromPrePegin=t.deriveHashlocksFromPrePegin;exports.describePeginParamsCandidate=t.describePeginParamsCandidate;exports.describeUnresolvedVersion=t.describeUnresolvedVersion;exports.isDepositTermsRejectedError=t.isDepositTermsRejectedError;exports.isWotsMismatchError=t.isWotsMismatchError;exports.rebuildDepositTermsCore=t.rebuildDepositTermsCore;exports.reconstructPeginParams=t.reconstructPeginParams;exports.toRefundInputs=t.toRefundInputs;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.PEGIN_ETH_CONFIRMATIONS=e.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=e.ParticipantKeyDriftError;exports.PeginRegistrationMissingError=e.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=e.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=e.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=e.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=e.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=e.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;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.ReclaimUneconomicalError=e.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.activateVaultAndRedeem=e.activateVaultAndRedeem;exports.assertVaultProviderHintAccepted=e.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=e.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isHintAccepted=e.isHintAccepted;exports.isParticipantKeyDriftError=e.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=e.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=e.isPeginRegistrationNotFinalError;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=e.matchKeyHint;exports.matchKeySetHint=e.matchKeySetHint;exports.resolveCurrentParticipantKeys=e.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=e.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=e.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=e.waitForPeginRegistrationDepth;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
@@ -26,4 +26,5 @@ export * from './services';
26
26
  export * from './vault-secrets';
27
27
  export * from './deposit-terms';
28
28
  export * from './recovery';
29
+ export { calculateBtcTxHash } from './utils';
29
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tbv/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tbv/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}