@babylonlabs-io/ts-sdk 0.72.1 → 0.73.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/README.md +56 -13
- package/dist/BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs +2 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js +229 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js.map +1 -0
- package/dist/PeginManager-C9RPOd0L.js +1216 -0
- package/dist/PeginManager-C9RPOd0L.js.map +1 -0
- package/dist/PeginManager-E-UHA1un.cjs +2 -0
- package/dist/PeginManager-E-UHA1un.cjs.map +1 -0
- package/dist/bip322Verify-B7_gIhRk.cjs +2 -0
- package/dist/bip322Verify-B7_gIhRk.cjs.map +1 -0
- package/dist/bip322Verify-D6sBBUHE.js +79 -0
- package/dist/bip322Verify-D6sBBUHE.js.map +1 -0
- package/dist/{buildAndBroadcastReclaim-QIN8Mcwq.js → buildAndBroadcastReclaim-BXclIcu_.js} +3 -3
- package/dist/{buildAndBroadcastReclaim-QIN8Mcwq.js.map → buildAndBroadcastReclaim-BXclIcu_.js.map} +1 -1
- package/dist/{buildAndBroadcastReclaim-HX2xQlbM.cjs → buildAndBroadcastReclaim-U-PyFfDg.cjs} +2 -2
- package/dist/{buildAndBroadcastReclaim-HX2xQlbM.cjs.map → buildAndBroadcastReclaim-U-PyFfDg.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +209 -205
- package/dist/index.js.map +1 -1
- package/dist/onChainBtcPubkey-BbxRrbvg.cjs +2 -0
- package/dist/onChainBtcPubkey-BbxRrbvg.cjs.map +1 -0
- package/dist/onChainBtcPubkey-C-6UWpD8.js +34 -0
- package/dist/onChainBtcPubkey-C-6UWpD8.js.map +1 -0
- package/dist/{parseFundingOutpoints-BkgGihaY.cjs → parseFundingOutpoints-B4iQeX6q.cjs} +2 -2
- package/dist/{parseFundingOutpoints-BkgGihaY.cjs.map → parseFundingOutpoints-B4iQeX6q.cjs.map} +1 -1
- package/dist/{parseFundingOutpoints-DlINgQ3X.js → parseFundingOutpoints-B67CoXpF.js} +2 -2
- package/dist/{parseFundingOutpoints-DlINgQ3X.js.map → parseFundingOutpoints-B67CoXpF.js.map} +1 -1
- package/dist/pegin-registration-client-6vLk2itL.cjs +2 -0
- package/dist/pegin-registration-client-6vLk2itL.cjs.map +1 -0
- package/dist/pegin-registration-client-BdRiR8br.js +2635 -0
- package/dist/pegin-registration-client-BdRiR8br.js.map +1 -0
- package/dist/primeVpAuth-DBHohVKM.cjs +2 -0
- package/dist/primeVpAuth-DBHohVKM.cjs.map +1 -0
- package/dist/primeVpAuth-DvaD45q_.js +745 -0
- package/dist/primeVpAuth-DvaD45q_.js.map +1 -0
- package/dist/psbtInputFields-B3e05Xe6.js +171 -0
- package/dist/psbtInputFields-B3e05Xe6.js.map +1 -0
- package/dist/psbtInputFields-BIxBpPj2.cjs +2 -0
- package/dist/psbtInputFields-BIxBpPj2.cjs.map +1 -0
- package/dist/sha2-CrlWM5S8.js +312 -0
- package/dist/{sha2-BYVxyZzX.js.map → sha2-CrlWM5S8.js.map} +1 -1
- package/dist/sha2-DI0-0SHr.cjs +2 -0
- package/dist/{sha2-DsrLC4NM.cjs.map → sha2-DI0-0SHr.cjs.map} +1 -1
- package/dist/{signPsbtsWithFallback-CCFTzE0o.js → signPsbtsWithFallback-0VBALhjS.js} +2 -2
- package/dist/{signPsbtsWithFallback-CCFTzE0o.js.map → signPsbtsWithFallback-0VBALhjS.js.map} +1 -1
- package/dist/{signPsbtsWithFallback-CrkvpSJz.cjs → signPsbtsWithFallback-DMSpIQWH.cjs} +2 -2
- package/dist/{signPsbtsWithFallback-CrkvpSJz.cjs.map → signPsbtsWithFallback-DMSpIQWH.cjs.map} +1 -1
- package/dist/tbv/core/clients/eth/__tests__/eth-import-boundary.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/eth-import-boundary.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/onChainBtcPubkey.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/onChainBtcPubkey.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/payout-script.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/payout-script.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/pegin-registration-calldata.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/pegin-registration-calldata.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/pegin-registration-client.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/pegin-registration-client.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/pegin-transaction.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/pegin-transaction.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/index.cjs +2 -0
- package/dist/tbv/core/clients/eth/index.cjs.map +1 -0
- package/dist/tbv/core/clients/eth/index.d.ts +4 -0
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/index.js +22 -0
- package/dist/tbv/core/clients/eth/index.js.map +1 -0
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/payout-script.d.ts +4 -0
- package/dist/tbv/core/clients/eth/payout-script.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/pegin-registration-client.d.ts +99 -0
- package/dist/tbv/core/clients/eth/pegin-registration-client.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/pegin-transaction.d.ts +14 -0
- package/dist/tbv/core/clients/eth/pegin-transaction.d.ts.map +1 -0
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +55 -48
- package/dist/tbv/core/clients/index.js.map +1 -1
- package/dist/tbv/core/clients/mempool/index.cjs +2 -0
- package/dist/tbv/core/clients/mempool/index.cjs.map +1 -0
- package/dist/tbv/core/clients/mempool/index.js +222 -0
- package/dist/tbv/core/clients/mempool/index.js.map +1 -0
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.cjs.map +1 -1
- package/dist/tbv/core/contracts/index.js +491 -12
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.d.ts +1 -0
- package/dist/tbv/core/index.d.ts.map +1 -1
- package/dist/tbv/core/index.js +207 -203
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/PeginManager.d.ts +38 -30
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.d.ts +2 -1
- package/dist/tbv/core/managers/index.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +2 -2
- package/dist/tbv/core/utils/eth/index.cjs +2 -0
- package/dist/tbv/core/utils/eth/index.cjs.map +1 -0
- package/dist/tbv/core/utils/eth/index.js +109 -0
- package/dist/tbv/core/utils/eth/index.js.map +1 -0
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.js +41 -40
- package/dist/tbv/core/utils/index.js.map +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 +207 -203
- package/dist/tbv/index.js.map +1 -1
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/{toRefundInputs-BG-qHCEu.js → toRefundInputs-BkcFhvDp.js} +5 -5
- package/dist/{toRefundInputs-BG-qHCEu.js.map → toRefundInputs-BkcFhvDp.js.map} +1 -1
- package/dist/{toRefundInputs-kVR-3EdD.cjs → toRefundInputs-CatCKniS.cjs} +2 -2
- package/dist/{toRefundInputs-kVR-3EdD.cjs.map → toRefundInputs-CatCKniS.cjs.map} +1 -1
- package/dist/types-CPDLZm3l.js +430 -0
- package/dist/types-CPDLZm3l.js.map +1 -0
- package/dist/types-DSlcXtog.cjs +2 -0
- package/dist/types-DSlcXtog.cjs.map +1 -0
- package/package.json +32 -3
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js +0 -111
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js.map +0 -1
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs +0 -2
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs.map +0 -1
- package/dist/PeginManager-Bwjqb0_6.cjs +0 -2
- package/dist/PeginManager-Bwjqb0_6.cjs.map +0 -1
- package/dist/PeginManager-DjatPUPS.js +0 -1503
- package/dist/PeginManager-DjatPUPS.js.map +0 -1
- package/dist/ProtocolParams.abi-C0TSRaHV.js +0 -486
- package/dist/ProtocolParams.abi-C0TSRaHV.js.map +0 -1
- package/dist/ProtocolParams.abi-CYZoV2EI.cjs +0 -2
- package/dist/ProtocolParams.abi-CYZoV2EI.cjs.map +0 -1
- package/dist/errors-Blc-JWnI.js +0 -121
- package/dist/errors-Blc-JWnI.js.map +0 -1
- package/dist/errors-CGcNP0rV.cjs +0 -2
- package/dist/errors-CGcNP0rV.cjs.map +0 -1
- package/dist/mempoolApi-BJvC9nPF.cjs +0 -2
- package/dist/mempoolApi-BJvC9nPF.cjs.map +0 -1
- package/dist/mempoolApi-_CoQH5vH.js +0 -612
- package/dist/mempoolApi-_CoQH5vH.js.map +0 -1
- package/dist/onChainBtcPubkey-B5ZvWCCF.cjs +0 -2
- package/dist/onChainBtcPubkey-B5ZvWCCF.cjs.map +0 -1
- package/dist/onChainBtcPubkey-DATNfAAl.js +0 -19
- package/dist/onChainBtcPubkey-DATNfAAl.js.map +0 -1
- package/dist/primeVpAuth-BI63kgdd.js +0 -1171
- package/dist/primeVpAuth-BI63kgdd.js.map +0 -1
- package/dist/primeVpAuth-D3xbar3j.cjs +0 -2
- package/dist/primeVpAuth-D3xbar3j.cjs.map +0 -1
- package/dist/sha2-BYVxyZzX.js +0 -274
- package/dist/sha2-DsrLC4NM.cjs +0 -2
- package/dist/waitForTransactionReceiptSmartAware-DpQ69ySe.cjs +0 -2
- package/dist/waitForTransactionReceiptSmartAware-DpQ69ySe.cjs.map +0 -1
- package/dist/waitForTransactionReceiptSmartAware-z3Xfmo44.js +0 -277
- package/dist/waitForTransactionReceiptSmartAware-z3Xfmo44.js.map +0 -1
package/dist/tbv/index.js
CHANGED
|
@@ -1,266 +1,270 @@
|
|
|
1
1
|
import { P as s, h as t, i as r, j as i, f as o, b as n, a as P, c as p, k as c, d as u, e as E, g as d } from "../verifyScriptPathSchnorrSignature-Ciq_xZhw.js";
|
|
2
2
|
import { a as A } from "../vaultCoreVersion-D_fP9P3C.js";
|
|
3
|
-
import { computeMinClaimValue as _, computeMinPeginFee as g, deriveVaultId as T, expandAuthAnchor as
|
|
4
|
-
import { a as
|
|
3
|
+
import { computeMinClaimValue as _, computeMinPeginFee as g, deriveVaultId as T, expandAuthAnchor as m, expandHashlockSecret as S, expandWotsSeed as C, peginP2aAnchorOutput as O, supportedTxGraphVersions as I, validatePeginP2aAnchor as f } from "./core/wasm/index.js";
|
|
4
|
+
import { a as b, c as V, b as h, e as v, f as N } from "../verifyKeyPathSchnorrSignature-BrgUJmV0.js";
|
|
5
5
|
import { c as F, a as y, b as D, e as U, f as B, r as H } from "../noPayout-DpGRzidi.js";
|
|
6
6
|
import { b as K } from "../challengeAssert-Cp_GeRg8.js";
|
|
7
|
-
import { c as k, d as W, a as w, b as G, e as
|
|
7
|
+
import { c as k, d as W, a as w, b as G, e as Y, f as j, k as z, g as J, h as Z, i as q, j as Q, p as $, s as aa, t as ea, u as sa, v as ta } from "../bitcoin-C-TuHb-v.js";
|
|
8
8
|
import { c as ia } from "../abortSignals-BPpAUL1Z.js";
|
|
9
9
|
import { c as na, a as Pa } from "../signing-Cm-McVR2.js";
|
|
10
10
|
import { B as ca, C as ua, H as Ea, K as da, M as la, T as Aa, X as Ra } from "../validation-OSC0xTHB.js";
|
|
11
|
-
import {
|
|
12
|
-
import { P as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { V as
|
|
18
|
-
import {
|
|
19
|
-
import { B as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { a as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
11
|
+
import { waitForTransactionReceiptSmartAware as ga } from "./core/utils/eth/index.js";
|
|
12
|
+
import { P as ma, b as Sa, c as Ca, d as Oa, a as Ia, e as fa } from "../PeginManager-C9RPOd0L.js";
|
|
13
|
+
import { P as ba, c as Va, f as ha, r as va, s as Na, v as Ma } from "../signPsbtsWithFallback-0VBALhjS.js";
|
|
14
|
+
import { MEMPOOL_API_URLS as ya, getAddressTxs as Da, getAddressUtxos as Ua, getMempoolApiUrl as Ba, getNetworkFees as Ha, getOutspend as La, getTipHeight as Ka, getTxHex as Xa, getTxInfo as ka, getUtxoInfo as Wa, pushTx as wa } from "./core/clients/mempool/index.js";
|
|
15
|
+
import { O as Ya, V as ja, a as za, b as Ja, c as Za, r as qa } from "../types-CPDLZm3l.js";
|
|
16
|
+
import { a as $a } from "../onChainBtcPubkey-C-6UWpD8.js";
|
|
17
|
+
import { C as ee, M as se, V as te, c as re, e as ie, d as oe, v as ne, a as Pe, b as pe } from "../pegin-registration-client-BdRiR8br.js";
|
|
18
|
+
import { ApplicationRegistryABI as ue, ProtocolParamsABI as Ee } from "./core/contracts/index.js";
|
|
19
|
+
import { B as le } from "../BTCVaultRegistry.abi-CJwWI2EO.js";
|
|
20
|
+
import { B as Re, C as _e, e as ge, g as Te, h as me, i as Se } from "../BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js";
|
|
21
|
+
import { V as Oe, b as Ie, a as fe, d as xe, f as be, p as Ve } from "../parseFundingOutpoints-B67CoXpF.js";
|
|
22
|
+
import { B as ve, a as Ne, c as Me, b as Fe, d as ye, g as De, h as Ue, f as Be, s as He, e as Le } from "../psbtInputFields-B3e05Xe6.js";
|
|
23
|
+
import { B as Xe, D as ke, L as We, M as we, c as Ge, P as Ye, b as je, a as ze, S as Je, T as Ze, W as qe, f as Qe, d as $e, p as as, r as es } from "../fundPeginTransaction-B2wyjqp0.js";
|
|
24
|
+
import { U as ts, a as rs, e as is, f as os, v as ns } from "../reservation-Cj9F0rP9.js";
|
|
25
|
+
import { V as ps, a as cs, b as us, v as Es } from "../index-LgmJhdEN.js";
|
|
26
|
+
import { A as ls, D as As, J as Rs, a as _s, b as gs, d as Ts, P as ms, R as Ss, e as Cs, c as Os, V as Is, i as fs } from "../json-rpc-client-DuUARJvV.js";
|
|
27
|
+
import { S as bs, V as Vs, c as hs, p as vs, v as Ns, a as Ms } from "../primeVpAuth-DvaD45q_.js";
|
|
28
|
+
import { D as ys, a as Ds, h as Us, j as Bs, P as Hs, k as Ls, U as Ks, V as Xs, c as ks, d as Ws, f as ws, e as Gs, b as Ys, i as js, r as zs, g as Js, t as Zs } from "../toRefundInputs-BkcFhvDp.js";
|
|
29
|
+
import { H as Qs, E as $s, P as at, o as et, c as st, d as tt, S as rt, T as it, U as ot, V as nt, K as Pt, L as pt, M as ct, N as ut, O as Et, R as dt, a as lt, b as At, y as Rt, Q as _t, I as gt, J as Tt, g as mt, z as St, p as Ct, i as Ot, e as It, G as ft, F as xt, t as bt, A as Vt, B as ht, C as vt, D as Nt, r as Mt, s as Ft, f as yt, h as Dt, j as Ut, v as Bt, k as Ht, l as Lt, m as Kt, n as Xt, q as kt, u as Wt, w as wt, x as Gt } from "../buildAndBroadcastReclaim-BXclIcu_.js";
|
|
30
|
+
import { C as jt, P as zt, c as Jt, g as Zt, i as qt } from "../peginState-CxDiaKuk.js";
|
|
29
31
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
ls as AUTH_REJECTED_RPC_CODE,
|
|
33
|
+
ue as ApplicationRegistryABI,
|
|
34
|
+
Qs as BIP68NotMatureError,
|
|
33
35
|
ca as BITCOIN_ADDRESS_RE,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
le as BTCVaultRegistryABI,
|
|
37
|
+
Re as BTCVaultRegistryKeyEpochsABI,
|
|
38
|
+
Xe as BTC_DUST_SAT,
|
|
39
|
+
ve as BitcoinScriptType,
|
|
40
|
+
ee as COMMISSION_BPS_HEADROOM,
|
|
39
41
|
ua as COMPRESSED_PUBKEY_HEX_LEN,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
_e as CONTRACT_ERRORS,
|
|
43
|
+
$s as ClaimerPegoutStatusValue,
|
|
44
|
+
jt as ContractStatus,
|
|
45
|
+
ys as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
46
|
+
ke as DUST_THRESHOLD,
|
|
47
|
+
As as DaemonStatus,
|
|
48
|
+
Ds as DepositTermsRejectedError,
|
|
47
49
|
Ea as HEX_RE,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
Rs as JSON_RPC_ERROR_CODES,
|
|
51
|
+
_s as JsonRpcClient,
|
|
52
|
+
gs as JsonRpcError,
|
|
51
53
|
da as KNOWN_SCRIPT_PREFIXES,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
We as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
55
|
+
se as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
56
|
+
we as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
55
57
|
la as MAX_REASONABLE_FEE_SATS,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
Ge as MAX_REASONABLE_PEGIN_VBYTES,
|
|
59
|
+
ya as MEMPOOL_API_URLS,
|
|
60
|
+
Ya as OnChainBtcVaultStatus,
|
|
61
|
+
Ye as P2TR_INPUT_SIZE,
|
|
62
|
+
je as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
61
63
|
s as PEGIN_DEPOSITOR_CLAIM_VOUT,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
64
|
+
at as PEGIN_ETH_CONFIRMATIONS,
|
|
65
|
+
ze as PEGIN_FIXED_OUTPUTS,
|
|
66
|
+
Ts as POST_WOTS_STATUSES,
|
|
67
|
+
ms as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
68
|
+
et as ParticipantKeyDriftError,
|
|
69
|
+
ba as PayoutManager,
|
|
70
|
+
zt as PeginAction,
|
|
71
|
+
ma as PeginManager,
|
|
72
|
+
Us as PeginParamsAmbiguousError,
|
|
73
|
+
Bs as PeginParamsIncompleteSpaceError,
|
|
74
|
+
Hs as PeginParamsNotFoundError,
|
|
75
|
+
st as PeginRegistrationMissingError,
|
|
76
|
+
tt as PeginRegistrationNotFinalError,
|
|
77
|
+
Ls as PeginSizingIntegrityError,
|
|
78
|
+
Ee as ProtocolParamsABI,
|
|
77
79
|
t as PsbtSubstitutionError,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
rt as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
|
|
81
|
+
it as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
|
|
82
|
+
ot as RECLAIM_MAX_FEE_RATE_SATS_VB,
|
|
83
|
+
nt as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
|
|
84
|
+
Pt as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
85
|
+
pt as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
86
|
+
ct as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
87
|
+
ut as REFUND_VSIZE,
|
|
88
|
+
Et as ReclaimUneconomicalError,
|
|
89
|
+
dt as RegisteredVaultVersionMismatchError,
|
|
90
|
+
Ss as RpcErrorCode,
|
|
91
|
+
Je as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
92
|
+
bs as ServerIdentityError,
|
|
91
93
|
Aa as TXID_RE,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
Ze as TX_BUFFER_SIZE_OVERHEAD,
|
|
95
|
+
Ks as UnanchoredPrePeginError,
|
|
96
|
+
ts as UtxoNotAvailableError,
|
|
97
|
+
Oe as VAULT_APP_NAME,
|
|
98
|
+
Cs as VP_BATCH_MAX_SIZE,
|
|
99
|
+
Os as VP_TERMINAL_FAILURE_STATUSES,
|
|
100
|
+
Is as VP_TRANSIENT_STATUSES,
|
|
101
|
+
ps as VaultProviderRpcClient,
|
|
102
|
+
Xs as VaultRootMismatchError,
|
|
103
|
+
ja as ViemOperationKeyReader,
|
|
104
|
+
te as ViemPeginRegistrationClient,
|
|
105
|
+
za as ViemProtocolParamsReader,
|
|
106
|
+
Ja as ViemUniversalChallengerReader,
|
|
107
|
+
Za as ViemVaultKeeperReader,
|
|
108
|
+
re as ViemVaultRegistryReader,
|
|
109
|
+
cs as VpResponseValidationError,
|
|
110
|
+
Vs as VpTokenRegistry,
|
|
111
|
+
qe as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
109
112
|
Ra as X_ONLY_PUBKEY_HEX_LEN,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
lt as activateVault,
|
|
114
|
+
At as activateVaultAndRedeem,
|
|
115
|
+
Ne as applyChangeOutputPolicy,
|
|
116
|
+
b as assertKeyPathSchnorrSignature,
|
|
117
|
+
$a as assertOnChainBtcPubkey,
|
|
115
118
|
r as assertPsbtUnsignedTxMatches,
|
|
116
|
-
|
|
119
|
+
V as assertReturnedKeyPathSignatures,
|
|
117
120
|
i as assertScriptPathSchnorrSignature,
|
|
118
|
-
|
|
121
|
+
rs as assertUtxosAvailable,
|
|
119
122
|
A as assertValidVaultCoreVersion,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
Rt as assertVaultProviderHintAccepted,
|
|
124
|
+
us as batchPollByProvider,
|
|
125
|
+
_t as buildAndBroadcastReclaim,
|
|
126
|
+
gt as buildAndBroadcastRefund,
|
|
124
127
|
K as buildChallengeAssertPsbt,
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
Sa as buildDepositTerms,
|
|
129
|
+
Ie as buildFundingOutpointsCommitment,
|
|
127
130
|
F as buildNoPayoutPsbt,
|
|
128
131
|
o as buildPayoutPsbt,
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
h as buildPeginInputPsbt,
|
|
133
|
+
ks as buildPeginParamsCandidates,
|
|
131
134
|
n as buildPeginTxFromFundedPrePegin,
|
|
132
135
|
P as buildPrePeginPsbt,
|
|
133
136
|
y as buildReclaimPsbt,
|
|
134
137
|
D as buildRefundPsbt,
|
|
135
|
-
|
|
138
|
+
fe as buildVaultContext,
|
|
136
139
|
na as calculateBtcTxHash,
|
|
137
|
-
|
|
140
|
+
Jt as canPerformAction,
|
|
138
141
|
k as canonicalizeBtcPubkey,
|
|
139
|
-
|
|
142
|
+
ie as capMaxAcceptableCommissionBps,
|
|
140
143
|
ia as combineAbortSignals,
|
|
141
|
-
|
|
144
|
+
Me as computeChangeOutputFeeSats,
|
|
142
145
|
Va as computeHashlock,
|
|
143
|
-
|
|
146
|
+
Fe as computeMaxDeposit,
|
|
144
147
|
_ as computeMinClaimValue,
|
|
145
148
|
g as computeMinPeginFee,
|
|
146
149
|
p as computeNumLocalChallengers,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
ye as computePeginBaseFeeSats,
|
|
151
|
+
Ca as computeWotsBlockPublicKeysHash,
|
|
152
|
+
hs as createAuthenticatedVpClient,
|
|
150
153
|
c as createPayoutScript,
|
|
151
154
|
Pa as createTaprootScriptPathSignOptions,
|
|
152
155
|
W as deriveBip86ScriptPubKeyHex,
|
|
153
156
|
u as deriveDepositorClaimDescriptor,
|
|
154
157
|
E as deriveDepositorClaimScriptPubKey,
|
|
155
|
-
|
|
158
|
+
Ws as deriveHashlocksFromPrePegin,
|
|
156
159
|
w as deriveNativeSegwitAddress,
|
|
160
|
+
oe as derivePeginVaultId,
|
|
157
161
|
G as deriveTaprootAddress,
|
|
158
162
|
T as deriveVaultId,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
xe as deriveVaultRoot,
|
|
164
|
+
Oa as deriveWotsBlocksFromSeed,
|
|
165
|
+
ws as describePeginParamsCandidate,
|
|
166
|
+
Gs as describeUnresolvedVersion,
|
|
167
|
+
Y as ensureHexPrefix,
|
|
164
168
|
Ia as ensurePrePeginTermsApproval,
|
|
165
169
|
U as estimateReclaimFeeSats,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
Tt as estimateRefundFeeSats,
|
|
171
|
+
fa as estimateSubmitPeginRequestBatchGas,
|
|
172
|
+
m as expandAuthAnchor,
|
|
173
|
+
S as expandHashlockSecret,
|
|
170
174
|
C as expandWotsSeed,
|
|
171
|
-
|
|
172
|
-
|
|
175
|
+
ge as extractErrorData,
|
|
176
|
+
is as extractInputsFromTransaction,
|
|
173
177
|
d as extractPayoutSignature,
|
|
174
178
|
v as extractPeginInputSignature,
|
|
175
|
-
|
|
179
|
+
N as finalizePeginInputPsbt,
|
|
176
180
|
B as finalizeScriptPathWithSignatures,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
181
|
+
os as findOverlappingPendingVaults,
|
|
182
|
+
j as formatSatoshisToBtc,
|
|
183
|
+
ha as forwardDepositApproval,
|
|
184
|
+
be as forwardDeriveContextHash,
|
|
185
|
+
Qe as fundPeginTransaction,
|
|
186
|
+
Da as getAddressTxs,
|
|
187
|
+
Ua as getAddressUtxos,
|
|
188
|
+
Te as getContractErrorMessage,
|
|
189
|
+
De as getDustThreshold,
|
|
190
|
+
Ba as getMempoolApiUrl,
|
|
187
191
|
z as getNetwork,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
Ha as getNetworkFees,
|
|
193
|
+
La as getOutspend,
|
|
194
|
+
Zt as getPeginProtocolState,
|
|
195
|
+
Ue as getPsbtInputFields,
|
|
196
|
+
Be as getScriptType,
|
|
193
197
|
J as getSortedXOnlyPubkeys,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
Ka as getTipHeight,
|
|
199
|
+
Xa as getTxHex,
|
|
200
|
+
ka as getTxInfo,
|
|
201
|
+
Wa as getUtxoInfo,
|
|
202
|
+
me as handleContractError,
|
|
199
203
|
Z as hexToUint8Array,
|
|
200
|
-
|
|
204
|
+
qt as isActivationDeadlinePassedOnChain,
|
|
201
205
|
q as isAddressFromPublicKey,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
206
|
+
fs as isAuthRejectedError,
|
|
207
|
+
mt as isDepositAmountValid,
|
|
208
|
+
Ys as isDepositTermsRejectedError,
|
|
209
|
+
St as isHintAccepted,
|
|
210
|
+
Se as isKnownContractError,
|
|
211
|
+
Ct as isParticipantKeyDriftError,
|
|
212
|
+
Ot as isPeginRegistrationMissingError,
|
|
213
|
+
It as isPeginRegistrationNotFinalError,
|
|
214
|
+
ft as isPegoutTerminalStatus,
|
|
215
|
+
xt as isRecognizedPegoutStatus,
|
|
216
|
+
bt as isRegisteredVaultVersionMismatchError,
|
|
213
217
|
Q as isValidHex,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
js as isWotsMismatchError,
|
|
219
|
+
Vt as matchKeyHint,
|
|
220
|
+
ht as matchKeySetHint,
|
|
221
|
+
Ve as parseFundingOutpointsFromTx,
|
|
222
|
+
$e as parseUnfundedWasmTransaction,
|
|
223
|
+
as as peginOutputCount,
|
|
220
224
|
O as peginP2aAnchorOutput,
|
|
221
|
-
|
|
225
|
+
vs as primeVpTokenRegistry,
|
|
222
226
|
$ as processPublicKeyToXOnly,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
227
|
+
wa as pushTx,
|
|
228
|
+
es as rateBasedTxBufferFee,
|
|
229
|
+
zs as rebuildDepositTermsCore,
|
|
226
230
|
H as reclaimVsize,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
Js as reconstructPeginParams,
|
|
232
|
+
va as requireChangeAddress,
|
|
233
|
+
vt as resolveCurrentParticipantKeys,
|
|
234
|
+
Nt as resolveParticipantKeysAtEpochs,
|
|
235
|
+
qa as resolveProtocolAddresses,
|
|
236
|
+
Mt as runDepositorPresignFlow,
|
|
237
|
+
He as selectUtxosForPegin,
|
|
238
|
+
Le as shouldAddChangeOutput,
|
|
239
|
+
Ft as signDepositorGraph,
|
|
236
240
|
aa as stripHexPrefix,
|
|
237
|
-
|
|
238
|
-
|
|
241
|
+
yt as submitWotsPublicKey,
|
|
242
|
+
I as supportedTxGraphVersions,
|
|
239
243
|
Na as supportsDepositApproval,
|
|
240
|
-
|
|
244
|
+
Zs as toRefundInputs,
|
|
241
245
|
ea as toXOnly,
|
|
242
246
|
sa as uint8ArrayToHex,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
247
|
+
Dt as validateDepositAmount,
|
|
248
|
+
Ut as validateMultiVaultDepositInputs,
|
|
249
|
+
ne as validateOffchainParams,
|
|
250
|
+
Bt as validateOnChainParticipantKeys,
|
|
251
|
+
Pe as validatePegInConfiguration,
|
|
252
|
+
f as validatePeginP2aAnchor,
|
|
253
|
+
Ht as validateProviderSelection,
|
|
254
|
+
Lt as validateRemainingCapacity,
|
|
255
|
+
Es as validateRequestDepositorClaimerArtifactsResponse,
|
|
256
|
+
Ma as validateSecretAgainstHashlock,
|
|
257
|
+
pe as validateTBVProtocolParams,
|
|
258
|
+
ns as validateUtxosAvailable,
|
|
259
|
+
Kt as validateVaultAmounts,
|
|
260
|
+
Xt as validateVaultProviderPubkey,
|
|
257
261
|
ta as validateWalletPubkey,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
kt as verifyRegisteredParticipantKeys,
|
|
263
|
+
Wt as verifyRegisteredVaultVersions,
|
|
264
|
+
Ns as verifyServerIdentity,
|
|
265
|
+
Ms as vpTokenRegistry,
|
|
266
|
+
wt as waitForPeginRegistrationDepth,
|
|
267
|
+
Gt as waitForPeginStatus,
|
|
268
|
+
ga as waitForTransactionReceiptSmartAware
|
|
265
269
|
};
|
|
266
270
|
//# sourceMappingURL=index.js.map
|
package/dist/tbv/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/testing/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty;var O=(i,e,t)=>e in i?S(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var c=(i,e,t)=>O(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@bitcoin-js/tiny-secp256k1-asmjs"),y=require("../sha2-
|
|
1
|
+
"use strict";var S=Object.defineProperty;var O=(i,e,t)=>e in i?S(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var c=(i,e,t)=>O(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@bitcoin-js/tiny-secp256k1-asmjs"),y=require("../sha2-DI0-0SHr.cjs"),o=require("buffer"),u=require("../bitcoin-D-O2GjbC.cjs"),l=require("bitcoinjs-lib"),k=require("../shared/index.cjs");function B(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const b=B(v),I="BIP0322-signed-message",E=1,g=0,K=71,D=100,H=0,T=0,_=0,N=32,F=4294967295,M=0,U=0,A=32,C=106,W=2,R=32,$=0;function G(i,e){const t=b.pointFromScalar(e,!0);if(!t)throw new Error("signBip322P2wpkhWitness: invalid private key");const n=y.sha256(new TextEncoder().encode(I)),s=y.sha256(o.Buffer.concat([n,n,o.Buffer.from(i)])),r=l.payments.p2wpkh({pubkey:o.Buffer.from(t)});if(!r.output||!r.hash)throw new Error("signBip322P2wpkhWitness: could not derive P2WPKH script");const a=new l.Transaction;a.version=H,a.locktime=T,a.addInput(o.Buffer.alloc(N,0),F,_,o.Buffer.concat([o.Buffer.from([U,A]),o.Buffer.from(s)])),a.addOutput(r.output,g);const h=new l.Transaction;h.version=H,h.locktime=T,h.addInput(a.getHash(),M,_),h.addOutput(o.Buffer.from([C]),g);const q=l.payments.p2pkh({hash:r.hash}).output;if(!q)throw new Error("signBip322P2wpkhWitness: could not build scriptCode");const P=h.hashForWitnessV0(0,q,g,E);let d;for(let f=0;f<D;f++){const w=o.Buffer.alloc(R,0);w.writeUInt32LE(f,$);const x=l.script.signature.encode(o.Buffer.from(b.sign(P,e,w)),E);if(x.length>=K){d=x;break}}if(!d)throw new Error("signBip322P2wpkhWitness: could not grind a 71/72-byte signature");return Uint8Array.from([W,d.length,...d,t.length,...t])}const X=async(i,e)=>{const t=new TextEncoder,n=t.encode(i),s=t.encode(e),r=new Uint8Array(4+n.length+4+s.length),a=new DataView(r.buffer);return a.setUint32(0,n.length),r.set(n,4),a.setUint32(4+n.length,s.length),r.set(s,4+n.length+4),u.uint8ArrayToHex(y.sha256(r))},j=`${"00".repeat(31)}01`;function p(i){return u.uint8ArrayToHex(b.xOnlyPointFromScalar(Uint8Array.from(o.Buffer.from(i,"hex"))))}const m={publicKeyHex:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",address:"tb1pqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkx6jks",network:k.BitcoinNetworks.SIGNET,shouldFailSigning:!1,privateKeyHex:j,deriveContextHash:X};class L{constructor(e={}){c(this,"config");this.config={...m,...e.publicKeyHex?{publicKeyHex:e.publicKeyHex}:{},...e.address?{address:e.address}:{},...e.network!==void 0?{network:e.network}:{},...e.shouldFailSigning!==void 0?{shouldFailSigning:e.shouldFailSigning}:{},...e.privateKeyHex?{privateKeyHex:e.privateKeyHex}:{},...e.deriveContextHash?{deriveContextHash:e.deriveContextHash}:{}},e.privateKeyHex&&!e.publicKeyHex&&(this.config.publicKeyHex=p(e.privateKeyHex))}async getPublicKeyHex(){return this.config.publicKeyHex}async getAddress(){return this.config.address}async signPsbt(e,t){if(this.config.shouldFailSigning)throw new Error("Mock signing failed");if(!e||e.length===0)throw new Error("Invalid PSBT: empty hex string");return e+"deadbeef"}async signPsbts(e,t){const n=[];for(const s of e){const r=await this.signPsbt(s);n.push(r)}return n}async signMessage(e,t){if(t!=="bip322-simple")throw new Error("MockBitcoinWallet.signMessage: only bip322-simple is implemented");if(this.config.shouldFailSigning)throw new Error("Mock signing failed");if(!e||e.length===0)throw new Error("Invalid message: empty string");const n=p(this.config.privateKeyHex);let s;try{s=u.canonicalizeBtcPubkey(this.config.publicKeyHex)}catch{s=void 0}if(s!==n)throw new Error(`MockBitcoinWallet.signMessage: privateKeyHex signs as x-only pubkey ${n}, but publicKeyHex is ${this.config.publicKeyHex}. Pass a matching publicKeyHex/privateKeyHex pair.`);const r=G(new TextEncoder().encode(e),Uint8Array.from(o.Buffer.from(this.config.privateKeyHex,"hex")));return`0x${u.uint8ArrayToHex(r)}`}async getNetwork(){return this.config.network}async deriveContextHash(e,t){return this.config.deriveContextHash(e,t)}updateConfig(e){this.config={...this.config,...e},e.privateKeyHex&&!e.publicKeyHex&&(this.config.publicKeyHex=p(e.privateKeyHex))}reset(){this.config={...m}}}class V{constructor(e={}){c(this,"account");c(this,"chain");c(this,"shouldFailOperations");c(this,"transactionDelay");c(this,"nonce",0);this.account={address:e.address||"0x742d35cc6634c0532925a3b844bc9e7595f0beb0"},this.chain={id:e.chainId??11155111},this.shouldFailOperations=e.shouldFailOperations??!1,this.transactionDelay=e.transactionDelay??0,this.signMessage=this.signMessage.bind(this),this.sendTransaction=this.sendTransaction.bind(this)}async signMessage(e){const t=e.message,n=e.account||this.account.address;if(this.shouldFailOperations)throw new Error("Mock signing failed");if(!t||t.length===0)throw new Error("Invalid message: empty string");const s=`personal_sign:${t}-${n}-${this.chain.id}`;return`0x${o.Buffer.from(s).toString("hex").slice(0,130).padEnd(130,"0")}`}async sendTransaction(e){var s;if(this.shouldFailOperations)throw new Error("Mock transaction failed");if(!e.to)throw new Error("Invalid transaction: missing 'to' address");this.transactionDelay>0&&await new Promise(r=>setTimeout(r,this.transactionDelay)),this.nonce++;const t=JSON.stringify({from:this.account.address,to:e.to,value:((s=e.value)==null?void 0:s.toString())||"0",nonce:this.nonce,chainId:this.chain.id});return`0x${o.Buffer.from(t).toString("hex").slice(0,64).padEnd(64,"0")}`}updateConfig(e){e.address!==void 0&&(this.account.address=e.address),e.chainId!==void 0&&(this.chain.id=e.chainId),e.shouldFailOperations!==void 0&&(this.shouldFailOperations=e.shouldFailOperations),e.transactionDelay!==void 0&&(this.transactionDelay=e.transactionDelay)}reset(){this.account.address="0x742d35cc6634c0532925a3b844bc9e7595f0beb0",this.chain.id=11155111,this.shouldFailOperations=!1,this.transactionDelay=0,this.nonce=0}getCurrentNonce(){return this.nonce}}exports.MockBitcoinWallet=L;exports.MockEthereumWallet=V;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/testing/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var v = Object.defineProperty;
|
|
|
2
2
|
var k = (r, t, e) => t in r ? v(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var c = (r, t, e) => k(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import * as p from "@bitcoin-js/tiny-secp256k1-asmjs";
|
|
5
|
-
import { s as f } from "../sha2-
|
|
5
|
+
import { s as f } from "../sha2-CrlWM5S8.js";
|
|
6
6
|
import { Buffer as o } from "buffer";
|
|
7
7
|
import { c as I, u as y } from "../bitcoin-C-TuHb-v.js";
|
|
8
8
|
import { payments as q, Transaction as b, script as O } from "bitcoinjs-lib";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var J = Object.defineProperty;
|
|
2
2
|
var X = (e, t, r) => t in e ? J(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var I = (e, t, r) => X(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { s as G } from "./sha2-
|
|
5
|
-
import { a as F } from "./signPsbtsWithFallback-
|
|
6
|
-
import { b as Y,
|
|
4
|
+
import { s as G } from "./sha2-CrlWM5S8.js";
|
|
5
|
+
import { a as F } from "./signPsbtsWithFallback-0VBALhjS.js";
|
|
6
|
+
import { b as Y, f as Z } from "./PeginManager-C9RPOd0L.js";
|
|
7
7
|
import { s as P, h as ee, p as z, u as te, e as re } from "./bitcoin-C-TuHb-v.js";
|
|
8
8
|
import { computeMinClaimValue as N, computeMinPeginFee as D, peginP2aAnchorOutput as U, getPrePeginHtlcConnectorInfo as ne, expandAuthAnchor as oe } from "./tbv/core/wasm/index.js";
|
|
9
|
-
import { p as se, d as ae } from "./parseFundingOutpoints-
|
|
9
|
+
import { p as se, d as ae } from "./parseFundingOutpoints-B67CoXpF.js";
|
|
10
10
|
import { Transaction as j } from "bitcoinjs-lib";
|
|
11
11
|
import { m as ie, H as K } from "./verifyScriptPathSchnorrSignature-Ciq_xZhw.js";
|
|
12
12
|
import { c as O } from "./fundPeginTransaction-B2wyjqp0.js";
|
|
@@ -453,4 +453,4 @@ export {
|
|
|
453
453
|
ue as r,
|
|
454
454
|
Me as t
|
|
455
455
|
};
|
|
456
|
-
//# sourceMappingURL=toRefundInputs-
|
|
456
|
+
//# sourceMappingURL=toRefundInputs-BkcFhvDp.js.map
|