@babylonlabs-io/ts-sdk 2.0.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PayoutManager-CpfQjtL0.cjs → PayoutManager-B6GFbG3X.cjs} +2 -2
- package/dist/{PayoutManager-CpfQjtL0.cjs.map → PayoutManager-B6GFbG3X.cjs.map} +1 -1
- package/dist/{PayoutManager-CHTOwj0E.js → PayoutManager-BSwbUQeF.js} +2 -2
- package/dist/{PayoutManager-CHTOwj0E.js.map → PayoutManager-BSwbUQeF.js.map} +1 -1
- package/dist/{PeginManager-DEldv_Ro.js → PeginManager-CKf7Bjmj.js} +6 -6
- package/dist/PeginManager-CKf7Bjmj.js.map +1 -0
- package/dist/{PeginManager-6tjlGd0t.cjs → PeginManager-Dt2Z5ljw.cjs} +2 -2
- package/dist/PeginManager-Dt2Z5ljw.cjs.map +1 -0
- package/dist/{bip322Verify-DSco3Yhl.js → bip322Verify-BXYrHBh8.js} +2 -2
- package/dist/{bip322Verify-DSco3Yhl.js.map → bip322Verify-BXYrHBh8.js.map} +1 -1
- package/dist/{bip322Verify-B7_gIhRk.cjs → bip322Verify-DLxJR9CQ.cjs} +2 -2
- package/dist/{bip322Verify-B7_gIhRk.cjs.map → bip322Verify-DLxJR9CQ.cjs.map} +1 -1
- package/dist/buildAndBroadcastReclaim-BDc-SK9i.cjs +2 -0
- package/dist/buildAndBroadcastReclaim-BDc-SK9i.cjs.map +1 -0
- package/dist/{buildAndBroadcastReclaim-CqO2DoP8.js → buildAndBroadcastReclaim-T5ZFPUpM.js} +943 -732
- package/dist/buildAndBroadcastReclaim-T5ZFPUpM.js.map +1 -0
- package/dist/{deriveVaultRoot-BwbXmN0x.js → deriveVaultRoot-BcvmER1E.js} +2 -2
- package/dist/{deriveVaultRoot-BwbXmN0x.js.map → deriveVaultRoot-BcvmER1E.js.map} +1 -1
- package/dist/{deriveVaultRoot-DvhkHzNb.cjs → deriveVaultRoot-C3uqnJto.cjs} +2 -2
- package/dist/{deriveVaultRoot-DvhkHzNb.cjs.map → deriveVaultRoot-C3uqnJto.cjs.map} +1 -1
- package/dist/{index-DQ5bfoT3.js → index-B6w5MM-8.js} +147 -124
- package/dist/index-B6w5MM-8.js.map +1 -0
- package/dist/index-EHLYplSd.cjs +2 -0
- package/dist/index-EHLYplSd.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +163 -158
- package/dist/{onChainBtcPubkey-BXry_CM4.cjs → onChainBtcPubkey-BlzxYImF.cjs} +2 -2
- package/dist/{onChainBtcPubkey-BXry_CM4.cjs.map → onChainBtcPubkey-BlzxYImF.cjs.map} +1 -1
- package/dist/{onChainBtcPubkey-C1WqyxPM.js → onChainBtcPubkey-CCTdl53s.js} +2 -2
- package/dist/{onChainBtcPubkey-C1WqyxPM.js.map → onChainBtcPubkey-CCTdl53s.js.map} +1 -1
- package/dist/{pegin-registration-client-BNV44jzw.cjs → pegin-registration-client-BdJ6c7si.cjs} +2 -2
- package/dist/{pegin-registration-client-BNV44jzw.cjs.map → pegin-registration-client-BdJ6c7si.cjs.map} +1 -1
- package/dist/{pegin-registration-client-1sZ-74UC.js → pegin-registration-client-C5Hktrja.js} +3 -3
- package/dist/{pegin-registration-client-1sZ-74UC.js.map → pegin-registration-client-C5Hktrja.js.map} +1 -1
- package/dist/peginState-BU2ONFXF.js +68 -0
- package/dist/{peginState-CxDiaKuk.js.map → peginState-BU2ONFXF.js.map} +1 -1
- package/dist/peginState-DUv10EJR.cjs +2 -0
- package/dist/{peginState-eaQ4IO_R.cjs.map → peginState-DUv10EJR.cjs.map} +1 -1
- package/dist/{primeVpAuth-DdfHSC53.js → primeVpAuth-Bdy_B_Sq.js} +5 -5
- package/dist/{primeVpAuth-DdfHSC53.js.map → primeVpAuth-Bdy_B_Sq.js.map} +1 -1
- package/dist/primeVpAuth-CQRsu6VB.cjs +2 -0
- package/dist/{primeVpAuth-BOGKniTl.cjs.map → primeVpAuth-CQRsu6VB.cjs.map} +1 -1
- package/dist/{reservation-Cj9F0rP9.js → reservation-DOAHVT3B.js} +2 -2
- package/dist/{reservation-Cj9F0rP9.js.map → reservation-DOAHVT3B.js.map} +1 -1
- package/dist/{reservation-Dr2HLCxx.cjs → reservation-ECxjZi5t.cjs} +2 -2
- package/dist/{reservation-Dr2HLCxx.cjs.map → reservation-ECxjZi5t.cjs.map} +1 -1
- package/dist/sha2-Ce6KewYx.cjs +2 -0
- package/dist/{sha2-DI0-0SHr.cjs.map → sha2-Ce6KewYx.cjs.map} +1 -1
- package/dist/{sha2-CLpQd0Rd.js → sha2-YqVHJiFj.js} +91 -77
- package/dist/{sha2-CLpQd0Rd.js.map → sha2-YqVHJiFj.js.map} +1 -1
- package/dist/state-DMFlvLL3.cjs +2 -0
- package/dist/state-DMFlvLL3.cjs.map +1 -0
- package/dist/{json-rpc-client-DuUARJvV.js → state-mE-QfITd.js} +91 -69
- package/dist/state-mE-QfITd.js.map +1 -0
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.js +3 -3
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +27 -26
- package/dist/tbv/core/clients/vault-provider/api.d.ts +2 -1
- package/dist/tbv/core/clients/vault-provider/api.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/index.d.ts +1 -1
- package/dist/tbv/core/clients/vault-provider/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.d.ts +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.js +10 -9
- package/dist/tbv/core/clients/vault-provider/types.d.ts +7 -3
- package/dist/tbv/core/clients/vault-provider/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/validators.d.ts +8 -0
- package/dist/tbv/core/clients/vault-provider/validators.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +163 -158
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/services/deposit/__tests__/graphFingerprint.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/graphFingerprint.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/graphFingerprint.d.ts +115 -0
- package/dist/tbv/core/services/deposit/graphFingerprint.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts +2 -1
- package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/peginState.d.ts +23 -0
- package/dist/tbv/core/services/deposit/peginState.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +11 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +52 -47
- package/dist/tbv/core/services/index.js.map +1 -1
- package/dist/tbv/core/services/pegout/state.d.ts +8 -3
- package/dist/tbv/core/services/pegout/state.d.ts.map +1 -1
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.js +1 -1
- package/dist/tbv/core/vault-secrets/index.cjs +1 -1
- package/dist/tbv/core/vault-secrets/index.js +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +163 -158
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/{toRefundInputs-BaN9XluU.cjs → toRefundInputs-B_GlIXjk.cjs} +2 -2
- package/dist/{toRefundInputs-BaN9XluU.cjs.map → toRefundInputs-B_GlIXjk.cjs.map} +1 -1
- package/dist/{toRefundInputs-mtuuYezp.js → toRefundInputs-DIIdhjvu.js} +5 -5
- package/dist/{toRefundInputs-mtuuYezp.js.map → toRefundInputs-DIIdhjvu.js.map} +1 -1
- package/dist/{types-BuxreSq4.cjs → types-DJxOEU3P.cjs} +2 -2
- package/dist/{types-BuxreSq4.cjs.map → types-DJxOEU3P.cjs.map} +1 -1
- package/dist/{types-BdCEoANP.js → types-Dz1kVqn6.js} +2 -2
- package/dist/{types-BdCEoANP.js.map → types-Dz1kVqn6.js.map} +1 -1
- package/package.json +1 -1
- package/dist/PeginManager-6tjlGd0t.cjs.map +0 -1
- package/dist/PeginManager-DEldv_Ro.js.map +0 -1
- package/dist/buildAndBroadcastReclaim-BwT6Jxp5.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-BwT6Jxp5.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-CqO2DoP8.js.map +0 -1
- package/dist/index-CK1Xvq4K.cjs +0 -2
- package/dist/index-CK1Xvq4K.cjs.map +0 -1
- package/dist/index-DQ5bfoT3.js.map +0 -1
- package/dist/json-rpc-client-BiAmg_ho.cjs +0 -2
- package/dist/json-rpc-client-BiAmg_ho.cjs.map +0 -1
- package/dist/json-rpc-client-DuUARJvV.js.map +0 -1
- package/dist/peginState-CxDiaKuk.js +0 -63
- package/dist/peginState-eaQ4IO_R.cjs +0 -2
- package/dist/primeVpAuth-BOGKniTl.cjs +0 -2
- package/dist/sha2-DI0-0SHr.cjs +0 -2
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { P as s, h as r, i as t, j as i, f as o, b as n, a as
|
|
1
|
+
import { P as s, h as r, i as t, j as i, f as o, b as n, a as p, c as P, k as E, d as l, e as c, g as u } from "../../verifyScriptPathSchnorrSignature-CpjSTfMj.js";
|
|
2
2
|
import { a as g } from "../../secp256k1-D-H9jmd7.js";
|
|
3
|
-
import { attachFinalizedAssert as
|
|
3
|
+
import { attachFinalizedAssert as A, computeMinClaimValue as _, computeMinPeginFee as m, deriveVaultId as T, expandAuthAnchor as S, expandHashlockSecret as C, expandWotsSeed as I, finalizePayout as f, finalizeWronglyChallenged as h, peginP2aAnchorOutput as O, pinPegoutProof as N, supportedTxGraphVersions as b, validatePeginP2aAnchor as V } from "./wasm/index.js";
|
|
4
4
|
import { a as F, c as M, b as v, e as y, f as D } from "../../verifyKeyPathSchnorrSignature-BQHNhRj6.js";
|
|
5
|
-
import { c as B, a as H, b as L, e as K, f as X, r as
|
|
5
|
+
import { c as B, a as H, b as L, e as K, f as X, r as G } from "../../noPayout-qBXWKwav.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
|
-
import { c as
|
|
8
|
+
import { c as Pa } from "../../abortSignals-BPpAUL1Z.js";
|
|
9
9
|
import { c as la, a as ca, b as ua } from "../../signing-Dhr2t0Z6.js";
|
|
10
|
-
import { B as ga, C as
|
|
10
|
+
import { B as ga, C as Ra, H as Aa, K as _a, M as ma, T as Ta, X as Sa } from "../../validation-OSC0xTHB.js";
|
|
11
11
|
import { waitForTransactionReceiptSmartAware as Ia } from "./utils/eth/index.js";
|
|
12
|
-
import { P as
|
|
13
|
-
import { P as Fa, c as Ma, f as va, r as ya, s as Da, v as Ua } from "../../PayoutManager-
|
|
14
|
-
import { MEMPOOL_API_URLS as Ha, getAddressTxs as La, getAddressUtxos as Ka, getMempoolApiUrl as Xa, getNetworkFees as
|
|
15
|
-
import { O as Za, V as qa, a as Qa, b as $a, c as ae, r as ee } from "../../types-
|
|
16
|
-
import { a as re, d as te } from "../../onChainBtcPubkey-
|
|
17
|
-
import { C as oe, M as ne, R as
|
|
18
|
-
import { A as
|
|
12
|
+
import { P as ha, b as Oa, c as Na, d as ba, e as Va } from "../../PeginManager-CKf7Bjmj.js";
|
|
13
|
+
import { P as Fa, c as Ma, f as va, r as ya, s as Da, v as Ua } from "../../PayoutManager-BSwbUQeF.js";
|
|
14
|
+
import { MEMPOOL_API_URLS 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
|
+
import { O as Za, V as qa, a as Qa, b as $a, c as ae, r as ee } from "../../types-Dz1kVqn6.js";
|
|
16
|
+
import { a as re, d as te } from "../../onChainBtcPubkey-CCTdl53s.js";
|
|
17
|
+
import { C as oe, M as ne, R as pe, V as Pe, c as Ee, d as le, i as ce, v as ue, a as de, b as ge } from "../../pegin-registration-client-C5Hktrja.js";
|
|
18
|
+
import { A as Ae, P as _e } from "../../ProtocolParams.abi-q0AidvYX.js";
|
|
19
19
|
import { B as Te } from "../../BTCVaultRegistry.abi-B0x9_Bza.js";
|
|
20
|
-
import { B as Ce, C as Ie, P as
|
|
21
|
-
import { V as Me, b as ve, a as ye, d as De, f as Ue } from "../../deriveVaultRoot-
|
|
20
|
+
import { B as Ce, C as Ie, P as fe, a as he, e as Oe, g as Ne, h as be, i as Ve, b as xe } from "../../BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js";
|
|
21
|
+
import { V as Me, b as ve, a as ye, d as De, f as Ue } from "../../deriveVaultRoot-BcvmER1E.js";
|
|
22
22
|
import { p as He } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
23
|
-
import { B as Ke, a as Xe, c as
|
|
24
|
-
import { B as qe, D as Qe, L as $e, M as as, c as es, P as ss, b as rs, a as ts, S as is, T as os, W as ns, f as
|
|
25
|
-
import { U as us, a as ds, e as gs, f as
|
|
26
|
-
import { V as ms, a as Ts, b as Ss,
|
|
27
|
-
import { A as Os, D as
|
|
28
|
-
import { S as
|
|
29
|
-
import { D as
|
|
30
|
-
import {
|
|
31
|
-
import { C as
|
|
23
|
+
import { B as Ke, a as Xe, c as Ge, b as ke, d as We, g as we, h as ze, f as Ye, s as je, e as Je } from "../../psbtInputFields-CCVyaQMi.js";
|
|
24
|
+
import { B as qe, D as Qe, L as $e, M as as, c as es, P as ss, b as rs, a as ts, S as is, T as os, W as ns, f as ps, d as Ps, p as Es, r as ls } from "../../fundPeginTransaction-CwhRbCQC.js";
|
|
25
|
+
import { U as us, a as ds, e as gs, f as Rs, v as As } from "../../reservation-DOAHVT3B.js";
|
|
26
|
+
import { V as ms, a as Ts, b as Ss, i as Cs, v as Is } from "../../index-B6w5MM-8.js";
|
|
27
|
+
import { A as hs, C as Os, D as Ns, J as bs, a as Vs, b as xs, d as Fs, P as Ms, R as vs, e as ys, c as Ds, V as Us, i as Bs, g as Hs, f as Ls } from "../../state-mE-QfITd.js";
|
|
28
|
+
import { S as Xs, V as Gs, c as ks, p as Ws, v as ws, a as zs } from "../../primeVpAuth-Bdy_B_Sq.js";
|
|
29
|
+
import { D as js, f as Js, P as Zs, a as qs, b as Qs, o as $s, p as ar, n as er, q as sr, U as rr, V as tr, j as ir, c as or, h as nr, l as pr, k as Pr, e as Er, g as lr, d as cr, i as ur, r as dr, m as gr, t as Rr } from "../../toRefundInputs-DIIdhjvu.js";
|
|
30
|
+
import { t as _r, A as mr, X as Tr, C as Sr, D as Cr, G as Ir, i as fr, I as hr, P as Or, j as Nr, k as br, a4 as Vr, a5 as xr, a6 as Fr, a7 as Mr, _ as vr, $ as yr, a0 as Dr, a1 as Ur, a2 as Br, R as Hr, V as Lr, a as Kr, b as Xr, c as Gr, e as kr, f as Wr, h as wr, g as zr, n as Yr, O as jr, a3 as Jr, Y as Zr, d as qr, Z as Qr, o as $r, u as at, x as et, Q as st, J as rt, l as tt, m as it, L as ot, S as nt, T as pt, U as Pt, W as Et, r as lt, p as ct, q as ut, s as dt, y as gt, z as Rt, v as At, B as _t, E as mt, F as Tt, H as St, K as Ct, M as It, w as ft, N as ht } from "../../buildAndBroadcastReclaim-T5ZFPUpM.js";
|
|
31
|
+
import { C as Nt, P as bt, a as Vt, c as xt, g as Ft, i as Mt } from "../../peginState-BU2ONFXF.js";
|
|
32
32
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
hs as AUTH_REJECTED_RPC_CODE,
|
|
34
|
+
_r as ApplicationEntryPointMismatchError,
|
|
35
|
+
Ae as ApplicationRegistryABI,
|
|
36
|
+
mr as ArtifactsVaultMismatchError,
|
|
37
|
+
Tr as BIP68NotMatureError,
|
|
38
38
|
ga as BITCOIN_ADDRESS_RE,
|
|
39
39
|
Te as BTCVaultRegistryABI,
|
|
40
40
|
Ce as BTCVaultRegistryKeyEpochsABI,
|
|
41
41
|
qe as BTC_DUST_SAT,
|
|
42
42
|
Ke as BitcoinScriptType,
|
|
43
43
|
oe as COMMISSION_BPS_HEADROOM,
|
|
44
|
-
|
|
44
|
+
Ra as COMPRESSED_PUBKEY_HEX_LEN,
|
|
45
45
|
Ie as CONTRACT_ERRORS,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
Sr as ChallengerSetMismatchError,
|
|
47
|
+
Os as ClaimerPegoutStatusValue,
|
|
48
|
+
Nt as ContractStatus,
|
|
49
|
+
Cr as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
50
|
+
js as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
51
51
|
Qe as DUST_THRESHOLD,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
Ns as DaemonStatus,
|
|
53
|
+
Js as DepositTermsRejectedError,
|
|
54
|
+
Ir as GraphFingerprintError,
|
|
55
|
+
Aa as HEX_RE,
|
|
56
|
+
bs as JSON_RPC_ERROR_CODES,
|
|
57
|
+
Vs as JsonRpcClient,
|
|
58
|
+
xs as JsonRpcError,
|
|
58
59
|
_a as KNOWN_SCRIPT_PREFIXES,
|
|
59
60
|
$e as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
60
61
|
ne as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
@@ -66,156 +67,159 @@ export {
|
|
|
66
67
|
ss as P2TR_INPUT_SIZE,
|
|
67
68
|
rs as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
68
69
|
s as PEGIN_DEPOSITOR_CLAIM_VOUT,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
fr as PEGIN_ETH_CONFIRMATIONS,
|
|
71
|
+
fe as PEGIN_FINGERPRINT_CHANGED_SELECTOR,
|
|
72
|
+
Zs as PEGIN_FINGERPRINT_DOMAIN,
|
|
73
|
+
qs as PEGIN_FINGERPRINT_DOMAIN_PREIMAGE,
|
|
73
74
|
ts as PEGIN_FIXED_OUTPUTS,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
Fs as POST_WOTS_STATUSES,
|
|
76
|
+
Ms as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
77
|
+
hr as ParticipantKeyDriftError,
|
|
78
|
+
Or as PayoutDestinationError,
|
|
78
79
|
Fa as PayoutManager,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
bt as PeginAction,
|
|
81
|
+
he as PeginFingerprintChangedError,
|
|
82
|
+
Qs as PeginFingerprintInputError,
|
|
83
|
+
ha as PeginManager,
|
|
84
|
+
$s as PeginParamsAmbiguousError,
|
|
85
|
+
ar as PeginParamsIncompleteSpaceError,
|
|
86
|
+
er as PeginParamsNotFoundError,
|
|
87
|
+
Nr as PeginRegistrationMissingError,
|
|
88
|
+
br as PeginRegistrationNotFinalError,
|
|
89
|
+
sr as PeginSizingIntegrityError,
|
|
89
90
|
_e as ProtocolParamsABI,
|
|
90
91
|
r as PsbtSubstitutionError,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
Vr as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
|
|
93
|
+
xr as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
|
|
94
|
+
Fr as RECLAIM_MAX_FEE_RATE_SATS_VB,
|
|
95
|
+
Mr as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
|
|
96
|
+
vr as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
97
|
+
yr as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
98
|
+
Dr as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
99
|
+
Ur as REFUND_VSIZE,
|
|
100
|
+
Br as ReclaimUneconomicalError,
|
|
101
|
+
Hr as RegisteredVaultVersionMismatchError,
|
|
102
|
+
pe as RegistrationLogsUnavailableError,
|
|
103
|
+
vs as RpcErrorCode,
|
|
103
104
|
is as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
104
|
-
|
|
105
|
+
Xs as ServerIdentityError,
|
|
105
106
|
Ta as TXID_RE,
|
|
106
107
|
os as TX_BUFFER_SIZE_OVERHEAD,
|
|
107
|
-
|
|
108
|
+
rr as UnanchoredPrePeginError,
|
|
108
109
|
us as UtxoNotAvailableError,
|
|
109
110
|
Me as VAULT_APP_NAME,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
ys as VP_BATCH_MAX_SIZE,
|
|
112
|
+
Ds as VP_TERMINAL_FAILURE_STATUSES,
|
|
113
|
+
Us as VP_TRANSIENT_STATUSES,
|
|
114
|
+
Lr as VaultIdBindingError,
|
|
114
115
|
ms as VaultProviderRpcClient,
|
|
115
|
-
|
|
116
|
+
tr as VaultRootMismatchError,
|
|
116
117
|
qa as ViemOperationKeyReader,
|
|
117
|
-
|
|
118
|
+
Pe as ViemPeginRegistrationClient,
|
|
118
119
|
Qa as ViemProtocolParamsReader,
|
|
119
120
|
$a as ViemUniversalChallengerReader,
|
|
120
121
|
ae as ViemVaultKeeperReader,
|
|
121
122
|
Ee as ViemVaultRegistryReader,
|
|
122
123
|
Ts as VpResponseValidationError,
|
|
123
|
-
|
|
124
|
+
Gs as VpTokenRegistry,
|
|
124
125
|
ns as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
125
126
|
Sa as X_ONLY_PUBKEY_HEX_LEN,
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
Kr as activateVault,
|
|
128
|
+
Xr as activateVaultAndRedeem,
|
|
129
|
+
Vt as activationDeadlineBlocksRemaining,
|
|
128
130
|
Xe as applyChangeOutputPolicy,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
Gr as assembleWatchtowerArtifacts,
|
|
132
|
+
kr as assertArtifactsUsableForVault,
|
|
133
|
+
Wr as assertChallengerSetMatchesVault,
|
|
134
|
+
wr as assertClaimSpendsVault,
|
|
133
135
|
F as assertKeyPathSchnorrSignature,
|
|
134
136
|
re as assertOnChainBtcPubkey,
|
|
135
|
-
|
|
137
|
+
zr as assertPayoutPaysRegisteredScript,
|
|
136
138
|
t as assertPsbtUnsignedTxMatches,
|
|
139
|
+
Yr as assertReturnedGraphMatchesFingerprint,
|
|
137
140
|
M as assertReturnedKeyPathSignatures,
|
|
138
141
|
i as assertScriptPathSchnorrSignature,
|
|
139
142
|
ds as assertUtxosAvailable,
|
|
140
143
|
g as assertValidVaultCoreVersion,
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
jr as assertVaultProviderHintAccepted,
|
|
145
|
+
A as attachFinalizedAssert,
|
|
143
146
|
Ss as batchPollByProvider,
|
|
144
|
-
|
|
145
|
-
|
|
147
|
+
Jr as buildAndBroadcastReclaim,
|
|
148
|
+
Zr as buildAndBroadcastRefund,
|
|
146
149
|
W as buildChallengeAssertPsbt,
|
|
147
|
-
|
|
150
|
+
Oa as buildDepositTerms,
|
|
148
151
|
ve as buildFundingOutpointsCommitment,
|
|
149
152
|
B as buildNoPayoutPsbt,
|
|
150
153
|
o as buildPayoutPsbt,
|
|
151
154
|
v as buildPeginInputPsbt,
|
|
152
|
-
|
|
155
|
+
ir as buildPeginParamsCandidates,
|
|
153
156
|
n as buildPeginTxFromFundedPrePegin,
|
|
154
|
-
|
|
157
|
+
p as buildPrePeginPsbt,
|
|
155
158
|
H as buildReclaimPsbt,
|
|
156
159
|
L as buildRefundPsbt,
|
|
157
160
|
ye as buildVaultContext,
|
|
158
161
|
la as calculateBtcTxHash,
|
|
159
|
-
|
|
162
|
+
xt as canPerformAction,
|
|
160
163
|
z as canonicalizeBtcPubkey,
|
|
161
164
|
le as capMaxAcceptableCommissionBps,
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
Pa as combineAbortSignals,
|
|
166
|
+
Ge as computeChangeOutputFeeSats,
|
|
164
167
|
Ma as computeHashlock,
|
|
165
|
-
|
|
168
|
+
ke as computeMaxDeposit,
|
|
166
169
|
_ as computeMinClaimValue,
|
|
167
170
|
m as computeMinPeginFee,
|
|
168
|
-
|
|
171
|
+
P as computeNumLocalChallengers,
|
|
169
172
|
We as computePeginBaseFeeSats,
|
|
170
|
-
|
|
173
|
+
or as computePeginFingerprint,
|
|
171
174
|
Na as computeWotsBlockPublicKeysHash,
|
|
172
|
-
|
|
175
|
+
ks as createAuthenticatedVpClient,
|
|
173
176
|
E as createPayoutScript,
|
|
174
177
|
ca as createTaprootScriptPathSignOptions,
|
|
175
178
|
ua as createTaprootScriptPathSignOptionsForInput,
|
|
176
179
|
Y as deriveBip86ScriptPubKeyHex,
|
|
177
|
-
|
|
180
|
+
qr as deriveClaimerWotsKeypair,
|
|
178
181
|
l as deriveDepositorClaimDescriptor,
|
|
179
182
|
c as deriveDepositorClaimScriptPubKey,
|
|
180
|
-
|
|
183
|
+
nr as deriveHashlocksFromPrePegin,
|
|
181
184
|
j as deriveNativeSegwitAddress,
|
|
182
185
|
te as derivePeginVaultId,
|
|
183
186
|
J as deriveTaprootAddress,
|
|
184
187
|
T as deriveVaultId,
|
|
185
188
|
De as deriveVaultRoot,
|
|
186
189
|
ba as deriveWotsBlocksFromSeed,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
pr as describePeginParamsCandidate,
|
|
191
|
+
Pr as describeUnresolvedVersion,
|
|
192
|
+
Er as encodePeginFingerprintPreimage,
|
|
190
193
|
Z as ensureHexPrefix,
|
|
191
194
|
Va as ensurePrePeginTermsApproval,
|
|
192
195
|
K as estimateReclaimFeeSats,
|
|
193
|
-
|
|
196
|
+
Qr as estimateRefundFeeSats,
|
|
194
197
|
S as expandAuthAnchor,
|
|
195
198
|
C as expandHashlockSecret,
|
|
196
199
|
I as expandWotsSeed,
|
|
197
|
-
|
|
200
|
+
Oe as extractErrorData,
|
|
198
201
|
gs as extractInputsFromTransaction,
|
|
199
202
|
u as extractPayoutSignature,
|
|
200
203
|
y as extractPeginInputSignature,
|
|
201
|
-
|
|
204
|
+
f as finalizePayout,
|
|
202
205
|
D as finalizePeginInputPsbt,
|
|
203
206
|
X as finalizeScriptPathWithSignatures,
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
h as finalizeWronglyChallenged,
|
|
208
|
+
Rs as findOverlappingPendingVaults,
|
|
209
|
+
$r as fingerprintReturnedGraph,
|
|
206
210
|
q as formatSatoshisToBtc,
|
|
207
211
|
va as forwardDepositApproval,
|
|
208
212
|
Ue as forwardDeriveContextHash,
|
|
209
|
-
|
|
213
|
+
ps as fundPeginTransaction,
|
|
210
214
|
La as getAddressTxs,
|
|
211
215
|
Ka as getAddressUtxos,
|
|
212
216
|
Ne as getContractErrorMessage,
|
|
213
217
|
we as getDustThreshold,
|
|
214
218
|
Xa as getMempoolApiUrl,
|
|
215
219
|
Q as getNetwork,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
220
|
+
Ga as getNetworkFees,
|
|
221
|
+
ka as getOutspend,
|
|
222
|
+
Ft as getPeginProtocolState,
|
|
219
223
|
ze as getPsbtInputFields,
|
|
220
224
|
Ye as getScriptType,
|
|
221
225
|
$ as getSortedXOnlyPubkeys,
|
|
@@ -225,76 +229,77 @@ export {
|
|
|
225
229
|
Ya as getUtxoInfo,
|
|
226
230
|
be as handleContractError,
|
|
227
231
|
aa as hexToUint8Array,
|
|
228
|
-
|
|
232
|
+
Mt as isActivationDeadlinePassedOnChain,
|
|
229
233
|
ea as isAddressFromPublicKey,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
at as isApplicationEntryPointMismatchError,
|
|
235
|
+
Bs as isAuthRejectedError,
|
|
236
|
+
et as isDepositAmountValid,
|
|
237
|
+
lr as isDepositTermsRejectedError,
|
|
238
|
+
st as isHintAccepted,
|
|
235
239
|
Ve as isKnownContractError,
|
|
236
|
-
|
|
240
|
+
rt as isParticipantKeyDriftError,
|
|
237
241
|
xe as isPeginFingerprintChangedError,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
cr as isPeginFingerprintInputError,
|
|
243
|
+
tt as isPeginRegistrationMissingError,
|
|
244
|
+
it as isPeginRegistrationNotFinalError,
|
|
245
|
+
Hs as isPegoutTerminalStatus,
|
|
246
|
+
Ls as isRecognizedPegoutStatus,
|
|
247
|
+
ot as isRegisteredVaultVersionMismatchError,
|
|
244
248
|
ce as isRegistrationLogsUnavailableError,
|
|
249
|
+
Cs as isUnrecognizedDaemonStatusError,
|
|
245
250
|
sa as isValidHex,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
251
|
+
ur as isWotsMismatchError,
|
|
252
|
+
nt as matchKeyHint,
|
|
253
|
+
pt as matchKeySetHint,
|
|
249
254
|
He as parseFundingOutpointsFromTx,
|
|
250
|
-
|
|
255
|
+
Ps as parseUnfundedWasmTransaction,
|
|
251
256
|
Es as peginOutputCount,
|
|
252
|
-
|
|
257
|
+
O as peginP2aAnchorOutput,
|
|
253
258
|
N as pinPegoutProof,
|
|
254
|
-
|
|
259
|
+
Ws as primeVpTokenRegistry,
|
|
255
260
|
ra as processPublicKeyToXOnly,
|
|
256
261
|
ja as pushTx,
|
|
257
262
|
ls as rateBasedTxBufferFee,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
dr as rebuildDepositTermsCore,
|
|
264
|
+
G as reclaimVsize,
|
|
265
|
+
gr as reconstructPeginParams,
|
|
261
266
|
ya as requireChangeAddress,
|
|
262
|
-
|
|
263
|
-
|
|
267
|
+
Pt as resolveCurrentParticipantKeys,
|
|
268
|
+
Et as resolveParticipantKeysAtEpochs,
|
|
264
269
|
ee as resolveProtocolAddresses,
|
|
265
|
-
|
|
270
|
+
lt as runDepositorPresignFlow,
|
|
266
271
|
je as selectUtxosForPegin,
|
|
267
272
|
Je as shouldAddChangeOutput,
|
|
268
|
-
|
|
273
|
+
ct as signDepositorGraph,
|
|
269
274
|
ta as stripHexPrefix,
|
|
270
|
-
|
|
271
|
-
|
|
275
|
+
ut as submitWotsPublicKey,
|
|
276
|
+
dt as summarizeWatchtowerArtifacts,
|
|
272
277
|
b as supportedTxGraphVersions,
|
|
273
278
|
Da as supportsDepositApproval,
|
|
274
|
-
|
|
279
|
+
Rr as toRefundInputs,
|
|
275
280
|
ia as toXOnly,
|
|
276
281
|
oa as uint8ArrayToHex,
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
gt as validateDepositAmount,
|
|
283
|
+
Rt as validateMultiVaultDepositInputs,
|
|
279
284
|
ue as validateOffchainParams,
|
|
280
|
-
|
|
285
|
+
At as validateOnChainParticipantKeys,
|
|
281
286
|
de as validatePegInConfiguration,
|
|
282
287
|
V as validatePeginP2aAnchor,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
288
|
+
_t as validateProviderSelection,
|
|
289
|
+
mt as validateRemainingCapacity,
|
|
290
|
+
Is as validateRequestDepositorClaimerArtifactsResponse,
|
|
286
291
|
Ua as validateSecretAgainstHashlock,
|
|
287
292
|
ge as validateTBVProtocolParams,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
293
|
+
As as validateUtxosAvailable,
|
|
294
|
+
Tt as validateVaultAmounts,
|
|
295
|
+
St as validateVaultProviderPubkey,
|
|
291
296
|
na as validateWalletPubkey,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
297
|
+
Ct as verifyRegisteredParticipantKeys,
|
|
298
|
+
It as verifyRegisteredVaultVersions,
|
|
299
|
+
ws as verifyServerIdentity,
|
|
300
|
+
zs as vpTokenRegistry,
|
|
301
|
+
ft as waitForPeginRegistrationDepth,
|
|
302
|
+
ht as waitForPeginStatus,
|
|
298
303
|
Ia as waitForTransactionReceiptSmartAware
|
|
299
304
|
};
|
|
300
305
|
//# sourceMappingURL=index.js.map
|
|
@@ -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-Dt2Z5ljw.cjs"),a=require("../../../PayoutManager-B6GFbG3X.cjs");exports.PeginManager=e.PeginManager;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as e } from "../../../PeginManager-
|
|
2
|
-
import { P } from "../../../PayoutManager-
|
|
1
|
+
import { P as e } from "../../../PeginManager-CKf7Bjmj.js";
|
|
2
|
+
import { P } from "../../../PayoutManager-BSwbUQeF.js";
|
|
3
3
|
export {
|
|
4
4
|
P as PayoutManager,
|
|
5
5
|
e as PeginManager
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphFingerprint.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/graphFingerprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deterministic fingerprint over the canonical transaction set of a
|
|
3
|
+
* depositor-as-claimer graph.
|
|
4
|
+
*
|
|
5
|
+
* `btc-vault/docs/specifications/pegin.md` §5.9 makes this the depositor's binding
|
|
6
|
+
* between the two moments where it gives up leverage:
|
|
7
|
+
*
|
|
8
|
+
* - **Presign** — before signing the VP's PSBTs, fingerprint the transaction
|
|
9
|
+
* set the VP just supplied and persist it.
|
|
10
|
+
* - **Activation** — before revealing the HTLC secret, fingerprint the graph
|
|
11
|
+
* the VP returns and require an exact match.
|
|
12
|
+
*
|
|
13
|
+
* Without this, a VP can serve one graph to sign and a different one to
|
|
14
|
+
* activate against; every check in `assertBundleBoundToVault` compares the
|
|
15
|
+
* bundle only against public values it also controls.
|
|
16
|
+
*
|
|
17
|
+
* The two moments carry the same transactions in different encodings — presign
|
|
18
|
+
* hands back raw consensus `tx_hex`, activation a serde-serialized
|
|
19
|
+
* `bitcoin::Transaction`. Both sides decode strictly and re-serialize through
|
|
20
|
+
* `bitcoinjs-lib`, so each hashed part is exactly one canonical transaction.
|
|
21
|
+
* That matters because the layout below has no length prefixes: it matches
|
|
22
|
+
* `canonical_tx_set_fingerprint` in `btc-vault`
|
|
23
|
+
* (`crates/depositor-cli/src/recovery_graph.rs`), which relies on the same
|
|
24
|
+
* strict decode. Hashing undecoded bytes would let a VP shift bytes between
|
|
25
|
+
* parts and reach the same digest with a different graph.
|
|
26
|
+
*
|
|
27
|
+
* Note this commits to the transaction set only. `gc_wots_keys`, the verifying
|
|
28
|
+
* key, and the typed connector metadata are deliberately outside it — the spec
|
|
29
|
+
* binds those at activation by other means.
|
|
30
|
+
*/
|
|
31
|
+
/** One challenger's contribution to the fingerprint. */
|
|
32
|
+
export interface ChallengerFingerprintPart {
|
|
33
|
+
/** Challenger x-only pubkey, lowercase hex, no prefix. */
|
|
34
|
+
pubkey: string;
|
|
35
|
+
/** The challenger's NoPayout transaction, consensus-serialized. */
|
|
36
|
+
nopayoutTx: Uint8Array;
|
|
37
|
+
/** Per-GC output label hashes, lowercase hex, in the order the graph lists them. */
|
|
38
|
+
outputLabelHashes: string[];
|
|
39
|
+
}
|
|
40
|
+
/** The four transactions every depositor-as-claimer graph carries. */
|
|
41
|
+
export interface CanonicalTxSet {
|
|
42
|
+
peginTx: Uint8Array;
|
|
43
|
+
claimTx: Uint8Array;
|
|
44
|
+
assertTx: Uint8Array;
|
|
45
|
+
payoutTx: Uint8Array;
|
|
46
|
+
challengers: ChallengerFingerprintPart[];
|
|
47
|
+
}
|
|
48
|
+
export declare class GraphFingerprintError extends Error {
|
|
49
|
+
constructor(message: string);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Re-encode one serde-serialized `bitcoin::Transaction` from a `tx_graph_json`
|
|
53
|
+
* node into consensus bytes.
|
|
54
|
+
*
|
|
55
|
+
* Every field is required and range-checked: a value that serde would reject
|
|
56
|
+
* or read differently must not reach the digest, or the depositor could match
|
|
57
|
+
* a graph that the recovery tooling cannot load. `previous_output` arrives in
|
|
58
|
+
* display byte order, so the txid is reversed back to wire order.
|
|
59
|
+
*/
|
|
60
|
+
export declare function serializeGraphTx(txNode: unknown, path: string): Uint8Array;
|
|
61
|
+
/**
|
|
62
|
+
* Hash the canonical transaction set.
|
|
63
|
+
*
|
|
64
|
+
* Challengers are sorted by pubkey so the digest does not depend on map or
|
|
65
|
+
* response ordering, which neither side controls consistently. Two entries
|
|
66
|
+
* for one key are rejected: with the order between them undefined, the digest
|
|
67
|
+
* would follow whichever order the VP chose.
|
|
68
|
+
*/
|
|
69
|
+
export declare function canonicalTxSetFingerprint(set: CanonicalTxSet): string;
|
|
70
|
+
/**
|
|
71
|
+
* Validate the transaction set a VP supplied at presign and fingerprint it.
|
|
72
|
+
*
|
|
73
|
+
* `peginTxHex` comes from the depositor's own signing context, not the
|
|
74
|
+
* response — the presign payload carries no PegIn transaction, and taking it
|
|
75
|
+
* from the VP would let the VP choose both sides of the comparison. It must
|
|
76
|
+
* hash to `peginTxid`, and the Claim must have the depositor-claim shape,
|
|
77
|
+
* as in `validate_presign_response` in `btc-vault`.
|
|
78
|
+
*/
|
|
79
|
+
export declare function fingerprintPresignTxSet(args: {
|
|
80
|
+
peginTxid: string;
|
|
81
|
+
peginTxHex: string;
|
|
82
|
+
claimTxHex: string;
|
|
83
|
+
assertTxHex: string;
|
|
84
|
+
payoutTxHex: string;
|
|
85
|
+
challengers: {
|
|
86
|
+
challenger_pubkey: string;
|
|
87
|
+
nopayout_tx: {
|
|
88
|
+
tx_hex: string;
|
|
89
|
+
};
|
|
90
|
+
output_label_hashes: string[];
|
|
91
|
+
}[];
|
|
92
|
+
}): string;
|
|
93
|
+
/**
|
|
94
|
+
* Fingerprint the graph a VP returned at activation, parsed from
|
|
95
|
+
* `tx_graph_json`.
|
|
96
|
+
*/
|
|
97
|
+
export declare function fingerprintReturnedGraph(graph: Record<string, unknown>): string;
|
|
98
|
+
/**
|
|
99
|
+
* Check (a) of `pegin.md` §5.9: throw unless the graph a VP returned at
|
|
100
|
+
* activation is the one the depositor fingerprinted at presign.
|
|
101
|
+
*
|
|
102
|
+
* Call this before revealing the HTLC secret, with the value that
|
|
103
|
+
* `runDepositorPresignFlow` passed to `recordGraphFingerprint`. The
|
|
104
|
+
* fingerprint covers the challengers in `challenger_subgraphs`, but the graph
|
|
105
|
+
* also declares its roster in `challenger_pubkeys`. This also requires the
|
|
106
|
+
* two to name the same keys, or a graph could match the fingerprint while its
|
|
107
|
+
* declared roster adds or drops a challenger.
|
|
108
|
+
*
|
|
109
|
+
* @param graph Parsed `tx_graph_json` from the artifact bundle.
|
|
110
|
+
* @param expectedFingerprint The fingerprint recorded at presign.
|
|
111
|
+
* @throws GraphFingerprintError when the graph is malformed, does not
|
|
112
|
+
* reproduce the fingerprint, or declares a different roster.
|
|
113
|
+
*/
|
|
114
|
+
export declare function assertReturnedGraphMatchesFingerprint(graph: Record<string, unknown>, expectedFingerprint: string): void;
|
|
115
|
+
//# sourceMappingURL=graphFingerprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphFingerprint.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/graphFingerprint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AA6BH,wDAAwD;AACxD,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,UAAU,EAAE,UAAU,CAAC;IACvB,oFAAoF;IACpF,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,UAAU,CAAC;IACrB,WAAW,EAAE,yBAAyB,EAAE,CAAC;CAC1C;AAED,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,OAAO,EAAE,MAAM;CAI5B;AAwDD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAiD1E;AAmED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAiBrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,iBAAiB,EAAE,MAAM,CAAC;QAC1B,WAAW,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAChC,mBAAmB,EAAE,MAAM,EAAE,CAAC;KAC/B,EAAE,CAAC;CACL,GAAG,MAAM,CAyBT;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,MAAM,CAgCR;AA8BD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,mBAAmB,EAAE,MAAM,GAC1B,IAAI,CAqBN"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { ClaimerArtifactsReader, PeginStatusReader, PresignClient, WotsKeySubmitter, } from './interfaces';
|
|
2
2
|
export { PEGIN_ETH_CONFIRMATIONS, PeginRegistrationMissingError, PeginRegistrationNotFinalError, isPeginRegistrationMissingError, isPeginRegistrationNotFinalError, waitForPeginRegistrationDepth, type PeginRegistrationDepthResult, type RegistrationDepthParams, type RegistrationDepthProgress, type WaitForPeginRegistrationDepthParams, } from './peginRegistrationDepth';
|
|
3
|
-
export { ContractStatus, PeginAction, canPerformAction, getPeginProtocolState, isActivationDeadlinePassedOnChain, type ExpirationReason, type GetPeginProtocolStateOptions, type PeginProtocolState, } from './peginState';
|
|
3
|
+
export { ContractStatus, PeginAction, canPerformAction, getPeginProtocolState, activationDeadlineBlocksRemaining, isActivationDeadlinePassedOnChain, type ExpirationReason, type GetPeginProtocolStateOptions, type PeginProtocolState, } from './peginState';
|
|
4
|
+
export { assertReturnedGraphMatchesFingerprint, fingerprintReturnedGraph, GraphFingerprintError, } from './graphFingerprint';
|
|
4
5
|
export { runDepositorPresignFlow, type PayoutSigningContext, type RunDepositorPresignFlowParams, } from './runDepositorPresignFlow';
|
|
5
6
|
export { signDepositorGraph, type DepositorGraphSigningContext, type SignDepositorGraphParams, } from './signDepositorGraph';
|
|
6
7
|
export { submitWotsPublicKey, type SubmitWotsPublicKeyParams, } from './submitWotsPublicKey';
|
|
@@ -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,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,4BAA4B,EACjC,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,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,iCAAiC,EACjC,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,qCAAqC,EACrC,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,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,kCAAkC,EAClC,oCAAoC,EACpC,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"}
|