@babylonlabs-io/ts-sdk 0.55.2 → 0.56.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 +0 -1
- package/dist/{PayoutManager-BJmPnyRP.js → PayoutManager-BVgmuKuK.js} +117 -105
- package/dist/PayoutManager-BVgmuKuK.js.map +1 -0
- package/dist/PayoutManager-Cu4_l-_Y.cjs +2 -0
- package/dist/PayoutManager-Cu4_l-_Y.cjs.map +1 -0
- package/dist/PeginManager-BkWdZI7P.cjs +2 -0
- package/dist/PeginManager-BkWdZI7P.cjs.map +1 -0
- package/dist/{PeginManager-CW03-M3T.js → PeginManager-aYBkb-Qx.js} +520 -460
- package/dist/PeginManager-aYBkb-Qx.js.map +1 -0
- package/dist/{buildAndBroadcastRefund-BiSO4zg2.js → buildAndBroadcastRefund-BtXUqBkb.js} +444 -430
- package/dist/buildAndBroadcastRefund-BtXUqBkb.js.map +1 -0
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs +2 -0
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs.map +1 -0
- package/dist/challengeAssert-BVQq50su.js +75 -0
- package/dist/challengeAssert-BVQq50su.js.map +1 -0
- package/dist/challengeAssert-Cu-PtJ1g.cjs +2 -0
- package/dist/challengeAssert-Cu-PtJ1g.cjs.map +1 -0
- package/dist/constants-BqU1Uz15.cjs +2 -0
- package/dist/{constants-CvbARMl-.cjs.map → constants-BqU1Uz15.cjs.map} +1 -1
- package/dist/{constants-BhclpREj.js → constants-CDQE812z.js} +8 -6
- package/dist/{constants-BhclpREj.js.map → constants-CDQE812z.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +192 -190
- package/dist/{mempoolApi-CB7bHuwi.js → mempoolApi-P_ApODLd.js} +2 -2
- package/dist/{mempoolApi-CB7bHuwi.js.map → mempoolApi-P_ApODLd.js.map} +1 -1
- package/dist/{mempoolApi-DqJByvqR.cjs → mempoolApi-emec8bHK.cjs} +2 -2
- package/dist/{mempoolApi-DqJByvqR.cjs.map → mempoolApi-emec8bHK.cjs.map} +1 -1
- package/dist/{noPayout-CNMqNNpc.cjs → noPayout-Cb8vFrkY.cjs} +2 -2
- package/dist/{noPayout-CNMqNNpc.cjs.map → noPayout-Cb8vFrkY.cjs.map} +1 -1
- package/dist/{noPayout-CfBg3HzC.js → noPayout-CihCk1HE.js} +2 -2
- package/dist/{noPayout-CfBg3HzC.js.map → noPayout-CihCk1HE.js.map} +1 -1
- package/dist/{primeVpAuth-l-5x_2UV.js → primeVpAuth-DZOaC_Ui.js} +3 -3
- package/dist/{primeVpAuth-l-5x_2UV.js.map → primeVpAuth-DZOaC_Ui.js.map} +1 -1
- package/dist/{primeVpAuth-CF4cH5_e.cjs → primeVpAuth-j2getl3f.cjs} +2 -2
- package/dist/{primeVpAuth-CF4cH5_e.cjs.map → primeVpAuth-j2getl3f.cjs.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/deposit-terms/__tests__/buildDepositTerms.test.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/__tests__/buildDepositTerms.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/buildDepositTerms.d.ts +8 -0
- package/dist/tbv/core/deposit-terms/buildDepositTerms.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts +92 -0
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/index.d.ts +12 -0
- package/dist/tbv/core/deposit-terms/index.d.ts.map +1 -0
- 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 +190 -188
- package/dist/tbv/core/managers/PayoutManager.d.ts +7 -0
- package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/PeginManager.d.ts +13 -0
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.d.ts +0 -3
- package/dist/tbv/core/primitives/index.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.js +37 -38
- package/dist/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.d.ts +7 -0
- package/dist/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts +63 -0
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts +4 -1
- package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/constants.d.ts +18 -4
- package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/payout.d.ts +21 -2
- package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/pegin.d.ts +6 -0
- package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +12 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +5 -0
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +2 -2
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +190 -188
- package/dist/tbv/integrations/aave/clients/index.d.ts +1 -1
- package/dist/tbv/integrations/aave/clients/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/clients/spoke.d.ts +0 -20
- package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/constants.d.ts +0 -22
- 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 +5 -6
- package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/index.js +236 -339
- package/dist/tbv/integrations/aave/index.js.map +1 -1
- package/dist/tbv/integrations/aave/types.d.ts +0 -7
- package/dist/tbv/integrations/aave/types.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/utils/healthFactor.d.ts +0 -7
- package/dist/tbv/integrations/aave/utils/healthFactor.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/utils/index.d.ts +3 -8
- package/dist/tbv/integrations/aave/utils/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/utils/vaultSplit.d.ts +0 -65
- package/dist/tbv/integrations/aave/utils/vaultSplit.d.ts.map +1 -1
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs +2 -0
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs.map +1 -0
- package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js +724 -0
- package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js.map +1 -0
- package/package.json +4 -4
- package/dist/PayoutManager-BJmPnyRP.js.map +0 -1
- package/dist/PayoutManager-aqtsj60t.cjs +0 -2
- package/dist/PayoutManager-aqtsj60t.cjs.map +0 -1
- package/dist/PeginManager-CW03-M3T.js.map +0 -1
- package/dist/PeginManager-C_akOB1E.cjs +0 -2
- package/dist/PeginManager-C_akOB1E.cjs.map +0 -1
- package/dist/buildAndBroadcastRefund-BiSO4zg2.js.map +0 -1
- package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs +0 -2
- package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs.map +0 -1
- package/dist/challengeAssert-DLQfNcfU.cjs +0 -2
- package/dist/challengeAssert-DLQfNcfU.cjs.map +0 -1
- package/dist/challengeAssert-DvdbpEDY.js +0 -128
- package/dist/challengeAssert-DvdbpEDY.js.map +0 -1
- package/dist/constants-CvbARMl-.cjs +0 -2
- package/dist/tbv/core/primitives/psbt/depositorPayout.d.ts +0 -34
- package/dist/tbv/core/primitives/psbt/depositorPayout.d.ts.map +0 -1
- package/dist/tbv/integrations/aave/utils/__tests__/borrowRatio.test.d.ts +0 -5
- package/dist/tbv/integrations/aave/utils/__tests__/borrowRatio.test.d.ts.map +0 -1
- package/dist/tbv/integrations/aave/utils/__tests__/seizureSimulation.test.d.ts +0 -5
- package/dist/tbv/integrations/aave/utils/__tests__/seizureSimulation.test.d.ts.map +0 -1
- package/dist/tbv/integrations/aave/utils/__tests__/vaultSelection.test.d.ts +0 -2
- package/dist/tbv/integrations/aave/utils/__tests__/vaultSelection.test.d.ts.map +0 -1
- package/dist/tbv/integrations/aave/utils/borrowRatio.d.ts +0 -15
- package/dist/tbv/integrations/aave/utils/borrowRatio.d.ts.map +0 -1
- package/dist/tbv/integrations/aave/utils/seizureSimulation.d.ts +0 -109
- package/dist/tbv/integrations/aave/utils/seizureSimulation.d.ts.map +0 -1
- package/dist/tbv/integrations/aave/utils/vaultSelection.d.ts +0 -33
- package/dist/tbv/integrations/aave/utils/vaultSelection.d.ts.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs +0 -2
- package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js +0 -658
- package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../mempoolApi-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../mempoolApi-emec8bHK.cjs"),t=require("../../../primeVpAuth-j2getl3f.cjs"),r=require("../../../types-WA0LrDk1.cjs");exports.MEMPOOL_API_URLS=e.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=e.ViemVaultRegistryReader;exports.getAddressTxs=e.getAddressTxs;exports.getAddressUtxos=e.getAddressUtxos;exports.getMempoolApiUrl=e.getMempoolApiUrl;exports.getNetworkFees=e.getNetworkFees;exports.getOutspend=e.getOutspend;exports.getTipHeight=e.getTipHeight;exports.getTxHex=e.getTxHex;exports.getTxInfo=e.getTxInfo;exports.getUtxoInfo=e.getUtxoInfo;exports.pushTx=e.pushTx;exports.validateOffchainParams=e.validateOffchainParams;exports.validatePegInConfiguration=e.validatePegInConfiguration;exports.validateTBVProtocolParams=e.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=t.OnChainBtcVaultStatus;exports.ServerIdentityError=t.ServerIdentityError;exports.VaultProviderRpcClient=t.VaultProviderRpcClient;exports.ViemProtocolParamsReader=t.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=t.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=t.ViemVaultKeeperReader;exports.VpResponseValidationError=t.VpResponseValidationError;exports.VpTokenRegistry=t.VpTokenRegistry;exports.batchPollByProvider=t.batchPollByProvider;exports.createAuthenticatedVpClient=t.createAuthenticatedVpClient;exports.primeVpTokenRegistry=t.primeVpTokenRegistry;exports.resolveProtocolAddresses=t.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=t.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=t.verifyServerIdentity;exports.vpTokenRegistry=t.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=r.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=r.DaemonStatus;exports.JSON_RPC_ERROR_CODES=r.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=r.JsonRpcClient;exports.JsonRpcError=r.JsonRpcError;exports.POST_WOTS_STATUSES=r.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=r.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=r.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=r.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=r.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=r.VP_TRANSIENT_STATUSES;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as s, V as r, g as t, a as o, b as i, c as R, d as T, e as n, f as S, h as d, i as l, p, v as A, j as P, k as _ } from "../../../mempoolApi-
|
|
2
|
-
import { O as V, S as g, V as c, g as m, h as v, i as I, a as O, d as f, b as u, f as C, p as U, r as x, v as h, c as y, e as D } from "../../../primeVpAuth-
|
|
1
|
+
import { M as s, V as r, g as t, a as o, b as i, c as R, d as T, e as n, f as S, h as d, i as l, p, v as A, j as P, k as _ } from "../../../mempoolApi-P_ApODLd.js";
|
|
2
|
+
import { O as V, S as g, V as c, g as m, h as v, i as I, a as O, d as f, b as u, f as C, p as U, r as x, v as h, c as y, e as D } from "../../../primeVpAuth-DZOaC_Ui.js";
|
|
3
3
|
import { A as M, D as k, b, J as B, a as H, d as J, P as L, R as F, e as K, c as X, V as j } from "../../../types-CQDRQvV-.js";
|
|
4
4
|
export {
|
|
5
5
|
M as AUTH_EXPIRED_DATA_KIND,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildDepositTerms.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/deposit-terms/__tests__/buildDepositTerms.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BuildDepositTermsInputs, DepositTerms } from './depositTerms';
|
|
2
|
+
/**
|
|
3
|
+
* Project already-validated pegin inputs into protocol-level deposit terms.
|
|
4
|
+
* Not a second validator: keys arrive canonical and sorted from on-chain
|
|
5
|
+
* validation, and non-negative sizing is already asserted by WASM output checks.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildDepositTerms(inputs: BuildDepositTermsInputs): DepositTerms;
|
|
8
|
+
//# sourceMappingURL=buildDepositTerms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildDepositTerms.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/buildDepositTerms.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAIxB;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,YAAY,CAiD/E"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { BitcoinWallet } from '../../../shared/wallets/interfaces';
|
|
2
|
+
export interface DepositTermsVaultGroup {
|
|
3
|
+
/** 0-based; equals the group's position (groups are ascending by vout). */
|
|
4
|
+
readonly htlcVout: number;
|
|
5
|
+
/** x-only hex (64 chars), as validated on-chain upstream. */
|
|
6
|
+
readonly vaultProviderPk: string;
|
|
7
|
+
/** sats */
|
|
8
|
+
readonly vaultAmount: bigint;
|
|
9
|
+
/** sats; floor(vaultAmount * commissionBps / 10_000). */
|
|
10
|
+
readonly commissionFee: bigint;
|
|
11
|
+
/** sats; the same value for every vault. */
|
|
12
|
+
readonly depositorClaimValue: bigint;
|
|
13
|
+
/** sats; the minimum PegIn fee for this graph version. */
|
|
14
|
+
readonly peginMaxFee: bigint;
|
|
15
|
+
}
|
|
16
|
+
export interface DepositTerms {
|
|
17
|
+
/**
|
|
18
|
+
* sat/vB; the tx-graph fee rate (protocolFeeRate), NOT the mempool funding
|
|
19
|
+
* rate. An approving wallet bounds each payout's fee at baseFeeRate x a
|
|
20
|
+
* conservative vsize estimate (v22 §4.9.7.1) — pass the exact graph rate,
|
|
21
|
+
* not an inflated ceiling.
|
|
22
|
+
*/
|
|
23
|
+
baseFeeRate: bigint;
|
|
24
|
+
/** Vault-UTXO CSV timelock (blocks). */
|
|
25
|
+
peginCsvTimelock: number;
|
|
26
|
+
/**
|
|
27
|
+
* Payout timelock on the Assert transaction's output 0; comes from the same
|
|
28
|
+
* protocol param (timelockAssert) as peginCsvTimelock.
|
|
29
|
+
*/
|
|
30
|
+
payoutTimelock: number;
|
|
31
|
+
/** HTLC refund CSV timelock (blocks). */
|
|
32
|
+
htlcRefundTimelock: number;
|
|
33
|
+
/**
|
|
34
|
+
* 64-char hex in display order. A device-wire encoder must byte-reverse it to
|
|
35
|
+
* the little-endian form the device recomputes and compares against.
|
|
36
|
+
*/
|
|
37
|
+
prepeginTxid: string;
|
|
38
|
+
/** sats; the funded Pre-PegIn fee (an approving wallet caps the signed fee at this). */
|
|
39
|
+
prepeginMaxFee: bigint;
|
|
40
|
+
/**
|
|
41
|
+
* x-only hex. Sorted ascending by the upstream on-chain validation
|
|
42
|
+
* (validateOnChainParticipantKeys); the builder passes them through
|
|
43
|
+
* unasserted — the device rejects unsorted lists at intent load.
|
|
44
|
+
*/
|
|
45
|
+
keeperPks: readonly string[];
|
|
46
|
+
/**
|
|
47
|
+
* x-only hex, sorted ascending upstream independently of keeperPks (same
|
|
48
|
+
* pass-through contract). Universal challengers only — the full graph
|
|
49
|
+
* challenger set is keeperPks ∪ challengerPks (vault keepers are the local
|
|
50
|
+
* challengers).
|
|
51
|
+
*/
|
|
52
|
+
challengerPks: readonly string[];
|
|
53
|
+
/** Per-vault groups, ordered by ascending htlcVout. */
|
|
54
|
+
vaults: readonly DepositTermsVaultGroup[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Implemented only by depositor-approval wallets (e.g. a Ledger vault provider).
|
|
58
|
+
* Either a class field or a prototype method works — the deposit flow spreads
|
|
59
|
+
* the wallet object but forwards this method explicitly at every wrapper site.
|
|
60
|
+
*
|
|
61
|
+
* Seam invariant: never call deriveContextHash between approveDepositTerms and
|
|
62
|
+
* the last terms-bound signature of a connection — deriving while an intent is
|
|
63
|
+
* loaded nullifies it on-device. Design: the SDK owns approval (mirrors its
|
|
64
|
+
* deriveContextHash/signPsbts orchestration); provider-internal and app-driven
|
|
65
|
+
* placements were rejected.
|
|
66
|
+
*/
|
|
67
|
+
export interface DepositTermsApprover {
|
|
68
|
+
approveDepositTerms(terms: DepositTerms): Promise<void>;
|
|
69
|
+
}
|
|
70
|
+
/** True when the wallet implements {@link DepositTermsApprover.approveDepositTerms}. */
|
|
71
|
+
export declare function supportsDepositApproval(wallet: BitcoinWallet): wallet is BitcoinWallet & DepositTermsApprover;
|
|
72
|
+
/**
|
|
73
|
+
* Spreadable forward of `approveDepositTerms` for wallet-wrapper objects.
|
|
74
|
+
* Object spread drops prototype methods, so every `{...wallet}` wrapper site
|
|
75
|
+
* must re-attach the capability explicitly: `...forwardDepositApproval(wallet)`.
|
|
76
|
+
*/
|
|
77
|
+
export declare function forwardDepositApproval(wallet: BitcoinWallet): Partial<DepositTermsApprover>;
|
|
78
|
+
export interface BuildDepositTermsInputs {
|
|
79
|
+
protocolFeeRate: bigint;
|
|
80
|
+
timelockPegin: number;
|
|
81
|
+
timelockRefund: number;
|
|
82
|
+
prepeginTxid: string;
|
|
83
|
+
prepeginMaxFee: bigint;
|
|
84
|
+
vaultProviderPk: string;
|
|
85
|
+
keeperPks: readonly string[];
|
|
86
|
+
challengerPks: readonly string[];
|
|
87
|
+
commissionBps: number;
|
|
88
|
+
vaultAmounts: readonly bigint[];
|
|
89
|
+
depositorClaimValue: bigint;
|
|
90
|
+
peginMaxFee: bigint;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=depositTerms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositTerms.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/depositTerms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAKxE,MAAM,WAAW,sBAAsB;IACrC,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,WAAW;IACX,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,4CAA4C;IAC5C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B;;;;;OAKG;IACH,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,uDAAuD;IACvD,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC3C;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD;AAED,wFAAwF;AACxF,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,GACpB,MAAM,IAAI,aAAa,GAAG,oBAAoB,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,oBAAoB,CAAC,CAI/B;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocol-level deposit terms for intent-based signing wallets (e.g. the
|
|
3
|
+
* Ledger vault provider): the `DepositTerms` shape an approval-capable wallet
|
|
4
|
+
* is shown before any deposit signature, the thin `buildDepositTerms`
|
|
5
|
+
* projection, and the `supportsDepositApproval` capability probe. Device
|
|
6
|
+
* wire-format concerns (TLV framing, SLIP-44, byte order) are provider-side.
|
|
7
|
+
*
|
|
8
|
+
* @module deposit-terms
|
|
9
|
+
*/
|
|
10
|
+
export * from './depositTerms';
|
|
11
|
+
export * from './buildDepositTerms';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
package/dist/tbv/core/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../challengeAssert-DLQfNcfU.cjs"),R=require("../../constants-CvbARMl-.cjs"),s=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../verifyScriptPathSchnorrSignature-BDznSCOR.cjs"),g=require("../../peginInput-CAiiDZeO.cjs"),E=require("../../noPayout-CNMqNNpc.cjs"),t=require("../../bitcoin-CHfKAhcI.cjs"),m=require("../../signing-Bnsro0hE.cjs"),l=require("../../validation-u8W7Lp2x.cjs"),p=require("../../PeginManager-C_akOB1E.cjs"),A=require("../../PayoutManager-aqtsj60t.cjs"),_=require("../../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../../BTCVaultRegistry.abi-JdeqLz4x.cjs"),c=require("../../errors-CGcNP0rV.cjs"),T=require("../../deriveVaultRoot-CebLadyJ.cjs"),b=require("../../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../../fundPeginTransaction-BLD8FRL9.cjs"),d=require("../../reservation-ClEs2X0H.cjs"),i=require("../../mempoolApi-DqJByvqR.cjs"),a=require("../../primeVpAuth-CF4cH5_e.cjs"),n=require("../../types-WA0LrDk1.cjs"),I=require("../../errors-Bfjxg_iJ.cjs"),e=require("../../buildAndBroadcastRefund-Bwi1I5we.cjs"),P=require("../../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=S.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=S.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=S.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>s.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>s.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>s.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>s.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>s.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>s.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>s.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>s.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>s.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=g.buildPeginInputPsbt;exports.extractPeginInputSignature=g.extractPeginInputSignature;exports.finalizePeginInputPsbt=g.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.PeginManager=p.PeginManager;exports.computeWotsBlockPublicKeysHash=p.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=p.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=p.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=A.PayoutManager;exports.computeHashlock=A.computeHashlock;exports.validateSecretAgainstHashlock=A.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=c.CONTRACT_ERRORS;exports.extractErrorData=c.extractErrorData;exports.getContractErrorMessage=c.getContractErrorMessage;exports.handleContractError=c.handleContractError;exports.isKnownContractError=c.isKnownContractError;exports.VAULT_APP_NAME=T.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=T.buildFundingOutpointsCommitment;exports.buildVaultContext=T.buildVaultContext;exports.deriveVaultRoot=T.deriveVaultRoot;exports.parseFundingOutpointsFromTx=b.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=d.UtxoNotAvailableError;exports.assertUtxosAvailable=d.assertUtxosAvailable;exports.extractInputsFromTransaction=d.extractInputsFromTransaction;exports.findOverlappingPendingVaults=d.findOverlappingPendingVaults;exports.validateUtxosAvailable=d.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=n.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=n.DaemonStatus;exports.JSON_RPC_ERROR_CODES=n.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=n.JsonRpcClient;exports.JsonRpcError=n.JsonRpcError;exports.POST_WOTS_STATUSES=n.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=n.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=n.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=n.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=n.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=n.VP_TRANSIENT_STATUSES;exports.isWotsMismatchError=I.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=P.ContractStatus;exports.PeginAction=P.PeginAction;exports.canPerformAction=P.canPerformAction;exports.getPeginProtocolState=P.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=P.isActivationDeadlinePassedOnChain;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../challengeAssert-Cu-PtJ1g.cjs"),R=require("../../constants-BqU1Uz15.cjs"),n=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../verifyScriptPathSchnorrSignature-BZhX-SOd.cjs"),S=require("../../peginInput-CAiiDZeO.cjs"),E=require("../../noPayout-Cb8vFrkY.cjs"),t=require("../../bitcoin-CHfKAhcI.cjs"),m=require("../../signing-Bnsro0hE.cjs"),l=require("../../validation-u8W7Lp2x.cjs"),d=require("../../PeginManager-BkWdZI7P.cjs"),c=require("../../PayoutManager-Cu4_l-_Y.cjs"),_=require("../../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../../BTCVaultRegistry.abi-JdeqLz4x.cjs"),P=require("../../errors-CGcNP0rV.cjs"),A=require("../../deriveVaultRoot-CebLadyJ.cjs"),b=require("../../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../../fundPeginTransaction-BLD8FRL9.cjs"),p=require("../../reservation-ClEs2X0H.cjs"),i=require("../../mempoolApi-emec8bHK.cjs"),a=require("../../primeVpAuth-j2getl3f.cjs"),s=require("../../types-WA0LrDk1.cjs"),I=require("../../errors-Bfjxg_iJ.cjs"),e=require("../../buildAndBroadcastRefund-Cq01wyZX.cjs"),T=require("../../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=g.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=g.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>n.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>n.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>n.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>n.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>n.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>n.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>n.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>n.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>n.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=S.buildPeginInputPsbt;exports.extractPeginInputSignature=S.extractPeginInputSignature;exports.finalizePeginInputPsbt=S.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.PeginManager=d.PeginManager;exports.buildDepositTerms=d.buildDepositTerms;exports.computeWotsBlockPublicKeysHash=d.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=d.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=d.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=c.PayoutManager;exports.computeHashlock=c.computeHashlock;exports.forwardDepositApproval=c.forwardDepositApproval;exports.supportsDepositApproval=c.supportsDepositApproval;exports.validateSecretAgainstHashlock=c.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=P.CONTRACT_ERRORS;exports.extractErrorData=P.extractErrorData;exports.getContractErrorMessage=P.getContractErrorMessage;exports.handleContractError=P.handleContractError;exports.isKnownContractError=P.isKnownContractError;exports.VAULT_APP_NAME=A.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=A.buildFundingOutpointsCommitment;exports.buildVaultContext=A.buildVaultContext;exports.deriveVaultRoot=A.deriveVaultRoot;exports.parseFundingOutpointsFromTx=b.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=p.UtxoNotAvailableError;exports.assertUtxosAvailable=p.assertUtxosAvailable;exports.extractInputsFromTransaction=p.extractInputsFromTransaction;exports.findOverlappingPendingVaults=p.findOverlappingPendingVaults;exports.validateUtxosAvailable=p.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=s.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=s.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=s.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;exports.isWotsMismatchError=I.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=T.ContractStatus;exports.PeginAction=T.PeginAction;exports.canPerformAction=T.canPerformAction;exports.getPeginProtocolState=T.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=T.isActivationDeadlinePassedOnChain;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/tbv/core/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tbv/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tbv/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,200 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { computeMinClaimValue as
|
|
4
|
-
import { P as
|
|
5
|
-
import { b as
|
|
6
|
-
import { a as
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as
|
|
9
|
-
import { B as
|
|
10
|
-
import { P as ra, c as oa, d as ia, e as na } from "../../PeginManager-
|
|
11
|
-
import { P as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import { C as
|
|
15
|
-
import { V as
|
|
16
|
-
import { p as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { U as
|
|
20
|
-
import { M as
|
|
21
|
-
import { O as
|
|
22
|
-
import { A as
|
|
23
|
-
import { i as
|
|
24
|
-
import { B as
|
|
25
|
-
import { C as
|
|
1
|
+
import { b as s, c as t } from "../../challengeAssert-BVQq50su.js";
|
|
2
|
+
import { a as o } from "../../constants-CDQE812z.js";
|
|
3
|
+
import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as u, expandAuthAnchor as l, expandHashlockSecret as d, expandWotsSeed as P, peginP2aAnchorOutput as c, supportedTxGraphVersions as T, validatePeginP2aAnchor as A } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
+
import { P as S, d as g, f as _, c as R, b as m, a as x, g as f, e as b } from "../../verifyScriptPathSchnorrSignature-CgrnAjMW.js";
|
|
5
|
+
import { b as O, e as v, f as I } from "../../peginInput-BKD_b3gq.js";
|
|
6
|
+
import { a as C, b as F } from "../../noPayout-CihCk1HE.js";
|
|
7
|
+
import { d as N, a as y, b as D, e as B, f as M, j as H, g as L, h as X, i as k, c as W, p as w, s as K, t as G, u as Y, v as Z } from "../../bitcoin-B5aNKtsk.js";
|
|
8
|
+
import { c as j } from "../../signing-DaLvGwQe.js";
|
|
9
|
+
import { B as z, H as Q, K as $, M as aa, T as ea } from "../../validation-CxqROCno.js";
|
|
10
|
+
import { P as ta, b as ra, c as oa, d as ia, e as na } from "../../PeginManager-aYBkb-Qx.js";
|
|
11
|
+
import { P as ua, c as la, f as da, s as Pa, v as ca } from "../../PayoutManager-BVgmuKuK.js";
|
|
12
|
+
import { A as Aa, P as Ea } from "../../ApplicationRegistry.abi-w5prf7Ig.js";
|
|
13
|
+
import { B as ga } from "../../BTCVaultRegistry.abi-Chs4AFBj.js";
|
|
14
|
+
import { C as Ra, e as ma, g as xa, h as fa, i as ba } from "../../errors-Blc-JWnI.js";
|
|
15
|
+
import { V as Oa, b as va, a as Ia, d as ha } from "../../deriveVaultRoot-B_gEOTD6.js";
|
|
16
|
+
import { p as Fa } from "../../parseFundingOutpoints-GSM-IaaK.js";
|
|
17
|
+
import { B as Na, a as ya, f as Da, c as Ba, b as Ma, d as Ha, g as La, i as Xa, h as ka, s as Wa, e as wa, w as Ka } from "../../waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
18
|
+
import { B as Ya, D as Za, L as Ja, M as ja, c as qa, P as za, b as Qa, a as $a, S as ae, T as ee, W as se, f as te, d as re, p as oe, r as ie } from "../../fundPeginTransaction-B2wyjqp0.js";
|
|
19
|
+
import { U as pe, a as ue, e as le, f as de, v as Pe } from "../../reservation-cHDRn4DA.js";
|
|
20
|
+
import { M as Te, V as Ae, g as Ee, a as Se, b as ge, c as _e, d as Re, e as me, f as xe, h as fe, i as be, p as Ve, v as Oe, j as ve, k as Ie } from "../../mempoolApi-P_ApODLd.js";
|
|
21
|
+
import { O as Ce, S as Fe, V as Ue, g as Ne, h as ye, i as De, a as Be, d as Me, b as He, f as Le, p as Xe, r as ke, v as We, c as we, e as Ke } from "../../primeVpAuth-DZOaC_Ui.js";
|
|
22
|
+
import { A as Ye, D as Ze, b as Je, J as je, a as qe, d as ze, P as Qe, R as $e, e as as, c as es, V as ss } from "../../types-CQDRQvV-.js";
|
|
23
|
+
import { i as rs } from "../../errors-B-H0seUG.js";
|
|
24
|
+
import { B as is, C as ns, p as ps, q as us, t as ls, u as ds, R as Ps, a as cs, n as Ts, o as As, i as Es, m as Ss, l as gs, j as _s, r as Rs, b as ms, s as xs, v as fs, g as bs, h as Vs, d as Os, c as vs, e as Is, f as hs, k as Cs, w as Fs } from "../../buildAndBroadcastRefund-BtXUqBkb.js";
|
|
25
|
+
import { C as Ns, P as ys, c as Ds, g as Bs, i as Ms } from "../../peginState-BB81JI6I.js";
|
|
26
26
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
27
|
+
Ye as AUTH_EXPIRED_DATA_KIND,
|
|
28
|
+
Aa as ApplicationRegistryABI,
|
|
29
|
+
is as BIP68NotMatureError,
|
|
30
|
+
z as BITCOIN_ADDRESS_RE,
|
|
31
|
+
ga as BTCVaultRegistryABI,
|
|
32
|
+
Ya as BTC_DUST_SAT,
|
|
33
|
+
Na as BitcoinScriptType,
|
|
34
|
+
Ra as CONTRACT_ERRORS,
|
|
35
|
+
ns as ClaimerPegoutStatusValue,
|
|
36
|
+
Ns as ContractStatus,
|
|
37
|
+
Za as DUST_THRESHOLD,
|
|
38
|
+
Ze as DaemonStatus,
|
|
39
|
+
Q as HEX_RE,
|
|
40
|
+
Je as JSON_RPC_ERROR_CODES,
|
|
41
|
+
je as JsonRpcClient,
|
|
42
|
+
qe as JsonRpcError,
|
|
43
|
+
$ as KNOWN_SCRIPT_PREFIXES,
|
|
44
|
+
Ja as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
45
|
+
ja as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
46
|
+
aa as MAX_REASONABLE_FEE_SATS,
|
|
47
|
+
qa as MAX_REASONABLE_PEGIN_VBYTES,
|
|
48
|
+
Te as MEMPOOL_API_URLS,
|
|
49
|
+
Ce as OnChainBtcVaultStatus,
|
|
50
|
+
za as P2TR_INPUT_SIZE,
|
|
51
|
+
Qa as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
52
|
+
$a as PEGIN_FIXED_OUTPUTS,
|
|
53
|
+
ze as POST_WOTS_STATUSES,
|
|
54
|
+
Qe as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
55
|
+
ua as PayoutManager,
|
|
56
|
+
ys as PeginAction,
|
|
57
|
+
ta as PeginManager,
|
|
58
|
+
Ea as ProtocolParamsABI,
|
|
59
|
+
S as PsbtSubstitutionError,
|
|
60
|
+
ps as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
61
|
+
us as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
62
|
+
ls as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
63
|
+
ds as REFUND_VSIZE,
|
|
64
|
+
Ps as RegisteredVaultVersionMismatchError,
|
|
65
|
+
$e as RpcErrorCode,
|
|
66
|
+
ae as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
67
|
+
Fe as ServerIdentityError,
|
|
68
|
+
ea as TXID_RE,
|
|
69
|
+
ee as TX_BUFFER_SIZE_OVERHEAD,
|
|
70
|
+
pe as UtxoNotAvailableError,
|
|
71
|
+
Oa as VAULT_APP_NAME,
|
|
72
|
+
as as VP_BATCH_MAX_SIZE,
|
|
73
|
+
es as VP_TERMINAL_FAILURE_STATUSES,
|
|
74
|
+
ss as VP_TRANSIENT_STATUSES,
|
|
75
|
+
Ue as VaultProviderRpcClient,
|
|
76
|
+
Ne as ViemProtocolParamsReader,
|
|
77
|
+
ye as ViemUniversalChallengerReader,
|
|
78
|
+
De as ViemVaultKeeperReader,
|
|
79
|
+
Ae as ViemVaultRegistryReader,
|
|
80
|
+
Be as VpResponseValidationError,
|
|
81
|
+
Me as VpTokenRegistry,
|
|
82
|
+
se as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
83
|
+
cs as activateVault,
|
|
84
|
+
ya as applyChangeOutputPolicy,
|
|
85
|
+
g as assertPsbtUnsignedTxMatches,
|
|
86
|
+
_ as assertScriptPathSchnorrSignature,
|
|
87
|
+
ue as assertUtxosAvailable,
|
|
88
|
+
o as assertValidVaultCoreVersion,
|
|
89
|
+
He as batchPollByProvider,
|
|
90
|
+
Ts as buildAndBroadcastRefund,
|
|
91
91
|
s as buildChallengeAssertPsbt,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
92
|
+
ra as buildDepositTerms,
|
|
93
|
+
va as buildFundingOutpointsCommitment,
|
|
94
|
+
C as buildNoPayoutPsbt,
|
|
95
|
+
R as buildPayoutPsbt,
|
|
96
|
+
O as buildPeginInputPsbt,
|
|
97
|
+
m as buildPeginTxFromFundedPrePegin,
|
|
98
|
+
x as buildPrePeginPsbt,
|
|
99
|
+
F as buildRefundPsbt,
|
|
100
|
+
Ia as buildVaultContext,
|
|
101
|
+
Da as calculateBtcTxHash,
|
|
102
|
+
Ds as canPerformAction,
|
|
103
|
+
Ba as computeChangeOutputFeeSats,
|
|
104
104
|
la as computeHashlock,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
Ma as computeMaxDeposit,
|
|
106
|
+
n as computeMinClaimValue,
|
|
107
107
|
p as computeMinPeginFee,
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
t as computeNumLocalChallengers,
|
|
109
|
+
Ha as computePeginBaseFeeSats,
|
|
110
110
|
oa as computeWotsBlockPublicKeysHash,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
Le as createAuthenticatedVpClient,
|
|
112
|
+
f as createPayoutScript,
|
|
113
|
+
j as createTaprootScriptPathSignOptions,
|
|
114
|
+
N as deriveBip86ScriptPubKeyHex,
|
|
115
|
+
y as deriveNativeSegwitAddress,
|
|
116
116
|
D as deriveTaprootAddress,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
u as deriveVaultId,
|
|
118
|
+
ha as deriveVaultRoot,
|
|
119
119
|
ia as deriveWotsBlocksFromSeed,
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
B as ensureHexPrefix,
|
|
121
|
+
As as estimateRefundFeeSats,
|
|
122
122
|
na as estimateSubmitPeginRequestBatchGas,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
Ee as
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
123
|
+
l as expandAuthAnchor,
|
|
124
|
+
d as expandHashlockSecret,
|
|
125
|
+
P as expandWotsSeed,
|
|
126
|
+
ma as extractErrorData,
|
|
127
|
+
le as extractInputsFromTransaction,
|
|
128
|
+
b as extractPayoutSignature,
|
|
129
|
+
v as extractPeginInputSignature,
|
|
130
|
+
I as finalizePeginInputPsbt,
|
|
131
|
+
de as findOverlappingPendingVaults,
|
|
132
|
+
M as formatSatoshisToBtc,
|
|
133
|
+
da as forwardDepositApproval,
|
|
134
|
+
te as fundPeginTransaction,
|
|
135
|
+
Ee as getAddressTxs,
|
|
136
|
+
Se as getAddressUtxos,
|
|
137
|
+
xa as getContractErrorMessage,
|
|
138
|
+
La as getDustThreshold,
|
|
139
|
+
ge as getMempoolApiUrl,
|
|
140
|
+
H as getNetwork,
|
|
141
|
+
_e as getNetworkFees,
|
|
142
|
+
Re as getOutspend,
|
|
143
|
+
Bs as getPeginProtocolState,
|
|
144
|
+
Xa as getPsbtInputFields,
|
|
145
|
+
ka as getScriptType,
|
|
146
|
+
L as getSortedXOnlyPubkeys,
|
|
147
|
+
me as getTipHeight,
|
|
148
|
+
xe as getTxHex,
|
|
149
|
+
fe as getTxInfo,
|
|
150
|
+
be as getUtxoInfo,
|
|
151
|
+
fa as handleContractError,
|
|
152
|
+
X as hexToUint8Array,
|
|
153
|
+
Ms as isActivationDeadlinePassedOnChain,
|
|
154
|
+
k as isAddressFromPublicKey,
|
|
155
|
+
Es as isDepositAmountValid,
|
|
156
|
+
ba as isKnownContractError,
|
|
157
|
+
Ss as isPegoutTerminalStatus,
|
|
158
|
+
gs as isRecognizedPegoutStatus,
|
|
159
|
+
_s as isRegisteredVaultVersionMismatchError,
|
|
160
|
+
W as isValidHex,
|
|
161
|
+
rs as isWotsMismatchError,
|
|
162
|
+
Fa as parseFundingOutpointsFromTx,
|
|
163
|
+
re as parseUnfundedWasmTransaction,
|
|
164
|
+
oe as peginOutputCount,
|
|
165
|
+
c as peginP2aAnchorOutput,
|
|
166
|
+
Xe as primeVpTokenRegistry,
|
|
166
167
|
w as processPublicKeyToXOnly,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
168
|
+
Ve as pushTx,
|
|
169
|
+
ie as rateBasedTxBufferFee,
|
|
170
|
+
ke as resolveProtocolAddresses,
|
|
171
|
+
Rs as runDepositorPresignFlow,
|
|
172
|
+
Wa as selectUtxosForPegin,
|
|
173
|
+
wa as shouldAddChangeOutput,
|
|
174
|
+
ms as signDepositorGraph,
|
|
175
|
+
K as stripHexPrefix,
|
|
176
|
+
xs as submitWotsPublicKey,
|
|
177
|
+
T as supportedTxGraphVersions,
|
|
178
|
+
Pa as supportsDepositApproval,
|
|
179
|
+
G as toXOnly,
|
|
180
|
+
Y as uint8ArrayToHex,
|
|
181
|
+
fs as validateDepositAmount,
|
|
182
|
+
bs as validateMultiVaultDepositInputs,
|
|
183
|
+
Oe as validateOffchainParams,
|
|
184
|
+
Vs as validateOnChainParticipantKeys,
|
|
185
|
+
ve as validatePegInConfiguration,
|
|
184
186
|
A as validatePeginP2aAnchor,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
187
|
+
Os as validateProviderSelection,
|
|
188
|
+
vs as validateRemainingCapacity,
|
|
189
|
+
We as validateRequestDepositorClaimerArtifactsResponse,
|
|
190
|
+
ca as validateSecretAgainstHashlock,
|
|
191
|
+
Ie as validateTBVProtocolParams,
|
|
192
|
+
Pe as validateUtxosAvailable,
|
|
193
|
+
Is as validateVaultAmounts,
|
|
194
|
+
hs as validateVaultProviderPubkey,
|
|
195
|
+
Z as validateWalletPubkey,
|
|
196
|
+
Cs as verifyRegisteredVaultVersions,
|
|
197
|
+
we as verifyServerIdentity,
|
|
198
|
+
Ke as vpTokenRegistry,
|
|
199
|
+
Fs as waitForPeginStatus,
|
|
200
|
+
Ka as waitForTransactionReceiptSmartAware
|
|
199
201
|
};
|
|
200
202
|
//# sourceMappingURL=index.js.map
|