@babylonlabs-io/ts-sdk 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BTCVaultRegistry.abi-DBW0dyqH.js → BTCVaultRegistry.abi-BmHpMUWD.js} +1 -52
- package/dist/BTCVaultRegistry.abi-BmHpMUWD.js.map +1 -0
- package/dist/BTCVaultRegistry.abi-DffWFdpA.cjs +2 -0
- package/dist/BTCVaultRegistry.abi-DffWFdpA.cjs.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-QRwMUxZg.js → PeginManager-Dfr5Qe1g.js} +2 -2
- package/dist/{PeginManager-QRwMUxZg.js.map → PeginManager-Dfr5Qe1g.js.map} +1 -1
- package/dist/{PeginManager-8EUlm10F.cjs → PeginManager-PyKbfy5q.cjs} +2 -2
- package/dist/{PeginManager-8EUlm10F.cjs.map → PeginManager-PyKbfy5q.cjs.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-DjX7wVb2.cjs → buildAndBroadcastReclaim-Da8rD5Z7.cjs} +2 -2
- package/dist/{buildAndBroadcastReclaim-DjX7wVb2.cjs.map → buildAndBroadcastReclaim-Da8rD5Z7.cjs.map} +1 -1
- package/dist/{buildAndBroadcastReclaim-DoprHX7o.js → buildAndBroadcastReclaim-R0HNpLMD.js} +2 -2
- package/dist/{buildAndBroadcastReclaim-DoprHX7o.js.map → buildAndBroadcastReclaim-R0HNpLMD.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +222 -219
- package/dist/index.js.map +1 -1
- package/dist/{pegin-registration-client-D4EguWaz.cjs → pegin-registration-client-C-abxMWq.cjs} +2 -2
- package/dist/{pegin-registration-client-D4EguWaz.cjs.map → pegin-registration-client-C-abxMWq.cjs.map} +1 -1
- package/dist/{pegin-registration-client-BWMwxtr8.js → pegin-registration-client-kdz4fT5_.js} +3 -3
- package/dist/{pegin-registration-client-BWMwxtr8.js.map → pegin-registration-client-kdz4fT5_.js.map} +1 -1
- package/dist/{signer-set-reader-C1VmC9_U.js → signer-set-reader-BCtmSKUM.js} +2 -2
- package/dist/{signer-set-reader-C1VmC9_U.js.map → signer-set-reader-BCtmSKUM.js.map} +1 -1
- package/dist/{signer-set-reader-C6g47hdk.cjs → signer-set-reader-DFAu6I-v.cjs} +2 -2
- package/dist/{signer-set-reader-C6g47hdk.cjs.map → signer-set-reader-DFAu6I-v.cjs.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/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 +0 -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 +210 -207
- 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/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +1 -1
- package/dist/tbv/core/utils/eth/index.cjs +1 -1
- package/dist/tbv/core/utils/eth/index.cjs.map +1 -1
- package/dist/tbv/core/utils/eth/index.js +20 -20
- package/dist/tbv/core/utils/eth/index.js.map +1 -1
- package/dist/tbv/core/utils/eth/waitForTransactionReceiptSmartAware.d.ts.map +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +210 -207
- 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-BbAOOUg6.cjs} +2 -2
- package/dist/{toRefundInputs-BZXvuOMY.cjs.map → toRefundInputs-BbAOOUg6.cjs.map} +1 -1
- package/dist/{toRefundInputs-dKDSvpVI.js → toRefundInputs-DW14g6wH.js} +2 -2
- package/dist/{toRefundInputs-dKDSvpVI.js.map → toRefundInputs-DW14g6wH.js.map} +1 -1
- package/package.json +2 -2
- 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/tbv/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
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 O, pinPegoutProof as V, supportedTxGraphVersions as b, validatePeginP2aAnchor as x } from "./wasm/index.js";
|
|
4
4
|
import { a as N, c as M, b as y, e as D, f as v } from "../../verifyKeyPathSchnorrSignature-DxPbeSdQ.js";
|
|
@@ -6,329 +6,332 @@ import { c as U, a as H, b as L, e as K, f as X, r as G } from "../../noPayout-B
|
|
|
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 Oa, d as Va, e as ba } from "../../PeginManager-
|
|
12
|
+
import { P as fa, b as ha, c as Oa, d as Va, e as ba } from "../../PeginManager-Dfr5Qe1g.js";
|
|
13
13
|
import { P as Fa, c as Na, f as Ma, r as ya, s as Da, v as va } 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-BCtmSKUM.js";
|
|
17
|
+
import { C as de, M as ge, V as me, a as Re, c as Ae } from "../../pegin-registration-client-kdz4fT5_.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 Ve, C as be,
|
|
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-BmHpMUWD.js";
|
|
21
|
+
import { B as Ve, C as be, E as xe, P as Fe, a as Ne, e as Me, g as ye, h as De, i as ve, 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 Vs, a as bs, e as xs, f as Fs, v as Ns } from "../../reservation-DOAHVT3B.js";
|
|
31
|
+
import { V as ys, a as Ds, b as vs, 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 Or, h as Vr, d as br, i as xr, o as Fr, r as Nr, k as Mr, q as yr, s as Dr, x as vr } from "../../toRefundInputs-DW14g6wH.js";
|
|
35
|
+
import { J as Ur, k as Hr, A as Lr, B as Kr, a8 as Xr, C as Gr, D as kr, m as Wr, G as wr, t as zr, W as Yr, P as jr, i as Jr, u as Zr, v as qr, ah as Qr, ai as $r, aj as at, ak as et, ab as st, ac as rt, ad as tt, ae as it, af as ot, Z as nt, S as lt, V as pt, a as Et, b as Pt, c as ct, d as ut, l as dt, e as gt, f as mt, q as Rt, h as At, z as _t, n as St, a1 as Tt, ag as Ct, a9 as It, j as ft, g as ht, aa as Ot, E as Vt, K as bt, M as xt, a2 as Ft, X as Nt, w as Mt, x as yt, _ as Dt, a3 as vt, a4 as Bt, p as Ut, r as Ht, a5 as Lt, a6 as Kt, a7 as Xt, F as Gt, o 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, y as si, a0 as ri } from "../../buildAndBroadcastReclaim-R0HNpLMD.js";
|
|
36
|
+
import { C as ii, P as oi, a as ni, c as li, g as pi, i as Ei } from "../../peginState-BU2ONFXF.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
|
-
|
|
41
|
+
Hr as ArtifactsVaultMismatchError,
|
|
42
|
+
Lr as AssertBindingError,
|
|
43
|
+
Kr as BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX,
|
|
44
|
+
Xr as BIP68NotMatureError,
|
|
44
45
|
da as BITCOIN_ADDRESS_RE,
|
|
45
46
|
he as BTCVaultRegistryABI,
|
|
46
47
|
Ve as BTCVaultRegistryKeyEpochsABI,
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
Ps as BTC_DUST_SAT,
|
|
49
|
+
as as BitcoinScriptType,
|
|
49
50
|
de as COMMISSION_BPS_HEADROOM,
|
|
50
51
|
ga as COMPRESSED_PUBKEY_HEX_LEN,
|
|
51
52
|
be as CONTRACT_ERRORS,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
Gr as ChallengerSetMismatchError,
|
|
54
|
+
Ks as ClaimerPegoutStatusValue,
|
|
55
|
+
ii as ContractStatus,
|
|
56
|
+
kr as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
57
|
+
lr as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
58
|
+
cs as DUST_THRESHOLD,
|
|
59
|
+
Xs as DaemonStatus,
|
|
60
|
+
Wr as DelegatedClaimSigningIncompleteError,
|
|
61
|
+
pr as DepositTermsRejectedError,
|
|
62
|
+
xe as EMPTY_REVERT_MESSAGE,
|
|
63
|
+
wr as GraphFingerprintError,
|
|
62
64
|
ma as HEX_RE,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
Gs as JSON_RPC_ERROR_CODES,
|
|
66
|
+
ks as JsonRpcClient,
|
|
67
|
+
Ws as JsonRpcError,
|
|
66
68
|
Ra as KNOWN_SCRIPT_PREFIXES,
|
|
67
|
-
|
|
69
|
+
us as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
68
70
|
ge as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
69
|
-
|
|
71
|
+
ds as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
70
72
|
Aa as MAX_REASONABLE_FEE_SATS,
|
|
71
|
-
|
|
73
|
+
gs as MAX_REASONABLE_PEGIN_VBYTES,
|
|
72
74
|
Ua as MEMPOOL_API_URLS,
|
|
73
75
|
Ha as MempoolNotFoundError,
|
|
74
76
|
Se as OnChainBtcVaultStatus,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
ms as P2TR_INPUT_SIZE,
|
|
78
|
+
Rs as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
77
79
|
s as PEGIN_DEPOSITOR_CLAIM_VOUT,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
zr as PEGIN_ETH_CONFIRMATIONS,
|
|
81
|
+
Fe as PEGIN_FINGERPRINT_CHANGED_SELECTOR,
|
|
82
|
+
Er as PEGIN_FINGERPRINT_DOMAIN,
|
|
83
|
+
Pr as PEGIN_FINGERPRINT_DOMAIN_PREIMAGE,
|
|
84
|
+
As as PEGIN_FIXED_OUTPUTS,
|
|
85
|
+
ws as POST_WOTS_STATUSES,
|
|
86
|
+
zs as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
87
|
+
Yr as ParticipantKeyDriftError,
|
|
88
|
+
jr as PayoutDestinationError,
|
|
89
|
+
Jr as PayoutInputLeafError,
|
|
88
90
|
Fa as PayoutManager,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
oi as PeginAction,
|
|
92
|
+
Ne as PeginFingerprintChangedError,
|
|
93
|
+
cr as PeginFingerprintInputError,
|
|
92
94
|
fa as PeginManager,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
ur as PeginParamsAmbiguousError,
|
|
96
|
+
dr as PeginParamsIncompleteSpaceError,
|
|
97
|
+
gr as PeginParamsNotFoundError,
|
|
98
|
+
Zr as PeginRegistrationMissingError,
|
|
99
|
+
qr as PeginRegistrationNotFinalError,
|
|
100
|
+
mr as PeginSizingIntegrityError,
|
|
101
|
+
He as ProtocolParamsABI,
|
|
100
102
|
r as PsbtSubstitutionError,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
Qr as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
|
|
104
|
+
$r as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
|
|
105
|
+
at as RECLAIM_MAX_FEE_RATE_SATS_VB,
|
|
106
|
+
et as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
|
|
107
|
+
st as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
108
|
+
rt as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
109
|
+
tt as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
110
|
+
it as REFUND_VSIZE,
|
|
111
|
+
ot as ReclaimUneconomicalError,
|
|
112
|
+
nt as RegisteredVaultVersionMismatchError,
|
|
111
113
|
Za as RegistrationLogsUnavailableError,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
Ys as RpcErrorCode,
|
|
115
|
+
_s as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
116
|
+
er as ServerIdentityError,
|
|
117
|
+
lt as SigningPlanMismatchError,
|
|
116
118
|
_a as TXID_RE,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
Ss as TX_BUFFER_SIZE_OVERHEAD,
|
|
120
|
+
Rr as UnanchoredPrePeginError,
|
|
121
|
+
Vs as UtxoNotAvailableError,
|
|
122
|
+
We as VAULT_APP_NAME,
|
|
123
|
+
Ke as VAULT_ERROR_ABI,
|
|
124
|
+
js as VP_BATCH_MAX_SIZE,
|
|
125
|
+
Js as VP_TERMINAL_FAILURE_STATUSES,
|
|
126
|
+
Zs as VP_TRANSIENT_STATUSES,
|
|
124
127
|
qa as VaultClaimableByNotFoundError,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
pt as VaultIdBindingError,
|
|
129
|
+
ys as VaultProviderRpcClient,
|
|
130
|
+
Ar as VaultRootMismatchError,
|
|
128
131
|
pe as ViemOperationKeyReader,
|
|
129
132
|
me as ViemPeginRegistrationClient,
|
|
130
133
|
Te as ViemProtocolParamsReader,
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
Ee as ViemUniversalChallengerReader,
|
|
135
|
+
Pe as ViemVaultKeeperReader,
|
|
133
136
|
Re as ViemVaultRegistryReader,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
Ds as VpResponseValidationError,
|
|
138
|
+
sr as VpTokenRegistry,
|
|
139
|
+
Ts as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
137
140
|
Sa as X_ONLY_PUBKEY_HEX_LEN,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
Et as activateVault,
|
|
142
|
+
Pt as activateVaultAndRedeem,
|
|
143
|
+
ni as activationDeadlineBlocksRemaining,
|
|
144
|
+
es as applyChangeOutputPolicy,
|
|
145
|
+
ct as assembleWatchtowerArtifacts,
|
|
146
|
+
ut as assembleWatchtowerArtifactsFromSignatures,
|
|
147
|
+
dt as assertArtifactsUsableForVault,
|
|
148
|
+
gt as assertAssertBindsClaimAndPayout,
|
|
149
|
+
mt as assertChallengerSetMatchesVault,
|
|
150
|
+
_r as assertClaimBatchHomogeneous,
|
|
151
|
+
Rt as assertClaimSpendsVault,
|
|
149
152
|
N as assertKeyPathSchnorrSignature,
|
|
150
153
|
Qa as assertOnChainBtcPubkey,
|
|
151
|
-
|
|
154
|
+
At as assertPayoutPaysRegisteredScript,
|
|
152
155
|
t as assertPsbtUnsignedTxMatches,
|
|
153
156
|
$a as assertRegisteredPayoutScriptBounds,
|
|
154
|
-
|
|
157
|
+
_t as assertReturnedGraphMatchesFingerprint,
|
|
155
158
|
M as assertReturnedKeyPathSignatures,
|
|
156
159
|
i as assertScriptPathSchnorrSignature,
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
St as assertTermsMatchVault,
|
|
161
|
+
bs as assertUtxosAvailable,
|
|
159
162
|
g as assertValidVaultCoreVersion,
|
|
160
|
-
|
|
163
|
+
Tt as assertVaultProviderHintAccepted,
|
|
161
164
|
R as attachFinalizedAssert,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
vs as batchPollByProvider,
|
|
166
|
+
Ct as buildAndBroadcastReclaim,
|
|
167
|
+
It as buildAndBroadcastRefund,
|
|
165
168
|
W as buildChallengeAssertPsbt,
|
|
166
169
|
ha as buildDepositTerms,
|
|
167
|
-
|
|
170
|
+
we as buildFundingOutpointsCommitment,
|
|
168
171
|
U as buildNoPayoutPsbt,
|
|
169
172
|
o as buildPayoutPsbt,
|
|
170
173
|
y as buildPeginInputPsbt,
|
|
171
|
-
|
|
174
|
+
Sr as buildPeginParamsCandidates,
|
|
172
175
|
n as buildPeginTxFromFundedPrePegin,
|
|
173
176
|
l as buildPrePeginPsbt,
|
|
174
177
|
H as buildReclaimPsbt,
|
|
175
178
|
L as buildRefundPsbt,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
ze as buildVaultContext,
|
|
180
|
+
Ge as buildVaultContextInputForClaim,
|
|
181
|
+
Qe as calculateBtcTxHash,
|
|
182
|
+
li as canPerformAction,
|
|
180
183
|
z as canonicalizeBtcPubkey,
|
|
181
184
|
Ae as capMaxAcceptableCommissionBps,
|
|
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
|
-
|
|
193
|
+
ts as computePeginBaseFeeSats,
|
|
194
|
+
Cr as computePeginFingerprint,
|
|
192
195
|
Oa as computeWotsBlockPublicKeysHash,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
210
|
+
Ye as deriveVaultRoot,
|
|
208
211
|
Va as deriveWotsBlocksFromSeed,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
fr as describePeginParamsCandidate,
|
|
213
|
+
hr as describeUnresolvedVersion,
|
|
214
|
+
Or as encodePeginFingerprintPreimage,
|
|
212
215
|
Z as ensureHexPrefix,
|
|
213
216
|
ba as ensurePrePeginTermsApproval,
|
|
214
217
|
K as estimateReclaimFeeSats,
|
|
215
|
-
|
|
218
|
+
Ot as estimateRefundFeeSats,
|
|
216
219
|
T as expandAuthAnchor,
|
|
217
220
|
C as expandHashlockSecret,
|
|
218
221
|
I as expandWotsSeed,
|
|
219
|
-
|
|
220
|
-
|
|
222
|
+
Me as extractErrorData,
|
|
223
|
+
xs as extractInputsFromTransaction,
|
|
221
224
|
u as extractPayoutSignature,
|
|
222
225
|
D as extractPeginInputSignature,
|
|
223
226
|
f as finalizePayout,
|
|
224
227
|
v as finalizePeginInputPsbt,
|
|
225
228
|
X as finalizeScriptPathWithSignatures,
|
|
226
229
|
h as finalizeWronglyChallenged,
|
|
227
|
-
|
|
230
|
+
Fs as findOverlappingPendingVaults,
|
|
228
231
|
ee as findRegistrationRecord,
|
|
229
|
-
|
|
232
|
+
Vt 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
|
+
De as handleContractError,
|
|
251
254
|
aa as hexToUint8Array,
|
|
252
|
-
|
|
255
|
+
Ei as isActivationDeadlinePassedOnChain,
|
|
253
256
|
ea as isAddressFromPublicKey,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
257
|
+
bt as isApplicationEntryPointMismatchError,
|
|
258
|
+
qs as isAuthRejectedError,
|
|
259
|
+
xt as isDepositAmountValid,
|
|
260
|
+
Vr as isDepositTermsRejectedError,
|
|
261
|
+
Ft as isHintAccepted,
|
|
262
|
+
ve as isKnownContractError,
|
|
263
|
+
Nt as isParticipantKeyDriftError,
|
|
264
|
+
Be as isPeginFingerprintChangedError,
|
|
265
|
+
br as isPeginFingerprintInputError,
|
|
266
|
+
Mt as isPeginRegistrationMissingError,
|
|
267
|
+
yt as isPeginRegistrationNotFinalError,
|
|
268
|
+
Qs as isPegoutTerminalStatus,
|
|
269
|
+
$s as isRecognizedPegoutStatus,
|
|
270
|
+
Dt 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
|
-
|
|
275
|
+
xr as isWotsMismatchError,
|
|
276
|
+
vt as matchKeyHint,
|
|
277
|
+
Bt as matchKeySetHint,
|
|
278
|
+
Fr as orderClaimBatchByHtlcVout,
|
|
279
|
+
Ze as parseFundingOutpointsFromTx,
|
|
280
|
+
Is as parseUnfundedWasmTransaction,
|
|
281
|
+
fs as peginOutputCount,
|
|
279
282
|
O as peginP2aAnchorOutput,
|
|
280
283
|
V as pinPegoutProof,
|
|
281
|
-
|
|
282
|
-
|
|
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
|
+
Dr 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
|
-
|
|
307
|
+
wt as submitWotsPublicKey,
|
|
308
|
+
zt as summarizeWatchtowerArtifacts,
|
|
306
309
|
b as supportedTxGraphVersions,
|
|
307
310
|
Da as supportsDepositApproval,
|
|
308
|
-
|
|
311
|
+
vr 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
319
|
x as validatePeginP2aAnchor,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
+
Zt as validateProviderSelection,
|
|
321
|
+
qt as validateRemainingCapacity,
|
|
322
|
+
Us as validateRequestDepositorClaimerArtifactsResponse,
|
|
320
323
|
va 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-PyKbfy5q.cjs"),a=require("../../../PayoutManager-DOdsgcUR.cjs");exports.PeginManager=e.PeginManager;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-DOdsgcUR.cjs"),t=require("../../../buildAndBroadcastReclaim-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-DOdsgcUR.cjs"),t=require("../../../buildAndBroadcastReclaim-Da8rD5Z7.cjs"),i=require("../wasm/index.cjs"),e=require("../../../peginState-DUv10EJR.cjs"),a=require("../../../state-C4WoNCy1.cjs");exports.computeHashlock=r.computeHashlock;exports.validateSecretAgainstHashlock=r.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.AssertBindingError=t.AssertBindingError;exports.BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX=t.BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.DelegatedClaimSigningIncompleteError=t.DelegatedClaimSigningIncompleteError;exports.GraphFingerprintError=t.GraphFingerprintError;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;exports.PayoutInputLeafError=t.PayoutInputLeafError;exports.PeginRegistrationMissingError=t.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=t.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=t.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=t.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=t.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=t.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.ReclaimUneconomicalError=t.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.SigningPlanMismatchError=t.SigningPlanMismatchError;exports.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assembleWatchtowerArtifactsFromSignatures=t.assembleWatchtowerArtifactsFromSignatures;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertAssertBindsClaimAndPayout=t.assertAssertBindsClaimAndPayout;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertReturnedGraphMatchesFingerprint=t.assertReturnedGraphMatchesFingerprint;exports.assertTermsMatchVault=t.assertTermsMatchVault;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.copyAssertConnectorLeaf=t.copyAssertConnectorLeaf;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.fingerprintReturnedGraph=t.fingerprintReturnedGraph;exports.isApplicationEntryPointMismatchError=t.isApplicationEntryPointMismatchError;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isHintAccepted=t.isHintAccepted;exports.isParticipantKeyDriftError=t.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=t.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=t.isPeginRegistrationNotFinalError;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.planDelegatedClaimSigning=t.planDelegatedClaimSigning;exports.readDelegatedClaimVaultContext=t.readDelegatedClaimVaultContext;exports.readStampedParticipantKeys=t.readStampedParticipantKeys;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDelegatedClaimPlan=t.signDelegatedClaimPlan;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.summarizeWatchtowerArtifacts=t.summarizeWatchtowerArtifacts;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=t.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=t.waitForPeginRegistrationDepth;exports.waitForPeginStatus=t.waitForPeginStatus;exports.attachFinalizedAssert=i.attachFinalizedAssert;exports.finalizePayout=i.finalizePayout;exports.finalizeWronglyChallenged=i.finalizeWronglyChallenged;exports.pinPegoutProof=i.pinPegoutProof;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.activationDeadlineBlocksRemaining=e.activationDeadlineBlocksRemaining;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;exports.ClaimerPegoutStatusValue=a.ClaimerPegoutStatusValue;exports.isPegoutTerminalStatus=a.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=a.isRecognizedPegoutStatus;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as s, v as e } from "../../../PayoutManager-BZ212yml.js";
|
|
2
|
-
import { J as r, k as n, A as o, B as l, a8 as c, C as E, D as A, m as g, G as d, t as u, W as R, P, i as m, u as p, v as _, ah as C, ai as M, aj as h, ak as S, ab as F, ac as f, ad as y, ae as D, af as N, Z as V, S as I, V as v, a as T, b as O, c as B, d as K, l as H, e as L, f as b, q as U, h as X, z as G, n as W, a1 as w, ag as x, a9 as k, j as z, g as j, aa as Y, E as Z, K as q, M as J, a2 as Q, X as $, w as aa, x as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, o as Aa, H as ga, I as da, s as ua, N as Ra, O as Pa, L as ma, Q as pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Sa, y as Fa, a0 as fa } from "../../../buildAndBroadcastReclaim-
|
|
2
|
+
import { J as r, k as n, A as o, B as l, a8 as c, C as E, D as A, m as g, G as d, t as u, W as R, P, i as m, u as p, v as _, ah as C, ai as M, aj as h, ak as S, ab as F, ac as f, ad as y, ae as D, af as N, Z as V, S as I, V as v, a as T, b as O, c as B, d as K, l as H, e as L, f as b, q as U, h as X, z as G, n as W, a1 as w, ag as x, a9 as k, j as z, g as j, aa as Y, E as Z, K as q, M as J, a2 as Q, X as $, w as aa, x as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, o as Aa, H as ga, I as da, s as ua, N as Ra, O as Pa, L as ma, Q as pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Sa, y as Fa, a0 as fa } from "../../../buildAndBroadcastReclaim-R0HNpLMD.js";
|
|
3
3
|
import { attachFinalizedAssert as Da, finalizePayout as Na, finalizeWronglyChallenged as Va, pinPegoutProof as Ia } from "../wasm/index.js";
|
|
4
4
|
import { C as Ta, P as Oa, a as Ba, c as Ka, g as Ha, i as La } from "../../../peginState-BU2ONFXF.js";
|
|
5
5
|
import { C as Ua, g as Xa, f as Ga } from "../../../state-CFn1rT74.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f={1:"https://safe-transaction-mainnet.safe.global",11155111:"https://safe-transaction-sepolia.safe.global"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f={1:"https://safe-transaction-mainnet.safe.global",11155111:"https://safe-transaction-sepolia.safe.global"},d=5e3,w=14400*1e3,T=1e4,h="/api/v1/multisig-transactions",p=404,A=500,m=2,_="0xef0100",R=20,g=_.length+m*R;function I(e){return e.length===g&&e.toLowerCase().startsWith(_)}async function F(e){const{publicClient:t,walletAddress:a,hash:i,confirmations:r,timeout:c,safePollTimeoutMs:l=w,safePollIntervalMs:u=d}=e,s=await t.getCode({address:a});if(!(s!==void 0&&s!=="0x"&&!I(s)))return t.waitForTransactionReceipt({hash:i,confirmations:r,timeout:c});const o=t.chain===void 0?await t.getChainId():t.chain.id,n=await L({chainId:o,publicClient:t,safeTxHash:i,pollIntervalMs:u,timeoutMs:l});return n.kind==="not-a-proposal"?t.waitForTransactionReceipt({hash:i,confirmations:r,timeout:c}):t.waitForTransactionReceipt({hash:n.transactionHash,confirmations:r})}async function C(e,t){return await e.getTransaction({hash:t}).catch(()=>null)!==null}async function L({chainId:e,publicClient:t,safeTxHash:a,pollIntervalMs:i,timeoutMs:r}){const c=f[e];if(!c)throw new Error(`Safe Transaction Service not configured for chainId ${e}. Connected wallet appears to be a smart-contract account, but this chain is not in the supported list. Either connect an EOA or extend SAFE_TX_SERVICE_BASE_URLS in waitForTransactionReceiptSmartAware.ts.`);const l=`${c}${h}/${a}/`,u=Date.now()+r;for(;Date.now()<u;){const s=new AbortController,E=setTimeout(()=>s.abort(),T);let o;try{o=await fetch(l,{signal:s.signal})}catch(n){console.warn(`Safe Transaction Service request failed (will retry in ${i}ms): `+(n instanceof Error?n.message:String(n))),await S(i);continue}finally{clearTimeout(E)}if(o.ok){const n=await o.json();if(n.isExecuted){if(n.isSuccessful===!1)throw new Error(`Safe transaction ${a} was executed on chain but reverted. Check the Safe queue UI for details.`);if(n.transactionHash)return{kind:"executed",transactionHash:n.transactionHash}}}else if(o.status===p){if(await C(t,a))return console.warn(`${a} is a real transaction, not a Safe proposal — the connected wallet submits its own transactions despite reporting contract bytecode. Waiting for its receipt directly.`),{kind:"not-a-proposal"}}else if(o.status>=A)console.warn(`Safe Transaction Service returned ${o.status} for ${a}; retrying in ${i}ms.`);else throw new Error(`Safe Transaction Service returned ${o.status} for ${a}.`);await S(i)}throw new Error(`Timed out after ${r}ms waiting for Safe transaction ${a} to reach quorum and execute. The proposal is still pending in the Safe queue — co-signers must sign and execute it before the dApp can proceed.`)}function S(e){return new Promise(t=>{setTimeout(t,e)})}exports.waitForTransactionReceiptSmartAware=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|