@babylonlabs-io/ts-sdk 0.76.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BTCVaultRegistry.abi-z7d_eP22.cjs → BTCVaultRegistry.abi-BJnjzEWD.cjs} +2 -2
- package/dist/BTCVaultRegistry.abi-BJnjzEWD.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-CJwWI2EO.js → BTCVaultRegistry.abi-BT3eo60h.js} +279 -2
- package/dist/BTCVaultRegistry.abi-BT3eo60h.js.map +1 -0
- package/dist/{PeginManager-DNimKlmw.js → PeginManager-Cz0Ytdwo.js} +3 -3
- package/dist/{PeginManager-DNimKlmw.js.map → PeginManager-Cz0Ytdwo.js.map} +1 -1
- package/dist/{PeginManager-DEByBX5R.cjs → PeginManager-DE2lTWMl.cjs} +2 -2
- package/dist/{PeginManager-DEByBX5R.cjs.map → PeginManager-DE2lTWMl.cjs.map} +1 -1
- package/dist/{buildAndBroadcastReclaim-Cqc6Jiqk.cjs → buildAndBroadcastReclaim-CB5VPETy.cjs} +2 -2
- package/dist/{buildAndBroadcastReclaim-Cqc6Jiqk.cjs.map → buildAndBroadcastReclaim-CB5VPETy.cjs.map} +1 -1
- package/dist/{buildAndBroadcastReclaim-DCGcupg7.js → buildAndBroadcastReclaim-DD50pVB1.js} +2 -2
- package/dist/{buildAndBroadcastReclaim-DCGcupg7.js.map → buildAndBroadcastReclaim-DD50pVB1.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +188 -186
- package/dist/{pegin-registration-client-CXK3B_D1.js → pegin-registration-client-7Vbtdypu.js} +287 -224
- package/dist/pegin-registration-client-7Vbtdypu.js.map +1 -0
- package/dist/pegin-registration-client-CSe1vOum.cjs +2 -0
- package/dist/pegin-registration-client-CSe1vOum.cjs.map +1 -0
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.d.ts +1 -0
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/index.js +14 -12
- package/dist/tbv/core/clients/eth/registration-logs-error.d.ts +20 -0
- package/dist/tbv/core/clients/eth/registration-logs-error.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/types.d.ts +12 -0
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +19 -0
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +41 -39
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +227 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.js +1 -1
- package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts +3 -2
- package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +186 -184
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +186 -184
- package/dist/tbv/integrations/aave/constants.d.ts +10 -1
- 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 +1 -1
- package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
- package/dist/tbv/integrations/aave/index.js +101 -100
- package/dist/tbv/integrations/aave/index.js.map +1 -1
- package/dist/tbv/integrations/aave/utils/healthFactor.d.ts +3 -3
- package/dist/tbv/integrations/aave/utils/healthFactor.d.ts.map +1 -1
- package/dist/{toRefundInputs-meTyor7r.cjs → toRefundInputs-BH3wkNC4.cjs} +2 -2
- package/dist/{toRefundInputs-meTyor7r.cjs.map → toRefundInputs-BH3wkNC4.cjs.map} +1 -1
- package/dist/{toRefundInputs-BNSXIymn.js → toRefundInputs-D708M8MA.js} +2 -2
- package/dist/{toRefundInputs-BNSXIymn.js.map → toRefundInputs-D708M8MA.js.map} +1 -1
- package/dist/{types-BzSOthHH.cjs → types-BN0jOH8K.cjs} +2 -2
- package/dist/{types-BzSOthHH.cjs.map → types-BN0jOH8K.cjs.map} +1 -1
- package/dist/{types-C5DyrC8F.js → types-BwqkOoJ6.js} +3 -3
- package/dist/{types-C5DyrC8F.js.map → types-BwqkOoJ6.js.map} +1 -1
- package/package.json +2 -2
- package/dist/BTCVaultRegistry.abi-CJwWI2EO.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-z7d_eP22.cjs.map +0 -1
- package/dist/pegin-registration-client-CXK3B_D1.js.map +0 -1
- package/dist/pegin-registration-client-DLsMNm8Z.cjs +0 -2
- package/dist/pegin-registration-client-DLsMNm8Z.cjs.map +0 -1
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { O as r, V as s, a as
|
|
1
|
+
import { O as r, V as s, a as i, b as t, c as o, r as l } from "../../../../types-BwqkOoJ6.js";
|
|
2
2
|
import { a as V } from "../../../../onChainBtcPubkey-C-6UWpD8.js";
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
3
|
+
import { R as m, V as c, c as g, f as P, d as R, i as u, v, a as f, b as p } from "../../../../pegin-registration-client-7Vbtdypu.js";
|
|
4
|
+
import { a as b } from "../../../../secp256k1-D-H9jmd7.js";
|
|
5
5
|
export {
|
|
6
6
|
r as OnChainBtcVaultStatus,
|
|
7
|
+
m as RegistrationLogsUnavailableError,
|
|
7
8
|
s as ViemOperationKeyReader,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
c as ViemPeginRegistrationClient,
|
|
10
|
+
i as ViemProtocolParamsReader,
|
|
11
|
+
t as ViemUniversalChallengerReader,
|
|
11
12
|
o as ViemVaultKeeperReader,
|
|
12
|
-
|
|
13
|
+
g as ViemVaultRegistryReader,
|
|
13
14
|
V as assertOnChainBtcPubkey,
|
|
14
|
-
|
|
15
|
+
b as assertValidVaultCoreVersion,
|
|
15
16
|
P as calculateBtcTxHash,
|
|
16
|
-
|
|
17
|
+
R as derivePeginVaultId,
|
|
18
|
+
u as isRegistrationLogsUnavailableError,
|
|
17
19
|
l as resolveProtocolAddresses,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
v as validateOffchainParams,
|
|
21
|
+
f as validatePegInConfiguration,
|
|
22
|
+
p as validateTBVProtocolParams
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transient failure of a registration-log read.
|
|
3
|
+
*
|
|
4
|
+
* Every registered vault has its `PegInSubmitted` log in its `createdAt`
|
|
5
|
+
* block, so an Ethereum node answering that block's registration-log query
|
|
6
|
+
* with no logs at all did not serve the block — load-balanced public RPCs
|
|
7
|
+
* answer `[]` for a block a backend lacks instead of erroring, which viem's
|
|
8
|
+
* transport retry cannot see (it retries errors only). Callers may retry.
|
|
9
|
+
*
|
|
10
|
+
* @module clients/eth/registration-logs-error
|
|
11
|
+
*/
|
|
12
|
+
/** The `name` this error carries, so a foreign module instance still matches. */
|
|
13
|
+
export declare const REGISTRATION_LOGS_UNAVAILABLE_ERROR_NAME = "RegistrationLogsUnavailableError";
|
|
14
|
+
export declare class RegistrationLogsUnavailableError extends Error {
|
|
15
|
+
readonly blockNumber: bigint;
|
|
16
|
+
constructor(blockNumber: bigint);
|
|
17
|
+
}
|
|
18
|
+
/** Matches `instanceof` OR the documented `name` (dual module instances). */
|
|
19
|
+
export declare function isRegistrationLogsUnavailableError(err: unknown): err is RegistrationLogsUnavailableError;
|
|
20
|
+
//# sourceMappingURL=registration-logs-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration-logs-error.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/registration-logs-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,iFAAiF;AACjF,eAAO,MAAM,wCAAwC,qCACjB,CAAC;AAErC,qBAAa,gCAAiC,SAAQ,KAAK;IACzD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAEjB,WAAW,EAAE,MAAM;CAShC;AAED,6EAA6E;AAC7E,wBAAgB,kCAAkC,CAChD,GAAG,EAAE,OAAO,GACX,GAAG,IAAI,gCAAgC,CAOzC"}
|
|
@@ -135,6 +135,18 @@ export interface VaultRegistryReader {
|
|
|
135
135
|
* provider has never rotated.
|
|
136
136
|
*/
|
|
137
137
|
getCurrentVaultProviderOperationBtcKey(vpAddress: Address): Promise<OnChainBtcPubkey>;
|
|
138
|
+
/**
|
|
139
|
+
* Read the depositor's commission ceiling (`maxAcceptableCommissionBps`)
|
|
140
|
+
* for vaults registered in the same block `createdAt`, from their
|
|
141
|
+
* `PegInSubmittedV2` logs, in `vaultIds` order. The contract discards the
|
|
142
|
+
* ceiling after bound-checking it, so the log is its only on-chain source.
|
|
143
|
+
*
|
|
144
|
+
* @throws {RegistrationLogsUnavailableError} (transient, retry) when the
|
|
145
|
+
* node answers with no registration logs for the block at all.
|
|
146
|
+
* @throws when a vault has only its `PegInSubmitted` log (a registration
|
|
147
|
+
* that predates the V2 event), none, or more than one V2 log.
|
|
148
|
+
*/
|
|
149
|
+
getMaxAcceptableCommissionBpsBatch(vaultIds: readonly Hex[], createdAt: bigint): Promise<number[]>;
|
|
138
150
|
}
|
|
139
151
|
/**
|
|
140
152
|
* TBV protocol parameters from the ProtocolParams contract.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/types.ts"],"names":[],"mappings":"A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E,SAAS,GAChB,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B;;;;;;;;OAQG;IACH,wBAAwB,CACtB,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9B"}
|
|
@@ -84,5 +84,24 @@ export declare class ViemVaultRegistryReader implements VaultRegistryReader {
|
|
|
84
84
|
*/
|
|
85
85
|
getVaultProviderCommission(vaultProvider: Address): Promise<number>;
|
|
86
86
|
getVaultData(vaultId: Hex): Promise<VaultData>;
|
|
87
|
+
/**
|
|
88
|
+
* Read the depositor's commission ceiling (`maxAcceptableCommissionBps`)
|
|
89
|
+
* for vaults registered in the same block, from their `PegInSubmittedV2`
|
|
90
|
+
* logs. Returned in `vaultIds` order.
|
|
91
|
+
*
|
|
92
|
+
* The contract bound-checks the ceiling and discards it (PeginLogic.sol,
|
|
93
|
+
* `VaultProviderCommissionExceeded`), so the registration log is its only
|
|
94
|
+
* on-chain source. One query at exactly `createdAt` — the `block.number`
|
|
95
|
+
* stamped at registration — so no block-range scan is needed and public-RPC
|
|
96
|
+
* range caps do not apply. Vault ids are matched case-insensitively.
|
|
97
|
+
*
|
|
98
|
+
* @throws {RegistrationLogsUnavailableError} (transient, retry) when the
|
|
99
|
+
* node answers with no registration logs for the block at all.
|
|
100
|
+
* @throws when a vault has only its `PegInSubmitted` log — registrations
|
|
101
|
+
* that predate the V2 event (vault-contracts-aave-v4 #548) never emitted
|
|
102
|
+
* the ceiling — no registration log in its own `createdAt` block, or more
|
|
103
|
+
* than one V2 log.
|
|
104
|
+
*/
|
|
105
|
+
getMaxAcceptableCommissionBpsBatch(vaultIds: readonly Hex[], createdAt: bigint): Promise<number[]>;
|
|
87
106
|
}
|
|
88
107
|
//# sourceMappingURL=vault-registry-reader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault-registry-reader.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/vault-registry-reader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAO,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"vault-registry-reader.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/vault-registry-reader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAO,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAQ5D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAkJjB;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,YAAW,mBAAmB;IAE/D,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,eAAe;gBADf,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,OAAO;IAGlC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,gCAAgC,CACpC,SAAS,EAAE,OAAO,EAClB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,gBAAgB,CAAC;IAc5B;;;;;;;;;;OAUG;IACG,sCAAsC,CAC1C,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,gBAAgB,CAAC;IAa5B;;;;;;;;;;;;;;;OAeG;IACG,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC;IAWnD,sBAAsB,CAAC,QAAQ,EAAE,SAAS,GAAG,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAkBtE,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC;IAWxD,oBAAoB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAW9D,oBAAoB,CACxB,QAAQ,EAAE,SAAS,GAAG,EAAE,GACvB,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAiC/B;;;OAGG;IACG,WAAW,CAAC,aAAa,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAS1D;;;;;;OAMG;IACG,0BAA0B,CAAC,aAAa,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAmBnE,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC;IAqCpD;;;;;;;;;;;;;;;;;OAiBG;IACG,kCAAkC,CACtC,QAAQ,EAAE,SAAS,GAAG,EAAE,EACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,EAAE,CAAC;CAmDrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./mempool/index.cjs"),i=require("../../../types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./mempool/index.cjs"),i=require("../../../types-BN0jOH8K.cjs"),s=require("../../../onChainBtcPubkey-BbxRrbvg.cjs"),r=require("../../../pegin-registration-client-CSe1vOum.cjs"),n=require("../../../secp256k1-DDHQ1_za.cjs"),o=require("../../../index-CK1Xvq4K.cjs"),e=require("../../../json-rpc-client-BiAmg_ho.cjs"),a=require("../../../primeVpAuth-BOGKniTl.cjs");exports.MEMPOOL_API_URLS=t.MEMPOOL_API_URLS;exports.getAddressTxs=t.getAddressTxs;exports.getAddressUtxos=t.getAddressUtxos;exports.getMempoolApiUrl=t.getMempoolApiUrl;exports.getNetworkFees=t.getNetworkFees;exports.getOutspend=t.getOutspend;exports.getTipHeight=t.getTipHeight;exports.getTxHex=t.getTxHex;exports.getTxInfo=t.getTxInfo;exports.getUtxoInfo=t.getUtxoInfo;exports.pushTx=t.pushTx;exports.OnChainBtcVaultStatus=i.OnChainBtcVaultStatus;exports.ViemOperationKeyReader=i.ViemOperationKeyReader;exports.ViemProtocolParamsReader=i.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=i.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=i.ViemVaultKeeperReader;exports.resolveProtocolAddresses=i.resolveProtocolAddresses;exports.assertOnChainBtcPubkey=s.assertOnChainBtcPubkey;exports.RegistrationLogsUnavailableError=r.RegistrationLogsUnavailableError;exports.ViemPeginRegistrationClient=r.ViemPeginRegistrationClient;exports.ViemVaultRegistryReader=r.ViemVaultRegistryReader;exports.calculateBtcTxHash=r.calculateBtcTxHash;exports.derivePeginVaultId=r.derivePeginVaultId;exports.isRegistrationLogsUnavailableError=r.isRegistrationLogsUnavailableError;exports.validateOffchainParams=r.validateOffchainParams;exports.validatePegInConfiguration=r.validatePegInConfiguration;exports.validateTBVProtocolParams=r.validateTBVProtocolParams;exports.assertValidVaultCoreVersion=n.assertValidVaultCoreVersion;exports.VaultProviderRpcClient=o.VaultProviderRpcClient;exports.VpResponseValidationError=o.VpResponseValidationError;exports.batchPollByProvider=o.batchPollByProvider;exports.validateRequestDepositorClaimerArtifactsResponse=o.validateRequestDepositorClaimerArtifactsResponse;exports.AUTH_REJECTED_RPC_CODE=e.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=e.DaemonStatus;exports.JSON_RPC_ERROR_CODES=e.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=e.JsonRpcClient;exports.JsonRpcError=e.JsonRpcError;exports.POST_WOTS_STATUSES=e.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=e.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=e.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=e.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=e.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=e.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=e.isAuthRejectedError;exports.ServerIdentityError=a.ServerIdentityError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { MEMPOOL_API_URLS as r, getAddressTxs as s, getAddressUtxos as t, getMempoolApiUrl as o, getNetworkFees as i, getOutspend as n, getTipHeight as R, getTxHex as l, getTxInfo as d, getUtxoInfo as p, pushTx as T } from "./mempool/index.js";
|
|
2
|
-
import { O as S, V as
|
|
2
|
+
import { O as S, V as E, a as g, b as P, c, r as m } from "../../../types-BwqkOoJ6.js";
|
|
3
3
|
import { a as A } from "../../../onChainBtcPubkey-C-6UWpD8.js";
|
|
4
|
-
import { V as f, c as u, f as
|
|
5
|
-
import { a as
|
|
6
|
-
import { V as
|
|
7
|
-
import { A as
|
|
8
|
-
import { S as
|
|
4
|
+
import { R as C, V as f, c as u, f as x, d as O, i as I, v as U, a as h, b as y } from "../../../pegin-registration-client-7Vbtdypu.js";
|
|
5
|
+
import { a as D } from "../../../secp256k1-D-H9jmd7.js";
|
|
6
|
+
import { V as L, a as N, b as k, v as H } from "../../../index-DQ5bfoT3.js";
|
|
7
|
+
import { A as M, D as F, J as K, a as j, b as q, d as w, P as G, R as W, e as X, c as Z, V as z, i as Q } from "../../../json-rpc-client-DuUARJvV.js";
|
|
8
|
+
import { S as $, V as ee, c as ae, p as re, v as se, a as te } from "../../../primeVpAuth-DdfHSC53.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
M as AUTH_REJECTED_RPC_CODE,
|
|
11
|
+
F as DaemonStatus,
|
|
12
|
+
K as JSON_RPC_ERROR_CODES,
|
|
13
|
+
j as JsonRpcClient,
|
|
14
|
+
q as JsonRpcError,
|
|
15
15
|
r as MEMPOOL_API_URLS,
|
|
16
16
|
S as OnChainBtcVaultStatus,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
w as POST_WOTS_STATUSES,
|
|
18
|
+
G as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
19
|
+
C as RegistrationLogsUnavailableError,
|
|
20
|
+
W as RpcErrorCode,
|
|
21
|
+
$ as ServerIdentityError,
|
|
22
|
+
X as VP_BATCH_MAX_SIZE,
|
|
23
|
+
Z as VP_TERMINAL_FAILURE_STATUSES,
|
|
24
|
+
z as VP_TRANSIENT_STATUSES,
|
|
25
|
+
L as VaultProviderRpcClient,
|
|
26
|
+
E as ViemOperationKeyReader,
|
|
26
27
|
f as ViemPeginRegistrationClient,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
g as ViemProtocolParamsReader,
|
|
29
|
+
P as ViemUniversalChallengerReader,
|
|
30
|
+
c as ViemVaultKeeperReader,
|
|
30
31
|
u as ViemVaultRegistryReader,
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
N as VpResponseValidationError,
|
|
33
|
+
ee as VpTokenRegistry,
|
|
33
34
|
A as assertOnChainBtcPubkey,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
D as assertValidVaultCoreVersion,
|
|
36
|
+
k as batchPollByProvider,
|
|
37
|
+
x as calculateBtcTxHash,
|
|
38
|
+
ae as createAuthenticatedVpClient,
|
|
39
|
+
O as derivePeginVaultId,
|
|
39
40
|
s as getAddressTxs,
|
|
40
41
|
t as getAddressUtxos,
|
|
41
42
|
o as getMempoolApiUrl,
|
|
@@ -45,15 +46,16 @@ export {
|
|
|
45
46
|
l as getTxHex,
|
|
46
47
|
d as getTxInfo,
|
|
47
48
|
p as getUtxoInfo,
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
Q as isAuthRejectedError,
|
|
50
|
+
I as isRegistrationLogsUnavailableError,
|
|
51
|
+
re as primeVpTokenRegistry,
|
|
50
52
|
T as pushTx,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
m as resolveProtocolAddresses,
|
|
54
|
+
U as validateOffchainParams,
|
|
55
|
+
h as validatePegInConfiguration,
|
|
56
|
+
H as validateRequestDepositorClaimerArtifactsResponse,
|
|
57
|
+
y as validateTBVProtocolParams,
|
|
58
|
+
se as verifyServerIdentity,
|
|
59
|
+
te as vpTokenRegistry
|
|
58
60
|
};
|
|
59
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Minimal ABI for BTCVaultRegistry contract.
|
|
11
|
-
* Contains submitPeginRequest, submitPeginRequestBatch, activateVaultWithSecret, getPegInFee, getBtcVaultBasicInfo,
|
|
11
|
+
* Contains submitPeginRequest, submitPeginRequestBatch, activateVaultWithSecret, getPegInFee, getBtcVaultBasicInfo, getVaultProviderCommission,
|
|
12
|
+
* and the PegInSubmitted / PegInSubmittedV2 events.
|
|
12
13
|
*/
|
|
13
14
|
export declare const BTCVaultRegistryABI: readonly [{
|
|
14
15
|
readonly type: "function";
|
|
@@ -761,5 +762,230 @@ export declare const BTCVaultRegistryABI: readonly [{
|
|
|
761
762
|
readonly type: "error";
|
|
762
763
|
readonly name: "CapExceeded";
|
|
763
764
|
readonly inputs: readonly [];
|
|
765
|
+
}, {
|
|
766
|
+
readonly type: "event";
|
|
767
|
+
readonly name: "PegInSubmitted";
|
|
768
|
+
readonly inputs: readonly [{
|
|
769
|
+
readonly name: "vaultId";
|
|
770
|
+
readonly type: "bytes32";
|
|
771
|
+
readonly indexed: true;
|
|
772
|
+
readonly internalType: "bytes32";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "peginTxHash";
|
|
775
|
+
readonly type: "bytes32";
|
|
776
|
+
readonly indexed: true;
|
|
777
|
+
readonly internalType: "bytes32";
|
|
778
|
+
}, {
|
|
779
|
+
readonly name: "depositor";
|
|
780
|
+
readonly type: "address";
|
|
781
|
+
readonly indexed: true;
|
|
782
|
+
readonly internalType: "address";
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "vaultProvider";
|
|
785
|
+
readonly type: "address";
|
|
786
|
+
readonly indexed: false;
|
|
787
|
+
readonly internalType: "address";
|
|
788
|
+
}, {
|
|
789
|
+
readonly name: "amount";
|
|
790
|
+
readonly type: "uint256";
|
|
791
|
+
readonly indexed: false;
|
|
792
|
+
readonly internalType: "uint256";
|
|
793
|
+
}, {
|
|
794
|
+
readonly name: "vaultCoreVersion";
|
|
795
|
+
readonly type: "uint16";
|
|
796
|
+
readonly indexed: false;
|
|
797
|
+
readonly internalType: "uint16";
|
|
798
|
+
}, {
|
|
799
|
+
readonly name: "universalChallengersVersion";
|
|
800
|
+
readonly type: "uint16";
|
|
801
|
+
readonly indexed: false;
|
|
802
|
+
readonly internalType: "uint16";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "appVaultKeepersVersion";
|
|
805
|
+
readonly type: "uint16";
|
|
806
|
+
readonly indexed: false;
|
|
807
|
+
readonly internalType: "uint16";
|
|
808
|
+
}, {
|
|
809
|
+
readonly name: "proverCircuitVersion";
|
|
810
|
+
readonly type: "uint16";
|
|
811
|
+
readonly indexed: false;
|
|
812
|
+
readonly internalType: "uint16";
|
|
813
|
+
}, {
|
|
814
|
+
readonly name: "offchainParamsVersion";
|
|
815
|
+
readonly type: "uint16";
|
|
816
|
+
readonly indexed: false;
|
|
817
|
+
readonly internalType: "uint16";
|
|
818
|
+
}, {
|
|
819
|
+
readonly name: "referralCode";
|
|
820
|
+
readonly type: "uint32";
|
|
821
|
+
readonly indexed: false;
|
|
822
|
+
readonly internalType: "uint32";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "depositorPayoutBtcAddress";
|
|
825
|
+
readonly type: "bytes";
|
|
826
|
+
readonly indexed: false;
|
|
827
|
+
readonly internalType: "bytes";
|
|
828
|
+
}, {
|
|
829
|
+
readonly name: "depositorWotsPkHash";
|
|
830
|
+
readonly type: "bytes32";
|
|
831
|
+
readonly indexed: false;
|
|
832
|
+
readonly internalType: "bytes32";
|
|
833
|
+
}, {
|
|
834
|
+
readonly name: "hashlock";
|
|
835
|
+
readonly type: "bytes32";
|
|
836
|
+
readonly indexed: false;
|
|
837
|
+
readonly internalType: "bytes32";
|
|
838
|
+
}, {
|
|
839
|
+
readonly name: "btcPopSignature";
|
|
840
|
+
readonly type: "bytes";
|
|
841
|
+
readonly indexed: false;
|
|
842
|
+
readonly internalType: "bytes";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "htlcVout";
|
|
845
|
+
readonly type: "uint8";
|
|
846
|
+
readonly indexed: false;
|
|
847
|
+
readonly internalType: "uint8";
|
|
848
|
+
}, {
|
|
849
|
+
readonly name: "unsignedPrePeginTx";
|
|
850
|
+
readonly type: "bytes";
|
|
851
|
+
readonly indexed: false;
|
|
852
|
+
readonly internalType: "bytes";
|
|
853
|
+
}, {
|
|
854
|
+
readonly name: "depositorSignedPeginTx";
|
|
855
|
+
readonly type: "bytes";
|
|
856
|
+
readonly indexed: false;
|
|
857
|
+
readonly internalType: "bytes";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "vpKeyEpoch";
|
|
860
|
+
readonly type: "uint64";
|
|
861
|
+
readonly indexed: false;
|
|
862
|
+
readonly internalType: "uint64";
|
|
863
|
+
}, {
|
|
864
|
+
readonly name: "appKeeperKeyEpoch";
|
|
865
|
+
readonly type: "uint64";
|
|
866
|
+
readonly indexed: false;
|
|
867
|
+
readonly internalType: "uint64";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "ucKeyEpoch";
|
|
870
|
+
readonly type: "uint64";
|
|
871
|
+
readonly indexed: false;
|
|
872
|
+
readonly internalType: "uint64";
|
|
873
|
+
}];
|
|
874
|
+
readonly anonymous: false;
|
|
875
|
+
}, {
|
|
876
|
+
readonly type: "event";
|
|
877
|
+
readonly name: "PegInSubmittedV2";
|
|
878
|
+
readonly inputs: readonly [{
|
|
879
|
+
readonly name: "vaultId";
|
|
880
|
+
readonly type: "bytes32";
|
|
881
|
+
readonly indexed: true;
|
|
882
|
+
readonly internalType: "bytes32";
|
|
883
|
+
}, {
|
|
884
|
+
readonly name: "peginTxHash";
|
|
885
|
+
readonly type: "bytes32";
|
|
886
|
+
readonly indexed: true;
|
|
887
|
+
readonly internalType: "bytes32";
|
|
888
|
+
}, {
|
|
889
|
+
readonly name: "depositor";
|
|
890
|
+
readonly type: "address";
|
|
891
|
+
readonly indexed: true;
|
|
892
|
+
readonly internalType: "address";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "vaultProvider";
|
|
895
|
+
readonly type: "address";
|
|
896
|
+
readonly indexed: false;
|
|
897
|
+
readonly internalType: "address";
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "amount";
|
|
900
|
+
readonly type: "uint256";
|
|
901
|
+
readonly indexed: false;
|
|
902
|
+
readonly internalType: "uint256";
|
|
903
|
+
}, {
|
|
904
|
+
readonly name: "vaultCoreVersion";
|
|
905
|
+
readonly type: "uint16";
|
|
906
|
+
readonly indexed: false;
|
|
907
|
+
readonly internalType: "uint16";
|
|
908
|
+
}, {
|
|
909
|
+
readonly name: "universalChallengersVersion";
|
|
910
|
+
readonly type: "uint16";
|
|
911
|
+
readonly indexed: false;
|
|
912
|
+
readonly internalType: "uint16";
|
|
913
|
+
}, {
|
|
914
|
+
readonly name: "appVaultKeepersVersion";
|
|
915
|
+
readonly type: "uint16";
|
|
916
|
+
readonly indexed: false;
|
|
917
|
+
readonly internalType: "uint16";
|
|
918
|
+
}, {
|
|
919
|
+
readonly name: "proverCircuitVersion";
|
|
920
|
+
readonly type: "uint16";
|
|
921
|
+
readonly indexed: false;
|
|
922
|
+
readonly internalType: "uint16";
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "offchainParamsVersion";
|
|
925
|
+
readonly type: "uint16";
|
|
926
|
+
readonly indexed: false;
|
|
927
|
+
readonly internalType: "uint16";
|
|
928
|
+
}, {
|
|
929
|
+
readonly name: "referralCode";
|
|
930
|
+
readonly type: "uint32";
|
|
931
|
+
readonly indexed: false;
|
|
932
|
+
readonly internalType: "uint32";
|
|
933
|
+
}, {
|
|
934
|
+
readonly name: "depositorPayoutBtcAddress";
|
|
935
|
+
readonly type: "bytes";
|
|
936
|
+
readonly indexed: false;
|
|
937
|
+
readonly internalType: "bytes";
|
|
938
|
+
}, {
|
|
939
|
+
readonly name: "depositorWotsPkHash";
|
|
940
|
+
readonly type: "bytes32";
|
|
941
|
+
readonly indexed: false;
|
|
942
|
+
readonly internalType: "bytes32";
|
|
943
|
+
}, {
|
|
944
|
+
readonly name: "hashlock";
|
|
945
|
+
readonly type: "bytes32";
|
|
946
|
+
readonly indexed: false;
|
|
947
|
+
readonly internalType: "bytes32";
|
|
948
|
+
}, {
|
|
949
|
+
readonly name: "btcPopSignature";
|
|
950
|
+
readonly type: "bytes";
|
|
951
|
+
readonly indexed: false;
|
|
952
|
+
readonly internalType: "bytes";
|
|
953
|
+
}, {
|
|
954
|
+
readonly name: "htlcVout";
|
|
955
|
+
readonly type: "uint8";
|
|
956
|
+
readonly indexed: false;
|
|
957
|
+
readonly internalType: "uint8";
|
|
958
|
+
}, {
|
|
959
|
+
readonly name: "unsignedPrePeginTx";
|
|
960
|
+
readonly type: "bytes";
|
|
961
|
+
readonly indexed: false;
|
|
962
|
+
readonly internalType: "bytes";
|
|
963
|
+
}, {
|
|
964
|
+
readonly name: "depositorSignedPeginTx";
|
|
965
|
+
readonly type: "bytes";
|
|
966
|
+
readonly indexed: false;
|
|
967
|
+
readonly internalType: "bytes";
|
|
968
|
+
}, {
|
|
969
|
+
readonly name: "vpKeyEpoch";
|
|
970
|
+
readonly type: "uint64";
|
|
971
|
+
readonly indexed: false;
|
|
972
|
+
readonly internalType: "uint64";
|
|
973
|
+
}, {
|
|
974
|
+
readonly name: "appKeeperKeyEpoch";
|
|
975
|
+
readonly type: "uint64";
|
|
976
|
+
readonly indexed: false;
|
|
977
|
+
readonly internalType: "uint64";
|
|
978
|
+
}, {
|
|
979
|
+
readonly name: "ucKeyEpoch";
|
|
980
|
+
readonly type: "uint64";
|
|
981
|
+
readonly indexed: false;
|
|
982
|
+
readonly internalType: "uint64";
|
|
983
|
+
}, {
|
|
984
|
+
readonly name: "maxAcceptableCommissionBps";
|
|
985
|
+
readonly type: "uint16";
|
|
986
|
+
readonly indexed: false;
|
|
987
|
+
readonly internalType: "uint16";
|
|
988
|
+
}];
|
|
989
|
+
readonly anonymous: false;
|
|
764
990
|
}];
|
|
765
991
|
//# sourceMappingURL=BTCVaultRegistry.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BTCVaultRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/BTCVaultRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH
|
|
1
|
+
{"version":3,"file":"BTCVaultRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/BTCVaultRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAg6BtB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../BTCVaultRegistry.abi-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../BTCVaultRegistry.abi-BJnjzEWD.cjs"),e=require("../../../BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs"),n=[{type:"function",name:"getVaultKeepersByVersion",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"versionNumber",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"getCurrentVaultKeepers",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"getCurrentVaultKeepersVersion",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getCurrentOperationBtcKey",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"keeperAdmin",type:"address",internalType:"address"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getOperationBtcKeyAtEpochOrGenesis",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"keeperAdmin",type:"address",internalType:"address"},{name:"epoch",type:"uint64",internalType:"uint64"},{name:"rosterGenesisKey",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getPayoutScriptAtEpoch",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"keeperAdmin",type:"address",internalType:"address"},{name:"epoch",type:"uint64",internalType:"uint64"}],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"}],i=[{type:"function",name:"activeVaultCoreVersion",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getTBVProtocolParams",inputs:[],outputs:[{name:"",type:"tuple",internalType:"struct IProtocolParams.TBVProtocolParams",components:[{name:"minimumPegInAmount",type:"uint64",internalType:"uint64"},{name:"maxPegInAmount",type:"uint64",internalType:"uint64"},{name:"pegInAckTimeout",type:"uint64",internalType:"uint64"},{name:"pegInActivationTimeout",type:"uint64",internalType:"uint64"},{name:"maxHtlcOutputCount",type:"uint8",internalType:"uint8"},{name:"expiredPegInGraceBlocks",type:"uint64",internalType:"uint64"}]}],stateMutability:"view"},{type:"function",name:"getLatestOffchainParams",inputs:[],outputs:[{name:"",type:"tuple",internalType:"struct IProtocolParams.VersionedOffchainParams",components:[{name:"timelockAssert",type:"uint256",internalType:"uint256"},{name:"timelockChallengeAssert",type:"uint256",internalType:"uint256"},{name:"securityCouncilKeys",type:"bytes32[]",internalType:"bytes32[]"},{name:"councilQuorum",type:"uint8",internalType:"uint8"},{name:"feeRate",type:"uint64",internalType:"uint64"},{name:"babeTotalInstances",type:"uint16",internalType:"uint16"},{name:"babeInstancesToFinalize",type:"uint8",internalType:"uint8"},{name:"minVpCommissionBps",type:"uint16",internalType:"uint16"},{name:"tRefund",type:"uint32",internalType:"uint32"},{name:"tStale",type:"uint32",internalType:"uint32"},{name:"minPeginFeeRate",type:"uint64",internalType:"uint64"},{name:"proverCircuitVersion",type:"uint16",internalType:"uint16"},{name:"minPrepeginDepth",type:"uint32",internalType:"uint32"}]}],stateMutability:"view"},{type:"function",name:"getOffchainParamsByVersion",inputs:[{name:"versionNumber",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"tuple",internalType:"struct IProtocolParams.VersionedOffchainParams",components:[{name:"timelockAssert",type:"uint256",internalType:"uint256"},{name:"timelockChallengeAssert",type:"uint256",internalType:"uint256"},{name:"securityCouncilKeys",type:"bytes32[]",internalType:"bytes32[]"},{name:"councilQuorum",type:"uint8",internalType:"uint8"},{name:"feeRate",type:"uint64",internalType:"uint64"},{name:"babeTotalInstances",type:"uint16",internalType:"uint16"},{name:"babeInstancesToFinalize",type:"uint8",internalType:"uint8"},{name:"minVpCommissionBps",type:"uint16",internalType:"uint16"},{name:"tRefund",type:"uint32",internalType:"uint32"},{name:"tStale",type:"uint32",internalType:"uint32"},{name:"minPeginFeeRate",type:"uint64",internalType:"uint64"},{name:"proverCircuitVersion",type:"uint16",internalType:"uint16"},{name:"minPrepeginDepth",type:"uint32",internalType:"uint32"}]}],stateMutability:"view"},{type:"function",name:"latestOffchainParamsVersion",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getUniversalChallengersByVersion",inputs:[{name:"versionNumber",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"getCurrentUniversalChallengers",inputs:[],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"latestUniversalChallengersVersion",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getCurrentOperationBtcKey",inputs:[{name:"ucAdmin",type:"address",internalType:"address"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getOperationBtcKeyAtEpochOrGenesis",inputs:[{name:"ucAdmin",type:"address",internalType:"address"},{name:"epoch",type:"uint64",internalType:"uint64"},{name:"rosterGenesisKey",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"peginActivationDelay",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"}];exports.BTCVaultRegistryABI=t.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=e.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=e.CONTRACT_ERRORS;exports.extractErrorData=e.extractErrorData;exports.getContractErrorMessage=e.getContractErrorMessage;exports.handleContractError=e.handleContractError;exports.isKnownContractError=e.isKnownContractError;exports.ApplicationRegistryABI=n;exports.ProtocolParamsABI=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as a } from "../../../BTCVaultRegistry.abi-
|
|
1
|
+
import { B as a } from "../../../BTCVaultRegistry.abi-BT3eo60h.js";
|
|
2
2
|
import { B as s, C as y, e as r, g as u, h as l, i as m } from "../../../BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js";
|
|
3
3
|
const e = [
|
|
4
4
|
{
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The depositor's commission ceiling (`maxAcceptableCommissionBps`) policy:
|
|
3
3
|
* quoted VP commission + drift headroom, capped below the contract's
|
|
4
|
-
* exclusive bound. Shared by the
|
|
5
|
-
*
|
|
4
|
+
* exclusive bound. Shared by `PeginManager` (the approved terms) and the
|
|
5
|
+
* registration calldata so both carry the same ceiling; a resume rebuild reads
|
|
6
|
+
* that submitted value back from the `PegInSubmittedV2` log instead.
|
|
6
7
|
*
|
|
7
8
|
* @module deposit-terms/commissionCeiling
|
|
8
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commissionCeiling.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/commissionCeiling.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"commissionCeiling.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/commissionCeiling.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmBjE"}
|