@babylonlabs-io/ts-sdk 3.1.1 → 3.2.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/BTCVaultRegistry.abi-BH2-LHxN.cjs +2 -0
- package/dist/BTCVaultRegistry.abi-BH2-LHxN.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-DBW0dyqH.js → BTCVaultRegistry.abi-BzNTa_EU.js} +19 -52
- package/dist/BTCVaultRegistry.abi-BzNTa_EU.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-Btg0nBz1.js +262 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-Btg0nBz1.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CReWFJdu.cjs +2 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CReWFJdu.cjs.map +1 -0
- package/dist/{PeginManager-8EUlm10F.cjs → PeginManager-BHplS4dM.cjs} +2 -2
- package/dist/{PeginManager-8EUlm10F.cjs.map → PeginManager-BHplS4dM.cjs.map} +1 -1
- package/dist/{PeginManager-QRwMUxZg.js → PeginManager-DcwGom01.js} +2 -2
- package/dist/{PeginManager-QRwMUxZg.js.map → PeginManager-DcwGom01.js.map} +1 -1
- package/dist/VaultErrors.abi-Boz4w97c.js +5 -0
- package/dist/VaultErrors.abi-Boz4w97c.js.map +1 -0
- package/dist/VaultErrors.abi-DQ18kM0L.cjs +2 -0
- package/dist/VaultErrors.abi-DQ18kM0L.cjs.map +1 -0
- package/dist/buildAndBroadcastReclaim-C7bq5wNM.cjs +2 -0
- package/dist/buildAndBroadcastReclaim-C7bq5wNM.cjs.map +1 -0
- package/dist/{buildAndBroadcastReclaim-DoprHX7o.js → buildAndBroadcastReclaim-CcQ0b1be.js} +466 -456
- package/dist/buildAndBroadcastReclaim-CcQ0b1be.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +232 -229
- package/dist/index.js.map +1 -1
- package/dist/pegin-registration-client-BogzOk8B.cjs +2 -0
- package/dist/pegin-registration-client-BogzOk8B.cjs.map +1 -0
- package/dist/{pegin-registration-client-BWMwxtr8.js → pegin-registration-client-DvyrUNku.js} +45 -44
- package/dist/pegin-registration-client-DvyrUNku.js.map +1 -0
- package/dist/peginState-CIibG9S_.js +75 -0
- package/dist/peginState-CIibG9S_.js.map +1 -0
- package/dist/peginState-IyE22wWh.cjs +2 -0
- package/dist/peginState-IyE22wWh.cjs.map +1 -0
- package/dist/{reservation-DOAHVT3B.js → reservation-BZQABu4g.js} +2 -2
- package/dist/{reservation-DOAHVT3B.js.map → reservation-BZQABu4g.js.map} +1 -1
- package/dist/{reservation-ECxjZi5t.cjs → reservation-CA5knoQ0.cjs} +2 -2
- package/dist/{reservation-ECxjZi5t.cjs.map → reservation-CA5knoQ0.cjs.map} +1 -1
- package/dist/{signer-set-reader-C6g47hdk.cjs → signer-set-reader-D-CyIYR5.cjs} +2 -2
- package/dist/{signer-set-reader-C6g47hdk.cjs.map → signer-set-reader-D-CyIYR5.cjs.map} +1 -1
- package/dist/{signer-set-reader-C1VmC9_U.js → signer-set-reader-DFF9MgQN.js} +2 -2
- package/dist/{signer-set-reader-C1VmC9_U.js.map → signer-set-reader-DFF9MgQN.js.map} +1 -1
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.js +2 -2
- package/dist/tbv/core/clients/eth/types.d.ts +8 -0
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +2 -2
- package/dist/tbv/core/contracts/__tests__/vaultErrors.abi.test.d.ts +2 -0
- package/dist/tbv/core/contracts/__tests__/vaultErrors.abi.test.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +14 -40
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/VaultErrors.abi.d.ts +3 -0
- package/dist/tbv/core/contracts/abis/VaultErrors.abi.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/vaultErrors.abi.json.d.ts +4 -0
- package/dist/tbv/core/contracts/errors.d.ts +7 -2
- package/dist/tbv/core/contracts/errors.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.d.ts +2 -1
- package/dist/tbv/core/contracts/index.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.js +13 -10
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +225 -222
- 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/services/activation/activateVault.d.ts +50 -0
- package/dist/tbv/core/services/activation/activateVault.d.ts.map +1 -1
- package/dist/tbv/core/services/activation/index.d.ts +1 -1
- package/dist/tbv/core/services/activation/index.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts +9 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +5 -7
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/index.d.ts +3 -4
- package/dist/tbv/core/services/delegated-claim/index.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +14 -8
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/types.d.ts +32 -19
- package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/peginState.d.ts +20 -1
- package/dist/tbv/core/services/deposit/peginState.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +58 -58
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.js +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +225 -222
- package/dist/tbv/index.js.map +1 -1
- package/dist/tbv/integrations/aave/clients/abis/AaveIntegrationAdapter.abi.json.d.ts +7 -701
- package/dist/tbv/integrations/aave/clients/query.d.ts +2 -2
- 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.js +119 -119
- package/dist/tbv/integrations/aave/index.js.map +1 -1
- package/dist/{toRefundInputs-BZXvuOMY.cjs → toRefundInputs-8DgBT_Bg.cjs} +2 -2
- package/dist/{toRefundInputs-BZXvuOMY.cjs.map → toRefundInputs-8DgBT_Bg.cjs.map} +1 -1
- package/dist/{toRefundInputs-dKDSvpVI.js → toRefundInputs-CCMNAoRx.js} +2 -2
- package/dist/{toRefundInputs-dKDSvpVI.js.map → toRefundInputs-CCMNAoRx.js.map} +1 -1
- package/dist/types-Bda75Od0.cjs.map +1 -1
- package/dist/types-C5jj3Cc-.js.map +1 -1
- package/package.json +3 -3
- package/dist/BTCVaultRegistry.abi-CohlJX7c.cjs +0 -2
- package/dist/BTCVaultRegistry.abi-CohlJX7c.cjs.map +0 -1
- package/dist/BTCVaultRegistry.abi-DBW0dyqH.js.map +0 -1
- package/dist/BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js +0 -266
- package/dist/BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js.map +0 -1
- package/dist/BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs +0 -2
- package/dist/BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-DjX7wVb2.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-DjX7wVb2.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-DoprHX7o.js.map +0 -1
- package/dist/pegin-registration-client-BWMwxtr8.js.map +0 -1
- package/dist/pegin-registration-client-D4EguWaz.cjs +0 -2
- package/dist/pegin-registration-client-D4EguWaz.cjs.map +0 -1
- package/dist/peginState-BU2ONFXF.js +0 -68
- package/dist/peginState-BU2ONFXF.js.map +0 -1
- package/dist/peginState-DUv10EJR.cjs +0 -2
- package/dist/peginState-DUv10EJR.cjs.map +0 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,334 +1,337 @@
|
|
|
1
|
-
import { P as s, h as r, i as t, j as i, f as o, b as n, a as l, c as p, k as
|
|
1
|
+
import { P as s, h as r, i as t, j as i, f as o, b as n, a as l, c as p, k as E, d as P, e as c, g as u } from "../../verifyScriptPathSchnorrSignature-B3-VkvnK.js";
|
|
2
2
|
import { a as g } from "../../secp256k1-BuxBFUHm.js";
|
|
3
|
-
import { attachFinalizedAssert as R, computeMinClaimValue as A, computeMinPeginFee as _, deriveVaultId as S, expandAuthAnchor as T, expandHashlockSecret as C, expandWotsSeed as I, finalizePayout as f, finalizeWronglyChallenged as h, peginP2aAnchorOutput as
|
|
4
|
-
import { a as N, c as M, b as y, e as
|
|
3
|
+
import { attachFinalizedAssert as R, computeMinClaimValue as A, computeMinPeginFee as _, deriveVaultId as S, expandAuthAnchor as T, expandHashlockSecret as C, expandWotsSeed as I, finalizePayout as f, finalizeWronglyChallenged as h, peginP2aAnchorOutput as V, pinPegoutProof as O, supportedTxGraphVersions as x, validatePeginP2aAnchor as b } from "./wasm/index.js";
|
|
4
|
+
import { a as N, c as M, b as y, e as v, f as D } from "../../verifyKeyPathSchnorrSignature-DxPbeSdQ.js";
|
|
5
5
|
import { c as U, a as H, b as L, e as K, f as X, r as G } from "../../noPayout-B-vGXJ-V.js";
|
|
6
6
|
import { b as W } from "../../challengeAssert-Cp_GeRg8.js";
|
|
7
7
|
import { c as z, d as Y, a as j, b as J, e as Z, f as q, k as Q, g as $, h as aa, i as ea, j as sa, p as ra, s as ta, t as ia, u as oa, v as na } from "../../bitcoin-C-TuHb-v.js";
|
|
8
8
|
import { c as pa } from "../../abortSignals-BPpAUL1Z.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as Pa, a as ca } from "../../signing-C1rR4tqs.js";
|
|
10
10
|
import { B as da, C as ga, H as ma, K as Ra, M as Aa, T as _a, X as Sa } from "../../validation-OSC0xTHB.js";
|
|
11
11
|
import { waitForTransactionReceiptSmartAware as Ca } from "./utils/eth/index.js";
|
|
12
|
-
import { P as fa, b as ha, c as
|
|
13
|
-
import { P as Fa, c as Na, f as Ma, r as ya, s as
|
|
12
|
+
import { P as fa, b as ha, c as Va, d as Oa, e as xa } from "../../PeginManager-DcwGom01.js";
|
|
13
|
+
import { P as Fa, c as Na, f as Ma, r as ya, s as va, v as Da } from "../../PayoutManager-BZ212yml.js";
|
|
14
14
|
import { MEMPOOL_API_URLS as Ua, MempoolNotFoundError as Ha, getAddressTxs as La, getAddressUtxos as Ka, getMempoolApiUrl as Xa, getNetworkFees as Ga, getOutspend as ka, getTipHeight as Wa, getTxHex as wa, getTxInfo as za, getUtxoInfo as Ya, pushTx as ja } from "./clients/mempool/index.js";
|
|
15
15
|
import { R as Za, V as qa, a as Qa, f as $a, d as ae, g as ee, e as se, i as re, r as te, v as ie, b as oe, c as ne } from "../../registration-records-CKLAv3gw.js";
|
|
16
|
-
import { V as pe, a as
|
|
17
|
-
import { C as de, M as ge, V as me, a as Re, c as Ae } from "../../pegin-registration-client-
|
|
16
|
+
import { V as pe, a as Ee, b as Pe, r as ce } from "../../signer-set-reader-DFF9MgQN.js";
|
|
17
|
+
import { C as de, M as ge, V as me, a as Re, c as Ae } from "../../pegin-registration-client-DvyrUNku.js";
|
|
18
18
|
import { O as Se, V as Te } from "../../types-C5jj3Cc-.js";
|
|
19
19
|
import { A as Ie } from "../../ApplicationRegistry.abi-s8cQ1ooR.js";
|
|
20
|
-
import { B as he } from "../../BTCVaultRegistry.abi-
|
|
21
|
-
import { B as
|
|
22
|
-
import { P as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { B as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { C as
|
|
20
|
+
import { B as he } from "../../BTCVaultRegistry.abi-BzNTa_EU.js";
|
|
21
|
+
import { B as Oe, C as xe, E as be, P as Fe, a as Ne, e as Me, g as ye, h as ve, i as De, b as Be } from "../../BTCVaultRegistryKeyEpochs.abi-Btg0nBz1.js";
|
|
22
|
+
import { P as He } from "../../ProtocolParams.abi-CKOVqFJP.js";
|
|
23
|
+
import { V as Ke } from "../../VaultErrors.abi-Boz4w97c.js";
|
|
24
|
+
import { b as Ge } from "../../buildVaultContextInputForClaim-DhBoQKyN.js";
|
|
25
|
+
import { V as We, b as we, a as ze, d as Ye, f as je } from "../../deriveVaultRoot-BcvmER1E.js";
|
|
26
|
+
import { p as Ze } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
27
|
+
import { c as Qe } from "../../btcTxHash-BRZ8_EZq.js";
|
|
28
|
+
import { B as as, a as es, c as ss, b as rs, d as ts, g as is, h as os, f as ns, s as ls, e as ps } from "../../psbtInputFields-CCVyaQMi.js";
|
|
29
|
+
import { B as Ps, D as cs, L as us, M as ds, c as gs, P as ms, b as Rs, a as As, S as _s, T as Ss, W as Ts, f as Cs, d as Is, p as fs, r as hs } from "../../fundPeginTransaction-CwhRbCQC.js";
|
|
30
|
+
import { U as Os, a as xs, e as bs, f as Fs, v as Ns } from "../../reservation-BZQABu4g.js";
|
|
31
|
+
import { V as ys, a as vs, b as Ds, i as Bs, v as Us } from "../../index-CVBtBjQ5.js";
|
|
32
|
+
import { A as Ls, C as Ks, D as Xs, J as Gs, a as ks, b as Ws, d as ws, P as zs, R as Ys, e as js, c as Js, V as Zs, i as qs, g as Qs, f as $s } from "../../state-CFn1rT74.js";
|
|
33
|
+
import { S as er, V as sr, c as rr, p as tr, v as ir, a as or } from "../../primeVpAuth-CiCdRNGf.js";
|
|
34
|
+
import { D as lr, g as pr, P as Er, a as Pr, b as cr, u as ur, v as dr, t as gr, w as mr, U as Rr, V as Ar, f as _r, m as Sr, j as Tr, c as Cr, l as Ir, p as fr, n as hr, e as Vr, h as Or, d as xr, i as br, o as Fr, r as Nr, k as Mr, q as yr, s as vr, x as Dr } from "../../toRefundInputs-CCMNAoRx.js";
|
|
35
|
+
import { J as Ur, l as Hr, A as Lr, a8 as Kr, C as Xr, D as Gr, n as kr, G as Wr, u as wr, W as zr, P as Yr, j as jr, v as Jr, w as Zr, ah as qr, ai as Qr, aj as $r, ak as at, ab as et, ac as st, ad as rt, ae as tt, af as it, Z as ot, S as nt, V as lt, a as pt, b as Et, d as Pt, e as ct, m as ut, f as dt, g as gt, t as mt, i as Rt, B as At, o as _t, a1 as St, ag as Tt, a9 as Ct, c as It, k as ft, h as ht, aa as Vt, E as Ot, K as xt, M as bt, a2 as Ft, X as Nt, x as Mt, y as yt, _ as vt, a3 as Dt, a4 as Bt, p as Ut, r as Ht, a5 as Lt, a6 as Kt, a7 as Xt, F as Gt, q as kt, H as Wt, I as wt, s as zt, N as Yt, O as jt, L as Jt, Q as Zt, R as qt, T as Qt, U as $t, Y as ai, $ as ei, z as si, a0 as ri } from "../../buildAndBroadcastReclaim-CcQ0b1be.js";
|
|
36
|
+
import { C as ii, P as oi, a as ni, c as li, g as pi, i as Ei } from "../../peginState-CIibG9S_.js";
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
Ls as AUTH_REJECTED_RPC_CODE,
|
|
39
|
+
Ur as ApplicationEntryPointMismatchError,
|
|
39
40
|
Ie as ApplicationRegistryABI,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Hr as BIP68NotMatureError,
|
|
41
|
+
Hr as ArtifactsVaultMismatchError,
|
|
42
|
+
Lr as AssertBindingError,
|
|
43
|
+
Kr as BIP68NotMatureError,
|
|
44
44
|
da as BITCOIN_ADDRESS_RE,
|
|
45
45
|
he as BTCVaultRegistryABI,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
Oe as BTCVaultRegistryKeyEpochsABI,
|
|
47
|
+
Ps as BTC_DUST_SAT,
|
|
48
|
+
as as BitcoinScriptType,
|
|
49
49
|
de as COMMISSION_BPS_HEADROOM,
|
|
50
50
|
ga as COMPRESSED_PUBKEY_HEX_LEN,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
xe as CONTRACT_ERRORS,
|
|
52
|
+
Xr as ChallengerSetMismatchError,
|
|
53
|
+
Ks as ClaimerPegoutStatusValue,
|
|
54
|
+
ii as ContractStatus,
|
|
55
|
+
Gr as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
56
|
+
lr as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
57
|
+
cs as DUST_THRESHOLD,
|
|
58
|
+
Xs as DaemonStatus,
|
|
59
|
+
kr as DelegatedClaimSigningIncompleteError,
|
|
60
|
+
pr as DepositTermsRejectedError,
|
|
61
|
+
be as EMPTY_REVERT_MESSAGE,
|
|
62
|
+
Wr as GraphFingerprintError,
|
|
62
63
|
ma as HEX_RE,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Gs as JSON_RPC_ERROR_CODES,
|
|
65
|
+
ks as JsonRpcClient,
|
|
66
|
+
Ws as JsonRpcError,
|
|
66
67
|
Ra as KNOWN_SCRIPT_PREFIXES,
|
|
67
|
-
|
|
68
|
+
us as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
68
69
|
ge as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
69
|
-
|
|
70
|
+
ds as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
70
71
|
Aa as MAX_REASONABLE_FEE_SATS,
|
|
71
|
-
|
|
72
|
+
gs as MAX_REASONABLE_PEGIN_VBYTES,
|
|
72
73
|
Ua as MEMPOOL_API_URLS,
|
|
73
74
|
Ha as MempoolNotFoundError,
|
|
74
75
|
Se as OnChainBtcVaultStatus,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
ms as P2TR_INPUT_SIZE,
|
|
77
|
+
Rs as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
77
78
|
s as PEGIN_DEPOSITOR_CLAIM_VOUT,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
wr as PEGIN_ETH_CONFIRMATIONS,
|
|
80
|
+
Fe as PEGIN_FINGERPRINT_CHANGED_SELECTOR,
|
|
81
|
+
Er as PEGIN_FINGERPRINT_DOMAIN,
|
|
82
|
+
Pr as PEGIN_FINGERPRINT_DOMAIN_PREIMAGE,
|
|
83
|
+
As as PEGIN_FIXED_OUTPUTS,
|
|
84
|
+
ws as POST_WOTS_STATUSES,
|
|
85
|
+
zs as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
86
|
+
zr as ParticipantKeyDriftError,
|
|
87
|
+
Yr as PayoutDestinationError,
|
|
88
|
+
jr as PayoutInputLeafError,
|
|
88
89
|
Fa as PayoutManager,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
oi as PeginAction,
|
|
91
|
+
Ne as PeginFingerprintChangedError,
|
|
92
|
+
cr as PeginFingerprintInputError,
|
|
92
93
|
fa as PeginManager,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
ur as PeginParamsAmbiguousError,
|
|
95
|
+
dr as PeginParamsIncompleteSpaceError,
|
|
96
|
+
gr as PeginParamsNotFoundError,
|
|
97
|
+
Jr as PeginRegistrationMissingError,
|
|
98
|
+
Zr as PeginRegistrationNotFinalError,
|
|
99
|
+
mr as PeginSizingIntegrityError,
|
|
100
|
+
He as ProtocolParamsABI,
|
|
100
101
|
r as PsbtSubstitutionError,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
qr as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
|
|
103
|
+
Qr as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
|
|
104
|
+
$r as RECLAIM_MAX_FEE_RATE_SATS_VB,
|
|
105
|
+
at as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
|
|
106
|
+
et as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
107
|
+
st as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
108
|
+
rt as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
109
|
+
tt as REFUND_VSIZE,
|
|
110
|
+
it as ReclaimUneconomicalError,
|
|
111
|
+
ot as RegisteredVaultVersionMismatchError,
|
|
111
112
|
Za as RegistrationLogsUnavailableError,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
Ys as RpcErrorCode,
|
|
114
|
+
_s as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
115
|
+
er as ServerIdentityError,
|
|
116
|
+
nt as SigningPlanMismatchError,
|
|
116
117
|
_a as TXID_RE,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
Ss as TX_BUFFER_SIZE_OVERHEAD,
|
|
119
|
+
Rr as UnanchoredPrePeginError,
|
|
120
|
+
Os as UtxoNotAvailableError,
|
|
121
|
+
We as VAULT_APP_NAME,
|
|
122
|
+
Ke as VAULT_ERROR_ABI,
|
|
123
|
+
js as VP_BATCH_MAX_SIZE,
|
|
124
|
+
Js as VP_TERMINAL_FAILURE_STATUSES,
|
|
125
|
+
Zs as VP_TRANSIENT_STATUSES,
|
|
124
126
|
qa as VaultClaimableByNotFoundError,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
lt as VaultIdBindingError,
|
|
128
|
+
ys as VaultProviderRpcClient,
|
|
129
|
+
Ar as VaultRootMismatchError,
|
|
128
130
|
pe as ViemOperationKeyReader,
|
|
129
131
|
me as ViemPeginRegistrationClient,
|
|
130
132
|
Te as ViemProtocolParamsReader,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
Ee as ViemUniversalChallengerReader,
|
|
134
|
+
Pe as ViemVaultKeeperReader,
|
|
133
135
|
Re as ViemVaultRegistryReader,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
vs as VpResponseValidationError,
|
|
137
|
+
sr as VpTokenRegistry,
|
|
138
|
+
Ts as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
137
139
|
Sa as X_ONLY_PUBKEY_HEX_LEN,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
pt as activateVault,
|
|
141
|
+
Et as activateVaultAndRedeem,
|
|
142
|
+
ni as activationDeadlineBlocksRemaining,
|
|
143
|
+
es as applyChangeOutputPolicy,
|
|
144
|
+
Pt as assembleWatchtowerArtifacts,
|
|
145
|
+
ct as assembleWatchtowerArtifactsFromSignatures,
|
|
146
|
+
ut as assertArtifactsUsableForVault,
|
|
147
|
+
dt as assertAssertBindsClaimAndPayout,
|
|
148
|
+
gt as assertChallengerSetMatchesVault,
|
|
149
|
+
_r as assertClaimBatchHomogeneous,
|
|
150
|
+
mt as assertClaimSpendsVault,
|
|
149
151
|
N as assertKeyPathSchnorrSignature,
|
|
150
152
|
Qa as assertOnChainBtcPubkey,
|
|
151
|
-
|
|
153
|
+
Rt as assertPayoutPaysRegisteredScript,
|
|
152
154
|
t as assertPsbtUnsignedTxMatches,
|
|
153
155
|
$a as assertRegisteredPayoutScriptBounds,
|
|
154
|
-
|
|
156
|
+
At as assertReturnedGraphMatchesFingerprint,
|
|
155
157
|
M as assertReturnedKeyPathSignatures,
|
|
156
158
|
i as assertScriptPathSchnorrSignature,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
_t as assertTermsMatchVault,
|
|
160
|
+
xs as assertUtxosAvailable,
|
|
159
161
|
g as assertValidVaultCoreVersion,
|
|
160
|
-
|
|
162
|
+
St as assertVaultProviderHintAccepted,
|
|
161
163
|
R as attachFinalizedAssert,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
Ds as batchPollByProvider,
|
|
165
|
+
Tt as buildAndBroadcastReclaim,
|
|
166
|
+
Ct as buildAndBroadcastRefund,
|
|
165
167
|
W as buildChallengeAssertPsbt,
|
|
166
168
|
ha as buildDepositTerms,
|
|
167
|
-
|
|
169
|
+
we as buildFundingOutpointsCommitment,
|
|
168
170
|
U as buildNoPayoutPsbt,
|
|
169
171
|
o as buildPayoutPsbt,
|
|
170
172
|
y as buildPeginInputPsbt,
|
|
171
|
-
|
|
173
|
+
Sr as buildPeginParamsCandidates,
|
|
172
174
|
n as buildPeginTxFromFundedPrePegin,
|
|
173
175
|
l as buildPrePeginPsbt,
|
|
174
176
|
H as buildReclaimPsbt,
|
|
175
177
|
L as buildRefundPsbt,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
ze as buildVaultContext,
|
|
179
|
+
Ge as buildVaultContextInputForClaim,
|
|
180
|
+
Qe as calculateBtcTxHash,
|
|
181
|
+
li as canPerformAction,
|
|
180
182
|
z as canonicalizeBtcPubkey,
|
|
181
183
|
Ae as capMaxAcceptableCommissionBps,
|
|
184
|
+
It as claimExpiredVault,
|
|
182
185
|
pa as combineAbortSignals,
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
ss as computeChangeOutputFeeSats,
|
|
187
|
+
Tr as computeFundedPrePeginFee,
|
|
185
188
|
Na as computeHashlock,
|
|
186
|
-
|
|
189
|
+
rs as computeMaxDeposit,
|
|
187
190
|
A as computeMinClaimValue,
|
|
188
191
|
_ as computeMinPeginFee,
|
|
189
192
|
p as computeNumLocalChallengers,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
ts as computePeginBaseFeeSats,
|
|
194
|
+
Cr as computePeginFingerprint,
|
|
195
|
+
Va as computeWotsBlockPublicKeysHash,
|
|
196
|
+
ft as copyAssertConnectorLeaf,
|
|
197
|
+
rr as createAuthenticatedVpClient,
|
|
198
|
+
E as createPayoutScript,
|
|
199
|
+
Pa as createTaprootScriptPathSignOptions,
|
|
197
200
|
ca as createTaprootScriptPathSignOptionsForInput,
|
|
198
201
|
Y as deriveBip86ScriptPubKeyHex,
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
ht as deriveClaimerWotsKeypair,
|
|
203
|
+
P as deriveDepositorClaimDescriptor,
|
|
201
204
|
c as deriveDepositorClaimScriptPubKey,
|
|
202
|
-
|
|
205
|
+
Ir as deriveHashlocksFromPrePegin,
|
|
203
206
|
j as deriveNativeSegwitAddress,
|
|
204
207
|
ae as derivePeginVaultId,
|
|
205
208
|
J as deriveTaprootAddress,
|
|
206
209
|
S as deriveVaultId,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
Ye as deriveVaultRoot,
|
|
211
|
+
Oa as deriveWotsBlocksFromSeed,
|
|
212
|
+
fr as describePeginParamsCandidate,
|
|
213
|
+
hr as describeUnresolvedVersion,
|
|
214
|
+
Vr as encodePeginFingerprintPreimage,
|
|
212
215
|
Z as ensureHexPrefix,
|
|
213
|
-
|
|
216
|
+
xa as ensurePrePeginTermsApproval,
|
|
214
217
|
K as estimateReclaimFeeSats,
|
|
215
|
-
|
|
218
|
+
Vt as estimateRefundFeeSats,
|
|
216
219
|
T as expandAuthAnchor,
|
|
217
220
|
C as expandHashlockSecret,
|
|
218
221
|
I as expandWotsSeed,
|
|
219
|
-
|
|
220
|
-
|
|
222
|
+
Me as extractErrorData,
|
|
223
|
+
bs as extractInputsFromTransaction,
|
|
221
224
|
u as extractPayoutSignature,
|
|
222
|
-
|
|
225
|
+
v as extractPeginInputSignature,
|
|
223
226
|
f as finalizePayout,
|
|
224
|
-
|
|
227
|
+
D as finalizePeginInputPsbt,
|
|
225
228
|
X as finalizeScriptPathWithSignatures,
|
|
226
229
|
h as finalizeWronglyChallenged,
|
|
227
|
-
|
|
230
|
+
Fs as findOverlappingPendingVaults,
|
|
228
231
|
ee as findRegistrationRecord,
|
|
229
|
-
|
|
232
|
+
Ot as fingerprintReturnedGraph,
|
|
230
233
|
q as formatSatoshisToBtc,
|
|
231
234
|
Ma as forwardDepositApproval,
|
|
232
|
-
|
|
233
|
-
|
|
235
|
+
je as forwardDeriveContextHash,
|
|
236
|
+
Cs as fundPeginTransaction,
|
|
234
237
|
La as getAddressTxs,
|
|
235
238
|
Ka as getAddressUtxos,
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
ye as getContractErrorMessage,
|
|
240
|
+
is as getDustThreshold,
|
|
238
241
|
Xa as getMempoolApiUrl,
|
|
239
242
|
Q as getNetwork,
|
|
240
243
|
Ga as getNetworkFees,
|
|
241
244
|
ka as getOutspend,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
+
pi as getPeginProtocolState,
|
|
246
|
+
os as getPsbtInputFields,
|
|
247
|
+
ns as getScriptType,
|
|
245
248
|
$ as getSortedXOnlyPubkeys,
|
|
246
249
|
Wa as getTipHeight,
|
|
247
250
|
wa as getTxHex,
|
|
248
251
|
za as getTxInfo,
|
|
249
252
|
Ya as getUtxoInfo,
|
|
250
|
-
|
|
253
|
+
ve as handleContractError,
|
|
251
254
|
aa as hexToUint8Array,
|
|
252
|
-
|
|
255
|
+
Ei as isActivationDeadlinePassedOnChain,
|
|
253
256
|
ea as isAddressFromPublicKey,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
xt as isApplicationEntryPointMismatchError,
|
|
258
|
+
qs as isAuthRejectedError,
|
|
259
|
+
bt as isDepositAmountValid,
|
|
260
|
+
Or as isDepositTermsRejectedError,
|
|
261
|
+
Ft as isHintAccepted,
|
|
259
262
|
De as isKnownContractError,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
Nt as isParticipantKeyDriftError,
|
|
264
|
+
Be as isPeginFingerprintChangedError,
|
|
265
|
+
xr as isPeginFingerprintInputError,
|
|
266
|
+
Mt as isPeginRegistrationMissingError,
|
|
267
|
+
yt as isPeginRegistrationNotFinalError,
|
|
268
|
+
Qs as isPegoutTerminalStatus,
|
|
269
|
+
$s as isRecognizedPegoutStatus,
|
|
270
|
+
vt as isRegisteredVaultVersionMismatchError,
|
|
268
271
|
se as isRegistrationLogsUnavailableError,
|
|
269
|
-
|
|
272
|
+
Bs as isUnrecognizedDaemonStatusError,
|
|
270
273
|
sa as isValidHex,
|
|
271
274
|
re as isVaultClaimableByNotFoundError,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
br as isWotsMismatchError,
|
|
276
|
+
Dt as matchKeyHint,
|
|
277
|
+
Bt as matchKeySetHint,
|
|
278
|
+
Fr as orderClaimBatchByHtlcVout,
|
|
279
|
+
Ze as parseFundingOutpointsFromTx,
|
|
280
|
+
Is as parseUnfundedWasmTransaction,
|
|
281
|
+
fs as peginOutputCount,
|
|
282
|
+
V as peginP2aAnchorOutput,
|
|
283
|
+
O as pinPegoutProof,
|
|
284
|
+
Ut as planDelegatedClaimSigning,
|
|
285
|
+
tr as primeVpTokenRegistry,
|
|
283
286
|
ra as processPublicKeyToXOnly,
|
|
284
287
|
ja as pushTx,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
hs as rateBasedTxBufferFee,
|
|
289
|
+
Ht as readDelegatedClaimVaultContext,
|
|
290
|
+
Lt as readStampedParticipantKeys,
|
|
291
|
+
Nr as rebuildDepositTermsCore,
|
|
292
|
+
Mr as rebuildDepositTermsForClaim,
|
|
290
293
|
G as reclaimVsize,
|
|
291
|
-
|
|
294
|
+
yr as reconstructPeginParams,
|
|
292
295
|
te as registrationPrePeginTxHash,
|
|
293
296
|
ya as requireChangeAddress,
|
|
294
|
-
|
|
295
|
-
|
|
297
|
+
Kt as resolveCurrentParticipantKeys,
|
|
298
|
+
Xt as resolveParticipantKeysAtEpochs,
|
|
296
299
|
ce as resolveProtocolAddresses,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
Gt as runDepositorPresignFlow,
|
|
301
|
+
vr as selectSiblingRegistrations,
|
|
302
|
+
ls as selectUtxosForPegin,
|
|
303
|
+
ps as shouldAddChangeOutput,
|
|
304
|
+
kt as signDelegatedClaimPlan,
|
|
305
|
+
Wt as signDepositorGraph,
|
|
303
306
|
ta as stripHexPrefix,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
wt as submitWotsPublicKey,
|
|
308
|
+
zt as summarizeWatchtowerArtifacts,
|
|
309
|
+
x as supportedTxGraphVersions,
|
|
310
|
+
va as supportsDepositApproval,
|
|
311
|
+
Dr as toRefundInputs,
|
|
309
312
|
ia as toXOnly,
|
|
310
313
|
oa as uint8ArrayToHex,
|
|
311
|
-
|
|
312
|
-
|
|
314
|
+
Yt as validateDepositAmount,
|
|
315
|
+
jt as validateMultiVaultDepositInputs,
|
|
313
316
|
ie as validateOffchainParams,
|
|
314
|
-
|
|
317
|
+
Jt as validateOnChainParticipantKeys,
|
|
315
318
|
oe as validatePegInConfiguration,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
b as validatePeginP2aAnchor,
|
|
320
|
+
Zt as validateProviderSelection,
|
|
321
|
+
qt as validateRemainingCapacity,
|
|
322
|
+
Us as validateRequestDepositorClaimerArtifactsResponse,
|
|
323
|
+
Da as validateSecretAgainstHashlock,
|
|
321
324
|
ne as validateTBVProtocolParams,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
+
Ns as validateUtxosAvailable,
|
|
326
|
+
Qt as validateVaultAmounts,
|
|
327
|
+
$t as validateVaultProviderPubkey,
|
|
325
328
|
na as validateWalletPubkey,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
ai as verifyRegisteredParticipantKeys,
|
|
330
|
+
ei as verifyRegisteredVaultVersions,
|
|
331
|
+
ir as verifyServerIdentity,
|
|
332
|
+
or as vpTokenRegistry,
|
|
333
|
+
si as waitForPeginRegistrationDepth,
|
|
334
|
+
ri as waitForPeginStatus,
|
|
332
335
|
Ca as waitForTransactionReceiptSmartAware
|
|
333
336
|
};
|
|
334
337
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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-BHplS4dM.cjs"),a=require("../../../PayoutManager-DOdsgcUR.cjs");exports.PeginManager=e.PeginManager;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -119,4 +119,54 @@ export interface ActivateVaultAndRedeemInput<R extends EthContractWriteResult =
|
|
|
119
119
|
* @throws `AbortError` / caller-provided abort reason if `signal` aborts
|
|
120
120
|
*/
|
|
121
121
|
export declare function activateVaultAndRedeem<R extends EthContractWriteResult = EthContractWriteResult>(input: ActivateVaultAndRedeemInput<R>): Promise<R>;
|
|
122
|
+
export interface ClaimExpiredVaultInput<R extends EthContractWriteResult = EthContractWriteResult> {
|
|
123
|
+
/** BTCVaultRegistry contract address (env-specific). */
|
|
124
|
+
btcVaultRegistryAddress: Address;
|
|
125
|
+
/** Vault ID (bytes32, 0x-prefixed). */
|
|
126
|
+
vaultId: Hex;
|
|
127
|
+
/**
|
|
128
|
+
* HTLC secret preimage (bytes32). A missing `0x` prefix or an uppercase
|
|
129
|
+
* `0X` prefix is normalised before validation.
|
|
130
|
+
*/
|
|
131
|
+
secret: string;
|
|
132
|
+
/**
|
|
133
|
+
* The vault's on-chain hashlock. Required, unlike the activation entry
|
|
134
|
+
* points: the claim is offered only after the secret is presumed leaked, and
|
|
135
|
+
* the SDK still refuses to place a secret in calldata that does not match
|
|
136
|
+
* the commitment it reveals against.
|
|
137
|
+
*/
|
|
138
|
+
hashlock: Hex;
|
|
139
|
+
/** Caller-provided write callback — see {@link EthContractWriter}. */
|
|
140
|
+
writeContract: EthContractWriter<R>;
|
|
141
|
+
/**
|
|
142
|
+
* Optional abort signal. Checked before validation runs; since validation
|
|
143
|
+
* is fully synchronous, cancellation between validation and the write is
|
|
144
|
+
* not observable and callers should rely on the transport's own
|
|
145
|
+
* cancellation support for that window.
|
|
146
|
+
*/
|
|
147
|
+
signal?: AbortSignal;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Claim an expired vault: reveal the HTLC secret for a vault that reached
|
|
151
|
+
* Verified but expired before activation, moving it to Redeemed so the BTC is
|
|
152
|
+
* claimed out of the PegIn on Bitcoin to the vault provider and depositor keys
|
|
153
|
+
* recorded on chain.
|
|
154
|
+
*
|
|
155
|
+
* This is the only exit for a vault whose Pre-PegIn HTLC was spent by the
|
|
156
|
+
* PegIn after expiry, which removes the depositor's refund path. The contract
|
|
157
|
+
* (`claimExpiredVault`) accepts it from any caller, requires status Expired
|
|
158
|
+
* with `verifiedAt > 0`, rejects it after the vault's `claimExpiredUntil`
|
|
159
|
+
* block, and checks `sha256(s) == hashlock`.
|
|
160
|
+
*
|
|
161
|
+
* Revealing the secret while the HTLC is still unspent lets anyone broadcast
|
|
162
|
+
* the PegIn and race the depositor's own refund. Callers must offer this only
|
|
163
|
+
* once the PegIn has spent the HTLC.
|
|
164
|
+
*
|
|
165
|
+
* @throws `Error` if `btcVaultRegistryAddress` is not a valid 20-byte address
|
|
166
|
+
* @throws `Error` if `vaultId`, `secret` or `hashlock` is not a valid 32-byte
|
|
167
|
+
* hex, or if `sha256(secret) != hashlock`
|
|
168
|
+
* @throws whatever the injected `writeContract` throws
|
|
169
|
+
* @throws `AbortError` / caller-provided abort reason if `signal` aborts
|
|
170
|
+
*/
|
|
171
|
+
export declare function claimExpiredVault<R extends EthContractWriteResult = EthContractWriteResult>(input: ClaimExpiredVaultInput<R>): Promise<R>;
|
|
122
172
|
//# sourceMappingURL=activateVault.d.ts.map
|