@babylonlabs-io/ts-sdk 3.3.1 → 4.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/{BTCVaultRegistry.abi-BzNTa_EU.js → BTCVaultRegistry.abi-DnP4UkB5.js} +9 -140
- package/dist/BTCVaultRegistry.abi-DnP4UkB5.js.map +1 -0
- package/dist/{BTCVaultRegistry.abi-BH2-LHxN.cjs → BTCVaultRegistry.abi-DzbfZ9_s.cjs} +2 -2
- package/dist/BTCVaultRegistry.abi-DzbfZ9_s.cjs.map +1 -0
- package/dist/{PayoutManager-xEGvTbhL.js → PayoutManager-BUWP-H-q.js} +3 -3
- package/dist/PayoutManager-BUWP-H-q.js.map +1 -0
- package/dist/{PayoutManager-B1Ev0r7o.cjs → PayoutManager-Dopxq_Jv.cjs} +2 -2
- package/dist/PayoutManager-Dopxq_Jv.cjs.map +1 -0
- package/dist/{PeginManager-D2R4Q1bN.cjs → PeginManager-CMbRRTnr.cjs} +2 -2
- package/dist/{PeginManager-D2R4Q1bN.cjs.map → PeginManager-CMbRRTnr.cjs.map} +1 -1
- package/dist/{PeginManager-CQ9bVPR3.js → PeginManager-Cas6_j7t.js} +7 -7
- package/dist/{PeginManager-CQ9bVPR3.js.map → PeginManager-Cas6_j7t.js.map} +1 -1
- package/dist/{ProtocolParams.abi-Cv77fsUe.js → ProtocolParams.abi-CuDl7AuC.js} +3 -3
- package/dist/{ProtocolParams.abi-Cv77fsUe.js.map → ProtocolParams.abi-CuDl7AuC.js.map} +1 -1
- package/dist/{ProtocolParams.abi-BgEZaQ2I.cjs → ProtocolParams.abi-DWfIh6VH.cjs} +2 -2
- package/dist/{ProtocolParams.abi-BgEZaQ2I.cjs.map → ProtocolParams.abi-DWfIh6VH.cjs.map} +1 -1
- package/dist/VaultErrors.abi-Dc3UnB_h.js +5 -0
- package/dist/{VaultErrors.abi-Boz4w97c.js.map → VaultErrors.abi-Dc3UnB_h.js.map} +1 -1
- package/dist/VaultErrors.abi-Hjn1CdLs.cjs +2 -0
- package/dist/{VaultErrors.abi-DQ18kM0L.cjs.map → VaultErrors.abi-Hjn1CdLs.cjs.map} +1 -1
- package/dist/buildAndBroadcastReclaim-CVmG3ldA.cjs +2 -0
- package/dist/buildAndBroadcastReclaim-CVmG3ldA.cjs.map +1 -0
- package/dist/{buildAndBroadcastReclaim-CQANDXVJ.js → buildAndBroadcastReclaim-XRWuJWVL.js} +48 -50
- package/dist/buildAndBroadcastReclaim-XRWuJWVL.js.map +1 -0
- package/dist/{challengeAssert-C3eMcM5Y.cjs → challengeAssert-BE6Wm4x1.cjs} +2 -2
- package/dist/challengeAssert-BE6Wm4x1.cjs.map +1 -0
- package/dist/{challengeAssert-B2otuf7y.js → challengeAssert-DUKSjirl.js} +3 -3
- package/dist/challengeAssert-DUKSjirl.js.map +1 -0
- package/dist/constants-BCg6O0PX.cjs +2 -0
- package/dist/constants-BCg6O0PX.cjs.map +1 -0
- package/dist/constants-CmDDuM3L.js +50 -0
- package/dist/constants-CmDDuM3L.js.map +1 -0
- package/dist/{index-BRsWXDlv.js → index-B-9aXMxk.js} +6 -6
- package/dist/{index-BRsWXDlv.js.map → index-B-9aXMxk.js.map} +1 -1
- package/dist/{index-C6avwx1s.cjs → index-Dn7RlsKK.cjs} +2 -2
- package/dist/{index-C6avwx1s.cjs.map → index-Dn7RlsKK.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -16
- package/dist/pegin-registration-client-DLlaZbsZ.cjs +2 -0
- package/dist/pegin-registration-client-DLlaZbsZ.cjs.map +1 -0
- package/dist/{pegin-registration-client-Cvjk4ILq.js → pegin-registration-client-ZI0k10_3.js} +90 -96
- package/dist/pegin-registration-client-ZI0k10_3.js.map +1 -0
- package/dist/{primeVpAuth-D4UWXQ76.js → primeVpAuth-C-ET0XF4.js} +2 -2
- package/dist/{primeVpAuth-D4UWXQ76.js.map → primeVpAuth-C-ET0XF4.js.map} +1 -1
- package/dist/{primeVpAuth-CXNXYKrh.cjs → primeVpAuth-Ch-ig2My.cjs} +2 -2
- package/dist/{primeVpAuth-CXNXYKrh.cjs.map → primeVpAuth-Ch-ig2My.cjs.map} +1 -1
- package/dist/registration-records-CKc0OVuK.cjs +2 -0
- package/dist/registration-records-CKc0OVuK.cjs.map +1 -0
- package/dist/{registration-records-DJJC2NiO.js → registration-records-D39ApuHS.js} +141 -141
- package/dist/registration-records-D39ApuHS.js.map +1 -0
- package/dist/{signer-set-reader-GrFe_rsW.cjs → signer-set-reader-CJfV-GDz.cjs} +2 -2
- package/dist/{signer-set-reader-GrFe_rsW.cjs.map → signer-set-reader-CJfV-GDz.cjs.map} +1 -1
- package/dist/{signer-set-reader-CSUe92zE.js → signer-set-reader-DiwLeqik.js} +3 -3
- package/dist/{signer-set-reader-CSUe92zE.js.map → signer-set-reader-DiwLeqik.js.map} +1 -1
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.js +4 -4
- package/dist/tbv/core/clients/eth/protocol-params-validation.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/registration-logs-error.d.ts +6 -6
- package/dist/tbv/core/clients/eth/registration-records.d.ts +1 -1
- package/dist/tbv/core/clients/eth/types.d.ts +12 -13
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +1 -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 +6 -6
- package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.js +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +5 -111
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +2 -2
- package/dist/tbv/core/contracts/abis/vaultErrors.abi.json.d.ts +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.js +3 -3
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsCore.test.d.ts +1 -1
- package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts +1 -1
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts +5 -5
- package/dist/tbv/core/deposit-terms/rebuildDepositTermsCore.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +16 -16
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/primitives/__tests__/vaultCoreVersion.test.d.ts +1 -1
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.js +3 -3
- package/dist/tbv/core/primitives/psbt/__tests__/deriveExpectedPeginPayoutScriptPubKey.test.d.ts +1 -1
- package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/constants.d.ts +38 -13
- package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/depositorClaim.d.ts +3 -6
- package/dist/tbv/core/primitives/psbt/depositorClaim.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/pegin.d.ts +3 -5
- package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
- package/dist/tbv/core/recovery/peginParamsCandidates.d.ts +1 -1
- package/dist/tbv/core/recovery/reconstructPeginParams.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts +2 -2
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +2 -1
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.d.ts +1 -1
- package/dist/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts +2 -1
- package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.d.ts +1 -1
- package/dist/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +3 -3
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/types.d.ts +5 -6
- package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.d.ts +3 -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 +2 -2
- package/dist/tbv/core/wasm/index.cjs.map +1 -1
- package/dist/tbv/core/wasm/index.d.ts +8 -11
- package/dist/tbv/core/wasm/index.d.ts.map +1 -1
- package/dist/tbv/core/wasm/index.js.map +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +16 -16
- package/dist/toRefundInputs-BSQjDOK9.cjs +2 -0
- package/dist/toRefundInputs-BSQjDOK9.cjs.map +1 -0
- package/dist/{toRefundInputs-DH-1bRNY.js → toRefundInputs-BbbvPb2A.js} +175 -173
- package/dist/toRefundInputs-BbbvPb2A.js.map +1 -0
- package/dist/{types-BC2TGzcp.cjs → types-BnZIbDHb.cjs} +2 -2
- package/dist/types-BnZIbDHb.cjs.map +1 -0
- package/dist/{types-24A9Qoxb.js → types-K_aM5GZO.js} +39 -39
- package/dist/types-K_aM5GZO.js.map +1 -0
- package/dist/{verifyKeyPathSchnorrSignature-IIj3Z2se.js → verifyKeyPathSchnorrSignature-DPXOFOol.js} +2 -2
- package/dist/{verifyKeyPathSchnorrSignature-IIj3Z2se.js.map → verifyKeyPathSchnorrSignature-DPXOFOol.js.map} +1 -1
- package/dist/{verifyKeyPathSchnorrSignature-BRTpEH9X.cjs → verifyKeyPathSchnorrSignature-DcxCojp0.cjs} +2 -2
- package/dist/{verifyKeyPathSchnorrSignature-BRTpEH9X.cjs.map → verifyKeyPathSchnorrSignature-DcxCojp0.cjs.map} +1 -1
- package/dist/verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs +2 -0
- package/dist/verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs.map +1 -0
- package/dist/{verifyScriptPathSchnorrSignature-owu3BfyT.js → verifyScriptPathSchnorrSignature-D-fdi-sG.js} +462 -459
- package/dist/verifyScriptPathSchnorrSignature-D-fdi-sG.js.map +1 -0
- package/package.json +3 -3
- package/dist/BTCVaultRegistry.abi-BH2-LHxN.cjs.map +0 -1
- package/dist/BTCVaultRegistry.abi-BzNTa_EU.js.map +0 -1
- package/dist/PayoutManager-B1Ev0r7o.cjs.map +0 -1
- package/dist/PayoutManager-xEGvTbhL.js.map +0 -1
- package/dist/VaultErrors.abi-Boz4w97c.js +0 -5
- package/dist/VaultErrors.abi-DQ18kM0L.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-CQANDXVJ.js.map +0 -1
- package/dist/buildAndBroadcastReclaim-DPk36Uhp.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-DPk36Uhp.cjs.map +0 -1
- package/dist/challengeAssert-B2otuf7y.js.map +0 -1
- package/dist/challengeAssert-C3eMcM5Y.cjs.map +0 -1
- package/dist/constants-CAm10Qwp.cjs +0 -2
- package/dist/constants-CAm10Qwp.cjs.map +0 -1
- package/dist/constants-CvQZuxKv.js +0 -48
- package/dist/constants-CvQZuxKv.js.map +0 -1
- package/dist/pegin-registration-client-CdRyXP3j.cjs +0 -2
- package/dist/pegin-registration-client-CdRyXP3j.cjs.map +0 -1
- package/dist/pegin-registration-client-Cvjk4ILq.js.map +0 -1
- package/dist/registration-records-DJJC2NiO.js.map +0 -1
- package/dist/registration-records-XQMIKjGV.cjs +0 -2
- package/dist/registration-records-XQMIKjGV.cjs.map +0 -1
- package/dist/toRefundInputs-DH-1bRNY.js.map +0 -1
- package/dist/toRefundInputs-DRmK83fv.cjs +0 -2
- package/dist/toRefundInputs-DRmK83fv.cjs.map +0 -1
- package/dist/types-24A9Qoxb.js.map +0 -1
- package/dist/types-BC2TGzcp.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-CahYx5Td.cjs +0 -2
- package/dist/verifyScriptPathSchnorrSignature-CahYx5Td.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-owu3BfyT.js.map +0 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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 E, d as P, e as c, g as u } from "../../verifyScriptPathSchnorrSignature-
|
|
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 E, d as P, e as c, g as u } 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
|
-
import { a as N, c as M, b as y, e as v, f as D } from "../../verifyKeyPathSchnorrSignature-
|
|
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-
|
|
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-DUKSjirl.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
8
|
import { c as Ea, a as Pa } from "../../signing-C1rR4tqs.js";
|
|
9
9
|
import { B as ua, C as da, 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-Cas6_j7t.js";
|
|
12
|
+
import { P as ba, c as Fa, f as Na, r as Ma, s as ya, v as va } from "../../PayoutManager-BUWP-H-q.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
|
-
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-
|
|
15
|
-
import { V as le, a as pe, b as Ee, r as Pe } from "../../signer-set-reader-
|
|
16
|
-
import { C as ue, M as de, V as ge, a as me, c as Re } from "../../pegin-registration-client-
|
|
17
|
-
import { O as _e, V as Se } from "../../types-
|
|
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 Ee, r as Pe } from "../../signer-set-reader-DiwLeqik.js";
|
|
16
|
+
import { C as ue, M as de, V as ge, a as me, c as Re } from "../../pegin-registration-client-ZI0k10_3.js";
|
|
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
|
-
import { B as fe } from "../../BTCVaultRegistry.abi-
|
|
19
|
+
import { B as fe } from "../../BTCVaultRegistry.abi-DnP4UkB5.js";
|
|
20
20
|
import { B as Ve, C as Oe, E as xe, P as be, a as Fe, e as Ne, g as Me, h as ye, i as ve, b as De } from "../../BTCVaultRegistryKeyEpochs.abi-Btg0nBz1.js";
|
|
21
|
-
import { P as Ue } from "../../ProtocolParams.abi-
|
|
22
|
-
import { V as Le } from "../../VaultErrors.abi-
|
|
21
|
+
import { P as Ue } from "../../ProtocolParams.abi-CuDl7AuC.js";
|
|
22
|
+
import { V as Le } from "../../VaultErrors.abi-Dc3UnB_h.js";
|
|
23
23
|
import { b as Xe } from "../../buildVaultContextInputForClaim-DhBoQKyN.js";
|
|
24
24
|
import { V as ke, b as We, a as we, d as ze, f as Ye } from "../../deriveVaultRoot-BcvmER1E.js";
|
|
25
25
|
import { p as Je } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
@@ -27,11 +27,11 @@ 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
28
|
import { B as Es, D as Ps, L as cs, M as us, c as ds, 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
|
-
import { V as Ms, a as ys, b as vs, i as Ds, v as Bs } from "../../index-
|
|
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 Er, b as Pr, u as cr, v as ur, t as dr, 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-
|
|
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, ah as Zr, ai as qr, aj as Qr, ak as $r, ab as at, ac as et, ad as st, ae as rt, af as tt, Z as it, S as ot, V as nt, a as lt, b as pt, d as Et, e as Pt, m as ct, f as ut, g as dt, t as gt, i as mt, B as Rt, o as At, a1 as _t, ag 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, a5 as Ht, a6 as Lt, a7 as Kt, F as Xt, q as Gt, H as kt, I as Wt, s as wt, N as zt, O as Yt, L as jt, Q as Jt, R as Zt, T as qt, U as Qt, Y as $t, $ as ai, z as ei, a0 as si } from "../../buildAndBroadcastReclaim-
|
|
32
|
+
import { S as ar, V as er, c as sr, p as rr, v as tr, a as ir } from "../../primeVpAuth-C-ET0XF4.js";
|
|
33
|
+
import { D as nr, g as lr, P as pr, a as Er, b as Pr, u as cr, v as ur, t as dr, 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-BbbvPb2A.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, ah as Zr, ai as qr, aj as Qr, ak as $r, ab as at, ac as et, ad as st, ae as rt, af as tt, Z as it, S as ot, V as nt, a as lt, b as pt, d as Et, e as Pt, m as ct, f as ut, g as dt, t as gt, i as mt, B as Rt, o as At, a1 as _t, ag 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, a5 as Ht, a6 as Lt, a7 as Kt, F as Xt, q as Gt, H as kt, I as Wt, s as wt, N as zt, O as Yt, L as jt, Q as Jt, R as Zt, T as qt, U as Qt, Y as $t, $ as ai, z as ei, a0 as si } from "../../buildAndBroadcastReclaim-XRWuJWVL.js";
|
|
35
35
|
import { C as ti, P as ii, a as oi, c as ni, g as li, i as pi } from "../../peginState-CIibG9S_.js";
|
|
36
36
|
export {
|
|
37
37
|
Hs as AUTH_REJECTED_RPC_CODE,
|
|
@@ -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-CMbRRTnr.cjs"),a=require("../../../PayoutManager-Dopxq_Jv.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-Cas6_j7t.js";
|
|
2
|
+
import { P } from "../../../PayoutManager-BUWP-H-q.js";
|
|
3
3
|
export {
|
|
4
4
|
P as PayoutManager,
|
|
5
5
|
e as PeginManager
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pins the tx-graph
|
|
2
|
+
* Pins the tx-graph version the vendored vault-wasm binary supports and
|
|
3
3
|
* that the facade fails closed on anything else (a pin bump that drops v1
|
|
4
4
|
* would strand in-flight deposits), plus the on-chain-value validation
|
|
5
5
|
* every version source runs before a version reaches a WASM builder.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../verifyScriptPathSchnorrSignature-
|
|
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-BE6Wm4x1.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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
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, d, e as c, g as b } from "../../../verifyScriptPathSchnorrSignature-
|
|
1
|
+
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, d, e as c, g as b } from "../../../verifyScriptPathSchnorrSignature-D-fdi-sG.js";
|
|
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
|
-
import { a as A, c as V, b as C, e as I, f as O } from "../../../verifyKeyPathSchnorrSignature-
|
|
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-
|
|
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-DUKSjirl.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,
|
package/dist/tbv/core/primitives/psbt/__tests__/deriveExpectedPeginPayoutScriptPubKey.test.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Differential tests for deriveExpectedPeginPayoutScriptPubKey (CLAUDE.md
|
|
3
3
|
* critical path #9): the TypeScript derivation must equal the real engine's
|
|
4
4
|
* payout connector scriptPubKey over the golden vectors and seeded random
|
|
5
|
-
* inputs,
|
|
5
|
+
* inputs, under graph version 1 (the only one the engine supports).
|
|
6
6
|
*/
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=deriveExpectedPeginPayoutScriptPubKey.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertWasmPeginSizing.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertWasmPeginSizing.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"assertWasmPeginSizing.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/assertWasmPeginSizing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AAMpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAgBjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQ9C,KAAK,kBAAkB,GAAG,IAAI,CAC5B,cAAc,EACZ,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,GACpB,4BAA4B,GAC5B,gBAAgB,CACnB,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,EACZ,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,GACpB,4BAA4B,CAC/B,CAAC;AAEF,UAAU,oBAAoB;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAmDD;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,MAAM,GACf,oBAAoB,CAyFtB;AAED;;;GAGG;AACH,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,MAAM,GACpB,MAAM,CAyCR;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,MAAM,CAAC,CA6JjB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,EAAE,MAAM;CAI5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,iBAAiB,EAAE,SAAS,MAAM,EAAE,GACnC,IAAI,CA2BN;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,iBAAiB,EAAE,SAAS,MAAM,EAAE,EACpC,MAAM,EAAE,cAAc,EACtB,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,IAAI,CA2FN"}
|
|
@@ -94,10 +94,26 @@ export declare const PRE_PEGIN_TX_VERSION = 2;
|
|
|
94
94
|
* `btc-vault crates/vault/src/transactions/prepegin.rs`.
|
|
95
95
|
*/
|
|
96
96
|
export declare const PRE_PEGIN_TX_LOCKTIME = 0;
|
|
97
|
-
/**
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
/**
|
|
98
|
+
* The only Vault Core version with a PegIn shape: post-reset Core 1 (btc-vault
|
|
99
|
+
* `ACTIVE_VAULT_CORE_VERSION`, `crates/vault/src/lib.rs:260` @ 5bc96f5c).
|
|
100
|
+
* `PegInTx::expected_tx_version` / `expected_num_outputs`
|
|
101
|
+
* (`crates/vault/src/transactions/pegin.rs:92-106` @ 5bc96f5c) refuse every
|
|
102
|
+
* other Core. The testnet reset reused the number 1: the pre-reset Core 1
|
|
103
|
+
* PegIn (nVersion 2, two outputs) is a different protocol and is refused.
|
|
104
|
+
*/
|
|
105
|
+
export declare const PEGIN_VAULT_CORE_VERSION = 1;
|
|
106
|
+
/**
|
|
107
|
+
* PegIn nVersion: 3 (TRUC / BIP-431), so anyone can CPFP the P2A anchor
|
|
108
|
+
* (btc-vault `PEGIN_TX_VERSION`, `crates/vault/src/lib.rs:264` @ 5bc96f5c).
|
|
109
|
+
*/
|
|
110
|
+
export declare const PEGIN_TX_VERSION = 3;
|
|
111
|
+
/**
|
|
112
|
+
* PegIn outputs: vault (vout 0), depositor claim (vout 1) and the P2A anchor
|
|
113
|
+
* (vout 2) (btc-vault `NUM_PEGIN_OUTPUTS`, `crates/vault/src/lib.rs:278` @
|
|
114
|
+
* 5bc96f5c).
|
|
115
|
+
*/
|
|
116
|
+
export declare const PEGIN_OUTPUT_COUNT = 3;
|
|
101
117
|
/** PegIn locktime from `PegInTx::new_from_prepegin` (`LockTime::ZERO`). */
|
|
102
118
|
export declare const PEGIN_TX_LOCKTIME = 0;
|
|
103
119
|
/** PegIn input sequence from `PegInTx::new_from_prepegin`. */
|
|
@@ -154,12 +170,12 @@ export declare const ASSERT_FIRST_CHALLENGER_CONNECTOR_VOUT = 1;
|
|
|
154
170
|
*/
|
|
155
171
|
export declare const ASSERT_NON_CHALLENGER_OUTPUT_COUNT = 2;
|
|
156
172
|
/**
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
173
|
+
* The Assert's RFC-008 marker `OP_RETURN`, immediately before the CPFP
|
|
174
|
+
* anchor. Every Assert carries exactly one (btc-vault
|
|
175
|
+
* `crates/vault/src/transactions/assert.rs:11,252` @ 5bc96f5c); the reset
|
|
176
|
+
* removed the per-Core marker gate.
|
|
161
177
|
*/
|
|
162
|
-
export declare const
|
|
178
|
+
export declare const ASSERT_MARKER_OUTPUT_COUNT = 1;
|
|
163
179
|
/**
|
|
164
180
|
* ChallengeAssertX/Y literals btc-vault builds deterministically
|
|
165
181
|
* (`build_challenge_assert_tx`, `crates/vault/src/transactions/challenge_assert.rs:49-96`
|
|
@@ -188,12 +204,21 @@ export declare const NOPAYOUT_INPUT_COUNT = 3;
|
|
|
188
204
|
/** ChallengeAssert output NoPayout spends (`CHALLENGE_ASSERT_OUTPUT_CONNECTOR_INDEX`). */
|
|
189
205
|
export declare const CHALLENGE_ASSERT_OUTPUT_CONNECTOR_INDEX = 0;
|
|
190
206
|
/**
|
|
191
|
-
* Exclusive upper bound on VP commission (bps)
|
|
192
|
-
* `
|
|
193
|
-
*
|
|
194
|
-
*
|
|
207
|
+
* Exclusive upper bound on VP commission (bps): vault-contracts-aave-v4 keeps
|
|
208
|
+
* the `maxVpCommissionBps` cap below it (`ProtocolParams.sol:548` @
|
|
209
|
+
* a20b5e0d), and the registry refuses any commission above that cap
|
|
210
|
+
* (`VPKeyRegistryLogic.sol:93-94,452-453`).
|
|
195
211
|
*/
|
|
196
212
|
export declare const MAX_VP_COMMISSION_BPS_EXCLUSIVE = 10000;
|
|
213
|
+
/**
|
|
214
|
+
* Lowest VP commission (bps) the registry accepts, and the floor of the
|
|
215
|
+
* versioned `maxVpCommissionBps` cap: vault-contracts-aave-v4
|
|
216
|
+
* `MIN_VP_COMMISSION_BPS` (`src/protocol/lib/types/Constants.sol:15` @
|
|
217
|
+
* a20b5e0d), enforced in `VPKeyRegistryLogic.sol:90-91,449-450` and
|
|
218
|
+
* `ProtocolParams.sol:548`. A library constant with no getter, so it cannot be
|
|
219
|
+
* read on-chain.
|
|
220
|
+
*/
|
|
221
|
+
export declare const MIN_VP_COMMISSION_BPS = 10;
|
|
197
222
|
/**
|
|
198
223
|
* Basis-points denominator for commission math:
|
|
199
224
|
* `floor(value * bps / BPS_DENOMINATOR)`. Numerically equal to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;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AA+B,IAAI,CAAC;AAEjD,sFAAsF;AACtF,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,+EAA+E;AAC/E,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,IAAI,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,IAAI,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,+BAA+B,aAAa,CAAC;AAC1D,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,8BAA8B,aAAa,CAAC;AAEzD,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,0FAA0F;AAC1F,eAAO,MAAM,uCAAuC,IAAI,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,QAAS,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAS,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Buffer } from 'buffer';
|
|
2
2
|
/**
|
|
3
|
-
* Vout of the depositor-claim output in
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Version-invariant: the graph version dispatches only the trailing P2A anchor
|
|
7
|
-
* (absent in v1, 240 sats at vout 2 in v2/v3). Nothing touches vout 1.
|
|
3
|
+
* Vout of the depositor-claim output in the PegIn (btc-vault: vault at 0,
|
|
4
|
+
* depositor claim at 1, the 240-sat P2A anchor at 2).
|
|
8
5
|
*/
|
|
9
6
|
export declare const PEGIN_DEPOSITOR_CLAIM_VOUT = 1;
|
|
10
7
|
/** The single-leaf taptree's spend material for one depositor key. */
|
|
@@ -31,7 +28,7 @@ export interface DepositorClaimDescriptor {
|
|
|
31
28
|
* WASM — the Rust `SingleKeyConnector` has no WASM wrapper, so this is the
|
|
32
29
|
* only derivation available on the JS side.
|
|
33
30
|
*
|
|
34
|
-
* Takes no graph version: the connector
|
|
31
|
+
* Takes no graph version: the connector does not depend on it. A future
|
|
35
32
|
* `VAULT_WASM_COMMIT` bump that changed it would break `assertPeginTxShape` at
|
|
36
33
|
* peg-in build time, which is where that regression should surface.
|
|
37
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositorClaim.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/depositorClaim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAShC
|
|
1
|
+
{"version":3,"file":"depositorClaim.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/depositorClaim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAShC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,sEAAsE;AACtE,MAAM,WAAW,wBAAwB;IACvC,8EAA8E;IAC9E,YAAY,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC5C,eAAe,EAAE,MAAM,GACtB,wBAAwB,CA2C1B;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,eAAe,EAAE,MAAM,GACtB,MAAM,CAER"}
|
|
@@ -63,8 +63,7 @@ export interface PrePeginPsbtResult {
|
|
|
63
63
|
totalOutputValue: bigint;
|
|
64
64
|
/**
|
|
65
65
|
* HTLC output values in satoshis, one per deposit. Each includes
|
|
66
|
-
* peginAmount + depositorClaimValue + p2aAnchorValue + minPeginFee
|
|
67
|
-
* anchor term is 0 for graph versions without a P2A anchor, 240 for v2/v3).
|
|
66
|
+
* peginAmount + depositorClaimValue + p2aAnchorValue (240) + minPeginFee.
|
|
68
67
|
*/
|
|
69
68
|
htlcValues: readonly bigint[];
|
|
70
69
|
/** HTLC output scriptPubKeys (hex encoded), one per deposit */
|
|
@@ -106,9 +105,8 @@ export interface BuildPeginTxParams {
|
|
|
106
105
|
*/
|
|
107
106
|
export interface PeginTxResult {
|
|
108
107
|
/**
|
|
109
|
-
* PegIn transaction hex. 1 input spending the HTLC;
|
|
110
|
-
*
|
|
111
|
-
* claim + P2A anchor at vout 2 (nVersion 3 / TRUC).
|
|
108
|
+
* PegIn transaction hex (nVersion 3 / TRUC). 1 input spending the HTLC;
|
|
109
|
+
* outputs are vault + depositor claim + P2A anchor at vout 2.
|
|
112
110
|
*/
|
|
113
111
|
txHex: string;
|
|
114
112
|
/** PegIn transaction ID */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pegin.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/pegin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,
|
|
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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IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,cAAc,EAAE,cAAc,CAAC;IAC/B,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,kBAAkB,CAAC,CAkE7B;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,MAAM,GAAG,SAAS,CAapB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,aAAa,CAAC,CAsDxB"}
|
|
@@ -49,7 +49,7 @@ export interface PeginParamsCandidate {
|
|
|
49
49
|
/**
|
|
50
50
|
* Stamped tx-graph version (NOT the chain-active one). Carried so the result
|
|
51
51
|
* describes itself, but constant across a candidate space — see the module
|
|
52
|
-
* note on why it
|
|
52
|
+
* note on why it is supplied rather than searched.
|
|
53
53
|
*/
|
|
54
54
|
vaultCoreVersion: number;
|
|
55
55
|
offchainParams: OffchainParamsCandidate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconstructPeginParams.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/recovery/reconstructPeginParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAelE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAkBjC,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,mEAAmE;IACnE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,UAAU,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC5C;;;;;;;;OAQG;IACH,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,4BAA4B;IAC3C,yEAAyE;IACzE,SAAS,EAAE,oBAAoB,CAAC;IAChC;;;;;;;;OAQG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,iFAAiF;IACjF,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD;
|
|
1
|
+
{"version":3,"file":"reconstructPeginParams.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/recovery/reconstructPeginParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAelE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAkBjC,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,mEAAmE;IACnE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,UAAU,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC5C;;;;;;;;OAQG;IACH,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,4BAA4B;IAC3C,yEAAyE;IACzE,SAAS,EAAE,oBAAoB,CAAC;IAChC;;;;;;;;OAQG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,iFAAiF;IACjF,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD;AAgGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,4BAA4B,CAAC,CA+LvC"}
|
package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Watchtower artifact assembly and verification through the real WASM, on a
|
|
3
|
-
* graph-
|
|
4
|
-
* `fixtures/
|
|
3
|
+
* graph-v1 (Vault Core 1) vault generated by btc-vault's own test recipe (see
|
|
4
|
+
* `fixtures/watchtowerArtifacts/README.md`). The other delegated-claim tests
|
|
5
5
|
* mock the WASM boundary, so this is the one place the SDK's reading of an
|
|
6
6
|
* unjoined or joined `babe_sessions` map meets the Rust builder and verifier.
|
|
7
7
|
*/
|
|
@@ -60,7 +60,8 @@ export interface AssembleWatchtowerArtifactsParams {
|
|
|
60
60
|
* version if you build on it.
|
|
61
61
|
*
|
|
62
62
|
* @throws If the vault provider's verifying key is not `trustedVerifyingKeyHex`,
|
|
63
|
-
* if the graph is not
|
|
63
|
+
* if the graph is not `DELEGATED_CLAIM_TX_GRAPH_VERSION`, if a
|
|
64
|
+
* binding check fails, if the
|
|
64
65
|
* wallet returns a signature that does not verify, or if the graph's
|
|
65
66
|
* own presignatures are incomplete.
|
|
66
67
|
* @experimental
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assembleWatchtowerArtifacts.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,iEAAiE;IACjE,SAAS,EAAE,aAAa,CAAC;IACzB,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,MAAM,EAAE,sBAAsB,CAAC;IAC/B,oEAAoE;IACpE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAA0B,CAAC;IAClC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED
|
|
1
|
+
{"version":3,"file":"assembleWatchtowerArtifacts.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,iEAAiE;IACjE,SAAS,EAAE,aAAa,CAAC;IACzB,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,MAAM,EAAE,sBAAsB,CAAC;IAC/B,oEAAoE;IACpE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAA0B,CAAC;IAClC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,iCAAiC,GACxC,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -14,7 +14,7 @@ export interface DeriveClaimerWotsKeypairParams {
|
|
|
14
14
|
htlcVout: number;
|
|
15
15
|
/** JSON-serialized TxGraph the keypair must match. */
|
|
16
16
|
txGraphJson: string;
|
|
17
|
-
/** Graph version. Delegated claim requires
|
|
17
|
+
/** Graph version. Delegated claim requires `DELEGATED_CLAIM_TX_GRAPH_VERSION`. */
|
|
18
18
|
txGraphVersion: number;
|
|
19
19
|
/**
|
|
20
20
|
* `depositorWotsPkHash` as the vault records it on chain, `0x`-prefixed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deriveClaimerWotsKeypair.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,gFAAgF;IAChF,SAAS,EAAE,aAAa,CAAC;IACzB,uEAAuE;IACvE,YAAY,EAAE,iBAAiB,CAAC;IAChC,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"deriveClaimerWotsKeypair.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,gFAAgF;IAChF,SAAS,EAAE,aAAa,CAAC;IACzB,uEAAuE;IACvE,YAAY,EAAE,iBAAiB,CAAC;IAChC,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;;;OAOG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,8BAA8B,GACrC,OAAO,CAAC,kBAAkB,CAAC,CA4B7B"}
|
|
@@ -33,7 +33,8 @@ export declare function buildBoundPsbtSet(txGraphVersion: number, graphJson: str
|
|
|
33
33
|
* `depositorPublicKey` is not the vault's registered depositor key,
|
|
34
34
|
* the registered payout script is not derived from it,
|
|
35
35
|
* the graph version and the vault context's vault core version
|
|
36
|
-
* disagree, the graph is not
|
|
36
|
+
* disagree, the graph is not `DELEGATED_CLAIM_TX_GRAPH_VERSION`, any
|
|
37
|
+
* binding check fails, or
|
|
37
38
|
* the Payout's CSV sequences, declared prevout amounts or implicit fee
|
|
38
39
|
* do not match the vault's stamped timelocks, its PegIn and Assert
|
|
39
40
|
* outputs, and the fee band.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planDelegatedClaimSigning.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/planDelegatedClaimSigning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAkBrE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAEhC,MAAM,SAAS,CAAC;AAQjB,oBAAoB;AACpB,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,MAAM,EAAE,sBAAsB,CAAC;IAC/B,oEAAoE;IACpE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAA0B,CAAC;IAClC,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,0BAA0B,EACjC,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"planDelegatedClaimSigning.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/planDelegatedClaimSigning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAkBrE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAEhC,MAAM,SAAS,CAAC;AAQjB,oBAAoB;AACpB,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,MAAM,EAAE,sBAAsB,CAAC;IAC/B,oEAAoE;IACpE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAA0B,CAAC;IAClC,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,0BAA0B,EACjC,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAoHhC;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,yBAAyB,CAAC,CA6BpC"}
|
|
@@ -26,7 +26,7 @@ export interface DelegatedClaimVaultRead {
|
|
|
26
26
|
context: DelegatedClaimVaultContext;
|
|
27
27
|
/** The target's registry record, as read here. */
|
|
28
28
|
vault: VaultData;
|
|
29
|
-
/** The target's own `
|
|
29
|
+
/** The target's own `PegInSubmitted` log. */
|
|
30
30
|
registrationRecord: PeginRegistrationRecord;
|
|
31
31
|
/** Every log in the target's registration block, the batch's siblings among them. */
|
|
32
32
|
registrationRecords: readonly PeginRegistrationRecord[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readDelegatedClaimVaultContext.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAiBzC,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAG1D,oBAAoB;AACpB,MAAM,WAAW,0BACf,SAAQ,4BAA4B;IACpC,cAAc,EAAE,IAAI,CAClB,mBAAmB,EACjB,cAAc,GACd,mBAAmB,GACnB,kCAAkC,GAClC,+BAA+B,GAC/B,qBAAqB,CACxB,CAAC;IACF,oBAAoB,EAAE,IAAI,CACxB,oBAAoB,EACpB,4BAA4B,CAC7B,CAAC;CACH;AAED,oBAAoB;AACpB,MAAM,WAAW,oCAAoC;IACnD,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,0BAA0B,CAAC;IACpC,kDAAkD;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"readDelegatedClaimVaultContext.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAiBzC,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAG1D,oBAAoB;AACpB,MAAM,WAAW,0BACf,SAAQ,4BAA4B;IACpC,cAAc,EAAE,IAAI,CAClB,mBAAmB,EACjB,cAAc,GACd,mBAAmB,GACnB,kCAAkC,GAClC,+BAA+B,GAC/B,qBAAqB,CACxB,CAAC;IACF,oBAAoB,EAAE,IAAI,CACxB,oBAAoB,EACpB,4BAA4B,CAC7B,CAAC;CACH;AAED,oBAAoB;AACpB,MAAM,WAAW,oCAAoC;IACnD,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,0BAA0B,CAAC;IACpC,kDAAkD;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,qFAAqF;IACrF,mBAAmB,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACxD,sFAAsF;IACtF,eAAe,EAAE,iBAAiB,CAAC;IACnC,wEAAwE;IACxE,cAAc,EAAE,uBAAuB,CAAC;IACxC,0FAA0F;IAC1F,yBAAyB,EAAE,GAAG,CAAC;IAC/B,mBAAmB,EAAE,GAAG,CAAC;IACzB,cAAc,EAAE,GAAG,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,GAAG,CAAC;IACjB,2EAA2E;IAC3E,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,oCAAoC,GAC3C,OAAO,CAAC,uBAAuB,CAAC,CA8PlC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { WatchtowerArtifactsSummary } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* Graph version the delegated-claim artifacts format exists for
|
|
4
|
-
*
|
|
3
|
+
* Graph version the delegated-claim artifacts format exists for: post-reset
|
|
4
|
+
* Vault Core 1, the only graph the bundled WASM builds.
|
|
5
5
|
*
|
|
6
6
|
* @experimental
|
|
7
7
|
*/
|
|
8
|
-
export declare const DELEGATED_CLAIM_TX_GRAPH_VERSION =
|
|
8
|
+
export declare const DELEGATED_CLAIM_TX_GRAPH_VERSION = 1;
|
|
9
9
|
/**
|
|
10
10
|
* Thrown when an artifacts file does not describe the vault being claimed.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readWatchtowerArtifacts.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/readWatchtowerArtifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAqB,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAQ7E;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD;;;;GAIG;AACH,qBAAa,2BAA4B,SAAQ,KAAK;IAElD,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM;gBADrB,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM;CAQjC;
|
|
1
|
+
{"version":3,"file":"readWatchtowerArtifacts.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/readWatchtowerArtifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAqB,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAQ7E;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD;;;;GAIG;AACH,qBAAa,2BAA4B,SAAQ,KAAK;IAElD,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM;gBADrB,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM;CAQjC;AAgDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,GACpB,0BAA0B,CA2C5B;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;;;;;OAQG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;;OAKG;IACH,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,0BAA0B,CAAC,CAqFrC"}
|
|
@@ -8,11 +8,10 @@ import { OnChainBtcPubkey } from '../../clients/eth/types';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface WatchtowerArtifactsSummary {
|
|
10
10
|
/**
|
|
11
|
-
* Vault Core version the file records
|
|
12
|
-
*
|
|
13
|
-
* value differs from the version it verifies under.
|
|
11
|
+
* Vault Core version the file records. `assertArtifactsUsableForVault`
|
|
12
|
+
* refuses a file whose value differs from the version it verifies under.
|
|
14
13
|
*/
|
|
15
|
-
vaultCoreVersion
|
|
14
|
+
vaultCoreVersion: number;
|
|
16
15
|
/** 32-byte on-chain vault id, as the file records it. */
|
|
17
16
|
vaultId: string;
|
|
18
17
|
/** Txid of the fully signed Claim transaction the file carries. */
|
|
@@ -45,7 +44,7 @@ export interface WatchtowerArtifactsSummary {
|
|
|
45
44
|
/**
|
|
46
45
|
* Whether the file carries BaBe sessions.
|
|
47
46
|
*
|
|
48
|
-
* An unjoined file (`babe_sessions` empty
|
|
47
|
+
* An unjoined file (`babe_sessions` empty) is the normal output of
|
|
49
48
|
* a browser assembly, and it cannot defend a claim. Claim, Assert and Payout
|
|
50
49
|
* finalize without the sessions, but answering a `ChallengeAssert` needs
|
|
51
50
|
* them: the watchtower decrypts the hashlock preimage from the joined
|
|
@@ -126,7 +125,7 @@ export interface DelegatedClaimVaultContext {
|
|
|
126
125
|
vaultKeeperBtcPubkeys: string[];
|
|
127
126
|
/** Universal challengers registered on chain. */
|
|
128
127
|
universalChallengerBtcPubkeys: string[];
|
|
129
|
-
/** Graph (vault core) version of the vault. Delegated claim requires
|
|
128
|
+
/** Graph (vault core) version of the vault. Delegated claim requires `DELEGATED_CLAIM_TX_GRAPH_VERSION`. */
|
|
130
129
|
txGraphVersion: number;
|
|
131
130
|
proverCircuitVersion: number;
|
|
132
131
|
/**
|
|
@@ -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
|
|
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,CA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MAAM,MAAM,yBAAyB,GACjC,OAAO,GACP,QAAQ,GACR,eAAe,GACf,iBAAiB,GACjB,mBAAmB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,wEAAwE;IACxE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC;;;;;;;;OAQG;IACH,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC;IAC3C,8EAA8E;IAC9E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,4BAA4B,EAAE,CAAC;CAC5D;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Depositor-graph presigning through the real WASM on a
|
|
3
|
-
* graph built by btc-vault's own code (the watchtower-artifacts
|
|
4
|
-
* `delegated-claim/__tests__/fixtures/
|
|
2
|
+
* Depositor-graph presigning through the real WASM on a Vault Core 1
|
|
3
|
+
* depositor graph built by btc-vault's own code (the watchtower-artifacts
|
|
4
|
+
* fixture, see `delegated-claim/__tests__/fixtures/watchtowerArtifacts/README.md`).
|
|
5
5
|
*
|
|
6
6
|
* The other signDepositorGraph tests mock the primitives; this file proves an
|
|
7
7
|
* honest btc-vault graph clears every check and reaches the wallet, and that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAE1B,wBAAwB,EACzB,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAE1B,wBAAwB,EACzB,MAAM,oCAAoC,CAAC;AAoJ5C,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,UAAU,EAAE,wBAAwB,CAAC;IACrC,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,QAAQ,EAAE,KAAK,CAAC;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3D;AAED,0EAA0E;AAC1E,MAAM,WAAW,8BAA8B;IAC7C,6EAA6E;IAC7E,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kDAAkD;IAClD,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,sCAAsC,CAC1D,cAAc,EAAE,0BAA0B,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+1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-Dopxq_Jv.cjs"),t=require("../../../buildAndBroadcastReclaim-CVmG3ldA.cjs"),i=require("../wasm/index.cjs"),e=require("../../../peginState-IyE22wWh.cjs"),a=require("../../../state-C4WoNCy1.cjs");exports.computeHashlock=r.computeHashlock;exports.validateSecretAgainstHashlock=r.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.AssertBindingError=t.AssertBindingError;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.DelegatedClaimSigningIncompleteError=t.DelegatedClaimSigningIncompleteError;exports.GraphFingerprintError=t.GraphFingerprintError;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;exports.PayoutInputLeafError=t.PayoutInputLeafError;exports.PeginRegistrationMissingError=t.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=t.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=t.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=t.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=t.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=t.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.ReclaimUneconomicalError=t.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.SigningPlanMismatchError=t.SigningPlanMismatchError;exports.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assembleWatchtowerArtifactsFromSignatures=t.assembleWatchtowerArtifactsFromSignatures;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertAssertBindsClaimAndPayout=t.assertAssertBindsClaimAndPayout;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertReturnedGraphMatchesFingerprint=t.assertReturnedGraphMatchesFingerprint;exports.assertTermsMatchVault=t.assertTermsMatchVault;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.claimExpiredVault=t.claimExpiredVault;exports.copyAssertConnectorLeaf=t.copyAssertConnectorLeaf;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.fingerprintReturnedGraph=t.fingerprintReturnedGraph;exports.isApplicationEntryPointMismatchError=t.isApplicationEntryPointMismatchError;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isHintAccepted=t.isHintAccepted;exports.isParticipantKeyDriftError=t.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=t.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=t.isPeginRegistrationNotFinalError;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.planDelegatedClaimSigning=t.planDelegatedClaimSigning;exports.readDelegatedClaimVaultContext=t.readDelegatedClaimVaultContext;exports.readStampedParticipantKeys=t.readStampedParticipantKeys;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDelegatedClaimPlan=t.signDelegatedClaimPlan;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.summarizeWatchtowerArtifacts=t.summarizeWatchtowerArtifacts;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=t.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=t.waitForPeginRegistrationDepth;exports.waitForPeginStatus=t.waitForPeginStatus;exports.attachFinalizedAssert=i.attachFinalizedAssert;exports.finalizePayout=i.finalizePayout;exports.finalizeWronglyChallenged=i.finalizeWronglyChallenged;exports.pinPegoutProof=i.pinPegoutProof;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.activationDeadlineBlocksRemaining=e.activationDeadlineBlocksRemaining;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;exports.ClaimerPegoutStatusValue=a.ClaimerPegoutStatusValue;exports.isPegoutTerminalStatus=a.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=a.isRecognizedPegoutStatus;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, v as e } from "../../../PayoutManager-
|
|
2
|
-
import { J as r, l as n, A as o, a8 as l, C as c, D as E, n as g, G as A, u as d, W as u, P as R, j as m, v as p, w as P, ah as _, ai as C, aj as M, ak as h, ab as F, ac as S, ad as V, ae as f, af as y, Z as N, S as D, V as I, a as v, b as T, d as O, e as K, m as b, f as B, g as U, t as H, i as L, B as x, o as G, a1 as W, ag as X, a9 as w, c as k, k as z, h as j, aa as Z, E as q, K as J, M as Q, a2 as Y, X as $, x as aa, y as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, q as ga, H as Aa, I as da, s as ua, N as Ra, O as ma, L as pa, Q as Pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Fa, z as Sa, a0 as Va } from "../../../buildAndBroadcastReclaim-
|
|
1
|
+
import { c as s, v as e } from "../../../PayoutManager-BUWP-H-q.js";
|
|
2
|
+
import { J as r, l as n, A as o, a8 as l, C as c, D as E, n as g, G as A, u as d, W as u, P as R, j as m, v as p, w as P, ah as _, ai as C, aj as M, ak as h, ab as F, ac as S, ad as V, ae as f, af as y, Z as N, S as D, V as I, a as v, b as T, d as O, e as K, m as b, f as B, g as U, t as H, i as L, B as x, o as G, a1 as W, ag as X, a9 as w, c as k, k as z, h as j, aa as Z, E as q, K as J, M as Q, a2 as Y, X as $, x as aa, y as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, q as ga, H as Aa, I as da, s as ua, N as Ra, O as ma, L as pa, Q as Pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Fa, z as Sa, a0 as Va } from "../../../buildAndBroadcastReclaim-XRWuJWVL.js";
|
|
3
3
|
import { attachFinalizedAssert as ya, finalizePayout as Na, finalizeWronglyChallenged as Da, pinPegoutProof as Ia } from "../wasm/index.js";
|
|
4
4
|
import { C as Ta, P as Oa, a as Ka, c as ba, g as Ba, i as Ua } from "../../../peginState-CIibG9S_.js";
|
|
5
5
|
import { C as La, g as xa, f as Ga } from "../../../state-CFn1rT74.js";
|