@babylonlabs-io/ts-sdk 0.64.0 → 0.66.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/{buildAndBroadcastRefund-C2fP3Rva.js → buildAndBroadcastRefund-C4LiPATK.js} +201 -201
- package/dist/buildAndBroadcastRefund-C4LiPATK.js.map +1 -0
- package/dist/buildAndBroadcastRefund-Daw5ZUKR.cjs +2 -0
- package/dist/buildAndBroadcastRefund-Daw5ZUKR.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +81 -80
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +72 -71
- package/dist/tbv/core/recovery/__tests__/toRefundInputs.test.d.ts +15 -0
- package/dist/tbv/core/recovery/__tests__/toRefundInputs.test.d.ts.map +1 -0
- package/dist/tbv/core/recovery/deriveHashlocksFromPrePegin.d.ts +8 -3
- package/dist/tbv/core/recovery/deriveHashlocksFromPrePegin.d.ts.map +1 -1
- package/dist/tbv/core/recovery/index.d.ts +1 -0
- package/dist/tbv/core/recovery/index.d.ts.map +1 -1
- package/dist/tbv/core/recovery/toRefundInputs.d.ts +61 -0
- package/dist/tbv/core/recovery/toRefundInputs.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +3 -2
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +72 -71
- package/dist/toRefundInputs-BY_fcvrv.js +456 -0
- package/dist/toRefundInputs-BY_fcvrv.js.map +1 -0
- package/dist/toRefundInputs-DYL9C-aG.cjs +2 -0
- package/dist/toRefundInputs-DYL9C-aG.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/buildAndBroadcastRefund-C2fP3Rva.js.map +0 -1
- package/dist/buildAndBroadcastRefund-CYtnT0D_.cjs +0 -2
- package/dist/buildAndBroadcastRefund-CYtnT0D_.cjs.map +0 -1
- package/dist/reconstructPeginParams-BVA67Iv8.js +0 -400
- package/dist/reconstructPeginParams-BVA67Iv8.js.map +0 -1
- package/dist/reconstructPeginParams-BmUVK7F_.cjs +0 -2
- package/dist/reconstructPeginParams-BmUVK7F_.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { b as s, c as t } from "./challengeAssert-C7PzyJ7g.js";
|
|
2
2
|
import { a as i } from "./constants-GjWXdaqV.js";
|
|
3
|
-
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as P, expandAuthAnchor as
|
|
4
|
-
import { P as T, d as
|
|
5
|
-
import { b, e as
|
|
3
|
+
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as P, expandAuthAnchor as u, expandHashlockSecret as c, expandWotsSeed as d, peginP2aAnchorOutput as l, supportedTxGraphVersions as E, validatePeginP2aAnchor as g } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
+
import { P as T, d as R, f as m, c as S, b as _, a as f, g as x, e as C } from "./verifyScriptPathSchnorrSignature-i-koT139.js";
|
|
5
|
+
import { b, e as I, f as h } from "./peginInput-HQPWZfly.js";
|
|
6
6
|
import { a as V, b as y } from "./noPayout-BaZGRLD2.js";
|
|
7
7
|
import { c as D, d as F, a as M, b as B, e as U, f as H, k, g as L, h as K, i as X, j as w, p as W, s as G, t as j, u as J, v as z } from "./bitcoin-d9eaaZB_.js";
|
|
8
8
|
import { B as Z, H as q, K as Q, M as $, T as aa, c as ea } from "./validation-Dj3dqYtl.js";
|
|
9
9
|
import { c as ta } from "./signing-DaLvGwQe.js";
|
|
10
|
-
import { C as ia, M as oa, P as na, b as pa, a as Pa, c as
|
|
11
|
-
import { P as ga, c as Aa, f as Ta, s as
|
|
10
|
+
import { C as ia, M as oa, P as na, b as pa, a as Pa, c as ua, d as ca, f as da, e as la } from "./PeginManager-BBl4xkWz.js";
|
|
11
|
+
import { P as ga, c as Aa, f as Ta, s as Ra, v as ma } from "./signPsbtsWithFallback-Bb66DfY5.js";
|
|
12
12
|
import { A as _a, P as fa } from "./ProtocolParams.abi-C0TSRaHV.js";
|
|
13
13
|
import { B as Ca } from "./BTCVaultRegistry.abi-CJwWI2EO.js";
|
|
14
14
|
import { B as ba } from "./BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
|
|
15
|
-
import { C as
|
|
15
|
+
import { C as ha, e as va, g as Va, h as ya, i as Na } from "./errors-Blc-JWnI.js";
|
|
16
16
|
import { V as Fa, b as Ma, a as Ba, d as Ua, f as Ha, p as ka } from "./parseFundingOutpoints-pBRE11Hr.js";
|
|
17
17
|
import { BitcoinNetworks as Ka } from "./shared/index.js";
|
|
18
18
|
import { B as wa, a as Wa, f as Ga, c as ja, b as Ja, d as za, g as Ya, i as Za, h as qa, s as Qa, e as $a, w as ae } from "./waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
19
|
-
import { B as se, D as te, L as re, M as ie, c as oe, P as ne, b as pe, a as Pe, S as
|
|
20
|
-
import { U as
|
|
21
|
-
import { M as Ce, V as Oe, g as be, a as
|
|
19
|
+
import { B as se, D as te, L as re, M as ie, c as oe, P as ne, b as pe, a as Pe, S as ue, T as ce, W as de, f as le, d as Ee, p as ge, r as Ae } from "./fundPeginTransaction-B2wyjqp0.js";
|
|
20
|
+
import { U as Re, a as me, e as Se, f as _e, v as fe } from "./reservation-B4i_PQhY.js";
|
|
21
|
+
import { M as Ce, V as Oe, g as be, a as Ie, b as he, c as ve, d as Ve, e as ye, f as Ne, h as De, i as Fe, p as Me, v as Be, j as Ue, k as He } from "./mempoolApi-BxSINXIB.js";
|
|
22
22
|
import { O as Le, S as Ke, V as Xe, g as we, h as We, i as Ge, j as je, a as Je, d as ze, b as Ye, f as Ze, p as qe, r as Qe, v as $e, c as as, e as es } from "./batchPoll-cIxrSLLJ.js";
|
|
23
|
-
import { A as ts, D as rs, J as is, a as os, b as ns, d as ps, P as Ps, R as
|
|
23
|
+
import { A as ts, D as rs, J as is, a as os, b as ns, d as ps, P as Ps, R as us, e as cs, c as ds, V as ls, i as Es } from "./json-rpc-client-DuUARJvV.js";
|
|
24
24
|
import { a as As } from "./onChainBtcPubkey-DeF4cKoO.js";
|
|
25
|
-
import { D as
|
|
26
|
-
import { H as
|
|
27
|
-
import { C as
|
|
25
|
+
import { D as Rs, a as ms, h as Ss, j as _s, P as fs, k as xs, U as Cs, V as Os, c as bs, d as Is, f as hs, e as vs, b as Vs, i as ys, r as Ns, g as Ds, t as Fs } from "./toRefundInputs-BY_fcvrv.js";
|
|
26
|
+
import { H as Bs, E as Us, P as Hs, o as ks, c as Ls, d as Ks, K as Xs, L as ws, M as Ws, N as Gs, R as js, a as Js, b as zs, y as Ys, I as Zs, J as qs, g as Qs, z as $s, p as at, i as et, e as st, G as tt, F as rt, t as it, A as ot, B as nt, C as pt, D as Pt, r as ut, s as ct, f as dt, h as lt, j as Et, v as gt, k as At, l as Tt, m as Rt, n as mt, q as St, u as _t, w as ft, x as xt } from "./buildAndBroadcastRefund-C4LiPATK.js";
|
|
27
|
+
import { C as Ot, P as bt, c as It, g as ht, i as vt } from "./peginState-CxDiaKuk.js";
|
|
28
28
|
export {
|
|
29
29
|
ts as AUTH_REJECTED_RPC_CODE,
|
|
30
30
|
_a as ApplicationRegistryABI,
|
|
31
|
-
|
|
31
|
+
Bs as BIP68NotMatureError,
|
|
32
32
|
Z as BITCOIN_ADDRESS_RE,
|
|
33
33
|
Ca as BTCVaultRegistryABI,
|
|
34
34
|
ba as BTCVaultRegistryKeyEpochsABI,
|
|
@@ -36,13 +36,13 @@ export {
|
|
|
36
36
|
Ka as BitcoinNetworks,
|
|
37
37
|
wa as BitcoinScriptType,
|
|
38
38
|
ia as COMMISSION_BPS_HEADROOM,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
ha as CONTRACT_ERRORS,
|
|
40
|
+
Us as ClaimerPegoutStatusValue,
|
|
41
|
+
Ot as ContractStatus,
|
|
42
|
+
Rs as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
43
43
|
te as DUST_THRESHOLD,
|
|
44
44
|
rs as DaemonStatus,
|
|
45
|
-
|
|
45
|
+
ms as DepositTermsRejectedError,
|
|
46
46
|
q as HEX_RE,
|
|
47
47
|
is as JSON_RPC_ERROR_CODES,
|
|
48
48
|
os as JsonRpcClient,
|
|
@@ -57,36 +57,36 @@ export {
|
|
|
57
57
|
Le as OnChainBtcVaultStatus,
|
|
58
58
|
ne as P2TR_INPUT_SIZE,
|
|
59
59
|
pe as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
60
|
-
|
|
60
|
+
Hs as PEGIN_ETH_CONFIRMATIONS,
|
|
61
61
|
Pe as PEGIN_FIXED_OUTPUTS,
|
|
62
62
|
ps as POST_WOTS_STATUSES,
|
|
63
63
|
Ps as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
64
|
-
|
|
64
|
+
ks as ParticipantKeyDriftError,
|
|
65
65
|
ga as PayoutManager,
|
|
66
|
-
|
|
66
|
+
bt as PeginAction,
|
|
67
67
|
na as PeginManager,
|
|
68
68
|
Ss as PeginParamsAmbiguousError,
|
|
69
69
|
_s as PeginParamsIncompleteSpaceError,
|
|
70
70
|
fs as PeginParamsNotFoundError,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
Ls as PeginRegistrationMissingError,
|
|
72
|
+
Ks as PeginRegistrationNotFinalError,
|
|
73
73
|
xs as PeginSizingIntegrityError,
|
|
74
74
|
fa as ProtocolParamsABI,
|
|
75
75
|
T as PsbtSubstitutionError,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
Xs as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
77
|
+
ws as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
78
|
+
Ws as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
79
|
+
Gs as REFUND_VSIZE,
|
|
80
|
+
js as RegisteredVaultVersionMismatchError,
|
|
81
|
+
us as RpcErrorCode,
|
|
82
|
+
ue as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
83
83
|
Ke as ServerIdentityError,
|
|
84
84
|
aa as TXID_RE,
|
|
85
|
-
|
|
85
|
+
ce as TX_BUFFER_SIZE_OVERHEAD,
|
|
86
86
|
Cs as UnanchoredPrePeginError,
|
|
87
|
-
|
|
87
|
+
Re as UtxoNotAvailableError,
|
|
88
88
|
Fa as VAULT_APP_NAME,
|
|
89
|
-
|
|
89
|
+
cs as VP_BATCH_MAX_SIZE,
|
|
90
90
|
ds as VP_TERMINAL_FAILURE_STATUSES,
|
|
91
91
|
ls as VP_TRANSIENT_STATUSES,
|
|
92
92
|
Xe as VaultProviderRpcClient,
|
|
@@ -99,17 +99,17 @@ export {
|
|
|
99
99
|
Je as VpResponseValidationError,
|
|
100
100
|
ze as VpTokenRegistry,
|
|
101
101
|
de as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
Js as activateVault,
|
|
103
|
+
zs as activateVaultAndRedeem,
|
|
104
104
|
Wa as applyChangeOutputPolicy,
|
|
105
105
|
As as assertOnChainBtcPubkey,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
R as assertPsbtUnsignedTxMatches,
|
|
107
|
+
m as assertScriptPathSchnorrSignature,
|
|
108
|
+
me as assertUtxosAvailable,
|
|
109
109
|
i as assertValidVaultCoreVersion,
|
|
110
|
-
|
|
110
|
+
Ys as assertVaultProviderHintAccepted,
|
|
111
111
|
Ye as batchPollByProvider,
|
|
112
|
-
|
|
112
|
+
Zs as buildAndBroadcastRefund,
|
|
113
113
|
s as buildChallengeAssertPsbt,
|
|
114
114
|
pa as buildDepositTerms,
|
|
115
115
|
Ma as buildFundingOutpointsCommitment,
|
|
@@ -122,7 +122,7 @@ export {
|
|
|
122
122
|
y as buildRefundPsbt,
|
|
123
123
|
Ba as buildVaultContext,
|
|
124
124
|
Ga as calculateBtcTxHash,
|
|
125
|
-
|
|
125
|
+
It as canPerformAction,
|
|
126
126
|
D as canonicalizeBtcPubkey,
|
|
127
127
|
Pa as capMaxAcceptableCommissionBps,
|
|
128
128
|
ea as combineAbortSignals,
|
|
@@ -133,41 +133,41 @@ export {
|
|
|
133
133
|
p as computeMinPeginFee,
|
|
134
134
|
t as computeNumLocalChallengers,
|
|
135
135
|
za as computePeginBaseFeeSats,
|
|
136
|
-
|
|
136
|
+
ua as computeWotsBlockPublicKeysHash,
|
|
137
137
|
Ze as createAuthenticatedVpClient,
|
|
138
138
|
x as createPayoutScript,
|
|
139
139
|
ta as createTaprootScriptPathSignOptions,
|
|
140
140
|
F as deriveBip86ScriptPubKeyHex,
|
|
141
|
-
|
|
141
|
+
Is as deriveHashlocksFromPrePegin,
|
|
142
142
|
M as deriveNativeSegwitAddress,
|
|
143
143
|
B as deriveTaprootAddress,
|
|
144
144
|
P as deriveVaultId,
|
|
145
145
|
Ua as deriveVaultRoot,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
ca as deriveWotsBlocksFromSeed,
|
|
147
|
+
hs as describePeginParamsCandidate,
|
|
148
148
|
vs as describeUnresolvedVersion,
|
|
149
149
|
U as ensureHexPrefix,
|
|
150
150
|
da as ensurePrePeginTermsApproval,
|
|
151
|
-
|
|
151
|
+
qs as estimateRefundFeeSats,
|
|
152
152
|
la as estimateSubmitPeginRequestBatchGas,
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
u as expandAuthAnchor,
|
|
154
|
+
c as expandHashlockSecret,
|
|
155
155
|
d as expandWotsSeed,
|
|
156
156
|
va as extractErrorData,
|
|
157
157
|
Se as extractInputsFromTransaction,
|
|
158
158
|
C as extractPayoutSignature,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
I as extractPeginInputSignature,
|
|
160
|
+
h as finalizePeginInputPsbt,
|
|
161
161
|
_e as findOverlappingPendingVaults,
|
|
162
162
|
H as formatSatoshisToBtc,
|
|
163
163
|
Ta as forwardDepositApproval,
|
|
164
164
|
Ha as forwardDeriveContextHash,
|
|
165
165
|
le as fundPeginTransaction,
|
|
166
166
|
be as getAddressTxs,
|
|
167
|
-
|
|
167
|
+
Ie as getAddressUtxos,
|
|
168
168
|
Va as getContractErrorMessage,
|
|
169
169
|
Ya as getDustThreshold,
|
|
170
|
-
|
|
170
|
+
he as getMempoolApiUrl,
|
|
171
171
|
k as getNetwork,
|
|
172
172
|
ve as getNetworkFees,
|
|
173
173
|
Ve as getOutspend,
|
|
@@ -181,23 +181,23 @@ export {
|
|
|
181
181
|
Fe as getUtxoInfo,
|
|
182
182
|
ya as handleContractError,
|
|
183
183
|
K as hexToUint8Array,
|
|
184
|
-
|
|
184
|
+
vt as isActivationDeadlinePassedOnChain,
|
|
185
185
|
X as isAddressFromPublicKey,
|
|
186
186
|
Es as isAuthRejectedError,
|
|
187
|
-
|
|
187
|
+
Qs as isDepositAmountValid,
|
|
188
188
|
Vs as isDepositTermsRejectedError,
|
|
189
|
-
|
|
189
|
+
$s as isHintAccepted,
|
|
190
190
|
Na as isKnownContractError,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
at as isParticipantKeyDriftError,
|
|
192
|
+
et as isPeginRegistrationMissingError,
|
|
193
|
+
st as isPeginRegistrationNotFinalError,
|
|
194
|
+
tt as isPegoutTerminalStatus,
|
|
195
|
+
rt as isRecognizedPegoutStatus,
|
|
196
|
+
it as isRegisteredVaultVersionMismatchError,
|
|
197
197
|
w as isValidHex,
|
|
198
198
|
ys as isWotsMismatchError,
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
ot as matchKeyHint,
|
|
200
|
+
nt as matchKeySetHint,
|
|
201
201
|
ka as parseFundingOutpointsFromTx,
|
|
202
202
|
Ee as parseUnfundedWasmTransaction,
|
|
203
203
|
ge as peginOutputCount,
|
|
@@ -208,40 +208,41 @@ export {
|
|
|
208
208
|
Ae as rateBasedTxBufferFee,
|
|
209
209
|
Ns as rebuildDepositTermsCore,
|
|
210
210
|
Ds as reconstructPeginParams,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
pt as resolveCurrentParticipantKeys,
|
|
212
|
+
Pt as resolveParticipantKeysAtEpochs,
|
|
213
213
|
Qe as resolveProtocolAddresses,
|
|
214
|
-
|
|
214
|
+
ut as runDepositorPresignFlow,
|
|
215
215
|
Qa as selectUtxosForPegin,
|
|
216
216
|
$a as shouldAddChangeOutput,
|
|
217
217
|
ct as signDepositorGraph,
|
|
218
218
|
G as stripHexPrefix,
|
|
219
|
-
|
|
219
|
+
dt as submitWotsPublicKey,
|
|
220
220
|
E as supportedTxGraphVersions,
|
|
221
|
-
|
|
221
|
+
Ra as supportsDepositApproval,
|
|
222
|
+
Fs as toRefundInputs,
|
|
222
223
|
j as toXOnly,
|
|
223
224
|
J as uint8ArrayToHex,
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
lt as validateDepositAmount,
|
|
226
|
+
Et as validateMultiVaultDepositInputs,
|
|
226
227
|
Be as validateOffchainParams,
|
|
227
|
-
|
|
228
|
+
gt as validateOnChainParticipantKeys,
|
|
228
229
|
Ue as validatePegInConfiguration,
|
|
229
230
|
g as validatePeginP2aAnchor,
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
At as validateProviderSelection,
|
|
232
|
+
Tt as validateRemainingCapacity,
|
|
232
233
|
$e as validateRequestDepositorClaimerArtifactsResponse,
|
|
233
|
-
|
|
234
|
+
ma as validateSecretAgainstHashlock,
|
|
234
235
|
He as validateTBVProtocolParams,
|
|
235
236
|
fe as validateUtxosAvailable,
|
|
236
|
-
|
|
237
|
+
Rt as validateVaultAmounts,
|
|
237
238
|
mt as validateVaultProviderPubkey,
|
|
238
239
|
z as validateWalletPubkey,
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
St as verifyRegisteredParticipantKeys,
|
|
241
|
+
_t as verifyRegisteredVaultVersions,
|
|
241
242
|
as as verifyServerIdentity,
|
|
242
243
|
es as vpTokenRegistry,
|
|
243
|
-
|
|
244
|
-
|
|
244
|
+
ft as waitForPeginRegistrationDepth,
|
|
245
|
+
xt as waitForPeginStatus,
|
|
245
246
|
ae as waitForTransactionReceiptSmartAware
|
|
246
247
|
};
|
|
247
248
|
//# sourceMappingURL=index.js.map
|
package/dist/tbv/core/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../challengeAssert-BFRE2DM-.cjs"),m=require("../../constants-DU5CGcqO.cjs"),u=require("@babylonlabs-io/babylon-tbv-rust-wasm"),P=require("../../verifyScriptPathSchnorrSignature-DPAd_qke.cjs"),A=require("../../peginInput-Ci921gTl.cjs"),R=require("../../noPayout-CnQ1WLtr.cjs"),t=require("../../bitcoin-m84N5a8o.cjs"),l=require("../../validation-CDbOaDj7.cjs"),O=require("../../signing-Bnsro0hE.cjs"),c=require("../../PeginManager-p-ajwSxG.cjs"),p=require("../../signPsbtsWithFallback-PTgWxsG3.cjs"),_=require("../../ProtocolParams.abi-CYZoV2EI.cjs"),b=require("../../BTCVaultRegistry.abi-z7d_eP22.cjs"),C=require("../../BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs"),E=require("../../errors-CGcNP0rV.cjs"),d=require("../../parseFundingOutpoints-CIO9Ok1L.cjs"),s=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),a=require("../../fundPeginTransaction-BLD8FRL9.cjs"),g=require("../../reservation-CDbInVw0.cjs"),o=require("../../mempoolApi-CXfr-L6x.cjs"),r=require("../../batchPoll-6L5oToGr.cjs"),n=require("../../json-rpc-client-BiAmg_ho.cjs"),y=require("../../onChainBtcPubkey-C_a2L3kL.cjs"),i=require("../../reconstructPeginParams-BmUVK7F_.cjs"),e=require("../../buildAndBroadcastRefund-CYtnT0D_.cjs"),T=require("../../peginState-eaQ4IO_R.cjs");exports.buildChallengeAssertPsbt=S.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=S.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=m.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>u.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>u.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>u.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>u.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>u.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>u.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>u.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>u.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>u.validatePeginP2aAnchor});exports.PsbtSubstitutionError=P.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=P.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=P.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=P.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=P.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=P.buildPrePeginPsbt;exports.createPayoutScript=P.createPayoutScript;exports.extractPayoutSignature=P.extractPayoutSignature;exports.buildPeginInputPsbt=A.buildPeginInputPsbt;exports.extractPeginInputSignature=A.extractPeginInputSignature;exports.finalizePeginInputPsbt=A.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=R.buildNoPayoutPsbt;exports.buildRefundPsbt=R.buildRefundPsbt;exports.canonicalizeBtcPubkey=t.canonicalizeBtcPubkey;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.combineAbortSignals=l.combineAbortSignals;exports.createTaprootScriptPathSignOptions=O.createTaprootScriptPathSignOptions;exports.COMMISSION_BPS_HEADROOM=c.COMMISSION_BPS_HEADROOM;exports.MAX_ACCEPTABLE_COMMISSION_BPS_CAP=c.MAX_ACCEPTABLE_COMMISSION_BPS_CAP;exports.PeginManager=c.PeginManager;exports.buildDepositTerms=c.buildDepositTerms;exports.capMaxAcceptableCommissionBps=c.capMaxAcceptableCommissionBps;exports.computeWotsBlockPublicKeysHash=c.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=c.deriveWotsBlocksFromSeed;exports.ensurePrePeginTermsApproval=c.ensurePrePeginTermsApproval;exports.estimateSubmitPeginRequestBatchGas=c.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=p.PayoutManager;exports.computeHashlock=p.computeHashlock;exports.forwardDepositApproval=p.forwardDepositApproval;exports.supportsDepositApproval=p.supportsDepositApproval;exports.validateSecretAgainstHashlock=p.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=b.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=C.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=E.CONTRACT_ERRORS;exports.extractErrorData=E.extractErrorData;exports.getContractErrorMessage=E.getContractErrorMessage;exports.handleContractError=E.handleContractError;exports.isKnownContractError=E.isKnownContractError;exports.VAULT_APP_NAME=d.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=d.buildFundingOutpointsCommitment;exports.buildVaultContext=d.buildVaultContext;exports.deriveVaultRoot=d.deriveVaultRoot;exports.forwardDeriveContextHash=d.forwardDeriveContextHash;exports.parseFundingOutpointsFromTx=d.parseFundingOutpointsFromTx;exports.BitcoinScriptType=s.BitcoinScriptType;exports.applyChangeOutputPolicy=s.applyChangeOutputPolicy;exports.calculateBtcTxHash=s.calculateBtcTxHash;exports.computeChangeOutputFeeSats=s.computeChangeOutputFeeSats;exports.computeMaxDeposit=s.computeMaxDeposit;exports.computePeginBaseFeeSats=s.computePeginBaseFeeSats;exports.getDustThreshold=s.getDustThreshold;exports.getPsbtInputFields=s.getPsbtInputFields;exports.getScriptType=s.getScriptType;exports.selectUtxosForPegin=s.selectUtxosForPegin;exports.shouldAddChangeOutput=s.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=s.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=a.BTC_DUST_SAT;exports.DUST_THRESHOLD=a.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=a.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=a.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=a.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=a.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=a.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=a.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=a.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=a.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=a.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=a.fundPeginTransaction;exports.parseUnfundedWasmTransaction=a.parseUnfundedWasmTransaction;exports.peginOutputCount=a.peginOutputCount;exports.rateBasedTxBufferFee=a.rateBasedTxBufferFee;exports.UtxoNotAvailableError=g.UtxoNotAvailableError;exports.assertUtxosAvailable=g.assertUtxosAvailable;exports.extractInputsFromTransaction=g.extractInputsFromTransaction;exports.findOverlappingPendingVaults=g.findOverlappingPendingVaults;exports.validateUtxosAvailable=g.validateUtxosAvailable;exports.MEMPOOL_API_URLS=o.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=o.ViemVaultRegistryReader;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.validateOffchainParams=o.validateOffchainParams;exports.validatePegInConfiguration=o.validatePegInConfiguration;exports.validateTBVProtocolParams=o.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=r.OnChainBtcVaultStatus;exports.ServerIdentityError=r.ServerIdentityError;exports.VaultProviderRpcClient=r.VaultProviderRpcClient;exports.ViemOperationKeyReader=r.ViemOperationKeyReader;exports.ViemProtocolParamsReader=r.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=r.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=r.ViemVaultKeeperReader;exports.VpResponseValidationError=r.VpResponseValidationError;exports.VpTokenRegistry=r.VpTokenRegistry;exports.batchPollByProvider=r.batchPollByProvider;exports.createAuthenticatedVpClient=r.createAuthenticatedVpClient;exports.primeVpTokenRegistry=r.primeVpTokenRegistry;exports.resolveProtocolAddresses=r.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=r.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=r.verifyServerIdentity;exports.vpTokenRegistry=r.vpTokenRegistry;exports.AUTH_REJECTED_RPC_CODE=n.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=n.DaemonStatus;exports.JSON_RPC_ERROR_CODES=n.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=n.JsonRpcClient;exports.JsonRpcError=n.JsonRpcError;exports.POST_WOTS_STATUSES=n.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=n.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=n.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=n.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=n.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=n.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=n.isAuthRejectedError;exports.assertOnChainBtcPubkey=y.assertOnChainBtcPubkey;exports.DEPOSIT_TERMS_REJECTED_ERROR_NAME=i.DEPOSIT_TERMS_REJECTED_ERROR_NAME;exports.DepositTermsRejectedError=i.DepositTermsRejectedError;exports.PeginParamsAmbiguousError=i.PeginParamsAmbiguousError;exports.PeginParamsIncompleteSpaceError=i.PeginParamsIncompleteSpaceError;exports.PeginParamsNotFoundError=i.PeginParamsNotFoundError;exports.PeginSizingIntegrityError=i.PeginSizingIntegrityError;exports.UnanchoredPrePeginError=i.UnanchoredPrePeginError;exports.VaultRootMismatchError=i.VaultRootMismatchError;exports.buildPeginParamsCandidates=i.buildPeginParamsCandidates;exports.deriveHashlocksFromPrePegin=i.deriveHashlocksFromPrePegin;exports.describePeginParamsCandidate=i.describePeginParamsCandidate;exports.describeUnresolvedVersion=i.describeUnresolvedVersion;exports.isDepositTermsRejectedError=i.isDepositTermsRejectedError;exports.isWotsMismatchError=i.isWotsMismatchError;exports.rebuildDepositTermsCore=i.rebuildDepositTermsCore;exports.reconstructPeginParams=i.reconstructPeginParams;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.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.activateVaultAndRedeem=e.activateVaultAndRedeem;exports.assertVaultProviderHintAccepted=e.assertVaultProviderHintAccepted;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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../../challengeAssert-BFRE2DM-.cjs"),m=require("../../constants-DU5CGcqO.cjs"),u=require("@babylonlabs-io/babylon-tbv-rust-wasm"),P=require("../../verifyScriptPathSchnorrSignature-DPAd_qke.cjs"),A=require("../../peginInput-Ci921gTl.cjs"),S=require("../../noPayout-CnQ1WLtr.cjs"),r=require("../../bitcoin-m84N5a8o.cjs"),l=require("../../validation-CDbOaDj7.cjs"),O=require("../../signing-Bnsro0hE.cjs"),c=require("../../PeginManager-p-ajwSxG.cjs"),p=require("../../signPsbtsWithFallback-PTgWxsG3.cjs"),_=require("../../ProtocolParams.abi-CYZoV2EI.cjs"),b=require("../../BTCVaultRegistry.abi-z7d_eP22.cjs"),C=require("../../BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs"),E=require("../../errors-CGcNP0rV.cjs"),d=require("../../parseFundingOutpoints-CIO9Ok1L.cjs"),s=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),a=require("../../fundPeginTransaction-BLD8FRL9.cjs"),g=require("../../reservation-CDbInVw0.cjs"),o=require("../../mempoolApi-CXfr-L6x.cjs"),i=require("../../batchPoll-6L5oToGr.cjs"),n=require("../../json-rpc-client-BiAmg_ho.cjs"),y=require("../../onChainBtcPubkey-C_a2L3kL.cjs"),t=require("../../toRefundInputs-DYL9C-aG.cjs"),e=require("../../buildAndBroadcastRefund-Daw5ZUKR.cjs"),T=require("../../peginState-eaQ4IO_R.cjs");exports.buildChallengeAssertPsbt=R.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=R.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=m.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>u.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>u.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>u.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>u.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>u.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>u.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>u.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>u.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>u.validatePeginP2aAnchor});exports.PsbtSubstitutionError=P.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=P.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=P.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=P.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=P.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=P.buildPrePeginPsbt;exports.createPayoutScript=P.createPayoutScript;exports.extractPayoutSignature=P.extractPayoutSignature;exports.buildPeginInputPsbt=A.buildPeginInputPsbt;exports.extractPeginInputSignature=A.extractPeginInputSignature;exports.finalizePeginInputPsbt=A.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=S.buildNoPayoutPsbt;exports.buildRefundPsbt=S.buildRefundPsbt;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.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.combineAbortSignals=l.combineAbortSignals;exports.createTaprootScriptPathSignOptions=O.createTaprootScriptPathSignOptions;exports.COMMISSION_BPS_HEADROOM=c.COMMISSION_BPS_HEADROOM;exports.MAX_ACCEPTABLE_COMMISSION_BPS_CAP=c.MAX_ACCEPTABLE_COMMISSION_BPS_CAP;exports.PeginManager=c.PeginManager;exports.buildDepositTerms=c.buildDepositTerms;exports.capMaxAcceptableCommissionBps=c.capMaxAcceptableCommissionBps;exports.computeWotsBlockPublicKeysHash=c.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=c.deriveWotsBlocksFromSeed;exports.ensurePrePeginTermsApproval=c.ensurePrePeginTermsApproval;exports.estimateSubmitPeginRequestBatchGas=c.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=p.PayoutManager;exports.computeHashlock=p.computeHashlock;exports.forwardDepositApproval=p.forwardDepositApproval;exports.supportsDepositApproval=p.supportsDepositApproval;exports.validateSecretAgainstHashlock=p.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=b.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=C.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=E.CONTRACT_ERRORS;exports.extractErrorData=E.extractErrorData;exports.getContractErrorMessage=E.getContractErrorMessage;exports.handleContractError=E.handleContractError;exports.isKnownContractError=E.isKnownContractError;exports.VAULT_APP_NAME=d.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=d.buildFundingOutpointsCommitment;exports.buildVaultContext=d.buildVaultContext;exports.deriveVaultRoot=d.deriveVaultRoot;exports.forwardDeriveContextHash=d.forwardDeriveContextHash;exports.parseFundingOutpointsFromTx=d.parseFundingOutpointsFromTx;exports.BitcoinScriptType=s.BitcoinScriptType;exports.applyChangeOutputPolicy=s.applyChangeOutputPolicy;exports.calculateBtcTxHash=s.calculateBtcTxHash;exports.computeChangeOutputFeeSats=s.computeChangeOutputFeeSats;exports.computeMaxDeposit=s.computeMaxDeposit;exports.computePeginBaseFeeSats=s.computePeginBaseFeeSats;exports.getDustThreshold=s.getDustThreshold;exports.getPsbtInputFields=s.getPsbtInputFields;exports.getScriptType=s.getScriptType;exports.selectUtxosForPegin=s.selectUtxosForPegin;exports.shouldAddChangeOutput=s.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=s.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=a.BTC_DUST_SAT;exports.DUST_THRESHOLD=a.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=a.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=a.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=a.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=a.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=a.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=a.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=a.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=a.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=a.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=a.fundPeginTransaction;exports.parseUnfundedWasmTransaction=a.parseUnfundedWasmTransaction;exports.peginOutputCount=a.peginOutputCount;exports.rateBasedTxBufferFee=a.rateBasedTxBufferFee;exports.UtxoNotAvailableError=g.UtxoNotAvailableError;exports.assertUtxosAvailable=g.assertUtxosAvailable;exports.extractInputsFromTransaction=g.extractInputsFromTransaction;exports.findOverlappingPendingVaults=g.findOverlappingPendingVaults;exports.validateUtxosAvailable=g.validateUtxosAvailable;exports.MEMPOOL_API_URLS=o.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=o.ViemVaultRegistryReader;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.validateOffchainParams=o.validateOffchainParams;exports.validatePegInConfiguration=o.validatePegInConfiguration;exports.validateTBVProtocolParams=o.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=i.OnChainBtcVaultStatus;exports.ServerIdentityError=i.ServerIdentityError;exports.VaultProviderRpcClient=i.VaultProviderRpcClient;exports.ViemOperationKeyReader=i.ViemOperationKeyReader;exports.ViemProtocolParamsReader=i.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=i.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=i.ViemVaultKeeperReader;exports.VpResponseValidationError=i.VpResponseValidationError;exports.VpTokenRegistry=i.VpTokenRegistry;exports.batchPollByProvider=i.batchPollByProvider;exports.createAuthenticatedVpClient=i.createAuthenticatedVpClient;exports.primeVpTokenRegistry=i.primeVpTokenRegistry;exports.resolveProtocolAddresses=i.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=i.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=i.verifyServerIdentity;exports.vpTokenRegistry=i.vpTokenRegistry;exports.AUTH_REJECTED_RPC_CODE=n.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=n.DaemonStatus;exports.JSON_RPC_ERROR_CODES=n.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=n.JsonRpcClient;exports.JsonRpcError=n.JsonRpcError;exports.POST_WOTS_STATUSES=n.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=n.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=n.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=n.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=n.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=n.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=n.isAuthRejectedError;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.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.activateVaultAndRedeem=e.activateVaultAndRedeem;exports.assertVaultProviderHintAccepted=e.assertVaultProviderHintAccepted;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
|