@babylonlabs-io/ts-sdk 3.1.1 → 3.2.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-BH2-LHxN.cjs +2 -0
- package/dist/BTCVaultRegistry.abi-BH2-LHxN.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-DBW0dyqH.js → BTCVaultRegistry.abi-BzNTa_EU.js} +19 -52
- package/dist/BTCVaultRegistry.abi-BzNTa_EU.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-Btg0nBz1.js +262 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-Btg0nBz1.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CReWFJdu.cjs +2 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CReWFJdu.cjs.map +1 -0
- package/dist/{PeginManager-8EUlm10F.cjs → PeginManager-BHplS4dM.cjs} +2 -2
- package/dist/{PeginManager-8EUlm10F.cjs.map → PeginManager-BHplS4dM.cjs.map} +1 -1
- package/dist/{PeginManager-QRwMUxZg.js → PeginManager-DcwGom01.js} +2 -2
- package/dist/{PeginManager-QRwMUxZg.js.map → PeginManager-DcwGom01.js.map} +1 -1
- package/dist/VaultErrors.abi-Boz4w97c.js +5 -0
- package/dist/VaultErrors.abi-Boz4w97c.js.map +1 -0
- package/dist/VaultErrors.abi-DQ18kM0L.cjs +2 -0
- package/dist/VaultErrors.abi-DQ18kM0L.cjs.map +1 -0
- package/dist/buildAndBroadcastReclaim-C7bq5wNM.cjs +2 -0
- package/dist/buildAndBroadcastReclaim-C7bq5wNM.cjs.map +1 -0
- package/dist/{buildAndBroadcastReclaim-DoprHX7o.js → buildAndBroadcastReclaim-CcQ0b1be.js} +466 -456
- package/dist/buildAndBroadcastReclaim-CcQ0b1be.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +232 -229
- package/dist/index.js.map +1 -1
- package/dist/pegin-registration-client-BogzOk8B.cjs +2 -0
- package/dist/pegin-registration-client-BogzOk8B.cjs.map +1 -0
- package/dist/{pegin-registration-client-BWMwxtr8.js → pegin-registration-client-DvyrUNku.js} +45 -44
- package/dist/pegin-registration-client-DvyrUNku.js.map +1 -0
- package/dist/peginState-CIibG9S_.js +75 -0
- package/dist/peginState-CIibG9S_.js.map +1 -0
- package/dist/peginState-IyE22wWh.cjs +2 -0
- package/dist/peginState-IyE22wWh.cjs.map +1 -0
- package/dist/{reservation-DOAHVT3B.js → reservation-BZQABu4g.js} +2 -2
- package/dist/{reservation-DOAHVT3B.js.map → reservation-BZQABu4g.js.map} +1 -1
- package/dist/{reservation-ECxjZi5t.cjs → reservation-CA5knoQ0.cjs} +2 -2
- package/dist/{reservation-ECxjZi5t.cjs.map → reservation-CA5knoQ0.cjs.map} +1 -1
- package/dist/{signer-set-reader-C6g47hdk.cjs → signer-set-reader-D-CyIYR5.cjs} +2 -2
- package/dist/{signer-set-reader-C6g47hdk.cjs.map → signer-set-reader-D-CyIYR5.cjs.map} +1 -1
- package/dist/{signer-set-reader-C1VmC9_U.js → signer-set-reader-DFF9MgQN.js} +2 -2
- package/dist/{signer-set-reader-C1VmC9_U.js.map → signer-set-reader-DFF9MgQN.js.map} +1 -1
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.js +2 -2
- package/dist/tbv/core/clients/eth/types.d.ts +8 -0
- package/dist/tbv/core/clients/eth/types.d.ts.map +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 +2 -2
- package/dist/tbv/core/contracts/__tests__/vaultErrors.abi.test.d.ts +2 -0
- package/dist/tbv/core/contracts/__tests__/vaultErrors.abi.test.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +14 -40
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/VaultErrors.abi.d.ts +3 -0
- package/dist/tbv/core/contracts/abis/VaultErrors.abi.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/vaultErrors.abi.json.d.ts +4 -0
- package/dist/tbv/core/contracts/errors.d.ts +7 -2
- package/dist/tbv/core/contracts/errors.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.d.ts +2 -1
- package/dist/tbv/core/contracts/index.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.js +13 -10
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +225 -222
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +1 -1
- package/dist/tbv/core/services/activation/activateVault.d.ts +50 -0
- package/dist/tbv/core/services/activation/activateVault.d.ts.map +1 -1
- package/dist/tbv/core/services/activation/index.d.ts +1 -1
- package/dist/tbv/core/services/activation/index.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts +9 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +5 -7
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/index.d.ts +3 -4
- package/dist/tbv/core/services/delegated-claim/index.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +14 -8
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/types.d.ts +32 -19
- package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/peginState.d.ts +20 -1
- package/dist/tbv/core/services/deposit/peginState.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +58 -58
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.js +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +225 -222
- package/dist/tbv/index.js.map +1 -1
- package/dist/tbv/integrations/aave/clients/abis/AaveIntegrationAdapter.abi.json.d.ts +7 -701
- package/dist/tbv/integrations/aave/clients/query.d.ts +2 -2
- package/dist/tbv/integrations/aave/index.cjs +1 -1
- package/dist/tbv/integrations/aave/index.cjs.map +1 -1
- package/dist/tbv/integrations/aave/index.js +119 -119
- package/dist/tbv/integrations/aave/index.js.map +1 -1
- package/dist/{toRefundInputs-BZXvuOMY.cjs → toRefundInputs-8DgBT_Bg.cjs} +2 -2
- package/dist/{toRefundInputs-BZXvuOMY.cjs.map → toRefundInputs-8DgBT_Bg.cjs.map} +1 -1
- package/dist/{toRefundInputs-dKDSvpVI.js → toRefundInputs-CCMNAoRx.js} +2 -2
- package/dist/{toRefundInputs-dKDSvpVI.js.map → toRefundInputs-CCMNAoRx.js.map} +1 -1
- package/dist/types-Bda75Od0.cjs.map +1 -1
- package/dist/types-C5jj3Cc-.js.map +1 -1
- package/package.json +3 -3
- package/dist/BTCVaultRegistry.abi-CohlJX7c.cjs +0 -2
- package/dist/BTCVaultRegistry.abi-CohlJX7c.cjs.map +0 -1
- package/dist/BTCVaultRegistry.abi-DBW0dyqH.js.map +0 -1
- package/dist/BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js +0 -266
- package/dist/BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js.map +0 -1
- package/dist/BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs +0 -2
- package/dist/BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-DjX7wVb2.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-DjX7wVb2.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-DoprHX7o.js.map +0 -1
- package/dist/pegin-registration-client-BWMwxtr8.js.map +0 -1
- package/dist/pegin-registration-client-D4EguWaz.cjs +0 -2
- package/dist/pegin-registration-client-D4EguWaz.cjs.map +0 -1
- package/dist/peginState-BU2ONFXF.js +0 -68
- package/dist/peginState-BU2ONFXF.js.map +0 -1
- package/dist/peginState-DUv10EJR.cjs +0 -2
- package/dist/peginState-DUv10EJR.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activateVault.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/activation/activateVault.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AA2CpD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,IAAI,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,CACzF,IAAI,EAAE,oBAAoB,KACvB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB;IAEzD,wDAAwD;IACxD,uBAAuB,EAAE,OAAO,CAAC;IACjC,uCAAuC;IACvC,OAAO,EAAE,GAAG,CAAC;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;;;OAKG;IACH,kBAAkB,EAAE,GAAG,CAAC;IACxB,sEAAsE;IACtE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"activateVault.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/activation/activateVault.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AA2CpD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,IAAI,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,CACzF,IAAI,EAAE,oBAAoB,KACvB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB;IAEzD,wDAAwD;IACxD,uBAAuB,EAAE,OAAO,CAAC;IACjC,uCAAuC;IACvC,OAAO,EAAE,GAAG,CAAC;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;;;OAKG;IACH,kBAAkB,EAAE,GAAG,CAAC;IACxB,sEAAsE;IACtE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAoCD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,aAAa,CACjC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EACzD,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CA2B1C;AAED,MAAM,WAAW,2BAA2B,CAC1C,CAAC,SAAS,sBAAsB,GAAG,sBAAsB;IAEzD,wDAAwD;IACxD,uBAAuB,EAAE,OAAO,CAAC;IACjC,uCAAuC;IACvC,OAAO,EAAE,GAAG,CAAC;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,sEAAsE;IACtE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,sBAAsB,CAC1C,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EACzD,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAmBnD;AAED,MAAM,WAAW,sBAAsB,CACrC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB;IAEzD,wDAAwD;IACxD,uBAAuB,EAAE,OAAO,CAAC;IACjC,uCAAuC;IACvC,OAAO,EAAE,GAAG,CAAC;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd,sEAAsE;IACtE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,iBAAiB,CACrC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EACzD,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAuB9C"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module services/activation
|
|
5
5
|
*/
|
|
6
|
-
export { activateVault, activateVaultAndRedeem, type ActivateVaultAndRedeemInput, type ActivateVaultInput, type EthContractWriteCall, type EthContractWriteResult, type EthContractWriter, } from './activateVault';
|
|
6
|
+
export { activateVault, activateVaultAndRedeem, type ActivateVaultAndRedeemInput, type ActivateVaultInput, claimExpiredVault, type ClaimExpiredVaultInput, type EthContractWriteCall, type EthContractWriteResult, type EthContractWriter, } from './activateVault';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/activation/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/activation/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAC"}
|
package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Watchtower artifact assembly and verification through the real WASM, on a
|
|
3
|
+
* graph-v3 vault generated by btc-vault's own test recipe (see
|
|
4
|
+
* `fixtures/watchtowerArtifactsV3/README.md`). The other delegated-claim tests
|
|
5
|
+
* mock the WASM boundary, so this is the one place the SDK's reading of an
|
|
6
|
+
* unjoined or joined `babe_sessions` map meets the Rust builder and verifier.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=realWasmWatchtowerArtifacts.test.d.ts.map
|
package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realWasmWatchtowerArtifacts.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -24,13 +24,11 @@ export interface AssembleWatchtowerArtifactsParams {
|
|
|
24
24
|
* Per-challenger BaBe sessions as `{"<pk>": {"decryptor_artifacts_hex":
|
|
25
25
|
* "..."}}`, passed through into the file unchanged.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* and joins the real sessions into the file downstream —
|
|
33
|
-
* `assertArtifactsUsableForVault` refuses a file that still carries one.
|
|
27
|
+
* Omit it to build an unjoined file: real sessions run to hundreds of
|
|
28
|
+
* megabytes per challenger, too large for a browser tab. An unjoined file
|
|
29
|
+
* cannot answer a challenge, so join the sessions in before starting a
|
|
30
|
+
* claim from it (see {@link BabeSessionsState}). A map that is passed must
|
|
31
|
+
* cover exactly the graph's challengers (btc-vault `validate_babe_sessions`).
|
|
34
32
|
*/
|
|
35
33
|
babeSessionsJson?: string;
|
|
36
34
|
/**
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,iCAAiC,GACxC,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Produces and checks the two files a claim runs from: `artifacts.json` and
|
|
13
13
|
* `wots_keypair.json`. `vaultd vp wt` reads the same pair, so either can drive
|
|
14
|
-
* the claim.
|
|
14
|
+
* the claim once the BaBe sessions are joined into `artifacts.json`.
|
|
15
15
|
*
|
|
16
16
|
* Signing is split into plan → sign → assemble so a hardware wallet can sign
|
|
17
17
|
* the set as ordered device ceremonies (Assert and the depositor Payout under
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* and nothing here watches the chain — a ChallengeAssert must be answered
|
|
34
34
|
* inside `timelock_challenge_assert`, and noticing one is the caller's job.
|
|
35
35
|
*
|
|
36
|
-
* @see btc-vault docs/delegated_claim.md
|
|
36
|
+
* @see btc-vault docs/operations/delegated_claim.md
|
|
37
37
|
* @module services/delegated-claim
|
|
38
38
|
*/
|
|
39
39
|
export { assembleWatchtowerArtifacts, type AssembleWatchtowerArtifactsParams, } from './assembleWatchtowerArtifacts';
|
|
@@ -47,8 +47,7 @@ export { planDelegatedClaimSigning, type PlanDelegatedClaimSigningParams, } from
|
|
|
47
47
|
export { readDelegatedClaimVaultContext, type DelegatedClaimVaultRead, type DelegatedClaimVaultReaders, type ReadDelegatedClaimVaultContextParams, } from './readDelegatedClaimVaultContext';
|
|
48
48
|
export { ArtifactsVaultMismatchError, DELEGATED_CLAIM_TX_GRAPH_VERSION, assertArtifactsUsableForVault, summarizeWatchtowerArtifacts, type AssertArtifactsUsableParams, } from './readWatchtowerArtifacts';
|
|
49
49
|
export { DelegatedClaimSigningIncompleteError, assertTermsMatchVault, signDelegatedClaimPlan, type DelegatedClaimPsbtSigner, type SignDelegatedClaimPlanOptions, } from './signDelegatedClaimPlan';
|
|
50
|
-
export {
|
|
51
|
-
export type { ClaimerArtifactsSource, DelegatedClaimSignatures, DelegatedClaimSigningKind, DelegatedClaimSigningPlan, DelegatedClaimSigningRequest, DelegatedClaimVaultContext, WatchtowerArtifactsSummary, } from './types';
|
|
50
|
+
export type { BabeSessionsState, ClaimerArtifactsSource, DelegatedClaimSignatures, DelegatedClaimSigningKind, DelegatedClaimSigningPlan, DelegatedClaimSigningRequest, DelegatedClaimVaultContext, WatchtowerArtifactsSummary, } from './types';
|
|
52
51
|
export { VaultIdBindingError, assertClaimSpendsVault, type AssertClaimSpendsVaultParams, } from './vaultIdBinding';
|
|
53
52
|
/**
|
|
54
53
|
* Claim-time execution, artifacts in and artifacts out.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,yCAAyC,EACzC,KAAK,4BAA4B,GAClC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,KAAK,qCAAqC,GAC3C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,KAAK,qCAAqC,GAC3C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,GACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAChC,KAAK,sCAAsC,GAC5C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,8BAA8B,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,GAC1C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,6BAA6B,EAC7B,4BAA4B,EAC5B,KAAK,2BAA2B,GACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,oCAAoC,EACpC,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,MAAM,0BAA0B,CAAC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,yCAAyC,EACzC,KAAK,4BAA4B,GAClC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,KAAK,qCAAqC,GAC3C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,KAAK,qCAAqC,GAC3C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,GACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAChC,KAAK,sCAAsC,GAC5C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,8BAA8B,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,GAC1C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,6BAA6B,EAC7B,4BAA4B,EAC5B,KAAK,2BAA2B,GACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,oCAAoC,EACpC,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,4BAA4B,GAClC,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,yBAAyB,EACzB,cAAc,GACf,MAAM,YAAY,CAAC"}
|
|
@@ -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,KAAK,
|
|
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,CAmHhC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,yBAAyB,CAAC,CA6BpC"}
|
|
@@ -51,15 +51,15 @@ export interface AssertArtifactsUsableParams {
|
|
|
51
51
|
* The Groth16 verifying key for the vault's `proverCircuitVersion`, from
|
|
52
52
|
* the `vault-provers` release or the prover service — never from the vault
|
|
53
53
|
* provider or anything it serves (btc-vault `delegated_claim.rs:405-414`
|
|
54
|
-
* @
|
|
54
|
+
* @ b534ff9e). A file carrying a different key proves nothing at Assert.
|
|
55
55
|
*/
|
|
56
56
|
trustedVerifyingKeyHex: string;
|
|
57
57
|
/**
|
|
58
58
|
* The vault's stamped `proverCircuitVersion`, from
|
|
59
59
|
* `DelegatedClaimVaultContext`. btc-vault's verifier never reads the
|
|
60
|
-
* file's own `prover_circuit_version` — `delegated_claim.rs:
|
|
60
|
+
* file's own `prover_circuit_version` — `delegated_claim.rs:876` @ b534ff9e
|
|
61
61
|
* only writes it — while `vaultd`'s
|
|
62
|
-
* `crates/vaultd/src/cli/command/watchtower/start_claim.rs:
|
|
62
|
+
* `crates/vaultd/src/cli/command/watchtower/start_claim.rs:348-352` hands
|
|
63
63
|
* the file's key and version to the prover together, so a wrong version
|
|
64
64
|
* fails there, before Assert.
|
|
65
65
|
*/
|
|
@@ -68,7 +68,7 @@ export interface AssertArtifactsUsableParams {
|
|
|
68
68
|
* The block of the vault's finalized `VaultClaimableBy` event, from
|
|
69
69
|
* `DelegatedClaimVaultContext.claimableEventBlockNumber`. Unverified by
|
|
70
70
|
* btc-vault like the circuit version, and handed to the prover beside it
|
|
71
|
-
* (`start_claim.rs:
|
|
71
|
+
* (`start_claim.rs:349,352` @ b534ff9e), so a wrong block fails there too.
|
|
72
72
|
*/
|
|
73
73
|
expectedClaimableEventBlockNumber: bigint;
|
|
74
74
|
/**
|
|
@@ -81,6 +81,10 @@ export interface AssertArtifactsUsableParams {
|
|
|
81
81
|
/**
|
|
82
82
|
* Verifies an artifacts file and confirms it is the one for this vault.
|
|
83
83
|
*
|
|
84
|
+
* An unjoined file passes, with `babeSessions.joined` false. It cannot
|
|
85
|
+
* answer a challenge, so a caller must not start a claim from it by any
|
|
86
|
+
* route until the sessions are joined in (see {@link BabeSessionsState}).
|
|
87
|
+
*
|
|
84
88
|
* Experimental: this API can change in a minor release. Pin the SDK
|
|
85
89
|
* version if you build on it.
|
|
86
90
|
*
|
|
@@ -89,10 +93,12 @@ export interface AssertArtifactsUsableParams {
|
|
|
89
93
|
* belongs to another vault whatever the file says, a plain error when
|
|
90
94
|
* its `prover_circuit_version` is not `expectedProverCircuitVersion`,
|
|
91
95
|
* its `claimable_event_block_number` is not
|
|
92
|
-
* `expectedClaimableEventBlockNumber`,
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* bundled signature does not hold
|
|
96
|
+
* `expectedClaimableEventBlockNumber`, its `verifying_key` is not
|
|
97
|
+
* `trustedVerifyingKeyHex`, or a `babe_sessions` entry is not
|
|
98
|
+
* non-empty hex, or a
|
|
99
|
+
* verification error when any bundled signature does not hold
|
|
100
|
+
* against that graph or a non-empty `babe_sessions` does not cover
|
|
101
|
+
* exactly its challengers.
|
|
96
102
|
* @experimental
|
|
97
103
|
*/
|
|
98
104
|
export declare function assertArtifactsUsableForVault(params: AssertArtifactsUsableParams): Promise<WatchtowerArtifactsSummary>;
|
|
@@ -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,
|
|
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;AA+CD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,GACpB,0BAA0B,CA6C5B;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,CAwFrC"}
|
|
@@ -36,32 +36,44 @@ export interface WatchtowerArtifactsSummary {
|
|
|
36
36
|
claimableEventBlockNumber: bigint;
|
|
37
37
|
/**
|
|
38
38
|
* Groth16 verifying key the file carries (`verifying_key`, btc-vault
|
|
39
|
-
* `delegated_claim.rs:
|
|
39
|
+
* `delegated_claim.rs:523` @ b534ff9e). Compared with the caller's trusted
|
|
40
40
|
* key by `assertArtifactsUsableForVault`.
|
|
41
41
|
*/
|
|
42
42
|
verifyingKeyHex: string;
|
|
43
|
-
|
|
44
|
-
babeSessionChallengerPubkeys: string[];
|
|
45
|
-
/**
|
|
46
|
-
* Challengers whose session is still
|
|
47
|
-
* {@link BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX}. Such a file verifies but
|
|
48
|
-
* cannot answer that challenger, so `assertArtifactsUsableForVault` refuses
|
|
49
|
-
* it.
|
|
50
|
-
*/
|
|
51
|
-
babeSessionPlaceholderChallengerPubkeys: string[];
|
|
43
|
+
babeSessions: BabeSessionsState;
|
|
52
44
|
}
|
|
53
45
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
46
|
+
* Whether the file carries BaBe sessions.
|
|
47
|
+
*
|
|
48
|
+
* An unjoined file (`babe_sessions` empty or absent) is the normal output of
|
|
49
|
+
* a browser assembly, and it cannot defend a claim. Claim, Assert and Payout
|
|
50
|
+
* finalize without the sessions, but answering a `ChallengeAssert` needs
|
|
51
|
+
* them: the watchtower decrypts the hashlock preimage from the joined
|
|
52
|
+
* session (`broadcast_wrongly_challenged.rs:152-183` @ b534ff9e), and an
|
|
53
|
+
* unanswered challenge lets the challenger's NoPayout spend Assert:0, which
|
|
54
|
+
* blocks the depositor's Payout (`nopayout.rs:1-21` @ b534ff9e). Join
|
|
55
|
+
* the sessions in before starting a claim by any route; `vaultd vp wt
|
|
56
|
+
* start-claim` enforces this, a browser-driven claim does not.
|
|
56
57
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
58
|
+
* `joined: true` means a session is present for each listed key, as
|
|
59
|
+
* non-empty hex. The keys are returned as the file writes them. Once
|
|
60
|
+
* `assertArtifactsUsableForVault` resolves, each parses to a graph challenger
|
|
61
|
+
* and every challenger is covered (`validate_babe_sessions`,
|
|
62
|
+
* `delegated_claim.rs:455-503` @ b534ff9e), but the parse accepts either hex
|
|
63
|
+
* case, so a key need not string-equal the graph's lowercase key and one
|
|
64
|
+
* challenger can appear twice. Neither check decodes a session: only the
|
|
65
|
+
* watchtower does, so a present session is not proven usable.
|
|
61
66
|
*
|
|
62
67
|
* @experimental
|
|
63
68
|
*/
|
|
64
|
-
export
|
|
69
|
+
export type BabeSessionsState = {
|
|
70
|
+
joined: false;
|
|
71
|
+
} | {
|
|
72
|
+
joined: true;
|
|
73
|
+
challengerPubkeys: string[];
|
|
74
|
+
};
|
|
75
|
+
/** The `babe_sessions` value of an unjoined file. */
|
|
76
|
+
export declare const UNJOINED_BABE_SESSIONS_JSON = "{}";
|
|
65
77
|
/**
|
|
66
78
|
* Inputs the vault provider supplies for artifact assembly.
|
|
67
79
|
*
|
|
@@ -187,14 +199,15 @@ export interface DelegatedClaimSigningPlan {
|
|
|
187
199
|
* The Groth16 verifying key for {@link DelegatedClaimVaultContext.proverCircuitVersion},
|
|
188
200
|
* obtained from the `vault-provers` release or the prover service — never
|
|
189
201
|
* from the vault provider or anything it serves. btc-vault
|
|
190
|
-
* `delegated_claim.rs:405-414` @
|
|
202
|
+
* `delegated_claim.rs:405-414` @ b534ff9e: the builder cannot tell a
|
|
191
203
|
* substituted key from the real one, and a substituted key would let a
|
|
192
204
|
* proof the depositor never authorized pass the pre-Assert check. This is
|
|
193
205
|
* the value written into the file.
|
|
194
206
|
*/
|
|
195
207
|
readonly trustedVerifyingKeyHex: string;
|
|
196
208
|
readonly vault: DelegatedClaimVaultContext;
|
|
197
|
-
|
|
209
|
+
/** Written into the file as `babe_sessions`; `{}` builds an unjoined file. */
|
|
210
|
+
readonly babeSessionsJson: string;
|
|
198
211
|
readonly requests: readonly DelegatedClaimSigningRequest[];
|
|
199
212
|
}
|
|
200
213
|
/**
|
|
@@ -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;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,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,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -49,7 +49,15 @@ export declare enum PeginAction {
|
|
|
49
49
|
*/
|
|
50
50
|
ACTIVATE_AND_REDEEM = "ACTIVATE_AND_REDEEM",
|
|
51
51
|
/** Sign and broadcast HTLC refund transaction for an expired vault */
|
|
52
|
-
REFUND_HTLC = "REFUND_HTLC"
|
|
52
|
+
REFUND_HTLC = "REFUND_HTLC",
|
|
53
|
+
/**
|
|
54
|
+
* Reveal the HTLC secret for a vault that expired after reaching Verified
|
|
55
|
+
* (`claimExpiredVault`), so the BTC the PegIn swept into the vault is
|
|
56
|
+
* claimed out to the keys recorded on chain. The only exit once the PegIn
|
|
57
|
+
* has spent the HTLC; the contract accepts it until the vault's
|
|
58
|
+
* `claimExpiredUntil` block.
|
|
59
|
+
*/
|
|
60
|
+
CLAIM_EXPIRED_VAULT = "CLAIM_EXPIRED_VAULT"
|
|
53
61
|
}
|
|
54
62
|
/**
|
|
55
63
|
* Protocol-level peg-in state (framework-agnostic)
|
|
@@ -95,6 +103,17 @@ export interface GetPeginProtocolStateOptions {
|
|
|
95
103
|
* returned.
|
|
96
104
|
*/
|
|
97
105
|
htlcSpentByPeginTx?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* EXPIRED only: the vault expired after reaching Verified, the PegIn
|
|
108
|
+
* transaction has spent the Pre-PegIn HTLC, and the claim window has not
|
|
109
|
+
* elapsed. The CSV refund is gone, so the claim is the remaining exit.
|
|
110
|
+
*
|
|
111
|
+
* The same spender proof as `htlcSpentByPeginTx` applies: offering the claim
|
|
112
|
+
* while the HTLC is unspent reveals the secret and lets anyone broadcast the
|
|
113
|
+
* PegIn ahead of the depositor's refund. When set, it takes precedence over
|
|
114
|
+
* `canRefund`, which a proven PegIn spend makes impossible.
|
|
115
|
+
*/
|
|
116
|
+
canClaimExpired?: boolean;
|
|
98
117
|
}
|
|
99
118
|
/**
|
|
100
119
|
* Determine the current protocol state and available actions based on contract
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peginState.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/peginState.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,oBAAY,cAAc;IACxB,oDAAoD;IACpD,OAAO,IAAI;IACX,gEAAgE;IAChE,QAAQ,IAAI;IACZ,qGAAqG;IACrG,MAAM,IAAI;IACV,0DAA0D;IAC1D,QAAQ,IAAI;IACZ,2FAA2F;IAC3F,UAAU,IAAI;IACd,kGAAkG;IAClG,OAAO,IAAI;IACX,uFAAuF;IACvF,mBAAmB,IAAI;IACvB,oFAAoF;IACpF,OAAO,IAAI;CACZ;AAED,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,eAAe,GACf,oBAAoB,CAAC;AAMzB;;GAEG;AACH,oBAAY,WAAW;IACrB,kEAAkE;IAClE,eAAe,oBAAoB;IACnC,+BAA+B;IAC/B,wBAAwB,6BAA6B;IACrD,uDAAuD;IACvD,6BAA6B,kCAAkC;IAC/D,uDAAuD;IACvD,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,mBAAmB,wBAAwB;IAC3C,sEAAsE;IACtE,WAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"peginState.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/peginState.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,oBAAY,cAAc;IACxB,oDAAoD;IACpD,OAAO,IAAI;IACX,gEAAgE;IAChE,QAAQ,IAAI;IACZ,qGAAqG;IACrG,MAAM,IAAI;IACV,0DAA0D;IAC1D,QAAQ,IAAI;IACZ,2FAA2F;IAC3F,UAAU,IAAI;IACd,kGAAkG;IAClG,OAAO,IAAI;IACX,uFAAuF;IACvF,mBAAmB,IAAI;IACvB,oFAAoF;IACpF,OAAO,IAAI;CACZ;AAED,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,eAAe,GACf,oBAAoB,CAAC;AAMzB;;GAEG;AACH,oBAAY,WAAW;IACrB,kEAAkE;IAClE,eAAe,oBAAoB;IACnC,+BAA+B;IAC/B,wBAAwB,6BAA6B;IACrD,uDAAuD;IACvD,6BAA6B,kCAAkC;IAC/D,uDAAuD;IACvD,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,mBAAmB,wBAAwB;IAC3C,sEAAsE;IACtE,WAAW,gBAAgB;IAC3B;;;;;;OAMG;IACH,mBAAmB,wBAAwB;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,cAAc,EAAE,cAAc,CAAC;IAC/B,uEAAuE;IACvE,gBAAgB,EAAE,WAAW,EAAE,CAAC;CACjC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gFAAgF;IAChF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,cAAc,EAC9B,OAAO,GAAE,4BAAiC,GACzC,kBAAkB,CA+FpB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,WAAW,GAClB,OAAO,CAET;AAMD;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAGV;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;CAChC,GAAG,MAAM,CAKT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-DOdsgcUR.cjs"),t=require("../../../buildAndBroadcastReclaim-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-DOdsgcUR.cjs"),t=require("../../../buildAndBroadcastReclaim-C7bq5wNM.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,72 +1,72 @@
|
|
|
1
1
|
import { c as s, v as e } from "../../../PayoutManager-BZ212yml.js";
|
|
2
|
-
import { J as r,
|
|
3
|
-
import { attachFinalizedAssert as
|
|
4
|
-
import { C as Ta, P as Oa, a as
|
|
5
|
-
import { C as
|
|
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-CcQ0b1be.js";
|
|
3
|
+
import { attachFinalizedAssert as ya, finalizePayout as Na, finalizeWronglyChallenged as Da, pinPegoutProof as Ia } from "../wasm/index.js";
|
|
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
|
+
import { C as La, g as xa, f as Ga } from "../../../state-CFn1rT74.js";
|
|
6
6
|
export {
|
|
7
7
|
r as ApplicationEntryPointMismatchError,
|
|
8
8
|
n as ArtifactsVaultMismatchError,
|
|
9
9
|
o as AssertBindingError,
|
|
10
|
-
l as
|
|
11
|
-
c as
|
|
12
|
-
|
|
13
|
-
Ua as ClaimerPegoutStatusValue,
|
|
10
|
+
l as BIP68NotMatureError,
|
|
11
|
+
c as ChallengerSetMismatchError,
|
|
12
|
+
La as ClaimerPegoutStatusValue,
|
|
14
13
|
Ta as ContractStatus,
|
|
15
|
-
|
|
14
|
+
E as DELEGATED_CLAIM_TX_GRAPH_VERSION,
|
|
16
15
|
g as DelegatedClaimSigningIncompleteError,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
A as GraphFingerprintError,
|
|
17
|
+
d as PEGIN_ETH_CONFIRMATIONS,
|
|
18
|
+
u as ParticipantKeyDriftError,
|
|
19
|
+
R as PayoutDestinationError,
|
|
21
20
|
m as PayoutInputLeafError,
|
|
22
21
|
Oa as PeginAction,
|
|
23
22
|
p as PeginRegistrationMissingError,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
P as PeginRegistrationNotFinalError,
|
|
24
|
+
_ as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
|
|
25
|
+
C as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
|
|
26
|
+
M as RECLAIM_MAX_FEE_RATE_SATS_VB,
|
|
27
|
+
h as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
|
|
29
28
|
F as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
S as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
30
|
+
V as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
31
|
+
f as REFUND_VSIZE,
|
|
32
|
+
y as ReclaimUneconomicalError,
|
|
33
|
+
N as RegisteredVaultVersionMismatchError,
|
|
34
|
+
D as SigningPlanMismatchError,
|
|
35
|
+
I as VaultIdBindingError,
|
|
36
|
+
v as activateVault,
|
|
37
|
+
T as activateVaultAndRedeem,
|
|
38
|
+
Ka as activationDeadlineBlocksRemaining,
|
|
39
|
+
O as assembleWatchtowerArtifacts,
|
|
41
40
|
K as assembleWatchtowerArtifactsFromSignatures,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
b as assertArtifactsUsableForVault,
|
|
42
|
+
B as assertAssertBindsClaimAndPayout,
|
|
43
|
+
U as assertChallengerSetMatchesVault,
|
|
44
|
+
H as assertClaimSpendsVault,
|
|
45
|
+
L as assertPayoutPaysRegisteredScript,
|
|
46
|
+
x as assertReturnedGraphMatchesFingerprint,
|
|
47
|
+
G as assertTermsMatchVault,
|
|
48
|
+
W as assertVaultProviderHintAccepted,
|
|
49
|
+
ya as attachFinalizedAssert,
|
|
50
|
+
X as buildAndBroadcastReclaim,
|
|
51
|
+
w as buildAndBroadcastRefund,
|
|
52
|
+
ba as canPerformAction,
|
|
53
|
+
k as claimExpiredVault,
|
|
54
54
|
s as computeHashlock,
|
|
55
55
|
z as copyAssertConnectorLeaf,
|
|
56
56
|
j as deriveClaimerWotsKeypair,
|
|
57
|
-
|
|
57
|
+
Z as estimateRefundFeeSats,
|
|
58
58
|
Na as finalizePayout,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
Da as finalizeWronglyChallenged,
|
|
60
|
+
q as fingerprintReturnedGraph,
|
|
61
|
+
Ba as getPeginProtocolState,
|
|
62
|
+
Ua as isActivationDeadlinePassedOnChain,
|
|
63
|
+
J as isApplicationEntryPointMismatchError,
|
|
64
|
+
Q as isDepositAmountValid,
|
|
65
|
+
Y as isHintAccepted,
|
|
66
66
|
$ as isParticipantKeyDriftError,
|
|
67
67
|
aa as isPeginRegistrationMissingError,
|
|
68
68
|
ta as isPeginRegistrationNotFinalError,
|
|
69
|
-
|
|
69
|
+
xa as isPegoutTerminalStatus,
|
|
70
70
|
Ga as isRecognizedPegoutStatus,
|
|
71
71
|
sa as isRegisteredVaultVersionMismatchError,
|
|
72
72
|
ea as matchKeyHint,
|
|
@@ -78,21 +78,21 @@ export {
|
|
|
78
78
|
la as resolveCurrentParticipantKeys,
|
|
79
79
|
ca as resolveParticipantKeysAtEpochs,
|
|
80
80
|
Ea as runDepositorPresignFlow,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
ga as signDelegatedClaimPlan,
|
|
82
|
+
Aa as signDepositorGraph,
|
|
83
83
|
da as submitWotsPublicKey,
|
|
84
84
|
ua as summarizeWatchtowerArtifacts,
|
|
85
85
|
Ra as validateDepositAmount,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
ma as validateMultiVaultDepositInputs,
|
|
87
|
+
pa as validateOnChainParticipantKeys,
|
|
88
|
+
Pa as validateProviderSelection,
|
|
89
89
|
_a as validateRemainingCapacity,
|
|
90
90
|
e as validateSecretAgainstHashlock,
|
|
91
91
|
Ca as validateVaultAmounts,
|
|
92
92
|
Ma as validateVaultProviderPubkey,
|
|
93
93
|
ha as verifyRegisteredParticipantKeys,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
Fa as verifyRegisteredVaultVersions,
|
|
95
|
+
Sa as waitForPeginRegistrationDepth,
|
|
96
|
+
Va as waitForPeginStatus
|
|
97
97
|
};
|
|
98
98
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../abortSignals-msbmbqFe.cjs"),E=require("../../../signing-DvISftFk.cjs"),a=require("../../../validation-C6XTfZak.cjs"),n=require("./eth/index.cjs"),e=require("../../../psbtInputFields-BrV_ZfL_.cjs"),t=require("../../../fundPeginTransaction-54-Rwb2k.cjs"),_=require("../../../reservation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../abortSignals-msbmbqFe.cjs"),E=require("../../../signing-DvISftFk.cjs"),a=require("../../../validation-C6XTfZak.cjs"),n=require("./eth/index.cjs"),e=require("../../../psbtInputFields-BrV_ZfL_.cjs"),t=require("../../../fundPeginTransaction-54-Rwb2k.cjs"),_=require("../../../reservation-CA5knoQ0.cjs"),r=require("../../../bitcoin-D-O2GjbC.cjs"),T=require("../../../btcTxHash-CGb5BqFL.cjs");exports.combineAbortSignals=i.combineAbortSignals;exports.createTaprootScriptPathSignOptions=E.createTaprootScriptPathSignOptions;exports.createTaprootScriptPathSignOptionsForInput=E.createTaprootScriptPathSignOptionsForInput;exports.BITCOIN_ADDRESS_RE=a.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=a.COMPRESSED_PUBKEY_HEX_LEN;exports.HEX_RE=a.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=a.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=a.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=a.TXID_RE;exports.X_ONLY_PUBKEY_HEX_LEN=a.X_ONLY_PUBKEY_HEX_LEN;exports.waitForTransactionReceiptSmartAware=n.waitForTransactionReceiptSmartAware;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=_.UtxoNotAvailableError;exports.assertUtxosAvailable=_.assertUtxosAvailable;exports.extractInputsFromTransaction=_.extractInputsFromTransaction;exports.findOverlappingPendingVaults=_.findOverlappingPendingVaults;exports.validateUtxosAvailable=_.validateUtxosAvailable;exports.getNetwork=r.getNetwork;exports.calculateBtcTxHash=T.calculateBtcTxHash;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,7 +4,7 @@ import { B as _, C as T, H as p, K as S, M as n, T as i, X as A } from "../../..
|
|
|
4
4
|
import { waitForTransactionReceiptSmartAware as P } from "./eth/index.js";
|
|
5
5
|
import { B as u, a as R, c as U, b as I, d as l, g as F, h as N, f, s as g, e as x } from "../../../psbtInputFields-CCVyaQMi.js";
|
|
6
6
|
import { B as m, D as L, L as d, M as C, c as D, P as X, b as H, a as h, S as M, T as b, W as Y, f as v, d as W, p as y, r as G } from "../../../fundPeginTransaction-CwhRbCQC.js";
|
|
7
|
-
import { U as w, a as V, e as Z, f as k, v as j } from "../../../reservation-
|
|
7
|
+
import { U as w, a as V, e as Z, f as k, v as j } from "../../../reservation-BZQABu4g.js";
|
|
8
8
|
import { k as z } from "../../../bitcoin-C-TuHb-v.js";
|
|
9
9
|
import { c as Q } from "../../../btcTxHash-BRZ8_EZq.js";
|
|
10
10
|
export {
|