@babylonlabs-io/ts-sdk 5.1.0 → 6.0.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.
- package/dist/{buildAndBroadcastReclaim-Acz637Vf.js → buildAndBroadcastReclaim-Bs_zdDGN.js} +793 -772
- package/dist/{buildAndBroadcastReclaim-Acz637Vf.js.map → buildAndBroadcastReclaim-Bs_zdDGN.js.map} +1 -1
- package/dist/{buildAndBroadcastReclaim-Cf05JFP-.cjs → buildAndBroadcastReclaim-CXOMHHgK.cjs} +2 -2
- package/dist/{buildAndBroadcastReclaim-Cf05JFP-.cjs.map → buildAndBroadcastReclaim-CXOMHHgK.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +95 -94
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +77 -76
- package/dist/tbv/core/recovery/reconstructPeginParams.d.ts +6 -0
- package/dist/tbv/core/recovery/reconstructPeginParams.d.ts.map +1 -1
- package/dist/tbv/core/recovery/toRefundInputs.d.ts +0 -2
- package/dist/tbv/core/recovery/toRefundInputs.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +73 -72
- package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts +6 -2
- package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts.map +1 -1
- package/dist/tbv/core/services/refund/errors.d.ts +15 -0
- package/dist/tbv/core/services/refund/errors.d.ts.map +1 -1
- package/dist/tbv/core/services/refund/index.d.ts +1 -1
- package/dist/tbv/core/services/refund/index.d.ts.map +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +77 -76
- package/dist/{toRefundInputs-DwXpKQxN.js → toRefundInputs-Cl4KgzIc.js} +149 -149
- package/dist/{toRefundInputs-DwXpKQxN.js.map → toRefundInputs-Cl4KgzIc.js.map} +1 -1
- package/dist/{toRefundInputs-BzyN0zvj.cjs → toRefundInputs-DyIgmGJq.cjs} +2 -2
- package/dist/{toRefundInputs-BzyN0zvj.cjs.map → toRefundInputs-DyIgmGJq.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as s, h as r, i as t, j as i, f as o, b as n, a as l, c as p, k as P, d as E, e as c, g as
|
|
1
|
+
import { P as s, h as r, i as t, j as i, f as o, b as n, a as l, c as p, k as P, d as E, e as c, g as d } from "../../verifyScriptPathSchnorrSignature-DLNGgm4j.js";
|
|
2
2
|
import { a as g } from "../../secp256k1-BuxBFUHm.js";
|
|
3
3
|
import { attachFinalizedAssert as R, computeMinClaimValue as A, computeMinPeginFee as _, deriveVaultId as S, expandAuthAnchor as T, expandHashlockSecret as C, expandWotsSeed as I, finalizePayout as f, finalizeWronglyChallenged as h, peginP2aAnchorOutput as V, pinPegoutProof as O, supportedTxGraphVersions as x, validatePeginP2aAnchor as b } from "./wasm/index.js";
|
|
4
4
|
import { a as N, c as y, b as M, e as v, f as D } from "../../verifyKeyPathSchnorrSignature-CIE3jlVt.js";
|
|
@@ -6,14 +6,14 @@ import { d as U, c as H, a as L, b as K, e as X, f as G, r as k } from "../../ch
|
|
|
6
6
|
import { c as w, d as z, a as Y, b as j, e as J, f as Z, k as q, g as Q, h as $, i as aa, j as ea, p as sa, s as ra, t as ta, u as ia, v as oa } from "../../bitcoin-C-TuHb-v.js";
|
|
7
7
|
import { c as la } from "../../abortSignals-BPpAUL1Z.js";
|
|
8
8
|
import { c as Pa, a as Ea } from "../../signing-C1rR4tqs.js";
|
|
9
|
-
import { B as
|
|
9
|
+
import { B as da, C as ua, H as ga, K as ma, M as Ra, T as Aa, X as _a } from "../../validation-OSC0xTHB.js";
|
|
10
10
|
import { waitForTransactionReceiptSmartAware as Ta } from "./utils/eth/index.js";
|
|
11
11
|
import { P as Ia, b as fa, c as ha, d as Va, e as Oa } from "../../PeginManager-CXNqbgA4.js";
|
|
12
12
|
import { P as ba, c as Fa, f as Na, r as ya, s as Ma, v as va } from "../../PayoutManager-BHeiLQ1j.js";
|
|
13
13
|
import { MEMPOOL_API_URLS as Ba, MempoolNotFoundError as Ua, getAddressTxs as Ha, getAddressUtxos as La, getMempoolApiUrl as Ka, getNetworkFees as Xa, getOutspend as Ga, getTipHeight as ka, getTxHex as Wa, getTxInfo as wa, getUtxoInfo as za, pushTx as Ya } from "./clients/mempool/index.js";
|
|
14
14
|
import { R as Ja, V as Za, a as qa, f as Qa, d as $a, g as ae, e as ee, i as se, r as re, v as te, b as ie, c as oe } from "../../registration-records-D39ApuHS.js";
|
|
15
15
|
import { V as le, a as pe, b as Pe, r as Ee } from "../../signer-set-reader-DiwLeqik.js";
|
|
16
|
-
import { C as
|
|
16
|
+
import { C as de, M as ue, V as ge, a as me, c as Re } from "../../pegin-registration-client-BlrXyZpF.js";
|
|
17
17
|
import { O as _e, V as Se } from "../../types-K_aM5GZO.js";
|
|
18
18
|
import { A as Ce } from "../../ApplicationRegistry.abi-s8cQ1ooR.js";
|
|
19
19
|
import { B as fe } from "../../BTCVaultRegistry.abi-DnP4UkB5.js";
|
|
@@ -25,14 +25,14 @@ import { V as ke, b as We, a as we, d as ze, f as Ye } from "../../deriveVaultRo
|
|
|
25
25
|
import { p as Je } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
26
26
|
import { c as qe } from "../../btcTxHash-BRZ8_EZq.js";
|
|
27
27
|
import { B as $e, a as as, c as es, b as ss, d as rs, g as ts, h as is, f as os, s as ns, e as ls } from "../../psbtInputFields-CCVyaQMi.js";
|
|
28
|
-
import { B as Ps, D as Es, L as cs, M as
|
|
28
|
+
import { B as Ps, D as Es, L as cs, M as ds, c as us, P as gs, b as ms, a as Rs, S as As, T as _s, W as Ss, f as Ts, d as Cs, p as Is, r as fs } from "../../fundPeginTransaction-CwhRbCQC.js";
|
|
29
29
|
import { U as Vs, a as Os, e as xs, f as bs, v as Fs } from "../../reservation-BAj5n-H_.js";
|
|
30
30
|
import { V as ys, a as Ms, b as vs, i as Ds, v as Bs } from "../../index-B-9aXMxk.js";
|
|
31
31
|
import { A as Hs, C as Ls, D as Ks, J as Xs, a as Gs, b as ks, d as Ws, P as ws, R as zs, e as Ys, c as js, V as Js, i as Zs, g as qs, f as Qs } from "../../state-CFn1rT74.js";
|
|
32
32
|
import { S as ar, V as er, c as sr, p as rr, v as tr, a as ir } from "../../primeVpAuth-B0noJdcy.js";
|
|
33
|
-
import { D as nr, g as lr, P as pr, a as Pr, b as Er, u as cr, v as
|
|
34
|
-
import { J as Br, l as Ur, A as Hr, ab as Lr, C as Kr, D as Xr, n as Gr, G as kr, u as Wr, W as wr, P as zr, j as Yr, v as jr, w as Jr,
|
|
35
|
-
import { C as
|
|
33
|
+
import { D as nr, g as lr, P as pr, a as Pr, b as Er, u as cr, v as dr, t as ur, w as gr, U as mr, V as Rr, f as Ar, m as _r, j as Sr, c as Tr, l as Cr, p as Ir, n as fr, e as hr, h as Vr, d as Or, i as xr, o as br, r as Fr, k as Nr, q as yr, s as Mr, x as vr } from "../../toRefundInputs-Cl4KgzIc.js";
|
|
34
|
+
import { J as Br, l as Ur, A as Hr, ab as Lr, C as Kr, D as Xr, n as Gr, G as kr, u as Wr, W as wr, P as zr, j as Yr, v as jr, w as Jr, am as Zr, an as qr, ao as Qr, ap as $r, af as at, ag as et, ah as st, ai as rt, ak as tt, ac as it, a0 as ot, S as nt, X as lt, V as pt, a as Pt, b as Et, d as ct, e as dt, m as ut, f as gt, g as mt, t as Rt, i as At, B as _t, Y as St, o as Tt, a4 as Ct, al as It, ad as ft, c as ht, k as Vt, h as Ot, ae as xt, E as bt, K as Ft, M as Nt, a5 as yt, Z as Mt, x as vt, y as Dt, a1 as Bt, _ as Ut, a6 as Ht, a7 as Lt, p as Kt, r as Xt, aj as Gt, a8 as kt, a9 as Wt, aa as wt, F as zt, q as Yt, H as jt, I as Jt, s as Zt, N as qt, O as Qt, L as $t, Q as ai, R as ei, T as si, U as ri, $ as ti, a2 as ii, z as oi, a3 as ni } from "../../buildAndBroadcastReclaim-Bs_zdDGN.js";
|
|
35
|
+
import { C as pi, P as Pi, a as Ei, c as ci, g as di, i as ui } from "../../peginState-CXdbSit3.js";
|
|
36
36
|
export {
|
|
37
37
|
Hs as AUTH_REJECTED_RPC_CODE,
|
|
38
38
|
Br as ApplicationEntryPointMismatchError,
|
|
@@ -40,17 +40,17 @@ export {
|
|
|
40
40
|
Ur as ArtifactsVaultMismatchError,
|
|
41
41
|
Hr as AssertBindingError,
|
|
42
42
|
Lr as BIP68NotMatureError,
|
|
43
|
-
|
|
43
|
+
da as BITCOIN_ADDRESS_RE,
|
|
44
44
|
fe as BTCVaultRegistryABI,
|
|
45
45
|
Ve as BTCVaultRegistryKeyEpochsABI,
|
|
46
46
|
Ps as BTC_DUST_SAT,
|
|
47
47
|
$e as BitcoinScriptType,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
de as COMMISSION_BPS_HEADROOM,
|
|
49
|
+
ua as COMPRESSED_PUBKEY_HEX_LEN,
|
|
50
50
|
Oe as CONTRACT_ERRORS,
|
|
51
51
|
Kr as ChallengerSetMismatchError,
|
|
52
52
|
Ls as ClaimerPegoutStatusValue,
|
|
53
|
-
|
|
53
|
+
pi as ContractStatus,
|
|
54
54
|
Xr as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
55
55
|
nr as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
56
56
|
Es as DUST_THRESHOLD,
|
|
@@ -65,10 +65,10 @@ export {
|
|
|
65
65
|
ks as JsonRpcError,
|
|
66
66
|
ma as KNOWN_SCRIPT_PREFIXES,
|
|
67
67
|
cs as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
ue as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
69
|
+
ds as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
70
70
|
Ra as MAX_REASONABLE_FEE_SATS,
|
|
71
|
-
|
|
71
|
+
us as MAX_REASONABLE_PEGIN_VBYTES,
|
|
72
72
|
Ba as MEMPOOL_API_URLS,
|
|
73
73
|
Ua as MempoolNotFoundError,
|
|
74
74
|
_e as OnChainBtcVaultStatus,
|
|
@@ -86,13 +86,13 @@ export {
|
|
|
86
86
|
zr as PayoutDestinationError,
|
|
87
87
|
Yr as PayoutInputLeafError,
|
|
88
88
|
ba as PayoutManager,
|
|
89
|
-
|
|
89
|
+
Pi as PeginAction,
|
|
90
90
|
Fe as PeginFingerprintChangedError,
|
|
91
91
|
Er as PeginFingerprintInputError,
|
|
92
92
|
Ia as PeginManager,
|
|
93
93
|
cr as PeginParamsAmbiguousError,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
dr as PeginParamsIncompleteSpaceError,
|
|
95
|
+
ur as PeginParamsNotFoundError,
|
|
96
96
|
jr as PeginRegistrationMissingError,
|
|
97
97
|
Jr as PeginRegistrationNotFinalError,
|
|
98
98
|
gr as PeginSizingIntegrityError,
|
|
@@ -107,16 +107,17 @@ export {
|
|
|
107
107
|
st as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
108
108
|
rt as REFUND_VSIZE,
|
|
109
109
|
tt as ReclaimUneconomicalError,
|
|
110
|
-
it as
|
|
110
|
+
it as RefundBroadcastRejectedError,
|
|
111
|
+
ot as RegisteredVaultVersionMismatchError,
|
|
111
112
|
Ja as RegistrationLogsUnavailableError,
|
|
112
113
|
zs as RpcErrorCode,
|
|
113
114
|
As as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
114
115
|
ar as ServerIdentityError,
|
|
115
|
-
|
|
116
|
+
nt as SigningPlanMismatchError,
|
|
116
117
|
Aa as TXID_RE,
|
|
117
118
|
_s as TX_BUFFER_SIZE_OVERHEAD,
|
|
118
119
|
mr as UnanchoredPrePeginError,
|
|
119
|
-
|
|
120
|
+
lt as UnsupportedPayoutScriptError,
|
|
120
121
|
Vs as UtxoNotAvailableError,
|
|
121
122
|
ke as VAULT_APP_NAME,
|
|
122
123
|
Le as VAULT_ERROR_ABI,
|
|
@@ -124,7 +125,7 @@ export {
|
|
|
124
125
|
js as VP_TERMINAL_FAILURE_STATUSES,
|
|
125
126
|
Js as VP_TRANSIENT_STATUSES,
|
|
126
127
|
Za as VaultClaimableByNotFoundError,
|
|
127
|
-
|
|
128
|
+
pt as VaultIdBindingError,
|
|
128
129
|
ys as VaultProviderRpcClient,
|
|
129
130
|
Rr as VaultRootMismatchError,
|
|
130
131
|
le as ViemOperationKeyReader,
|
|
@@ -137,34 +138,34 @@ export {
|
|
|
137
138
|
er as VpTokenRegistry,
|
|
138
139
|
Ss as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
139
140
|
_a as X_ONLY_PUBKEY_HEX_LEN,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
Pt as activateVault,
|
|
142
|
+
Et as activateVaultAndRedeem,
|
|
143
|
+
Ei as activationDeadlineBlocksRemaining,
|
|
143
144
|
as as applyChangeOutputPolicy,
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
ct as assembleWatchtowerArtifacts,
|
|
146
|
+
dt as assembleWatchtowerArtifactsFromSignatures,
|
|
146
147
|
ut as assertArtifactsUsableForVault,
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
gt as assertAssertBindsClaimAndPayout,
|
|
149
|
+
mt as assertChallengerSetMatchesVault,
|
|
149
150
|
Ar as assertClaimBatchHomogeneous,
|
|
150
|
-
|
|
151
|
+
Rt as assertClaimSpendsVault,
|
|
151
152
|
N as assertKeyPathSchnorrSignature,
|
|
152
153
|
qa as assertOnChainBtcPubkey,
|
|
153
|
-
|
|
154
|
+
At as assertPayoutPaysRegisteredScript,
|
|
154
155
|
t as assertPsbtUnsignedTxMatches,
|
|
155
156
|
Qa as assertRegisteredPayoutScriptBounds,
|
|
156
|
-
|
|
157
|
+
_t as assertReturnedGraphMatchesFingerprint,
|
|
157
158
|
y as assertReturnedKeyPathSignatures,
|
|
158
159
|
i as assertScriptPathSchnorrSignature,
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
St as assertStandardPayoutScriptsAtEpochs,
|
|
161
|
+
Tt as assertTermsMatchVault,
|
|
161
162
|
Os as assertUtxosAvailable,
|
|
162
163
|
g as assertValidVaultCoreVersion,
|
|
163
|
-
|
|
164
|
+
Ct as assertVaultProviderHintAccepted,
|
|
164
165
|
R as attachFinalizedAssert,
|
|
165
166
|
vs as batchPollByProvider,
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
It as buildAndBroadcastReclaim,
|
|
168
|
+
ft as buildAndBroadcastRefund,
|
|
168
169
|
U as buildChallengeAssertPsbt,
|
|
169
170
|
fa as buildDepositTerms,
|
|
170
171
|
We as buildFundingOutpointsCommitment,
|
|
@@ -179,10 +180,10 @@ export {
|
|
|
179
180
|
we as buildVaultContext,
|
|
180
181
|
Xe as buildVaultContextInputForClaim,
|
|
181
182
|
qe as calculateBtcTxHash,
|
|
182
|
-
|
|
183
|
+
ci as canPerformAction,
|
|
183
184
|
w as canonicalizeBtcPubkey,
|
|
184
185
|
Re as capMaxAcceptableCommissionBps,
|
|
185
|
-
|
|
186
|
+
ht as claimExpiredVault,
|
|
186
187
|
la as combineAbortSignals,
|
|
187
188
|
es as computeChangeOutputFeeSats,
|
|
188
189
|
Sr as computeFundedPrePeginFee,
|
|
@@ -194,13 +195,13 @@ export {
|
|
|
194
195
|
rs as computePeginBaseFeeSats,
|
|
195
196
|
Tr as computePeginFingerprint,
|
|
196
197
|
ha as computeWotsBlockPublicKeysHash,
|
|
197
|
-
|
|
198
|
+
Vt as copyAssertConnectorLeaf,
|
|
198
199
|
sr as createAuthenticatedVpClient,
|
|
199
200
|
P as createPayoutScript,
|
|
200
201
|
Pa as createTaprootScriptPathSignOptions,
|
|
201
202
|
Ea as createTaprootScriptPathSignOptionsForInput,
|
|
202
203
|
z as deriveBip86ScriptPubKeyHex,
|
|
203
|
-
|
|
204
|
+
Ot as deriveClaimerWotsKeypair,
|
|
204
205
|
E as deriveDepositorClaimDescriptor,
|
|
205
206
|
c as deriveDepositorClaimScriptPubKey,
|
|
206
207
|
Cr as deriveHashlocksFromPrePegin,
|
|
@@ -216,13 +217,13 @@ export {
|
|
|
216
217
|
J as ensureHexPrefix,
|
|
217
218
|
Oa as ensurePrePeginTermsApproval,
|
|
218
219
|
X as estimateReclaimFeeSats,
|
|
219
|
-
|
|
220
|
+
xt as estimateRefundFeeSats,
|
|
220
221
|
T as expandAuthAnchor,
|
|
221
222
|
C as expandHashlockSecret,
|
|
222
223
|
I as expandWotsSeed,
|
|
223
224
|
Ne as extractErrorData,
|
|
224
225
|
xs as extractInputsFromTransaction,
|
|
225
|
-
|
|
226
|
+
d as extractPayoutSignature,
|
|
226
227
|
v as extractPeginInputSignature,
|
|
227
228
|
f as finalizePayout,
|
|
228
229
|
D as finalizePeginInputPsbt,
|
|
@@ -230,7 +231,7 @@ export {
|
|
|
230
231
|
h as finalizeWronglyChallenged,
|
|
231
232
|
bs as findOverlappingPendingVaults,
|
|
232
233
|
ae as findRegistrationRecord,
|
|
233
|
-
|
|
234
|
+
bt as fingerprintReturnedGraph,
|
|
234
235
|
Z as formatSatoshisToBtc,
|
|
235
236
|
Na as forwardDepositApproval,
|
|
236
237
|
Ye as forwardDeriveContextHash,
|
|
@@ -243,7 +244,7 @@ export {
|
|
|
243
244
|
q as getNetwork,
|
|
244
245
|
Xa as getNetworkFees,
|
|
245
246
|
Ga as getOutspend,
|
|
246
|
-
|
|
247
|
+
di as getPeginProtocolState,
|
|
247
248
|
is as getPsbtInputFields,
|
|
248
249
|
os as getScriptType,
|
|
249
250
|
Q as getSortedXOnlyPubkeys,
|
|
@@ -255,86 +256,86 @@ export {
|
|
|
255
256
|
$ as hexToUint8Array,
|
|
256
257
|
ui as isActivationDeadlinePassedOnChain,
|
|
257
258
|
aa as isAddressFromPublicKey,
|
|
258
|
-
|
|
259
|
+
Ft as isApplicationEntryPointMismatchError,
|
|
259
260
|
Zs as isAuthRejectedError,
|
|
260
|
-
|
|
261
|
+
Nt as isDepositAmountValid,
|
|
261
262
|
Vr as isDepositTermsRejectedError,
|
|
262
|
-
|
|
263
|
+
yt as isHintAccepted,
|
|
263
264
|
ve as isKnownContractError,
|
|
264
|
-
|
|
265
|
+
Mt as isParticipantKeyDriftError,
|
|
265
266
|
De as isPeginFingerprintChangedError,
|
|
266
267
|
Or as isPeginFingerprintInputError,
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
vt as isPeginRegistrationMissingError,
|
|
269
|
+
Dt as isPeginRegistrationNotFinalError,
|
|
269
270
|
qs as isPegoutTerminalStatus,
|
|
270
271
|
Qs as isRecognizedPegoutStatus,
|
|
271
|
-
|
|
272
|
+
Bt as isRegisteredVaultVersionMismatchError,
|
|
272
273
|
ee as isRegistrationLogsUnavailableError,
|
|
273
274
|
Ds as isUnrecognizedDaemonStatusError,
|
|
274
|
-
|
|
275
|
+
Ut as isUnsupportedPayoutScriptError,
|
|
275
276
|
ea as isValidHex,
|
|
276
277
|
se as isVaultClaimableByNotFoundError,
|
|
277
278
|
xr as isWotsMismatchError,
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
Ht as matchKeyHint,
|
|
280
|
+
Lt as matchKeySetHint,
|
|
280
281
|
br as orderClaimBatchByHtlcVout,
|
|
281
282
|
Je as parseFundingOutpointsFromTx,
|
|
282
283
|
Cs as parseUnfundedWasmTransaction,
|
|
283
284
|
Is as peginOutputCount,
|
|
284
285
|
V as peginP2aAnchorOutput,
|
|
285
286
|
O as pinPegoutProof,
|
|
286
|
-
|
|
287
|
+
Kt as planDelegatedClaimSigning,
|
|
287
288
|
rr as primeVpTokenRegistry,
|
|
288
289
|
sa as processPublicKeyToXOnly,
|
|
289
290
|
Ya as pushTx,
|
|
290
291
|
fs as rateBasedTxBufferFee,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
Xt as readDelegatedClaimVaultContext,
|
|
293
|
+
Gt as readRefundPrePeginContext,
|
|
294
|
+
kt as readStampedParticipantKeys,
|
|
294
295
|
Fr as rebuildDepositTermsCore,
|
|
295
296
|
Nr as rebuildDepositTermsForClaim,
|
|
296
297
|
k as reclaimVsize,
|
|
297
298
|
yr as reconstructPeginParams,
|
|
298
299
|
re as registrationPrePeginTxHash,
|
|
299
300
|
ya as requireChangeAddress,
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
Wt as resolveCurrentParticipantKeys,
|
|
302
|
+
wt as resolveParticipantKeysAtEpochs,
|
|
302
303
|
Ee as resolveProtocolAddresses,
|
|
303
|
-
|
|
304
|
+
zt as runDepositorPresignFlow,
|
|
304
305
|
Mr as selectSiblingRegistrations,
|
|
305
306
|
ns as selectUtxosForPegin,
|
|
306
307
|
ls as shouldAddChangeOutput,
|
|
307
|
-
|
|
308
|
-
|
|
308
|
+
Yt as signDelegatedClaimPlan,
|
|
309
|
+
jt as signDepositorGraph,
|
|
309
310
|
ra as stripHexPrefix,
|
|
310
|
-
|
|
311
|
-
|
|
311
|
+
Jt as submitWotsPublicKey,
|
|
312
|
+
Zt as summarizeWatchtowerArtifacts,
|
|
312
313
|
x as supportedTxGraphVersions,
|
|
313
314
|
Ma as supportsDepositApproval,
|
|
314
315
|
vr as toRefundInputs,
|
|
315
316
|
ta as toXOnly,
|
|
316
317
|
ia as uint8ArrayToHex,
|
|
317
|
-
|
|
318
|
-
|
|
318
|
+
qt as validateDepositAmount,
|
|
319
|
+
Qt as validateMultiVaultDepositInputs,
|
|
319
320
|
te as validateOffchainParams,
|
|
320
|
-
|
|
321
|
+
$t as validateOnChainParticipantKeys,
|
|
321
322
|
ie as validatePegInConfiguration,
|
|
322
323
|
b as validatePeginP2aAnchor,
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
ai as validateProviderSelection,
|
|
325
|
+
ei as validateRemainingCapacity,
|
|
325
326
|
Bs as validateRequestDepositorClaimerArtifactsResponse,
|
|
326
327
|
va as validateSecretAgainstHashlock,
|
|
327
328
|
oe as validateTBVProtocolParams,
|
|
328
329
|
Fs as validateUtxosAvailable,
|
|
329
|
-
|
|
330
|
-
|
|
330
|
+
si as validateVaultAmounts,
|
|
331
|
+
ri as validateVaultProviderPubkey,
|
|
331
332
|
oa as validateWalletPubkey,
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
ti as verifyRegisteredParticipantKeys,
|
|
334
|
+
ii as verifyRegisteredVaultVersions,
|
|
334
335
|
tr as verifyServerIdentity,
|
|
335
336
|
ir as vpTokenRegistry,
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
oi as waitForPeginRegistrationDepth,
|
|
338
|
+
ni as waitForPeginStatus,
|
|
338
339
|
Ta as waitForTransactionReceiptSmartAware
|
|
339
340
|
};
|
|
340
341
|
//# sourceMappingURL=index.js.map
|
|
@@ -55,6 +55,12 @@ export interface ReconstructPeginParamsResult {
|
|
|
55
55
|
peginAmounts: readonly bigint[];
|
|
56
56
|
/** The transaction's `SHA256(authAnchor)` commitment, for the refund rebuild. */
|
|
57
57
|
authAnchorHash: string;
|
|
58
|
+
/**
|
|
59
|
+
* The funded Pre-PegIn transaction this result was verified against,
|
|
60
|
+
* without `0x`. These are the bytes hashed into `terms.prepeginTxid`, so
|
|
61
|
+
* the refund spends the transaction that was actually checked.
|
|
62
|
+
*/
|
|
63
|
+
fundedPrePeginTxHex: string;
|
|
58
64
|
/** Size of the space actually trialled, for the recovery record. */
|
|
59
65
|
candidatesTried: number;
|
|
60
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconstructPeginParams.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/recovery/reconstructPeginParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAelE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAkBjC,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,mEAAmE;IACnE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,UAAU,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC5C;;;;;;;;OAQG;IACH,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,4BAA4B;IAC3C,yEAAyE;IACzE,SAAS,EAAE,oBAAoB,CAAC;IAChC;;;;;;;;OAQG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,iFAAiF;IACjF,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD;AAgGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,4BAA4B,CAAC,
|
|
1
|
+
{"version":3,"file":"reconstructPeginParams.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/recovery/reconstructPeginParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAelE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAkBjC,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,mEAAmE;IACnE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,UAAU,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC5C;;;;;;;;OAQG;IACH,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,4BAA4B;IAC3C,yEAAyE;IACzE,SAAS,EAAE,oBAAoB,CAAC;IAChC;;;;;;;;OAQG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,iFAAiF;IACjF,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD;AAgGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,4BAA4B,CAAC,CAgMvC"}
|
|
@@ -29,8 +29,6 @@ export interface ToRefundInputsOptions {
|
|
|
29
29
|
* survives the reorg untouched.
|
|
30
30
|
*/
|
|
31
31
|
applicationEntryPoint: Address;
|
|
32
|
-
/** Funded Pre-PegIn transaction hex, `0x` optional. */
|
|
33
|
-
fundedPrePeginTxHex: string;
|
|
34
32
|
/** Hashlocks indexed by `htlcVout`, as passed to the reconstruction. */
|
|
35
33
|
hashlocks: readonly string[];
|
|
36
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toRefundInputs.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/recovery/toRefundInputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAO,MAAM,MAAM,CAAC;AAGzC,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAE7E,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;OAWG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B,
|
|
1
|
+
{"version":3,"file":"toRefundInputs.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/recovery/toRefundInputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAO,MAAM,MAAM,CAAC;AAGzC,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAE7E,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;OAWG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wEAAwE;IACxE,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B;;;;;OAKG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,4BAA4B,EACpC,OAAO,EAAE,qBAAqB,GAC7B,wBAAwB,CAsE1B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../PayoutManager-B5nR0x1t.cjs"),t=require("../../../buildAndBroadcastReclaim-CXOMHHgK.cjs"),r=require("../wasm/index.cjs"),e=require("../../../peginState-B4t_PDgj.cjs"),a=require("../../../state-C4WoNCy1.cjs");exports.computeHashlock=i.computeHashlock;exports.validateSecretAgainstHashlock=i.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.AssertBindingError=t.AssertBindingError;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.DelegatedClaimSigningIncompleteError=t.DelegatedClaimSigningIncompleteError;exports.GraphFingerprintError=t.GraphFingerprintError;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;exports.PayoutInputLeafError=t.PayoutInputLeafError;exports.PeginRegistrationMissingError=t.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=t.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=t.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=t.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=t.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=t.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;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.ReclaimUneconomicalError=t.ReclaimUneconomicalError;exports.RefundBroadcastRejectedError=t.RefundBroadcastRejectedError;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.SigningPlanMismatchError=t.SigningPlanMismatchError;exports.UnsupportedPayoutScriptError=t.UnsupportedPayoutScriptError;exports.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assembleWatchtowerArtifactsFromSignatures=t.assembleWatchtowerArtifactsFromSignatures;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertAssertBindsClaimAndPayout=t.assertAssertBindsClaimAndPayout;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertReturnedGraphMatchesFingerprint=t.assertReturnedGraphMatchesFingerprint;exports.assertStandardPayoutScriptsAtEpochs=t.assertStandardPayoutScriptsAtEpochs;exports.assertTermsMatchVault=t.assertTermsMatchVault;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.claimExpiredVault=t.claimExpiredVault;exports.copyAssertConnectorLeaf=t.copyAssertConnectorLeaf;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.fingerprintReturnedGraph=t.fingerprintReturnedGraph;exports.isApplicationEntryPointMismatchError=t.isApplicationEntryPointMismatchError;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isHintAccepted=t.isHintAccepted;exports.isParticipantKeyDriftError=t.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=t.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=t.isPeginRegistrationNotFinalError;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.isUnsupportedPayoutScriptError=t.isUnsupportedPayoutScriptError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.planDelegatedClaimSigning=t.planDelegatedClaimSigning;exports.readDelegatedClaimVaultContext=t.readDelegatedClaimVaultContext;exports.readRefundPrePeginContext=t.readRefundPrePeginContext;exports.readStampedParticipantKeys=t.readStampedParticipantKeys;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDelegatedClaimPlan=t.signDelegatedClaimPlan;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.summarizeWatchtowerArtifacts=t.summarizeWatchtowerArtifacts;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.verifyRegisteredParticipantKeys=t.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=t.waitForPeginRegistrationDepth;exports.waitForPeginStatus=t.waitForPeginStatus;exports.attachFinalizedAssert=r.attachFinalizedAssert;exports.finalizePayout=r.finalizePayout;exports.finalizeWronglyChallenged=r.finalizeWronglyChallenged;exports.pinPegoutProof=r.pinPegoutProof;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.activationDeadlineBlocksRemaining=e.activationDeadlineBlocksRemaining;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;exports.ClaimerPegoutStatusValue=a.ClaimerPegoutStatusValue;exports.isPegoutTerminalStatus=a.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=a.isRecognizedPegoutStatus;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as s, v as e } from "../../../PayoutManager-BHeiLQ1j.js";
|
|
2
|
-
import { J as i, l as n, A as o, ab as l, C as c, D as E, n as d, G as u, u as g, W as A, P as p, j as
|
|
3
|
-
import { attachFinalizedAssert as
|
|
4
|
-
import { C as ba, P as
|
|
5
|
-
import { C as
|
|
2
|
+
import { J as i, l as n, A as o, ab as l, C as c, D as E, n as d, G as u, u as g, W as A, P as p, j as R, v as P, w as m, am as _, an as C, ao as h, ap as M, af as S, ag as y, ah as F, ai as f, ak as V, ac as N, a0 as D, S as I, X as v, V as T, a as O, b as K, d as U, e as B, m as b, f as x, g as H, t as L, i as G, B as W, Y as X, o as w, a4 as k, al as z, ad as j, c as Z, k as q, h as J, ae as Q, E as Y, K as $, M as aa, a5 as ta, Z as sa, x as ea, y as ra, a1 as ia, _ as na, a6 as oa, a7 as la, p as ca, r as Ea, aj as da, a8 as ua, a9 as ga, aa as Aa, F as pa, q as Ra, H as Pa, I as ma, s as _a, N as Ca, O as ha, L as Ma, Q as Sa, R as ya, T as Fa, U as fa, $ as Va, a2 as Na, z as Da, a3 as Ia } from "../../../buildAndBroadcastReclaim-Bs_zdDGN.js";
|
|
3
|
+
import { attachFinalizedAssert as Ta, finalizePayout as Oa, finalizeWronglyChallenged as Ka, pinPegoutProof as Ua } from "../wasm/index.js";
|
|
4
|
+
import { C as ba, P as xa, a as Ha, c as La, g as Ga, i as Wa } from "../../../peginState-CXdbSit3.js";
|
|
5
|
+
import { C as wa, g as ka, f as za } from "../../../state-CFn1rT74.js";
|
|
6
6
|
export {
|
|
7
7
|
i as ApplicationEntryPointMismatchError,
|
|
8
8
|
n as ArtifactsVaultMismatchError,
|
|
9
9
|
o as AssertBindingError,
|
|
10
10
|
l as BIP68NotMatureError,
|
|
11
11
|
c as ChallengerSetMismatchError,
|
|
12
|
-
|
|
12
|
+
wa as ClaimerPegoutStatusValue,
|
|
13
13
|
ba as ContractStatus,
|
|
14
14
|
E as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
15
15
|
d as DelegatedClaimSigningIncompleteError,
|
|
@@ -17,9 +17,9 @@ export {
|
|
|
17
17
|
g as PEGIN_ETH_CONFIRMATIONS,
|
|
18
18
|
A as ParticipantKeyDriftError,
|
|
19
19
|
p as PayoutDestinationError,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
R as PayoutInputLeafError,
|
|
21
|
+
xa as PeginAction,
|
|
22
|
+
P as PeginRegistrationMissingError,
|
|
23
23
|
m as PeginRegistrationNotFinalError,
|
|
24
24
|
_ as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
|
|
25
25
|
C as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
|
|
@@ -30,73 +30,74 @@ export {
|
|
|
30
30
|
F as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
31
31
|
f as REFUND_VSIZE,
|
|
32
32
|
V as ReclaimUneconomicalError,
|
|
33
|
-
N as
|
|
34
|
-
D as
|
|
35
|
-
I as
|
|
36
|
-
v as
|
|
37
|
-
T as
|
|
38
|
-
O as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
U as
|
|
33
|
+
N as RefundBroadcastRejectedError,
|
|
34
|
+
D as RegisteredVaultVersionMismatchError,
|
|
35
|
+
I as SigningPlanMismatchError,
|
|
36
|
+
v as UnsupportedPayoutScriptError,
|
|
37
|
+
T as VaultIdBindingError,
|
|
38
|
+
O as activateVault,
|
|
39
|
+
K as activateVaultAndRedeem,
|
|
40
|
+
Ha as activationDeadlineBlocksRemaining,
|
|
41
|
+
U as assembleWatchtowerArtifacts,
|
|
42
|
+
B as assembleWatchtowerArtifactsFromSignatures,
|
|
42
43
|
b as assertArtifactsUsableForVault,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
x as assertAssertBindsClaimAndPayout,
|
|
45
|
+
H as assertChallengerSetMatchesVault,
|
|
46
|
+
L as assertClaimSpendsVault,
|
|
47
|
+
G as assertPayoutPaysRegisteredScript,
|
|
48
|
+
W as assertReturnedGraphMatchesFingerprint,
|
|
49
|
+
X as assertStandardPayoutScriptsAtEpochs,
|
|
50
|
+
w as assertTermsMatchVault,
|
|
51
|
+
k as assertVaultProviderHintAccepted,
|
|
52
|
+
Ta as attachFinalizedAssert,
|
|
53
|
+
z as buildAndBroadcastReclaim,
|
|
54
|
+
j as buildAndBroadcastRefund,
|
|
55
|
+
La as canPerformAction,
|
|
56
|
+
Z as claimExpiredVault,
|
|
56
57
|
s as computeHashlock,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
58
|
+
q as copyAssertConnectorLeaf,
|
|
59
|
+
J as deriveClaimerWotsKeypair,
|
|
60
|
+
Q as estimateRefundFeeSats,
|
|
61
|
+
Oa as finalizePayout,
|
|
62
|
+
Ka as finalizeWronglyChallenged,
|
|
63
|
+
Y as fingerprintReturnedGraph,
|
|
64
|
+
Ga as getPeginProtocolState,
|
|
65
|
+
Wa as isActivationDeadlinePassedOnChain,
|
|
66
|
+
$ as isApplicationEntryPointMismatchError,
|
|
67
|
+
aa as isDepositAmountValid,
|
|
68
|
+
ta as isHintAccepted,
|
|
69
|
+
sa as isParticipantKeyDriftError,
|
|
70
|
+
ea as isPeginRegistrationMissingError,
|
|
71
|
+
ra as isPeginRegistrationNotFinalError,
|
|
72
|
+
ka as isPegoutTerminalStatus,
|
|
73
|
+
za as isRecognizedPegoutStatus,
|
|
74
|
+
ia as isRegisteredVaultVersionMismatchError,
|
|
75
|
+
na as isUnsupportedPayoutScriptError,
|
|
76
|
+
oa as matchKeyHint,
|
|
77
|
+
la as matchKeySetHint,
|
|
78
|
+
Ua as pinPegoutProof,
|
|
79
|
+
ca as planDelegatedClaimSigning,
|
|
80
|
+
Ea as readDelegatedClaimVaultContext,
|
|
81
|
+
da as readRefundPrePeginContext,
|
|
82
|
+
ua as readStampedParticipantKeys,
|
|
83
|
+
ga as resolveCurrentParticipantKeys,
|
|
84
|
+
Aa as resolveParticipantKeysAtEpochs,
|
|
85
|
+
pa as runDepositorPresignFlow,
|
|
86
|
+
Ra as signDelegatedClaimPlan,
|
|
86
87
|
Pa as signDepositorGraph,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
ma as submitWotsPublicKey,
|
|
89
|
+
_a as summarizeWatchtowerArtifacts,
|
|
90
|
+
Ca as validateDepositAmount,
|
|
91
|
+
ha as validateMultiVaultDepositInputs,
|
|
92
|
+
Ma as validateOnChainParticipantKeys,
|
|
93
|
+
Sa as validateProviderSelection,
|
|
94
|
+
ya as validateRemainingCapacity,
|
|
94
95
|
e as validateSecretAgainstHashlock,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
Fa as validateVaultAmounts,
|
|
97
|
+
fa as validateVaultProviderPubkey,
|
|
98
|
+
Va as verifyRegisteredParticipantKeys,
|
|
99
|
+
Na as verifyRegisteredVaultVersions,
|
|
100
|
+
Da as waitForPeginRegistrationDepth,
|
|
101
|
+
Ia as waitForPeginStatus
|
|
101
102
|
};
|
|
102
103
|
//# sourceMappingURL=index.js.map
|
|
@@ -172,13 +172,17 @@ export interface RefundInput<R extends BtcBroadcastResult = BtcBroadcastResult>
|
|
|
172
172
|
*
|
|
173
173
|
* The broadcast transport is expected to surface Bitcoin's `non-BIP68-final`
|
|
174
174
|
* policy rejection as an `Error` whose message contains that string; when
|
|
175
|
-
* it does, the SDK wraps it in {@link BIP68NotMatureError}.
|
|
176
|
-
*
|
|
175
|
+
* it does, the SDK wraps it in {@link BIP68NotMatureError}. Relayed bitcoind
|
|
176
|
+
* `-25` / `-27` rejections are wrapped in {@link RefundBroadcastRejectedError}.
|
|
177
|
+
* All other transport errors propagate unchanged.
|
|
177
178
|
*
|
|
178
179
|
* @returns whatever the injected `broadcastTx` returns (generic pass-through)
|
|
179
180
|
* @throws `Error` if any validation fails
|
|
180
181
|
* @throws {@link BIP68NotMatureError} if the broadcast is rejected because
|
|
181
182
|
* the refund CSV timelock has not yet matured
|
|
183
|
+
* @throws {@link RefundBroadcastRejectedError} if the broadcast is rejected
|
|
184
|
+
* with bitcoind `-25` (a general transaction error, usually missing
|
|
185
|
+
* or spent inputs) or `-27` (already in the chain)
|
|
182
186
|
* @throws anything `readVault`, `readPrePeginContext`,
|
|
183
187
|
* `signPsbt`, or `broadcastTx` throws
|
|
184
188
|
*/
|