@babylonlabs-io/ts-sdk 0.56.1 → 0.57.1
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-AUAyCHal.cjs +2 -0
- package/dist/BTCVaultRegistry.abi-AUAyCHal.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-Chs4AFBj.js → BTCVaultRegistry.abi-CixOlp3B.js} +73 -14
- package/dist/BTCVaultRegistry.abi-CixOlp3B.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js +111 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js.map +1 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs +2 -0
- package/dist/BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs.map +1 -0
- package/dist/{PeginManager-Ba7Cr51Z.js → PeginManager-CnX3uFb0.js} +5 -5
- package/dist/{PeginManager-Ba7Cr51Z.js.map → PeginManager-CnX3uFb0.js.map} +1 -1
- package/dist/PeginManager-iDbqXsKD.cjs +2 -0
- package/dist/{PeginManager-CcjGRo4O.cjs.map → PeginManager-iDbqXsKD.cjs.map} +1 -1
- package/dist/ProtocolParams.abi-C8U7BHCS.cjs +2 -0
- package/dist/ProtocolParams.abi-C8U7BHCS.cjs.map +1 -0
- package/dist/{ApplicationRegistry.abi-w5prf7Ig.js → ProtocolParams.abi-CV938AYZ.js} +150 -80
- package/dist/ProtocolParams.abi-CV938AYZ.js.map +1 -0
- package/dist/batchPoll-BXIy3R7h.cjs +2 -0
- package/dist/batchPoll-BXIy3R7h.cjs.map +1 -0
- package/dist/{primeVpAuth-Caa5J_uv.js → batchPoll-DTYXoTEc.js} +515 -403
- package/dist/batchPoll-DTYXoTEc.js.map +1 -0
- package/dist/buildAndBroadcastRefund-4uAl7OIk.cjs +2 -0
- package/dist/buildAndBroadcastRefund-4uAl7OIk.cjs.map +1 -0
- package/dist/{buildAndBroadcastRefund-BtXUqBkb.js → buildAndBroadcastRefund-Bo3AlqCk.js} +627 -452
- package/dist/buildAndBroadcastRefund-Bo3AlqCk.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +168 -157
- package/dist/index.js.map +1 -1
- package/dist/json-rpc-client-BiAmg_ho.cjs +2 -0
- package/dist/json-rpc-client-BiAmg_ho.cjs.map +1 -0
- package/dist/json-rpc-client-DuUARJvV.js +334 -0
- package/dist/json-rpc-client-DuUARJvV.js.map +1 -0
- package/dist/mempoolApi-C0olk43O.js +536 -0
- package/dist/mempoolApi-C0olk43O.js.map +1 -0
- package/dist/mempoolApi-Dsm2VPXp.cjs +2 -0
- package/dist/mempoolApi-Dsm2VPXp.cjs.map +1 -0
- package/dist/{noPayout-CihCk1HE.js → noPayout-CI4l1qu2.js} +2 -2
- package/dist/{noPayout-CihCk1HE.js.map → noPayout-CI4l1qu2.js.map} +1 -1
- package/dist/{noPayout-Cb8vFrkY.cjs → noPayout-Djrv31V5.cjs} +2 -2
- package/dist/{noPayout-Cb8vFrkY.cjs.map → noPayout-Djrv31V5.cjs.map} +1 -1
- package/dist/onChainBtcPubkey-Cd9kpz-S.cjs +2 -0
- package/dist/onChainBtcPubkey-Cd9kpz-S.cjs.map +1 -0
- package/dist/onChainBtcPubkey-aPY5ib3Q.js +19 -0
- package/dist/onChainBtcPubkey-aPY5ib3Q.js.map +1 -0
- package/dist/signPsbtsWithFallback-C01N6Kdo.cjs +2 -0
- package/dist/signPsbtsWithFallback-C01N6Kdo.cjs.map +1 -0
- package/dist/{PayoutManager-BVgmuKuK.js → signPsbtsWithFallback-CzZFZf0I.js} +105 -101
- package/dist/signPsbtsWithFallback-CzZFZf0I.js.map +1 -0
- package/dist/tbv/core/clients/eth/index.d.ts +5 -3
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts +16 -0
- package/dist/tbv/core/clients/eth/onChainBtcPubkey.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts +33 -0
- package/dist/tbv/core/clients/eth/operation-key-reader.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/types.d.ts +122 -3
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +25 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +36 -32
- package/dist/tbv/core/clients/index.js.map +1 -1
- package/dist/tbv/core/clients/vault-provider/index.d.ts +4 -4
- package/dist/tbv/core/clients/vault-provider/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/json-rpc-client.d.ts +36 -14
- package/dist/tbv/core/clients/vault-provider/json-rpc-client.d.ts.map +1 -1
- package/dist/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.d.ts +2 -0
- package/dist/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts +66 -0
- package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +50 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.d.ts +111 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.d.ts.map +1 -0
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +36 -0
- package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.d.ts +2 -1
- package/dist/tbv/core/contracts/index.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.js +8 -6
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +167 -156
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/PayoutManager.d.ts +8 -0
- package/dist/tbv/core/managers/PayoutManager.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.js +2 -2
- package/dist/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.d.ts +2 -0
- package/dist/tbv/core/primitives/psbt/__tests__/standardPayoutScript.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts +5 -5
- package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/payout.d.ts +23 -0
- package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/standardPayoutScript.d.ts +41 -0
- package/dist/tbv/core/primitives/psbt/standardPayoutScript.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/deposit/__tests__/verifyRegisteredParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/index.d.ts +7 -6
- package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +10 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +9 -0
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts +38 -1
- package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/verifyRegisteredParticipantKeys.d.ts +42 -0
- package/dist/tbv/core/services/deposit/verifyRegisteredParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.d.ts +1 -0
- package/dist/tbv/core/services/index.d.ts.map +1 -1
- package/dist/tbv/core/services/index.js +36 -31
- package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts +55 -0
- package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/__tests__/resolveParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/participants/__tests__/resolveParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/index.d.ts +8 -0
- package/dist/tbv/core/services/participants/index.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts +26 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/types.d.ts +62 -0
- package/dist/tbv/core/services/participants/types.d.ts.map +1 -0
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +167 -156
- package/dist/tbv/index.js.map +1 -1
- package/dist/verifyScriptPathSchnorrSignature-C-84KJ6U.cjs +2 -0
- package/dist/verifyScriptPathSchnorrSignature-C-84KJ6U.cjs.map +1 -0
- package/dist/{verifyScriptPathSchnorrSignature-CgrnAjMW.js → verifyScriptPathSchnorrSignature-Xoo9DOHW.js} +359 -301
- package/dist/verifyScriptPathSchnorrSignature-Xoo9DOHW.js.map +1 -0
- package/package.json +1 -1
- package/dist/ApplicationRegistry.abi-CLaa6E99.cjs +0 -2
- package/dist/ApplicationRegistry.abi-CLaa6E99.cjs.map +0 -1
- package/dist/ApplicationRegistry.abi-w5prf7Ig.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-Chs4AFBj.js.map +0 -1
- package/dist/BTCVaultRegistry.abi-JdeqLz4x.cjs +0 -2
- package/dist/BTCVaultRegistry.abi-JdeqLz4x.cjs.map +0 -1
- package/dist/PayoutManager-BVgmuKuK.js.map +0 -1
- package/dist/PayoutManager-Cu4_l-_Y.cjs +0 -2
- package/dist/PayoutManager-Cu4_l-_Y.cjs.map +0 -1
- package/dist/PeginManager-CcjGRo4O.cjs +0 -2
- package/dist/buildAndBroadcastRefund-BtXUqBkb.js.map +0 -1
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs +0 -2
- package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs.map +0 -1
- package/dist/mempoolApi-DkyKmmgI.cjs +0 -2
- package/dist/mempoolApi-DkyKmmgI.cjs.map +0 -1
- package/dist/mempoolApi-lpJdvPkK.js +0 -483
- package/dist/mempoolApi-lpJdvPkK.js.map +0 -1
- package/dist/primeVpAuth-Caa5J_uv.js.map +0 -1
- package/dist/primeVpAuth-y-4A88ah.cjs +0 -2
- package/dist/primeVpAuth-y-4A88ah.cjs.map +0 -1
- package/dist/types-CQDRQvV-.js +0 -324
- package/dist/types-CQDRQvV-.js.map +0 -1
- package/dist/types-WA0LrDk1.cjs +0 -2
- package/dist/types-WA0LrDk1.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs +0 -2
- package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAMzC,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,MAAM,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,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AAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC/D,oCAAoC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD;AAMD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,uBAAuB,EAAE,OAAO,CAAC;IACjC;;;;;;;OAOG;IACH,6BAA6B,EAAE,GAAG,CAAC;IACnC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sEAAsE;IACtE,YAAY,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC3C,0EAA0E;IAC1E,oBAAoB,EAAE,SAAS,iBAAiB,EAAE,CAAC;CACpD;AAED,kFAAkF;AAClF,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,GAAG,CAAC;IACnB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,oBAAoB,EAAE,GAAG,EAAE,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,GAAG,CAAC;IACnB,YAAY,EAAE,GAAG,EAAE,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7E;;;OAGG;IACH,wBAAwB,CACtB,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, Hex, PublicClient } from 'viem';
|
|
2
|
-
import { OnChainBtcPubkey, VaultBasicInfo, VaultData, VaultProtocolInfo, VaultRegistryReader } from './types';
|
|
2
|
+
import { KeyEpochs, OnChainBtcPubkey, VaultBasicInfo, VaultData, VaultProtocolInfo, VaultRegistryReader } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Concrete vault registry reader using viem.
|
|
5
5
|
*
|
|
@@ -20,6 +20,30 @@ export declare class ViemVaultRegistryReader implements VaultRegistryReader {
|
|
|
20
20
|
* hex without the `0x` prefix.
|
|
21
21
|
*/
|
|
22
22
|
getVaultProviderBtcPubKey(vpAddress: Address): Promise<OnChainBtcPubkey>;
|
|
23
|
+
/**
|
|
24
|
+
* Read a vault provider's *current* RFC-006 operation BTC key.
|
|
25
|
+
*
|
|
26
|
+
* Falls back on-chain to the registration key when the provider has never
|
|
27
|
+
* rotated, so this returns the same value as `getVaultProviderBtcPubKey`
|
|
28
|
+
* until the first rotation.
|
|
29
|
+
*
|
|
30
|
+
* This is the key the VP's server signs its BIP-322 auth tokens with — a
|
|
31
|
+
* live per-operator identity, not a per-vault binding, so the auth pin uses
|
|
32
|
+
* the current key rather than any vault's frozen epoch.
|
|
33
|
+
*/
|
|
34
|
+
getCurrentVaultProviderOperationBtcKey(vpAddress: Address): Promise<OnChainBtcPubkey>;
|
|
35
|
+
/**
|
|
36
|
+
* Read a vault's frozen RFC-006 operation-key epochs.
|
|
37
|
+
*
|
|
38
|
+
* Reads `getBtcVaultProtocolInfo` through the **extended** ABI, which is only
|
|
39
|
+
* valid against an RFC-006 registry: against one that predates RFC-006 this
|
|
40
|
+
* call does not fail for a populated vault, it silently returns three words
|
|
41
|
+
* of tail data as epochs. Nothing here can detect that, so the guarantee is a
|
|
42
|
+
* deployment one — every network this ships to has the RFC-006 getters, and
|
|
43
|
+
* mainnet is a fresh RFC-006 deploy. See `BTCVaultRegistryKeyEpochs.abi.ts`.
|
|
44
|
+
*/
|
|
45
|
+
getVaultKeyEpochs(vaultId: Hex): Promise<KeyEpochs>;
|
|
46
|
+
getVaultKeyEpochsBatch(vaultIds: readonly Hex[]): Promise<KeyEpochs[]>;
|
|
23
47
|
getVaultBasicInfo(vaultId: Hex): Promise<VaultBasicInfo>;
|
|
24
48
|
getVaultProtocolInfo(vaultId: Hex): Promise<VaultProtocolInfo>;
|
|
25
49
|
getProtocolInfoBatch(vaultIds: readonly Hex[]): Promise<VaultProtocolInfo[]>;
|
|
@@ -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;
|
|
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;AAM5D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA2GjB;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,YAAW,mBAAmB;IAE/D,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,eAAe;gBADf,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,OAAO;IAGlC;;;;;OAKG;IACG,yBAAyB,CAC7B,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,gBAAgB,CAAC;IAa5B;;;;;;;;;;OAUG;IACG,sCAAsC,CAC1C,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,gBAAgB,CAAC;IAa5B;;;;;;;;;OASG;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;IA2B/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;;;;OAIG;IACG,mCAAmC,CACvC,QAAQ,EAAE,SAAS,GAAG,EAAE,GACvB,OAAO,CAAC,MAAM,EAAE,CAAC;CA4BrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../mempoolApi-Dsm2VPXp.cjs"),e=require("../../../batchPoll-BXIy3R7h.cjs"),r=require("../../../json-rpc-client-BiAmg_ho.cjs"),o=require("../../../onChainBtcPubkey-Cd9kpz-S.cjs");exports.MEMPOOL_API_URLS=t.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=t.ViemVaultRegistryReader;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.validateOffchainParams=t.validateOffchainParams;exports.validatePegInConfiguration=t.validatePegInConfiguration;exports.validateTBVProtocolParams=t.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=e.OnChainBtcVaultStatus;exports.ServerIdentityError=e.ServerIdentityError;exports.VaultProviderRpcClient=e.VaultProviderRpcClient;exports.ViemOperationKeyReader=e.ViemOperationKeyReader;exports.ViemProtocolParamsReader=e.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=e.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=e.ViemVaultKeeperReader;exports.VpResponseValidationError=e.VpResponseValidationError;exports.VpTokenRegistry=e.VpTokenRegistry;exports.batchPollByProvider=e.batchPollByProvider;exports.createAuthenticatedVpClient=e.createAuthenticatedVpClient;exports.primeVpTokenRegistry=e.primeVpTokenRegistry;exports.resolveProtocolAddresses=e.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=e.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=e.verifyServerIdentity;exports.vpTokenRegistry=e.vpTokenRegistry;exports.AUTH_REJECTED_RPC_CODE=r.AUTH_REJECTED_RPC_CODE;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;exports.isAuthRejectedError=r.isAuthRejectedError;exports.assertOnChainBtcPubkey=o.assertOnChainBtcPubkey;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,47 +1,51 @@
|
|
|
1
|
-
import { M as s, V as r, g as t, a as o, b as i, c as R, d as
|
|
2
|
-
import { O as
|
|
3
|
-
import { A as
|
|
1
|
+
import { M as s, V as r, g as t, a as o, b as i, c as R, d as n, e as d, f as T, h as p, i as S, p as l, v as E, j as P, k as V } from "../../../mempoolApi-C0olk43O.js";
|
|
2
|
+
import { O as A, S as g, V as c, g as m, h as O, i as C, j as v, a as f, d as u, b as I, f as h, p as x, r as U, v as y, c as D, e as k } from "../../../batchPoll-DTYXoTEc.js";
|
|
3
|
+
import { A as N, D as b, J as B, a as J, b as H, d as L, P as j, R as F, e as K, c as q, V as w, i as G } from "../../../json-rpc-client-DuUARJvV.js";
|
|
4
|
+
import { a as X } from "../../../onChainBtcPubkey-aPY5ib3Q.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
N as AUTH_REJECTED_RPC_CODE,
|
|
7
|
+
b as DaemonStatus,
|
|
8
|
+
B as JSON_RPC_ERROR_CODES,
|
|
9
|
+
J as JsonRpcClient,
|
|
9
10
|
H as JsonRpcError,
|
|
10
11
|
s as MEMPOOL_API_URLS,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
A as OnChainBtcVaultStatus,
|
|
13
|
+
L as POST_WOTS_STATUSES,
|
|
14
|
+
j as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
14
15
|
F as RpcErrorCode,
|
|
15
16
|
g as ServerIdentityError,
|
|
16
17
|
K as VP_BATCH_MAX_SIZE,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
q as VP_TERMINAL_FAILURE_STATUSES,
|
|
19
|
+
w as VP_TRANSIENT_STATUSES,
|
|
19
20
|
c as VaultProviderRpcClient,
|
|
20
|
-
m as
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
m as ViemOperationKeyReader,
|
|
22
|
+
O as ViemProtocolParamsReader,
|
|
23
|
+
C as ViemUniversalChallengerReader,
|
|
24
|
+
v as ViemVaultKeeperReader,
|
|
23
25
|
r as ViemVaultRegistryReader,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
f as VpResponseValidationError,
|
|
27
|
+
u as VpTokenRegistry,
|
|
28
|
+
X as assertOnChainBtcPubkey,
|
|
29
|
+
I as batchPollByProvider,
|
|
30
|
+
h as createAuthenticatedVpClient,
|
|
28
31
|
t as getAddressTxs,
|
|
29
32
|
o as getAddressUtxos,
|
|
30
33
|
i as getMempoolApiUrl,
|
|
31
34
|
R as getNetworkFees,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
n as getOutspend,
|
|
36
|
+
d as getTipHeight,
|
|
37
|
+
T as getTxHex,
|
|
38
|
+
p as getTxInfo,
|
|
39
|
+
S as getUtxoInfo,
|
|
40
|
+
G as isAuthRejectedError,
|
|
41
|
+
x as primeVpTokenRegistry,
|
|
42
|
+
l as pushTx,
|
|
43
|
+
U as resolveProtocolAddresses,
|
|
44
|
+
E as validateOffchainParams,
|
|
41
45
|
P as validatePegInConfiguration,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
y as validateRequestDepositorClaimerArtifactsResponse,
|
|
47
|
+
V as validateTBVProtocolParams,
|
|
48
|
+
D as verifyServerIdentity,
|
|
49
|
+
k as vpTokenRegistry
|
|
46
50
|
};
|
|
47
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { VaultProviderRpcClient } from './api';
|
|
2
2
|
export type { VaultProviderRpcClientOptions } from './api';
|
|
3
|
-
export
|
|
4
|
-
export type { BearerTokenProvider, JsonRpcClientConfig, JsonRpcErrorSource, } from './json-rpc-client';
|
|
5
|
-
export { VpResponseValidationError, validateRequestDepositorClaimerArtifactsResponse, } from './validators';
|
|
3
|
+
export * from './auth';
|
|
6
4
|
export type { BatchResultEntry } from './batchAttribution';
|
|
7
5
|
export { batchPollByProvider, type BatchPollByProviderOptions, } from './batchPoll';
|
|
6
|
+
export { AUTH_REJECTED_RPC_CODE, JSON_RPC_ERROR_CODES, JsonRpcClient, JsonRpcError, isAuthRejectedError, } from './json-rpc-client';
|
|
7
|
+
export type { BearerTokenProvider, JsonRpcClientConfig, JsonRpcErrorSource, } from './json-rpc-client';
|
|
8
8
|
export * from './types';
|
|
9
|
-
export
|
|
9
|
+
export { VpResponseValidationError, validateRequestDepositorClaimerArtifactsResponse, } from './validators';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/vault-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAC/C,YAAY,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC3D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/vault-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAC/C,YAAY,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC3D,cAAc,QAAQ,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,gDAAgD,GACjD,MAAM,cAAc,CAAC"}
|
|
@@ -27,7 +27,7 @@ export interface JsonRpcErrorResponse {
|
|
|
27
27
|
export type JsonRpcResponse<T = unknown> = JsonRpcSuccessResponse<T> | JsonRpcErrorResponse;
|
|
28
28
|
/**
|
|
29
29
|
* Injects bearer tokens into requests for auth-gated methods, and is
|
|
30
|
-
* notified
|
|
30
|
+
* notified when the server rejects a bearer so it can invalidate its cache.
|
|
31
31
|
*
|
|
32
32
|
* The `JsonRpcClient` is agnostic to which methods are auth-gated —
|
|
33
33
|
* the provider's `getToken(method)` decides. Returning `null` means
|
|
@@ -73,8 +73,9 @@ export interface JsonRpcClientConfig {
|
|
|
73
73
|
/**
|
|
74
74
|
* Per-request bearer-token source. A non-null return attaches
|
|
75
75
|
* `Authorization: Bearer <token>`; `null` skips auth. `call`
|
|
76
|
-
* additionally retries once
|
|
77
|
-
* refetch + retry)
|
|
76
|
+
* additionally retries once when the server rejects the bearer
|
|
77
|
+
* (invalidate + refetch + retry) — see {@link isAuthRejectedError}.
|
|
78
|
+
* `callRaw` skips reactive refresh.
|
|
78
79
|
*/
|
|
79
80
|
tokenProvider?: BearerTokenProvider;
|
|
80
81
|
}
|
|
@@ -104,16 +105,37 @@ export declare const JSON_RPC_ERROR_CODES: {
|
|
|
104
105
|
readonly RESPONSE_TOO_LARGE: -32701;
|
|
105
106
|
};
|
|
106
107
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* JSON-RPC error code the vault provider returns for every bearer-token
|
|
109
|
+
* rejection: expired, not-yet-valid, missing bearer, invalid signature,
|
|
110
|
+
* invalid claims, invalid structure, subject mismatch, issuer mismatch.
|
|
111
|
+
* All eight variants collapse onto this one code, distinguished only by
|
|
112
|
+
* message text — see btc-vault `crates/btc-auth/src/rpc.rs`
|
|
113
|
+
* (`auth_error_to_rpc_error`). Operationally they all mean the same
|
|
114
|
+
* thing: this bearer is dead, mint a new one.
|
|
110
115
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* checks.
|
|
116
|
+
* Numerically equal to {@link JSON_RPC_ERROR_CODES.NETWORK}, which this
|
|
117
|
+
* client throws for local network failures. `source` is what separates
|
|
118
|
+
* them — see {@link isAuthRejectedError}.
|
|
115
119
|
*/
|
|
116
|
-
export declare const
|
|
120
|
+
export declare const AUTH_REJECTED_RPC_CODE = -32001;
|
|
121
|
+
/**
|
|
122
|
+
* True when `error` is the vault provider rejecting our bearer token.
|
|
123
|
+
*
|
|
124
|
+
* Classified on the error code, which is the only thing the server
|
|
125
|
+
* guarantees: its auth errors carry `data: null` unconditionally
|
|
126
|
+
* (`rpc_error` passes `None::<()>`), so any predicate keyed on an
|
|
127
|
+
* `error.data` field can never match a real response.
|
|
128
|
+
*
|
|
129
|
+
* `source === "wire"` is load-bearing: this client reuses -32001
|
|
130
|
+
* internally as {@link JSON_RPC_ERROR_CODES.NETWORK}, always with
|
|
131
|
+
* source "local".
|
|
132
|
+
*
|
|
133
|
+
* Known, bounded collision: the vault-provider proxy reuses -32001 for
|
|
134
|
+
* "Provider not found". A call to a deregistered provider therefore
|
|
135
|
+
* costs one wasted token-mint round-trip, which fails against the same
|
|
136
|
+
* registry check and surfaces the same message.
|
|
137
|
+
*/
|
|
138
|
+
export declare function isAuthRejectedError(error: unknown): boolean;
|
|
117
139
|
/**
|
|
118
140
|
* Generic JSON-RPC 2.0 HTTP client with safe retry policy.
|
|
119
141
|
*/
|
|
@@ -132,9 +154,9 @@ export declare class JsonRpcClient {
|
|
|
132
154
|
/**
|
|
133
155
|
* Make a JSON-RPC request with optional retry for safe methods.
|
|
134
156
|
*
|
|
135
|
-
* If the
|
|
136
|
-
*
|
|
137
|
-
*
|
|
157
|
+
* If the server rejects the bearer token and a `tokenProvider` is
|
|
158
|
+
* configured, the client invalidates its cached token and retries the
|
|
159
|
+
* request once with a freshly-acquired bearer.
|
|
138
160
|
*
|
|
139
161
|
* @param method - The RPC method name
|
|
140
162
|
* @param params - The method parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-rpc-client.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/vault-provider/json-rpc-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;IACV,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC,GAAG,OAAO;IACjD,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;IACV,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;IACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,OAAO,IACnC,sBAAsB,CAAC,CAAC,CAAC,GACzB,oBAAoB,CAAC;AAEzB;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD;;;OAGG;IACH,UAAU,IAAI,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C
|
|
1
|
+
{"version":3,"file":"json-rpc-client.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/vault-provider/json-rpc-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;IACV,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC,GAAG,OAAO;IACjD,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;IACV,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;IACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,OAAO,IACnC,sBAAsB,CAAC,CAAC,CAAC,GACzB,oBAAoB,CAAC;AAEzB;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD;;;OAGG;IACH,UAAU,IAAI,IAAI,CAAC;CACpB;AAED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B;IACxC,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAA8B;IAClD,OAAO,CAAC,aAAa,CAAC,CAAsB;gBAEhC,MAAM,EAAE,mBAAmB;YAkBzB,YAAY;IAe1B;;;;;;;;;;;;OAYG;IACG,IAAI,CAAC,OAAO,EAAE,OAAO,EACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,CAAC;YA0CL,QAAQ;IAqEtB;;;;;;;;;OASG;IACG,OAAO,CAAC,OAAO,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,QAAQ,CAAC;YAIN,cAAc;IA+G5B,OAAO,CAAC,KAAK;IAkBb,UAAU,IAAI,MAAM;CAGrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BTCVaultRegistryKeyEpochs.abi.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/__tests__/BTCVaultRegistryKeyEpochs.abi.test.ts"],"names":[],"mappings":""}
|
|
@@ -70,5 +70,71 @@ export declare const ApplicationRegistryABI: readonly [{
|
|
|
70
70
|
readonly internalType: "uint16";
|
|
71
71
|
}];
|
|
72
72
|
readonly stateMutability: "view";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly name: "getCurrentOperationBtcKey";
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly name: "appEntryPoint";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "keeperAdmin";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "bytes32";
|
|
88
|
+
readonly internalType: "bytes32";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "view";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "getOperationBtcKeyAtEpochOrGenesis";
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly name: "appEntryPoint";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "keeperAdmin";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "epoch";
|
|
104
|
+
readonly type: "uint64";
|
|
105
|
+
readonly internalType: "uint64";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "rosterGenesisKey";
|
|
108
|
+
readonly type: "bytes32";
|
|
109
|
+
readonly internalType: "bytes32";
|
|
110
|
+
}];
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "";
|
|
113
|
+
readonly type: "bytes32";
|
|
114
|
+
readonly internalType: "bytes32";
|
|
115
|
+
}];
|
|
116
|
+
readonly stateMutability: "view";
|
|
117
|
+
}, {
|
|
118
|
+
readonly type: "function";
|
|
119
|
+
readonly name: "getPayoutScriptAtEpoch";
|
|
120
|
+
readonly inputs: readonly [{
|
|
121
|
+
readonly name: "appEntryPoint";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "keeperAdmin";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "epoch";
|
|
130
|
+
readonly type: "uint64";
|
|
131
|
+
readonly internalType: "uint64";
|
|
132
|
+
}];
|
|
133
|
+
readonly outputs: readonly [{
|
|
134
|
+
readonly name: "";
|
|
135
|
+
readonly type: "bytes";
|
|
136
|
+
readonly internalType: "bytes";
|
|
137
|
+
}];
|
|
138
|
+
readonly stateMutability: "view";
|
|
73
139
|
}];
|
|
74
140
|
//# sourceMappingURL=ApplicationRegistry.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"ApplicationRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIzB,CAAC"}
|
|
@@ -231,6 +231,56 @@ export declare const BTCVaultRegistryABI: readonly [{
|
|
|
231
231
|
readonly internalType: "bytes32";
|
|
232
232
|
}];
|
|
233
233
|
readonly stateMutability: "view";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly name: "getCurrentOperationBtcKey";
|
|
237
|
+
readonly inputs: readonly [{
|
|
238
|
+
readonly name: "provider";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
}];
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "bytes32";
|
|
245
|
+
readonly internalType: "bytes32";
|
|
246
|
+
}];
|
|
247
|
+
readonly stateMutability: "view";
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "function";
|
|
250
|
+
readonly name: "getOperationBtcKeyAtEpoch";
|
|
251
|
+
readonly inputs: readonly [{
|
|
252
|
+
readonly name: "provider";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "epoch";
|
|
257
|
+
readonly type: "uint64";
|
|
258
|
+
readonly internalType: "uint64";
|
|
259
|
+
}];
|
|
260
|
+
readonly outputs: readonly [{
|
|
261
|
+
readonly name: "";
|
|
262
|
+
readonly type: "bytes32";
|
|
263
|
+
readonly internalType: "bytes32";
|
|
264
|
+
}];
|
|
265
|
+
readonly stateMutability: "view";
|
|
266
|
+
}, {
|
|
267
|
+
readonly type: "function";
|
|
268
|
+
readonly name: "getPayoutScriptAtEpoch";
|
|
269
|
+
readonly inputs: readonly [{
|
|
270
|
+
readonly name: "provider";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
readonly internalType: "address";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "epoch";
|
|
275
|
+
readonly type: "uint64";
|
|
276
|
+
readonly internalType: "uint64";
|
|
277
|
+
}];
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly name: "";
|
|
280
|
+
readonly type: "bytes";
|
|
281
|
+
readonly internalType: "bytes";
|
|
282
|
+
}];
|
|
283
|
+
readonly stateMutability: "view";
|
|
234
284
|
}, {
|
|
235
285
|
readonly type: "function";
|
|
236
286
|
readonly name: "getVaultProviderCommission";
|
|
@@ -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;;;GAGG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"BTCVaultRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/BTCVaultRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsnBtB,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BTCVaultRegistry ABI — RFC-006 key-epoch view of `getBtcVaultProtocolInfo`.
|
|
3
|
+
*
|
|
4
|
+
* This is a deliberate second copy of a single function entry, NOT a
|
|
5
|
+
* convenience re-export, and it must never be merged into
|
|
6
|
+
* `BTCVaultRegistryABI`.
|
|
7
|
+
*
|
|
8
|
+
* `getBtcVaultProtocolInfo` returns a *positional* tuple. RFC-006 appended
|
|
9
|
+
* three `uint64` epoch fields (`vpKeyEpoch`, `appKeeperKeyEpoch`,
|
|
10
|
+
* `ucKeyEpoch`) after `vaultCoreVersion`. Declaring those three components
|
|
11
|
+
* against a registry that predates RFC-006 makes viem read past the end of
|
|
12
|
+
* the returndata and throw — and because the shared reader batches this call
|
|
13
|
+
* through `multicall({ allowFailure: false })`, one bad decode fails the
|
|
14
|
+
* whole batch. That would break vault status, resume, payout and refund
|
|
15
|
+
* app-wide, on every network whose registry has not been upgraded yet.
|
|
16
|
+
*
|
|
17
|
+
* So the shared `BTCVaultRegistryABI` keeps the 13-field shape that decodes
|
|
18
|
+
* against every deployed registry, and the extended shape lives here, read
|
|
19
|
+
* only by `ViemVaultRegistryReader.getVaultKeyEpochs*` on the epoch-aware
|
|
20
|
+
* path. Reading the same call through two ABIs is the price of keeping the
|
|
21
|
+
* shared decode path independent of the registry version.
|
|
22
|
+
*
|
|
23
|
+
* The 13 shared components must stay an exact prefix of the 16 below;
|
|
24
|
+
* `__tests__/abi-key-epochs.test.ts` pins that.
|
|
25
|
+
*
|
|
26
|
+
* Generated from vault-contracts-aave-v4
|
|
27
|
+
* `src/protocol/lib/types/BTCVaultRegistryTypes.sol`.
|
|
28
|
+
*
|
|
29
|
+
* @module contracts/abis/BTCVaultRegistryKeyEpochs
|
|
30
|
+
*/
|
|
31
|
+
export declare const BTCVaultRegistryKeyEpochsABI: readonly [{
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "getBtcVaultProtocolInfo";
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly name: "vaultId";
|
|
36
|
+
readonly type: "bytes32";
|
|
37
|
+
readonly internalType: "bytes32";
|
|
38
|
+
}];
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly name: "vProtocol";
|
|
41
|
+
readonly type: "tuple";
|
|
42
|
+
readonly internalType: "struct BTCVaultRegistryTypes.BTCVaultProtocolInfo";
|
|
43
|
+
readonly components: readonly [{
|
|
44
|
+
readonly name: "depositorSignedPeginTx";
|
|
45
|
+
readonly type: "bytes";
|
|
46
|
+
readonly internalType: "bytes";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "universalChallengersVersion";
|
|
49
|
+
readonly type: "uint16";
|
|
50
|
+
readonly internalType: "uint16";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "appVaultKeepersVersion";
|
|
53
|
+
readonly type: "uint16";
|
|
54
|
+
readonly internalType: "uint16";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "offchainParamsVersion";
|
|
57
|
+
readonly type: "uint16";
|
|
58
|
+
readonly internalType: "uint16";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "verifiedAt";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "depositorWotsPkHash";
|
|
65
|
+
readonly type: "bytes32";
|
|
66
|
+
readonly internalType: "bytes32";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "hashlock";
|
|
69
|
+
readonly type: "bytes32";
|
|
70
|
+
readonly internalType: "bytes32";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "htlcVout";
|
|
73
|
+
readonly type: "uint8";
|
|
74
|
+
readonly internalType: "uint8";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "depositorPopSignature";
|
|
77
|
+
readonly type: "bytes";
|
|
78
|
+
readonly internalType: "bytes";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "prePeginTxHash";
|
|
81
|
+
readonly type: "bytes32";
|
|
82
|
+
readonly internalType: "bytes32";
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "vaultProviderCommissionBps";
|
|
85
|
+
readonly type: "uint16";
|
|
86
|
+
readonly internalType: "uint16";
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "claimExpiredUntil";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "vaultCoreVersion";
|
|
93
|
+
readonly type: "uint16";
|
|
94
|
+
readonly internalType: "uint16";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "vpKeyEpoch";
|
|
97
|
+
readonly type: "uint64";
|
|
98
|
+
readonly internalType: "uint64";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "appKeeperKeyEpoch";
|
|
101
|
+
readonly type: "uint64";
|
|
102
|
+
readonly internalType: "uint64";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "ucKeyEpoch";
|
|
105
|
+
readonly type: "uint64";
|
|
106
|
+
readonly internalType: "uint64";
|
|
107
|
+
}];
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
}];
|
|
111
|
+
//# sourceMappingURL=BTCVaultRegistryKeyEpochs.abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BTCVaultRegistryKeyEpochs.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/BTCVaultRegistryKeyEpochs.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0G/B,CAAC"}
|
|
@@ -243,5 +243,41 @@ export declare const ProtocolParamsABI: readonly [{
|
|
|
243
243
|
readonly internalType: "uint16";
|
|
244
244
|
}];
|
|
245
245
|
readonly stateMutability: "view";
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
readonly name: "getCurrentOperationBtcKey";
|
|
249
|
+
readonly inputs: readonly [{
|
|
250
|
+
readonly name: "ucAdmin";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
}];
|
|
254
|
+
readonly outputs: readonly [{
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "bytes32";
|
|
257
|
+
readonly internalType: "bytes32";
|
|
258
|
+
}];
|
|
259
|
+
readonly stateMutability: "view";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "function";
|
|
262
|
+
readonly name: "getOperationBtcKeyAtEpochOrGenesis";
|
|
263
|
+
readonly inputs: readonly [{
|
|
264
|
+
readonly name: "ucAdmin";
|
|
265
|
+
readonly type: "address";
|
|
266
|
+
readonly internalType: "address";
|
|
267
|
+
}, {
|
|
268
|
+
readonly name: "epoch";
|
|
269
|
+
readonly type: "uint64";
|
|
270
|
+
readonly internalType: "uint64";
|
|
271
|
+
}, {
|
|
272
|
+
readonly name: "rosterGenesisKey";
|
|
273
|
+
readonly type: "bytes32";
|
|
274
|
+
readonly internalType: "bytes32";
|
|
275
|
+
}];
|
|
276
|
+
readonly outputs: readonly [{
|
|
277
|
+
readonly name: "";
|
|
278
|
+
readonly type: "bytes32";
|
|
279
|
+
readonly internalType: "bytes32";
|
|
280
|
+
}];
|
|
281
|
+
readonly stateMutability: "view";
|
|
246
282
|
}];
|
|
247
283
|
//# sourceMappingURL=ProtocolParams.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolParams.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ProtocolParams.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"ProtocolParams.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ProtocolParams.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4UpB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../ProtocolParams.abi-C8U7BHCS.cjs"),o=require("../../../BTCVaultRegistry.abi-AUAyCHal.cjs"),e=require("../../../BTCVaultRegistryKeyEpochs.abi-_NERAdc5.cjs"),r=require("../../../errors-CGcNP0rV.cjs");exports.ApplicationRegistryABI=t.ApplicationRegistryABI;exports.ProtocolParamsABI=t.ProtocolParamsABI;exports.BTCVaultRegistryABI=o.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=e.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=r.CONTRACT_ERRORS;exports.extractErrorData=r.extractErrorData;exports.getContractErrorMessage=r.getContractErrorMessage;exports.handleContractError=r.handleContractError;exports.isKnownContractError=r.isKnownContractError;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { ApplicationRegistryABI } from './abis/ApplicationRegistry.abi';
|
|
10
10
|
export { BTCVaultRegistryABI } from './abis/BTCVaultRegistry.abi';
|
|
11
|
+
export { BTCVaultRegistryKeyEpochsABI } from './abis/BTCVaultRegistryKeyEpochs.abi';
|
|
11
12
|
export { ProtocolParamsABI } from './abis/ProtocolParams.abi';
|
|
12
|
-
export { CONTRACT_ERRORS, extractErrorData, getContractErrorMessage,
|
|
13
|
+
export { CONTRACT_ERRORS, extractErrorData, getContractErrorMessage, handleContractError, isKnownContractError, } from './errors';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|