@babylonlabs-io/ts-sdk 0.55.0 → 0.55.2
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/{PeginManager-D22MLWfM.js → PeginManager-CW03-M3T.js} +489 -555
- package/dist/PeginManager-CW03-M3T.js.map +1 -0
- package/dist/PeginManager-C_akOB1E.cjs +2 -0
- package/dist/PeginManager-C_akOB1E.cjs.map +1 -0
- package/dist/deriveVaultRoot-B_gEOTD6.js +72 -0
- package/dist/deriveVaultRoot-B_gEOTD6.js.map +1 -0
- package/dist/deriveVaultRoot-CebLadyJ.cjs +2 -0
- package/dist/deriveVaultRoot-CebLadyJ.cjs.map +1 -0
- package/dist/errors-B-H0seUG.js +8 -0
- package/dist/errors-B-H0seUG.js.map +1 -0
- package/dist/errors-Bfjxg_iJ.cjs +2 -0
- package/dist/errors-Bfjxg_iJ.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +145 -143
- package/dist/index.js.map +1 -1
- package/dist/parseFundingOutpoints-C_-PT9BT.cjs +2 -0
- package/dist/parseFundingOutpoints-C_-PT9BT.cjs.map +1 -0
- package/dist/parseFundingOutpoints-GSM-IaaK.js +17 -0
- package/dist/parseFundingOutpoints-GSM-IaaK.js.map +1 -0
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +143 -141
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +1 -1
- package/dist/tbv/core/vault-secrets/index.cjs +2 -0
- package/dist/tbv/core/vault-secrets/index.cjs.map +1 -0
- package/dist/tbv/core/vault-secrets/index.js +14 -0
- package/dist/tbv/core/vault-secrets/index.js.map +1 -0
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +143 -141
- package/dist/tbv/index.js.map +1 -1
- package/dist/tbv/integrations/aave/clients/abis/AaveAdapterPositionProxy.abi.json.d.ts +16 -0
- package/dist/tbv/integrations/aave/clients/abis/AaveIntegrationAdapter.abi.json.d.ts +2 -2
- package/dist/tbv/integrations/aave/clients/index.d.ts +1 -0
- package/dist/tbv/integrations/aave/clients/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/clients/positionProxy.d.ts +8 -0
- package/dist/tbv/integrations/aave/clients/positionProxy.d.ts.map +1 -0
- package/dist/tbv/integrations/aave/clients/spoke.d.ts +11 -10
- package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/clients/transaction.d.ts +6 -1
- package/dist/tbv/integrations/aave/clients/transaction.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/constants.d.ts +6 -14
- package/dist/tbv/integrations/aave/constants.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/index.cjs +1 -1
- package/dist/tbv/integrations/aave/index.cjs.map +1 -1
- package/dist/tbv/integrations/aave/index.d.ts +2 -2
- package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/index.js +119 -85
- package/dist/tbv/integrations/aave/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/PeginManager-D22MLWfM.js.map +0 -1
- package/dist/PeginManager-vUUfZCzj.cjs +0 -2
- package/dist/PeginManager-vUUfZCzj.cjs.map +0 -1
- package/dist/errors-9AkghWyk.js +0 -22
- package/dist/errors-9AkghWyk.js.map +0 -1
- package/dist/errors-Bu0H-dZD.cjs +0 -2
- package/dist/errors-Bu0H-dZD.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,200 +1,202 @@
|
|
|
1
1
|
import { a as s, b as t, c as r } from "./challengeAssert-DvdbpEDY.js";
|
|
2
2
|
import { a as i } from "./constants-BhclpREj.js";
|
|
3
|
-
import { computeMinClaimValue as u, computeMinPeginFee as
|
|
3
|
+
import { computeMinClaimValue as u, computeMinPeginFee as p, deriveVaultId as l, expandAuthAnchor as d, expandHashlockSecret as P, expandWotsSeed as c, peginP2aAnchorOutput as T, supportedTxGraphVersions as E, validatePeginP2aAnchor as A } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
4
|
import { P as g, d as _, f as R, c as m, b as x, a as f, g as b, e as V } from "./verifyScriptPathSchnorrSignature-DA4Z4yZ3.js";
|
|
5
5
|
import { b as I, e as h, f as v } from "./peginInput-BKD_b3gq.js";
|
|
6
6
|
import { a as F, b as U } from "./noPayout-CfBg3HzC.js";
|
|
7
7
|
import { d as y, a as B, b as D, e as M, f as H, j as L, g as X, h as k, i as W, c as w, p as K, s as G, t as Y, u as Z, v as J } from "./bitcoin-B5aNKtsk.js";
|
|
8
8
|
import { c as q } from "./signing-DaLvGwQe.js";
|
|
9
9
|
import { B as Q, H as $, K as aa, M as ea, T as sa } from "./validation-CxqROCno.js";
|
|
10
|
-
import { P as ra,
|
|
11
|
-
import { P as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import { C as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { i as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
10
|
+
import { P as ra, c as oa, d as ia, e as na } from "./PeginManager-CW03-M3T.js";
|
|
11
|
+
import { P as pa, c as la, v as da } from "./PayoutManager-BJmPnyRP.js";
|
|
12
|
+
import { A as ca, P as Ta } from "./ApplicationRegistry.abi-w5prf7Ig.js";
|
|
13
|
+
import { B as Aa } from "./BTCVaultRegistry.abi-Chs4AFBj.js";
|
|
14
|
+
import { C as ga, e as _a, g as Ra, h as ma, i as xa } from "./errors-Blc-JWnI.js";
|
|
15
|
+
import { V as ba, b as Va, a as Oa, d as Ia } from "./deriveVaultRoot-B_gEOTD6.js";
|
|
16
|
+
import { p as va } from "./parseFundingOutpoints-GSM-IaaK.js";
|
|
17
|
+
import { BitcoinNetworks as Fa } from "./shared/index.js";
|
|
18
|
+
import { B as Na, a as ya, f as Ba, c as Da, b as Ma, d as Ha, g as La, i as Xa, h as ka, s as Wa, e as wa, w as Ka } from "./waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
19
|
+
import { B as Ya, D as Za, L as Ja, M as ja, c as qa, P as za, b as Qa, a as $a, S as ae, T as ee, W as se, f as te, d as re, p as oe, r as ie } from "./fundPeginTransaction-B2wyjqp0.js";
|
|
20
|
+
import { U as ue, a as pe, e as le, f as de, v as Pe } from "./reservation-cHDRn4DA.js";
|
|
21
|
+
import { M as Te, V as Ee, g as Ae, a as Se, b as ge, c as _e, d as Re, e as me, f as xe, h as fe, i as be, p as Ve, v as Oe, j as Ie, k as he } from "./mempoolApi-CB7bHuwi.js";
|
|
22
|
+
import { O as Ce, S as Fe, V as Ue, g as Ne, h as ye, i as Be, a as De, d as Me, b as He, f as Le, p as Xe, r as ke, v as We, c as we, e as Ke } from "./primeVpAuth-l-5x_2UV.js";
|
|
23
|
+
import { A as Ye, D as Ze, b as Je, J as je, a as qe, d as ze, P as Qe, R as $e, e as as, c as es, V as ss } from "./types-CQDRQvV-.js";
|
|
24
|
+
import { i as rs } from "./errors-B-H0seUG.js";
|
|
25
|
+
import { B as is, C as ns, p as us, q as ps, t as ls, u as ds, R as Ps, a as cs, n as Ts, o as Es, i as As, m as Ss, l as gs, j as _s, r as Rs, b as ms, s as xs, v as fs, g as bs, h as Vs, d as Os, c as Is, e as hs, f as vs, k as Cs, w as Fs } from "./buildAndBroadcastRefund-BiSO4zg2.js";
|
|
26
|
+
import { C as Ns, P as ys, c as Bs, g as Ds, i as Ms } from "./peginState-BB81JI6I.js";
|
|
25
27
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
Ye as AUTH_EXPIRED_DATA_KIND,
|
|
29
|
+
ca as ApplicationRegistryABI,
|
|
30
|
+
is as BIP68NotMatureError,
|
|
29
31
|
Q as BITCOIN_ADDRESS_RE,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
Aa as BTCVaultRegistryABI,
|
|
33
|
+
Ya as BTC_DUST_SAT,
|
|
34
|
+
Fa as BitcoinNetworks,
|
|
35
|
+
Na as BitcoinScriptType,
|
|
36
|
+
ga as CONTRACT_ERRORS,
|
|
37
|
+
ns as ClaimerPegoutStatusValue,
|
|
38
|
+
Ns as ContractStatus,
|
|
39
|
+
Za as DUST_THRESHOLD,
|
|
40
|
+
Ze as DaemonStatus,
|
|
39
41
|
$ as HEX_RE,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
Je as JSON_RPC_ERROR_CODES,
|
|
43
|
+
je as JsonRpcClient,
|
|
44
|
+
qe as JsonRpcError,
|
|
43
45
|
aa as KNOWN_SCRIPT_PREFIXES,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
Ja as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
47
|
+
ja as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
46
48
|
ea as MAX_REASONABLE_FEE_SATS,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
qa as MAX_REASONABLE_PEGIN_VBYTES,
|
|
50
|
+
Te as MEMPOOL_API_URLS,
|
|
51
|
+
Ce as OnChainBtcVaultStatus,
|
|
52
|
+
za as P2TR_INPUT_SIZE,
|
|
53
|
+
Qa as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
54
|
+
$a as PEGIN_FIXED_OUTPUTS,
|
|
55
|
+
ze as POST_WOTS_STATUSES,
|
|
56
|
+
Qe as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
57
|
+
pa as PayoutManager,
|
|
58
|
+
ys as PeginAction,
|
|
57
59
|
ra as PeginManager,
|
|
58
|
-
|
|
60
|
+
Ta as ProtocolParamsABI,
|
|
59
61
|
g as PsbtSubstitutionError,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
us as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
63
|
+
ps as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
64
|
+
ls as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
65
|
+
ds as REFUND_VSIZE,
|
|
66
|
+
Ps as RegisteredVaultVersionMismatchError,
|
|
67
|
+
$e as RpcErrorCode,
|
|
68
|
+
ae as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
69
|
+
Fe as ServerIdentityError,
|
|
68
70
|
sa as TXID_RE,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
ee as TX_BUFFER_SIZE_OVERHEAD,
|
|
72
|
+
ue as UtxoNotAvailableError,
|
|
73
|
+
ba as VAULT_APP_NAME,
|
|
74
|
+
as as VP_BATCH_MAX_SIZE,
|
|
75
|
+
es as VP_TERMINAL_FAILURE_STATUSES,
|
|
76
|
+
ss as VP_TRANSIENT_STATUSES,
|
|
77
|
+
Ue as VaultProviderRpcClient,
|
|
78
|
+
Ne as ViemProtocolParamsReader,
|
|
79
|
+
ye as ViemUniversalChallengerReader,
|
|
80
|
+
Be as ViemVaultKeeperReader,
|
|
81
|
+
Ee as ViemVaultRegistryReader,
|
|
82
|
+
De as VpResponseValidationError,
|
|
83
|
+
Me as VpTokenRegistry,
|
|
84
|
+
se as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
85
|
+
cs as activateVault,
|
|
86
|
+
ya as applyChangeOutputPolicy,
|
|
85
87
|
_ as assertPsbtUnsignedTxMatches,
|
|
86
88
|
R as assertScriptPathSchnorrSignature,
|
|
87
|
-
|
|
89
|
+
pe as assertUtxosAvailable,
|
|
88
90
|
i as assertValidVaultCoreVersion,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
He as batchPollByProvider,
|
|
92
|
+
Ts as buildAndBroadcastRefund,
|
|
91
93
|
s as buildChallengeAssertPsbt,
|
|
92
94
|
t as buildDepositorPayoutPsbt,
|
|
93
|
-
|
|
95
|
+
Va as buildFundingOutpointsCommitment,
|
|
94
96
|
F as buildNoPayoutPsbt,
|
|
95
97
|
m as buildPayoutPsbt,
|
|
96
98
|
I as buildPeginInputPsbt,
|
|
97
99
|
x as buildPeginTxFromFundedPrePegin,
|
|
98
100
|
f as buildPrePeginPsbt,
|
|
99
101
|
U as buildRefundPsbt,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
Oa as buildVaultContext,
|
|
103
|
+
Ba as calculateBtcTxHash,
|
|
104
|
+
Bs as canPerformAction,
|
|
105
|
+
Da as computeChangeOutputFeeSats,
|
|
106
|
+
la as computeHashlock,
|
|
107
|
+
Ma as computeMaxDeposit,
|
|
106
108
|
u as computeMinClaimValue,
|
|
107
|
-
|
|
109
|
+
p as computeMinPeginFee,
|
|
108
110
|
r as computeNumLocalChallengers,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
Ha as computePeginBaseFeeSats,
|
|
112
|
+
oa as computeWotsBlockPublicKeysHash,
|
|
113
|
+
Le as createAuthenticatedVpClient,
|
|
112
114
|
b as createPayoutScript,
|
|
113
115
|
q as createTaprootScriptPathSignOptions,
|
|
114
116
|
y as deriveBip86ScriptPubKeyHex,
|
|
115
117
|
B as deriveNativeSegwitAddress,
|
|
116
118
|
D as deriveTaprootAddress,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
l as deriveVaultId,
|
|
120
|
+
Ia as deriveVaultRoot,
|
|
121
|
+
ia as deriveWotsBlocksFromSeed,
|
|
120
122
|
M as ensureHexPrefix,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
Es as estimateRefundFeeSats,
|
|
124
|
+
na as estimateSubmitPeginRequestBatchGas,
|
|
123
125
|
d as expandAuthAnchor,
|
|
124
126
|
P as expandHashlockSecret,
|
|
125
127
|
c as expandWotsSeed,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
_a as extractErrorData,
|
|
129
|
+
le as extractInputsFromTransaction,
|
|
128
130
|
V as extractPayoutSignature,
|
|
129
131
|
h as extractPeginInputSignature,
|
|
130
132
|
v as finalizePeginInputPsbt,
|
|
131
|
-
|
|
133
|
+
de as findOverlappingPendingVaults,
|
|
132
134
|
H as formatSatoshisToBtc,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
te as fundPeginTransaction,
|
|
136
|
+
Ae as getAddressTxs,
|
|
137
|
+
Se as getAddressUtxos,
|
|
138
|
+
Ra as getContractErrorMessage,
|
|
139
|
+
La as getDustThreshold,
|
|
140
|
+
ge as getMempoolApiUrl,
|
|
139
141
|
L as getNetwork,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
_e as getNetworkFees,
|
|
143
|
+
Re as getOutspend,
|
|
144
|
+
Ds as getPeginProtocolState,
|
|
145
|
+
Xa as getPsbtInputFields,
|
|
146
|
+
ka as getScriptType,
|
|
145
147
|
X as getSortedXOnlyPubkeys,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
me as getTipHeight,
|
|
149
|
+
xe as getTxHex,
|
|
150
|
+
fe as getTxInfo,
|
|
151
|
+
be as getUtxoInfo,
|
|
152
|
+
ma as handleContractError,
|
|
151
153
|
k as hexToUint8Array,
|
|
152
|
-
|
|
154
|
+
Ms as isActivationDeadlinePassedOnChain,
|
|
153
155
|
W as isAddressFromPublicKey,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
As as isDepositAmountValid,
|
|
157
|
+
xa as isKnownContractError,
|
|
158
|
+
Ss as isPegoutTerminalStatus,
|
|
159
|
+
gs as isRecognizedPegoutStatus,
|
|
160
|
+
_s as isRegisteredVaultVersionMismatchError,
|
|
159
161
|
w as isValidHex,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
rs as isWotsMismatchError,
|
|
163
|
+
va as parseFundingOutpointsFromTx,
|
|
164
|
+
re as parseUnfundedWasmTransaction,
|
|
165
|
+
oe as peginOutputCount,
|
|
164
166
|
T as peginP2aAnchorOutput,
|
|
165
|
-
|
|
167
|
+
Xe as primeVpTokenRegistry,
|
|
166
168
|
K as processPublicKeyToXOnly,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
Ve as pushTx,
|
|
170
|
+
ie as rateBasedTxBufferFee,
|
|
171
|
+
ke as resolveProtocolAddresses,
|
|
172
|
+
Rs as runDepositorPresignFlow,
|
|
173
|
+
Wa as selectUtxosForPegin,
|
|
174
|
+
wa as shouldAddChangeOutput,
|
|
175
|
+
ms as signDepositorGraph,
|
|
174
176
|
G as stripHexPrefix,
|
|
175
|
-
|
|
177
|
+
xs as submitWotsPublicKey,
|
|
176
178
|
E as supportedTxGraphVersions,
|
|
177
179
|
Y as toXOnly,
|
|
178
180
|
Z as uint8ArrayToHex,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
fs as validateDepositAmount,
|
|
182
|
+
bs as validateMultiVaultDepositInputs,
|
|
183
|
+
Oe as validateOffchainParams,
|
|
184
|
+
Vs as validateOnChainParticipantKeys,
|
|
185
|
+
Ie as validatePegInConfiguration,
|
|
184
186
|
A as validatePeginP2aAnchor,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
187
|
+
Os as validateProviderSelection,
|
|
188
|
+
Is as validateRemainingCapacity,
|
|
189
|
+
We as validateRequestDepositorClaimerArtifactsResponse,
|
|
190
|
+
da as validateSecretAgainstHashlock,
|
|
191
|
+
he as validateTBVProtocolParams,
|
|
192
|
+
Pe as validateUtxosAvailable,
|
|
193
|
+
hs as validateVaultAmounts,
|
|
194
|
+
vs as validateVaultProviderPubkey,
|
|
193
195
|
J as validateWalletPubkey,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
Cs as verifyRegisteredVaultVersions,
|
|
197
|
+
we as verifyServerIdentity,
|
|
198
|
+
Ke as vpTokenRegistry,
|
|
199
|
+
Fs as waitForPeginStatus,
|
|
200
|
+
Ka as waitForTransactionReceiptSmartAware
|
|
199
201
|
};
|
|
200
202
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("bitcoinjs-lib"),e=require("buffer");function s(r){if(!r)throw new Error("Pre-pegin transaction hex is empty");const i=r.startsWith("0x")?r.slice(2):r,t=o.Transaction.fromHex(i);if(t.ins.length===0)throw new Error("Pre-pegin transaction has no inputs");return t.ins.map(n=>({txid:Uint8Array.from(e.Buffer.from(n.hash).reverse()),vout:n.index}))}exports.parseFundingOutpointsFromTx=s;
|
|
2
|
+
//# sourceMappingURL=parseFundingOutpoints-C_-PT9BT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseFundingOutpoints-C_-PT9BT.cjs","sources":["../src/tbv/core/vault-secrets/parseFundingOutpoints.ts"],"sourcesContent":["/**\n * Parse a Pre-PegIn transaction's inputs into the vault-context\n * `fundingOutpoints` shape consumed by `deriveVaultRoot`. Reverses\n * the prev-txid bytes from wire-internal little-endian to display\n * order so the derivation is byte-for-byte identical to the\n * deposit-time computation.\n *\n * @module vault-secrets/parseFundingOutpoints\n */\n\nimport { Transaction } from \"bitcoinjs-lib\";\nimport { Buffer } from \"buffer\";\n\nimport type { FundingOutpoint } from \"./context\";\n\nexport function parseFundingOutpointsFromTx(\n unsignedTxHex: string,\n): FundingOutpoint[] {\n if (!unsignedTxHex) {\n throw new Error(\"Pre-pegin transaction hex is empty\");\n }\n const cleanHex = unsignedTxHex.startsWith(\"0x\")\n ? unsignedTxHex.slice(2)\n : unsignedTxHex;\n const tx = Transaction.fromHex(cleanHex);\n if (tx.ins.length === 0) {\n throw new Error(\"Pre-pegin transaction has no inputs\");\n }\n return tx.ins.map((input) => ({\n txid: Uint8Array.from(Buffer.from(input.hash).reverse()),\n vout: input.index,\n }));\n}\n"],"names":["parseFundingOutpointsFromTx","unsignedTxHex","cleanHex","tx","Transaction","input","Buffer"],"mappings":"kEAeO,SAASA,EACdC,EACmB,CACnB,GAAI,CAACA,EACH,MAAM,IAAI,MAAM,oCAAoC,EAEtD,MAAMC,EAAWD,EAAc,WAAW,IAAI,EAC1CA,EAAc,MAAM,CAAC,EACrBA,EACEE,EAAKC,EAAAA,YAAY,QAAQF,CAAQ,EACvC,GAAIC,EAAG,IAAI,SAAW,EACpB,MAAM,IAAI,MAAM,qCAAqC,EAEvD,OAAOA,EAAG,IAAI,IAAKE,IAAW,CAC5B,KAAM,WAAW,KAAKC,EAAAA,OAAO,KAAKD,EAAM,IAAI,EAAE,SAAS,EACvD,KAAMA,EAAM,KAAA,EACZ,CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Transaction as i } from "bitcoinjs-lib";
|
|
2
|
+
import { Buffer as e } from "buffer";
|
|
3
|
+
function f(r) {
|
|
4
|
+
if (!r)
|
|
5
|
+
throw new Error("Pre-pegin transaction hex is empty");
|
|
6
|
+
const n = r.startsWith("0x") ? r.slice(2) : r, t = i.fromHex(n);
|
|
7
|
+
if (t.ins.length === 0)
|
|
8
|
+
throw new Error("Pre-pegin transaction has no inputs");
|
|
9
|
+
return t.ins.map((o) => ({
|
|
10
|
+
txid: Uint8Array.from(e.from(o.hash).reverse()),
|
|
11
|
+
vout: o.index
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
f as p
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=parseFundingOutpoints-GSM-IaaK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseFundingOutpoints-GSM-IaaK.js","sources":["../src/tbv/core/vault-secrets/parseFundingOutpoints.ts"],"sourcesContent":["/**\n * Parse a Pre-PegIn transaction's inputs into the vault-context\n * `fundingOutpoints` shape consumed by `deriveVaultRoot`. Reverses\n * the prev-txid bytes from wire-internal little-endian to display\n * order so the derivation is byte-for-byte identical to the\n * deposit-time computation.\n *\n * @module vault-secrets/parseFundingOutpoints\n */\n\nimport { Transaction } from \"bitcoinjs-lib\";\nimport { Buffer } from \"buffer\";\n\nimport type { FundingOutpoint } from \"./context\";\n\nexport function parseFundingOutpointsFromTx(\n unsignedTxHex: string,\n): FundingOutpoint[] {\n if (!unsignedTxHex) {\n throw new Error(\"Pre-pegin transaction hex is empty\");\n }\n const cleanHex = unsignedTxHex.startsWith(\"0x\")\n ? unsignedTxHex.slice(2)\n : unsignedTxHex;\n const tx = Transaction.fromHex(cleanHex);\n if (tx.ins.length === 0) {\n throw new Error(\"Pre-pegin transaction has no inputs\");\n }\n return tx.ins.map((input) => ({\n txid: Uint8Array.from(Buffer.from(input.hash).reverse()),\n vout: input.index,\n }));\n}\n"],"names":["parseFundingOutpointsFromTx","unsignedTxHex","cleanHex","tx","Transaction","input","Buffer"],"mappings":";;AAeO,SAASA,EACdC,GACmB;AACnB,MAAI,CAACA;AACH,UAAM,IAAI,MAAM,oCAAoC;AAEtD,QAAMC,IAAWD,EAAc,WAAW,IAAI,IAC1CA,EAAc,MAAM,CAAC,IACrBA,GACEE,IAAKC,EAAY,QAAQF,CAAQ;AACvC,MAAIC,EAAG,IAAI,WAAW;AACpB,UAAM,IAAI,MAAM,qCAAqC;AAEvD,SAAOA,EAAG,IAAI,IAAI,CAACE,OAAW;AAAA,IAC5B,MAAM,WAAW,KAAKC,EAAO,KAAKD,EAAM,IAAI,EAAE,SAAS;AAAA,IACvD,MAAMA,EAAM;AAAA,EAAA,EACZ;AACJ;"}
|
package/dist/tbv/core/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../challengeAssert-DLQfNcfU.cjs"),R=require("../../constants-CvbARMl-.cjs"),n=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../verifyScriptPathSchnorrSignature-BDznSCOR.cjs"),S=require("../../peginInput-CAiiDZeO.cjs"),E=require("../../noPayout-CNMqNNpc.cjs"),t=require("../../bitcoin-CHfKAhcI.cjs"),m=require("../../signing-Bnsro0hE.cjs"),c=require("../../validation-u8W7Lp2x.cjs"),l=require("../../PeginManager-vUUfZCzj.cjs"),A=require("../../PayoutManager-aqtsj60t.cjs"),g=require("../../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../../BTCVaultRegistry.abi-JdeqLz4x.cjs"),d=require("../../errors-CGcNP0rV.cjs"),o=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../../fundPeginTransaction-BLD8FRL9.cjs"),P=require("../../reservation-ClEs2X0H.cjs"),i=require("../../mempoolApi-DqJByvqR.cjs"),a=require("../../primeVpAuth-CF4cH5_e.cjs"),s=require("../../types-WA0LrDk1.cjs"),_=require("../../errors-Bu0H-dZD.cjs"),e=require("../../buildAndBroadcastRefund-Bwi1I5we.cjs"),p=require("../../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=T.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=T.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=T.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>n.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>n.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>n.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>n.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>n.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>n.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>n.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>n.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>n.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=S.buildPeginInputPsbt;exports.extractPeginInputSignature=S.extractPeginInputSignature;exports.finalizePeginInputPsbt=S.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=c.BITCOIN_ADDRESS_RE;exports.HEX_RE=c.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=c.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=c.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=c.TXID_RE;exports.PeginManager=l.PeginManager;exports.VAULT_APP_NAME=l.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=l.buildFundingOutpointsCommitment;exports.buildVaultContext=l.buildVaultContext;exports.computeWotsBlockPublicKeysHash=l.computeWotsBlockPublicKeysHash;exports.deriveVaultRoot=l.deriveVaultRoot;exports.deriveWotsBlocksFromSeed=l.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=l.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=A.PayoutManager;exports.computeHashlock=A.computeHashlock;exports.validateSecretAgainstHashlock=A.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=g.ApplicationRegistryABI;exports.ProtocolParamsABI=g.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=d.CONTRACT_ERRORS;exports.extractErrorData=d.extractErrorData;exports.getContractErrorMessage=d.getContractErrorMessage;exports.handleContractError=d.handleContractError;exports.isKnownContractError=d.isKnownContractError;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=P.UtxoNotAvailableError;exports.assertUtxosAvailable=P.assertUtxosAvailable;exports.extractInputsFromTransaction=P.extractInputsFromTransaction;exports.findOverlappingPendingVaults=P.findOverlappingPendingVaults;exports.validateUtxosAvailable=P.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=s.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=s.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=s.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;exports.isWotsMismatchError=_.isWotsMismatchError;exports.parseFundingOutpointsFromTx=_.parseFundingOutpointsFromTx;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=p.ContractStatus;exports.PeginAction=p.PeginAction;exports.canPerformAction=p.canPerformAction;exports.getPeginProtocolState=p.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=p.isActivationDeadlinePassedOnChain;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../challengeAssert-DLQfNcfU.cjs"),R=require("../../constants-CvbARMl-.cjs"),s=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../verifyScriptPathSchnorrSignature-BDznSCOR.cjs"),g=require("../../peginInput-CAiiDZeO.cjs"),E=require("../../noPayout-CNMqNNpc.cjs"),t=require("../../bitcoin-CHfKAhcI.cjs"),m=require("../../signing-Bnsro0hE.cjs"),l=require("../../validation-u8W7Lp2x.cjs"),p=require("../../PeginManager-C_akOB1E.cjs"),A=require("../../PayoutManager-aqtsj60t.cjs"),_=require("../../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../../BTCVaultRegistry.abi-JdeqLz4x.cjs"),c=require("../../errors-CGcNP0rV.cjs"),T=require("../../deriveVaultRoot-CebLadyJ.cjs"),b=require("../../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../../fundPeginTransaction-BLD8FRL9.cjs"),d=require("../../reservation-ClEs2X0H.cjs"),i=require("../../mempoolApi-DqJByvqR.cjs"),a=require("../../primeVpAuth-CF4cH5_e.cjs"),n=require("../../types-WA0LrDk1.cjs"),I=require("../../errors-Bfjxg_iJ.cjs"),e=require("../../buildAndBroadcastRefund-Bwi1I5we.cjs"),P=require("../../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=S.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=S.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=S.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>s.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>s.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>s.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>s.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>s.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>s.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>s.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>s.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>s.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=g.buildPeginInputPsbt;exports.extractPeginInputSignature=g.extractPeginInputSignature;exports.finalizePeginInputPsbt=g.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.PeginManager=p.PeginManager;exports.computeWotsBlockPublicKeysHash=p.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=p.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=p.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=A.PayoutManager;exports.computeHashlock=A.computeHashlock;exports.validateSecretAgainstHashlock=A.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=c.CONTRACT_ERRORS;exports.extractErrorData=c.extractErrorData;exports.getContractErrorMessage=c.getContractErrorMessage;exports.handleContractError=c.handleContractError;exports.isKnownContractError=c.isKnownContractError;exports.VAULT_APP_NAME=T.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=T.buildFundingOutpointsCommitment;exports.buildVaultContext=T.buildVaultContext;exports.deriveVaultRoot=T.deriveVaultRoot;exports.parseFundingOutpointsFromTx=b.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=d.UtxoNotAvailableError;exports.assertUtxosAvailable=d.assertUtxosAvailable;exports.extractInputsFromTransaction=d.extractInputsFromTransaction;exports.findOverlappingPendingVaults=d.findOverlappingPendingVaults;exports.validateUtxosAvailable=d.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=n.AUTH_EXPIRED_DATA_KIND;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.isWotsMismatchError=I.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=P.ContractStatus;exports.PeginAction=P.PeginAction;exports.canPerformAction=P.canPerformAction;exports.getPeginProtocolState=P.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=P.isActivationDeadlinePassedOnChain;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|