@babylonlabs-io/ts-sdk 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/dist/challengeAssert-D_k_ADgP.cjs +2 -0
- package/dist/challengeAssert-D_k_ADgP.cjs.map +1 -0
- package/dist/challengeAssert-k5_LWUtO.js +362 -0
- package/dist/challengeAssert-k5_LWUtO.js.map +1 -0
- package/dist/constants-EiyZkXce.cjs +2 -0
- package/dist/constants-EiyZkXce.cjs.map +1 -0
- package/dist/constants-Q7v2O7Ps.js +155 -0
- package/dist/constants-Q7v2O7Ps.js.map +1 -0
- package/dist/errors-DKLboMnq.cjs +2 -0
- package/dist/errors-DKLboMnq.cjs.map +1 -0
- package/dist/errors-KY63mgWT.js +1510 -0
- package/dist/errors-KY63mgWT.js.map +1 -0
- package/dist/fundPeginTransaction-DpwnDslW.js +50 -0
- package/dist/fundPeginTransaction-DpwnDslW.js.map +1 -0
- package/dist/fundPeginTransaction-EbrZzlrh.cjs +2 -0
- package/dist/fundPeginTransaction-EbrZzlrh.cjs.map +1 -0
- package/dist/index-D3z3SZAj.cjs +2 -0
- package/dist/index-D3z3SZAj.cjs.map +1 -0
- package/dist/index-Dw7FAwne.js +913 -0
- package/dist/index-Dw7FAwne.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +98 -74
- package/dist/index.js.map +1 -1
- package/dist/payout-Ce9vSs9e.js +164 -0
- package/dist/payout-Ce9vSs9e.js.map +1 -0
- package/dist/payout-CfsDnjKI.cjs +2 -0
- package/dist/payout-CfsDnjKI.cjs.map +1 -0
- package/dist/psbtInputFields-C0nKn_GD.cjs +2 -0
- package/dist/psbtInputFields-C0nKn_GD.cjs.map +1 -0
- package/dist/psbtInputFields-DO0ELwiv.js +116 -0
- package/dist/psbtInputFields-DO0ELwiv.js.map +1 -0
- package/dist/signAndSubmitPayouts-CAOEAQp9.js +490 -0
- package/dist/signAndSubmitPayouts-CAOEAQp9.js.map +1 -0
- package/dist/signAndSubmitPayouts-CSJmcPQN.cjs +2 -0
- package/dist/signAndSubmitPayouts-CSJmcPQN.cjs.map +1 -0
- package/dist/signing-Deg5lCoC.cjs +2 -0
- package/dist/signing-Deg5lCoC.cjs.map +1 -0
- package/dist/signing-Drwr3bXB.js +16 -0
- package/dist/signing-Drwr3bXB.js.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/vault-registry-reader.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/vault-registry-reader.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/index.d.ts +3 -0
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/types.d.ts +37 -0
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +20 -0
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -0
- package/dist/tbv/core/clients/index.cjs +2 -0
- package/dist/tbv/core/clients/index.cjs.map +1 -0
- package/dist/tbv/core/clients/index.d.ts +2 -0
- package/dist/tbv/core/clients/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.js +26 -0
- package/dist/tbv/core/clients/index.js.map +1 -0
- package/dist/tbv/core/clients/vault-provider/__tests__/json-rpc-client.test.d.ts +2 -0
- package/dist/tbv/core/clients/vault-provider/__tests__/json-rpc-client.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/__tests__/validators.test.d.ts +2 -0
- package/dist/tbv/core/clients/vault-provider/__tests__/validators.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/api.d.ts +53 -0
- package/dist/tbv/core/clients/vault-provider/api.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/index.d.ts +7 -0
- package/dist/tbv/core/clients/vault-provider/index.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/json-rpc-client.d.ts +90 -0
- package/dist/tbv/core/clients/vault-provider/json-rpc-client.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/types.d.ts +256 -0
- package/dist/tbv/core/clients/vault-provider/types.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/validators.d.ts +30 -0
- package/dist/tbv/core/clients/vault-provider/validators.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +29 -74
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.d.ts +1 -0
- package/dist/tbv/core/index.d.ts.map +1 -1
- package/dist/tbv/core/index.js +97 -73
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.d.ts +8 -0
- package/dist/tbv/core/primitives/index.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.js +26 -24
- package/dist/tbv/core/primitives/index.js.map +1 -1
- package/dist/tbv/core/primitives/utils/bitcoin.d.ts +0 -11
- package/dist/tbv/core/primitives/utils/bitcoin.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/__tests__/submitWotsPublicKey.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/submitWotsPublicKey.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/__tests__/waitForPeginStatus.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/waitForPeginStatus.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts +10 -0
- package/dist/tbv/core/services/deposit/index.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/interfaces.d.ts +21 -0
- package/dist/tbv/core/services/deposit/interfaces.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/signAndSubmitPayouts.d.ts +55 -0
- package/dist/tbv/core/services/deposit/signAndSubmitPayouts.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +21 -0
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/submitWotsPublicKey.d.ts +25 -0
- package/dist/tbv/core/services/deposit/submitWotsPublicKey.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/waitForPeginStatus.d.ts +24 -0
- package/dist/tbv/core/services/deposit/waitForPeginStatus.d.ts.map +1 -0
- package/dist/tbv/core/services/index.cjs +2 -0
- package/dist/tbv/core/services/index.cjs.map +1 -0
- package/dist/tbv/core/services/index.d.ts +10 -0
- package/dist/tbv/core/services/index.d.ts.map +1 -0
- package/dist/tbv/core/services/index.js +8 -0
- package/dist/tbv/core/services/index.js.map +1 -0
- package/dist/tbv/core/utils/index.cjs +2 -0
- package/dist/tbv/core/utils/index.cjs.map +1 -0
- package/dist/tbv/core/utils/index.js +30 -0
- package/dist/tbv/core/utils/index.js.map +1 -0
- package/dist/tbv/core/utils/transaction/fundPeginTransaction.d.ts.map +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +97 -73
- package/dist/tbv/index.js.map +1 -1
- package/dist/tbv/integrations/aave/clients/abis/AaveSpoke.abi.json.d.ts +28 -18
- package/dist/tbv/integrations/aave/clients/spoke.d.ts +2 -2
- package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/constants.d.ts +7 -0
- package/dist/tbv/integrations/aave/constants.d.ts.map +1 -1
- 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.d.ts +2 -2
- package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/index.js +124 -120
- package/dist/tbv/integrations/aave/index.js.map +1 -1
- package/dist/tbv/integrations/aave/types.d.ts +4 -6
- package/dist/tbv/integrations/aave/types.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/utils/aaveConversions.d.ts +10 -1
- package/dist/tbv/integrations/aave/utils/aaveConversions.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/utils/debtUtils.d.ts +0 -1
- package/dist/tbv/integrations/aave/utils/debtUtils.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/utils/index.d.ts +1 -1
- package/dist/tbv/integrations/aave/utils/index.d.ts.map +1 -1
- package/dist/types-D1rYwwCu.js +235 -0
- package/dist/types-D1rYwwCu.js.map +1 -0
- package/dist/types-DEWiqXYp.cjs +2 -0
- package/dist/types-DEWiqXYp.cjs.map +1 -0
- package/package.json +13 -3
- package/dist/challengeAssert-C5DQSUnp.js +0 -708
- package/dist/challengeAssert-C5DQSUnp.js.map +0 -1
- package/dist/challengeAssert-D7SqsNpQ.cjs +0 -2
- package/dist/challengeAssert-D7SqsNpQ.cjs.map +0 -1
- package/dist/errors-Bk7eb5h3.cjs +0 -2
- package/dist/errors-Bk7eb5h3.cjs.map +0 -1
- package/dist/errors-Ld-2tiK3.js +0 -2268
- package/dist/errors-Ld-2tiK3.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AAIpF,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":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ty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../challengeAssert-D_k_ADgP.cjs"),r=require("@babylonlabs-io/babylon-tbv-rust-wasm"),i=require("../../../payout-CfsDnjKI.cjs"),e=require("../../../constants-EiyZkXce.cjs");exports.buildChallengeAssertPsbt=t.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=t.buildDepositorPayoutPsbt;exports.buildNoPayoutPsbt=t.buildNoPayoutPsbt;exports.buildPeginInputPsbt=t.buildPeginInputPsbt;exports.buildPeginTxFromFundedPrePegin=t.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=t.buildPrePeginPsbt;exports.buildRefundPsbt=t.buildRefundPsbt;exports.computeNumLocalChallengers=t.computeNumLocalChallengers;exports.extractPeginInputSignature=t.extractPeginInputSignature;exports.finalizePeginInputPsbt=t.finalizePeginInputPsbt;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>r.computeMinClaimValue});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>r.deriveVaultId});exports.buildPayoutPsbt=i.buildPayoutPsbt;exports.createPayoutScript=i.createPayoutScript;exports.extractPayoutSignature=i.extractPayoutSignature;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;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
|
|
@@ -74,6 +74,14 @@
|
|
|
74
74
|
export { computeNumLocalChallengers } from './challengers';
|
|
75
75
|
export type { Network } from '@babylonlabs-io/babylon-tbv-rust-wasm';
|
|
76
76
|
export { computeMinClaimValue, deriveVaultId } from '@babylonlabs-io/babylon-tbv-rust-wasm';
|
|
77
|
+
/**
|
|
78
|
+
* 0x-prefixed bytes32, keccak256(abi.encode(peginTxHash, depositor)).
|
|
79
|
+
* On-chain vault identifier used by BTCVaultRegistry contract.
|
|
80
|
+
*
|
|
81
|
+
* Type alias for documentation — not branded.
|
|
82
|
+
* Derive with `deriveVaultId(peginTxHash, depositorAddress)`.
|
|
83
|
+
*/
|
|
84
|
+
export type VaultId = `0x${string}`;
|
|
77
85
|
export type { AssertPayoutNoPayoutConnectorParams, ChallengeAssertConnectorParams, PayoutConnectorParams, } from '@babylonlabs-io/babylon-tbv-rust-wasm';
|
|
78
86
|
export { buildPrePeginPsbt, buildPeginTxFromFundedPrePegin } from './psbt/pegin';
|
|
79
87
|
export type { PrePeginParams, PrePeginPsbtResult, BuildPeginTxParams, PeginTxResult, } from './psbt/pegin';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/primitives/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AAGH,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG3D,YAAY,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/primitives/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AAGH,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG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AM,kBAAkB,CAAC;AAG/E,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,KAAK,4BAA4B,GAClC,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computeMinClaimValue as
|
|
1
|
+
import { j as s, h as t, i, d as r, a as u, b as o, g as P, c as d, e as l, f as b } from "../../../challengeAssert-k5_LWUtO.js";
|
|
2
|
+
import { computeMinClaimValue as p, deriveVaultId as x } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
3
|
+
import { b as g, c as y, e as m } from "../../../payout-Ce9vSs9e.js";
|
|
4
|
+
import { d as v, a as A, e as h, h as T, i as H, b as I, p as S, s as C, t as F, u as N, v as V } from "../../../constants-Q7v2O7Ps.js";
|
|
3
5
|
export {
|
|
4
6
|
s as buildChallengeAssertPsbt,
|
|
5
7
|
t as buildDepositorPayoutPsbt,
|
|
6
8
|
i as buildNoPayoutPsbt,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
g as buildPayoutPsbt,
|
|
10
|
+
r as buildPeginInputPsbt,
|
|
11
|
+
u as buildPeginTxFromFundedPrePegin,
|
|
12
|
+
o as buildPrePeginPsbt,
|
|
13
|
+
P as buildRefundPsbt,
|
|
14
|
+
p as computeMinClaimValue,
|
|
13
15
|
d as computeNumLocalChallengers,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
y as createPayoutScript,
|
|
17
|
+
v as deriveNativeSegwitAddress,
|
|
18
|
+
A as deriveTaprootAddress,
|
|
19
|
+
x as deriveVaultId,
|
|
20
|
+
h as ensureHexPrefix,
|
|
21
|
+
m as extractPayoutSignature,
|
|
22
|
+
l as extractPeginInputSignature,
|
|
23
|
+
b as finalizePeginInputPsbt,
|
|
24
|
+
T as hexToUint8Array,
|
|
25
|
+
H as isAddressFromPublicKey,
|
|
26
|
+
I as isValidHex,
|
|
27
|
+
S as processPublicKeyToXOnly,
|
|
28
|
+
C as stripHexPrefix,
|
|
29
|
+
F as toXOnly,
|
|
30
|
+
N as uint8ArrayToHex,
|
|
31
|
+
V as validateWalletPubkey
|
|
30
32
|
};
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -106,17 +106,6 @@ export interface WalletPubkeyValidationResult {
|
|
|
106
106
|
* @throws If wallet pubkey doesn't match expected depositor pubkey
|
|
107
107
|
*/
|
|
108
108
|
export declare function validateWalletPubkey(walletPubkeyRaw: string, expectedDepositorPubkey?: string): WalletPubkeyValidationResult;
|
|
109
|
-
/**
|
|
110
|
-
* Lazily initialize the ECC library for bitcoinjs-lib.
|
|
111
|
-
*
|
|
112
|
-
* Must be called before any P2TR / Taproot address operation.
|
|
113
|
-
* Safe to call multiple times — only runs verification once.
|
|
114
|
-
*
|
|
115
|
-
* Why lazy: module-level `initEccLib(ecc)` breaks vitest because
|
|
116
|
-
* `vi.mock()` hoists above imports, so the mocked bitcoinjs-lib
|
|
117
|
-
* hasn't loaded the real ECC backend when the module evaluates.
|
|
118
|
-
*/
|
|
119
|
-
export declare function ensureEcc(): void;
|
|
120
109
|
/**
|
|
121
110
|
* Map SDK network type to bitcoinjs-lib Network object.
|
|
122
111
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoin.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/utils/bitcoin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"bitcoin.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/utils/bitcoin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,QAAQ,EAAY,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,MAAO,CAAC;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAUvD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAIzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEtD;AAaD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAuBpE;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,MAAM,EACvB,uBAAuB,CAAC,EAAE,MAAM,GAC/B,4BAA4B,CAa9B;AA8BD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAY7D;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,GACf,MAAM,CAWR;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,GACf,MAAM,CAiBR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,GACf,OAAO,CAgCT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitWotsPublicKey.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/submitWotsPublicKey.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForPeginStatus.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/waitForPeginStatus.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { PeginStatusReader, WotsKeySubmitter, PresignClient, ClaimerArtifactsReader, } from './interfaces';
|
|
2
|
+
export { waitForPeginStatus } from './waitForPeginStatus';
|
|
3
|
+
export type { WaitForPeginStatusParams } from './waitForPeginStatus';
|
|
4
|
+
export { submitWotsPublicKey } from './submitWotsPublicKey';
|
|
5
|
+
export type { SubmitWotsPublicKeyParams } from './submitWotsPublicKey';
|
|
6
|
+
export { signDepositorGraph } from './signDepositorGraph';
|
|
7
|
+
export type { SignDepositorGraphParams } from './signDepositorGraph';
|
|
8
|
+
export { pollAndSignPayouts } from './signAndSubmitPayouts';
|
|
9
|
+
export type { PayoutSigningContext, PollAndSignPayoutsParams, } from './signAndSubmitPayouts';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GetPeginStatusResponse, RequestDepositorClaimerArtifactsParams, RequestDepositorClaimerArtifactsResponse, RequestDepositorPresignTransactionsParams, RequestDepositorPresignTransactionsResponse, SubmitDepositorPresignaturesParams, SubmitDepositorWotsKeyParams } from '../../clients/vault-provider/types';
|
|
2
|
+
/** Read-only VP operations needed by polling/status functions. */
|
|
3
|
+
export interface PeginStatusReader {
|
|
4
|
+
getPeginStatus(params: {
|
|
5
|
+
pegin_txid: string;
|
|
6
|
+
}, signal?: AbortSignal): Promise<GetPeginStatusResponse>;
|
|
7
|
+
}
|
|
8
|
+
/** Write VP operations for WOTS key submission. */
|
|
9
|
+
export interface WotsKeySubmitter {
|
|
10
|
+
submitDepositorWotsKey(params: SubmitDepositorWotsKeyParams, signal?: AbortSignal): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
/** VP operations for the presign transaction flow. */
|
|
13
|
+
export interface PresignClient {
|
|
14
|
+
requestDepositorPresignTransactions(params: RequestDepositorPresignTransactionsParams, signal?: AbortSignal): Promise<RequestDepositorPresignTransactionsResponse>;
|
|
15
|
+
submitDepositorPresignatures(params: SubmitDepositorPresignaturesParams, signal?: AbortSignal): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
/** VP operations for depositor-as-claimer artifacts (separate from payout signing). */
|
|
18
|
+
export interface ClaimerArtifactsReader {
|
|
19
|
+
requestDepositorClaimerArtifacts(params: RequestDepositorClaimerArtifactsParams, signal?: AbortSignal): Promise<RequestDepositorClaimerArtifactsResponse>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,sCAAsC,EACtC,wCAAwC,EACxC,yCAAyC,EACzC,2CAA2C,EAC3C,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,oCAAoC,CAAC;AAE5C,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,cAAc,CACZ,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,EAC9B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC;AAED,mDAAmD;AACnD,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,CACpB,MAAM,EAAE,4BAA4B,EACpC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED,sDAAsD;AACtD,MAAM,WAAW,aAAa;IAC5B,mCAAmC,CACjC,MAAM,EAAE,yCAAyC,EACjD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,2CAA2C,CAAC,CAAC;IACxD,4BAA4B,CAC1B,MAAM,EAAE,kCAAkC,EAC1C,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;IACrC,gCAAgC,CAC9B,MAAM,EAAE,sCAAsC,EAC9C,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wCAAwC,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Network } from '@babylonlabs-io/babylon-tbv-rust-wasm';
|
|
2
|
+
import { BitcoinWallet } from '../../../../shared/wallets/interfaces';
|
|
3
|
+
import { PeginStatusReader, PresignClient } from './interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* Context required for signing payout transactions.
|
|
6
|
+
* Caller builds this from on-chain data (contract queries, GraphQL, config).
|
|
7
|
+
*/
|
|
8
|
+
export interface PayoutSigningContext {
|
|
9
|
+
/** Raw pegin BTC transaction hex (for PSBT construction) */
|
|
10
|
+
peginTxHex: string;
|
|
11
|
+
/** Vault provider's BTC public key (x-only hex, no prefix) */
|
|
12
|
+
vaultProviderBtcPubkey: string;
|
|
13
|
+
/** Sorted vault keeper BTC public keys (x-only hex, no prefix) */
|
|
14
|
+
vaultKeeperBtcPubkeys: string[];
|
|
15
|
+
/** Sorted universal challenger BTC public keys (x-only hex, no prefix) */
|
|
16
|
+
universalChallengerBtcPubkeys: string[];
|
|
17
|
+
/** Depositor's BTC public key (x-only hex, no prefix) */
|
|
18
|
+
depositorBtcPubkey: string;
|
|
19
|
+
/** Pegin timelock from the locked offchain params version */
|
|
20
|
+
timelockPegin: number;
|
|
21
|
+
/** BTC network (Mainnet, Testnet, etc.) */
|
|
22
|
+
network: Network;
|
|
23
|
+
/** On-chain registered depositor payout scriptPubKey (hex) */
|
|
24
|
+
registeredPayoutScriptPubKey: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PollAndSignPayoutsParams {
|
|
27
|
+
/** VP client implementing the status reader interface */
|
|
28
|
+
statusReader: PeginStatusReader;
|
|
29
|
+
/** VP client implementing the presign transaction flow interface */
|
|
30
|
+
presignClient: PresignClient;
|
|
31
|
+
/** Bitcoin wallet for signing */
|
|
32
|
+
btcWallet: BitcoinWallet;
|
|
33
|
+
/** BTC pegin transaction ID (unprefixed hex, 64 chars) */
|
|
34
|
+
peginTxid: string;
|
|
35
|
+
/** Depositor's x-only BTC public key (unprefixed hex, 64 chars) */
|
|
36
|
+
depositorPk: string;
|
|
37
|
+
/** Signing context built from on-chain data */
|
|
38
|
+
signingContext: PayoutSigningContext;
|
|
39
|
+
/** Maximum polling timeout in milliseconds (default: 20 min) */
|
|
40
|
+
timeoutMs?: number;
|
|
41
|
+
/** AbortSignal for cancellation */
|
|
42
|
+
signal?: AbortSignal;
|
|
43
|
+
/** Optional progress callback (completed claimers, total claimers) */
|
|
44
|
+
onProgress?: (completed: number, total: number) => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Poll for payout transactions, sign them, sign the depositor graph,
|
|
48
|
+
* and submit all signatures to the vault provider.
|
|
49
|
+
*
|
|
50
|
+
* This is the main deposit protocol step between registration and activation.
|
|
51
|
+
*
|
|
52
|
+
* @throws Error on timeout, abort, signing failure, or RPC error
|
|
53
|
+
*/
|
|
54
|
+
export declare function pollAndSignPayouts(params: PollAndSignPayoutsParams): Promise<void>;
|
|
55
|
+
//# sourceMappingURL=signAndSubmitPayouts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signAndSubmitPayouts.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signAndSubmitPayouts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MA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
|
1
|
+
import { BitcoinWallet } from '../../../../shared/wallets/interfaces';
|
|
2
|
+
import { DepositorAsClaimerPresignatures, DepositorGraphTransactions } from '../../clients/vault-provider/types';
|
|
3
|
+
export interface SignDepositorGraphParams {
|
|
4
|
+
/** The depositor graph from VP response (contains pre-built PSBTs) */
|
|
5
|
+
depositorGraph: DepositorGraphTransactions;
|
|
6
|
+
/** Depositor's BTC public key (x-only, 64-char hex, no 0x prefix) */
|
|
7
|
+
depositorBtcPubkey: string;
|
|
8
|
+
/** Bitcoin wallet for signing */
|
|
9
|
+
btcWallet: BitcoinWallet;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Sign all depositor graph transactions and assemble into presignatures.
|
|
13
|
+
*
|
|
14
|
+
* Flow:
|
|
15
|
+
* 1. Collect pre-built PSBTs from VP response (base64 -> hex)
|
|
16
|
+
* 2. Batch sign via wallet.signPsbts() if available, else sequential signPsbt()
|
|
17
|
+
* 3. Extract Schnorr signatures from each signed PSBT
|
|
18
|
+
* 4. Assemble into DepositorAsClaimerPresignatures
|
|
19
|
+
*/
|
|
20
|
+
export declare function signDepositorGraph(params: SignDepositorGraphParams): Promise<DepositorAsClaimerPresignatures>;
|
|
21
|
+
//# sourceMappingURL=signDepositorGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,uCAAuC,CAAC;AAC5F,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAE3B,MAAM,oCAAoC,CAAC;AAmM5C,MAAM,WAAW,wBAAwB;IACvC,sEAAsE;IACtE,cAAc,EAAE,0BAA0B,CAAC;IAC3C,qEAAqE;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CA6B1C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WotsBlockPublicKey } from '../../clients/vault-provider/types';
|
|
2
|
+
import { PeginStatusReader, WotsKeySubmitter } from './interfaces';
|
|
3
|
+
export interface SubmitWotsPublicKeyParams {
|
|
4
|
+
/** VP client implementing the status reader interface */
|
|
5
|
+
statusReader: PeginStatusReader;
|
|
6
|
+
/** VP client implementing the WOTS key submission interface */
|
|
7
|
+
wotsSubmitter: WotsKeySubmitter;
|
|
8
|
+
/** BTC pegin transaction ID (unprefixed hex, 64 chars) */
|
|
9
|
+
peginTxid: string;
|
|
10
|
+
/** Depositor's x-only BTC public key (unprefixed hex, 64 chars) */
|
|
11
|
+
depositorPk: string;
|
|
12
|
+
/** Pre-derived WOTS block public keys (one per assert block) */
|
|
13
|
+
wotsPublicKeys: WotsBlockPublicKey[];
|
|
14
|
+
/** Maximum time to wait for VP to be ready (default: 5 min) */
|
|
15
|
+
timeoutMs?: number;
|
|
16
|
+
/** AbortSignal for cancellation */
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Submit WOTS public keys to the vault provider.
|
|
21
|
+
*
|
|
22
|
+
* @throws Error on timeout, abort, or RPC error
|
|
23
|
+
*/
|
|
24
|
+
export declare function submitWotsPublicKey(params: SubmitWotsPublicKeyParams): Promise<void>;
|
|
25
|
+
//# sourceMappingURL=submitWotsPublicKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitWotsPublicKey.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/submitWotsPublicKey.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAYxE,MAAM,WAAW,yBAAyB;IACxC,yDAAyD;IACzD,YAAY,EAAE,iBAAiB,CAAC;IAChC,+DAA+D;IAC/D,aAAa,EAAE,gBAAgB,CAAC;IAChC,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,yBAAyB,GAChC,OAAO,CAAC,IAAI,CAAC,CAqCf"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DaemonStatus } from '../../clients/vault-provider/types';
|
|
2
|
+
import { PeginStatusReader } from './interfaces';
|
|
3
|
+
export interface WaitForPeginStatusParams {
|
|
4
|
+
/** VP client implementing the status reader interface */
|
|
5
|
+
statusReader: PeginStatusReader;
|
|
6
|
+
/** BTC pegin transaction ID (unprefixed hex, 64 chars) */
|
|
7
|
+
peginTxid: string;
|
|
8
|
+
/** Set of acceptable statuses — polling stops when the VP reports one of these */
|
|
9
|
+
targetStatuses: ReadonlySet<DaemonStatus>;
|
|
10
|
+
/** Maximum time to wait in milliseconds */
|
|
11
|
+
timeoutMs: number;
|
|
12
|
+
/** Polling interval in milliseconds (default: 10s) */
|
|
13
|
+
pollIntervalMs?: number;
|
|
14
|
+
/** AbortSignal for cancellation */
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Poll `getPeginStatus` until the VP reaches one of the target statuses.
|
|
19
|
+
*
|
|
20
|
+
* @returns The DaemonStatus string that matched one of the targets
|
|
21
|
+
* @throws Error on timeout, abort, or non-transient RPC error
|
|
22
|
+
*/
|
|
23
|
+
export declare function waitForPeginStatus(params: WaitForPeginStatusParams): Promise<DaemonStatus>;
|
|
24
|
+
//# sourceMappingURL=waitForPeginStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForPeginStatus.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/waitForPeginStatus.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,MAAM,WAAW,wBAAwB;IACvC,yDAAyD;IACzD,YAAY,EAAE,iBAAiB,CAAC;IAChC,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,cAAc,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAC1C,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,YAAY,CAAC,CAsEvB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../signAndSubmitPayouts-CSJmcPQN.cjs");exports.pollAndSignPayouts=t.pollAndSignPayouts;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.waitForPeginStatus=t.waitForPeginStatus;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deposit Protocol Services
|
|
3
|
+
*
|
|
4
|
+
* Stateless composable functions for the vault deposit protocol.
|
|
5
|
+
* All functions accept narrow interfaces, not concrete client classes.
|
|
6
|
+
*
|
|
7
|
+
* @module services
|
|
8
|
+
*/
|
|
9
|
+
export * from './deposit';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../constants-EiyZkXce.cjs"),e=require("../../../psbtInputFields-C0nKn_GD.cjs"),T=require("../../../fundPeginTransaction-EbrZzlrh.cjs"),_=require("../../../signing-Deg5lCoC.cjs");exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=t.FEE_SAFETY_MARGIN;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.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;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.getNetwork=t.getNetwork;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.BitcoinScriptType=e.BitcoinScriptType;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.fundPeginTransaction=T.fundPeginTransaction;exports.parseUnfundedWasmTransaction=T.parseUnfundedWasmTransaction;exports.createTaprootScriptPathSignOptions=_.createTaprootScriptPathSignOptions;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { B as t, D as T, F as e, L as _, M as E, P as r, c as o, S, T as p, W as n, g as A, f as c, r as F } from "../../../constants-Q7v2O7Ps.js";
|
|
2
|
+
import { B as I, c as U, g as u, d as P, b as R, s as g, a as L } from "../../../psbtInputFields-DO0ELwiv.js";
|
|
3
|
+
import { f as d, p as f } from "../../../fundPeginTransaction-DpwnDslW.js";
|
|
4
|
+
import { c as D } from "../../../signing-Drwr3bXB.js";
|
|
5
|
+
export {
|
|
6
|
+
t as BTC_DUST_SAT,
|
|
7
|
+
I as BitcoinScriptType,
|
|
8
|
+
T as DUST_THRESHOLD,
|
|
9
|
+
e as FEE_SAFETY_MARGIN,
|
|
10
|
+
_ as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
11
|
+
E as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
12
|
+
r as P2TR_INPUT_SIZE,
|
|
13
|
+
o as PEGIN_FIXED_OUTPUTS,
|
|
14
|
+
S as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
15
|
+
p as TX_BUFFER_SIZE_OVERHEAD,
|
|
16
|
+
n as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
17
|
+
U as calculateBtcTxHash,
|
|
18
|
+
D as createTaprootScriptPathSignOptions,
|
|
19
|
+
d as fundPeginTransaction,
|
|
20
|
+
u as getDustThreshold,
|
|
21
|
+
A as getNetwork,
|
|
22
|
+
P as getPsbtInputFields,
|
|
23
|
+
R as getScriptType,
|
|
24
|
+
f as parseUnfundedWasmTransaction,
|
|
25
|
+
c as peginOutputCount,
|
|
26
|
+
F as rateBasedTxBufferFee,
|
|
27
|
+
g as selectUtxosForPegin,
|
|
28
|
+
L as shouldAddChangeOutput
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundPeginTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/utils/transaction/fundPeginTransaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"fundPeginTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/utils/transaction/fundPeginTransaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,0BAA0B;IACzC,oFAAoF;IACpF,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,aAAa,EAAE,IAAI,EAAE,CAAC;IACtB,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;CAC1B;AAED,gEAAgE;AAChE,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oDAAoD;AACpD,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,GACpB,gBAAgB,CAmDlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,0BAA0B,GACjC,MAAM,CAgCR;AAGD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/tbv/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../challengeAssert-D_k_ADgP.cjs"),u=require("@babylonlabs-io/babylon-tbv-rust-wasm"),a=require("../payout-CfsDnjKI.cjs"),e=require("../constants-EiyZkXce.cjs"),s=require("../psbtInputFields-C0nKn_GD.cjs"),T=require("../fundPeginTransaction-EbrZzlrh.cjs"),P=require("../signing-Deg5lCoC.cjs"),r=require("../errors-DKLboMnq.cjs"),n=require("../signAndSubmitPayouts-CSJmcPQN.cjs"),t=require("../index-D3z3SZAj.cjs"),o=require("../types-DEWiqXYp.cjs");exports.buildChallengeAssertPsbt=i.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=i.buildDepositorPayoutPsbt;exports.buildNoPayoutPsbt=i.buildNoPayoutPsbt;exports.buildPeginInputPsbt=i.buildPeginInputPsbt;exports.buildPeginTxFromFundedPrePegin=i.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=i.buildPrePeginPsbt;exports.buildRefundPsbt=i.buildRefundPsbt;exports.computeNumLocalChallengers=i.computeNumLocalChallengers;exports.extractPeginInputSignature=i.extractPeginInputSignature;exports.finalizePeginInputPsbt=i.finalizePeginInputPsbt;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>u.computeMinClaimValue});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>u.deriveVaultId});exports.buildPayoutPsbt=a.buildPayoutPsbt;exports.createPayoutScript=a.createPayoutScript;exports.extractPayoutSignature=a.extractPayoutSignature;exports.BTC_DUST_SAT=e.BTC_DUST_SAT;exports.DUST_THRESHOLD=e.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=e.FEE_SAFETY_MARGIN;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=e.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=e.MAX_NON_LEGACY_OUTPUT_SIZE;exports.P2TR_INPUT_SIZE=e.P2TR_INPUT_SIZE;exports.PEGIN_FIXED_OUTPUTS=e.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=e.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=e.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=e.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;exports.getNetwork=e.getNetwork;exports.hexToUint8Array=e.hexToUint8Array;exports.isAddressFromPublicKey=e.isAddressFromPublicKey;exports.isValidHex=e.isValidHex;exports.peginOutputCount=e.peginOutputCount;exports.processPublicKeyToXOnly=e.processPublicKeyToXOnly;exports.rateBasedTxBufferFee=e.rateBasedTxBufferFee;exports.stripHexPrefix=e.stripHexPrefix;exports.toXOnly=e.toXOnly;exports.uint8ArrayToHex=e.uint8ArrayToHex;exports.validateWalletPubkey=e.validateWalletPubkey;exports.BitcoinScriptType=s.BitcoinScriptType;exports.calculateBtcTxHash=s.calculateBtcTxHash;exports.getDustThreshold=s.getDustThreshold;exports.getPsbtInputFields=s.getPsbtInputFields;exports.getScriptType=s.getScriptType;exports.selectUtxosForPegin=s.selectUtxosForPegin;exports.shouldAddChangeOutput=s.shouldAddChangeOutput;exports.fundPeginTransaction=T.fundPeginTransaction;exports.parseUnfundedWasmTransaction=T.parseUnfundedWasmTransaction;exports.createTaprootScriptPathSignOptions=P.createTaprootScriptPathSignOptions;exports.CONTRACT_ERRORS=r.CONTRACT_ERRORS;exports.PeginManager=r.PeginManager;exports.computeWotsPkHash=r.computeWotsPkHash;exports.deriveWotsKeypair=r.deriveWotsKeypair;exports.deriveWotsPkHash=r.deriveWotsPkHash;exports.extractErrorData=r.extractErrorData;exports.getContractErrorMessage=r.getContractErrorMessage;exports.handleContractError=r.handleContractError;exports.isKnownContractError=r.isKnownContractError;exports.isWotsMismatchError=r.isWotsMismatchError;exports.keypairToPublicKey=r.keypairToPublicKey;exports.mnemonicToWotsSeed=r.mnemonicToWotsSeed;exports.PayoutManager=n.PayoutManager;exports.pollAndSignPayouts=n.pollAndSignPayouts;exports.signDepositorGraph=n.signDepositorGraph;exports.submitWotsPublicKey=n.submitWotsPublicKey;exports.waitForPeginStatus=n.waitForPeginStatus;exports.BTCVaultRegistryABI=t.BTCVaultRegistryABI;exports.MEMPOOL_API_URLS=t.MEMPOOL_API_URLS;exports.VaultProviderRpcClient=t.VaultProviderRpcClient;exports.ViemVaultRegistryReader=t.ViemVaultRegistryReader;exports.VpResponseValidationError=t.VpResponseValidationError;exports.getAddressTxs=t.getAddressTxs;exports.getAddressUtxos=t.getAddressUtxos;exports.getMempoolApiUrl=t.getMempoolApiUrl;exports.getNetworkFees=t.getNetworkFees;exports.getTxHex=t.getTxHex;exports.getTxInfo=t.getTxInfo;exports.getUtxoInfo=t.getUtxoInfo;exports.pushTx=t.pushTx;exports.DaemonStatus=o.DaemonStatus;exports.JSON_RPC_ERROR_CODES=o.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=o.JsonRpcClient;exports.JsonRpcError=o.JsonRpcError;exports.POST_WOTS_STATUSES=o.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=o.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=o.RpcErrorCode;exports.VP_TERMINAL_STATUSES=o.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=o.VP_TRANSIENT_STATUSES;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|