@babylonlabs-io/ts-sdk 0.20.1 → 0.21.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 +14 -6
- package/dist/errors-Cbyg_QQf.cjs +2 -0
- package/dist/errors-Cbyg_QQf.cjs.map +1 -0
- package/dist/{errors-D_PI__IT.js → errors-DvIudLXV.js} +344 -338
- package/dist/errors-DvIudLXV.js.map +1 -0
- package/dist/{index-CFwoGJNQ.js → index-BORWfdUU.js} +140 -115
- package/dist/index-BORWfdUU.js.map +1 -0
- package/dist/index-DNSV--0P.cjs +2 -0
- package/dist/index-DNSV--0P.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +126 -120
- package/dist/index.js.map +1 -1
- package/dist/shared/wallets/index.d.ts +8 -0
- package/dist/shared/wallets/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.d.ts +3 -2
- package/dist/tbv/core/clients/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.js +1 -1
- package/dist/tbv/core/clients/mempool/mempoolApi.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +122 -116
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.d.ts +15 -62
- package/dist/tbv/core/managers/index.d.ts.map +1 -1
- package/dist/tbv/core/services/index.d.ts +2 -4
- package/dist/tbv/core/services/index.d.ts.map +1 -1
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.d.ts +2 -7
- package/dist/tbv/core/utils/index.d.ts.map +1 -1
- package/dist/tbv/core/utils/index.js +37 -31
- package/dist/tbv/core/utils/index.js.map +1 -1
- package/dist/tbv/core/utils/validation.d.ts +35 -0
- package/dist/tbv/core/utils/validation.d.ts.map +1 -0
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +122 -116
- package/dist/tbv/index.js.map +1 -1
- package/dist/validation-CxqROCno.js +15 -0
- package/dist/validation-CxqROCno.js.map +1 -0
- package/dist/validation-u8W7Lp2x.cjs +2 -0
- package/dist/validation-u8W7Lp2x.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/errors-D9EtjJoD.cjs +0 -2
- package/dist/errors-D9EtjJoD.cjs.map +0 -1
- package/dist/errors-D_PI__IT.js.map +0 -1
- package/dist/index-BpXpESWu.cjs +0 -2
- package/dist/index-BpXpESWu.cjs.map +0 -1
- package/dist/index-CFwoGJNQ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,138 +1,144 @@
|
|
|
1
1
|
import { i as e, g as t, h as o, d as r, a as i, b as l, c as n, e as u, f as P } from "./challengeAssert-D1lpvuMv.js";
|
|
2
|
-
import { computeMinClaimValue as c, deriveVaultId as
|
|
3
|
-
import { a as
|
|
4
|
-
import { d as
|
|
5
|
-
import { C as
|
|
6
|
-
import { B as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { B as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { computeMinClaimValue as c, deriveVaultId as T } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
3
|
+
import { a as S, b as E, c as g, e as A } from "./payout-DzGsAnhf.js";
|
|
4
|
+
import { d as _, a as m, e as x, f as b, g as I, h as f, i as C, b as v, p as U, s as y, t as O, u as h, v as B } from "./bitcoin-nOOgeRyl.js";
|
|
5
|
+
import { C as V, P as F, a as D, c as M, g as H } from "./signing-DeWVBl7m.js";
|
|
6
|
+
import { B as k, H as W, K, M as X, T as w } from "./validation-CxqROCno.js";
|
|
7
|
+
import { B as Y, C as J, P as j, a as Z, m as z, h as q, i as Q, l as $, k as aa, p as sa, b as ea, s as ta, v as oa, g as ra, d as ia, c as la, j as na, e as ua, f as Pa, w as da } from "./buildAndBroadcastRefund-DnTQkCgG.js";
|
|
8
|
+
import { BitcoinNetworks as Ta } from "./shared/index.js";
|
|
9
|
+
import { B as Sa, D as Ea, F as ga, L as Aa, M as Ra, P as _a, a as ma, S as xa, T as ba, W as Ia, f as fa, b as Ca, p as va, r as Ua } from "./fundPeginTransaction-BLYXxLBv.js";
|
|
10
|
+
import { B as Oa, U as ha, a as Ba, f as Na, c as Va, e as Fa, g as Da, i as Ma, h as Ha, s as La, b as ka, d as Wa, v as Ka } from "./psbtInputFields-r1ss6WLU.js";
|
|
11
|
+
import { C as wa, P as Ga, b as Ya, c as Ja, a as ja, d as Za, f as za, e as qa, g as Qa, h as $a, i as as, j as ss, k as es, m as ts } from "./errors-DvIudLXV.js";
|
|
12
|
+
import { A as rs, M as is, P as ls, V as ns, i as us, j as Ps, k as ds, l as cs, h as Ts, g as ps, a as Ss, b as Es, c as gs, d as As, e as Rs, f as _s, p as ms, r as xs } from "./index-BORWfdUU.js";
|
|
13
|
+
import { B as Is, D as fs, b as Cs, J as vs, a as Us, d as ys, P as Os, R as hs, c as Bs, V as Ns } from "./types-DWjaqVfP.js";
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
15
|
+
rs as ApplicationRegistryABI,
|
|
16
|
+
Y as BIP68NotMatureError,
|
|
17
|
+
k as BITCOIN_ADDRESS_RE,
|
|
18
|
+
Is as BTCVaultRegistryABI,
|
|
19
|
+
Sa as BTC_DUST_SAT,
|
|
20
|
+
Ta as BitcoinNetworks,
|
|
21
|
+
Oa as BitcoinScriptType,
|
|
22
|
+
wa as CONTRACT_ERRORS,
|
|
23
|
+
J as ClaimerPegoutStatusValue,
|
|
24
|
+
V as ContractStatus,
|
|
25
|
+
Ea as DUST_THRESHOLD,
|
|
26
|
+
fs as DaemonStatus,
|
|
27
|
+
ga as FEE_SAFETY_MARGIN,
|
|
28
|
+
W as HEX_RE,
|
|
29
|
+
Cs as JSON_RPC_ERROR_CODES,
|
|
30
|
+
vs as JsonRpcClient,
|
|
31
|
+
Us as JsonRpcError,
|
|
32
|
+
K as KNOWN_SCRIPT_PREFIXES,
|
|
33
|
+
Aa as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
34
|
+
Ra as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
35
|
+
X as MAX_REASONABLE_FEE_SATS,
|
|
36
|
+
is as MEMPOOL_API_URLS,
|
|
37
|
+
_a as P2TR_INPUT_SIZE,
|
|
38
|
+
ma as PEGIN_FIXED_OUTPUTS,
|
|
39
|
+
ys as POST_WOTS_STATUSES,
|
|
40
|
+
Os as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
41
|
+
j as PayoutManager,
|
|
42
|
+
F as PeginAction,
|
|
43
|
+
Ga as PeginManager,
|
|
44
|
+
ls as ProtocolParamsABI,
|
|
45
|
+
hs as RpcErrorCode,
|
|
46
|
+
xa as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
47
|
+
w as TXID_RE,
|
|
48
|
+
ba as TX_BUFFER_SIZE_OVERHEAD,
|
|
49
|
+
ha as UtxoNotAvailableError,
|
|
50
|
+
Bs as VP_TERMINAL_STATUSES,
|
|
51
|
+
Ns as VP_TRANSIENT_STATUSES,
|
|
52
|
+
ns as VaultProviderRpcClient,
|
|
53
|
+
us as ViemProtocolParamsReader,
|
|
54
|
+
Ps as ViemUniversalChallengerReader,
|
|
55
|
+
ds as ViemVaultKeeperReader,
|
|
56
|
+
cs as ViemVaultRegistryReader,
|
|
57
|
+
Ts as VpResponseValidationError,
|
|
58
|
+
Ia as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
59
|
+
Z as activateVault,
|
|
60
|
+
Ba as assertUtxosAvailable,
|
|
61
|
+
z as buildAndBroadcastRefund,
|
|
56
62
|
e as buildChallengeAssertPsbt,
|
|
57
63
|
t as buildDepositorPayoutPsbt,
|
|
58
64
|
o as buildNoPayoutPsbt,
|
|
59
|
-
|
|
65
|
+
S as buildPayoutPsbt,
|
|
60
66
|
r as buildPeginInputPsbt,
|
|
61
67
|
i as buildPeginTxFromFundedPrePegin,
|
|
62
68
|
l as buildPrePeginPsbt,
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
E as buildRefundPsbt,
|
|
70
|
+
Na as calculateBtcTxHash,
|
|
65
71
|
D as canPerformAction,
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
Va as collectReservedUtxoRefs,
|
|
73
|
+
q as computeHashlock,
|
|
68
74
|
c as computeMinClaimValue,
|
|
69
75
|
n as computeNumLocalChallengers,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
Ya as computeWotsBlockPublicKeysHash,
|
|
77
|
+
Ja as computeWotsPkHash,
|
|
78
|
+
g as createPayoutScript,
|
|
73
79
|
M as createTaprootScriptPathSignOptions,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
_ as deriveNativeSegwitAddress,
|
|
81
|
+
m as deriveTaprootAddress,
|
|
82
|
+
T as deriveVaultId,
|
|
83
|
+
ja as deriveWotsBlockPublicKeys,
|
|
84
|
+
Za as deriveWotsKeypair,
|
|
85
|
+
za as deriveWotsPkHash,
|
|
86
|
+
x as ensureHexPrefix,
|
|
87
|
+
qa as extractErrorData,
|
|
88
|
+
Fa as extractInputsFromTransaction,
|
|
89
|
+
A as extractPayoutSignature,
|
|
84
90
|
u as extractPeginInputSignature,
|
|
85
91
|
P as finalizePeginInputPsbt,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
b as formatSatoshisToBtc,
|
|
93
|
+
fa as fundPeginTransaction,
|
|
94
|
+
ps as getAddressTxs,
|
|
95
|
+
Ss as getAddressUtxos,
|
|
96
|
+
Qa as getContractErrorMessage,
|
|
97
|
+
Da as getDustThreshold,
|
|
98
|
+
Es as getMempoolApiUrl,
|
|
99
|
+
I as getNetwork,
|
|
100
|
+
gs as getNetworkFees,
|
|
95
101
|
H as getPeginProtocolState,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
102
|
+
Ma as getPsbtInputFields,
|
|
103
|
+
Ha as getScriptType,
|
|
104
|
+
As as getTxHex,
|
|
105
|
+
Rs as getTxInfo,
|
|
106
|
+
_s as getUtxoInfo,
|
|
107
|
+
$a as handleContractError,
|
|
108
|
+
f as hexToUint8Array,
|
|
109
|
+
C as isAddressFromPublicKey,
|
|
110
|
+
Q as isDepositAmountValid,
|
|
111
|
+
as as isKnownContractError,
|
|
112
|
+
$ as isPegoutTerminalStatus,
|
|
113
|
+
aa as isRecognizedPegoutStatus,
|
|
114
|
+
v as isValidHex,
|
|
115
|
+
ss as isWotsMismatchError,
|
|
116
|
+
es as keypairToPublicKey,
|
|
117
|
+
ts as mnemonicToWotsSeed,
|
|
118
|
+
Ca as parseUnfundedWasmTransaction,
|
|
119
|
+
va as peginOutputCount,
|
|
120
|
+
sa as pollAndSignPayouts,
|
|
121
|
+
U as processPublicKeyToXOnly,
|
|
122
|
+
ms as pushTx,
|
|
123
|
+
Ua as rateBasedTxBufferFee,
|
|
124
|
+
xs as resolveProtocolAddresses,
|
|
125
|
+
La as selectUtxosForDeposit,
|
|
126
|
+
ka as selectUtxosForPegin,
|
|
127
|
+
Wa as shouldAddChangeOutput,
|
|
128
|
+
ea as signDepositorGraph,
|
|
123
129
|
y as stripHexPrefix,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
ta as submitWotsPublicKey,
|
|
131
|
+
O as toXOnly,
|
|
132
|
+
h as uint8ArrayToHex,
|
|
133
|
+
oa as validateDepositAmount,
|
|
134
|
+
ra as validateMultiVaultDepositInputs,
|
|
135
|
+
ia as validateProviderSelection,
|
|
136
|
+
la as validateRemainingCapacity,
|
|
137
|
+
na as validateSecretAgainstHashlock,
|
|
138
|
+
Ka as validateUtxosAvailable,
|
|
139
|
+
ua as validateVaultAmounts,
|
|
140
|
+
Pa as validateVaultProviderPubkey,
|
|
141
|
+
B as validateWalletPubkey,
|
|
142
|
+
da as waitForPeginStatus
|
|
137
143
|
};
|
|
138
144
|
//# sourceMappingURL=index.js.map
|
package/dist/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":";;;;;;;;;;;;;"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-agnostic BTC wallet interface. ETH uses viem's `WalletClient` directly.
|
|
3
|
+
*
|
|
4
|
+
* See the [Wallet Interfaces Guide](https://github.com/babylonlabs-io/babylon-toolkit/blob/main/packages/babylon-ts-sdk/docs/guides/wallet-interfaces.md)
|
|
5
|
+
* for adapter patterns and the planned `deriveContextHash` method.
|
|
6
|
+
*
|
|
7
|
+
* @module wallets
|
|
8
|
+
*/
|
|
1
9
|
export { BitcoinNetworks } from './interfaces';
|
|
2
10
|
export type { BitcoinNetwork, BitcoinWallet, Hash, SignInputOptions, SignPsbtOptions, } from './interfaces';
|
|
3
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/wallets/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/wallets/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EACV,cAAc,EACd,aAAa,EACb,IAAI,EACJ,gBAAgB,EAChB,eAAe,GAChB,MAAM,cAAc,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../index-DNSV--0P.cjs"),r=require("../../../types-B-p4dhEH.cjs");exports.MEMPOOL_API_URLS=e.MEMPOOL_API_URLS;exports.VaultProviderRpcClient=e.VaultProviderRpcClient;exports.ViemProtocolParamsReader=e.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=e.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=e.ViemVaultKeeperReader;exports.ViemVaultRegistryReader=e.ViemVaultRegistryReader;exports.VpResponseValidationError=e.VpResponseValidationError;exports.getAddressTxs=e.getAddressTxs;exports.getAddressUtxos=e.getAddressUtxos;exports.getMempoolApiUrl=e.getMempoolApiUrl;exports.getNetworkFees=e.getNetworkFees;exports.getTxHex=e.getTxHex;exports.getTxInfo=e.getTxInfo;exports.getUtxoInfo=e.getUtxoInfo;exports.pushTx=e.pushTx;exports.resolveProtocolAddresses=e.resolveProtocolAddresses;exports.DaemonStatus=r.DaemonStatus;exports.JSON_RPC_ERROR_CODES=r.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=r.JsonRpcClient;exports.JsonRpcError=r.JsonRpcError;exports.POST_WOTS_STATUSES=r.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=r.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=r.RpcErrorCode;exports.VP_TERMINAL_STATUSES=r.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=r.VP_TRANSIENT_STATUSES;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SDK
|
|
2
|
+
* Transport clients for the external systems the SDK talks to (Ethereum, Bitcoin mempool, vault provider RPC).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Use the `eth` readers for authoritative vault / protocol / signer-set data at the version a vault pinned
|
|
5
|
+
* at registration — signing-critical values must not come from the indexer mirror.
|
|
5
6
|
*
|
|
6
7
|
* @module clients
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/clients/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/clients/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as a, V as r, i as o, j as t, k as R, l as S, h as T, g as d, a as l, b as E, c as _, d as i, e as p, f as P, p as V, r as A } from "../../../index-
|
|
1
|
+
import { M as a, V as r, i as o, j as t, k as R, l as S, h as T, g as d, a as l, b as E, c as _, d as i, e as p, f as P, p as V, r as A } from "../../../index-BORWfdUU.js";
|
|
2
2
|
import { D as g, b as m, J as x, a as O, d as U, P as c, R as I, c as C, V as N } from "../../../types-DWjaqVfP.js";
|
|
3
3
|
export {
|
|
4
4
|
g as DaemonStatus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mempoolApi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/mempool/mempoolApi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"mempoolApi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/mempool/mempoolApi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAkG1E;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAiCX;;;;;;;GAOG;AACH,wBAAsB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC3E;AAED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAG7E;AAED;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB5E;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,QAAQ,CAAC,CAsBnB;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,EAAE,CAAC,CAkExB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GACxC,MAAM,CAER;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,SAAS,EAAE,CAAC,CAGtB;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CA0CzE"}
|
package/dist/tbv/core/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../challengeAssert-nYlgeAI8.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../challengeAssert-nYlgeAI8.cjs"),c=require("@babylonlabs-io/babylon-tbv-rust-wasm"),P=require("../../payout-RFIh7GLN.cjs"),a=require("../../bitcoin-CNnPFU6Y.cjs"),l=require("../../signing-cl-lowxV.cjs"),u=require("../../validation-u8W7Lp2x.cjs"),e=require("../../buildAndBroadcastRefund-DWEQvj9T.cjs"),r=require("../../fundPeginTransaction-DxNOeyNI.cjs"),i=require("../../psbtInputFields-05ZrwRzf.cjs"),o=require("../../errors-Cbyg_QQf.cjs"),t=require("../../index-DNSV--0P.cjs"),s=require("../../types-B-p4dhEH.cjs");exports.buildChallengeAssertPsbt=n.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=n.buildDepositorPayoutPsbt;exports.buildNoPayoutPsbt=n.buildNoPayoutPsbt;exports.buildPeginInputPsbt=n.buildPeginInputPsbt;exports.buildPeginTxFromFundedPrePegin=n.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=n.buildPrePeginPsbt;exports.computeNumLocalChallengers=n.computeNumLocalChallengers;exports.extractPeginInputSignature=n.extractPeginInputSignature;exports.finalizePeginInputPsbt=n.finalizePeginInputPsbt;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>c.computeMinClaimValue});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>c.deriveVaultId});exports.buildPayoutPsbt=P.buildPayoutPsbt;exports.buildRefundPsbt=P.buildRefundPsbt;exports.createPayoutScript=P.createPayoutScript;exports.extractPayoutSignature=P.extractPayoutSignature;exports.deriveNativeSegwitAddress=a.deriveNativeSegwitAddress;exports.deriveTaprootAddress=a.deriveTaprootAddress;exports.ensureHexPrefix=a.ensureHexPrefix;exports.formatSatoshisToBtc=a.formatSatoshisToBtc;exports.getNetwork=a.getNetwork;exports.hexToUint8Array=a.hexToUint8Array;exports.isAddressFromPublicKey=a.isAddressFromPublicKey;exports.isValidHex=a.isValidHex;exports.processPublicKeyToXOnly=a.processPublicKeyToXOnly;exports.stripHexPrefix=a.stripHexPrefix;exports.toXOnly=a.toXOnly;exports.uint8ArrayToHex=a.uint8ArrayToHex;exports.validateWalletPubkey=a.validateWalletPubkey;exports.ContractStatus=l.ContractStatus;exports.PeginAction=l.PeginAction;exports.canPerformAction=l.canPerformAction;exports.createTaprootScriptPathSignOptions=l.createTaprootScriptPathSignOptions;exports.getPeginProtocolState=l.getPeginProtocolState;exports.BITCOIN_ADDRESS_RE=u.BITCOIN_ADDRESS_RE;exports.HEX_RE=u.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=u.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=u.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=u.TXID_RE;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.PayoutManager=e.PayoutManager;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.computeHashlock=e.computeHashlock;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.pollAndSignPayouts=e.pollAndSignPayouts;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateSecretAgainstHashlock=e.validateSecretAgainstHashlock;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.waitForPeginStatus=e.waitForPeginStatus;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=r.FEE_SAFETY_MARGIN;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.BitcoinScriptType=i.BitcoinScriptType;exports.UtxoNotAvailableError=i.UtxoNotAvailableError;exports.assertUtxosAvailable=i.assertUtxosAvailable;exports.calculateBtcTxHash=i.calculateBtcTxHash;exports.collectReservedUtxoRefs=i.collectReservedUtxoRefs;exports.extractInputsFromTransaction=i.extractInputsFromTransaction;exports.getDustThreshold=i.getDustThreshold;exports.getPsbtInputFields=i.getPsbtInputFields;exports.getScriptType=i.getScriptType;exports.selectUtxosForDeposit=i.selectUtxosForDeposit;exports.selectUtxosForPegin=i.selectUtxosForPegin;exports.shouldAddChangeOutput=i.shouldAddChangeOutput;exports.validateUtxosAvailable=i.validateUtxosAvailable;exports.CONTRACT_ERRORS=o.CONTRACT_ERRORS;exports.PeginManager=o.PeginManager;exports.computeWotsBlockPublicKeysHash=o.computeWotsBlockPublicKeysHash;exports.computeWotsPkHash=o.computeWotsPkHash;exports.deriveWotsBlockPublicKeys=o.deriveWotsBlockPublicKeys;exports.deriveWotsKeypair=o.deriveWotsKeypair;exports.deriveWotsPkHash=o.deriveWotsPkHash;exports.extractErrorData=o.extractErrorData;exports.getContractErrorMessage=o.getContractErrorMessage;exports.handleContractError=o.handleContractError;exports.isKnownContractError=o.isKnownContractError;exports.isWotsMismatchError=o.isWotsMismatchError;exports.keypairToPublicKey=o.keypairToPublicKey;exports.mnemonicToWotsSeed=o.mnemonicToWotsSeed;exports.ApplicationRegistryABI=t.ApplicationRegistryABI;exports.MEMPOOL_API_URLS=t.MEMPOOL_API_URLS;exports.ProtocolParamsABI=t.ProtocolParamsABI;exports.VaultProviderRpcClient=t.VaultProviderRpcClient;exports.ViemProtocolParamsReader=t.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=t.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=t.ViemVaultKeeperReader;exports.ViemVaultRegistryReader=t.ViemVaultRegistryReader;exports.VpResponseValidationError=t.VpResponseValidationError;exports.getAddressTxs=t.getAddressTxs;exports.getAddressUtxos=t.getAddressUtxos;exports.getMempoolApiUrl=t.getMempoolApiUrl;exports.getNetworkFees=t.getNetworkFees;exports.getTxHex=t.getTxHex;exports.getTxInfo=t.getTxInfo;exports.getUtxoInfo=t.getUtxoInfo;exports.pushTx=t.pushTx;exports.resolveProtocolAddresses=t.resolveProtocolAddresses;exports.BTCVaultRegistryABI=s.BTCVaultRegistryABI;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_TERMINAL_STATUSES=s.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|