@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/core/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 "./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 "./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 "./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 "./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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address, Chain, Hex, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
import { BitcoinWallet, Hash } from '../../../shared/wallets';
|
|
3
|
+
import { PopSignature } from '../clients/eth/pegin-registration-client';
|
|
3
4
|
import { WotsBlockPublicKey } from '../clients/vault-provider/types';
|
|
4
5
|
import { DepositTerms } from '../deposit-terms';
|
|
5
6
|
import { Network } from '../primitives';
|
|
@@ -255,20 +256,6 @@ export interface SignAndBroadcastParams {
|
|
|
255
256
|
*/
|
|
256
257
|
depositTerms?: DepositTerms;
|
|
257
258
|
}
|
|
258
|
-
/**
|
|
259
|
-
* BIP-322 BTC Proof-of-Possession binding a depositor's BTC key to their
|
|
260
|
-
* Ethereum account. Produced by {@link PeginManager.signProofOfPossession}
|
|
261
|
-
* and reusable across every register call in the same session — the
|
|
262
|
-
* embedded identities are re-checked at register time.
|
|
263
|
-
*/
|
|
264
|
-
export interface PopSignature {
|
|
265
|
-
/** BIP-322 signature over the PoP message (0x-prefixed hex). */
|
|
266
|
-
btcPopSignature: Hex;
|
|
267
|
-
/** Ethereum address the PoP was signed for. */
|
|
268
|
-
depositorEthAddress: Address;
|
|
269
|
-
/** BTC x-only public key (64-char hex, no 0x prefix). */
|
|
270
|
-
depositorBtcPubkey: string;
|
|
271
|
-
}
|
|
272
259
|
/**
|
|
273
260
|
* Parameters for registering a peg-in on Ethereum.
|
|
274
261
|
*/
|
|
@@ -389,6 +376,41 @@ export interface RegisterPeginBatchResult {
|
|
|
389
376
|
/** Per-vault results (same order as input requests) */
|
|
390
377
|
vaults: BatchPeginResultItem[];
|
|
391
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* Manager for orchestrating peg-in operations.
|
|
381
|
+
*
|
|
382
|
+
* This manager provides a high-level API for creating peg-in transactions
|
|
383
|
+
* by coordinating between SDK primitives, utilities, and wallet interfaces.
|
|
384
|
+
*
|
|
385
|
+
* @remarks
|
|
386
|
+
* The complete peg-in flow consists of 5 steps:
|
|
387
|
+
*
|
|
388
|
+
* | Step | Method | Description |
|
|
389
|
+
* |------|--------|-------------|
|
|
390
|
+
* | 1 | {@link preparePegin} | Build Pre-PegIn HTLC, fund it, sign PegIn input |
|
|
391
|
+
* | 2 | {@link signProofOfPossession} | Sign BIP-322 PoP (one per deposit session) |
|
|
392
|
+
* | 3 | {@link registerPeginOnChain} | Submit to Ethereum contract |
|
|
393
|
+
* | 4 | {@link signAndBroadcast} | Sign and broadcast Pre-PegIn tx to Bitcoin network |
|
|
394
|
+
* | 5 | {@link PayoutManager} | Sign BOTH payout authorizations |
|
|
395
|
+
*
|
|
396
|
+
* **Important:** Step 5 uses {@link PayoutManager}, not this class. After
|
|
397
|
+
* step 4, the vault provider observes the broadcast Pre-PegIn and prepares
|
|
398
|
+
* 3 transactions per claimer:
|
|
399
|
+
* - `claim_tx` - Claim transaction
|
|
400
|
+
* - `assert_tx` - Assert transaction
|
|
401
|
+
* - `payout_tx` - Payout transaction
|
|
402
|
+
*
|
|
403
|
+
* You must sign the Payout transaction for each claimer:
|
|
404
|
+
* - {@link PayoutManager.signPayoutTransaction} - uses assert_tx as input reference
|
|
405
|
+
*
|
|
406
|
+
* Submit all signatures to the vault provider to drive the contract to
|
|
407
|
+
* `VERIFIED` (and then activate by revealing the HTLC secret, which is a
|
|
408
|
+
* services-layer step outside this manager).
|
|
409
|
+
*
|
|
410
|
+
* @see {@link PayoutManager} - Required for Step 5 (payout authorization)
|
|
411
|
+
* @see {@link buildPrePeginPsbt} - Lower-level primitive for custom implementations
|
|
412
|
+
* @see {@link https://github.com/babylonlabs-io/babylon-toolkit/blob/main/packages/babylon-ts-sdk/docs/quickstart/managers.md | Managers Quickstart}
|
|
413
|
+
*/
|
|
392
414
|
export declare class PeginManager {
|
|
393
415
|
private readonly config;
|
|
394
416
|
/**
|
|
@@ -493,21 +515,7 @@ export declare class PeginManager {
|
|
|
493
515
|
* @returns Batch result with per-vault IDs and single ETH tx hash
|
|
494
516
|
*/
|
|
495
517
|
registerPeginBatchOnChain(params: RegisterPeginBatchParams): Promise<RegisterPeginBatchResult>;
|
|
496
|
-
private
|
|
497
|
-
/**
|
|
498
|
-
* Check if a vault already exists for a given vault ID.
|
|
499
|
-
*
|
|
500
|
-
* The contract returns a default struct (with `depositor === zeroAddress`)
|
|
501
|
-
* when no vault is registered, so existence is signalled in the response,
|
|
502
|
-
* not via a thrown error. RPC/network failures are propagated rather than
|
|
503
|
-
* silently treated as "vault doesn't exist", which would otherwise let
|
|
504
|
-
* downstream calls run with stale assumptions.
|
|
505
|
-
*
|
|
506
|
-
* @param vaultId - The Bitcoin transaction hash (vault ID)
|
|
507
|
-
* @returns True if vault exists, false otherwise
|
|
508
|
-
* @throws If the underlying RPC read fails
|
|
509
|
-
*/
|
|
510
|
-
private checkVaultExists;
|
|
518
|
+
private createRegistrationClient;
|
|
511
519
|
/**
|
|
512
520
|
* Resolve the BTC scriptPubKey to register as the depositor's payout sink.
|
|
513
521
|
*
|
|
@@ -580,7 +588,7 @@ export interface EstimateSubmitPeginRequestBatchGasParams {
|
|
|
580
588
|
* `maxAcceptableCommissionBps` argument so the simulation does not revert on
|
|
581
589
|
* the contract's commission-drift check regardless of the VP's current
|
|
582
590
|
* commission. The real submit path resolves an accurate, drift-checked value
|
|
583
|
-
* via
|
|
591
|
+
* via the registration client's protocol-parameter lookup.
|
|
584
592
|
*
|
|
585
593
|
* Throws if the contract reverts during simulation; callers should treat the
|
|
586
594
|
* thrown error as "unable to estimate" and decide how to surface it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,
|
|
1
|
+
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAUd,OAAO,KAAK,EACV,aAAa,EACb,IAAI,EAEL,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EASL,KAAK,OAAO,EAEb,MAAM,eAAe,CAAC;AAOvB,OAAO,EAQL,KAAK,IAAI,EACV,MAAM,UAAU,CAAC;AA8ClB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;IAEzB;;;OAGG;IACH,SAAS,EAAE,YAAY,CAAC;IAExB;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC;IAEhB;;;;;OAKG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;OAEG;IACH,cAAc,EAAE;QACd;;WAEG;QACH,gBAAgB,EAAE,OAAO,CAAC;KA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E,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,MAAM,CAAC,CA4CjB"}
|
|
@@ -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-E-UHA1un.cjs"),a=require("../../../signPsbtsWithFallback-DMSpIQWH.cjs");exports.PeginManager=e.PeginManager;exports.estimateSubmitPeginRequestBatchGas=e.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* @module managers
|
|
22
22
|
*/
|
|
23
23
|
export { PeginManager, estimateSubmitPeginRequestBatchGas } from './PeginManager';
|
|
24
|
-
export type {
|
|
24
|
+
export type { PreparePeginResult, PreparePeginTransaction, PreparePeginDerivedSecrets, PreparePeginParams, PerVaultPeginData, PeginManagerConfig, RegisterPeginParams, RegisterPeginResult, SignAndBroadcastParams, BatchPeginRequestItem, RegisterPeginBatchParams, BatchPeginResultItem, RegisterPeginBatchResult, EstimateSubmitPeginRequestBatchGasParams, } from './PeginManager';
|
|
25
|
+
export type { PopSignature } from '../clients/eth';
|
|
25
26
|
export { PayoutManager } from './PayoutManager';
|
|
26
27
|
export type { PayoutManagerConfig, PayoutSignatureResult, SignPayoutParams, } from './PayoutManager';
|
|
27
28
|
export type { UTXO } from '../utils/utxo/selectUtxos';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,YAAY,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAClF,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,YAAY,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAClF,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,wCAAwC,GACzC,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,MAAM,kDAAkD,CAAC"}
|