@babylonlabs-io/ts-sdk 4.0.0 → 5.0.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/dist/PayoutManager-BXzFIZK6.cjs +2 -0
- package/dist/PayoutManager-BXzFIZK6.cjs.map +1 -0
- package/dist/{PayoutManager-BUWP-H-q.js → PayoutManager-Cjkozmnn.js} +9 -9
- package/dist/PayoutManager-Cjkozmnn.js.map +1 -0
- package/dist/{PeginManager-CMbRRTnr.cjs → PeginManager-BipOU_e4.cjs} +2 -2
- package/dist/PeginManager-BipOU_e4.cjs.map +1 -0
- package/dist/{PeginManager-Cas6_j7t.js → PeginManager-Cd5pHNTO.js} +2 -2
- package/dist/PeginManager-Cd5pHNTO.js.map +1 -0
- package/dist/{buildAndBroadcastReclaim-CVmG3ldA.cjs → buildAndBroadcastReclaim-B00roO6R.cjs} +2 -2
- package/dist/buildAndBroadcastReclaim-B00roO6R.cjs.map +1 -0
- package/dist/{buildAndBroadcastReclaim-XRWuJWVL.js → buildAndBroadcastReclaim-DU8iOtbn.js} +368 -331
- package/dist/buildAndBroadcastReclaim-DU8iOtbn.js.map +1 -0
- package/dist/challengeAssert-eUMgmpMk.cjs +2 -0
- package/dist/challengeAssert-eUMgmpMk.cjs.map +1 -0
- package/dist/{challengeAssert-DUKSjirl.js → challengeAssert-pJP7MKhG.js} +164 -164
- package/dist/challengeAssert-pJP7MKhG.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +61 -60
- package/dist/{primeVpAuth-C-ET0XF4.js → primeVpAuth-B0noJdcy.js} +5 -3
- package/dist/{primeVpAuth-C-ET0XF4.js.map → primeVpAuth-B0noJdcy.js.map} +1 -1
- package/dist/primeVpAuth-Ch-ig2My.cjs.map +1 -1
- package/dist/signer-set-reader-CJfV-GDz.cjs.map +1 -1
- package/dist/signer-set-reader-DiwLeqik.js.map +1 -1
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts +5 -1
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/signer-set-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/types.d.ts +20 -0
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.d.ts +4 -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/vault-provider/auth/tokenRegistry.d.ts +4 -2
- package/dist/tbv/core/clients/vault-provider/auth/tokenRegistry.d.ts.map +1 -1
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts +13 -10
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts.map +1 -1
- package/dist/tbv/core/deposit-terms/prePeginApproval.d.ts +3 -2
- package/dist/tbv/core/deposit-terms/prePeginApproval.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +62 -61
- package/dist/tbv/core/managers/PayoutManager.d.ts +9 -3
- package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/PeginManager.d.ts +13 -3
- 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.js +2 -2
- package/dist/tbv/core/primitives/challengers.d.ts +12 -5
- package/dist/tbv/core/primitives/challengers.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.d.ts +1 -1
- package/dist/tbv/core/primitives/index.js +1 -1
- package/dist/tbv/core/primitives/psbt/pegin.d.ts +26 -4
- package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/refund.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/challengerBinding.d.ts +3 -3
- package/dist/tbv/core/services/delegated-claim/challengerBinding.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/types.d.ts +3 -3
- package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +19 -4
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +17 -3
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +44 -43
- package/dist/tbv/core/services/participants/readStampedParticipantKeys.d.ts +19 -7
- package/dist/tbv/core/services/participants/readStampedParticipantKeys.d.ts.map +1 -1
- package/dist/tbv/core/services/refund/__tests__/readRefundPrePeginContext.test.d.ts +12 -0
- package/dist/tbv/core/services/refund/__tests__/readRefundPrePeginContext.test.d.ts.map +1 -0
- package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts +41 -12
- package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts.map +1 -1
- package/dist/tbv/core/services/refund/index.d.ts +1 -0
- package/dist/tbv/core/services/refund/index.d.ts.map +1 -1
- package/dist/tbv/core/services/refund/readRefundPrePeginContext.d.ts +41 -0
- package/dist/tbv/core/services/refund/readRefundPrePeginContext.d.ts.map +1 -0
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +62 -61
- package/dist/{toRefundInputs-BbbvPb2A.js → toRefundInputs-BrJrmOvY.js} +3 -3
- package/dist/{toRefundInputs-BbbvPb2A.js.map → toRefundInputs-BrJrmOvY.js.map} +1 -1
- package/dist/{toRefundInputs-BSQjDOK9.cjs → toRefundInputs-CR7vtHMa.cjs} +2 -2
- package/dist/{toRefundInputs-BSQjDOK9.cjs.map → toRefundInputs-CR7vtHMa.cjs.map} +1 -1
- package/dist/types-BnZIbDHb.cjs.map +1 -1
- package/dist/types-K_aM5GZO.js.map +1 -1
- package/dist/verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs.map +1 -1
- package/dist/verifyScriptPathSchnorrSignature-D-fdi-sG.js.map +1 -1
- package/package.json +3 -3
- package/dist/PayoutManager-BUWP-H-q.js.map +0 -1
- package/dist/PayoutManager-Dopxq_Jv.cjs +0 -2
- package/dist/PayoutManager-Dopxq_Jv.cjs.map +0 -1
- package/dist/PeginManager-CMbRRTnr.cjs.map +0 -1
- package/dist/PeginManager-Cas6_j7t.js.map +0 -1
- package/dist/buildAndBroadcastReclaim-CVmG3ldA.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-XRWuJWVL.js.map +0 -1
- package/dist/challengeAssert-BE6Wm4x1.cjs +0 -2
- package/dist/challengeAssert-BE6Wm4x1.cjs.map +0 -1
- package/dist/challengeAssert-DUKSjirl.js.map +0 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { P as s, h as r, i as t, j as i, f as o, b as n, a as l, c as p, k as
|
|
1
|
+
import { P as s, h as r, i as t, j as i, f as o, b as n, a as l, c as p, k as P, d as E, e as c, g as d } from "../../verifyScriptPathSchnorrSignature-D-fdi-sG.js";
|
|
2
2
|
import { a as g } from "../../secp256k1-BuxBFUHm.js";
|
|
3
3
|
import { attachFinalizedAssert as R, computeMinClaimValue as A, computeMinPeginFee as _, deriveVaultId as S, expandAuthAnchor as T, expandHashlockSecret as C, expandWotsSeed as I, finalizePayout as f, finalizeWronglyChallenged as h, peginP2aAnchorOutput as V, pinPegoutProof as O, supportedTxGraphVersions as x, validatePeginP2aAnchor as b } from "./wasm/index.js";
|
|
4
4
|
import { a as N, c as M, b as y, e as v, f as D } from "../../verifyKeyPathSchnorrSignature-DPXOFOol.js";
|
|
5
|
-
import { d as U, c as H, a as L, b as K, e as X, f as G, r as k } from "../../challengeAssert-
|
|
5
|
+
import { d as U, c as H, a as L, b as K, e as X, f as G, r as k } from "../../challengeAssert-pJP7MKhG.js";
|
|
6
6
|
import { c as w, d as z, a as Y, b as j, e as J, f as Z, k as q, g as Q, h as $, i as aa, j as ea, p as sa, s as ra, t as ta, u as ia, v as oa } from "../../bitcoin-C-TuHb-v.js";
|
|
7
7
|
import { c as la } from "../../abortSignals-BPpAUL1Z.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import { B as
|
|
8
|
+
import { c as Pa, a as Ea } from "../../signing-C1rR4tqs.js";
|
|
9
|
+
import { B as da, C as ua, H as ga, K as ma, M as Ra, T as Aa, X as _a } from "../../validation-OSC0xTHB.js";
|
|
10
10
|
import { waitForTransactionReceiptSmartAware as Ta } from "./utils/eth/index.js";
|
|
11
|
-
import { P as Ia, b as fa, c as ha, d as Va, e as Oa } from "../../PeginManager-
|
|
12
|
-
import { P as ba, c as Fa, f as Na, r as Ma, s as ya, v as va } from "../../PayoutManager-
|
|
11
|
+
import { P as Ia, b as fa, c as ha, d as Va, e as Oa } from "../../PeginManager-Cd5pHNTO.js";
|
|
12
|
+
import { P as ba, c as Fa, f as Na, r as Ma, s as ya, v as va } from "../../PayoutManager-Cjkozmnn.js";
|
|
13
13
|
import { MEMPOOL_API_URLS as Ba, MempoolNotFoundError as Ua, getAddressTxs as Ha, getAddressUtxos as La, getMempoolApiUrl as Ka, getNetworkFees as Xa, getOutspend as Ga, getTipHeight as ka, getTxHex as Wa, getTxInfo as wa, getUtxoInfo as za, pushTx as Ya } from "./clients/mempool/index.js";
|
|
14
14
|
import { R as Ja, V as Za, a as qa, f as Qa, d as $a, g as ae, e as ee, i as se, r as re, v as te, b as ie, c as oe } from "../../registration-records-D39ApuHS.js";
|
|
15
|
-
import { V as le, a as pe, b as
|
|
16
|
-
import { C as
|
|
15
|
+
import { V as le, a as pe, b as Pe, r as Ee } from "../../signer-set-reader-DiwLeqik.js";
|
|
16
|
+
import { C as de, M as ue, V as ge, a as me, c as Re } from "../../pegin-registration-client-ZI0k10_3.js";
|
|
17
17
|
import { O as _e, V as Se } from "../../types-K_aM5GZO.js";
|
|
18
18
|
import { A as Ce } from "../../ApplicationRegistry.abi-s8cQ1ooR.js";
|
|
19
19
|
import { B as fe } from "../../BTCVaultRegistry.abi-DnP4UkB5.js";
|
|
@@ -25,14 +25,14 @@ import { V as ke, b as We, a as we, d as ze, f as Ye } from "../../deriveVaultRo
|
|
|
25
25
|
import { p as Je } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
26
26
|
import { c as qe } from "../../btcTxHash-BRZ8_EZq.js";
|
|
27
27
|
import { B as $e, a as as, c as es, b as ss, d as rs, g as ts, h as is, f as os, s as ns, e as ls } from "../../psbtInputFields-CCVyaQMi.js";
|
|
28
|
-
import { B as
|
|
28
|
+
import { B as Ps, D as Es, L as cs, M as ds, c as us, P as gs, b as ms, a as Rs, S as As, T as _s, W as Ss, f as Ts, d as Cs, p as Is, r as fs } from "../../fundPeginTransaction-CwhRbCQC.js";
|
|
29
29
|
import { U as Vs, a as Os, e as xs, f as bs, v as Fs } from "../../reservation-BZQABu4g.js";
|
|
30
30
|
import { V as Ms, a as ys, b as vs, i as Ds, v as Bs } from "../../index-B-9aXMxk.js";
|
|
31
31
|
import { A as Hs, C as Ls, D as Ks, J as Xs, a as Gs, b as ks, d as Ws, P as ws, R as zs, e as Ys, c as js, V as Js, i as Zs, g as qs, f as Qs } from "../../state-CFn1rT74.js";
|
|
32
|
-
import { S as ar, V as er, c as sr, p as rr, v as tr, a as ir } from "../../primeVpAuth-
|
|
33
|
-
import { D as nr, g as lr, P as pr, a as
|
|
34
|
-
import { J as Br, l as Ur, A as Hr, a8 as Lr, C as Kr, D as Xr, n as Gr, G as kr, u as Wr, W as wr, P as zr, j as Yr, v as jr, w as Jr,
|
|
35
|
-
import { C as
|
|
32
|
+
import { S as ar, V as er, c as sr, p as rr, v as tr, a as ir } from "../../primeVpAuth-B0noJdcy.js";
|
|
33
|
+
import { D as nr, g as lr, P as pr, a as Pr, b as Er, u as cr, v as dr, t as ur, w as gr, U as mr, V as Rr, f as Ar, m as _r, j as Sr, c as Tr, l as Cr, p as Ir, n as fr, e as hr, h as Vr, d as Or, i as xr, o as br, r as Fr, k as Nr, q as Mr, s as yr, x as vr } from "../../toRefundInputs-BrJrmOvY.js";
|
|
34
|
+
import { J as Br, l as Ur, A as Hr, a8 as Lr, C as Kr, D as Xr, n as Gr, G as kr, u as Wr, W as wr, P as zr, j as Yr, v as jr, w as Jr, ai as Zr, aj as qr, ak as Qr, al as $r, ab as at, ac as et, ad as st, ae as rt, ag as tt, Z as it, S as ot, V as nt, a as lt, b as pt, d as Pt, e as Et, m as ct, f as dt, g as ut, t as gt, i as mt, B as Rt, o as At, a1 as _t, ah as St, a9 as Tt, c as Ct, k as It, h as ft, aa as ht, E as Vt, K as Ot, M as xt, a2 as bt, X as Ft, x as Nt, y as Mt, _ as yt, a3 as vt, a4 as Dt, p as Bt, r as Ut, af as Ht, a5 as Lt, a6 as Kt, a7 as Xt, F as Gt, q as kt, H as Wt, I as wt, s as zt, N as Yt, O as jt, L as Jt, Q as Zt, R as qt, T as Qt, U as $t, Y as ai, $ as ei, z as si, a0 as ri } from "../../buildAndBroadcastReclaim-DU8iOtbn.js";
|
|
35
|
+
import { C as ii, P as oi, a as ni, c as li, g as pi, i as Pi } from "../../peginState-CIibG9S_.js";
|
|
36
36
|
export {
|
|
37
37
|
Hs as AUTH_REJECTED_RPC_CODE,
|
|
38
38
|
Br as ApplicationEntryPointMismatchError,
|
|
@@ -40,20 +40,20 @@ export {
|
|
|
40
40
|
Ur as ArtifactsVaultMismatchError,
|
|
41
41
|
Hr as AssertBindingError,
|
|
42
42
|
Lr as BIP68NotMatureError,
|
|
43
|
-
|
|
43
|
+
da as BITCOIN_ADDRESS_RE,
|
|
44
44
|
fe as BTCVaultRegistryABI,
|
|
45
45
|
Ve as BTCVaultRegistryKeyEpochsABI,
|
|
46
|
-
|
|
46
|
+
Ps as BTC_DUST_SAT,
|
|
47
47
|
$e as BitcoinScriptType,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
de as COMMISSION_BPS_HEADROOM,
|
|
49
|
+
ua as COMPRESSED_PUBKEY_HEX_LEN,
|
|
50
50
|
Oe as CONTRACT_ERRORS,
|
|
51
51
|
Kr as ChallengerSetMismatchError,
|
|
52
52
|
Ls as ClaimerPegoutStatusValue,
|
|
53
|
-
|
|
53
|
+
ii as ContractStatus,
|
|
54
54
|
Xr as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
55
55
|
nr as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
56
|
-
|
|
56
|
+
Es as DUST_THRESHOLD,
|
|
57
57
|
Ks as DaemonStatus,
|
|
58
58
|
Gr as DelegatedClaimSigningIncompleteError,
|
|
59
59
|
lr as DepositTermsRejectedError,
|
|
@@ -65,10 +65,10 @@ export {
|
|
|
65
65
|
ks as JsonRpcError,
|
|
66
66
|
ma as KNOWN_SCRIPT_PREFIXES,
|
|
67
67
|
cs as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
ue as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
69
|
+
ds as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
70
70
|
Ra as MAX_REASONABLE_FEE_SATS,
|
|
71
|
-
|
|
71
|
+
us as MAX_REASONABLE_PEGIN_VBYTES,
|
|
72
72
|
Ba as MEMPOOL_API_URLS,
|
|
73
73
|
Ua as MempoolNotFoundError,
|
|
74
74
|
_e as OnChainBtcVaultStatus,
|
|
@@ -78,7 +78,7 @@ export {
|
|
|
78
78
|
Wr as PEGIN_ETH_CONFIRMATIONS,
|
|
79
79
|
be as PEGIN_FINGERPRINT_CHANGED_SELECTOR,
|
|
80
80
|
pr as PEGIN_FINGERPRINT_DOMAIN,
|
|
81
|
-
|
|
81
|
+
Pr as PEGIN_FINGERPRINT_DOMAIN_PREIMAGE,
|
|
82
82
|
Rs as PEGIN_FIXED_OUTPUTS,
|
|
83
83
|
Ws as POST_WOTS_STATUSES,
|
|
84
84
|
ws as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
@@ -86,13 +86,13 @@ export {
|
|
|
86
86
|
zr as PayoutDestinationError,
|
|
87
87
|
Yr as PayoutInputLeafError,
|
|
88
88
|
ba as PayoutManager,
|
|
89
|
-
|
|
89
|
+
oi as PeginAction,
|
|
90
90
|
Fe as PeginFingerprintChangedError,
|
|
91
|
-
|
|
91
|
+
Er as PeginFingerprintInputError,
|
|
92
92
|
Ia as PeginManager,
|
|
93
93
|
cr as PeginParamsAmbiguousError,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
dr as PeginParamsIncompleteSpaceError,
|
|
95
|
+
ur as PeginParamsNotFoundError,
|
|
96
96
|
jr as PeginRegistrationMissingError,
|
|
97
97
|
Jr as PeginRegistrationNotFinalError,
|
|
98
98
|
gr as PeginSizingIntegrityError,
|
|
@@ -130,7 +130,7 @@ export {
|
|
|
130
130
|
ge as ViemPeginRegistrationClient,
|
|
131
131
|
Se as ViemProtocolParamsReader,
|
|
132
132
|
pe as ViemUniversalChallengerReader,
|
|
133
|
-
|
|
133
|
+
Pe as ViemVaultKeeperReader,
|
|
134
134
|
me as ViemVaultRegistryReader,
|
|
135
135
|
ys as VpResponseValidationError,
|
|
136
136
|
er as VpTokenRegistry,
|
|
@@ -138,13 +138,13 @@ export {
|
|
|
138
138
|
_a as X_ONLY_PUBKEY_HEX_LEN,
|
|
139
139
|
lt as activateVault,
|
|
140
140
|
pt as activateVaultAndRedeem,
|
|
141
|
-
|
|
141
|
+
ni as activationDeadlineBlocksRemaining,
|
|
142
142
|
as as applyChangeOutputPolicy,
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
Pt as assembleWatchtowerArtifacts,
|
|
144
|
+
Et as assembleWatchtowerArtifactsFromSignatures,
|
|
145
145
|
ct as assertArtifactsUsableForVault,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
dt as assertAssertBindsClaimAndPayout,
|
|
147
|
+
ut as assertChallengerSetMatchesVault,
|
|
148
148
|
Ar as assertClaimBatchHomogeneous,
|
|
149
149
|
gt as assertClaimSpendsVault,
|
|
150
150
|
N as assertKeyPathSchnorrSignature,
|
|
@@ -177,7 +177,7 @@ export {
|
|
|
177
177
|
we as buildVaultContext,
|
|
178
178
|
Xe as buildVaultContextInputForClaim,
|
|
179
179
|
qe as calculateBtcTxHash,
|
|
180
|
-
|
|
180
|
+
li as canPerformAction,
|
|
181
181
|
w as canonicalizeBtcPubkey,
|
|
182
182
|
Re as capMaxAcceptableCommissionBps,
|
|
183
183
|
Ct as claimExpiredVault,
|
|
@@ -194,12 +194,12 @@ export {
|
|
|
194
194
|
ha as computeWotsBlockPublicKeysHash,
|
|
195
195
|
It as copyAssertConnectorLeaf,
|
|
196
196
|
sr as createAuthenticatedVpClient,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
P as createPayoutScript,
|
|
198
|
+
Pa as createTaprootScriptPathSignOptions,
|
|
199
|
+
Ea as createTaprootScriptPathSignOptionsForInput,
|
|
200
200
|
z as deriveBip86ScriptPubKeyHex,
|
|
201
201
|
ft as deriveClaimerWotsKeypair,
|
|
202
|
-
|
|
202
|
+
E as deriveDepositorClaimDescriptor,
|
|
203
203
|
c as deriveDepositorClaimScriptPubKey,
|
|
204
204
|
Cr as deriveHashlocksFromPrePegin,
|
|
205
205
|
Y as deriveNativeSegwitAddress,
|
|
@@ -220,7 +220,7 @@ export {
|
|
|
220
220
|
I as expandWotsSeed,
|
|
221
221
|
Ne as extractErrorData,
|
|
222
222
|
xs as extractInputsFromTransaction,
|
|
223
|
-
|
|
223
|
+
d as extractPayoutSignature,
|
|
224
224
|
v as extractPeginInputSignature,
|
|
225
225
|
f as finalizePayout,
|
|
226
226
|
D as finalizePeginInputPsbt,
|
|
@@ -241,7 +241,7 @@ export {
|
|
|
241
241
|
q as getNetwork,
|
|
242
242
|
Xa as getNetworkFees,
|
|
243
243
|
Ga as getOutspend,
|
|
244
|
-
|
|
244
|
+
pi as getPeginProtocolState,
|
|
245
245
|
is as getPsbtInputFields,
|
|
246
246
|
os as getScriptType,
|
|
247
247
|
Q as getSortedXOnlyPubkeys,
|
|
@@ -251,7 +251,7 @@ export {
|
|
|
251
251
|
za as getUtxoInfo,
|
|
252
252
|
ye as handleContractError,
|
|
253
253
|
$ as hexToUint8Array,
|
|
254
|
-
|
|
254
|
+
Pi as isActivationDeadlinePassedOnChain,
|
|
255
255
|
aa as isAddressFromPublicKey,
|
|
256
256
|
Ot as isApplicationEntryPointMismatchError,
|
|
257
257
|
Zs as isAuthRejectedError,
|
|
@@ -286,51 +286,52 @@ export {
|
|
|
286
286
|
Ya as pushTx,
|
|
287
287
|
fs as rateBasedTxBufferFee,
|
|
288
288
|
Ut as readDelegatedClaimVaultContext,
|
|
289
|
-
Ht as
|
|
289
|
+
Ht as readRefundPrePeginContext,
|
|
290
|
+
Lt as readStampedParticipantKeys,
|
|
290
291
|
Fr as rebuildDepositTermsCore,
|
|
291
292
|
Nr as rebuildDepositTermsForClaim,
|
|
292
293
|
k as reclaimVsize,
|
|
293
294
|
Mr as reconstructPeginParams,
|
|
294
295
|
re as registrationPrePeginTxHash,
|
|
295
296
|
Ma as requireChangeAddress,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
Kt as resolveCurrentParticipantKeys,
|
|
298
|
+
Xt as resolveParticipantKeysAtEpochs,
|
|
299
|
+
Ee as resolveProtocolAddresses,
|
|
300
|
+
Gt as runDepositorPresignFlow,
|
|
300
301
|
yr as selectSiblingRegistrations,
|
|
301
302
|
ns as selectUtxosForPegin,
|
|
302
303
|
ls as shouldAddChangeOutput,
|
|
303
|
-
|
|
304
|
-
|
|
304
|
+
kt as signDelegatedClaimPlan,
|
|
305
|
+
Wt as signDepositorGraph,
|
|
305
306
|
ra as stripHexPrefix,
|
|
306
|
-
|
|
307
|
-
|
|
307
|
+
wt as submitWotsPublicKey,
|
|
308
|
+
zt as summarizeWatchtowerArtifacts,
|
|
308
309
|
x as supportedTxGraphVersions,
|
|
309
310
|
ya as supportsDepositApproval,
|
|
310
311
|
vr as toRefundInputs,
|
|
311
312
|
ta as toXOnly,
|
|
312
313
|
ia as uint8ArrayToHex,
|
|
313
|
-
|
|
314
|
-
|
|
314
|
+
Yt as validateDepositAmount,
|
|
315
|
+
jt as validateMultiVaultDepositInputs,
|
|
315
316
|
te as validateOffchainParams,
|
|
316
|
-
|
|
317
|
+
Jt as validateOnChainParticipantKeys,
|
|
317
318
|
ie as validatePegInConfiguration,
|
|
318
319
|
b as validatePeginP2aAnchor,
|
|
319
|
-
|
|
320
|
-
|
|
320
|
+
Zt as validateProviderSelection,
|
|
321
|
+
qt as validateRemainingCapacity,
|
|
321
322
|
Bs as validateRequestDepositorClaimerArtifactsResponse,
|
|
322
323
|
va as validateSecretAgainstHashlock,
|
|
323
324
|
oe as validateTBVProtocolParams,
|
|
324
325
|
Fs as validateUtxosAvailable,
|
|
325
|
-
|
|
326
|
-
|
|
326
|
+
Qt as validateVaultAmounts,
|
|
327
|
+
$t as validateVaultProviderPubkey,
|
|
327
328
|
oa as validateWalletPubkey,
|
|
328
|
-
|
|
329
|
-
|
|
329
|
+
ai as verifyRegisteredParticipantKeys,
|
|
330
|
+
ei as verifyRegisteredVaultVersions,
|
|
330
331
|
tr as verifyServerIdentity,
|
|
331
332
|
ir as vpTokenRegistry,
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
si as waitForPeginRegistrationDepth,
|
|
334
|
+
ri as waitForPeginStatus,
|
|
334
335
|
Ta as waitForTransactionReceiptSmartAware
|
|
335
336
|
};
|
|
336
337
|
//# sourceMappingURL=index.js.map
|
|
@@ -29,15 +29,21 @@ interface SignPayoutBaseParams {
|
|
|
29
29
|
*/
|
|
30
30
|
peginTxHex: string;
|
|
31
31
|
/**
|
|
32
|
-
* Vault provider's
|
|
32
|
+
* Vault provider's RFC-006 operation key (x-only, 64-char hex) at the
|
|
33
|
+
* vault's frozen `vpKeyEpoch`, as `readStampedParticipantKeys` returns it.
|
|
34
|
+
* Never the registration key or the indexer's copy.
|
|
33
35
|
*/
|
|
34
36
|
vaultProviderBtcPubkey: string;
|
|
35
37
|
/**
|
|
36
|
-
* Vault keeper
|
|
38
|
+
* Vault keeper operation keys (x-only, 64-char hex) at the vault's frozen
|
|
39
|
+
* `appKeeperKeyEpoch`, as `readStampedParticipantKeys` returns them. The
|
|
40
|
+
* roster holds registration keys, which differ from these for a vault
|
|
41
|
+
* registered after a keeper had rotated.
|
|
37
42
|
*/
|
|
38
43
|
vaultKeeperBtcPubkeys: string[];
|
|
39
44
|
/**
|
|
40
|
-
* Universal challenger
|
|
45
|
+
* Universal challenger operation keys (x-only, 64-char hex) at the vault's
|
|
46
|
+
* frozen `ucKeyEpoch`, as `readStampedParticipantKeys` returns them.
|
|
41
47
|
*/
|
|
42
48
|
universalChallengerBtcPubkeys: string[];
|
|
43
49
|
/**
|
|
@@ -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;AAOvB;;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
|
|
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;AAOvB;;GAEG;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,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;IAgEjC;;;;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;CAmGF"}
|
|
@@ -68,7 +68,11 @@ export interface PreparePeginParams {
|
|
|
68
68
|
*/
|
|
69
69
|
amounts: readonly bigint[];
|
|
70
70
|
/**
|
|
71
|
-
* Vault provider's
|
|
71
|
+
* Vault provider's current RFC-006 operation key (x-only, 64-char hex), read
|
|
72
|
+
* at the same pinned block as the rest of the deposit's protocol state:
|
|
73
|
+
* `validateOnChainParticipantKeys(...).vaultProviderBtcPubkeyXOnly`. Not the
|
|
74
|
+
* registration key, which differs from it once the provider has rotated, and
|
|
75
|
+
* not the indexer's copy, which is only a hint.
|
|
72
76
|
* Can be provided with or without "0x" prefix (will be stripped automatically).
|
|
73
77
|
*/
|
|
74
78
|
vaultProviderBtcPubkey: string;
|
|
@@ -79,12 +83,18 @@ export interface PreparePeginParams {
|
|
|
79
83
|
*/
|
|
80
84
|
commissionBps: number;
|
|
81
85
|
/**
|
|
82
|
-
* Vault
|
|
86
|
+
* Vault keepers' current RFC-006 operation keys (x-only, 64-char hex), read
|
|
87
|
+
* at the deposit's pinned block:
|
|
88
|
+
* `validateOnChainParticipantKeys(...).vaultKeeperBtcPubkeysSorted`. Not the
|
|
89
|
+
* roster's registration keys.
|
|
83
90
|
* Can be provided with or without "0x" prefix (will be stripped automatically).
|
|
84
91
|
*/
|
|
85
92
|
vaultKeeperBtcPubkeys: readonly string[];
|
|
86
93
|
/**
|
|
87
|
-
* Universal
|
|
94
|
+
* Universal challengers' current RFC-006 operation keys (x-only, 64-char
|
|
95
|
+
* hex), read at the deposit's pinned block:
|
|
96
|
+
* `validateOnChainParticipantKeys(...).universalChallengerBtcPubkeysSorted`.
|
|
97
|
+
* Not the roster's registration keys.
|
|
88
98
|
* Can be provided with or without "0x" prefix (will be stripped automatically).
|
|
89
99
|
*/
|
|
90
100
|
universalChallengerBtcPubkeys: readonly string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAEL,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,EAEL,KAAK,YAAY,EAClB,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAML,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;KAC3B,CAAC;IAEF;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAE3B
|
|
1
|
+
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAEL,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,EAEL,KAAK,YAAY,EAClB,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAML,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;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;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,uBAAuB,IAAI,OAAO;CAGnC"}
|
|
@@ -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-BipOU_e4.cjs"),a=require("../../../PayoutManager-BXzFIZK6.cjs");exports.PeginManager=e.PeginManager;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as e } from "../../../PeginManager-
|
|
2
|
-
import { P } from "../../../PayoutManager-
|
|
1
|
+
import { P as e } from "../../../PeginManager-Cd5pHNTO.js";
|
|
2
|
+
import { P } from "../../../PayoutManager-Cjkozmnn.js";
|
|
3
3
|
export {
|
|
4
4
|
P as PayoutManager,
|
|
5
5
|
e as PeginManager
|
|
@@ -4,18 +4,25 @@
|
|
|
4
4
|
* local-challenger set a claimer's tx graph is built from.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Count `{vault_provider} ∪ {vault_keepers} − {depositor}`: an upper bound on
|
|
8
|
+
* the local challengers of any of a vault's claim graphs, given the protocol
|
|
9
|
+
* rule that the depositor is not a vault keeper. Use it for UI estimates such
|
|
10
|
+
* as a deposit form's claim reserve and balance check.
|
|
8
11
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
12
|
+
* This is the VP's `compute_num_challengers()` rule with the depositor in the
|
|
13
|
+
* claimer's place, but no claim graph is built that way: the depositor's own
|
|
14
|
+
* graph has the vault keepers alone, and a vault provider's or a keeper's
|
|
15
|
+
* graph removes that claimer instead. So it is normally the keeper count plus
|
|
16
|
+
* one. Do not use it for `PrePeginParams.numLocalChallengers`, which is the
|
|
17
|
+
* keeper count.
|
|
11
18
|
*
|
|
12
19
|
* Keys are normalized to x-only lowercase hex before comparison, so
|
|
13
20
|
* `0x`-prefixed, compressed, or mixed-case keys are handled correctly.
|
|
14
21
|
*
|
|
15
22
|
* @param vaultProviderPubkey - Vault provider BTC public key
|
|
16
23
|
* @param vaultKeeperPubkeys - Vault keeper BTC public keys
|
|
17
|
-
* @param depositorPubkey - Depositor
|
|
18
|
-
* @returns
|
|
24
|
+
* @param depositorPubkey - Depositor BTC public key, left out of the count
|
|
25
|
+
* @returns The size of `{vault_provider} ∪ {vault_keepers} − {depositor}`
|
|
19
26
|
*/
|
|
20
27
|
export declare function computeNumLocalChallengers(vaultProviderPubkey: string, vaultKeeperPubkeys: string[], depositorPubkey: string): number;
|
|
21
28
|
/** Roles a claimer can hold; determines which local-challenger rule applies. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"challengers.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/primitives/challengers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH
|
|
1
|
+
{"version":3,"file":"challengers.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/primitives/challengers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,0BAA0B,CACxC,mBAAmB,EAAE,MAAM,EAC3B,kBAAkB,EAAE,MAAM,EAAE,EAC5B,eAAe,EAAE,MAAM,GACtB,MAAM,CAQR;AAED,gFAAgF;AAChF,MAAM,WAAW,4BAA4B;IAC3C,kEAAkE;IAClE,gBAAgB,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uDAAuD;IACvD,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,4BAA4B,GACnC,MAAM,EAAE,CAgCV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs"),s=require("../../../secp256k1-DDHQ1_za.cjs"),r=require("../wasm/index.cjs"),a=require("../../../verifyKeyPathSchnorrSignature-DcxCojp0.cjs"),i=require("../../../challengeAssert-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs"),s=require("../../../secp256k1-DDHQ1_za.cjs"),r=require("../wasm/index.cjs"),a=require("../../../verifyKeyPathSchnorrSignature-DcxCojp0.cjs"),i=require("../../../challengeAssert-eUMgmpMk.cjs"),e=require("../../../bitcoin-D-O2GjbC.cjs");exports.PEGIN_DEPOSITOR_CLAIM_VOUT=t.PEGIN_DEPOSITOR_CLAIM_VOUT;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.computeNumLocalChallengers=t.computeNumLocalChallengers;exports.createPayoutScript=t.createPayoutScript;exports.deriveDepositorClaimDescriptor=t.deriveDepositorClaimDescriptor;exports.deriveDepositorClaimScriptPubKey=t.deriveDepositorClaimScriptPubKey;exports.extractPayoutSignature=t.extractPayoutSignature;exports.assertValidVaultCoreVersion=s.assertValidVaultCoreVersion;exports.computeMinClaimValue=r.computeMinClaimValue;exports.computeMinPeginFee=r.computeMinPeginFee;exports.deriveVaultId=r.deriveVaultId;exports.peginP2aAnchorOutput=r.peginP2aAnchorOutput;exports.supportedTxGraphVersions=r.supportedTxGraphVersions;exports.validatePeginP2aAnchor=r.validatePeginP2aAnchor;exports.assertKeyPathSchnorrSignature=a.assertKeyPathSchnorrSignature;exports.assertReturnedKeyPathSignatures=a.assertReturnedKeyPathSignatures;exports.buildPeginInputPsbt=a.buildPeginInputPsbt;exports.extractPeginInputSignature=a.extractPeginInputSignature;exports.finalizePeginInputPsbt=a.finalizePeginInputPsbt;exports.buildChallengeAssertPsbt=i.buildChallengeAssertPsbt;exports.buildNoPayoutPsbt=i.buildNoPayoutPsbt;exports.buildReclaimPsbt=i.buildReclaimPsbt;exports.buildRefundPsbt=i.buildRefundPsbt;exports.estimateReclaimFeeSats=i.estimateReclaimFeeSats;exports.finalizeScriptPathWithSignatures=i.finalizeScriptPathWithSignatures;exports.reclaimVsize=i.reclaimVsize;exports.canonicalizeBtcPubkey=e.canonicalizeBtcPubkey;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
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* - {@link createPayoutScript} - Generate taproot payout script
|
|
51
51
|
*
|
|
52
52
|
* ### Challenger Counting
|
|
53
|
-
* - {@link computeNumLocalChallengers} -
|
|
53
|
+
* - {@link computeNumLocalChallengers} - Upper bound on a vault's local challengers, for UI estimates such as a deposit form's claim reserve
|
|
54
54
|
*
|
|
55
55
|
* ### WASM Functions
|
|
56
56
|
* - {@link computeMinClaimValue} - Compute the minimum claim value accepted by the vault provider
|
|
@@ -2,7 +2,7 @@ import { P as s, h as t, i as r, j as i, f as o, b as u, a as n, c as P, k as l,
|
|
|
2
2
|
import { a as g } from "../../../secp256k1-BuxBFUHm.js";
|
|
3
3
|
import { computeMinClaimValue as x, computeMinPeginFee as S, deriveVaultId as y, peginP2aAnchorOutput as h, supportedTxGraphVersions as f, validatePeginP2aAnchor as v } from "../wasm/index.js";
|
|
4
4
|
import { a as A, c as V, b as C, e as I, f as O } from "../../../verifyKeyPathSchnorrSignature-DPXOFOol.js";
|
|
5
|
-
import { d as F, c as H, a as R, b as k, e as z, f as D, r as M } from "../../../challengeAssert-
|
|
5
|
+
import { d as F, c as H, a as R, b as k, e as z, f as D, r as M } from "../../../challengeAssert-pJP7MKhG.js";
|
|
6
6
|
import { c as B, d as E, a as U, b as X, e as _, f as j, g as G, h as L, i as W, j as w, p as q, s as J, t as Q, u as Y, v as Z } from "../../../bitcoin-C-TuHb-v.js";
|
|
7
7
|
export {
|
|
8
8
|
s as PEGIN_DEPOSITOR_CLAIM_VOUT,
|
|
@@ -12,11 +12,28 @@ export interface PrePeginParams {
|
|
|
12
12
|
vaultCoreVersion: number;
|
|
13
13
|
/** Depositor's BTC public key (x-only, 64-char hex without 0x prefix) */
|
|
14
14
|
depositorPubkey: string;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Vault provider's RFC-006 operation key (x-only, 64-char hex). A fresh
|
|
17
|
+
* deposit uses the current key, read at one pinned block; rebuilding an
|
|
18
|
+
* existing vault's Pre-PegIn (a refund) uses the key at the vault's frozen
|
|
19
|
+
* `vpKeyEpoch`. Never the registration key or the indexer's copy.
|
|
20
|
+
*/
|
|
16
21
|
vaultProviderPubkey: string;
|
|
17
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Vault keepers' RFC-006 operation keys (x-only, 64-char hex): current for
|
|
24
|
+
* a fresh deposit, at the vault's frozen `appKeeperKeyEpoch` when
|
|
25
|
+
* rebuilding. The roster (`getVaultKeepersByVersion`) holds registration
|
|
26
|
+
* keys, which differ from these once a keeper has rotated before the
|
|
27
|
+
* deposit was built.
|
|
28
|
+
*/
|
|
18
29
|
vaultKeeperPubkeys: string[];
|
|
19
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Universal challengers' RFC-006 operation keys (x-only, 64-char hex):
|
|
32
|
+
* current for a fresh deposit, at the vault's frozen `ucKeyEpoch` when
|
|
33
|
+
* rebuilding. The roster (`getUniversalChallengersByVersion`) holds
|
|
34
|
+
* registration keys, which differ from these once a challenger has rotated
|
|
35
|
+
* before the deposit was built.
|
|
36
|
+
*/
|
|
20
37
|
universalChallengerPubkeys: string[];
|
|
21
38
|
/** SHA256 hash commitment(s) (64 hex chars = 32 bytes each) */
|
|
22
39
|
hashlocks: readonly string[];
|
|
@@ -28,7 +45,12 @@ export interface PrePeginParams {
|
|
|
28
45
|
feeRate: bigint;
|
|
29
46
|
/** Minimum PegIn fee rate in sat/vB from contract offchain params; sizes the PegIn tx fee */
|
|
30
47
|
minPeginFeeRate: bigint;
|
|
31
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Number of local challengers in the depositor's own claim graph, which this
|
|
50
|
+
* value sizes (through the depositor claim value): the vault keeper count.
|
|
51
|
+
* (A vault provider's or a keeper's claim graph uses a different rule: the
|
|
52
|
+
* vault provider and the keepers, minus the claimer.)
|
|
53
|
+
*/
|
|
32
54
|
numLocalChallengers: number;
|
|
33
55
|
/** M in M-of-N council multisig (from contract params) */
|
|
34
56
|
councilQuorum: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pegin.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/pegin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAKL,KAAK,OAAO,EACb,MAAM,YAAY,CAAC;AAsBpB;;GAEG;AACH,MAAM,WAAW,cAAc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ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAeH,OAAO,EAA2B,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,cAAc,EAAE,cAAc,CAAC;IAC/B,oFAAoF;IACpF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"refund.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/refund.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAeH,OAAO,EAA2B,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,cAAc,EAAE,cAAc,CAAC;IAC/B,oFAAoF;IACpF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CA0PhC"}
|
|
@@ -46,15 +46,15 @@ export interface AssertChallengerSetMatchesVaultParams {
|
|
|
46
46
|
/** Depositor's BTC public key, registered on chain for this vault. */
|
|
47
47
|
depositorBtcPubkey: string;
|
|
48
48
|
/**
|
|
49
|
-
* Vault provider's
|
|
49
|
+
* Vault provider's operation key at the vault's frozen `vpKeyEpoch`.
|
|
50
50
|
* The depositor-as-claimer branch does not use it, but the shared
|
|
51
51
|
* derivation takes it, and passing a stand-in would be a lie that the
|
|
52
52
|
* next change to that function could turn into a wrong set.
|
|
53
53
|
*/
|
|
54
54
|
vaultProviderBtcPubkey: string;
|
|
55
|
-
/** Vault keepers
|
|
55
|
+
/** Vault keepers' operation keys at the vault's frozen `appKeeperKeyEpoch`. */
|
|
56
56
|
vaultKeeperBtcPubkeys: string[];
|
|
57
|
-
/** Universal challengers
|
|
57
|
+
/** Universal challengers' operation keys at the vault's frozen `ucKeyEpoch`. */
|
|
58
58
|
universalChallengerBtcPubkeys: string[];
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"challengerBinding.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/challengerBinding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IAEjD,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;;IAH7B,yDAAyD;IAChD,OAAO,EAAE,MAAM,EAAE;IAC1B,gEAAgE;IACvD,UAAU,EAAE,MAAM,EAAE;CAahC;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IACpD,sEAAsE;IACtE,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sEAAsE;IACtE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B
|
|
1
|
+
{"version":3,"file":"challengerBinding.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/challengerBinding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IAEjD,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;;IAH7B,yDAAyD;IAChD,OAAO,EAAE,MAAM,EAAE;IAC1B,gEAAgE;IACvD,UAAU,EAAE,MAAM,EAAE;CAahC;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IACpD,sEAAsE;IACtE,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sEAAsE;IACtE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B,+EAA+E;IAC/E,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,gFAAgF;IAChF,6BAA6B,EAAE,MAAM,EAAE,CAAC;CACzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,qCAAqC,GAC5C,IAAI,CAkCN"}
|
|
@@ -119,11 +119,11 @@ export interface DelegatedClaimVaultContext {
|
|
|
119
119
|
* wallet signs it.
|
|
120
120
|
*/
|
|
121
121
|
registeredPayoutScriptPubKey: string;
|
|
122
|
-
/** Vault provider's
|
|
122
|
+
/** Vault provider's operation key at the vault's frozen `vpKeyEpoch`, the key its graph was built with. */
|
|
123
123
|
vaultProviderBtcPubkey: string;
|
|
124
|
-
/** Vault keepers
|
|
124
|
+
/** Vault keepers' operation keys at the vault's frozen `appKeeperKeyEpoch`: the local challengers of this claim. */
|
|
125
125
|
vaultKeeperBtcPubkeys: string[];
|
|
126
|
-
/** Universal challengers
|
|
126
|
+
/** Universal challengers' operation keys at the vault's frozen `ucKeyEpoch`. */
|
|
127
127
|
universalChallengerBtcPubkeys: string[];
|
|
128
128
|
/** Graph (vault core) version of the vault. Delegated claim requires `DELEGATED_CLAIM_TX_GRAPH_VERSION`. */
|
|
129
129
|
txGraphVersion: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;;;;;OAQG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,KAAK,CAAA;CAAE,GACjB;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAElD,qDAAqD;AACrD,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;OAUG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,GAAG,CAAC;IACb;;;;OAIG;IACH,mBAAmB,EAAE,GAAG,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,EAAE,gBAAgB,CAAC;IACrC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;;;;;OAQG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,KAAK,CAAA;CAAE,GACjB;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAElD,qDAAqD;AACrD,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,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