@babylonlabs-io/ts-sdk 6.1.0 → 6.3.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.
Files changed (76) hide show
  1. package/dist/{BTCVaultRegistry.abi-DnP4UkB5.js → BTCVaultRegistry.abi-C19m1l4i.js} +42 -1
  2. package/dist/{BTCVaultRegistry.abi-DnP4UkB5.js.map → BTCVaultRegistry.abi-C19m1l4i.js.map} +1 -1
  3. package/dist/{BTCVaultRegistry.abi-DzbfZ9_s.cjs → BTCVaultRegistry.abi-C4bQi-H9.cjs} +2 -2
  4. package/dist/{BTCVaultRegistry.abi-DzbfZ9_s.cjs.map → BTCVaultRegistry.abi-C4bQi-H9.cjs.map} +1 -1
  5. package/dist/{PeginManager-CdYTFgrY.cjs → PeginManager-BNJUATq2.cjs} +2 -2
  6. package/dist/{PeginManager-CdYTFgrY.cjs.map → PeginManager-BNJUATq2.cjs.map} +1 -1
  7. package/dist/{PeginManager-BvIZvqLp.js → PeginManager-p88tE5r2.js} +2 -2
  8. package/dist/{PeginManager-BvIZvqLp.js.map → PeginManager-p88tE5r2.js.map} +1 -1
  9. package/dist/ProtocolParams.abi-DzjpPHcl.cjs +2 -0
  10. package/dist/ProtocolParams.abi-DzjpPHcl.cjs.map +1 -0
  11. package/dist/{ProtocolParams.abi-CuDl7AuC.js → ProtocolParams.abi-vMl0TZ2q.js} +6 -1
  12. package/dist/ProtocolParams.abi-vMl0TZ2q.js.map +1 -0
  13. package/dist/VaultErrors.abi-BIY0p6Wn.js +5 -0
  14. package/dist/{VaultErrors.abi-Dc3UnB_h.js.map → VaultErrors.abi-BIY0p6Wn.js.map} +1 -1
  15. package/dist/VaultErrors.abi-BV0qeG6M.cjs +2 -0
  16. package/dist/{VaultErrors.abi-Hjn1CdLs.cjs.map → VaultErrors.abi-BV0qeG6M.cjs.map} +1 -1
  17. package/dist/{buildAndBroadcastReclaim-CMjlyooo.cjs → buildAndBroadcastReclaim-Blxt7B0K.cjs} +2 -2
  18. package/dist/{buildAndBroadcastReclaim-CMjlyooo.cjs.map → buildAndBroadcastReclaim-Blxt7B0K.cjs.map} +1 -1
  19. package/dist/{buildAndBroadcastReclaim-D8l-QJWo.js → buildAndBroadcastReclaim-C2CkzCVn.js} +3 -3
  20. package/dist/{buildAndBroadcastReclaim-D8l-QJWo.js.map → buildAndBroadcastReclaim-C2CkzCVn.js.map} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +10 -10
  23. package/dist/{pegin-registration-client-Yc-Qs5kq.js → pegin-registration-client-B8A4P-Vv.js} +2 -2
  24. package/dist/{pegin-registration-client-Yc-Qs5kq.js.map → pegin-registration-client-B8A4P-Vv.js.map} +1 -1
  25. package/dist/{pegin-registration-client-Cdgp5Ge_.cjs → pegin-registration-client-JtZkosZQ.cjs} +2 -2
  26. package/dist/{pegin-registration-client-Cdgp5Ge_.cjs.map → pegin-registration-client-JtZkosZQ.cjs.map} +1 -1
  27. package/dist/{primeVpAuth-Ch-ig2My.cjs → primeVpAuth-36ayVa21.cjs} +2 -2
  28. package/dist/{primeVpAuth-Ch-ig2My.cjs.map → primeVpAuth-36ayVa21.cjs.map} +1 -1
  29. package/dist/{primeVpAuth-B0noJdcy.js → primeVpAuth-P-KTmNKb.js} +260 -251
  30. package/dist/{primeVpAuth-B0noJdcy.js.map → primeVpAuth-P-KTmNKb.js.map} +1 -1
  31. package/dist/{signer-set-reader-Csz8RXQi.js → signer-set-reader-BJ3g6rid.js} +3 -3
  32. package/dist/{signer-set-reader-Csz8RXQi.js.map → signer-set-reader-BJ3g6rid.js.map} +1 -1
  33. package/dist/{signer-set-reader-CNEfzwuA.cjs → signer-set-reader-C8xSyTMb.cjs} +2 -2
  34. package/dist/{signer-set-reader-CNEfzwuA.cjs.map → signer-set-reader-C8xSyTMb.cjs.map} +1 -1
  35. package/dist/tbv/core/clients/eth/index.cjs +1 -1
  36. package/dist/tbv/core/clients/eth/index.js +3 -3
  37. package/dist/tbv/core/clients/eth/protocol-params-reader.d.ts +1 -1
  38. package/dist/tbv/core/clients/eth/protocol-params-reader.d.ts.map +1 -1
  39. package/dist/tbv/core/clients/eth/types.d.ts +11 -1
  40. package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
  41. package/dist/tbv/core/clients/index.cjs +1 -1
  42. package/dist/tbv/core/clients/index.js +4 -4
  43. package/dist/tbv/core/clients/vault-provider/auth/tokenProvider.d.ts +7 -0
  44. package/dist/tbv/core/clients/vault-provider/auth/tokenProvider.d.ts.map +1 -1
  45. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +34 -0
  46. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
  47. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +4 -0
  48. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts.map +1 -1
  49. package/dist/tbv/core/contracts/abis/vaultErrors.abi.json.d.ts +1 -1
  50. package/dist/tbv/core/contracts/index.cjs +1 -1
  51. package/dist/tbv/core/contracts/index.js +3 -3
  52. package/dist/tbv/core/index.cjs +1 -1
  53. package/dist/tbv/core/index.js +10 -10
  54. package/dist/tbv/core/managers/index.cjs +1 -1
  55. package/dist/tbv/core/managers/index.js +1 -1
  56. package/dist/tbv/core/services/index.cjs +1 -1
  57. package/dist/tbv/core/services/index.js +1 -1
  58. package/dist/tbv/index.cjs +1 -1
  59. package/dist/tbv/index.js +10 -10
  60. package/dist/{toRefundInputs-CPtK0OgP.js → toRefundInputs-CZ9aqp2o.js} +2 -2
  61. package/dist/{toRefundInputs-CPtK0OgP.js.map → toRefundInputs-CZ9aqp2o.js.map} +1 -1
  62. package/dist/{toRefundInputs-DYVCJ2SN.cjs → toRefundInputs-CzZujjq-.cjs} +2 -2
  63. package/dist/{toRefundInputs-DYVCJ2SN.cjs.map → toRefundInputs-CzZujjq-.cjs.map} +1 -1
  64. package/dist/types-Bt1FM6d8.cjs +2 -0
  65. package/dist/types-Bt1FM6d8.cjs.map +1 -0
  66. package/dist/{types-K_aM5GZO.js → types-D7p5jFlm.js} +135 -62
  67. package/dist/types-D7p5jFlm.js.map +1 -0
  68. package/package.json +1 -1
  69. package/dist/ProtocolParams.abi-CuDl7AuC.js.map +0 -1
  70. package/dist/ProtocolParams.abi-DWfIh6VH.cjs +0 -2
  71. package/dist/ProtocolParams.abi-DWfIh6VH.cjs.map +0 -1
  72. package/dist/VaultErrors.abi-Dc3UnB_h.js +0 -5
  73. package/dist/VaultErrors.abi-Hjn1CdLs.cjs +0 -2
  74. package/dist/types-BnZIbDHb.cjs +0 -2
  75. package/dist/types-BnZIbDHb.cjs.map +0 -1
  76. package/dist/types-K_aM5GZO.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./BTCVaultRegistry.abi-DzbfZ9_s.cjs"),i=require("./ApplicationRegistry.abi-sMiTWmnL.cjs"),n=require("./ProtocolParams.abi-DWfIh6VH.cjs");async function g(a,t,e){const[r,s]=await a.multicall({blockNumber:e,contracts:[{address:t,abi:c.BTCVaultRegistryABI,functionName:"protocolParams"},{address:t,abi:c.BTCVaultRegistryABI,functionName:"applicationRegistry"}],allowFailure:!1});return{protocolParams:r,applicationRegistry:s}}function u(a,t,e){if(a!==t)throw new Error(`${e}: multicall returned ${a} results for ${t} calls, so the results are not roster-aligned; refusing to use them`)}function h(a,t){return{vaultProvider:a[0],vaultKeepers:a.slice(1,1+t),universalChallengers:a.slice(1+t)}}class y{constructor(t,e){this.publicClient=t,this.contracts=e}async readAll(t,e,r,s,d){const l=await this.publicClient.multicall({contracts:t,allowFailure:!1,blockNumber:d});return u(l.length,1+e+r,s),h(l,e)}async getCurrentOperationKeys(t,e){const r=[{address:this.contracts.btcVaultRegistry,abi:c.BTCVaultRegistryABI,functionName:"getCurrentOperationBtcKey",args:[t.vaultProviderEthAddress]},...t.vaultKeepers.map(s=>({address:this.contracts.applicationRegistry,abi:i.ApplicationRegistryABI,functionName:"getCurrentOperationBtcKey",args:[t.applicationEntryPoint,s.ethAddress]})),...t.universalChallengers.map(s=>({address:this.contracts.protocolParams,abi:n.ProtocolParamsABI,functionName:"getCurrentOperationBtcKey",args:[s.ethAddress]}))];return this.readAll(r,t.vaultKeepers.length,t.universalChallengers.length,"getCurrentOperationKeys",e)}async getOperationKeysAtEpochs(t,e){const r=[{address:this.contracts.btcVaultRegistry,abi:c.BTCVaultRegistryABI,functionName:"getOperationBtcKeyAtEpoch",args:[t.vaultProviderEthAddress,e.vpKeyEpoch]},...t.vaultKeepers.map(s=>({address:this.contracts.applicationRegistry,abi:i.ApplicationRegistryABI,functionName:"getOperationBtcKeyAtEpochOrGenesis",args:[t.applicationEntryPoint,s.ethAddress,e.appKeeperKeyEpoch,s.btcPubKey]})),...t.universalChallengers.map(s=>({address:this.contracts.protocolParams,abi:n.ProtocolParamsABI,functionName:"getOperationBtcKeyAtEpochOrGenesis",args:[s.ethAddress,e.ucKeyEpoch,s.btcPubKey]}))];return this.readAll(r,t.vaultKeepers.length,t.universalChallengers.length,"getOperationKeysAtEpochs")}async getPayoutScriptsAtEpochs(t,e){const r=await this.publicClient.multicall({contracts:[{address:this.contracts.btcVaultRegistry,abi:c.BTCVaultRegistryABI,functionName:"getPayoutScriptAtEpoch",args:[t.vaultProviderEthAddress,e.vpKeyEpoch]},...t.vaultKeepers.map(s=>({address:this.contracts.applicationRegistry,abi:i.ApplicationRegistryABI,functionName:"getPayoutScriptAtEpoch",args:[t.applicationEntryPoint,s.ethAddress,e.appKeeperKeyEpoch]}))],allowFailure:!1});return u(r.length,1+t.vaultKeepers.length,"getPayoutScriptsAtEpochs"),{vaultProvider:r[0],vaultKeepers:[...r.slice(1)]}}}function o(a){return a.map(t=>({ethAddress:t.ethAddress,btcPubKey:t.btcPubKey}))}function p(a,t){if(typeof a!="bigint")throw new Error(`Invalid ${t} from contract: must be a bigint, got ${typeof a}`);return a}class A{constructor(t,e){this.publicClient=t,this.contractAddress=e}async getVaultKeepersByVersion(t,e,r){const s=await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"getVaultKeepersByVersion",args:[t,e],blockNumber:r});return o(s)}async getCurrentVaultKeepers(t){const e=await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"getCurrentVaultKeepers",args:[t]});return o(e)}async getCurrentVaultKeepersVersion(t,e){return await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"getCurrentVaultKeepersVersion",args:[t],blockNumber:e})}async getCurrentAppKeeperKeyEpoch(t,e){const r=await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"appKeeperKeyEpochCurrent",args:[t],blockNumber:e});return p(r,"appKeeperKeyEpochCurrent")}}class C{constructor(t,e){this.publicClient=t,this.contractAddress=e}async getUniversalChallengersByVersion(t,e){const r=await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"getUniversalChallengersByVersion",args:[t],blockNumber:e});return o(r)}async getCurrentUniversalChallengers(){const t=await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"getCurrentUniversalChallengers"});return o(t)}async getLatestUniversalChallengersVersion(t){return await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"latestUniversalChallengersVersion",blockNumber:t})}async getCurrentUcKeyEpoch(t){const e=await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"ucKeyEpochCurrent",blockNumber:t});return p(e,"ucKeyEpochCurrent")}}exports.ViemOperationKeyReader=y;exports.ViemUniversalChallengerReader=C;exports.ViemVaultKeeperReader=A;exports.resolveProtocolAddresses=g;
2
- //# sourceMappingURL=signer-set-reader-CNEfzwuA.cjs.map
1
+ "use strict";const c=require("./BTCVaultRegistry.abi-C4bQi-H9.cjs"),i=require("./ApplicationRegistry.abi-sMiTWmnL.cjs"),n=require("./ProtocolParams.abi-DzjpPHcl.cjs");async function g(a,t,e){const[r,s]=await a.multicall({blockNumber:e,contracts:[{address:t,abi:c.BTCVaultRegistryABI,functionName:"protocolParams"},{address:t,abi:c.BTCVaultRegistryABI,functionName:"applicationRegistry"}],allowFailure:!1});return{protocolParams:r,applicationRegistry:s}}function u(a,t,e){if(a!==t)throw new Error(`${e}: multicall returned ${a} results for ${t} calls, so the results are not roster-aligned; refusing to use them`)}function h(a,t){return{vaultProvider:a[0],vaultKeepers:a.slice(1,1+t),universalChallengers:a.slice(1+t)}}class y{constructor(t,e){this.publicClient=t,this.contracts=e}async readAll(t,e,r,s,d){const l=await this.publicClient.multicall({contracts:t,allowFailure:!1,blockNumber:d});return u(l.length,1+e+r,s),h(l,e)}async getCurrentOperationKeys(t,e){const r=[{address:this.contracts.btcVaultRegistry,abi:c.BTCVaultRegistryABI,functionName:"getCurrentOperationBtcKey",args:[t.vaultProviderEthAddress]},...t.vaultKeepers.map(s=>({address:this.contracts.applicationRegistry,abi:i.ApplicationRegistryABI,functionName:"getCurrentOperationBtcKey",args:[t.applicationEntryPoint,s.ethAddress]})),...t.universalChallengers.map(s=>({address:this.contracts.protocolParams,abi:n.ProtocolParamsABI,functionName:"getCurrentOperationBtcKey",args:[s.ethAddress]}))];return this.readAll(r,t.vaultKeepers.length,t.universalChallengers.length,"getCurrentOperationKeys",e)}async getOperationKeysAtEpochs(t,e){const r=[{address:this.contracts.btcVaultRegistry,abi:c.BTCVaultRegistryABI,functionName:"getOperationBtcKeyAtEpoch",args:[t.vaultProviderEthAddress,e.vpKeyEpoch]},...t.vaultKeepers.map(s=>({address:this.contracts.applicationRegistry,abi:i.ApplicationRegistryABI,functionName:"getOperationBtcKeyAtEpochOrGenesis",args:[t.applicationEntryPoint,s.ethAddress,e.appKeeperKeyEpoch,s.btcPubKey]})),...t.universalChallengers.map(s=>({address:this.contracts.protocolParams,abi:n.ProtocolParamsABI,functionName:"getOperationBtcKeyAtEpochOrGenesis",args:[s.ethAddress,e.ucKeyEpoch,s.btcPubKey]}))];return this.readAll(r,t.vaultKeepers.length,t.universalChallengers.length,"getOperationKeysAtEpochs")}async getPayoutScriptsAtEpochs(t,e){const r=await this.publicClient.multicall({contracts:[{address:this.contracts.btcVaultRegistry,abi:c.BTCVaultRegistryABI,functionName:"getPayoutScriptAtEpoch",args:[t.vaultProviderEthAddress,e.vpKeyEpoch]},...t.vaultKeepers.map(s=>({address:this.contracts.applicationRegistry,abi:i.ApplicationRegistryABI,functionName:"getPayoutScriptAtEpoch",args:[t.applicationEntryPoint,s.ethAddress,e.appKeeperKeyEpoch]}))],allowFailure:!1});return u(r.length,1+t.vaultKeepers.length,"getPayoutScriptsAtEpochs"),{vaultProvider:r[0],vaultKeepers:[...r.slice(1)]}}}function o(a){return a.map(t=>({ethAddress:t.ethAddress,btcPubKey:t.btcPubKey}))}function p(a,t){if(typeof a!="bigint")throw new Error(`Invalid ${t} from contract: must be a bigint, got ${typeof a}`);return a}class A{constructor(t,e){this.publicClient=t,this.contractAddress=e}async getVaultKeepersByVersion(t,e,r){const s=await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"getVaultKeepersByVersion",args:[t,e],blockNumber:r});return o(s)}async getCurrentVaultKeepers(t){const e=await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"getCurrentVaultKeepers",args:[t]});return o(e)}async getCurrentVaultKeepersVersion(t,e){return await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"getCurrentVaultKeepersVersion",args:[t],blockNumber:e})}async getCurrentAppKeeperKeyEpoch(t,e){const r=await this.publicClient.readContract({address:this.contractAddress,abi:i.ApplicationRegistryABI,functionName:"appKeeperKeyEpochCurrent",args:[t],blockNumber:e});return p(r,"appKeeperKeyEpochCurrent")}}class C{constructor(t,e){this.publicClient=t,this.contractAddress=e}async getUniversalChallengersByVersion(t,e){const r=await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"getUniversalChallengersByVersion",args:[t],blockNumber:e});return o(r)}async getCurrentUniversalChallengers(){const t=await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"getCurrentUniversalChallengers"});return o(t)}async getLatestUniversalChallengersVersion(t){return await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"latestUniversalChallengersVersion",blockNumber:t})}async getCurrentUcKeyEpoch(t){const e=await this.publicClient.readContract({address:this.contractAddress,abi:n.ProtocolParamsABI,functionName:"ucKeyEpochCurrent",blockNumber:t});return p(e,"ucKeyEpochCurrent")}}exports.ViemOperationKeyReader=y;exports.ViemUniversalChallengerReader=C;exports.ViemVaultKeeperReader=A;exports.resolveProtocolAddresses=g;
2
+ //# sourceMappingURL=signer-set-reader-C8xSyTMb.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"signer-set-reader-CNEfzwuA.cjs","sources":["../src/tbv/core/clients/eth/contract-address-resolver.ts","../src/tbv/core/clients/eth/operation-key-reader.ts","../src/tbv/core/clients/eth/signer-set-reader.ts"],"sourcesContent":["/**\n * Contract Address Resolver\n *\n * Resolves ProtocolParams and ApplicationRegistry contract addresses\n * from the BTCVaultRegistry contract. These addresses are needed to\n * construct the SDK's contract readers.\n *\n * @module clients/eth/contract-address-resolver\n */\n\nimport type { Address, PublicClient } from \"viem\";\n\nimport { BTCVaultRegistryABI } from \"../../contracts/abis/BTCVaultRegistry.abi\";\n\nexport interface ProtocolAddresses {\n /** Address of the ProtocolParams contract */\n protocolParams: Address;\n /** Address of the ApplicationRegistry contract */\n applicationRegistry: Address;\n}\n\n/**\n * Resolve ProtocolParams and ApplicationRegistry addresses from BTCVaultRegistry.\n *\n * Uses a single multicall for atomicity and efficiency.\n *\n * @param publicClient - viem PublicClient instance\n * @param btcVaultRegistryAddress - Address of the BTCVaultRegistry contract\n * @param blockNumber - Block to read the pointers at; omit for `latest`. Pin it\n * to the block the readers will serve.\n * @returns Resolved contract addresses\n */\nexport async function resolveProtocolAddresses(\n publicClient: PublicClient,\n btcVaultRegistryAddress: Address,\n blockNumber?: bigint,\n): Promise<ProtocolAddresses> {\n const [protocolParams, applicationRegistry] = await publicClient.multicall({\n blockNumber,\n contracts: [\n {\n address: btcVaultRegistryAddress,\n abi: BTCVaultRegistryABI,\n functionName: \"protocolParams\",\n },\n {\n address: btcVaultRegistryAddress,\n abi: BTCVaultRegistryABI,\n functionName: \"applicationRegistry\",\n },\n ],\n allowFailure: false,\n });\n\n return {\n protocolParams: protocolParams as Address,\n applicationRegistry: applicationRegistry as Address,\n };\n}\n","/**\n * Concrete RFC-006 operation-key reader spanning all three registries.\n *\n * This is an optional utility — callers can use their own implementation of\n * the {@link OperationKeyReader} interface.\n */\n\nimport type { Abi, Address, Hex, PublicClient } from \"viem\";\n\nimport { ApplicationRegistryABI } from \"../../contracts/abis/ApplicationRegistry.abi\";\nimport { BTCVaultRegistryABI } from \"../../contracts/abis/BTCVaultRegistry.abi\";\nimport { ProtocolParamsABI } from \"../../contracts/abis/ProtocolParams.abi\";\nimport type {\n KeyEpochs,\n OperationKeyQuery,\n OperationKeyReader,\n RawOperationKeys,\n RawPayoutScripts,\n} from \"./types\";\n\n/** Addresses of the three registries an operation-key resolution spans. */\nexport interface OperationKeyContracts {\n btcVaultRegistry: Address;\n applicationRegistry: Address;\n protocolParams: Address;\n}\n\n/** One `multicall` entry. Loosely typed because the three ABIs differ. */\ntype Call = {\n address: Address;\n abi: Abi;\n functionName: string;\n args: readonly unknown[];\n};\n\n/**\n * Reject a multicall result that is not one-per-call.\n *\n * Every method here relies on positional alignment between calls and results,\n * so a short array does not fail — it silently hands back `undefined` for the\n * tail entries. Downstream that surfaces as a complaint about whichever\n * operator happens to occupy the missing slot, blaming a participant that is\n * perfectly fine for a read that came back incomplete. Assert the length where\n * the array arrives so the error names the real fault.\n */\nfunction assertMulticallLength(\n actual: number,\n expected: number,\n label: string,\n): void {\n if (actual !== expected) {\n throw new Error(\n `${label}: multicall returned ${actual} results for ${expected} calls, ` +\n `so the results are not roster-aligned; refusing to use them`,\n );\n }\n}\n\n/**\n * Split a flat multicall result into VP / keepers / challengers.\n *\n * Every method below builds its calls in the same order — vault provider\n * first, then keepers in roster order, then challengers in roster order — so\n * the results stay index-aligned with `query.vaultKeepers` /\n * `query.universalChallengers`. That alignment is what lets the resolver pair\n * a resolved key back to its admin address; the sorted key arrays it exposes\n * are derived from those pairs, never the other way round.\n */\nfunction partition<T>(\n results: readonly T[],\n keeperCount: number,\n): { vaultProvider: T; vaultKeepers: T[]; universalChallengers: T[] } {\n return {\n vaultProvider: results[0],\n vaultKeepers: results.slice(1, 1 + keeperCount),\n universalChallengers: results.slice(1 + keeperCount),\n };\n}\n\n/**\n * Reads RFC-006 operation keys and payout scripts.\n *\n * Usage:\n * ```ts\n * const reader = new ViemOperationKeyReader(publicClient, contracts);\n * // A fresh deposit: the keys current at the block the deposit is built at.\n * const current = await reader.getCurrentOperationKeys(query, blockNumber);\n * // An existing vault (refund, resume, payout, claim): the keys at its\n * // frozen epochs, from `VaultRegistryReader.getVaultKeyEpochs(vaultId)`.\n * const frozen = await reader.getOperationKeysAtEpochs(query, epochs);\n * ```\n */\nexport class ViemOperationKeyReader implements OperationKeyReader {\n constructor(\n private publicClient: PublicClient,\n private contracts: OperationKeyContracts,\n ) {}\n\n /**\n * One multicall, `allowFailure: false`, so every key in the set is read at\n * the same block. A rotation landing between two separate `eth_call`s would\n * otherwise produce a mixed-epoch key set and a lock no counterparty agrees\n * with.\n */\n private async readAll<T>(\n calls: Call[],\n keeperCount: number,\n challengerCount: number,\n label: string,\n blockNumber?: bigint,\n ) {\n const results = (await this.publicClient.multicall({\n contracts: calls,\n allowFailure: false,\n blockNumber,\n })) as readonly T[];\n\n assertMulticallLength(\n results.length,\n 1 + keeperCount + challengerCount,\n label,\n );\n\n return partition(results, keeperCount);\n }\n\n async getCurrentOperationKeys(\n query: OperationKeyQuery,\n blockNumber?: bigint,\n ): Promise<RawOperationKeys> {\n const calls: Call[] = [\n {\n address: this.contracts.btcVaultRegistry,\n abi: BTCVaultRegistryABI as Abi,\n functionName: \"getCurrentOperationBtcKey\",\n args: [query.vaultProviderEthAddress],\n },\n ...query.vaultKeepers.map((keeper) => ({\n address: this.contracts.applicationRegistry,\n abi: ApplicationRegistryABI as Abi,\n functionName: \"getCurrentOperationBtcKey\",\n args: [query.applicationEntryPoint, keeper.ethAddress],\n })),\n ...query.universalChallengers.map((challenger) => ({\n address: this.contracts.protocolParams,\n abi: ProtocolParamsABI as Abi,\n functionName: \"getCurrentOperationBtcKey\",\n args: [challenger.ethAddress],\n })),\n ];\n\n return this.readAll<Hex>(\n calls,\n query.vaultKeepers.length,\n query.universalChallengers.length,\n \"getCurrentOperationKeys\",\n blockNumber,\n );\n }\n\n async getOperationKeysAtEpochs(\n query: OperationKeyQuery,\n epochs: KeyEpochs,\n ): Promise<RawOperationKeys> {\n const calls: Call[] = [\n // The VP takes the plain `AtEpoch` variant: it has no membership\n // version, so its genesis (the registration key at version 0) is\n // unambiguous and the contract resolves it internally.\n {\n address: this.contracts.btcVaultRegistry,\n abi: BTCVaultRegistryABI as Abi,\n functionName: \"getOperationBtcKeyAtEpoch\",\n args: [query.vaultProviderEthAddress, epochs.vpKeyEpoch],\n },\n // Keepers and challengers take `...OrGenesis` with their roster key\n // passed explicitly, because the correct genesis for them is their key\n // in *this vault's frozen membership version*. An operator dropped from\n // the current roster, or listed under a different key in an older\n // version, would otherwise resolve against the wrong genesis.\n ...query.vaultKeepers.map((keeper) => ({\n address: this.contracts.applicationRegistry,\n abi: ApplicationRegistryABI as Abi,\n functionName: \"getOperationBtcKeyAtEpochOrGenesis\",\n args: [\n query.applicationEntryPoint,\n keeper.ethAddress,\n epochs.appKeeperKeyEpoch,\n keeper.btcPubKey,\n ],\n })),\n ...query.universalChallengers.map((challenger) => ({\n address: this.contracts.protocolParams,\n abi: ProtocolParamsABI as Abi,\n functionName: \"getOperationBtcKeyAtEpochOrGenesis\",\n args: [challenger.ethAddress, epochs.ucKeyEpoch, challenger.btcPubKey],\n })),\n ];\n\n return this.readAll<Hex>(\n calls,\n query.vaultKeepers.length,\n query.universalChallengers.length,\n \"getOperationKeysAtEpochs\",\n );\n }\n\n async getPayoutScriptsAtEpochs(\n query: OperationKeyQuery,\n epochs: KeyEpochs,\n ): Promise<RawPayoutScripts> {\n // Universal challengers are never claimers, so they have no payout script\n // and no call here.\n const results = (await this.publicClient.multicall({\n contracts: [\n {\n address: this.contracts.btcVaultRegistry,\n abi: BTCVaultRegistryABI as Abi,\n functionName: \"getPayoutScriptAtEpoch\",\n args: [query.vaultProviderEthAddress, epochs.vpKeyEpoch],\n },\n ...query.vaultKeepers.map((keeper) => ({\n address: this.contracts.applicationRegistry,\n abi: ApplicationRegistryABI as Abi,\n functionName: \"getPayoutScriptAtEpoch\",\n args: [\n query.applicationEntryPoint,\n keeper.ethAddress,\n epochs.appKeeperKeyEpoch,\n ],\n })),\n ],\n allowFailure: false,\n })) as readonly Hex[];\n\n // Expected length is `1 + keepers`, with no challenger term — see the\n // comment above on why universal challengers have no call here.\n assertMulticallLength(\n results.length,\n 1 + query.vaultKeepers.length,\n \"getPayoutScriptsAtEpochs\",\n );\n\n return {\n vaultProvider: results[0],\n vaultKeepers: [...results.slice(1)],\n };\n }\n}\n","/**\n * Concrete signer-set readers for vault keepers and universal challengers.\n *\n * These are optional utilities — callers can use their own implementations\n * of the VaultKeeperReader and UniversalChallengerReader interfaces.\n *\n * The rosters they return carry each member's *registration* key. A member\n * can rotate its RFC-006 operation key without changing the roster, so a\n * vault registered after a member had rotated commits to a key the roster\n * does not list. Resolve operation keys with `ViemOperationKeyReader`.\n */\n\nimport type { Address, Hex, PublicClient } from \"viem\";\n\nimport { ApplicationRegistryABI } from \"../../contracts/abis/ApplicationRegistry.abi\";\nimport { ProtocolParamsABI } from \"../../contracts/abis/ProtocolParams.abi\";\nimport type {\n AddressBTCKeyPair,\n UniversalChallengerReader,\n VaultKeeperReader,\n} from \"./types\";\n\n/** Map viem tuple array to AddressBTCKeyPair[]. */\nfunction mapKeyPairs(\n result: readonly { ethAddress: Address; btcPubKey: Hex }[],\n): AddressBTCKeyPair[] {\n return result.map((pair) => ({\n ethAddress: pair.ethAddress,\n btcPubKey: pair.btcPubKey,\n }));\n}\n\n/**\n * Both key-epoch getters return `uint64` and feed the peg-in config\n * fingerprint, where the contract encodes them as `uint64`. A `Number`\n * narrowing would silently truncate above 2^53 and produce a fingerprint the\n * registry cannot reproduce, so the payload is asserted to be a `bigint` and\n * carried as one — never coerced, never defaulted.\n */\nfunction assertKeyEpoch(raw: unknown, label: string): bigint {\n if (typeof raw !== \"bigint\") {\n throw new Error(\n `Invalid ${label} from contract: must be a bigint, got ${typeof raw}`,\n );\n }\n return raw;\n}\n\n/**\n * Reads vault keepers from the ApplicationRegistry contract.\n *\n * Usage:\n * ```ts\n * const reader = new ViemVaultKeeperReader(publicClient, applicationRegistryAddress);\n * const keepers = await reader.getCurrentVaultKeepers(appEntryPoint);\n * ```\n */\nexport class ViemVaultKeeperReader implements VaultKeeperReader {\n constructor(\n private publicClient: PublicClient,\n private contractAddress: Address,\n ) {}\n\n async getVaultKeepersByVersion(\n appEntryPoint: Address,\n version: number,\n blockNumber?: bigint,\n ): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"getVaultKeepersByVersion\",\n args: [appEntryPoint, version],\n blockNumber,\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getCurrentVaultKeepers(\n appEntryPoint: Address,\n ): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"getCurrentVaultKeepers\",\n args: [appEntryPoint],\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getCurrentVaultKeepersVersion(\n appEntryPoint: Address,\n blockNumber?: bigint,\n ): Promise<number> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"getCurrentVaultKeepersVersion\",\n args: [appEntryPoint],\n blockNumber,\n })) as number;\n\n return result;\n }\n\n async getCurrentAppKeeperKeyEpoch(\n appEntryPoint: Address,\n blockNumber?: bigint,\n ): Promise<bigint> {\n const raw: unknown = await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"appKeeperKeyEpochCurrent\",\n args: [appEntryPoint],\n blockNumber,\n });\n\n return assertKeyEpoch(raw, \"appKeeperKeyEpochCurrent\");\n }\n}\n\n/**\n * Reads universal challengers from the ProtocolParams contract.\n *\n * Usage:\n * ```ts\n * const reader = new ViemUniversalChallengerReader(publicClient, protocolParamsAddress);\n * const challengers = await reader.getCurrentUniversalChallengers();\n * ```\n */\nexport class ViemUniversalChallengerReader implements UniversalChallengerReader {\n constructor(\n private publicClient: PublicClient,\n private contractAddress: Address,\n ) {}\n\n async getUniversalChallengersByVersion(\n version: number,\n blockNumber?: bigint,\n ): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"getUniversalChallengersByVersion\",\n args: [version],\n blockNumber,\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getCurrentUniversalChallengers(): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"getCurrentUniversalChallengers\",\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getLatestUniversalChallengersVersion(\n blockNumber?: bigint,\n ): Promise<number> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"latestUniversalChallengersVersion\",\n blockNumber,\n })) as number;\n\n return result;\n }\n\n async getCurrentUcKeyEpoch(blockNumber?: bigint): Promise<bigint> {\n const raw: unknown = await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"ucKeyEpochCurrent\",\n blockNumber,\n });\n\n return assertKeyEpoch(raw, \"ucKeyEpochCurrent\");\n }\n}\n"],"names":["resolveProtocolAddresses","publicClient","btcVaultRegistryAddress","blockNumber","protocolParams","applicationRegistry","BTCVaultRegistryABI","assertMulticallLength","actual","expected","label","partition","results","keeperCount","ViemOperationKeyReader","contracts","calls","challengerCount","query","keeper","ApplicationRegistryABI","challenger","ProtocolParamsABI","epochs","mapKeyPairs","result","pair","assertKeyEpoch","raw","ViemVaultKeeperReader","contractAddress","appEntryPoint","version","ViemUniversalChallengerReader"],"mappings":"uKAgCA,eAAsBA,EACpBC,EACAC,EACAC,EAC4B,CAC5B,KAAM,CAACC,EAAgBC,CAAmB,EAAI,MAAMJ,EAAa,UAAU,CACzE,YAAAE,EACA,UAAW,CACT,CACE,QAASD,EACT,IAAKI,EAAAA,oBACL,aAAc,gBAAA,EAEhB,CACE,QAASJ,EACT,IAAKI,EAAAA,oBACL,aAAc,qBAAA,CAChB,EAEF,aAAc,EAAA,CACf,EAED,MAAO,CACL,eAAAF,EACA,oBAAAC,CAAA,CAEJ,CCbA,SAASE,EACPC,EACAC,EACAC,EACM,CACN,GAAIF,IAAWC,EACb,MAAM,IAAI,MACR,GAAGC,CAAK,wBAAwBF,CAAM,gBAAgBC,CAAQ,qEAAA,CAIpE,CAYA,SAASE,EACPC,EACAC,EACoE,CACpE,MAAO,CACL,cAAeD,EAAQ,CAAC,EACxB,aAAcA,EAAQ,MAAM,EAAG,EAAIC,CAAW,EAC9C,qBAAsBD,EAAQ,MAAM,EAAIC,CAAW,CAAA,CAEvD,CAeO,MAAMC,CAAqD,CAChE,YACUb,EACAc,EACR,CAFQ,KAAA,aAAAd,EACA,KAAA,UAAAc,CACP,CAQH,MAAc,QACZC,EACAH,EACAI,EACAP,EACAP,EACA,CACA,MAAMS,EAAW,MAAM,KAAK,aAAa,UAAU,CACjD,UAAWI,EACX,aAA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AAS,KAAK,gBACd,IAAKN,EAAAA,kBACL,aAAc,oBACd,YAAAnB,CAAA,CACD,EAED,OAAOwB,EAAeC,EAAK,mBAAmB,CAChD,CACF"}
1
+ {"version":3,"file":"signer-set-reader-C8xSyTMb.cjs","sources":["../src/tbv/core/clients/eth/contract-address-resolver.ts","../src/tbv/core/clients/eth/operation-key-reader.ts","../src/tbv/core/clients/eth/signer-set-reader.ts"],"sourcesContent":["/**\n * Contract Address Resolver\n *\n * Resolves ProtocolParams and ApplicationRegistry contract addresses\n * from the BTCVaultRegistry contract. These addresses are needed to\n * construct the SDK's contract readers.\n *\n * @module clients/eth/contract-address-resolver\n */\n\nimport type { Address, PublicClient } from \"viem\";\n\nimport { BTCVaultRegistryABI } from \"../../contracts/abis/BTCVaultRegistry.abi\";\n\nexport interface ProtocolAddresses {\n /** Address of the ProtocolParams contract */\n protocolParams: Address;\n /** Address of the ApplicationRegistry contract */\n applicationRegistry: Address;\n}\n\n/**\n * Resolve ProtocolParams and ApplicationRegistry addresses from BTCVaultRegistry.\n *\n * Uses a single multicall for atomicity and efficiency.\n *\n * @param publicClient - viem PublicClient instance\n * @param btcVaultRegistryAddress - Address of the BTCVaultRegistry contract\n * @param blockNumber - Block to read the pointers at; omit for `latest`. Pin it\n * to the block the readers will serve.\n * @returns Resolved contract addresses\n */\nexport async function resolveProtocolAddresses(\n publicClient: PublicClient,\n btcVaultRegistryAddress: Address,\n blockNumber?: bigint,\n): Promise<ProtocolAddresses> {\n const [protocolParams, applicationRegistry] = await publicClient.multicall({\n blockNumber,\n contracts: [\n {\n address: btcVaultRegistryAddress,\n abi: BTCVaultRegistryABI,\n functionName: \"protocolParams\",\n },\n {\n address: btcVaultRegistryAddress,\n abi: BTCVaultRegistryABI,\n functionName: \"applicationRegistry\",\n },\n ],\n allowFailure: false,\n });\n\n return {\n protocolParams: protocolParams as Address,\n applicationRegistry: applicationRegistry as Address,\n };\n}\n","/**\n * Concrete RFC-006 operation-key reader spanning all three registries.\n *\n * This is an optional utility — callers can use their own implementation of\n * the {@link OperationKeyReader} interface.\n */\n\nimport type { Abi, Address, Hex, PublicClient } from \"viem\";\n\nimport { ApplicationRegistryABI } from \"../../contracts/abis/ApplicationRegistry.abi\";\nimport { BTCVaultRegistryABI } from \"../../contracts/abis/BTCVaultRegistry.abi\";\nimport { ProtocolParamsABI } from \"../../contracts/abis/ProtocolParams.abi\";\nimport type {\n KeyEpochs,\n OperationKeyQuery,\n OperationKeyReader,\n RawOperationKeys,\n RawPayoutScripts,\n} from \"./types\";\n\n/** Addresses of the three registries an operation-key resolution spans. */\nexport interface OperationKeyContracts {\n btcVaultRegistry: Address;\n applicationRegistry: Address;\n protocolParams: Address;\n}\n\n/** One `multicall` entry. Loosely typed because the three ABIs differ. */\ntype Call = {\n address: Address;\n abi: Abi;\n functionName: string;\n args: readonly unknown[];\n};\n\n/**\n * Reject a multicall result that is not one-per-call.\n *\n * Every method here relies on positional alignment between calls and results,\n * so a short array does not fail — it silently hands back `undefined` for the\n * tail entries. Downstream that surfaces as a complaint about whichever\n * operator happens to occupy the missing slot, blaming a participant that is\n * perfectly fine for a read that came back incomplete. Assert the length where\n * the array arrives so the error names the real fault.\n */\nfunction assertMulticallLength(\n actual: number,\n expected: number,\n label: string,\n): void {\n if (actual !== expected) {\n throw new Error(\n `${label}: multicall returned ${actual} results for ${expected} calls, ` +\n `so the results are not roster-aligned; refusing to use them`,\n );\n }\n}\n\n/**\n * Split a flat multicall result into VP / keepers / challengers.\n *\n * Every method below builds its calls in the same order — vault provider\n * first, then keepers in roster order, then challengers in roster order — so\n * the results stay index-aligned with `query.vaultKeepers` /\n * `query.universalChallengers`. That alignment is what lets the resolver pair\n * a resolved key back to its admin address; the sorted key arrays it exposes\n * are derived from those pairs, never the other way round.\n */\nfunction partition<T>(\n results: readonly T[],\n keeperCount: number,\n): { vaultProvider: T; vaultKeepers: T[]; universalChallengers: T[] } {\n return {\n vaultProvider: results[0],\n vaultKeepers: results.slice(1, 1 + keeperCount),\n universalChallengers: results.slice(1 + keeperCount),\n };\n}\n\n/**\n * Reads RFC-006 operation keys and payout scripts.\n *\n * Usage:\n * ```ts\n * const reader = new ViemOperationKeyReader(publicClient, contracts);\n * // A fresh deposit: the keys current at the block the deposit is built at.\n * const current = await reader.getCurrentOperationKeys(query, blockNumber);\n * // An existing vault (refund, resume, payout, claim): the keys at its\n * // frozen epochs, from `VaultRegistryReader.getVaultKeyEpochs(vaultId)`.\n * const frozen = await reader.getOperationKeysAtEpochs(query, epochs);\n * ```\n */\nexport class ViemOperationKeyReader implements OperationKeyReader {\n constructor(\n private publicClient: PublicClient,\n private contracts: OperationKeyContracts,\n ) {}\n\n /**\n * One multicall, `allowFailure: false`, so every key in the set is read at\n * the same block. A rotation landing between two separate `eth_call`s would\n * otherwise produce a mixed-epoch key set and a lock no counterparty agrees\n * with.\n */\n private async readAll<T>(\n calls: Call[],\n keeperCount: number,\n challengerCount: number,\n label: string,\n blockNumber?: bigint,\n ) {\n const results = (await this.publicClient.multicall({\n contracts: calls,\n allowFailure: false,\n blockNumber,\n })) as readonly T[];\n\n assertMulticallLength(\n results.length,\n 1 + keeperCount + challengerCount,\n label,\n );\n\n return partition(results, keeperCount);\n }\n\n async getCurrentOperationKeys(\n query: OperationKeyQuery,\n blockNumber?: bigint,\n ): Promise<RawOperationKeys> {\n const calls: Call[] = [\n {\n address: this.contracts.btcVaultRegistry,\n abi: BTCVaultRegistryABI as Abi,\n functionName: \"getCurrentOperationBtcKey\",\n args: [query.vaultProviderEthAddress],\n },\n ...query.vaultKeepers.map((keeper) => ({\n address: this.contracts.applicationRegistry,\n abi: ApplicationRegistryABI as Abi,\n functionName: \"getCurrentOperationBtcKey\",\n args: [query.applicationEntryPoint, keeper.ethAddress],\n })),\n ...query.universalChallengers.map((challenger) => ({\n address: this.contracts.protocolParams,\n abi: ProtocolParamsABI as Abi,\n functionName: \"getCurrentOperationBtcKey\",\n args: [challenger.ethAddress],\n })),\n ];\n\n return this.readAll<Hex>(\n calls,\n query.vaultKeepers.length,\n query.universalChallengers.length,\n \"getCurrentOperationKeys\",\n blockNumber,\n );\n }\n\n async getOperationKeysAtEpochs(\n query: OperationKeyQuery,\n epochs: KeyEpochs,\n ): Promise<RawOperationKeys> {\n const calls: Call[] = [\n // The VP takes the plain `AtEpoch` variant: it has no membership\n // version, so its genesis (the registration key at version 0) is\n // unambiguous and the contract resolves it internally.\n {\n address: this.contracts.btcVaultRegistry,\n abi: BTCVaultRegistryABI as Abi,\n functionName: \"getOperationBtcKeyAtEpoch\",\n args: [query.vaultProviderEthAddress, epochs.vpKeyEpoch],\n },\n // Keepers and challengers take `...OrGenesis` with their roster key\n // passed explicitly, because the correct genesis for them is their key\n // in *this vault's frozen membership version*. An operator dropped from\n // the current roster, or listed under a different key in an older\n // version, would otherwise resolve against the wrong genesis.\n ...query.vaultKeepers.map((keeper) => ({\n address: this.contracts.applicationRegistry,\n abi: ApplicationRegistryABI as Abi,\n functionName: \"getOperationBtcKeyAtEpochOrGenesis\",\n args: [\n query.applicationEntryPoint,\n keeper.ethAddress,\n epochs.appKeeperKeyEpoch,\n keeper.btcPubKey,\n ],\n })),\n ...query.universalChallengers.map((challenger) => ({\n address: this.contracts.protocolParams,\n abi: ProtocolParamsABI as Abi,\n functionName: \"getOperationBtcKeyAtEpochOrGenesis\",\n args: [challenger.ethAddress, epochs.ucKeyEpoch, challenger.btcPubKey],\n })),\n ];\n\n return this.readAll<Hex>(\n calls,\n query.vaultKeepers.length,\n query.universalChallengers.length,\n \"getOperationKeysAtEpochs\",\n );\n }\n\n async getPayoutScriptsAtEpochs(\n query: OperationKeyQuery,\n epochs: KeyEpochs,\n ): Promise<RawPayoutScripts> {\n // Universal challengers are never claimers, so they have no payout script\n // and no call here.\n const results = (await this.publicClient.multicall({\n contracts: [\n {\n address: this.contracts.btcVaultRegistry,\n abi: BTCVaultRegistryABI as Abi,\n functionName: \"getPayoutScriptAtEpoch\",\n args: [query.vaultProviderEthAddress, epochs.vpKeyEpoch],\n },\n ...query.vaultKeepers.map((keeper) => ({\n address: this.contracts.applicationRegistry,\n abi: ApplicationRegistryABI as Abi,\n functionName: \"getPayoutScriptAtEpoch\",\n args: [\n query.applicationEntryPoint,\n keeper.ethAddress,\n epochs.appKeeperKeyEpoch,\n ],\n })),\n ],\n allowFailure: false,\n })) as readonly Hex[];\n\n // Expected length is `1 + keepers`, with no challenger term — see the\n // comment above on why universal challengers have no call here.\n assertMulticallLength(\n results.length,\n 1 + query.vaultKeepers.length,\n \"getPayoutScriptsAtEpochs\",\n );\n\n return {\n vaultProvider: results[0],\n vaultKeepers: [...results.slice(1)],\n };\n }\n}\n","/**\n * Concrete signer-set readers for vault keepers and universal challengers.\n *\n * These are optional utilities — callers can use their own implementations\n * of the VaultKeeperReader and UniversalChallengerReader interfaces.\n *\n * The rosters they return carry each member's *registration* key. A member\n * can rotate its RFC-006 operation key without changing the roster, so a\n * vault registered after a member had rotated commits to a key the roster\n * does not list. Resolve operation keys with `ViemOperationKeyReader`.\n */\n\nimport type { Address, Hex, PublicClient } from \"viem\";\n\nimport { ApplicationRegistryABI } from \"../../contracts/abis/ApplicationRegistry.abi\";\nimport { ProtocolParamsABI } from \"../../contracts/abis/ProtocolParams.abi\";\nimport type {\n AddressBTCKeyPair,\n UniversalChallengerReader,\n VaultKeeperReader,\n} from \"./types\";\n\n/** Map viem tuple array to AddressBTCKeyPair[]. */\nfunction mapKeyPairs(\n result: readonly { ethAddress: Address; btcPubKey: Hex }[],\n): AddressBTCKeyPair[] {\n return result.map((pair) => ({\n ethAddress: pair.ethAddress,\n btcPubKey: pair.btcPubKey,\n }));\n}\n\n/**\n * Both key-epoch getters return `uint64` and feed the peg-in config\n * fingerprint, where the contract encodes them as `uint64`. A `Number`\n * narrowing would silently truncate above 2^53 and produce a fingerprint the\n * registry cannot reproduce, so the payload is asserted to be a `bigint` and\n * carried as one — never coerced, never defaulted.\n */\nfunction assertKeyEpoch(raw: unknown, label: string): bigint {\n if (typeof raw !== \"bigint\") {\n throw new Error(\n `Invalid ${label} from contract: must be a bigint, got ${typeof raw}`,\n );\n }\n return raw;\n}\n\n/**\n * Reads vault keepers from the ApplicationRegistry contract.\n *\n * Usage:\n * ```ts\n * const reader = new ViemVaultKeeperReader(publicClient, applicationRegistryAddress);\n * const keepers = await reader.getCurrentVaultKeepers(appEntryPoint);\n * ```\n */\nexport class ViemVaultKeeperReader implements VaultKeeperReader {\n constructor(\n private publicClient: PublicClient,\n private contractAddress: Address,\n ) {}\n\n async getVaultKeepersByVersion(\n appEntryPoint: Address,\n version: number,\n blockNumber?: bigint,\n ): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"getVaultKeepersByVersion\",\n args: [appEntryPoint, version],\n blockNumber,\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getCurrentVaultKeepers(\n appEntryPoint: Address,\n ): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"getCurrentVaultKeepers\",\n args: [appEntryPoint],\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getCurrentVaultKeepersVersion(\n appEntryPoint: Address,\n blockNumber?: bigint,\n ): Promise<number> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"getCurrentVaultKeepersVersion\",\n args: [appEntryPoint],\n blockNumber,\n })) as number;\n\n return result;\n }\n\n async getCurrentAppKeeperKeyEpoch(\n appEntryPoint: Address,\n blockNumber?: bigint,\n ): Promise<bigint> {\n const raw: unknown = await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ApplicationRegistryABI,\n functionName: \"appKeeperKeyEpochCurrent\",\n args: [appEntryPoint],\n blockNumber,\n });\n\n return assertKeyEpoch(raw, \"appKeeperKeyEpochCurrent\");\n }\n}\n\n/**\n * Reads universal challengers from the ProtocolParams contract.\n *\n * Usage:\n * ```ts\n * const reader = new ViemUniversalChallengerReader(publicClient, protocolParamsAddress);\n * const challengers = await reader.getCurrentUniversalChallengers();\n * ```\n */\nexport class ViemUniversalChallengerReader implements UniversalChallengerReader {\n constructor(\n private publicClient: PublicClient,\n private contractAddress: Address,\n ) {}\n\n async getUniversalChallengersByVersion(\n version: number,\n blockNumber?: bigint,\n ): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"getUniversalChallengersByVersion\",\n args: [version],\n blockNumber,\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getCurrentUniversalChallengers(): Promise<AddressBTCKeyPair[]> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"getCurrentUniversalChallengers\",\n })) as readonly { ethAddress: Address; btcPubKey: Hex }[];\n\n return mapKeyPairs(result);\n }\n\n async getLatestUniversalChallengersVersion(\n blockNumber?: bigint,\n ): Promise<number> {\n const result = (await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"latestUniversalChallengersVersion\",\n blockNumber,\n })) as number;\n\n return result;\n }\n\n async getCurrentUcKeyEpoch(blockNumber?: bigint): Promise<bigint> {\n const raw: unknown = await this.publicClient.readContract({\n address: this.contractAddress,\n abi: ProtocolParamsABI,\n functionName: \"ucKeyEpochCurrent\",\n blockNumber,\n });\n\n return assertKeyEpoch(raw, \"ucKeyEpochCurrent\");\n }\n}\n"],"names":["resolveProtocolAddresses","publicClient","btcVaultRegistryAddress","blockNumber","protocolParams","applicationRegistry","BTCVaultRegistryABI","assertMulticallLength","actual","expected","label","partition","results","keeperCount","ViemOperationKeyReader","contracts","calls","challengerCount","query","keeper","ApplicationRegistryABI","challenger","ProtocolParamsABI","epochs","mapKeyPairs","result","pair","assertKeyEpoch","raw","ViemVaultKeeperReader","contractAddress","appEntryPoint","version","ViemUniversalChallengerReader"],"mappings":"uKAgCA,eAAsBA,EACpBC,EACAC,EACAC,EAC4B,CAC5B,KAAM,CAACC,EAAgBC,CAAmB,EAAI,MAAMJ,EAAa,UAAU,CACzE,YAAAE,EACA,UAAW,CACT,CACE,QAASD,EACT,IAAKI,EAAAA,oBACL,aAAc,gBAAA,EAEhB,CACE,QAASJ,EACT,IAAKI,EAAAA,oBACL,aAAc,qBAAA,CAChB,EAEF,aAAc,EAAA,CACf,EAED,MAAO,CACL,eAAAF,EACA,oBAAAC,CAAA,CAEJ,CCbA,SAASE,EACPC,EACAC,EACAC,EACM,CACN,GAAIF,IAAWC,EACb,MAAM,IAAI,MACR,GAAGC,CAAK,wBAAwBF,CAAM,gBAAgBC,CAAQ,qEAAA,CAIpE,CAYA,SAASE,EACPC,EACAC,EACoE,CACpE,MAAO,CACL,cAAeD,EAAQ,CAAC,EACxB,aAAcA,EAAQ,MAAM,EAAG,EAAIC,CAAW,EAC9C,qBAAsBD,EAAQ,MAAM,EAAIC,CAAW,CAAA,CAEvD,CAeO,MAAMC,CAAqD,CAChE,YACUb,EACAc,EACR,CAFQ,KAAA,aAAAd,EACA,KAAA,UAAAc,CACP,CAQH,MAAc,QACZC,EACAH,EACAI,EACAP,EACAP,EACA,CACA,MAAMS,EAAW,MAAM,KAAK,aAAa,UAAU,CACjD,UAAWI,EACX,aAAc,GACd,YAAAb,CAAA,CACD,EAED,OAAAI,EACEK,EAAQ,OACR,EAAIC,EAAcI,EAClBP,CAAA,EAGKC,EAAUC,EAASC,CAAW,CACvC,CAEA,MAAM,wBACJK,EACAf,EAC2B,CAC3B,MAAMa,EAAgB,CACpB,CACE,QAAS,KAAK,UAAU,iBACxB,IAAKV,EAAAA,oBACL,aAAc,4BACd,KAAM,CAACY,EAAM,uBAAuB,CAAA,EAEtC,GAAGA,EAAM,aAAa,IAAKC,IAAY,CACrC,QAAS,KAAK,UAAU,oBACxB,IAAKC,E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ACjB,MAAMyB,EAAe,MAAM,KAAK,aAAa,aAAa,CACxD,QAAS,KAAK,gBACd,IAAKR,EAAAA,uBACL,aAAc,2BACd,KAAM,CAACW,CAAa,EACpB,YAAA5B,CAAA,CACD,EAED,OAAOwB,EAAeC,EAAK,0BAA0B,CACvD,CACF,CAWO,MAAMK,CAAmE,CAC9E,YACUhC,EACA6B,EACR,CAFQ,KAAA,aAAA7B,EACA,KAAA,gBAAA6B,CACP,CAEH,MAAM,iCACJE,EACA7B,EAC8B,CAC9B,MAAMsB,EAAU,MAAM,KAAK,aAAa,aAAa,CACnD,QAAS,KAAK,gBACd,IAAKH,EAAAA,kBACL,aAAc,mCACd,KAAM,CAACU,CAAO,EACd,YAAA7B,CAAA,CACD,EAED,OAAOqB,EAAYC,CAAM,CAC3B,CAEA,MAAM,gCAA+D,CACnE,MAAMA,EAAU,MAAM,KAAK,aAAa,aAAa,CACnD,QAAS,KAAK,gBACd,IAAKH,EAAAA,kBACL,aAAc,gCAAA,CACf,EAED,OAAOE,EAAYC,CAAM,CAC3B,CAEA,MAAM,qCACJtB,EACiB,CAQjB,OAPgB,MAAM,KAAK,aAAa,aAAa,CACnD,QAAS,KAAK,gBACd,IAAKmB,EAAAA,kBACL,aAAc,oCACd,YAAAnB,CAAA,CACD,CAGH,CAEA,MAAM,qBAAqBA,EAAuC,CAChE,MAAMyB,EAAe,MAAM,KAAK,aAAa,aAAa,CACxD,QAAS,KAAK,gBACd,IAAKN,EAAAA,kBACL,aAAc,oBACd,YAAAnB,CAAA,CACD,EAED,OAAOwB,EAAeC,EAAK,mBAAmB,CAChD,CACF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../registration-records-CKc0OVuK.cjs"),a=require("../../../../signer-set-reader-CNEfzwuA.cjs"),r=require("../../../../pegin-registration-client-Cdgp5Ge_.cjs"),i=require("../../../../types-BnZIbDHb.cjs"),t=require("../../../../secp256k1-DDHQ1_za.cjs");exports.RegistrationLogsUnavailableError=e.RegistrationLogsUnavailableError;exports.VaultClaimableByNotFoundError=e.VaultClaimableByNotFoundError;exports.assertOnChainBtcPubkey=e.assertOnChainBtcPubkey;exports.assertRegisteredPayoutScriptBounds=e.assertRegisteredPayoutScriptBounds;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.derivePeginVaultId=e.derivePeginVaultId;exports.findRegistrationRecord=e.findRegistrationRecord;exports.isRegistrationLogsUnavailableError=e.isRegistrationLogsUnavailableError;exports.isVaultClaimableByNotFoundError=e.isVaultClaimableByNotFoundError;exports.registrationPrePeginTxHash=e.registrationPrePeginTxHash;exports.validateOffchainParams=e.validateOffchainParams;exports.validatePegInConfiguration=e.validatePegInConfiguration;exports.validateTBVProtocolParams=e.validateTBVProtocolParams;exports.ViemOperationKeyReader=a.ViemOperationKeyReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.ViemPeginRegistrationClient=r.ViemPeginRegistrationClient;exports.ViemVaultRegistryReader=r.ViemVaultRegistryReader;exports.OnChainBtcVaultStatus=i.OnChainBtcVaultStatus;exports.ViemProtocolParamsReader=i.ViemProtocolParamsReader;exports.assertValidVaultCoreVersion=t.assertValidVaultCoreVersion;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../registration-records-CKc0OVuK.cjs"),a=require("../../../../signer-set-reader-C8xSyTMb.cjs"),r=require("../../../../pegin-registration-client-JtZkosZQ.cjs"),i=require("../../../../types-Bt1FM6d8.cjs"),t=require("../../../../secp256k1-DDHQ1_za.cjs");exports.RegistrationLogsUnavailableError=e.RegistrationLogsUnavailableError;exports.VaultClaimableByNotFoundError=e.VaultClaimableByNotFoundError;exports.assertOnChainBtcPubkey=e.assertOnChainBtcPubkey;exports.assertRegisteredPayoutScriptBounds=e.assertRegisteredPayoutScriptBounds;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.derivePeginVaultId=e.derivePeginVaultId;exports.findRegistrationRecord=e.findRegistrationRecord;exports.isRegistrationLogsUnavailableError=e.isRegistrationLogsUnavailableError;exports.isVaultClaimableByNotFoundError=e.isVaultClaimableByNotFoundError;exports.registrationPrePeginTxHash=e.registrationPrePeginTxHash;exports.validateOffchainParams=e.validateOffchainParams;exports.validatePegInConfiguration=e.validatePegInConfiguration;exports.validateTBVProtocolParams=e.validateTBVProtocolParams;exports.ViemOperationKeyReader=a.ViemOperationKeyReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.ViemPeginRegistrationClient=r.ViemPeginRegistrationClient;exports.ViemVaultRegistryReader=r.ViemVaultRegistryReader;exports.OnChainBtcVaultStatus=i.OnChainBtcVaultStatus;exports.ViemProtocolParamsReader=i.ViemProtocolParamsReader;exports.assertValidVaultCoreVersion=t.assertValidVaultCoreVersion;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { R as r, V as s, a as t, f as i, h as o, d as l, g as n, e as d, i as V, r as g, v as m, b as u, c as P } from "../../../../registration-records-D39ApuHS.js";
2
- import { V as c, a as f, b as v, r as p } from "../../../../signer-set-reader-Csz8RXQi.js";
3
- import { V as b, a as h } from "../../../../pegin-registration-client-Yc-Qs5kq.js";
4
- import { O as B, V as y } from "../../../../types-K_aM5GZO.js";
2
+ import { V as c, a as f, b as v, r as p } from "../../../../signer-set-reader-BJ3g6rid.js";
3
+ import { V as b, a as h } from "../../../../pegin-registration-client-B8A4P-Vv.js";
4
+ import { O as B, V as y } from "../../../../types-D7p5jFlm.js";
5
5
  import { a as E } from "../../../../secp256k1-BuxBFUHm.js";
6
6
  export {
7
7
  B as OnChainBtcVaultStatus,
@@ -30,7 +30,7 @@ export declare class ViemProtocolParamsReader implements ProtocolParamsReader {
30
30
  private publicClient;
31
31
  private contractAddress;
32
32
  constructor(publicClient: PublicClient, contractAddress: Address);
33
- getTBVProtocolParams(): Promise<TBVProtocolParams>;
33
+ getTBVProtocolParams(blockNumber?: bigint): Promise<TBVProtocolParams>;
34
34
  private tbvParamsCalls;
35
35
  getLatestOffchainParams(): Promise<VersionedOffchainParams>;
36
36
  getOffchainParamsByVersion(version: number): Promise<VersionedOffchainParams>;
@@ -1 +1 @@
1
- {"version":3,"file":"protocol-params-reader.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/protocol-params-reader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAO,OAAO,EAAO,YAAY,EAAE,MAAM,MAAM,CAAC;AAS5D,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AA6JjB;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAOlE;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAyB,YAAW,oBAAoB;IAEjE,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,eAAe;gBADf,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,OAAO;IAG5B,oBAAoB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAYxD,OAAO,CAAC,cAAc;IAehB,uBAAuB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAY3D,0BAA0B,CAC9B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC;IAa7B,8BAA8B,IAAI,OAAO,CAAC,MAAM,CAAC;IAWjD,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKjE;;;;;;;;;OASG;IACG,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC;IAchD;;;;;;;;;;;OAWG;IACG,qBAAqB,CACzB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,kBAAkB,CAAC;IAmD9B;;;;;;;;;OASG;IACG,sBAAsB,CAC1B,gBAAgB,CAAC,EAAE,8BAA8B,GAChD,OAAO,CAAC,qBAAqB,CAAC;CAqClC"}
1
+ {"version":3,"file":"protocol-params-reader.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/protocol-params-reader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAO,OAAO,EAAO,YAAY,EAAE,MAAM,MAAM,CAAC;AAS5D,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAqOjB;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAOlE;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAyB,YAAW,oBAAoB;IAEjE,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,eAAe;gBADf,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,OAAO;IAG5B,oBAAoB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAiB5E,OAAO,CAAC,cAAc;IAoBhB,uBAAuB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAY3D,0BAA0B,CAC9B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC;IAa7B,8BAA8B,IAAI,OAAO,CAAC,MAAM,CAAC;IAWjD,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKjE;;;;;;;;;OASG;IACG,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC;IAchD;;;;;;;;;;;OAWG;IACG,qBAAqB,CACzB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,kBAAkB,CAAC;IAoD9B;;;;;;;;;OASG;IACG,sBAAsB,CAC1B,gBAAgB,CAAC,EAAE,8BAA8B,GAChD,OAAO,CAAC,qBAAqB,CAAC;CAqClC"}
@@ -316,6 +316,11 @@ export interface TBVProtocolParams {
316
316
  * funding-input bound.
317
317
  */
318
318
  maxFundingInputCount: number | null;
319
+ /**
320
+ * Source: `IProtocolParams.TBVProtocolParams.minActivationGas`; minimum gas at
321
+ * activation entry. `null` means the deployment predates the field.
322
+ */
323
+ minActivationGas: bigint | null;
319
324
  }
320
325
  /**
321
326
  * Versioned offchain parameters from the ProtocolParams contract.
@@ -351,6 +356,11 @@ export interface PegInConfiguration {
351
356
  maxHtlcOutputCount: number;
352
357
  expiredPegInGraceBlocks: bigint;
353
358
  maxFundingInputCount: number | null;
359
+ /**
360
+ * Source: `IProtocolParams.TBVProtocolParams.minActivationGas`; minimum gas at
361
+ * activation entry. `null` means the deployment predates the field.
362
+ */
363
+ minActivationGas: bigint | null;
354
364
  timelockPegin: number;
355
365
  timelockRefund: number;
356
366
  maxVpCommissionBps: number;
@@ -389,7 +399,7 @@ export interface AllOffchainParamsData {
389
399
  export type OnSkippedOffchainParamsVersion = (version: number, error: Error) => void;
390
400
  /** Interface for reading protocol parameters from the ProtocolParams contract. */
391
401
  export interface ProtocolParamsReader {
392
- getTBVProtocolParams(): Promise<TBVProtocolParams>;
402
+ getTBVProtocolParams(blockNumber?: bigint): Promise<TBVProtocolParams>;
393
403
  getOffchainParamsByVersion(version: number): Promise<VersionedOffchainParams>;
394
404
  getLatestOffchainParams(): Promise<VersionedOffchainParams>;
395
405
  getLatestOffchainParamsVersion(): Promise<number>;
@@ -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,CA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AAE,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;;;;;;;OAOG;IACH,uBAAuB,CACrB,KAAK,EAAE,iBAAiB,EACxB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B;;;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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mempool/index.cjs"),e=require("../../../registration-records-CKc0OVuK.cjs"),a=require("../../../signer-set-reader-CNEfzwuA.cjs"),s=require("../../../pegin-registration-client-Cdgp5Ge_.cjs"),n=require("../../../types-BnZIbDHb.cjs"),l=require("../../../secp256k1-DDHQ1_za.cjs"),o=require("../../../index-Dn7RlsKK.cjs"),t=require("../../../state-C4WoNCy1.cjs"),i=require("../../../primeVpAuth-Ch-ig2My.cjs");exports.MEMPOOL_API_URLS=r.MEMPOOL_API_URLS;exports.MempoolNotFoundError=r.MempoolNotFoundError;exports.getAddressTxs=r.getAddressTxs;exports.getAddressUtxos=r.getAddressUtxos;exports.getMempoolApiUrl=r.getMempoolApiUrl;exports.getNetworkFees=r.getNetworkFees;exports.getOutspend=r.getOutspend;exports.getTipHeight=r.getTipHeight;exports.getTxHex=r.getTxHex;exports.getTxInfo=r.getTxInfo;exports.getUtxoInfo=r.getUtxoInfo;exports.pushTx=r.pushTx;exports.RegistrationLogsUnavailableError=e.RegistrationLogsUnavailableError;exports.VaultClaimableByNotFoundError=e.VaultClaimableByNotFoundError;exports.assertOnChainBtcPubkey=e.assertOnChainBtcPubkey;exports.assertRegisteredPayoutScriptBounds=e.assertRegisteredPayoutScriptBounds;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.derivePeginVaultId=e.derivePeginVaultId;exports.findRegistrationRecord=e.findRegistrationRecord;exports.isRegistrationLogsUnavailableError=e.isRegistrationLogsUnavailableError;exports.isVaultClaimableByNotFoundError=e.isVaultClaimableByNotFoundError;exports.registrationPrePeginTxHash=e.registrationPrePeginTxHash;exports.validateOffchainParams=e.validateOffchainParams;exports.validatePegInConfiguration=e.validatePegInConfiguration;exports.validateTBVProtocolParams=e.validateTBVProtocolParams;exports.ViemOperationKeyReader=a.ViemOperationKeyReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.ViemPeginRegistrationClient=s.ViemPeginRegistrationClient;exports.ViemVaultRegistryReader=s.ViemVaultRegistryReader;exports.OnChainBtcVaultStatus=n.OnChainBtcVaultStatus;exports.ViemProtocolParamsReader=n.ViemProtocolParamsReader;exports.assertValidVaultCoreVersion=l.assertValidVaultCoreVersion;exports.VaultProviderRpcClient=o.VaultProviderRpcClient;exports.VpResponseValidationError=o.VpResponseValidationError;exports.batchPollByProvider=o.batchPollByProvider;exports.isUnrecognizedDaemonStatusError=o.isUnrecognizedDaemonStatusError;exports.validateRequestDepositorClaimerArtifactsResponse=o.validateRequestDepositorClaimerArtifactsResponse;exports.AUTH_REJECTED_RPC_CODE=t.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=t.DaemonStatus;exports.JSON_RPC_ERROR_CODES=t.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=t.JsonRpcClient;exports.JsonRpcError=t.JsonRpcError;exports.POST_WOTS_STATUSES=t.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=t.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=t.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=t.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=t.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=t.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=t.isAuthRejectedError;exports.ServerIdentityError=i.ServerIdentityError;exports.VpTokenRegistry=i.VpTokenRegistry;exports.createAuthenticatedVpClient=i.createAuthenticatedVpClient;exports.primeVpTokenRegistry=i.primeVpTokenRegistry;exports.verifyServerIdentity=i.verifyServerIdentity;exports.vpTokenRegistry=i.vpTokenRegistry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mempool/index.cjs"),e=require("../../../registration-records-CKc0OVuK.cjs"),a=require("../../../signer-set-reader-C8xSyTMb.cjs"),s=require("../../../pegin-registration-client-JtZkosZQ.cjs"),n=require("../../../types-Bt1FM6d8.cjs"),l=require("../../../secp256k1-DDHQ1_za.cjs"),o=require("../../../index-Dn7RlsKK.cjs"),t=require("../../../state-C4WoNCy1.cjs"),i=require("../../../primeVpAuth-36ayVa21.cjs");exports.MEMPOOL_API_URLS=r.MEMPOOL_API_URLS;exports.MempoolNotFoundError=r.MempoolNotFoundError;exports.getAddressTxs=r.getAddressTxs;exports.getAddressUtxos=r.getAddressUtxos;exports.getMempoolApiUrl=r.getMempoolApiUrl;exports.getNetworkFees=r.getNetworkFees;exports.getOutspend=r.getOutspend;exports.getTipHeight=r.getTipHeight;exports.getTxHex=r.getTxHex;exports.getTxInfo=r.getTxInfo;exports.getUtxoInfo=r.getUtxoInfo;exports.pushTx=r.pushTx;exports.RegistrationLogsUnavailableError=e.RegistrationLogsUnavailableError;exports.VaultClaimableByNotFoundError=e.VaultClaimableByNotFoundError;exports.assertOnChainBtcPubkey=e.assertOnChainBtcPubkey;exports.assertRegisteredPayoutScriptBounds=e.assertRegisteredPayoutScriptBounds;exports.calculateBtcTxHash=e.calculateBtcTxHash;exports.derivePeginVaultId=e.derivePeginVaultId;exports.findRegistrationRecord=e.findRegistrationRecord;exports.isRegistrationLogsUnavailableError=e.isRegistrationLogsUnavailableError;exports.isVaultClaimableByNotFoundError=e.isVaultClaimableByNotFoundError;exports.registrationPrePeginTxHash=e.registrationPrePeginTxHash;exports.validateOffchainParams=e.validateOffchainParams;exports.validatePegInConfiguration=e.validatePegInConfiguration;exports.validateTBVProtocolParams=e.validateTBVProtocolParams;exports.ViemOperationKeyReader=a.ViemOperationKeyReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.ViemPeginRegistrationClient=s.ViemPeginRegistrationClient;exports.ViemVaultRegistryReader=s.ViemVaultRegistryReader;exports.OnChainBtcVaultStatus=n.OnChainBtcVaultStatus;exports.ViemProtocolParamsReader=n.ViemProtocolParamsReader;exports.assertValidVaultCoreVersion=l.assertValidVaultCoreVersion;exports.VaultProviderRpcClient=o.VaultProviderRpcClient;exports.VpResponseValidationError=o.VpResponseValidationError;exports.batchPollByProvider=o.batchPollByProvider;exports.isUnrecognizedDaemonStatusError=o.isUnrecognizedDaemonStatusError;exports.validateRequestDepositorClaimerArtifactsResponse=o.validateRequestDepositorClaimerArtifactsResponse;exports.AUTH_REJECTED_RPC_CODE=t.AUTH_REJECTED_RPC_CODE;exports.DaemonStatus=t.DaemonStatus;exports.JSON_RPC_ERROR_CODES=t.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=t.JsonRpcClient;exports.JsonRpcError=t.JsonRpcError;exports.POST_WOTS_STATUSES=t.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=t.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=t.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=t.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=t.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=t.VP_TRANSIENT_STATUSES;exports.isAuthRejectedError=t.isAuthRejectedError;exports.ServerIdentityError=i.ServerIdentityError;exports.VpTokenRegistry=i.VpTokenRegistry;exports.createAuthenticatedVpClient=i.createAuthenticatedVpClient;exports.primeVpTokenRegistry=i.primeVpTokenRegistry;exports.verifyServerIdentity=i.verifyServerIdentity;exports.vpTokenRegistry=i.vpTokenRegistry;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,12 +1,12 @@
1
1
  import { MEMPOOL_API_URLS as r, MempoolNotFoundError as s, getAddressTxs as t, getAddressUtxos as o, getMempoolApiUrl as i, getNetworkFees as n, getOutspend as l, getTipHeight as R, getTxHex as d, getTxInfo as p, getUtxoInfo as V, pushTx as g } from "./mempool/index.js";
2
2
  import { R as T, V as S, a as P, f as m, h as c, d as u, g as _, e as A, i as C, r as f, v, b as x, c as O } from "../../../registration-records-D39ApuHS.js";
3
- import { V as y, a as I, b as h, r as b } from "../../../signer-set-reader-Csz8RXQi.js";
4
- import { V as N, a as D } from "../../../pegin-registration-client-Yc-Qs5kq.js";
5
- import { O as L, V as M } from "../../../types-K_aM5GZO.js";
3
+ import { V as y, a as I, b as h, r as b } from "../../../signer-set-reader-BJ3g6rid.js";
4
+ import { V as N, a as D } from "../../../pegin-registration-client-B8A4P-Vv.js";
5
+ import { O as L, V as M } from "../../../types-D7p5jFlm.js";
6
6
  import { a as F } from "../../../secp256k1-BuxBFUHm.js";
7
7
  import { V as K, a as j, b as q, i as w, v as z } from "../../../index-B-9aXMxk.js";
8
8
  import { A as W, D as X, J as Z, a as Q, b as Y, d as $, P as ee, R as ae, e as re, c as se, V as te, i as oe } from "../../../state-CFn1rT74.js";
9
- import { S as ne, V as le, c as Re, p as de, v as pe, a as Ve } from "../../../primeVpAuth-B0noJdcy.js";
9
+ import { S as ne, V as le, c as Re, p as de, v as pe, a as Ve } from "../../../primeVpAuth-P-KTmNKb.js";
10
10
  export {
11
11
  W as AUTH_REJECTED_RPC_CODE,
12
12
  X as DaemonStatus,
@@ -100,6 +100,13 @@ export declare class VpTokenProvider implements BearerTokenProvider {
100
100
  * deterministically.
101
101
  */
102
102
  getToken(method: string): Promise<string | null>;
103
+ /**
104
+ * Return the JSON-RPC-subject bearer (`auth_createDepositorToken`).
105
+ *
106
+ * For VP routes that are not JSON-RPC methods but accept this bearer,
107
+ * such as the HTTP depositor artifact downloads.
108
+ */
109
+ getJsonRpcToken(): Promise<string>;
103
110
  /**
104
111
  * Drop both cached tokens. Next `getToken` call re-acquires the slot
105
112
  * that's actually needed. Called by `JsonRpcClient` on wire
@@ -1 +1 @@
1
- {"version":3,"file":"tokenProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/clients/vault-provider/auth/tokenProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAK7E,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,kBAAkB,CAAC;AAsB1B;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,eAAe,EAAE,sBAAsB,CAAC;CACzC;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,2FAA2F;IAC3F,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,kBAAkB,EAAE,gBAAgB,CAAC;IACrC;;;OAGG;IACH,sBAAsB,EAAE,gBAAgB,CAAC;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AAI,IAAI;YASJ,kBAAkB;IAWhC;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAItC,0EAA0E;IAC1E,qBAAqB,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,gBAAgB;IAMpE,OAAO,CAAC,mBAAmB;YAoCb,gBAAgB;CA8E/B"}
1
+ {"version":3,"file":"tokenProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/clients/vault-provider/auth/tokenProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAK7E,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,kBAAkB,CAAC;AAsB1B;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,eAAe,EAAE,sBAAsB,CAAC;CACzC;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,2FAA2F;IAC3F,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,kBAAkB,EAAE,gBAAgB,CAAC;IACrC;;;OAGG;IACH,sBAAsB,EAAE,gBAAgB,CAAC;IACzC;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnE;;;;;OAKG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;;OAKG;IACH,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC;;;;;OAKG;IACH,gBAAgB,EAAE,WAAW,C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E,OAAO,CAAC,mBAAmB;YAoCb,gBAAgB;CA8E/B"}
@@ -766,6 +766,10 @@ export declare const BTCVaultRegistryABI: readonly [{
766
766
  readonly type: "error";
767
767
  readonly name: "ActivationDeadlineExpired";
768
768
  readonly inputs: readonly [];
769
+ }, {
770
+ readonly type: "error";
771
+ readonly name: "InsufficientGasForActivation";
772
+ readonly inputs: readonly [];
769
773
  }, {
770
774
  readonly type: "error";
771
775
  readonly name: "ActivationDelayNotElapsed";
@@ -938,5 +942,35 @@ export declare const BTCVaultRegistryABI: readonly [{
938
942
  readonly internalType: "uint16";
939
943
  }];
940
944
  readonly anonymous: false;
945
+ }, {
946
+ readonly type: "event";
947
+ readonly name: "PeginActivated";
948
+ readonly inputs: readonly [{
949
+ readonly name: "vaultId";
950
+ readonly type: "bytes32";
951
+ readonly indexed: true;
952
+ readonly internalType: "bytes32";
953
+ }, {
954
+ readonly name: "depositor";
955
+ readonly type: "address";
956
+ readonly indexed: true;
957
+ readonly internalType: "address";
958
+ }, {
959
+ readonly name: "secret";
960
+ readonly type: "bytes32";
961
+ readonly indexed: false;
962
+ readonly internalType: "bytes32";
963
+ }];
964
+ readonly anonymous: false;
965
+ }, {
966
+ readonly type: "event";
967
+ readonly name: "ActivationFailed";
968
+ readonly inputs: readonly [{
969
+ readonly name: "data";
970
+ readonly type: "bytes";
971
+ readonly indexed: false;
972
+ readonly internalType: "bytes";
973
+ }];
974
+ readonly anonymous: false;
941
975
  }];
942
976
  //# 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;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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: "uint8";
58
58
  readonly internalType: "uint8";
59
+ }, {
60
+ readonly name: "minActivationGas";
61
+ readonly type: "uint64";
62
+ readonly internalType: "uint64";
59
63
  }];
60
64
  }];
61
65
  readonly stateMutability: "view";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmXpB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwXpB,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const _default: [{"type":"error","name":"AccessControlBadConfirmation","inputs":[]},{"type":"error","name":"AccessControlUnauthorizedAccount","inputs":[{"name":"account","type":"address"},{"name":"neededRole","type":"bytes32"}]},{"type":"error","name":"AccessManagedInvalidAuthority","inputs":[{"name":"authority","type":"address"}]},{"type":"error","name":"AccessManagedRequiredDelay","inputs":[{"name":"caller","type":"address"},{"name":"delay","type":"uint32"}]},{"type":"error","name":"AccessManagedUnauthorized","inputs":[{"name":"caller","type":"address"}]},{"type":"error","name":"AccessManagerAlreadyScheduled","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerBadConfirmation","inputs":[]},{"type":"error","name":"AccessManagerExpired","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerInvalidInitialAdmin","inputs":[{"name":"initialAdmin","type":"address"}]},{"type":"error","name":"AccessManagerLockedRole","inputs":[{"name":"roleId","type":"uint64"}]},{"type":"error","name":"AccessManagerNotReady","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerNotScheduled","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerUnauthorizedAccount","inputs":[{"name":"msgsender","type":"address"},{"name":"roleId","type":"uint64"}]},{"type":"error","name":"AccessManagerUnauthorizedCall","inputs":[{"name":"caller","type":"address"},{"name":"target","type":"address"},{"name":"selector","type":"bytes4"}]},{"type":"error","name":"AccessManagerUnauthorizedCancel","inputs":[{"name":"msgsender","type":"address"},{"name":"caller","type":"address"},{"name":"target","type":"address"},{"name":"selector","type":"bytes4"}]},{"type":"error","name":"AccessManagerUnauthorizedConsume","inputs":[{"name":"target","type":"address"}]},{"type":"error","name":"ActivationDeadlineExpired","inputs":[]},{"type":"error","name":"ActivationDelayNotElapsed","inputs":[]},{"type":"error","name":"AddCapExceeded","inputs":[{"name":"addCap","type":"uint256"}]},{"type":"error","name":"AddressEmptyCode","inputs":[{"name":"target","type":"address"}]},{"type":"error","name":"AllowListDisabled","inputs":[]},{"type":"error","name":"AlreadyFrozen","inputs":[]},{"type":"error","name":"AlreadyPaused","inputs":[]},{"type":"error","name":"AmountBelowMinimumThreshold","inputs":[{"name":"actual","type":"uint256"},{"name":"minimum","type":"uint256"}]},{"type":"error","name":"ApplicationAlreadyRegistered","inputs":[]},{"type":"error","name":"ApplicationNotActive","inputs":[]},{"type":"error","name":"ApplicationNotRegistered","inputs":[]},{"type":"error","name":"ArrayExceedsMaxSize","inputs":[{"name":"actual","type":"uint256"},{"name":"maximum","type":"uint256"}]},{"type":"error","name":"AssetNotListed","inputs":[]},{"type":"error","name":"BTCVaultNotFound","inputs":[]},{"type":"error","name":"BlocklistedVaultKeeper","inputs":[]},{"type":"error","name":"BtcKeyAlreadyRegistered","inputs":[]},{"type":"error","name":"BufferTooShort","inputs":[{"name":"offset","type":"uint256"},{"name":"requiredLength","type":"uint256"},{"name":"availableLength","type":"uint256"}]},{"type":"error","name":"CannotReceiveShares","inputs":[]},{"type":"error","name":"CapExceeded","inputs":[]},{"type":"error","name":"CommissionAboveMaximum","inputs":[{"name":"provided","type":"uint16"},{"name":"maximum","type":"uint16"}]},{"type":"error","name":"CommissionBelowMinimum","inputs":[{"name":"provided","type":"uint16"},{"name":"minimum","type":"uint16"}]},{"type":"error","name":"CommissionUnchanged","inputs":[]},{"type":"error","name":"DelegateeNotVerified","inputs":[]},{"type":"error","name":"DepositNotAllowed","inputs":[]},{"type":"error","name":"DepositorWotsPkHashAlreadyUsed","inputs":[]},{"type":"error","name":"DrawCapExceeded","inputs":[{"name":"drawCap","type":"uint256"}]},{"type":"error","name":"DuplicateHashlock","inputs":[]},{"type":"error","name":"DuplicateParticipant","inputs":[]},{"type":"error","name":"DynamicConfigKeyUninitialized","inputs":[]},{"type":"error","name":"ECDSAInvalidSignature","inputs":[]},{"type":"error","name":"ECDSAInvalidSignatureLength","inputs":[{"name":"length","type":"uint256"}]},{"type":"error","name":"ECDSAInvalidSignatureS","inputs":[{"name":"s","type":"bytes32"}]},{"type":"error","name":"ERC1155InsufficientBalance","inputs":[{"name":"sender","type":"address"},{"name":"balance","type":"uint256"},{"name":"needed","type":"uint256"},{"name":"tokenId","type":"uint256"}]},{"type":"error","name":"ERC1155InvalidApprover","inputs":[{"name":"approver","type":"address"}]},{"type":"error","name":"ERC1155InvalidArrayLength","inputs":[{"name":"idsLength","type":"uint256"},{"name":"valuesLength","type":"uint256"}]},{"type":"error","name":"ERC1155InvalidOperator","inputs":[{"name":"operator","type":"address"}]},{"type":"error","name":"ERC1155InvalidReceiver","inputs":[{"name":"receiver","type":"address"}]},{"type":"error","name":"ERC1155InvalidSender","inputs":[{"name":"sender","type":"address"}]},{"type":"error","name":"ERC1155MissingApprovalForAll","inputs":[{"name":"operator","type":"address"},{"name":"owner","type":"address"}]},{"type":"error","name":"ERC1967InvalidAdmin","inputs":[{"name":"admin","type":"address"}]},{"type":"error","name":"ERC1967InvalidBeacon","inputs":[{"name":"beacon","type":"address"}]},{"type":"error","name":"ERC1967InvalidImplementation","inputs":[{"name":"implementation","type":"address"}]},{"type":"error","name":"ERC1967NonPayable","inputs":[]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"name":"spender","type":"address"},{"name":"allowance","type":"uint256"},{"name":"needed","type":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"name":"sender","type":"address"},{"name":"balance","type":"uint256"},{"name":"needed","type":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"name":"approver","type":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"name":"receiver","type":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"name":"sender","type":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"name":"spender","type":"address"}]},{"type":"error","name":"ERC721IncorrectOwner","inputs":[{"name":"sender","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"owner","type":"address"}]},{"type":"error","name":"ERC721InsufficientApproval","inputs":[{"name":"operator","type":"address"},{"name":"tokenId","type":"uint256"}]},{"type":"error","name":"ERC721InvalidApprover","inputs":[{"name":"approver","type":"address"}]},{"type":"error","name":"ERC721InvalidOperator","inputs":[{"name":"operator","type":"address"}]},{"type":"error","name":"ERC721InvalidOwner","inputs":[{"name":"owner","type":"address"}]},{"type":"error","name":"ERC721InvalidReceiver","inputs":[{"name":"receiver","type":"address"}]},{"type":"error","name":"ERC721InvalidSender","inputs":[{"name":"sender","type":"address"}]},{"type":"error","name":"ERC721NonexistentToken","inputs":[{"name":"tokenId","type":"uint256"}]},{"type":"error","name":"EmptyArray","inputs":[]},{"type":"error","name":"EmptyPayoutAddress","inputs":[]},{"type":"error","name":"EmptyVaultKeepers","inputs":[]},{"type":"error","name":"EnforcedFreeze","inputs":[]},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"EthKeyAlreadyRegistered","inputs":[]},{"type":"error","name":"ExcessiveExitBtcPayment","inputs":[]},{"type":"error","name":"FailedCall","inputs":[]},{"type":"error","name":"FailedDeployment","inputs":[]},{"type":"error","name":"HealthFactorBelowThreshold","inputs":[]},{"type":"error","name":"HealthFactorNotBelowThreshold","inputs":[]},{"type":"error","name":"IncompleteWithdrawal","inputs":[{"name":"expected","type":"uint256"},{"name":"actual","type":"uint256"}]},{"type":"error","name":"InsufficientBalance","inputs":[{"name":"balance","type":"uint256"},{"name":"needed","type":"uint256"}]},{"type":"error","name":"InsufficientBorrowAllowance","inputs":[]},{"type":"error","name":"InsufficientExitBtcForFee","inputs":[]},{"type":"error","name":"InsufficientLiquidity","inputs":[{"name":"liquidity","type":"uint256"}]},{"type":"error","name":"InsufficientSettlementAmount","inputs":[]},{"type":"error","name":"InsufficientTransferred","inputs":[{"name":"liquidityNeeded","type":"uint256"}]},{"type":"error","name":"InterestRateDataNotSet","inputs":[{"name":"assetId","type":"uint256"}]},{"type":"error","name":"InvalidAccountNonce","inputs":[{"name":"account","type":"address"},{"name":"currentNonce","type":"uint256"}]},{"type":"error","name":"InvalidAction","inputs":[{"name":"action","type":"bytes32"}]},{"type":"error","name":"InvalidActivationMetadataVersion","inputs":[]},{"type":"error","name":"InvalidAddress","inputs":[]},{"type":"error","name":"InvalidAmount","inputs":[]},{"type":"error","name":"InvalidApplicationStatus","inputs":[]},{"type":"error","name":"InvalidAssetDecimals","inputs":[]},{"type":"error","name":"InvalidAssetId","inputs":[]},{"type":"error","name":"InvalidBIP322Signature","inputs":[{"name":"offset","type":"uint256"},{"name":"length","type":"uint256"}]},{"type":"error","name":"InvalidBTCPopSignatureLength","inputs":[{"name":"length","type":"uint256"},{"name":"minLength","type":"uint256"},{"name":"maxLength","type":"uint256"}]},{"type":"error","name":"InvalidBTCProofOfPossession","inputs":[]},{"type":"error","name":"InvalidBTCPublicKey","inputs":[]},{"type":"error","name":"InvalidBTCVaultStatus","inputs":[]},{"type":"error","name":"InvalidBTCVaultUsageStatus","inputs":[]},{"type":"error","name":"InvalidBase","inputs":[{"name":"base","type":"uint256"},{"name":"modulus","type":"uint256"}]},{"type":"error","name":"InvalidCollateralFactor","inputs":[]},{"type":"error","name":"InvalidCollateralFactorAndMaxLiquidationBonus","inputs":[]},{"type":"error","name":"InvalidCollateralRisk","inputs":[]},{"type":"error","name":"InvalidCompactSize","inputs":[{"name":"offset","type":"uint256"},{"name":"prefix","type":"uint8"},{"name":"value","type":"uint64"},{"name":"minValue","type":"uint64"}]},{"type":"error","name":"InvalidControlBlock","inputs":[{"name":"length","type":"uint256"},{"name":"remainder","type":"uint256"}]},{"type":"error","name":"InvalidDebtToCover","inputs":[]},{"type":"error","name":"InvalidDelay","inputs":[]},{"type":"error","name":"InvalidDepositorWotsPkHash","inputs":[]},{"type":"error","name":"InvalidEscrowedVaultStatus","inputs":[]},{"type":"error","name":"InvalidEthProofOfPossession","inputs":[]},{"type":"error","name":"InvalidFeeConfiguration","inputs":[]},{"type":"error","name":"InvalidHashlock","inputs":[]},{"type":"error","name":"InvalidImplementation","inputs":[]},{"type":"error","name":"InvalidInitialization","inputs":[]},{"type":"error","name":"InvalidInterestRateStrategy","inputs":[]},{"type":"error","name":"InvalidLiquidationConfig","inputs":[]},{"type":"error","name":"InvalidLiquidationFee","inputs":[]},{"type":"error","name":"InvalidLiquidityFee","inputs":[]},{"type":"error","name":"InvalidMaxUserReservesLimit","inputs":[]},{"type":"error","name":"InvalidOracleDecimals","inputs":[]},{"type":"error","name":"InvalidOraclePrice","inputs":[]},{"type":"error","name":"InvalidOutputIndex","inputs":[{"name":"provided","type":"uint256"},{"name":"maxValid","type":"uint256"}]},{"type":"error","name":"InvalidParticipantsList","inputs":[]},{"type":"error","name":"InvalidPeginFee","inputs":[{"name":"provided","type":"uint256"},{"name":"required","type":"uint256"}]},{"type":"error","name":"InvalidPoint","inputs":[{"name":"x","type":"uint256"},{"name":"y","type":"uint256"}]},{"type":"error","name":"InvalidPositionAccount","inputs":[]},{"type":"error","name":"InvalidPositionResolver","inputs":[]},{"type":"error","name":"InvalidPositionSizes","inputs":[]},{"type":"error","name":"InvalidPostLiquidationState","inputs":[]},{"type":"error","name":"InvalidPremiumChange","inputs":[]},{"type":"error","name":"InvalidPrice","inputs":[{"name":"reserveId","type":"uint256"}]},{"type":"error","name":"InvalidProxyContract","inputs":[]},{"type":"error","name":"InvalidReceiver","inputs":[]},{"type":"error","name":"InvalidRegistrationFee","inputs":[]},{"type":"error","name":"InvalidReinvestmentController","inputs":[]},{"type":"error","name":"InvalidSValue","inputs":[{"name":"s","type":"bytes32"}]},{"type":"error","name":"InvalidSecret","inputs":[]},{"type":"error","name":"InvalidSecurityCouncilConfig","inputs":[]},{"type":"error","name":"InvalidShares","inputs":[]},{"type":"error","name":"InvalidShortDelayArrays","inputs":[]},{"type":"error","name":"InvalidSignature","inputs":[]},{"type":"error","name":"InvalidSignatureLength","inputs":[]},{"type":"error","name":"InvalidSource","inputs":[{"name":"reserveId","type":"uint256"}]},{"type":"error","name":"InvalidSourceDecimals","inputs":[{"name":"reserveId","type":"uint256"}]},{"type":"error","name":"InvalidTransaction","inputs":[]},{"type":"error","name":"InvalidVault","inputs":[]},{"type":"error","name":"InvalidVaultsArray","inputs":[]},{"type":"error","name":"InvalidWitnessData","inputs":[{"name":"offset","type":"uint256"},{"name":"expected","type":"uint256"},{"name":"actual","type":"uint256"}]},{"type":"error","name":"InvalidXOnlyKey","inputs":[{"name":"xOnly","type":"bytes32"}]},{"type":"error","name":"LLPAlreadyRegistered","inputs":[{"name":"llp","type":"address"}]},{"type":"error","name":"LLPDisabled","inputs":[]},{"type":"error","name":"LLPNotRegistered","inputs":[{"name":"llp","type":"address"}]},{"type":"error","name":"LiveVaultCapExceeded","inputs":[]},{"type":"error","name":"LiveVaultReleaseDelayDecreaseBlocked","inputs":[]},{"type":"error","name":"LiveVaultReleaseDelayTooLong","inputs":[{"name":"requested","type":"uint256"},{"name":"maximum","type":"uint256"}]},{"type":"error","name":"MaxDataSizeExceeded","inputs":[]},{"type":"error","name":"MaxPegInBelowMinPegIn","inputs":[{"name":"max","type":"uint256"},{"name":"min","type":"uint256"}]},{"type":"error","name":"MaximumDynamicConfigKeyReached","inputs":[]},{"type":"error","name":"MaximumUserReservesExceeded","inputs":[]},{"type":"error","name":"MissingPrecompile","inputs":[{"name":"","type":"address"}]},{"type":"error","name":"MustNotLeaveDust","inputs":[]},{"type":"error","name":"NoAppVaultKeepersConfigured","inputs":[]},{"type":"error","name":"NoCollateralizedVaults","inputs":[]},{"type":"error","name":"NoEscrowedFees","inputs":[]},{"type":"error","name":"NoUniversalChallengersConfigured","inputs":[]},{"type":"error","name":"NotAuthorizedToACK","inputs":[]},{"type":"error","name":"NotContract","inputs":[]},{"type":"error","name":"NotFrozen","inputs":[]},{"type":"error","name":"NotInitializing","inputs":[]},{"type":"error","name":"NotPaused","inputs":[]},{"type":"error","name":"OnlyAdapter","inputs":[]},{"type":"error","name":"OnlyApplicationEntryPoint","inputs":[]},{"type":"error","name":"OnlyDeployer","inputs":[]},{"type":"error","name":"OnlyReinvestmentController","inputs":[]},{"type":"error","name":"OnlySpoke","inputs":[]},{"type":"error","name":"OperationKeyVersionOverflow","inputs":[]},{"type":"error","name":"OracleMismatch","inputs":[]},{"type":"error","name":"ParticipantRoleOverlap","inputs":[]},{"type":"error","name":"PayoutAddressTooLong","inputs":[]},{"type":"error","name":"PeginFingerprintChanged","inputs":[{"name":"expected","type":"bytes32"},{"name":"actual","type":"bytes32"}]},{"type":"error","name":"PeginInputSignatureAlreadySubmitted","inputs":[]},{"type":"error","name":"PeginNotExpired","inputs":[]},{"type":"error","name":"PeginSignaturesIncomplete","inputs":[]},{"type":"error","name":"PeginTransactionAlreadyUsed","inputs":[]},{"type":"error","name":"PeginTransactionExpired","inputs":[]},{"type":"error","name":"PositionAccountAlreadyExists","inputs":[]},{"type":"error","name":"PositionAccountCreationFailed","inputs":[]},{"type":"error","name":"PositionAccountDoesNotExist","inputs":[]},{"type":"error","name":"PositionNotHealthy","inputs":[]},{"type":"error","name":"PositionNotLiquidatable","inputs":[]},{"type":"error","name":"PositionSizesRejectedByApplication","inputs":[]},{"type":"error","name":"PostExpiryGraceWindowElapsed","inputs":[]},{"type":"error","name":"PrePeginOutputAlreadyUsed","inputs":[]},{"type":"error","name":"PublicKeyMismatch","inputs":[{"name":"expected","type":"bytes32"},{"name":"actual","type":"bytes32"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"RepaymentWouldRestoreZeroShares","inputs":[]},{"type":"error","name":"ReserveExists","inputs":[]},{"type":"error","name":"ReserveFrozen","inputs":[]},{"type":"error","name":"ReserveNotBorrowable","inputs":[]},{"type":"error","name":"ReserveNotBorrowed","inputs":[]},{"type":"error","name":"ReserveNotEnabledAsCollateral","inputs":[]},{"type":"error","name":"ReserveNotListed","inputs":[]},{"type":"error","name":"ReserveNotSupplied","inputs":[]},{"type":"error","name":"ReservePaused","inputs":[]},{"type":"error","name":"SafeCastOverflowedIntDowncast","inputs":[{"name":"bits","type":"uint8"},{"name":"value","type":"int256"}]},{"type":"error","name":"SafeCastOverflowedIntToUint","inputs":[{"name":"value","type":"int256"}]},{"type":"error","name":"SafeCastOverflowedUintDowncast","inputs":[{"name":"bits","type":"uint8"},{"name":"value","type":"uint256"}]},{"type":"error","name":"SafeCastOverflowedUintToInt","inputs":[{"name":"value","type":"uint256"}]},{"type":"error","name":"SafeERC20FailedDecreaseAllowance","inputs":[{"name":"spender","type":"address"},{"name":"currentAllowance","type":"uint256"},{"name":"requestedDecrease","type":"uint256"}]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"name":"token","type":"address"}]},{"type":"error","name":"ScriptPubKeyTooLong","inputs":[]},{"type":"error","name":"SelfLiquidation","inputs":[]},{"type":"error","name":"SlippageExceeded","inputs":[{"name":"minOut","type":"uint256"},{"name":"actualOut","type":"uint256"}]},{"type":"error","name":"SpokeAlreadyListed","inputs":[]},{"type":"error","name":"SpokeAlreadySet","inputs":[]},{"type":"error","name":"SpokeHalted","inputs":[]},{"type":"error","name":"SpokeLiquidationManagerNotSetProperly","inputs":[]},{"type":"error","name":"SpokeNotActive","inputs":[]},{"type":"error","name":"SpokeNotListed","inputs":[]},{"type":"error","name":"StringsInsufficientHexLength","inputs":[{"name":"value","type":"uint256"},{"name":"length","type":"uint256"}]},{"type":"error","name":"StringsInvalidAddressFormat","inputs":[]},{"type":"error","name":"StringsInvalidChar","inputs":[]},{"type":"error","name":"SurplusDrawnDeficitReported","inputs":[{"name":"maxAllowedDeficit","type":"uint256"}]},{"type":"error","name":"SurplusDrawnRestored","inputs":[{"name":"maxAllowedRestore","type":"uint256"}]},{"type":"error","name":"SurplusPremiumRayDeficitReported","inputs":[{"name":"maxAllowedDeficitRay","type":"uint256"}]},{"type":"error","name":"SurplusPremiumRayRestored","inputs":[{"name":"maxAllowedRestoreRay","type":"uint256"}]},{"type":"error","name":"TBV_AlreadyFrozen","inputs":[]},{"type":"error","name":"TBV_AlreadyPaused","inputs":[]},{"type":"error","name":"TBV_CannotUnfreezeWhilePaused","inputs":[]},{"type":"error","name":"TBV_CannotUnpauseWhileFrozen","inputs":[]},{"type":"error","name":"TBV_Frozen","inputs":[]},{"type":"error","name":"TBV_NotFrozen","inputs":[]},{"type":"error","name":"TBV_NotPaused","inputs":[]},{"type":"error","name":"TBV_Paused","inputs":[]},{"type":"error","name":"TBV_Unauthorized","inputs":[]},{"type":"error","name":"TooManyFundingInputs","inputs":[{"name":"inputCount","type":"uint256"},{"name":"maxAllowed","type":"uint256"}]},{"type":"error","name":"TooManyHtlcOutputs","inputs":[{"name":"outputCount","type":"uint256"},{"name":"maxAllowed","type":"uint256"}]},{"type":"error","name":"TransferFailed","inputs":[]},{"type":"error","name":"UUPSUnauthorizedCallContext","inputs":[]},{"type":"error","name":"UUPSUnsupportedProxiableUUID","inputs":[{"name":"slot","type":"bytes32"}]},{"type":"error","name":"Unauthorized","inputs":[]},{"type":"error","name":"UnauthorizedTransferDestination","inputs":[]},{"type":"error","name":"UnauthorizedVaultKeeper","inputs":[]},{"type":"error","name":"UnderlyingAlreadyListed","inputs":[]},{"type":"error","name":"UnsafePeginTimingConfiguration","inputs":[{"name":"tRefund","type":"uint32"},{"name":"pegInActivationTimeout","type":"uint64"}]},{"type":"error","name":"UnsupportedAddressType","inputs":[{"name":"witnessItemCount","type":"uint8"}]},{"type":"error","name":"UnsupportedBorrowableCollateral","inputs":[]},{"type":"error","name":"UnsupportedCollateralReserve","inputs":[]},{"type":"error","name":"UnsupportedFeeToken","inputs":[]},{"type":"error","name":"UnsupportedLiquidationCall","inputs":[]},{"type":"error","name":"UnsupportedLiquidationFee","inputs":[]},{"type":"error","name":"UnsupportedSettlementToken","inputs":[]},{"type":"error","name":"VaultAboveMaximum","inputs":[{"name":"actual","type":"uint256"},{"name":"maximum","type":"uint256"}]},{"type":"error","name":"VaultAlreadyExists","inputs":[]},{"type":"error","name":"VaultBTCSharesAssetsMismatch","inputs":[]},{"type":"error","name":"VaultBelowMinimum","inputs":[{"name":"actual","type":"uint256"},{"name":"minimum","type":"uint256"}]},{"type":"error","name":"VaultDebtRepaymentExceeded","inputs":[]},{"type":"error","name":"VaultFeeAlreadyEscrowed","inputs":[]},{"type":"error","name":"VaultNotAcquirable","inputs":[]},{"type":"error","name":"VaultProviderCommissionExceeded","inputs":[{"name":"maxAcceptable","type":"uint16"},{"name":"actual","type":"uint16"}]},{"type":"error","name":"VaultProviderNotRegistered","inputs":[]},{"type":"error","name":"VersionAlreadyExists","inputs":[]},{"type":"error","name":"ZeroAddress","inputs":[]},{"type":"error","name":"ZeroAmount","inputs":[]},{"type":"error","name":"ZeroValue","inputs":[]}]
1
+ declare const _default: [{"type":"error","name":"AccessControlBadConfirmation","inputs":[]},{"type":"error","name":"AccessControlUnauthorizedAccount","inputs":[{"name":"account","type":"address"},{"name":"neededRole","type":"bytes32"}]},{"type":"error","name":"AccessManagedInvalidAuthority","inputs":[{"name":"authority","type":"address"}]},{"type":"error","name":"AccessManagedRequiredDelay","inputs":[{"name":"caller","type":"address"},{"name":"delay","type":"uint32"}]},{"type":"error","name":"AccessManagedUnauthorized","inputs":[{"name":"caller","type":"address"}]},{"type":"error","name":"AccessManagerAlreadyScheduled","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerBadConfirmation","inputs":[]},{"type":"error","name":"AccessManagerExpired","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerInvalidInitialAdmin","inputs":[{"name":"initialAdmin","type":"address"}]},{"type":"error","name":"AccessManagerLockedRole","inputs":[{"name":"roleId","type":"uint64"}]},{"type":"error","name":"AccessManagerNotReady","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerNotScheduled","inputs":[{"name":"operationId","type":"bytes32"}]},{"type":"error","name":"AccessManagerUnauthorizedAccount","inputs":[{"name":"msgsender","type":"address"},{"name":"roleId","type":"uint64"}]},{"type":"error","name":"AccessManagerUnauthorizedCall","inputs":[{"name":"caller","type":"address"},{"name":"target","type":"address"},{"name":"selector","type":"bytes4"}]},{"type":"error","name":"AccessManagerUnauthorizedCancel","inputs":[{"name":"msgsender","type":"address"},{"name":"caller","type":"address"},{"name":"target","type":"address"},{"name":"selector","type":"bytes4"}]},{"type":"error","name":"AccessManagerUnauthorizedConsume","inputs":[{"name":"target","type":"address"}]},{"type":"error","name":"ActivationDeadlineExpired","inputs":[]},{"type":"error","name":"ActivationDelayNotElapsed","inputs":[]},{"type":"error","name":"AddCapExceeded","inputs":[{"name":"addCap","type":"uint256"}]},{"type":"error","name":"AddressEmptyCode","inputs":[{"name":"target","type":"address"}]},{"type":"error","name":"AllowListDisabled","inputs":[]},{"type":"error","name":"AlreadyFrozen","inputs":[]},{"type":"error","name":"AlreadyPaused","inputs":[]},{"type":"error","name":"AmountBelowMinimumThreshold","inputs":[{"name":"actual","type":"uint256"},{"name":"minimum","type":"uint256"}]},{"type":"error","name":"ApplicationAlreadyRegistered","inputs":[]},{"type":"error","name":"ApplicationNotActive","inputs":[]},{"type":"error","name":"ApplicationNotRegistered","inputs":[]},{"type":"error","name":"ArrayExceedsMaxSize","inputs":[{"name":"actual","type":"uint256"},{"name":"maximum","type":"uint256"}]},{"type":"error","name":"AssetNotListed","inputs":[]},{"type":"error","name":"BTCVaultNotFound","inputs":[]},{"type":"error","name":"BlocklistedVaultKeeper","inputs":[]},{"type":"error","name":"BtcKeyAlreadyRegistered","inputs":[]},{"type":"error","name":"BufferTooShort","inputs":[{"name":"offset","type":"uint256"},{"name":"requiredLength","type":"uint256"},{"name":"availableLength","type":"uint256"}]},{"type":"error","name":"CannotReceiveShares","inputs":[]},{"type":"error","name":"CapExceeded","inputs":[]},{"type":"error","name":"CommissionAboveMaximum","inputs":[{"name":"provided","type":"uint16"},{"name":"maximum","type":"uint16"}]},{"type":"error","name":"CommissionBelowMinimum","inputs":[{"name":"provided","type":"uint16"},{"name":"minimum","type":"uint16"}]},{"type":"error","name":"CommissionUnchanged","inputs":[]},{"type":"error","name":"DelegateeNotVerified","inputs":[]},{"type":"error","name":"DepositNotAllowed","inputs":[]},{"type":"error","name":"DepositorWotsPkHashAlreadyUsed","inputs":[]},{"type":"error","name":"DrawCapExceeded","inputs":[{"name":"drawCap","type":"uint256"}]},{"type":"error","name":"DuplicateHashlock","inputs":[]},{"type":"error","name":"DuplicateParticipant","inputs":[]},{"type":"error","name":"DynamicConfigKeyUninitialized","inputs":[]},{"type":"error","name":"ECDSAInvalidSignature","inputs":[]},{"type":"error","name":"ECDSAInvalidSignatureLength","inputs":[{"name":"length","type":"uint256"}]},{"type":"error","name":"ECDSAInvalidSignatureS","inputs":[{"name":"s","type":"bytes32"}]},{"type":"error","name":"ERC1155InsufficientBalance","inputs":[{"name":"sender","type":"address"},{"name":"balance","type":"uint256"},{"name":"needed","type":"uint256"},{"name":"tokenId","type":"uint256"}]},{"type":"error","name":"ERC1155InvalidApprover","inputs":[{"name":"approver","type":"address"}]},{"type":"error","name":"ERC1155InvalidArrayLength","inputs":[{"name":"idsLength","type":"uint256"},{"name":"valuesLength","type":"uint256"}]},{"type":"error","name":"ERC1155InvalidOperator","inputs":[{"name":"operator","type":"address"}]},{"type":"error","name":"ERC1155InvalidReceiver","inputs":[{"name":"receiver","type":"address"}]},{"type":"error","name":"ERC1155InvalidSender","inputs":[{"name":"sender","type":"address"}]},{"type":"error","name":"ERC1155MissingApprovalForAll","inputs":[{"name":"operator","type":"address"},{"name":"owner","type":"address"}]},{"type":"error","name":"ERC1967InvalidAdmin","inputs":[{"name":"admin","type":"address"}]},{"type":"error","name":"ERC1967InvalidBeacon","inputs":[{"name":"beacon","type":"address"}]},{"type":"error","name":"ERC1967InvalidImplementation","inputs":[{"name":"implementation","type":"address"}]},{"type":"error","name":"ERC1967NonPayable","inputs":[]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"name":"spender","type":"address"},{"name":"allowance","type":"uint256"},{"name":"needed","type":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"name":"sender","type":"address"},{"name":"balance","type":"uint256"},{"name":"needed","type":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"name":"approver","type":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"name":"receiver","type":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"name":"sender","type":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"name":"spender","type":"address"}]},{"type":"error","name":"ERC721IncorrectOwner","inputs":[{"name":"sender","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"owner","type":"address"}]},{"type":"error","name":"ERC721InsufficientApproval","inputs":[{"name":"operator","type":"address"},{"name":"tokenId","type":"uint256"}]},{"type":"error","name":"ERC721InvalidApprover","inputs":[{"name":"approver","type":"address"}]},{"type":"error","name":"ERC721InvalidOperator","inputs":[{"name":"operator","type":"address"}]},{"type":"error","name":"ERC721InvalidOwner","inputs":[{"name":"owner","type":"address"}]},{"type":"error","name":"ERC721InvalidReceiver","inputs":[{"name":"receiver","type":"address"}]},{"type":"error","name":"ERC721InvalidSender","inputs":[{"name":"sender","type":"address"}]},{"type":"error","name":"ERC721NonexistentToken","inputs":[{"name":"tokenId","type":"uint256"}]},{"type":"error","name":"EmptyArray","inputs":[]},{"type":"error","name":"EmptyPayoutAddress","inputs":[]},{"type":"error","name":"EmptyVaultKeepers","inputs":[]},{"type":"error","name":"EnforcedFreeze","inputs":[]},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"EthKeyAlreadyRegistered","inputs":[]},{"type":"error","name":"ExcessiveExitBtcPayment","inputs":[]},{"type":"error","name":"FailedCall","inputs":[]},{"type":"error","name":"FailedDeployment","inputs":[]},{"type":"error","name":"HealthFactorBelowThreshold","inputs":[]},{"type":"error","name":"HealthFactorNotBelowThreshold","inputs":[]},{"type":"error","name":"IncompleteWithdrawal","inputs":[{"name":"expected","type":"uint256"},{"name":"actual","type":"uint256"}]},{"type":"error","name":"InsufficientBalance","inputs":[{"name":"balance","type":"uint256"},{"name":"needed","type":"uint256"}]},{"type":"error","name":"InsufficientBorrowAllowance","inputs":[]},{"type":"error","name":"InsufficientGasForActivation","inputs":[]},{"type":"error","name":"InsufficientLiquidity","inputs":[{"name":"liquidity","type":"uint256"}]},{"type":"error","name":"InsufficientSettlementAmount","inputs":[]},{"type":"error","name":"InsufficientTransferred","inputs":[{"name":"liquidityNeeded","type":"uint256"}]},{"type":"error","name":"InterestRateDataNotSet","inputs":[{"name":"assetId","type":"uint256"}]},{"type":"error","name":"InvalidAccountNonce","inputs":[{"name":"account","type":"address"},{"name":"currentNonce","type":"uint256"}]},{"type":"error","name":"InvalidAction","inputs":[{"name":"action","type":"bytes32"}]},{"type":"error","name":"InvalidActivationMetadataVersion","inputs":[]},{"type":"error","name":"InvalidAddress","inputs":[]},{"type":"error","name":"InvalidAmount","inputs":[]},{"type":"error","name":"InvalidApplicationStatus","inputs":[]},{"type":"error","name":"InvalidAssetDecimals","inputs":[]},{"type":"error","name":"InvalidAssetId","inputs":[]},{"type":"error","name":"InvalidBIP322Signature","inputs":[{"name":"offset","type":"uint256"},{"name":"length","type":"uint256"}]},{"type":"error","name":"InvalidBTCPopSignatureLength","inputs":[{"name":"length","type":"uint256"},{"name":"minLength","type":"uint256"},{"name":"maxLength","type":"uint256"}]},{"type":"error","name":"InvalidBTCProofOfPossession","inputs":[]},{"type":"error","name":"InvalidBTCPublicKey","inputs":[]},{"type":"error","name":"InvalidBTCVaultStatus","inputs":[]},{"type":"error","name":"InvalidBTCVaultUsageStatus","inputs":[]},{"type":"error","name":"InvalidBase","inputs":[{"name":"base","type":"uint256"},{"name":"modulus","type":"uint256"}]},{"type":"error","name":"InvalidCollateralFactor","inputs":[]},{"type":"error","name":"InvalidCollateralFactorAndMaxLiquidationBonus","inputs":[]},{"type":"error","name":"InvalidCollateralRisk","inputs":[]},{"type":"error","name":"InvalidCompactSize","inputs":[{"name":"offset","type":"uint256"},{"name":"prefix","type":"uint8"},{"name":"value","type":"uint64"},{"name":"minValue","type":"uint64"}]},{"type":"error","name":"InvalidControlBlock","inputs":[{"name":"length","type":"uint256"},{"name":"remainder","type":"uint256"}]},{"type":"error","name":"InvalidDebtToCover","inputs":[]},{"type":"error","name":"InvalidDelay","inputs":[]},{"type":"error","name":"InvalidDepositorWotsPkHash","inputs":[]},{"type":"error","name":"InvalidEscrowedVaultStatus","inputs":[]},{"type":"error","name":"InvalidEthProofOfPossession","inputs":[]},{"type":"error","name":"InvalidFeeConfiguration","inputs":[]},{"type":"error","name":"InvalidHashlock","inputs":[]},{"type":"error","name":"InvalidImplementation","inputs":[]},{"type":"error","name":"InvalidInitialization","inputs":[]},{"type":"error","name":"InvalidInterestRateStrategy","inputs":[]},{"type":"error","name":"InvalidLiquidationConfig","inputs":[]},{"type":"error","name":"InvalidLiquidationFee","inputs":[]},{"type":"error","name":"InvalidLiquidityFee","inputs":[]},{"type":"error","name":"InvalidMaxUserReservesLimit","inputs":[]},{"type":"error","name":"InvalidOracleDecimals","inputs":[]},{"type":"error","name":"InvalidOraclePrice","inputs":[]},{"type":"error","name":"InvalidOutputIndex","inputs":[{"name":"provided","type":"uint256"},{"name":"maxValid","type":"uint256"}]},{"type":"error","name":"InvalidParticipantsList","inputs":[]},{"type":"error","name":"InvalidPeginFee","inputs":[{"name":"provided","type":"uint256"},{"name":"required","type":"uint256"}]},{"type":"error","name":"InvalidPoint","inputs":[{"name":"x","type":"uint256"},{"name":"y","type":"uint256"}]},{"type":"error","name":"InvalidPositionAccount","inputs":[]},{"type":"error","name":"InvalidPositionResolver","inputs":[]},{"type":"error","name":"InvalidPositionSizes","inputs":[]},{"type":"error","name":"InvalidPostLiquidationState","inputs":[]},{"type":"error","name":"InvalidPremiumChange","inputs":[]},{"type":"error","name":"InvalidPrice","inputs":[{"name":"reserveId","type":"uint256"}]},{"type":"error","name":"InvalidProxyContract","inputs":[]},{"type":"error","name":"InvalidReceiver","inputs":[]},{"type":"error","name":"InvalidRegistrationFee","inputs":[]},{"type":"error","name":"InvalidReinvestmentController","inputs":[]},{"type":"error","name":"InvalidSValue","inputs":[{"name":"s","type":"bytes32"}]},{"type":"error","name":"InvalidSecret","inputs":[]},{"type":"error","name":"InvalidSecurityCouncilConfig","inputs":[]},{"type":"error","name":"InvalidShares","inputs":[]},{"type":"error","name":"InvalidShortDelayArrays","inputs":[]},{"type":"error","name":"InvalidSignature","inputs":[]},{"type":"error","name":"InvalidSignatureLength","inputs":[]},{"type":"error","name":"InvalidSource","inputs":[{"name":"reserveId","type":"uint256"}]},{"type":"error","name":"InvalidSourceDecimals","inputs":[{"name":"reserveId","type":"uint256"}]},{"type":"error","name":"InvalidTransaction","inputs":[]},{"type":"error","name":"InvalidVault","inputs":[]},{"type":"error","name":"InvalidVaultsArray","inputs":[]},{"type":"error","name":"InvalidWitnessData","inputs":[{"name":"offset","type":"uint256"},{"name":"expected","type":"uint256"},{"name":"actual","type":"uint256"}]},{"type":"error","name":"InvalidXOnlyKey","inputs":[{"name":"xOnly","type":"bytes32"}]},{"type":"error","name":"LLPAlreadyRegistered","inputs":[{"name":"llp","type":"address"}]},{"type":"error","name":"LLPDisabled","inputs":[]},{"type":"error","name":"LLPNotRegistered","inputs":[{"name":"llp","type":"address"}]},{"type":"error","name":"LiveVaultCapExceeded","inputs":[]},{"type":"error","name":"LiveVaultReleaseDelayDecreaseBlocked","inputs":[]},{"type":"error","name":"LiveVaultReleaseDelayTooLong","inputs":[{"name":"requested","type":"uint256"},{"name":"maximum","type":"uint256"}]},{"type":"error","name":"MaxDataSizeExceeded","inputs":[]},{"type":"error","name":"MaxPegInBelowMinPegIn","inputs":[{"name":"max","type":"uint256"},{"name":"min","type":"uint256"}]},{"type":"error","name":"MaximumDynamicConfigKeyReached","inputs":[]},{"type":"error","name":"MaximumUserReservesExceeded","inputs":[]},{"type":"error","name":"MissingPrecompile","inputs":[{"name":"","type":"address"}]},{"type":"error","name":"MustNotLeaveDust","inputs":[]},{"type":"error","name":"NoAppVaultKeepersConfigured","inputs":[]},{"type":"error","name":"NoCollateralizedVaults","inputs":[]},{"type":"error","name":"NoEscrowedFees","inputs":[]},{"type":"error","name":"NoUniversalChallengersConfigured","inputs":[]},{"type":"error","name":"NotAuthorizedToACK","inputs":[]},{"type":"error","name":"NotContract","inputs":[]},{"type":"error","name":"NotFrozen","inputs":[]},{"type":"error","name":"NotInitializing","inputs":[]},{"type":"error","name":"NotPaused","inputs":[]},{"type":"error","name":"OnlyAdapter","inputs":[]},{"type":"error","name":"OnlyApplicationEntryPoint","inputs":[]},{"type":"error","name":"OnlyDeployer","inputs":[]},{"type":"error","name":"OnlyReinvestmentController","inputs":[]},{"type":"error","name":"OnlySpoke","inputs":[]},{"type":"error","name":"OperationKeyVersionOverflow","inputs":[]},{"type":"error","name":"OracleMismatch","inputs":[]},{"type":"error","name":"ParticipantRoleOverlap","inputs":[]},{"type":"error","name":"PayoutAddressTooLong","inputs":[]},{"type":"error","name":"PeginFingerprintChanged","inputs":[{"name":"expected","type":"bytes32"},{"name":"actual","type":"bytes32"}]},{"type":"error","name":"PeginInputSignatureAlreadySubmitted","inputs":[]},{"type":"error","name":"PeginNotExpired","inputs":[]},{"type":"error","name":"PeginSignaturesIncomplete","inputs":[]},{"type":"error","name":"PeginTransactionAlreadyUsed","inputs":[]},{"type":"error","name":"PeginTransactionExpired","inputs":[]},{"type":"error","name":"PositionAccountAlreadyExists","inputs":[]},{"type":"error","name":"PositionAccountCreationFailed","inputs":[]},{"type":"error","name":"PositionAccountDoesNotExist","inputs":[]},{"type":"error","name":"PositionNotHealthy","inputs":[]},{"type":"error","name":"PositionNotLiquidatable","inputs":[]},{"type":"error","name":"PositionSizesRejectedByApplication","inputs":[]},{"type":"error","name":"PostExpiryGraceWindowElapsed","inputs":[]},{"type":"error","name":"PrePeginOutputAlreadyUsed","inputs":[]},{"type":"error","name":"PublicKeyMismatch","inputs":[{"name":"expected","type":"bytes32"},{"name":"actual","type":"bytes32"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"RepaymentWouldRestoreZeroShares","inputs":[]},{"type":"error","name":"ReserveExists","inputs":[]},{"type":"error","name":"ReserveFrozen","inputs":[]},{"type":"error","name":"ReserveNotBorrowable","inputs":[]},{"type":"error","name":"ReserveNotBorrowed","inputs":[]},{"type":"error","name":"ReserveNotEnabledAsCollateral","inputs":[]},{"type":"error","name":"ReserveNotListed","inputs":[]},{"type":"error","name":"ReserveNotSupplied","inputs":[]},{"type":"error","name":"ReservePaused","inputs":[]},{"type":"error","name":"SafeCastOverflowedIntDowncast","inputs":[{"name":"bits","type":"uint8"},{"name":"value","type":"int256"}]},{"type":"error","name":"SafeCastOverflowedIntToUint","inputs":[{"name":"value","type":"int256"}]},{"type":"error","name":"SafeCastOverflowedUintDowncast","inputs":[{"name":"bits","type":"uint8"},{"name":"value","type":"uint256"}]},{"type":"error","name":"SafeCastOverflowedUintToInt","inputs":[{"name":"value","type":"uint256"}]},{"type":"error","name":"SafeERC20FailedDecreaseAllowance","inputs":[{"name":"spender","type":"address"},{"name":"currentAllowance","type":"uint256"},{"name":"requestedDecrease","type":"uint256"}]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"name":"token","type":"address"}]},{"type":"error","name":"ScriptPubKeyTooLong","inputs":[]},{"type":"error","name":"SelfLiquidation","inputs":[]},{"type":"error","name":"SlippageExceeded","inputs":[{"name":"minOut","type":"uint256"},{"name":"actualOut","type":"uint256"}]},{"type":"error","name":"SpokeAlreadyListed","inputs":[]},{"type":"error","name":"SpokeAlreadySet","inputs":[]},{"type":"error","name":"SpokeHalted","inputs":[]},{"type":"error","name":"SpokeLiquidationManagerNotSetProperly","inputs":[]},{"type":"error","name":"SpokeNotActive","inputs":[]},{"type":"error","name":"SpokeNotListed","inputs":[]},{"type":"error","name":"StringsInsufficientHexLength","inputs":[{"name":"value","type":"uint256"},{"name":"length","type":"uint256"}]},{"type":"error","name":"StringsInvalidAddressFormat","inputs":[]},{"type":"error","name":"StringsInvalidChar","inputs":[]},{"type":"error","name":"SurplusDrawnDeficitReported","inputs":[{"name":"maxAllowedDeficit","type":"uint256"}]},{"type":"error","name":"SurplusDrawnRestored","inputs":[{"name":"maxAllowedRestore","type":"uint256"}]},{"type":"error","name":"SurplusPremiumRayDeficitReported","inputs":[{"name":"maxAllowedDeficitRay","type":"uint256"}]},{"type":"error","name":"SurplusPremiumRayRestored","inputs":[{"name":"maxAllowedRestoreRay","type":"uint256"}]},{"type":"error","name":"TBV_AlreadyFrozen","inputs":[]},{"type":"error","name":"TBV_AlreadyPaused","inputs":[]},{"type":"error","name":"TBV_CannotUnfreezeWhilePaused","inputs":[]},{"type":"error","name":"TBV_CannotUnpauseWhileFrozen","inputs":[]},{"type":"error","name":"TBV_Frozen","inputs":[]},{"type":"error","name":"TBV_NotFrozen","inputs":[]},{"type":"error","name":"TBV_NotPaused","inputs":[]},{"type":"error","name":"TBV_Paused","inputs":[]},{"type":"error","name":"TBV_Unauthorized","inputs":[]},{"type":"error","name":"TooManyFundingInputs","inputs":[{"name":"inputCount","type":"uint256"},{"name":"maxAllowed","type":"uint256"}]},{"type":"error","name":"TooManyHtlcOutputs","inputs":[{"name":"outputCount","type":"uint256"},{"name":"maxAllowed","type":"uint256"}]},{"type":"error","name":"TransferFailed","inputs":[]},{"type":"error","name":"UUPSUnauthorizedCallContext","inputs":[]},{"type":"error","name":"UUPSUnsupportedProxiableUUID","inputs":[{"name":"slot","type":"bytes32"}]},{"type":"error","name":"Unauthorized","inputs":[]},{"type":"error","name":"UnauthorizedTransferDestination","inputs":[]},{"type":"error","name":"UnauthorizedVaultKeeper","inputs":[]},{"type":"error","name":"UnderlyingAlreadyListed","inputs":[]},{"type":"error","name":"UnsafePeginTimingConfiguration","inputs":[{"name":"tRefund","type":"uint32"},{"name":"pegInActivationTimeout","type":"uint64"}]},{"type":"error","name":"UnsupportedAddressType","inputs":[{"name":"witnessItemCount","type":"uint8"}]},{"type":"error","name":"UnsupportedBorrowableCollateral","inputs":[]},{"type":"error","name":"UnsupportedCollateralReserve","inputs":[]},{"type":"error","name":"UnsupportedLiquidationCall","inputs":[]},{"type":"error","name":"UnsupportedLiquidationFee","inputs":[]},{"type":"error","name":"UnsupportedSettlementToken","inputs":[]},{"type":"error","name":"VaultAboveMaximum","inputs":[{"name":"actual","type":"uint256"},{"name":"maximum","type":"uint256"}]},{"type":"error","name":"VaultAlreadyExists","inputs":[]},{"type":"error","name":"VaultBTCSharesAssetsMismatch","inputs":[]},{"type":"error","name":"VaultBelowMinimum","inputs":[{"name":"actual","type":"uint256"},{"name":"minimum","type":"uint256"}]},{"type":"error","name":"VaultDebtRepaymentExceeded","inputs":[]},{"type":"error","name":"VaultFeeAlreadyEscrowed","inputs":[]},{"type":"error","name":"VaultNotAcquirable","inputs":[]},{"type":"error","name":"VaultProviderCommissionExceeded","inputs":[{"name":"maxAcceptable","type":"uint16"},{"name":"actual","type":"uint16"}]},{"type":"error","name":"VaultProviderNotRegistered","inputs":[]},{"type":"error","name":"VersionAlreadyExists","inputs":[]},{"type":"error","name":"ZeroAddress","inputs":[]},{"type":"error","name":"ZeroAmount","inputs":[]},{"type":"error","name":"ZeroValue","inputs":[]}]
2
2
  ;
3
3
 
4
4
  export default _default;