@babylonlabs-io/ts-sdk 0.61.0 → 0.62.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/PeginManager-BLBB_vMl.cjs +2 -0
- package/dist/PeginManager-BLBB_vMl.cjs.map +1 -0
- package/dist/{PeginManager-C2vPVud-.js → PeginManager-Dj6_tWRA.js} +78 -67
- package/dist/PeginManager-Dj6_tWRA.js.map +1 -0
- package/dist/{buildAndBroadcastRefund-CoPc7UHA.js → buildAndBroadcastRefund-CH2awK6h.js} +552 -447
- package/dist/buildAndBroadcastRefund-CH2awK6h.js.map +1 -0
- package/dist/buildAndBroadcastRefund-CYzhA_B8.cjs +2 -0
- package/dist/buildAndBroadcastRefund-CYzhA_B8.cjs.map +1 -0
- package/dist/errors-D2zp7Vzk.cjs +2 -0
- package/dist/errors-D2zp7Vzk.cjs.map +1 -0
- package/dist/errors-lMX8Q6zb.js +137 -0
- package/dist/errors-lMX8Q6zb.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +204 -193
- package/dist/{noPayout-qUEtRKc_.cjs → noPayout-CbxQqBw1.cjs} +2 -2
- package/dist/{noPayout-qUEtRKc_.cjs.map → noPayout-CbxQqBw1.cjs.map} +1 -1
- package/dist/{noPayout-DuE-UyhQ.js → noPayout-oaUVsEjk.js} +2 -2
- package/dist/{noPayout-DuE-UyhQ.js.map → noPayout-oaUVsEjk.js.map} +1 -1
- package/dist/parseFundingOutpoints-CIO9Ok1L.cjs +2 -0
- package/dist/parseFundingOutpoints-CIO9Ok1L.cjs.map +1 -0
- package/dist/parseFundingOutpoints-pBRE11Hr.js +92 -0
- package/dist/parseFundingOutpoints-pBRE11Hr.js.map +1 -0
- package/dist/{signPsbtsWithFallback-eY1YgV13.js → signPsbtsWithFallback-DC4rUCsy.js} +5 -5
- package/dist/{signPsbtsWithFallback-eY1YgV13.js.map → signPsbtsWithFallback-DC4rUCsy.js.map} +1 -1
- package/dist/{signPsbtsWithFallback-Xs4jZw5z.cjs → signPsbtsWithFallback-DbOmw8Ou.cjs} +2 -2
- package/dist/{signPsbtsWithFallback-Xs4jZw5z.cjs.map → signPsbtsWithFallback-DbOmw8Ou.cjs.map} +1 -1
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsCore.test.d.ts +16 -0
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsCore.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts +33 -0
- package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/index.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/index.d.ts.map +1 -1
- package/dist/tbv/core/deposit-terms/rebuildDepositTermsCore.d.ts +36 -0
- package/dist/tbv/core/deposit-terms/rebuildDepositTermsCore.d.ts.map +1 -0
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +200 -189
- package/dist/tbv/core/managers/PeginManager.d.ts +8 -0
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/__tests__/PeginManager.rebuildDepositTerms.test.d.ts +12 -0
- package/dist/tbv/core/managers/__tests__/PeginManager.rebuildDepositTerms.test.d.ts.map +1 -0
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.js +2 -2
- package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts +3 -0
- package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/__tests__/peginRegistrationDepth.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/peginRegistrationDepth.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/peginRegistrationDepth.d.ts +87 -0
- package/dist/tbv/core/services/deposit/peginRegistrationDepth.d.ts.map +1 -0
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +48 -42
- package/dist/tbv/core/utils/eth/waitForTransactionReceiptSmartAware.d.ts +11 -0
- package/dist/tbv/core/utils/eth/waitForTransactionReceiptSmartAware.d.ts.map +1 -1
- package/dist/tbv/core/vault-secrets/deriveVaultRoot.d.ts +4 -0
- package/dist/tbv/core/vault-secrets/deriveVaultRoot.d.ts.map +1 -1
- package/dist/tbv/core/vault-secrets/index.cjs +1 -1
- package/dist/tbv/core/vault-secrets/index.d.ts +1 -1
- package/dist/tbv/core/vault-secrets/index.d.ts.map +1 -1
- package/dist/tbv/core/vault-secrets/index.js +9 -8
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +200 -189
- package/dist/{verifyScriptPathSchnorrSignature-CYjK4IP_.cjs → verifyScriptPathSchnorrSignature-B8zK1ctE.cjs} +2 -2
- package/dist/verifyScriptPathSchnorrSignature-B8zK1ctE.cjs.map +1 -0
- package/dist/{verifyScriptPathSchnorrSignature-Bav08_7R.js → verifyScriptPathSchnorrSignature-XsICweGG.js} +2 -1
- package/dist/verifyScriptPathSchnorrSignature-XsICweGG.js.map +1 -0
- package/dist/waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs.map +1 -1
- package/dist/waitForTransactionReceiptSmartAware-lobLm0q0.js.map +1 -1
- package/package.json +1 -1
- package/dist/PeginManager-C2vPVud-.js.map +0 -1
- package/dist/PeginManager-Cu5Dh6L-.cjs +0 -2
- package/dist/PeginManager-Cu5Dh6L-.cjs.map +0 -1
- package/dist/buildAndBroadcastRefund-BqYlx6rb.cjs +0 -2
- package/dist/buildAndBroadcastRefund-BqYlx6rb.cjs.map +0 -1
- package/dist/buildAndBroadcastRefund-CoPc7UHA.js.map +0 -1
- package/dist/errors-2aF9oRwM.cjs +0 -2
- package/dist/errors-2aF9oRwM.cjs.map +0 -1
- package/dist/errors-kXGQXKxZ.js +0 -28
- package/dist/errors-kXGQXKxZ.js.map +0 -1
- package/dist/parseFundingOutpoints-DUuOAUjA.cjs +0 -2
- package/dist/parseFundingOutpoints-DUuOAUjA.cjs.map +0 -1
- package/dist/parseFundingOutpoints-deCXK7ft.js +0 -86
- package/dist/parseFundingOutpoints-deCXK7ft.js.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-Bav08_7R.js.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-CYjK4IP_.cjs.map +0 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,223 +1,234 @@
|
|
|
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 u, expandAuthAnchor as l, expandHashlockSecret as
|
|
4
|
-
import { P as
|
|
5
|
-
import { b
|
|
6
|
-
import { a as
|
|
7
|
-
import { c as
|
|
3
|
+
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as u, expandAuthAnchor as l, expandHashlockSecret as P, expandWotsSeed as c, peginP2aAnchorOutput as d, supportedTxGraphVersions as E, validatePeginP2aAnchor as A } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
+
import { P as g, d as R, f as S, c as _, b as m, a as f, g as x, e as C } from "../../verifyScriptPathSchnorrSignature-XsICweGG.js";
|
|
5
|
+
import { b, e as I, f as v } from "../../peginInput-HQPWZfly.js";
|
|
6
|
+
import { a as V, b as y } from "../../noPayout-oaUVsEjk.js";
|
|
7
|
+
import { c as M, d as N, a as F, b as B, e as U, f as H, k as L, g as K, h as k, i as X, j as w, p as W, s as G, t as j, u as J, v as Y } 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 {
|
|
11
|
-
import { P as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as va, e as
|
|
16
|
-
import { V as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { U as
|
|
20
|
-
import { M as
|
|
21
|
-
import { O as
|
|
22
|
-
import { A as
|
|
23
|
-
import { a as
|
|
24
|
-
import { D as
|
|
25
|
-
import {
|
|
26
|
-
import { C as
|
|
10
|
+
import { C as ia, M as oa, P as na, b as pa, a as ua, c as la, d as Pa, f as ca, e as da } from "../../PeginManager-Dj6_tWRA.js";
|
|
11
|
+
import { P as Aa, c as Ta, f as ga, s as Ra, v as Sa } from "../../signPsbtsWithFallback-DC4rUCsy.js";
|
|
12
|
+
import { A as ma, P as fa } from "../../ProtocolParams.abi-CV938AYZ.js";
|
|
13
|
+
import { B as Ca } from "../../BTCVaultRegistry.abi-B3BLhpJ4.js";
|
|
14
|
+
import { B as ba } from "../../BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
|
|
15
|
+
import { C as va, e as ha, g as Va, h as ya, i as Da } from "../../errors-Blc-JWnI.js";
|
|
16
|
+
import { V as Na, b as Fa, a as Ba, d as Ua, f as Ha, p as La } from "../../parseFundingOutpoints-pBRE11Hr.js";
|
|
17
|
+
import { B as ka, a as Xa, f as wa, c as Wa, b as Ga, d as ja, g as Ja, i as Ya, h as Za, s as za, e as qa, w as Qa } from "../../waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
18
|
+
import { B as ae, D as ee, L as se, M as te, c as re, P as ie, b as oe, a as ne, S as pe, T as ue, W as le, f as Pe, d as ce, p as de, r as Ee } from "../../fundPeginTransaction-B2wyjqp0.js";
|
|
19
|
+
import { U as Te, a as ge, e as Re, f as Se, v as _e } from "../../reservation-B4i_PQhY.js";
|
|
20
|
+
import { M as fe, V as xe, g as Ce, a as Oe, b as be, c as Ie, d as ve, e as he, f as Ve, h as ye, i as De, p as Me, v as Ne, j as Fe, k as Be } from "../../mempoolApi-DC7pID6B.js";
|
|
21
|
+
import { O as He, S as Le, V as Ke, g as ke, h as Xe, i as we, j as We, a as Ge, d as je, b as Je, f as Ye, p as Ze, r as ze, v as qe, c as Qe, e as $e } from "../../batchPoll-C3eKPYOC.js";
|
|
22
|
+
import { A as es, D as ss, J as ts, a as rs, b as is, d as os, P as ns, R as ps, e as us, c as ls, V as Ps, i as cs } from "../../json-rpc-client-DuUARJvV.js";
|
|
23
|
+
import { a as Es } from "../../onChainBtcPubkey-DeF4cKoO.js";
|
|
24
|
+
import { D as Ts, a as gs, b as Rs, i as Ss, r as _s } from "../../errors-lMX8Q6zb.js";
|
|
25
|
+
import { H as fs, E as xs, P as Cs, o as Os, c as bs, d as Is, K as vs, L as hs, M as Vs, N as ys, R as Ds, a as Ms, b as Ns, y as Fs, I as Bs, J as Us, g as Hs, z as Ls, p as Ks, i as ks, e as Xs, G as ws, F as Ws, t as Gs, A as js, B as Js, C as Ys, D as Zs, r as zs, s as qs, f as Qs, h as $s, j as at, v as et, k as st, l as tt, m as rt, n as it, q as ot, u as nt, w as pt, x as ut } from "../../buildAndBroadcastRefund-CH2awK6h.js";
|
|
26
|
+
import { C as Pt, P as ct, c as dt, g as Et, i as At } from "../../peginState-CxDiaKuk.js";
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
es as AUTH_REJECTED_RPC_CODE,
|
|
29
|
+
ma as ApplicationRegistryABI,
|
|
30
|
+
fs as BIP68NotMatureError,
|
|
31
31
|
z as BITCOIN_ADDRESS_RE,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
Ca as BTCVaultRegistryABI,
|
|
33
|
+
ba as BTCVaultRegistryKeyEpochsABI,
|
|
34
|
+
ae as BTC_DUST_SAT,
|
|
35
|
+
ka as BitcoinScriptType,
|
|
36
|
+
ia as COMMISSION_BPS_HEADROOM,
|
|
36
37
|
va as CONTRACT_ERRORS,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
xs as ClaimerPegoutStatusValue,
|
|
39
|
+
Pt as ContractStatus,
|
|
40
|
+
Ts as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
41
|
+
ee as DUST_THRESHOLD,
|
|
42
|
+
ss as DaemonStatus,
|
|
43
|
+
gs as DepositTermsRejectedError,
|
|
43
44
|
q as HEX_RE,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
ts as JSON_RPC_ERROR_CODES,
|
|
46
|
+
rs as JsonRpcClient,
|
|
47
|
+
is as JsonRpcError,
|
|
47
48
|
Q as KNOWN_SCRIPT_PREFIXES,
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
se as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
50
|
+
oa as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
51
|
+
te as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
50
52
|
$ as MAX_REASONABLE_FEE_SATS,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
53
|
+
re as MAX_REASONABLE_PEGIN_VBYTES,
|
|
54
|
+
fe as MEMPOOL_API_URLS,
|
|
55
|
+
He as OnChainBtcVaultStatus,
|
|
56
|
+
ie as P2TR_INPUT_SIZE,
|
|
57
|
+
oe as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
58
|
+
Cs as PEGIN_ETH_CONFIRMATIONS,
|
|
59
|
+
ne as PEGIN_FIXED_OUTPUTS,
|
|
60
|
+
os as POST_WOTS_STATUSES,
|
|
61
|
+
ns as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
62
|
+
Os as ParticipantKeyDriftError,
|
|
63
|
+
Aa as PayoutManager,
|
|
64
|
+
ct as PeginAction,
|
|
65
|
+
na as PeginManager,
|
|
66
|
+
bs as PeginRegistrationMissingError,
|
|
67
|
+
Is as PeginRegistrationNotFinalError,
|
|
68
|
+
fa as ProtocolParamsABI,
|
|
69
|
+
g as PsbtSubstitutionError,
|
|
70
|
+
vs as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
71
|
+
hs as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
72
|
+
Vs as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
73
|
+
ys as REFUND_VSIZE,
|
|
74
|
+
Ds as RegisteredVaultVersionMismatchError,
|
|
75
|
+
ps as RpcErrorCode,
|
|
76
|
+
pe as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
77
|
+
Le as ServerIdentityError,
|
|
73
78
|
aa as TXID_RE,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
79
|
+
ue as TX_BUFFER_SIZE_OVERHEAD,
|
|
80
|
+
Te as UtxoNotAvailableError,
|
|
81
|
+
Na as VAULT_APP_NAME,
|
|
82
|
+
us as VP_BATCH_MAX_SIZE,
|
|
83
|
+
ls as VP_TERMINAL_FAILURE_STATUSES,
|
|
84
|
+
Ps as VP_TRANSIENT_STATUSES,
|
|
85
|
+
Ke as VaultProviderRpcClient,
|
|
86
|
+
ke as ViemOperationKeyReader,
|
|
87
|
+
Xe as ViemProtocolParamsReader,
|
|
88
|
+
we as ViemUniversalChallengerReader,
|
|
89
|
+
We as ViemVaultKeeperReader,
|
|
90
|
+
xe as ViemVaultRegistryReader,
|
|
91
|
+
Ge as VpResponseValidationError,
|
|
92
|
+
je as VpTokenRegistry,
|
|
93
|
+
le as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
94
|
+
Ms as activateVault,
|
|
95
|
+
Ns as activateVaultAndRedeem,
|
|
96
|
+
Xa as applyChangeOutputPolicy,
|
|
97
|
+
Es as assertOnChainBtcPubkey,
|
|
98
|
+
R as assertPsbtUnsignedTxMatches,
|
|
99
|
+
S as assertScriptPathSchnorrSignature,
|
|
100
|
+
ge as assertUtxosAvailable,
|
|
96
101
|
i as assertValidVaultCoreVersion,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
Fs as assertVaultProviderHintAccepted,
|
|
103
|
+
Je as batchPollByProvider,
|
|
104
|
+
Bs as buildAndBroadcastRefund,
|
|
100
105
|
s as buildChallengeAssertPsbt,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
pa as buildDepositTerms,
|
|
107
|
+
Fa as buildFundingOutpointsCommitment,
|
|
108
|
+
V as buildNoPayoutPsbt,
|
|
109
|
+
_ as buildPayoutPsbt,
|
|
110
|
+
b as buildPeginInputPsbt,
|
|
111
|
+
m as buildPeginTxFromFundedPrePegin,
|
|
107
112
|
f as buildPrePeginPsbt,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
y as buildRefundPsbt,
|
|
114
|
+
Ba as buildVaultContext,
|
|
115
|
+
wa as calculateBtcTxHash,
|
|
116
|
+
dt as canPerformAction,
|
|
117
|
+
M as canonicalizeBtcPubkey,
|
|
118
|
+
ua as capMaxAcceptableCommissionBps,
|
|
113
119
|
ea as combineAbortSignals,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
120
|
+
Wa as computeChangeOutputFeeSats,
|
|
121
|
+
Ta as computeHashlock,
|
|
122
|
+
Ga as computeMaxDeposit,
|
|
117
123
|
n as computeMinClaimValue,
|
|
118
124
|
p as computeMinPeginFee,
|
|
119
125
|
t as computeNumLocalChallengers,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
126
|
+
ja as computePeginBaseFeeSats,
|
|
127
|
+
la as computeWotsBlockPublicKeysHash,
|
|
128
|
+
Ye as createAuthenticatedVpClient,
|
|
123
129
|
x as createPayoutScript,
|
|
124
130
|
ta as createTaprootScriptPathSignOptions,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
N as deriveBip86ScriptPubKeyHex,
|
|
132
|
+
F as deriveNativeSegwitAddress,
|
|
133
|
+
B as deriveTaprootAddress,
|
|
128
134
|
u as deriveVaultId,
|
|
129
135
|
Ua as deriveVaultRoot,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
Pa as deriveWotsBlocksFromSeed,
|
|
137
|
+
U as ensureHexPrefix,
|
|
138
|
+
ca as ensurePrePeginTermsApproval,
|
|
139
|
+
Us as estimateRefundFeeSats,
|
|
140
|
+
da as estimateSubmitPeginRequestBatchGas,
|
|
135
141
|
l as expandAuthAnchor,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
P as expandHashlockSecret,
|
|
143
|
+
c as expandWotsSeed,
|
|
144
|
+
ha as extractErrorData,
|
|
145
|
+
Re as extractInputsFromTransaction,
|
|
146
|
+
C as extractPayoutSignature,
|
|
147
|
+
I as extractPeginInputSignature,
|
|
148
|
+
v as finalizePeginInputPsbt,
|
|
149
|
+
Se as findOverlappingPendingVaults,
|
|
144
150
|
H as formatSatoshisToBtc,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
ga as forwardDepositApproval,
|
|
152
|
+
Ha as forwardDeriveContextHash,
|
|
153
|
+
Pe as fundPeginTransaction,
|
|
154
|
+
Ce as getAddressTxs,
|
|
155
|
+
Oe as getAddressUtxos,
|
|
149
156
|
Va as getContractErrorMessage,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
Ja as getDustThreshold,
|
|
158
|
+
be as getMempoolApiUrl,
|
|
159
|
+
L as getNetwork,
|
|
160
|
+
Ie as getNetworkFees,
|
|
161
|
+
ve as getOutspend,
|
|
162
|
+
Et as getPeginProtocolState,
|
|
163
|
+
Ya as getPsbtInputFields,
|
|
164
|
+
Za as getScriptType,
|
|
165
|
+
K as getSortedXOnlyPubkeys,
|
|
166
|
+
he as getTipHeight,
|
|
167
|
+
Ve as getTxHex,
|
|
168
|
+
ye as getTxInfo,
|
|
169
|
+
De as getUtxoInfo,
|
|
170
|
+
ya as handleContractError,
|
|
164
171
|
k as hexToUint8Array,
|
|
165
|
-
|
|
172
|
+
At as isActivationDeadlinePassedOnChain,
|
|
166
173
|
X as isAddressFromPublicKey,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
174
|
+
cs as isAuthRejectedError,
|
|
175
|
+
Hs as isDepositAmountValid,
|
|
176
|
+
Rs as isDepositTermsRejectedError,
|
|
177
|
+
Ls as isHintAccepted,
|
|
178
|
+
Da as isKnownContractError,
|
|
179
|
+
Ks as isParticipantKeyDriftError,
|
|
180
|
+
ks as isPeginRegistrationMissingError,
|
|
181
|
+
Xs as isPeginRegistrationNotFinalError,
|
|
182
|
+
ws as isPegoutTerminalStatus,
|
|
183
|
+
Ws as isRecognizedPegoutStatus,
|
|
184
|
+
Gs as isRegisteredVaultVersionMismatchError,
|
|
185
|
+
w as isValidHex,
|
|
186
|
+
Ss as isWotsMismatchError,
|
|
187
|
+
js as matchKeyHint,
|
|
188
|
+
Js as matchKeySetHint,
|
|
189
|
+
La as parseFundingOutpointsFromTx,
|
|
190
|
+
ce as parseUnfundedWasmTransaction,
|
|
191
|
+
de as peginOutputCount,
|
|
192
|
+
d as peginP2aAnchorOutput,
|
|
193
|
+
Ze as primeVpTokenRegistry,
|
|
194
|
+
W as processPublicKeyToXOnly,
|
|
195
|
+
Me as pushTx,
|
|
196
|
+
Ee as rateBasedTxBufferFee,
|
|
197
|
+
_s as rebuildDepositTermsCore,
|
|
198
|
+
Ys as resolveCurrentParticipantKeys,
|
|
199
|
+
Zs as resolveParticipantKeysAtEpochs,
|
|
200
|
+
ze as resolveProtocolAddresses,
|
|
201
|
+
zs as runDepositorPresignFlow,
|
|
202
|
+
za as selectUtxosForPegin,
|
|
203
|
+
qa as shouldAddChangeOutput,
|
|
204
|
+
qs as signDepositorGraph,
|
|
195
205
|
G as stripHexPrefix,
|
|
196
|
-
|
|
206
|
+
Qs as submitWotsPublicKey,
|
|
197
207
|
E as supportedTxGraphVersions,
|
|
198
|
-
|
|
208
|
+
Ra as supportsDepositApproval,
|
|
199
209
|
j as toXOnly,
|
|
200
210
|
J as uint8ArrayToHex,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
$s as validateDepositAmount,
|
|
212
|
+
at as validateMultiVaultDepositInputs,
|
|
213
|
+
Ne as validateOffchainParams,
|
|
214
|
+
et as validateOnChainParticipantKeys,
|
|
215
|
+
Fe as validatePegInConfiguration,
|
|
216
|
+
A as validatePeginP2aAnchor,
|
|
217
|
+
st as validateProviderSelection,
|
|
218
|
+
tt as validateRemainingCapacity,
|
|
219
|
+
qe as validateRequestDepositorClaimerArtifactsResponse,
|
|
220
|
+
Sa as validateSecretAgainstHashlock,
|
|
221
|
+
Be as validateTBVProtocolParams,
|
|
222
|
+
_e as validateUtxosAvailable,
|
|
223
|
+
rt as validateVaultAmounts,
|
|
224
|
+
it as validateVaultProviderPubkey,
|
|
215
225
|
Y as validateWalletPubkey,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
226
|
+
ot as verifyRegisteredParticipantKeys,
|
|
227
|
+
nt as verifyRegisteredVaultVersions,
|
|
228
|
+
Qe as verifyServerIdentity,
|
|
229
|
+
$e as vpTokenRegistry,
|
|
230
|
+
pt as waitForPeginRegistrationDepth,
|
|
231
|
+
ut as waitForPeginStatus,
|
|
232
|
+
Qa as waitForTransactionReceiptSmartAware
|
|
222
233
|
};
|
|
223
234
|
//# sourceMappingURL=index.js.map
|
|
@@ -438,6 +438,14 @@ export declare class PeginManager {
|
|
|
438
438
|
* 5. Finalizes and extracts the transaction
|
|
439
439
|
* 6. Broadcasts via mempool API
|
|
440
440
|
*
|
|
441
|
+
* IMPORTANT — this method does NOT gate on Ethereum finality. Committing
|
|
442
|
+
* BTC to the HTLC while the peg-in registration is still reorg-exposed can
|
|
443
|
+
* strand the deposit: the vault record disappears from the chain while the
|
|
444
|
+
* BTC stays locked until the HTLC refund timelock. Callers must await
|
|
445
|
+
* `waitForPeginRegistrationDepth` for the registered vault(s) before calling
|
|
446
|
+
* this. The gate is not applied here because the params carry no vault ID —
|
|
447
|
+
* adding one would be a breaking signature change.
|
|
448
|
+
*
|
|
441
449
|
* @param params - Transaction hex and depositor public key
|
|
442
450
|
* @returns The broadcasted Bitcoin transaction ID
|
|
443
451
|
* @throws Error if signing or broadcasting fails
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AASd,OAAO,KAAK,EACV,aAAa,EACb,IAAI,EAEL,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,
|
|
1
|
+
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AASd,OAAO,KAAK,EACV,aAAa,EACb,IAAI,EAEL,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EASL,KAAK,OAAO,EAEb,MAAM,eAAe,CAAC;AASvB,OAAO,EASL,KAAK,IAAI,EACV,MAAM,UAAU,CAAC;AA2BlB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,aA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;;;;;;OAeG;IACH,OAAO,CAAC,yBAAyB;IA8CjC;;;;;OAKG;IACG,qBAAqB,IAAI,OAAO,CAAC,YAAY,CAAC;IAyBpD;;;;;;;OAOG;YACW,yBAAyB;IAkBvC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,uBAAuB,IAAI,OAAO;CAGnC;AAmED,MAAM,WAAW,wCAAwC;IACvD,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,MAAM,CAAC,CA4CjB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-path golden for the resume rebuild (#2220 Part 2): the funded tx and
|
|
3
|
+
* DepositTerms are produced by the PRODUCTION build path
|
|
4
|
+
* (`PeginManager.preparePegin` → `createPrePeginTransaction` WASM entry point),
|
|
5
|
+
* then fed through `rebuildDepositTermsCore` (which recomputes sizing and
|
|
6
|
+
* scripts via the STANDALONE WASM entry points). The deep-equality assertion is
|
|
7
|
+
* the only JS-side proof that the two WASM paths agree byte-for-byte — the
|
|
8
|
+
* in-file golden in `rebuildDepositTermsCore.test.ts` builds its fixture from
|
|
9
|
+
* the same calls the core makes, so it cannot see cross-entry-point drift.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PeginManager.rebuildDepositTerms.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeginManager.rebuildDepositTerms.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/__tests__/PeginManager.rebuildDepositTerms.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-BLBB_vMl.cjs"),a=require("../../../signPsbtsWithFallback-DbOmw8Ou.cjs");exports.PeginManager=e.PeginManager;exports.estimateSubmitPeginRequestBatchGas=e.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as t, e as r } from "../../../PeginManager-
|
|
2
|
-
import { P as o } from "../../../signPsbtsWithFallback-
|
|
1
|
+
import { P as t, e as r } from "../../../PeginManager-Dj6_tWRA.js";
|
|
2
|
+
import { P as o } from "../../../signPsbtsWithFallback-DC4rUCsy.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PayoutManager,
|
|
5
5
|
t as PeginManager,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../challengeAssert-BFRE2DM-.cjs"),a=require("../../../constants-DU5CGcqO.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../challengeAssert-BFRE2DM-.cjs"),a=require("../../../constants-DU5CGcqO.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-B8zK1ctE.cjs"),i=require("../../../peginInput-Ci921gTl.cjs"),u=require("../../../noPayout-CbxQqBw1.cjs"),e=require("../../../bitcoin-m84N5a8o.cjs");exports.buildChallengeAssertPsbt=n.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=n.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=a.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>r.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>r.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>r.deriveVaultId});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>r.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>r.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>r.validatePeginP2aAnchor});exports.PsbtSubstitutionError=t.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=t.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=t.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=t.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=t.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=t.buildPrePeginPsbt;exports.createPayoutScript=t.createPayoutScript;exports.extractPayoutSignature=t.extractPayoutSignature;exports.buildPeginInputPsbt=i.buildPeginInputPsbt;exports.extractPeginInputSignature=i.extractPeginInputSignature;exports.finalizePeginInputPsbt=i.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=u.buildNoPayoutPsbt;exports.buildRefundPsbt=u.buildRefundPsbt;exports.canonicalizeBtcPubkey=e.canonicalizeBtcPubkey;exports.deriveBip86ScriptPubKeyHex=e.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;exports.formatSatoshisToBtc=e.formatSatoshisToBtc;exports.getSortedXOnlyPubkeys=e.getSortedXOnlyPubkeys;exports.hexToUint8Array=e.hexToUint8Array;exports.isAddressFromPublicKey=e.isAddressFromPublicKey;exports.isValidHex=e.isValidHex;exports.processPublicKeyToXOnly=e.processPublicKeyToXOnly;exports.stripHexPrefix=e.stripHexPrefix;exports.toXOnly=e.toXOnly;exports.uint8ArrayToHex=e.uint8ArrayToHex;exports.validateWalletPubkey=e.validateWalletPubkey;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as s, c as t } from "../../../challengeAssert-C7PzyJ7g.js";
|
|
2
2
|
import { a as i } from "../../../constants-GjWXdaqV.js";
|
|
3
3
|
import { computeMinClaimValue as u, computeMinPeginFee as n, deriveVaultId as P, peginP2aAnchorOutput as d, supportedTxGraphVersions as l, validatePeginP2aAnchor as b } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
-
import { P as c, d as x, f as g, c as f, b as m, a as y, g as h, e as S } from "../../../verifyScriptPathSchnorrSignature-
|
|
4
|
+
import { P as c, d as x, f as g, c as f, b as m, a as y, g as h, e as S } from "../../../verifyScriptPathSchnorrSignature-XsICweGG.js";
|
|
5
5
|
import { b as A, e as T, f as V } from "../../../peginInput-HQPWZfly.js";
|
|
6
|
-
import { a as C, b as F } from "../../../noPayout-
|
|
6
|
+
import { a as C, b as F } from "../../../noPayout-oaUVsEjk.js";
|
|
7
7
|
import { c as O, d as k, a as B, b as K, e as M, f as N, g as X, h as z, i as U, j, p as w, s as E, t as G, u as L, v as R } from "../../../bitcoin-d9eaaZB_.js";
|
|
8
8
|
export {
|
|
9
9
|
c as PsbtSubstitutionError,
|
|
@@ -16,6 +16,9 @@ import { PrePeginParams } from './pegin';
|
|
|
16
16
|
* exact, but both sides come from the same binary, which is why the
|
|
17
17
|
* independent bounds above are kept alongside it.
|
|
18
18
|
*
|
|
19
|
+
* The resume rebuild (`deposit-terms/rebuildDepositTermsCore.ts`) mirrors these
|
|
20
|
+
* bounds (positivity + reserve band) — keep the two in sync when editing.
|
|
21
|
+
*
|
|
19
22
|
* @param result - The result returned by `createPrePeginTransaction`.
|
|
20
23
|
* @param params - The parameters that were passed to build it.
|
|
21
24
|
* @returns The independently computed `minPeginFee` this function already
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertWasmPeginSizing.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertWasmPeginSizing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"assertWasmPeginSizing.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertWasmPeginSizing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,MAAM,CAAC,CAsJjB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,iBAAiB,EAAE,SAAS,MAAM,EAAE,GACnC,IAAI,CA2BN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peginRegistrationDepth.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/peginRegistrationDepth.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ClaimerArtifactsReader, PeginStatusReader, PresignClient, WotsKeySubmitter, } from './interfaces';
|
|
2
|
+
export { PEGIN_ETH_CONFIRMATIONS, PeginRegistrationMissingError, PeginRegistrationNotFinalError, isPeginRegistrationMissingError, isPeginRegistrationNotFinalError, waitForPeginRegistrationDepth, type PeginRegistrationDepthResult, type RegistrationDepthParams, type RegistrationDepthProgress, type WaitForPeginRegistrationDepthParams, } from './peginRegistrationDepth';
|
|
2
3
|
export { ContractStatus, PeginAction, canPerformAction, getPeginProtocolState, isActivationDeadlinePassedOnChain, type ExpirationReason, type GetPeginProtocolStateOptions, type PeginProtocolState, } from './peginState';
|
|
3
4
|
export { runDepositorPresignFlow, type PayoutSigningContext, type RunDepositorPresignFlowParams, } from './runDepositorPresignFlow';
|
|
4
5
|
export { signDepositorGraph, type DepositorGraphSigningContext, type SignDepositorGraphParams, } from './signDepositorGraph';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,iCAAiC,EACjC,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,GACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,8BAA8B,EAC9B,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,+BAA+B,EAC/B,KAAK,qCAAqC,GAC3C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,6BAA6B,EAC7B,KAAK,mCAAmC,GACzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,iCAAiC,EACjC,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,GACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,KAAK,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