@babylonlabs-io/ts-sdk 0.56.0 → 0.57.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 +1 -1
- package/dist/BTCVaultRegistry.abi-AUAyCHal.cjs +2 -0
- package/dist/BTCVaultRegistry.abi-AUAyCHal.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-Chs4AFBj.js → BTCVaultRegistry.abi-CixOlp3B.js} +73 -14
- package/dist/BTCVaultRegistry.abi-CixOlp3B.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js +111 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs +2 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs.map +1 -0
- package/dist/{PeginManager-aYBkb-Qx.js → PeginManager-CnX3uFb0.js} +6 -6
- package/dist/{PeginManager-aYBkb-Qx.js.map → PeginManager-CnX3uFb0.js.map} +1 -1
- package/dist/PeginManager-iDbqXsKD.cjs +2 -0
- package/dist/{PeginManager-BkWdZI7P.cjs.map → PeginManager-iDbqXsKD.cjs.map} +1 -1
- package/dist/ProtocolParams.abi-C8U7BHCS.cjs +2 -0
- package/dist/ProtocolParams.abi-C8U7BHCS.cjs.map +1 -0
- package/dist/{ApplicationRegistry.abi-w5prf7Ig.js → ProtocolParams.abi-CV938AYZ.js} +150 -80
- package/dist/ProtocolParams.abi-CV938AYZ.js.map +1 -0
- package/dist/{buildAndBroadcastRefund-BtXUqBkb.js → buildAndBroadcastRefund-CCb1_z24.js} +627 -452
- package/dist/buildAndBroadcastRefund-CCb1_z24.js.map +1 -0
- package/dist/buildAndBroadcastRefund-CDzzTZ2U.cjs +2 -0
- package/dist/buildAndBroadcastRefund-CDzzTZ2U.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +186 -175
- package/dist/index.js.map +1 -1
- package/dist/{types-CQDRQvV-.js → json-rpc-client-Ehjthcd7.js} +61 -61
- package/dist/json-rpc-client-Ehjthcd7.js.map +1 -0
- package/dist/{types-WA0LrDk1.cjs → json-rpc-client-fUoK-TzT.cjs} +2 -2
- package/dist/json-rpc-client-fUoK-TzT.cjs.map +1 -0
- package/dist/mempoolApi-C0olk43O.js +536 -0
- package/dist/mempoolApi-C0olk43O.js.map +1 -0
- package/dist/mempoolApi-Dsm2VPXp.cjs +2 -0
- package/dist/mempoolApi-Dsm2VPXp.cjs.map +1 -0
- package/dist/{noPayout-CihCk1HE.js → noPayout-CI4l1qu2.js} +2 -2
- package/dist/{noPayout-CihCk1HE.js.map → noPayout-CI4l1qu2.js.map} +1 -1
- package/dist/{noPayout-Cb8vFrkY.cjs → noPayout-Djrv31V5.cjs} +2 -2
- package/dist/{noPayout-Cb8vFrkY.cjs.map → noPayout-Djrv31V5.cjs.map} +1 -1
- package/dist/onChainBtcPubkey-Cd9kpz-S.cjs +2 -0
- package/dist/onChainBtcPubkey-Cd9kpz-S.cjs.map +1 -0
- package/dist/onChainBtcPubkey-aPY5ib3Q.js +19 -0
- package/dist/onChainBtcPubkey-aPY5ib3Q.js.map +1 -0
- package/dist/primeVpAuth-BlxUcdBf.cjs +2 -0
- package/dist/primeVpAuth-BlxUcdBf.cjs.map +1 -0
- package/dist/{primeVpAuth-DZOaC_Ui.js → primeVpAuth-DkJbvywo.js} +479 -367
- package/dist/primeVpAuth-DkJbvywo.js.map +1 -0
- package/dist/signPsbtsWithFallback-C01N6Kdo.cjs +2 -0
- package/dist/signPsbtsWithFallback-C01N6Kdo.cjs.map +1 -0
- package/dist/{PayoutManager-BVgmuKuK.js → signPsbtsWithFallback-CzZFZf0I.js} +105 -101
- package/dist/signPsbtsWithFallback-CzZFZf0I.js.map +1 -0
- package/dist/tbv/core/clients/eth/index.d.ts +5 -3
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts +16 -0
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts +33 -0
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/types.d.ts +122 -3
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +25 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +35 -32
- package/dist/tbv/core/clients/index.js.map +1 -1
- package/dist/tbv/core/clients/mempool/mempoolApi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.d.ts +2 -0
- package/dist/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts +66 -0
- package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +50 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.d.ts +111 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +36 -0
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.d.ts +2 -1
- package/dist/tbv/core/contracts/index.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.js +8 -6
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +183 -172
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/PayoutManager.d.ts +8 -0
- package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.js +2 -2
- package/dist/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.d.ts +2 -0
- package/dist/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts +5 -5
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/payout.d.ts +23 -0
- package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/standardPayoutScript.d.ts +41 -0
- package/dist/tbv/core/primitives/psbt/standardPayoutScript.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts +7 -6
- package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +10 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +9 -0
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts +38 -1
- package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/verifyRegisteredParticipantKeys.d.ts +42 -0
- package/dist/tbv/core/services/deposit/verifyRegisteredParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.d.ts +1 -0
- package/dist/tbv/core/services/index.d.ts.map +1 -1
- package/dist/tbv/core/services/index.js +36 -31
- package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts +55 -0
- package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/__tests__/resolveParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/participants/__tests__/resolveParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/index.d.ts +8 -0
- package/dist/tbv/core/services/participants/index.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts +26 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/types.d.ts +62 -0
- package/dist/tbv/core/services/participants/types.d.ts.map +1 -0
- package/dist/tbv/core/utils/__tests__/abortSignals.test.d.ts +11 -0
- package/dist/tbv/core/utils/__tests__/abortSignals.test.d.ts.map +1 -0
- package/dist/tbv/core/utils/abortSignals.d.ts +23 -0
- package/dist/tbv/core/utils/abortSignals.d.ts.map +1 -0
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.d.ts +1 -0
- package/dist/tbv/core/utils/index.d.ts.map +1 -1
- package/dist/tbv/core/utils/index.js +44 -43
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +183 -172
- package/dist/tbv/index.js.map +1 -1
- package/dist/validation-CDbOaDj7.cjs +2 -0
- package/dist/validation-CDbOaDj7.cjs.map +1 -0
- package/dist/validation-Dj3dqYtl.js +30 -0
- package/dist/validation-Dj3dqYtl.js.map +1 -0
- package/dist/verifyScriptPathSchnorrSignature-C-84KJ6U.cjs +2 -0
- package/dist/verifyScriptPathSchnorrSignature-C-84KJ6U.cjs.map +1 -0
- package/dist/{verifyScriptPathSchnorrSignature-CgrnAjMW.js → verifyScriptPathSchnorrSignature-Xoo9DOHW.js} +359 -301
- package/dist/verifyScriptPathSchnorrSignature-Xoo9DOHW.js.map +1 -0
- package/package.json +3 -3
- package/dist/ApplicationRegistry.abi-CLaa6E99.cjs +0 -2
- package/dist/ApplicationRegistry.abi-CLaa6E99.cjs.map +0 -1
- package/dist/ApplicationRegistry.abi-w5prf7Ig.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-Chs4AFBj.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-JdeqLz4x.cjs +0 -2
- package/dist/BTCVaultRegistry.abi-JdeqLz4x.cjs.map +0 -1
- package/dist/PayoutManager-BVgmuKuK.js.map +0 -1
- package/dist/PayoutManager-Cu4_l-_Y.cjs +0 -2
- package/dist/PayoutManager-Cu4_l-_Y.cjs.map +0 -1
- package/dist/PeginManager-BkWdZI7P.cjs +0 -2
- package/dist/buildAndBroadcastRefund-BtXUqBkb.js.map +0 -1
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs +0 -2
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs.map +0 -1
- package/dist/mempoolApi-P_ApODLd.js +0 -483
- package/dist/mempoolApi-P_ApODLd.js.map +0 -1
- package/dist/mempoolApi-emec8bHK.cjs +0 -2
- package/dist/mempoolApi-emec8bHK.cjs.map +0 -1
- package/dist/primeVpAuth-DZOaC_Ui.js.map +0 -1
- package/dist/primeVpAuth-j2getl3f.cjs +0 -2
- package/dist/primeVpAuth-j2getl3f.cjs.map +0 -1
- package/dist/types-CQDRQvV-.js.map +0 -1
- package/dist/types-WA0LrDk1.cjs.map +0 -1
- package/dist/validation-CxqROCno.js +0 -15
- package/dist/validation-CxqROCno.js.map +0 -1
- package/dist/validation-u8W7Lp2x.cjs +0 -2
- package/dist/validation-u8W7Lp2x.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs +0 -2
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js.map +0 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,202 +1,213 @@
|
|
|
1
1
|
import { b as s, c as t } from "../../challengeAssert-BVQq50su.js";
|
|
2
2
|
import { a as o } from "../../constants-CDQE812z.js";
|
|
3
3
|
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as u, expandAuthAnchor as l, expandHashlockSecret as d, expandWotsSeed as P, peginP2aAnchorOutput as c, supportedTxGraphVersions as T, validatePeginP2aAnchor as A } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
-
import { P as S, d as g, f as
|
|
5
|
-
import { b as
|
|
6
|
-
import { a as
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import { P as
|
|
11
|
-
import { P as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { B as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
4
|
+
import { P as S, d as g, f as R, c as _, b as m, a as f, g as x, e as b } from "../../verifyScriptPathSchnorrSignature-Xoo9DOHW.js";
|
|
5
|
+
import { b as v, e as O, f as h } from "../../peginInput-BKD_b3gq.js";
|
|
6
|
+
import { a as I, b as y } from "../../noPayout-CI4l1qu2.js";
|
|
7
|
+
import { d as U, a as B, b as D, e as N, f as M, j as H, g as L, h as K, i as X, c as k, p as W, s as w, t as G, u as Y, v as Z } from "../../bitcoin-B5aNKtsk.js";
|
|
8
|
+
import { B as J, H as q, K as z, M as Q, T as $, c as aa } from "../../validation-Dj3dqYtl.js";
|
|
9
|
+
import { c as sa } from "../../signing-DaLvGwQe.js";
|
|
10
|
+
import { P as ra, b as oa, c as ia, d as na, e as pa } from "../../PeginManager-CnX3uFb0.js";
|
|
11
|
+
import { P as la, c as da, f as Pa, s as ca, v as Ta } from "../../signPsbtsWithFallback-CzZFZf0I.js";
|
|
12
|
+
import { A as Ea, P as Sa } from "../../ProtocolParams.abi-CV938AYZ.js";
|
|
13
|
+
import { B as Ra } from "../../BTCVaultRegistry.abi-CixOlp3B.js";
|
|
14
|
+
import { B as ma } from "../../BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
|
|
15
|
+
import { C as xa, e as ba, g as Va, h as va, i as Oa } from "../../errors-Blc-JWnI.js";
|
|
16
|
+
import { V as Ca, b as Ia, a as ya, d as Fa } from "../../deriveVaultRoot-B_gEOTD6.js";
|
|
17
|
+
import { p as Ba } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
18
|
+
import { B as Na, a as Ma, f as Ha, c as La, b as Ka, d as Xa, g as ka, i as Wa, h as wa, s as Ga, e as Ya, w as Za } from "../../waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
19
|
+
import { B as Ja, D as qa, L as za, M as Qa, c as $a, P as ae, b as ee, a as se, S as te, T as re, W as oe, f as ie, d as ne, p as pe, r as ue } from "../../fundPeginTransaction-B2wyjqp0.js";
|
|
20
|
+
import { U as de, a as Pe, e as ce, f as Te, v as Ae } from "../../reservation-cHDRn4DA.js";
|
|
21
|
+
import { M as Se, V as ge, g as Re, a as _e, b as me, c as fe, d as xe, e as be, f as Ve, h as ve, i as Oe, p as he, v as Ce, j as Ie, k as ye } from "../../mempoolApi-C0olk43O.js";
|
|
22
|
+
import { O as Ue, S as Be, V as De, g as Ne, h as Me, i as He, j as Le, a as Ke, d as Xe, b as ke, f as We, p as we, r as Ge, v as Ye, c as Ze, e as je } from "../../primeVpAuth-DkJbvywo.js";
|
|
23
|
+
import { A as qe, D as ze, b as Qe, J as $e, a as as, d as es, P as ss, R as ts, e as rs, c as os, V as is } from "../../json-rpc-client-Ehjthcd7.js";
|
|
24
|
+
import { a as ps } from "../../onChainBtcPubkey-aPY5ib3Q.js";
|
|
25
|
+
import { i as ls } from "../../errors-B-H0seUG.js";
|
|
26
|
+
import { B as Ps, C as cs, P as Ts, x as As, y as Es, z as Ss, A as gs, R as Rs, a as _s, t as ms, u as fs, i as xs, j as bs, q as Vs, p as vs, l as Os, n as hs, o as Cs, r as Is, s as ys, b as Fs, c as Us, d as Bs, v as Ds, e as Ns, f as Ms, g as Hs, h as Ls, k as Ks, m as Xs, w as ks } from "../../buildAndBroadcastRefund-CCb1_z24.js";
|
|
27
|
+
import { C as ws, P as Gs, c as Ys, g as Zs, i as js } from "../../peginState-BB81JI6I.js";
|
|
26
28
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
qe as AUTH_EXPIRED_DATA_KIND,
|
|
30
|
+
Ea as ApplicationRegistryABI,
|
|
31
|
+
Ps as BIP68NotMatureError,
|
|
32
|
+
J as BITCOIN_ADDRESS_RE,
|
|
33
|
+
Ra as BTCVaultRegistryABI,
|
|
34
|
+
ma as BTCVaultRegistryKeyEpochsABI,
|
|
35
|
+
Ja as BTC_DUST_SAT,
|
|
33
36
|
Na as BitcoinScriptType,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
37
|
+
xa as CONTRACT_ERRORS,
|
|
38
|
+
cs as ClaimerPegoutStatusValue,
|
|
39
|
+
ws as ContractStatus,
|
|
40
|
+
qa as DUST_THRESHOLD,
|
|
41
|
+
ze as DaemonStatus,
|
|
42
|
+
q as HEX_RE,
|
|
43
|
+
Qe as JSON_RPC_ERROR_CODES,
|
|
44
|
+
$e as JsonRpcClient,
|
|
45
|
+
as as JsonRpcError,
|
|
46
|
+
z as KNOWN_SCRIPT_PREFIXES,
|
|
47
|
+
za as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
48
|
+
Qa as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
49
|
+
Q as MAX_REASONABLE_FEE_SATS,
|
|
50
|
+
$a as MAX_REASONABLE_PEGIN_VBYTES,
|
|
51
|
+
Se as MEMPOOL_API_URLS,
|
|
52
|
+
Ue as OnChainBtcVaultStatus,
|
|
53
|
+
ae as P2TR_INPUT_SIZE,
|
|
54
|
+
ee as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
55
|
+
se as PEGIN_FIXED_OUTPUTS,
|
|
56
|
+
es as POST_WOTS_STATUSES,
|
|
57
|
+
ss as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
58
|
+
Ts as ParticipantKeyDriftError,
|
|
59
|
+
la as PayoutManager,
|
|
60
|
+
Gs as PeginAction,
|
|
61
|
+
ra as PeginManager,
|
|
62
|
+
Sa as ProtocolParamsABI,
|
|
59
63
|
S as PsbtSubstitutionError,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Ne as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
64
|
+
As as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
65
|
+
Es as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
66
|
+
Ss as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
67
|
+
gs as REFUND_VSIZE,
|
|
68
|
+
Rs as RegisteredVaultVersionMismatchError,
|
|
69
|
+
ts as RpcErrorCode,
|
|
70
|
+
te as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
71
|
+
Be as ServerIdentityError,
|
|
72
|
+
$ as TXID_RE,
|
|
73
|
+
re as TX_BUFFER_SIZE_OVERHEAD,
|
|
74
|
+
de as UtxoNotAvailableError,
|
|
75
|
+
Ca as VAULT_APP_NAME,
|
|
76
|
+
rs as VP_BATCH_MAX_SIZE,
|
|
77
|
+
os as VP_TERMINAL_FAILURE_STATUSES,
|
|
78
|
+
is as VP_TRANSIENT_STATUSES,
|
|
79
|
+
De as VaultProviderRpcClient,
|
|
80
|
+
Ne as ViemOperationKeyReader,
|
|
81
|
+
Me as ViemProtocolParamsReader,
|
|
82
|
+
He as ViemUniversalChallengerReader,
|
|
83
|
+
Le as ViemVaultKeeperReader,
|
|
84
|
+
ge as ViemVaultRegistryReader,
|
|
85
|
+
Ke as VpResponseValidationError,
|
|
86
|
+
Xe as VpTokenRegistry,
|
|
87
|
+
oe as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
88
|
+
_s as activateVault,
|
|
89
|
+
Ma as applyChangeOutputPolicy,
|
|
90
|
+
ps as assertOnChainBtcPubkey,
|
|
85
91
|
g as assertPsbtUnsignedTxMatches,
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
R as assertScriptPathSchnorrSignature,
|
|
93
|
+
Pe as assertUtxosAvailable,
|
|
88
94
|
o as assertValidVaultCoreVersion,
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
ke as batchPollByProvider,
|
|
96
|
+
ms as buildAndBroadcastRefund,
|
|
91
97
|
s as buildChallengeAssertPsbt,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
oa as buildDepositTerms,
|
|
99
|
+
Ia as buildFundingOutpointsCommitment,
|
|
100
|
+
I as buildNoPayoutPsbt,
|
|
101
|
+
_ as buildPayoutPsbt,
|
|
102
|
+
v as buildPeginInputPsbt,
|
|
97
103
|
m as buildPeginTxFromFundedPrePegin,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
f as buildPrePeginPsbt,
|
|
105
|
+
y as buildRefundPsbt,
|
|
106
|
+
ya as buildVaultContext,
|
|
107
|
+
Ha as calculateBtcTxHash,
|
|
108
|
+
Ys as canPerformAction,
|
|
109
|
+
aa as combineAbortSignals,
|
|
110
|
+
La as computeChangeOutputFeeSats,
|
|
111
|
+
da as computeHashlock,
|
|
112
|
+
Ka as computeMaxDeposit,
|
|
106
113
|
n as computeMinClaimValue,
|
|
107
114
|
p as computeMinPeginFee,
|
|
108
115
|
t as computeNumLocalChallengers,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
Xa as computePeginBaseFeeSats,
|
|
117
|
+
ia as computeWotsBlockPublicKeysHash,
|
|
118
|
+
We as createAuthenticatedVpClient,
|
|
119
|
+
x as createPayoutScript,
|
|
120
|
+
sa as createTaprootScriptPathSignOptions,
|
|
121
|
+
U as deriveBip86ScriptPubKeyHex,
|
|
122
|
+
B as deriveNativeSegwitAddress,
|
|
116
123
|
D as deriveTaprootAddress,
|
|
117
124
|
u as deriveVaultId,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
Fa as deriveVaultRoot,
|
|
126
|
+
na as deriveWotsBlocksFromSeed,
|
|
127
|
+
N as ensureHexPrefix,
|
|
128
|
+
fs as estimateRefundFeeSats,
|
|
129
|
+
pa as estimateSubmitPeginRequestBatchGas,
|
|
123
130
|
l as expandAuthAnchor,
|
|
124
131
|
d as expandHashlockSecret,
|
|
125
132
|
P as expandWotsSeed,
|
|
126
|
-
|
|
127
|
-
|
|
133
|
+
ba as extractErrorData,
|
|
134
|
+
ce as extractInputsFromTransaction,
|
|
128
135
|
b as extractPayoutSignature,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
O as extractPeginInputSignature,
|
|
137
|
+
h as finalizePeginInputPsbt,
|
|
138
|
+
Te as findOverlappingPendingVaults,
|
|
132
139
|
M as formatSatoshisToBtc,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
Pa as forwardDepositApproval,
|
|
141
|
+
ie as fundPeginTransaction,
|
|
142
|
+
Re as getAddressTxs,
|
|
143
|
+
_e as getAddressUtxos,
|
|
144
|
+
Va as getContractErrorMessage,
|
|
145
|
+
ka as getDustThreshold,
|
|
146
|
+
me as getMempoolApiUrl,
|
|
140
147
|
H as getNetwork,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
148
|
+
fe as getNetworkFees,
|
|
149
|
+
xe as getOutspend,
|
|
150
|
+
Zs as getPeginProtocolState,
|
|
151
|
+
Wa as getPsbtInputFields,
|
|
152
|
+
wa as getScriptType,
|
|
146
153
|
L as getSortedXOnlyPubkeys,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
be as getTipHeight,
|
|
155
|
+
Ve as getTxHex,
|
|
156
|
+
ve as getTxInfo,
|
|
157
|
+
Oe as getUtxoInfo,
|
|
158
|
+
va as handleContractError,
|
|
159
|
+
K as hexToUint8Array,
|
|
160
|
+
js as isActivationDeadlinePassedOnChain,
|
|
161
|
+
X as isAddressFromPublicKey,
|
|
162
|
+
xs as isDepositAmountValid,
|
|
163
|
+
Oa as isKnownContractError,
|
|
164
|
+
bs as isParticipantKeyDriftError,
|
|
165
|
+
Vs as isPegoutTerminalStatus,
|
|
166
|
+
vs as isRecognizedPegoutStatus,
|
|
167
|
+
Os as isRegisteredVaultVersionMismatchError,
|
|
168
|
+
k as isValidHex,
|
|
169
|
+
ls as isWotsMismatchError,
|
|
170
|
+
Ba as parseFundingOutpointsFromTx,
|
|
171
|
+
ne as parseUnfundedWasmTransaction,
|
|
172
|
+
pe as peginOutputCount,
|
|
165
173
|
c as peginP2aAnchorOutput,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
we as primeVpTokenRegistry,
|
|
175
|
+
W as processPublicKeyToXOnly,
|
|
176
|
+
he as pushTx,
|
|
177
|
+
ue as rateBasedTxBufferFee,
|
|
178
|
+
hs as resolveCurrentParticipantKeys,
|
|
179
|
+
Cs as resolveParticipantKeysAtEpochs,
|
|
180
|
+
Ge as resolveProtocolAddresses,
|
|
181
|
+
Is as runDepositorPresignFlow,
|
|
182
|
+
Ga as selectUtxosForPegin,
|
|
183
|
+
Ya as shouldAddChangeOutput,
|
|
184
|
+
ys as signDepositorGraph,
|
|
185
|
+
w as stripHexPrefix,
|
|
186
|
+
Fs as submitWotsPublicKey,
|
|
177
187
|
T as supportedTxGraphVersions,
|
|
178
|
-
|
|
188
|
+
ca as supportsDepositApproval,
|
|
179
189
|
G as toXOnly,
|
|
180
190
|
Y as uint8ArrayToHex,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
191
|
+
Us as validateDepositAmount,
|
|
192
|
+
Bs as validateMultiVaultDepositInputs,
|
|
193
|
+
Ce as validateOffchainParams,
|
|
194
|
+
Ds as validateOnChainParticipantKeys,
|
|
195
|
+
Ie as validatePegInConfiguration,
|
|
186
196
|
A as validatePeginP2aAnchor,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
Ns as validateProviderSelection,
|
|
198
|
+
Ms as validateRemainingCapacity,
|
|
199
|
+
Ye as validateRequestDepositorClaimerArtifactsResponse,
|
|
200
|
+
Ta as validateSecretAgainstHashlock,
|
|
201
|
+
ye as validateTBVProtocolParams,
|
|
202
|
+
Ae as validateUtxosAvailable,
|
|
203
|
+
Hs as validateVaultAmounts,
|
|
204
|
+
Ls as validateVaultProviderPubkey,
|
|
195
205
|
Z as validateWalletPubkey,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
206
|
+
Ks as verifyRegisteredParticipantKeys,
|
|
207
|
+
Xs as verifyRegisteredVaultVersions,
|
|
208
|
+
Ze as verifyServerIdentity,
|
|
209
|
+
je as vpTokenRegistry,
|
|
210
|
+
ks as waitForPeginStatus,
|
|
211
|
+
Za as waitForTransactionReceiptSmartAware
|
|
201
212
|
};
|
|
202
213
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -76,6 +76,14 @@ interface SignPayoutBaseParams {
|
|
|
76
76
|
protocolFeeRate: bigint;
|
|
77
77
|
/** Security council member count; forwarded to the fee floor (see PayoutParams). */
|
|
78
78
|
councilSize: number;
|
|
79
|
+
/**
|
|
80
|
+
* RFC-006 resolved payout destinations, keyed by lowercased x-only operation
|
|
81
|
+
* pubkey. Forwarded verbatim to {@link buildPayoutPsbt}; every VK claimer
|
|
82
|
+
* must be present.
|
|
83
|
+
*/
|
|
84
|
+
vkClaimerPayoutScriptPubKeys: Readonly<Record<string, string>>;
|
|
85
|
+
/** RFC-006 VP commission destination. Forwarded to {@link buildPayoutPsbt}. */
|
|
86
|
+
vpCommissionScriptPubKey: string;
|
|
79
87
|
}
|
|
80
88
|
/**
|
|
81
89
|
* Parameters for signing a Payout transaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PayoutManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAML,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAMvB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PayoutManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAML,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAMvB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,+EAA+E;IAC/E,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;;OAIG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,qBAAqB,CACzB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,qBAAqB,CAAC;IA2DjC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,oBAAoB,IAAI,OAAO;IAI/B;;;;;;;;OAQG;IACG,2BAA2B,CAAC,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAC1E,KAAK,CAAC;QACJ,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC,CACH;CA4FF"}
|
|
@@ -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-iDbqXsKD.cjs"),a=require("../../../signPsbtsWithFallback-C01N6Kdo.cjs");exports.PeginManager=e.PeginManager;exports.estimateSubmitPeginRequestBatchGas=e.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as t, e as r } from "../../../PeginManager-
|
|
2
|
-
import { P as o } from "../../../
|
|
1
|
+
import { P as t, e as r } from "../../../PeginManager-CnX3uFb0.js";
|
|
2
|
+
import { P as o } from "../../../signPsbtsWithFallback-CzZFZf0I.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PayoutManager,
|
|
5
5
|
t as PeginManager,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../challengeAssert-Cu-PtJ1g.cjs"),s=require("../../../constants-BqU1Uz15.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../challengeAssert-Cu-PtJ1g.cjs"),s=require("../../../constants-BqU1Uz15.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),t=require("../../../verifyScriptPathSchnorrSignature-C-84KJ6U.cjs"),i=require("../../../peginInput-CAiiDZeO.cjs"),u=require("../../../noPayout-Djrv31V5.cjs"),e=require("../../../bitcoin-CHfKAhcI.cjs");exports.buildChallengeAssertPsbt=n.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=n.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=s.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>r.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>r.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>r.deriveVaultId});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>r.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>r.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>r.validatePeginP2aAnchor});exports.PsbtSubstitutionError=t.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=t.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=t.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=t.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=t.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=t.buildPrePeginPsbt;exports.createPayoutScript=t.createPayoutScript;exports.extractPayoutSignature=t.extractPayoutSignature;exports.buildPeginInputPsbt=i.buildPeginInputPsbt;exports.extractPeginInputSignature=i.extractPeginInputSignature;exports.finalizePeginInputPsbt=i.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=u.buildNoPayoutPsbt;exports.buildRefundPsbt=u.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=e.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;exports.formatSatoshisToBtc=e.formatSatoshisToBtc;exports.getSortedXOnlyPubkeys=e.getSortedXOnlyPubkeys;exports.hexToUint8Array=e.hexToUint8Array;exports.isAddressFromPublicKey=e.isAddressFromPublicKey;exports.isValidHex=e.isValidHex;exports.processPublicKeyToXOnly=e.processPublicKeyToXOnly;exports.stripHexPrefix=e.stripHexPrefix;exports.toXOnly=e.toXOnly;exports.uint8ArrayToHex=e.uint8ArrayToHex;exports.validateWalletPubkey=e.validateWalletPubkey;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as s, c as t } from "../../../challengeAssert-BVQq50su.js";
|
|
2
2
|
import { a as i } from "../../../constants-CDQE812z.js";
|
|
3
3
|
import { computeMinClaimValue as u, computeMinPeginFee as n, deriveVaultId as P, peginP2aAnchorOutput as d, supportedTxGraphVersions as l, validatePeginP2aAnchor as b } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
-
import { P as c, d as x, f as g, c as f, b as m, a as y, g as h, e as S } from "../../../verifyScriptPathSchnorrSignature-
|
|
4
|
+
import { P as c, d as x, f as g, c as f, b as m, a as y, g as h, e as S } from "../../../verifyScriptPathSchnorrSignature-Xoo9DOHW.js";
|
|
5
5
|
import { b as A, e as T, f as V } from "../../../peginInput-BKD_b3gq.js";
|
|
6
|
-
import { a as C, b as F } from "../../../noPayout-
|
|
6
|
+
import { a as C, b as F } from "../../../noPayout-CI4l1qu2.js";
|
|
7
7
|
import { d as O, a as K, b as M, e as N, f as X, g as k, h as B, i as U, c as w, p as z, s as E, t as G, u as L, v as R } from "../../../bitcoin-B5aNKtsk.js";
|
|
8
8
|
export {
|
|
9
9
|
c as PsbtSubstitutionError,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standardPayoutScript.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.ts"],"names":[],"mappings":""}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
* - `assertPayoutFeeBandDomain` has accepted the rate and participant counts,
|
|
16
16
|
* so the band runs exactly over the domain its dominance proof was swept.
|
|
17
17
|
* - `out0Len` is the layout-trusted length of the PINNED outs[0] script.
|
|
18
|
-
* `out1Len` is
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* `out1Len` is the VP commission output's length. RFC-006 pins that output
|
|
19
|
+
* to the operator's registered scriptPubKey, so it is now layout-trusted
|
|
20
|
+
* too and bounded to a standard type. It still feeds only the floor and
|
|
21
|
+
* must never widen the ceiling: that separation is kept deliberately, so
|
|
22
|
+
* the bound holds even if a future change unpins the output again.
|
|
23
23
|
* - `implicitFeeSats` is `inputs − outputs` over verified prevouts, `>= 0`.
|
|
24
24
|
*
|
|
25
25
|
* @module primitives/psbt/assertPayoutFeeBand
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertPayoutFeeBand.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertPayoutFeeBand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AA6CH,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,8BAA8B;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE;IACR,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GACA,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"assertPayoutFeeBand.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertPayoutFeeBand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AA6CH,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,8BAA8B;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE;IACR,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GACA,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -82,6 +82,29 @@ export interface PayoutParams {
|
|
|
82
82
|
* pinned models.
|
|
83
83
|
*/
|
|
84
84
|
councilSize: number;
|
|
85
|
+
/**
|
|
86
|
+
* RFC-006. Expected `outs[0].script` per vault-keeper claimer, keyed by
|
|
87
|
+
* lowercased x-only **operation** pubkey (no `0x`), resolved from
|
|
88
|
+
* `ApplicationRegistry.getPayoutScriptAtEpoch` at the vault's frozen
|
|
89
|
+
* `appKeeperKeyEpoch`.
|
|
90
|
+
*
|
|
91
|
+
* Every VK claimer must be present: a claimer missing from the map is an
|
|
92
|
+
* error rather than a cue to derive BIP-86, because a gap means resolution
|
|
93
|
+
* was incomplete and we do not know what that keeper registered.
|
|
94
|
+
*
|
|
95
|
+
* Each entry accepts either that registered script or the BIP-86 default of
|
|
96
|
+
* the same bonded key, so graphs built before btc-vault#2440 remain signable
|
|
97
|
+
* — see {@link acceptedPayoutScriptHexes} for why that is required and when
|
|
98
|
+
* it can be dropped.
|
|
99
|
+
*/
|
|
100
|
+
vkClaimerPayoutScriptPubKeys: Readonly<Record<string, string>>;
|
|
101
|
+
/**
|
|
102
|
+
* RFC-006. Expected `outs[1].script` for the VP-claimer commission output,
|
|
103
|
+
* from `BTCVaultRegistry.getPayoutScriptAtEpoch` at the vault's frozen
|
|
104
|
+
* `vpKeyEpoch`. The BIP-86 default of the bonded VP key is accepted alongside
|
|
105
|
+
* it — see {@link acceptedPayoutScriptHexes}.
|
|
106
|
+
*/
|
|
107
|
+
vpCommissionScriptPubKey: string;
|
|
85
108
|
}
|
|
86
109
|
/**
|
|
87
110
|
* Result of building an unsigned payout PSBT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/payout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,OAAO,EAEb,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"payout.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/payout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,OAAO,EAEb,MAAM,uCAAuC,CAAC;AAwC/C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;OAcG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,gBAAgB,CAAC,CAoF3B;AA4WD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,UAAU,SAAI,GACb,MAAM,CA+CR"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard-scriptPubKey validation for registry-supplied payout destinations.
|
|
3
|
+
*
|
|
4
|
+
* RFC-006 lets an operator register an arbitrary payout scriptPubKey, so the
|
|
5
|
+
* bytes we pin a `PayoutTx` output against are now chosen by that operator
|
|
6
|
+
* rather than derived by us. Pinning an output to them without checking the
|
|
7
|
+
* shape would let a keeper that registered a garbage or unspendable script get
|
|
8
|
+
* the depositor to pre-sign a payout nobody can ever claim.
|
|
9
|
+
*
|
|
10
|
+
* This bound is ours alone — it is deliberately NOT parity with `vaultd`.
|
|
11
|
+
* `vaultd` uses registry scripts verbatim at graph-build time and documents
|
|
12
|
+
* why: applying a predicate the contract does not apply would block every
|
|
13
|
+
* peg-in for an operator the instant the two disagreed. The registry itself
|
|
14
|
+
* only bounds length to 1..128 bytes, and the registration CLI has an
|
|
15
|
+
* `--allow-non-standard` escape hatch.
|
|
16
|
+
*
|
|
17
|
+
* We hold the stricter line because we occupy a different position: we are the
|
|
18
|
+
* party being asked to *pre-sign* against these bytes, and a depositor
|
|
19
|
+
* signature pinned to a provably unspendable output is not recoverable. The
|
|
20
|
+
* bound is also load-bearing for the payout fee band — capping a standard
|
|
21
|
+
* output at 34 bytes is what lets `assertPayoutFeeBand` reason about `outs[1]`
|
|
22
|
+
* without a separate length cap.
|
|
23
|
+
*
|
|
24
|
+
* The deliberate consequence: an operator that registers a non-standard script
|
|
25
|
+
* via `--allow-non-standard` can have its graphs built by `vaultd` and still be
|
|
26
|
+
* refused here, blocking deposits against that operator in this dApp. That is
|
|
27
|
+
* fail-closed by choice — the alternative is pre-signing into a destination we
|
|
28
|
+
* cannot verify is spendable.
|
|
29
|
+
*
|
|
30
|
+
* @module primitives/psbt/standardPayoutScript
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Assert a registry-supplied scriptPubKey is a standard, spendable output type
|
|
34
|
+
* (P2TR, P2WPKH, P2WSH, P2PKH, or P2SH).
|
|
35
|
+
*
|
|
36
|
+
* Rejects empty scripts, `OP_RETURN` (provably unspendable), and anything else
|
|
37
|
+
* that is not one of the five standard forms. `label` names the source in the
|
|
38
|
+
* error, e.g. `vault keeper payout script (admin=0x…)`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function assertStandardPayoutScript(scriptHex: string, label: string): void;
|
|
41
|
+
//# sourceMappingURL=standardPayoutScript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standardPayoutScript.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/standardPayoutScript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAiCH;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,IAAI,CA2BN"}
|
package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyRegisteredParticipantKeys.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export { waitForPeginStatus, type WaitForPeginStatusParams, } from './waitForPeginStatus';
|
|
3
|
-
export { submitWotsPublicKey, type SubmitWotsPublicKeyParams, } from './submitWotsPublicKey';
|
|
4
|
-
export { signDepositorGraph, type DepositorGraphSigningContext, type SignDepositorGraphParams, } from './signDepositorGraph';
|
|
5
|
-
export { runDepositorPresignFlow, type PayoutSigningContext, type RunDepositorPresignFlowParams, } from './runDepositorPresignFlow';
|
|
1
|
+
export type { ClaimerArtifactsReader, PeginStatusReader, PresignClient, WotsKeySubmitter, } from './interfaces';
|
|
6
2
|
export { ContractStatus, PeginAction, canPerformAction, getPeginProtocolState, isActivationDeadlinePassedOnChain, type ExpirationReason, type GetPeginProtocolStateOptions, type PeginProtocolState, } from './peginState';
|
|
7
|
-
export {
|
|
3
|
+
export { runDepositorPresignFlow, type PayoutSigningContext, type RunDepositorPresignFlowParams, } from './runDepositorPresignFlow';
|
|
4
|
+
export { signDepositorGraph, type DepositorGraphSigningContext, type SignDepositorGraphParams, } from './signDepositorGraph';
|
|
5
|
+
export { submitWotsPublicKey, type SubmitWotsPublicKeyParams, } from './submitWotsPublicKey';
|
|
8
6
|
export { validateOnChainParticipantKeys, type ValidateOnChainParticipantKeysParams, type ValidatedOnChainParticipantKeys, } from './validateOnChainParticipantKeys';
|
|
7
|
+
export { isDepositAmountValid, validateDepositAmount, validateMultiVaultDepositInputs, validateProviderSelection, validateRemainingCapacity, validateVaultAmounts, validateVaultProviderPubkey, type DepositFormValidityParams, type MultiVaultDepositFlowInputs, type RemainingCapacityParams, type ValidationResult, } from './validation';
|
|
8
|
+
export { ParticipantKeyDriftError, isParticipantKeyDriftError, verifyRegisteredParticipantKeys, type VerifyRegisteredParticipantKeysParams, } from './verifyRegisteredParticipantKeys';
|
|
9
9
|
export { RegisteredVaultVersionMismatchError, isRegisteredVaultVersionMismatchError, verifyRegisteredVaultVersions, type VerifyRegisteredVaultVersionsParams, } from './verifyRegisteredVaultVersions';
|
|
10
|
+
export { waitForPeginStatus, type WaitForPeginStatusParams, } from './waitForPeginStatus';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|