@babylonlabs-io/ts-sdk 0.77.0 → 0.79.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 (111) hide show
  1. package/dist/{BTCVaultRegistry.abi-CJwWI2EO.js → BTCVaultRegistry.abi-B0x9_Bza.js} +321 -2
  2. package/dist/BTCVaultRegistry.abi-B0x9_Bza.js.map +1 -0
  3. package/dist/BTCVaultRegistry.abi-BQ5tFNSu.cjs +2 -0
  4. package/dist/BTCVaultRegistry.abi-BQ5tFNSu.cjs.map +1 -0
  5. package/dist/{BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js → BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js} +57 -20
  6. package/dist/BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js.map +1 -0
  7. package/dist/BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs +2 -0
  8. package/dist/BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs.map +1 -0
  9. package/dist/{PeginManager-DNimKlmw.js → PeginManager-BXlh3ar0.js} +289 -348
  10. package/dist/PeginManager-BXlh3ar0.js.map +1 -0
  11. package/dist/PeginManager-BuVSknB0.cjs +2 -0
  12. package/dist/PeginManager-BuVSknB0.cjs.map +1 -0
  13. package/dist/ProtocolParams.abi-Db2USqQm.cjs +2 -0
  14. package/dist/ProtocolParams.abi-Db2USqQm.cjs.map +1 -0
  15. package/dist/ProtocolParams.abi-q0AidvYX.js +526 -0
  16. package/dist/ProtocolParams.abi-q0AidvYX.js.map +1 -0
  17. package/dist/buildAndBroadcastReclaim-N9dXH9dm.cjs +2 -0
  18. package/dist/buildAndBroadcastReclaim-N9dXH9dm.cjs.map +1 -0
  19. package/dist/{buildAndBroadcastReclaim-DCGcupg7.js → buildAndBroadcastReclaim-O6z9kvc4.js} +502 -468
  20. package/dist/buildAndBroadcastReclaim-O6z9kvc4.js.map +1 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +229 -222
  23. package/dist/pegin-registration-client-CZgcU2_0.cjs +2 -0
  24. package/dist/pegin-registration-client-CZgcU2_0.cjs.map +1 -0
  25. package/dist/{pegin-registration-client-CXK3B_D1.js → pegin-registration-client-pcczkzMg.js} +344 -240
  26. package/dist/pegin-registration-client-pcczkzMg.js.map +1 -0
  27. package/dist/tbv/core/clients/eth/index.cjs +1 -1
  28. package/dist/tbv/core/clients/eth/index.d.ts +1 -0
  29. package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
  30. package/dist/tbv/core/clients/eth/index.js +14 -12
  31. package/dist/tbv/core/clients/eth/pegin-registration-client.d.ts +17 -0
  32. package/dist/tbv/core/clients/eth/pegin-registration-client.d.ts.map +1 -1
  33. package/dist/tbv/core/clients/eth/registration-logs-error.d.ts +20 -0
  34. package/dist/tbv/core/clients/eth/registration-logs-error.d.ts.map +1 -0
  35. package/dist/tbv/core/clients/eth/signer-set-reader.d.ts +2 -0
  36. package/dist/tbv/core/clients/eth/signer-set-reader.d.ts.map +1 -1
  37. package/dist/tbv/core/clients/eth/types.d.ts +40 -0
  38. package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
  39. package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +31 -0
  40. package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
  41. package/dist/tbv/core/clients/index.cjs +1 -1
  42. package/dist/tbv/core/clients/index.js +41 -39
  43. package/dist/tbv/core/contracts/__tests__/peginFingerprintAbi.test.d.ts +24 -0
  44. package/dist/tbv/core/contracts/__tests__/peginFingerprintAbi.test.d.ts.map +1 -0
  45. package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts +14 -0
  46. package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts.map +1 -1
  47. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +265 -1
  48. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
  49. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +10 -0
  50. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts.map +1 -1
  51. package/dist/tbv/core/contracts/errors.d.ts +41 -4
  52. package/dist/tbv/core/contracts/errors.d.ts.map +1 -1
  53. package/dist/tbv/core/contracts/index.cjs +1 -1
  54. package/dist/tbv/core/contracts/index.cjs.map +1 -1
  55. package/dist/tbv/core/contracts/index.d.ts +1 -1
  56. package/dist/tbv/core/contracts/index.d.ts.map +1 -1
  57. package/dist/tbv/core/contracts/index.js +15 -492
  58. package/dist/tbv/core/contracts/index.js.map +1 -1
  59. package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts +3 -2
  60. package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts.map +1 -1
  61. package/dist/tbv/core/index.cjs +1 -1
  62. package/dist/tbv/core/index.js +224 -217
  63. package/dist/tbv/core/managers/PeginManager.d.ts +13 -25
  64. package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
  65. package/dist/tbv/core/managers/index.cjs +1 -1
  66. package/dist/tbv/core/managers/index.d.ts +2 -2
  67. package/dist/tbv/core/managers/index.d.ts.map +1 -1
  68. package/dist/tbv/core/managers/index.js +4 -5
  69. package/dist/tbv/core/pegin-fingerprint/index.d.ts +1 -1
  70. package/dist/tbv/core/pegin-fingerprint/index.d.ts.map +1 -1
  71. package/dist/tbv/core/pegin-fingerprint/peginFingerprint.d.ts +10 -0
  72. package/dist/tbv/core/pegin-fingerprint/peginFingerprint.d.ts.map +1 -1
  73. package/dist/tbv/core/services/deposit/index.d.ts +1 -1
  74. package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
  75. package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts +50 -3
  76. package/dist/tbv/core/services/deposit/validateOnChainParticipantKeys.d.ts.map +1 -1
  77. package/dist/tbv/core/services/index.cjs +1 -1
  78. package/dist/tbv/core/services/index.js +56 -54
  79. package/dist/tbv/core/services/participants/__tests__/fixtures/rotation.d.ts.map +1 -1
  80. package/dist/tbv/index.cjs +1 -1
  81. package/dist/tbv/index.js +224 -217
  82. package/dist/{toRefundInputs-BNSXIymn.js → toRefundInputs-9inv4Ai4.js} +96 -92
  83. package/dist/toRefundInputs-9inv4Ai4.js.map +1 -0
  84. package/dist/toRefundInputs-DitGWAnz.cjs +2 -0
  85. package/dist/toRefundInputs-DitGWAnz.cjs.map +1 -0
  86. package/dist/{types-C5DyrC8F.js → types-B9YhlXe8.js} +109 -83
  87. package/dist/types-B9YhlXe8.js.map +1 -0
  88. package/dist/types-C1tpDycc.cjs +2 -0
  89. package/dist/types-C1tpDycc.cjs.map +1 -0
  90. package/package.json +3 -3
  91. package/dist/BTCVaultRegistry.abi-CJwWI2EO.js.map +0 -1
  92. package/dist/BTCVaultRegistry.abi-z7d_eP22.cjs +0 -2
  93. package/dist/BTCVaultRegistry.abi-z7d_eP22.cjs.map +0 -1
  94. package/dist/BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs +0 -2
  95. package/dist/BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs.map +0 -1
  96. package/dist/BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js.map +0 -1
  97. package/dist/PeginManager-DEByBX5R.cjs +0 -2
  98. package/dist/PeginManager-DEByBX5R.cjs.map +0 -1
  99. package/dist/PeginManager-DNimKlmw.js.map +0 -1
  100. package/dist/buildAndBroadcastReclaim-Cqc6Jiqk.cjs +0 -2
  101. package/dist/buildAndBroadcastReclaim-Cqc6Jiqk.cjs.map +0 -1
  102. package/dist/buildAndBroadcastReclaim-DCGcupg7.js.map +0 -1
  103. package/dist/pegin-registration-client-CXK3B_D1.js.map +0 -1
  104. package/dist/pegin-registration-client-DLsMNm8Z.cjs +0 -2
  105. package/dist/pegin-registration-client-DLsMNm8Z.cjs.map +0 -1
  106. package/dist/toRefundInputs-BNSXIymn.js.map +0 -1
  107. package/dist/toRefundInputs-meTyor7r.cjs +0 -2
  108. package/dist/toRefundInputs-meTyor7r.cjs.map +0 -1
  109. package/dist/types-BzSOthHH.cjs +0 -2
  110. package/dist/types-BzSOthHH.cjs.map +0 -1
  111. package/dist/types-C5DyrC8F.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts","../../../../src/tbv/core/contracts/abis/ProtocolParams.abi.ts"],"sourcesContent":["/**\n * ApplicationRegistry Contract ABI\n *\n * Minimal ABI containing only the vault keeper read functions needed by the SDK.\n * Generated from vault-contracts-aave-v4 IApplicationRegistry.sol interface.\n *\n * @module contracts/abis/ApplicationRegistry\n */\n\nexport const ApplicationRegistryABI = [\n {\n type: \"function\",\n name: \"getVaultKeepersByVersion\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentVaultKeepers\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentVaultKeepersVersion\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n // --- RFC-006 operation-key resolution ---------------------------------\n // A keeper's roster entry (`AddressBTCKeyPair` above) carries its *admin*\n // ETH address and its *genesis* BTC key. The key that actually goes into\n // the scripts is the operation key bonded at the vault's frozen\n // `appKeeperKeyEpoch`, which the admin address keys the lookup for.\n //\n // The `...OrGenesis` variant takes the roster key explicitly because the\n // correct genesis for a keeper is its key in the vault's *frozen membership\n // version* — a keeper may have been dropped from the current roster, or\n // listed under a different key in an older version. The plain\n // `getOperationBtcKeyAtEpoch` variant resolves genesis version-agnostically\n // and can therefore pick the wrong one; do not use it for a frozen vault.\n {\n type: \"function\",\n name: \"getCurrentOperationBtcKey\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOperationBtcKeyAtEpochOrGenesis\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n { name: \"rosterGenesisKey\", type: \"bytes32\", internalType: \"bytes32\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getPayoutScriptAtEpoch\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n ],\n outputs: [{ name: \"\", type: \"bytes\", internalType: \"bytes\" }],\n stateMutability: \"view\",\n },\n] as const;\n","/**\n * ProtocolParams Contract ABI\n *\n * Minimal ABI containing only the read functions needed by the SDK.\n * Generated from vault-contracts-aave-v4 IProtocolParams.sol interface.\n *\n * @module contracts/abis/ProtocolParams\n */\n\nexport const ProtocolParamsABI = [\n {\n type: \"function\",\n name: \"activeVaultCoreVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getTBVProtocolParams\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.TBVProtocolParams\",\n components: [\n {\n name: \"minimumPegInAmount\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"maxPegInAmount\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"pegInAckTimeout\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"pegInActivationTimeout\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"maxHtlcOutputCount\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"expiredPegInGraceBlocks\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getLatestOffchainParams\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.VersionedOffchainParams\",\n components: [\n {\n name: \"timelockAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"timelockChallengeAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"securityCouncilKeys\",\n type: \"bytes32[]\",\n internalType: \"bytes32[]\",\n },\n {\n name: \"councilQuorum\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"feeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"babeTotalInstances\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"babeInstancesToFinalize\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"minVpCommissionBps\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"tRefund\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"tStale\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"minPeginFeeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"proverCircuitVersion\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"minPrepeginDepth\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOffchainParamsByVersion\",\n inputs: [\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.VersionedOffchainParams\",\n components: [\n {\n name: \"timelockAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"timelockChallengeAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"securityCouncilKeys\",\n type: \"bytes32[]\",\n internalType: \"bytes32[]\",\n },\n {\n name: \"councilQuorum\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"feeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"babeTotalInstances\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"babeInstancesToFinalize\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"minVpCommissionBps\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"tRefund\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"tStale\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"minPeginFeeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"proverCircuitVersion\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"minPrepeginDepth\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"latestOffchainParamsVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getUniversalChallengersByVersion\",\n inputs: [\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentUniversalChallengers\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"latestUniversalChallengersVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n // --- RFC-006 operation-key resolution ---------------------------------\n // Universal challengers get the reduced RFC-006 model: an operation key\n // that goes into the challenge scripts, resolved against the vault's frozen\n // `ucKeyEpoch`, but no payout script (a UC is never a claimer, so its only\n // BTC output is the NoPayout anchor) and no per-UC setter — key changes go\n // through a roster version bump. The roster entry's `ethAddress` is the\n // `ucAdmin` lookup key and its `btcPubKey` is the genesis key.\n {\n type: \"function\",\n name: \"getCurrentOperationBtcKey\",\n inputs: [{ name: \"ucAdmin\", type: \"address\", internalType: \"address\" }],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOperationBtcKeyAtEpochOrGenesis\",\n inputs: [\n { name: \"ucAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n { name: \"rosterGenesisKey\", type: \"bytes32\", internalType: \"bytes32\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n // Observation window between a vault's final ACK and its activation, in ETH\n // blocks, measured from `verifiedAt`. Read through this standalone getter\n // rather than as a 7th component of `getTBVProtocolParams` above: the field\n // was appended to the struct, so a 7-component tuple decodes only against\n // deployments that carry it and throws `PositionOutOfBoundsError` against\n // the 6-word return of those that don't. Deployments are currently split\n // (devnet has it, testnet/staging do not), and that tuple feeds\n // `getPegInConfiguration` -> `ProtocolParamsContext`, whose failure blanks\n // the app. `uint256` (not the `uint64` storage width) — the accessor widens.\n {\n type: \"function\",\n name: \"peginActivationDelay\",\n inputs: [],\n outputs: [{ name: \"\", type: \"uint256\", internalType: \"uint256\" }],\n stateMutability: \"view\",\n },\n] as const;\n"],"names":["ApplicationRegistryABI","ProtocolParamsABI"],"mappings":"+MASaA,EAAyB,CACpC,CACE,KAAM,WACN,KAAM,2BACN,OAAQ,CACN,CACE,KAAM,gBACN,KAAM,UACN,aAAc,SAAA,EAEhB,CACE,KAAM,gBACN,KAAM,SACN,aAAc,QAAA,CAChB,EAEF,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,2CACd,WAAY,CACV,CACE,KAAM,aACN,KAAM,UACN,aAAc,SAAA,EAEhB,CACE,KAAM,YACN,KAAM,UACN,aAAc,SAAA,CAChB,CACF,CACF,EAEF,gBAAiB,MAAA,EAEnB,CACE,KAAM,WACN,KAAM,yBACN,OAAQ,CACN,CACE,KAAM,gBACN,KAAM,UACN,aAAc,SAAA,CAChB,EAEF,QAAS,CACP,CACE,KAA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,CACE,KAAM,WACN,KAAM,iCACN,OAAQ,CAAA,EACR,QAAS,CACP,CACE,KAAM,GACN,KAAM,UACN,aAAc,2CACd,WAAY,CACV,CACE,KAAM,aACN,KAAM,UACN,aAAc,SAAA,EAEhB,CACE,KAAM,YACN,KAAM,UACN,aAAc,SAAA,CAChB,CACF,CACF,EAEF,gBAAiB,MAAA,EAEnB,CACE,KAAM,WACN,KAAM,oCACN,OAAQ,CAAA,EACR,QAAS,CACP,CACE,KAAM,GACN,KAAM,SACN,aAAc,QAAA,CAChB,EAEF,gBAAiB,MAAA,EASnB,CACE,KAAM,WACN,KAAM,4BACN,OAAQ,CAAC,CAAE,KAAM,UAAW,KAAM,UAAW,aAAc,UAAW,EACtE,QAAS,CAAC,CAAE,KAAM,GAAI,KAAM,UAAW,aAAc,UAAW,EAChE,gBAAiB,MAAA,EAEnB,CACE,KAAM,WACN,KAAM,qCACN,OAAQ,CACN,CAAE,KAAM,UAAW,KAAM,UAAW,aAAc,SAAA,EAClD,CAAE,KAAM,QAAS,KAAM,SAAU,aAAc,QAAA,EAC/C,CAAE,KAAM,mBAAoB,KAAM,UAAW,aAAc,SAAA,CAAU,EAEvE,QAAS,CAAC,CAAE,KAAM,GAAI,KAAM,UAAW,aAAc,UAAW,EAChE,gBAAiB,MAAA,EAWnB,CACE,KAAM,WACN,KAAM,uBACN,OAAQ,CAAA,EACR,QAAS,CAAC,CAAE,KAAM,GAAI,KAAM,UAAW,aAAc,UAAW,EAChE,gBAAiB,MAAA,CAErB"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -10,5 +10,5 @@ export { ApplicationRegistryABI } from './abis/ApplicationRegistry.abi';
10
10
  export { BTCVaultRegistryABI } from './abis/BTCVaultRegistry.abi';
11
11
  export { BTCVaultRegistryKeyEpochsABI } from './abis/BTCVaultRegistryKeyEpochs.abi';
12
12
  export { ProtocolParamsABI } from './abis/ProtocolParams.abi';
13
- export { CONTRACT_ERRORS, extractErrorData, getContractErrorMessage, handleContractError, isKnownContractError, } from './errors';
13
+ export { CONTRACT_ERRORS, PEGIN_FINGERPRINT_CHANGED_SELECTOR, PeginFingerprintChangedError, extractErrorData, getContractErrorMessage, handleContractError, isKnownContractError, isPeginFingerprintChangedError, } from './errors';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,8BAA8B,GAC/B,MAAM,UAAU,CAAC"}
@@ -1,495 +1,18 @@
1
- import { B as a } from "../../../BTCVaultRegistry.abi-CJwWI2EO.js";
2
- import { B as s, C as y, e as r, g as u, h as l, i as m } from "../../../BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js";
3
- const e = [
4
- {
5
- type: "function",
6
- name: "getVaultKeepersByVersion",
7
- inputs: [
8
- {
9
- name: "appEntryPoint",
10
- type: "address",
11
- internalType: "address"
12
- },
13
- {
14
- name: "versionNumber",
15
- type: "uint16",
16
- internalType: "uint16"
17
- }
18
- ],
19
- outputs: [
20
- {
21
- name: "",
22
- type: "tuple[]",
23
- internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
24
- components: [
25
- {
26
- name: "ethAddress",
27
- type: "address",
28
- internalType: "address"
29
- },
30
- {
31
- name: "btcPubKey",
32
- type: "bytes32",
33
- internalType: "bytes32"
34
- }
35
- ]
36
- }
37
- ],
38
- stateMutability: "view"
39
- },
40
- {
41
- type: "function",
42
- name: "getCurrentVaultKeepers",
43
- inputs: [
44
- {
45
- name: "appEntryPoint",
46
- type: "address",
47
- internalType: "address"
48
- }
49
- ],
50
- outputs: [
51
- {
52
- name: "",
53
- type: "tuple[]",
54
- internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
55
- components: [
56
- {
57
- name: "ethAddress",
58
- type: "address",
59
- internalType: "address"
60
- },
61
- {
62
- name: "btcPubKey",
63
- type: "bytes32",
64
- internalType: "bytes32"
65
- }
66
- ]
67
- }
68
- ],
69
- stateMutability: "view"
70
- },
71
- {
72
- type: "function",
73
- name: "getCurrentVaultKeepersVersion",
74
- inputs: [
75
- {
76
- name: "appEntryPoint",
77
- type: "address",
78
- internalType: "address"
79
- }
80
- ],
81
- outputs: [
82
- {
83
- name: "",
84
- type: "uint16",
85
- internalType: "uint16"
86
- }
87
- ],
88
- stateMutability: "view"
89
- },
90
- // --- RFC-006 operation-key resolution ---------------------------------
91
- // A keeper's roster entry (`AddressBTCKeyPair` above) carries its *admin*
92
- // ETH address and its *genesis* BTC key. The key that actually goes into
93
- // the scripts is the operation key bonded at the vault's frozen
94
- // `appKeeperKeyEpoch`, which the admin address keys the lookup for.
95
- //
96
- // The `...OrGenesis` variant takes the roster key explicitly because the
97
- // correct genesis for a keeper is its key in the vault's *frozen membership
98
- // version* — a keeper may have been dropped from the current roster, or
99
- // listed under a different key in an older version. The plain
100
- // `getOperationBtcKeyAtEpoch` variant resolves genesis version-agnostically
101
- // and can therefore pick the wrong one; do not use it for a frozen vault.
102
- {
103
- type: "function",
104
- name: "getCurrentOperationBtcKey",
105
- inputs: [
106
- { name: "appEntryPoint", type: "address", internalType: "address" },
107
- { name: "keeperAdmin", type: "address", internalType: "address" }
108
- ],
109
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
110
- stateMutability: "view"
111
- },
112
- {
113
- type: "function",
114
- name: "getOperationBtcKeyAtEpochOrGenesis",
115
- inputs: [
116
- { name: "appEntryPoint", type: "address", internalType: "address" },
117
- { name: "keeperAdmin", type: "address", internalType: "address" },
118
- { name: "epoch", type: "uint64", internalType: "uint64" },
119
- { name: "rosterGenesisKey", type: "bytes32", internalType: "bytes32" }
120
- ],
121
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
122
- stateMutability: "view"
123
- },
124
- {
125
- type: "function",
126
- name: "getPayoutScriptAtEpoch",
127
- inputs: [
128
- { name: "appEntryPoint", type: "address", internalType: "address" },
129
- { name: "keeperAdmin", type: "address", internalType: "address" },
130
- { name: "epoch", type: "uint64", internalType: "uint64" }
131
- ],
132
- outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
133
- stateMutability: "view"
134
- }
135
- ], t = [
136
- {
137
- type: "function",
138
- name: "activeVaultCoreVersion",
139
- inputs: [],
140
- outputs: [
141
- {
142
- name: "",
143
- type: "uint16",
144
- internalType: "uint16"
145
- }
146
- ],
147
- stateMutability: "view"
148
- },
149
- {
150
- type: "function",
151
- name: "getTBVProtocolParams",
152
- inputs: [],
153
- outputs: [
154
- {
155
- name: "",
156
- type: "tuple",
157
- internalType: "struct IProtocolParams.TBVProtocolParams",
158
- components: [
159
- {
160
- name: "minimumPegInAmount",
161
- type: "uint64",
162
- internalType: "uint64"
163
- },
164
- {
165
- name: "maxPegInAmount",
166
- type: "uint64",
167
- internalType: "uint64"
168
- },
169
- {
170
- name: "pegInAckTimeout",
171
- type: "uint64",
172
- internalType: "uint64"
173
- },
174
- {
175
- name: "pegInActivationTimeout",
176
- type: "uint64",
177
- internalType: "uint64"
178
- },
179
- {
180
- name: "maxHtlcOutputCount",
181
- type: "uint8",
182
- internalType: "uint8"
183
- },
184
- {
185
- name: "expiredPegInGraceBlocks",
186
- type: "uint64",
187
- internalType: "uint64"
188
- }
189
- ]
190
- }
191
- ],
192
- stateMutability: "view"
193
- },
194
- {
195
- type: "function",
196
- name: "getLatestOffchainParams",
197
- inputs: [],
198
- outputs: [
199
- {
200
- name: "",
201
- type: "tuple",
202
- internalType: "struct IProtocolParams.VersionedOffchainParams",
203
- components: [
204
- {
205
- name: "timelockAssert",
206
- type: "uint256",
207
- internalType: "uint256"
208
- },
209
- {
210
- name: "timelockChallengeAssert",
211
- type: "uint256",
212
- internalType: "uint256"
213
- },
214
- {
215
- name: "securityCouncilKeys",
216
- type: "bytes32[]",
217
- internalType: "bytes32[]"
218
- },
219
- {
220
- name: "councilQuorum",
221
- type: "uint8",
222
- internalType: "uint8"
223
- },
224
- {
225
- name: "feeRate",
226
- type: "uint64",
227
- internalType: "uint64"
228
- },
229
- {
230
- name: "babeTotalInstances",
231
- type: "uint16",
232
- internalType: "uint16"
233
- },
234
- {
235
- name: "babeInstancesToFinalize",
236
- type: "uint8",
237
- internalType: "uint8"
238
- },
239
- {
240
- name: "minVpCommissionBps",
241
- type: "uint16",
242
- internalType: "uint16"
243
- },
244
- {
245
- name: "tRefund",
246
- type: "uint32",
247
- internalType: "uint32"
248
- },
249
- {
250
- name: "tStale",
251
- type: "uint32",
252
- internalType: "uint32"
253
- },
254
- {
255
- name: "minPeginFeeRate",
256
- type: "uint64",
257
- internalType: "uint64"
258
- },
259
- {
260
- name: "proverCircuitVersion",
261
- type: "uint16",
262
- internalType: "uint16"
263
- },
264
- {
265
- name: "minPrepeginDepth",
266
- type: "uint32",
267
- internalType: "uint32"
268
- }
269
- ]
270
- }
271
- ],
272
- stateMutability: "view"
273
- },
274
- {
275
- type: "function",
276
- name: "getOffchainParamsByVersion",
277
- inputs: [
278
- {
279
- name: "versionNumber",
280
- type: "uint16",
281
- internalType: "uint16"
282
- }
283
- ],
284
- outputs: [
285
- {
286
- name: "",
287
- type: "tuple",
288
- internalType: "struct IProtocolParams.VersionedOffchainParams",
289
- components: [
290
- {
291
- name: "timelockAssert",
292
- type: "uint256",
293
- internalType: "uint256"
294
- },
295
- {
296
- name: "timelockChallengeAssert",
297
- type: "uint256",
298
- internalType: "uint256"
299
- },
300
- {
301
- name: "securityCouncilKeys",
302
- type: "bytes32[]",
303
- internalType: "bytes32[]"
304
- },
305
- {
306
- name: "councilQuorum",
307
- type: "uint8",
308
- internalType: "uint8"
309
- },
310
- {
311
- name: "feeRate",
312
- type: "uint64",
313
- internalType: "uint64"
314
- },
315
- {
316
- name: "babeTotalInstances",
317
- type: "uint16",
318
- internalType: "uint16"
319
- },
320
- {
321
- name: "babeInstancesToFinalize",
322
- type: "uint8",
323
- internalType: "uint8"
324
- },
325
- {
326
- name: "minVpCommissionBps",
327
- type: "uint16",
328
- internalType: "uint16"
329
- },
330
- {
331
- name: "tRefund",
332
- type: "uint32",
333
- internalType: "uint32"
334
- },
335
- {
336
- name: "tStale",
337
- type: "uint32",
338
- internalType: "uint32"
339
- },
340
- {
341
- name: "minPeginFeeRate",
342
- type: "uint64",
343
- internalType: "uint64"
344
- },
345
- {
346
- name: "proverCircuitVersion",
347
- type: "uint16",
348
- internalType: "uint16"
349
- },
350
- {
351
- name: "minPrepeginDepth",
352
- type: "uint32",
353
- internalType: "uint32"
354
- }
355
- ]
356
- }
357
- ],
358
- stateMutability: "view"
359
- },
360
- {
361
- type: "function",
362
- name: "latestOffchainParamsVersion",
363
- inputs: [],
364
- outputs: [
365
- {
366
- name: "",
367
- type: "uint16",
368
- internalType: "uint16"
369
- }
370
- ],
371
- stateMutability: "view"
372
- },
373
- {
374
- type: "function",
375
- name: "getUniversalChallengersByVersion",
376
- inputs: [
377
- {
378
- name: "versionNumber",
379
- type: "uint16",
380
- internalType: "uint16"
381
- }
382
- ],
383
- outputs: [
384
- {
385
- name: "",
386
- type: "tuple[]",
387
- internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
388
- components: [
389
- {
390
- name: "ethAddress",
391
- type: "address",
392
- internalType: "address"
393
- },
394
- {
395
- name: "btcPubKey",
396
- type: "bytes32",
397
- internalType: "bytes32"
398
- }
399
- ]
400
- }
401
- ],
402
- stateMutability: "view"
403
- },
404
- {
405
- type: "function",
406
- name: "getCurrentUniversalChallengers",
407
- inputs: [],
408
- outputs: [
409
- {
410
- name: "",
411
- type: "tuple[]",
412
- internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]",
413
- components: [
414
- {
415
- name: "ethAddress",
416
- type: "address",
417
- internalType: "address"
418
- },
419
- {
420
- name: "btcPubKey",
421
- type: "bytes32",
422
- internalType: "bytes32"
423
- }
424
- ]
425
- }
426
- ],
427
- stateMutability: "view"
428
- },
429
- {
430
- type: "function",
431
- name: "latestUniversalChallengersVersion",
432
- inputs: [],
433
- outputs: [
434
- {
435
- name: "",
436
- type: "uint16",
437
- internalType: "uint16"
438
- }
439
- ],
440
- stateMutability: "view"
441
- },
442
- // --- RFC-006 operation-key resolution ---------------------------------
443
- // Universal challengers get the reduced RFC-006 model: an operation key
444
- // that goes into the challenge scripts, resolved against the vault's frozen
445
- // `ucKeyEpoch`, but no payout script (a UC is never a claimer, so its only
446
- // BTC output is the NoPayout anchor) and no per-UC setter — key changes go
447
- // through a roster version bump. The roster entry's `ethAddress` is the
448
- // `ucAdmin` lookup key and its `btcPubKey` is the genesis key.
449
- {
450
- type: "function",
451
- name: "getCurrentOperationBtcKey",
452
- inputs: [{ name: "ucAdmin", type: "address", internalType: "address" }],
453
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
454
- stateMutability: "view"
455
- },
456
- {
457
- type: "function",
458
- name: "getOperationBtcKeyAtEpochOrGenesis",
459
- inputs: [
460
- { name: "ucAdmin", type: "address", internalType: "address" },
461
- { name: "epoch", type: "uint64", internalType: "uint64" },
462
- { name: "rosterGenesisKey", type: "bytes32", internalType: "bytes32" }
463
- ],
464
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
465
- stateMutability: "view"
466
- },
467
- // Observation window between a vault's final ACK and its activation, in ETH
468
- // blocks, measured from `verifiedAt`. Read through this standalone getter
469
- // rather than as a 7th component of `getTBVProtocolParams` above: the field
470
- // was appended to the struct, so a 7-component tuple decodes only against
471
- // deployments that carry it and throws `PositionOutOfBoundsError` against
472
- // the 6-word return of those that don't. Deployments are currently split
473
- // (devnet has it, testnet/staging do not), and that tuple feeds
474
- // `getPegInConfiguration` -> `ProtocolParamsContext`, whose failure blanks
475
- // the app. `uint256` (not the `uint64` storage width) — the accessor widens.
476
- {
477
- type: "function",
478
- name: "peginActivationDelay",
479
- inputs: [],
480
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
481
- stateMutability: "view"
482
- }
483
- ];
1
+ import { A as t, P as o } from "../../../ProtocolParams.abi-q0AidvYX.js";
2
+ import { B as e } from "../../../BTCVaultRegistry.abi-B0x9_Bza.js";
3
+ import { B as i, C as E, P as g, a as C, e as R, g as p, h as A, i as B, b as P } from "../../../BTCVaultRegistryKeyEpochs.abi-BWoxwPQv.js";
484
4
  export {
485
- e as ApplicationRegistryABI,
486
- a as BTCVaultRegistryABI,
487
- s as BTCVaultRegistryKeyEpochsABI,
488
- y as CONTRACT_ERRORS,
489
- t as ProtocolParamsABI,
490
- r as extractErrorData,
491
- u as getContractErrorMessage,
492
- l as handleContractError,
493
- m as isKnownContractError
5
+ t as ApplicationRegistryABI,
6
+ e as BTCVaultRegistryABI,
7
+ i as BTCVaultRegistryKeyEpochsABI,
8
+ E as CONTRACT_ERRORS,
9
+ g as PEGIN_FINGERPRINT_CHANGED_SELECTOR,
10
+ C as PeginFingerprintChangedError,
11
+ o as ProtocolParamsABI,
12
+ R as extractErrorData,
13
+ p as getContractErrorMessage,
14
+ A as handleContractError,
15
+ B as isKnownContractError,
16
+ P as isPeginFingerprintChangedError
494
17
  };
495
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts","../../../../src/tbv/core/contracts/abis/ProtocolParams.abi.ts"],"sourcesContent":["/**\n * ApplicationRegistry Contract ABI\n *\n * Minimal ABI containing only the vault keeper read functions needed by the SDK.\n * Generated from vault-contracts-aave-v4 IApplicationRegistry.sol interface.\n *\n * @module contracts/abis/ApplicationRegistry\n */\n\nexport const ApplicationRegistryABI = [\n {\n type: \"function\",\n name: \"getVaultKeepersByVersion\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentVaultKeepers\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentVaultKeepersVersion\",\n inputs: [\n {\n name: \"appEntryPoint\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n // --- RFC-006 operation-key resolution ---------------------------------\n // A keeper's roster entry (`AddressBTCKeyPair` above) carries its *admin*\n // ETH address and its *genesis* BTC key. The key that actually goes into\n // the scripts is the operation key bonded at the vault's frozen\n // `appKeeperKeyEpoch`, which the admin address keys the lookup for.\n //\n // The `...OrGenesis` variant takes the roster key explicitly because the\n // correct genesis for a keeper is its key in the vault's *frozen membership\n // version* — a keeper may have been dropped from the current roster, or\n // listed under a different key in an older version. The plain\n // `getOperationBtcKeyAtEpoch` variant resolves genesis version-agnostically\n // and can therefore pick the wrong one; do not use it for a frozen vault.\n {\n type: \"function\",\n name: \"getCurrentOperationBtcKey\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOperationBtcKeyAtEpochOrGenesis\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n { name: \"rosterGenesisKey\", type: \"bytes32\", internalType: \"bytes32\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getPayoutScriptAtEpoch\",\n inputs: [\n { name: \"appEntryPoint\", type: \"address\", internalType: \"address\" },\n { name: \"keeperAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n ],\n outputs: [{ name: \"\", type: \"bytes\", internalType: \"bytes\" }],\n stateMutability: \"view\",\n },\n] as const;\n","/**\n * ProtocolParams Contract ABI\n *\n * Minimal ABI containing only the read functions needed by the SDK.\n * Generated from vault-contracts-aave-v4 IProtocolParams.sol interface.\n *\n * @module contracts/abis/ProtocolParams\n */\n\nexport const ProtocolParamsABI = [\n {\n type: \"function\",\n name: \"activeVaultCoreVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getTBVProtocolParams\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.TBVProtocolParams\",\n components: [\n {\n name: \"minimumPegInAmount\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"maxPegInAmount\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"pegInAckTimeout\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"pegInActivationTimeout\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"maxHtlcOutputCount\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"expiredPegInGraceBlocks\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getLatestOffchainParams\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.VersionedOffchainParams\",\n components: [\n {\n name: \"timelockAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"timelockChallengeAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"securityCouncilKeys\",\n type: \"bytes32[]\",\n internalType: \"bytes32[]\",\n },\n {\n name: \"councilQuorum\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"feeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"babeTotalInstances\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"babeInstancesToFinalize\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"minVpCommissionBps\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"tRefund\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"tStale\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"minPeginFeeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"proverCircuitVersion\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"minPrepeginDepth\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOffchainParamsByVersion\",\n inputs: [\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple\",\n internalType: \"struct IProtocolParams.VersionedOffchainParams\",\n components: [\n {\n name: \"timelockAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"timelockChallengeAssert\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"securityCouncilKeys\",\n type: \"bytes32[]\",\n internalType: \"bytes32[]\",\n },\n {\n name: \"councilQuorum\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"feeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"babeTotalInstances\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"babeInstancesToFinalize\",\n type: \"uint8\",\n internalType: \"uint8\",\n },\n {\n name: \"minVpCommissionBps\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"tRefund\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"tStale\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"minPeginFeeRate\",\n type: \"uint64\",\n internalType: \"uint64\",\n },\n {\n name: \"proverCircuitVersion\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n {\n name: \"minPrepeginDepth\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"latestOffchainParamsVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getUniversalChallengersByVersion\",\n inputs: [\n {\n name: \"versionNumber\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getCurrentUniversalChallengers\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"tuple[]\",\n internalType: \"struct BTCVaultTypes.AddressBTCKeyPair[]\",\n components: [\n {\n name: \"ethAddress\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"btcPubKey\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"latestUniversalChallengersVersion\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"uint16\",\n internalType: \"uint16\",\n },\n ],\n stateMutability: \"view\",\n },\n // --- RFC-006 operation-key resolution ---------------------------------\n // Universal challengers get the reduced RFC-006 model: an operation key\n // that goes into the challenge scripts, resolved against the vault's frozen\n // `ucKeyEpoch`, but no payout script (a UC is never a claimer, so its only\n // BTC output is the NoPayout anchor) and no per-UC setter — key changes go\n // through a roster version bump. The roster entry's `ethAddress` is the\n // `ucAdmin` lookup key and its `btcPubKey` is the genesis key.\n {\n type: \"function\",\n name: \"getCurrentOperationBtcKey\",\n inputs: [{ name: \"ucAdmin\", type: \"address\", internalType: \"address\" }],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"getOperationBtcKeyAtEpochOrGenesis\",\n inputs: [\n { name: \"ucAdmin\", type: \"address\", internalType: \"address\" },\n { name: \"epoch\", type: \"uint64\", internalType: \"uint64\" },\n { name: \"rosterGenesisKey\", type: \"bytes32\", internalType: \"bytes32\" },\n ],\n outputs: [{ name: \"\", type: \"bytes32\", internalType: \"bytes32\" }],\n stateMutability: \"view\",\n },\n // Observation window between a vault's final ACK and its activation, in ETH\n // blocks, measured from `verifiedAt`. Read through this standalone getter\n // rather than as a 7th component of `getTBVProtocolParams` above: the field\n // was appended to the struct, so a 7-component tuple decodes only against\n // deployments that carry it and throws `PositionOutOfBoundsError` against\n // the 6-word return of those that don't. Deployments are currently split\n // (devnet has it, testnet/staging do not), and that tuple feeds\n // `getPegInConfiguration` -> `ProtocolParamsContext`, whose failure blanks\n // the app. `uint256` (not the `uint64` storage width) — the accessor widens.\n {\n type: \"function\",\n name: \"peginActivationDelay\",\n inputs: [],\n outputs: [{ name: \"\", type: \"uint256\", internalType: \"uint256\" }],\n stateMutability: \"view\",\n },\n] as const;\n"],"names":["ApplicationRegistryABI","ProtocolParamsABI"],"mappings":";;AASO,MAAMA,IAAyB;AAAA,EACpC;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,MACN;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,cAAc;AAAA,MAAA;AAAA,MAEhB;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,cAAc;AAAA,MAAA;AAAA,IAChB;AAAA,IAEF,SAAS;AAAA,MACP;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,cAAc;AAAA,QACd,YAAY;AAAA,UACV;AAAA,YACE,MAAM;AAAA,YACN,MAAM;AAAA,YACN,cAAc;AAAA,UAAA;A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R,SAAS,CAAC,EAAE,MAAM,IAAI,MAAM,WAAW,cAAc,WAAW;AAAA,IAChE,iBAAiB;AAAA,EAAA;AAErB;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * The depositor's commission ceiling (`maxAcceptableCommissionBps`) policy:
3
3
  * quoted VP commission + drift headroom, capped below the contract's
4
- * exclusive bound. Shared by the fresh path (`PeginManager`) and the
5
- * resume-rebuild path so both compute the same ceiling.
4
+ * exclusive bound. Shared by `PeginManager` (the approved terms) and the
5
+ * registration calldata so both carry the same ceiling; a resume rebuild reads
6
+ * that submitted value back from the `PegInSubmittedV2` log instead.
6
7
  *
7
8
  * @module deposit-terms/commissionCeiling
8
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"commissionCeiling.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/commissionCeiling.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkBH;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmBjE"}
1
+ {"version":3,"file":"commissionCeiling.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/deposit-terms/commissionCeiling.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmBjE"}