@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,41 +1,42 @@
1
1
  import { MEMPOOL_API_URLS as r, getAddressTxs as s, getAddressUtxos as t, getMempoolApiUrl as o, getNetworkFees as i, getOutspend as n, getTipHeight as R, getTxHex as l, getTxInfo as d, getUtxoInfo as p, pushTx as T } from "./mempool/index.js";
2
- import { O as S, V as P, a as E, b as c, c as m, r as _ } from "../../../types-C5DyrC8F.js";
2
+ import { O as S, V as E, a as g, b as P, c, r as m } from "../../../types-B9YhlXe8.js";
3
3
  import { a as A } from "../../../onChainBtcPubkey-C-6UWpD8.js";
4
- import { V as f, c as u, f as v, d as x, v as O, a as I, b as U } from "../../../pegin-registration-client-CXK3B_D1.js";
5
- import { a as y } from "../../../secp256k1-D-H9jmd7.js";
6
- import { V as b, a as B, b as N, v as k } from "../../../index-DQ5bfoT3.js";
7
- import { A as J, D as M, J as L, a as F, b as K, d as j, P as q, R as w, e as G, c as W, V as X, i as Z } from "../../../json-rpc-client-DuUARJvV.js";
8
- import { S as Q, V as Y, c as $, p as ee, v as ae, a as re } from "../../../primeVpAuth-DdfHSC53.js";
4
+ import { R as C, V as f, c as u, f as x, d as O, i as I, v as U, a as h, b as y } from "../../../pegin-registration-client-pcczkzMg.js";
5
+ import { a as D } from "../../../secp256k1-D-H9jmd7.js";
6
+ import { V as L, a as N, b as k, v as H } from "../../../index-DQ5bfoT3.js";
7
+ import { A as M, D as F, J as K, a as j, b as q, d as w, P as G, R as W, e as X, c as Z, V as z, i as Q } from "../../../json-rpc-client-DuUARJvV.js";
8
+ import { S as $, V as ee, c as ae, p as re, v as se, a as te } from "../../../primeVpAuth-DdfHSC53.js";
9
9
  export {
10
- J as AUTH_REJECTED_RPC_CODE,
11
- M as DaemonStatus,
12
- L as JSON_RPC_ERROR_CODES,
13
- F as JsonRpcClient,
14
- K as JsonRpcError,
10
+ M as AUTH_REJECTED_RPC_CODE,
11
+ F as DaemonStatus,
12
+ K as JSON_RPC_ERROR_CODES,
13
+ j as JsonRpcClient,
14
+ q as JsonRpcError,
15
15
  r as MEMPOOL_API_URLS,
16
16
  S as OnChainBtcVaultStatus,
17
- j as POST_WOTS_STATUSES,
18
- q as PRE_DEPOSITOR_SIGNATURES_STATES,
19
- w as RpcErrorCode,
20
- Q as ServerIdentityError,
21
- G as VP_BATCH_MAX_SIZE,
22
- W as VP_TERMINAL_FAILURE_STATUSES,
23
- X as VP_TRANSIENT_STATUSES,
24
- b as VaultProviderRpcClient,
25
- P as ViemOperationKeyReader,
17
+ w as POST_WOTS_STATUSES,
18
+ G as PRE_DEPOSITOR_SIGNATURES_STATES,
19
+ C as RegistrationLogsUnavailableError,
20
+ W as RpcErrorCode,
21
+ $ as ServerIdentityError,
22
+ X as VP_BATCH_MAX_SIZE,
23
+ Z as VP_TERMINAL_FAILURE_STATUSES,
24
+ z as VP_TRANSIENT_STATUSES,
25
+ L as VaultProviderRpcClient,
26
+ E as ViemOperationKeyReader,
26
27
  f as ViemPeginRegistrationClient,
27
- E as ViemProtocolParamsReader,
28
- c as ViemUniversalChallengerReader,
29
- m as ViemVaultKeeperReader,
28
+ g as ViemProtocolParamsReader,
29
+ P as ViemUniversalChallengerReader,
30
+ c as ViemVaultKeeperReader,
30
31
  u as ViemVaultRegistryReader,
31
- B as VpResponseValidationError,
32
- Y as VpTokenRegistry,
32
+ N as VpResponseValidationError,
33
+ ee as VpTokenRegistry,
33
34
  A as assertOnChainBtcPubkey,
34
- y as assertValidVaultCoreVersion,
35
- N as batchPollByProvider,
36
- v as calculateBtcTxHash,
37
- $ as createAuthenticatedVpClient,
38
- x as derivePeginVaultId,
35
+ D as assertValidVaultCoreVersion,
36
+ k as batchPollByProvider,
37
+ x as calculateBtcTxHash,
38
+ ae as createAuthenticatedVpClient,
39
+ O as derivePeginVaultId,
39
40
  s as getAddressTxs,
40
41
  t as getAddressUtxos,
41
42
  o as getMempoolApiUrl,
@@ -45,15 +46,16 @@ export {
45
46
  l as getTxHex,
46
47
  d as getTxInfo,
47
48
  p as getUtxoInfo,
48
- Z as isAuthRejectedError,
49
- ee as primeVpTokenRegistry,
49
+ Q as isAuthRejectedError,
50
+ I as isRegistrationLogsUnavailableError,
51
+ re as primeVpTokenRegistry,
50
52
  T as pushTx,
51
- _ as resolveProtocolAddresses,
52
- O as validateOffchainParams,
53
- I as validatePegInConfiguration,
54
- k as validateRequestDepositorClaimerArtifactsResponse,
55
- U as validateTBVProtocolParams,
56
- ae as verifyServerIdentity,
57
- re as vpTokenRegistry
53
+ m as resolveProtocolAddresses,
54
+ U as validateOffchainParams,
55
+ h as validatePegInConfiguration,
56
+ H as validateRequestDepositorClaimerArtifactsResponse,
57
+ y as validateTBVProtocolParams,
58
+ se as verifyServerIdentity,
59
+ te as vpTokenRegistry
58
60
  };
59
61
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Pins the peg-in submit signatures against the contract they must match.
3
+ *
4
+ * A function selector is `keccak256` of the signature, so it is the one value
5
+ * that changes if an argument is added, removed, reordered, or retyped. Every
6
+ * expectation here is a literal transcribed from the contract source, never
7
+ * re-derived from our own ABI — a re-derivation would only prove the ABI agrees
8
+ * with itself, which is true of any ABI including a wrong one.
9
+ *
10
+ * Source: https://github.com/babylonlabs-io/vault-contracts-aave-v4/pull/555.
11
+ * `expectedFingerprint` is argument 4 of the batch function — before `requests`
12
+ * — and appended last on both singular overloads.
13
+ *
14
+ * Every literal below is cross-checked against `snapshots/selectors.md` at head
15
+ * `86577e40`, which upstream generates from its own contracts. That makes these
16
+ * values an independent oracle rather than a transcription: the snapshot lists
17
+ * `submitPeginRequestBatch(...) 0x3e62a2ba`, both singular overloads at
18
+ * `0x564feec1` / `0x1c3c4606`, and `PeginFingerprintChanged(bytes32,bytes32)`
19
+ * at `0x846c25bb`. The fingerprint half of that PR is byte-identical between
20
+ * `ec62ac62` (when this was first written) and `86577e40`; the head moved only
21
+ * because `main` was merged in.
22
+ */
23
+ export {};
24
+ //# sourceMappingURL=peginFingerprintAbi.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peginFingerprintAbi.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/__tests__/peginFingerprintAbi.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
@@ -56,6 +56,20 @@ export declare const ApplicationRegistryABI: readonly [{
56
56
  }];
57
57
  }];
58
58
  readonly stateMutability: "view";
59
+ }, {
60
+ readonly type: "function";
61
+ readonly name: "appKeeperKeyEpochCurrent";
62
+ readonly inputs: readonly [{
63
+ readonly name: "appEntryPoint";
64
+ readonly type: "address";
65
+ readonly internalType: "address";
66
+ }];
67
+ readonly outputs: readonly [{
68
+ readonly name: "";
69
+ readonly type: "uint64";
70
+ readonly internalType: "uint64";
71
+ }];
72
+ readonly stateMutability: "view";
59
73
  }, {
60
74
  readonly type: "function";
61
75
  readonly name: "getCurrentVaultKeepersVersion";
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIzB,CAAC"}
1
+ {"version":3,"file":"ApplicationRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JzB,CAAC"}
@@ -8,7 +8,8 @@
8
8
  */
9
9
  /**
10
10
  * Minimal ABI for BTCVaultRegistry contract.
11
- * Contains submitPeginRequest, submitPeginRequestBatch, activateVaultWithSecret, getPegInFee, getBtcVaultBasicInfo, and getVaultProviderCommission.
11
+ * Contains submitPeginRequest, submitPeginRequestBatch, activateVaultWithSecret, getPegInFee, getBtcVaultBasicInfo, getVaultProviderCommission,
12
+ * and the PegInSubmitted / PegInSubmittedV2 events.
12
13
  */
13
14
  export declare const BTCVaultRegistryABI: readonly [{
14
15
  readonly type: "function";
@@ -57,6 +58,10 @@ export declare const BTCVaultRegistryABI: readonly [{
57
58
  readonly name: "depositorWotsPkHash";
58
59
  readonly type: "bytes32";
59
60
  readonly internalType: "bytes32";
61
+ }, {
62
+ readonly name: "expectedFingerprint";
63
+ readonly type: "bytes32";
64
+ readonly internalType: "bytes32";
60
65
  }];
61
66
  readonly outputs: readonly [{
62
67
  readonly name: "";
@@ -115,6 +120,10 @@ export declare const BTCVaultRegistryABI: readonly [{
115
120
  readonly name: "depositorWotsPkHash";
116
121
  readonly type: "bytes32";
117
122
  readonly internalType: "bytes32";
123
+ }, {
124
+ readonly name: "expectedFingerprint";
125
+ readonly type: "bytes32";
126
+ readonly internalType: "bytes32";
118
127
  }];
119
128
  readonly outputs: readonly [{
120
129
  readonly name: "";
@@ -137,6 +146,10 @@ export declare const BTCVaultRegistryABI: readonly [{
137
146
  readonly name: "maxAcceptableCommissionBps";
138
147
  readonly type: "uint16";
139
148
  readonly internalType: "uint16";
149
+ }, {
150
+ readonly name: "expectedFingerprint";
151
+ readonly type: "bytes32";
152
+ readonly internalType: "bytes32";
140
153
  }, {
141
154
  readonly name: "requests";
142
155
  readonly type: "tuple[]";
@@ -295,6 +308,20 @@ export declare const BTCVaultRegistryABI: readonly [{
295
308
  readonly internalType: "uint16";
296
309
  }];
297
310
  readonly stateMutability: "view";
311
+ }, {
312
+ readonly type: "function";
313
+ readonly name: "getVaultProviderApplication";
314
+ readonly inputs: readonly [{
315
+ readonly name: "vpAddr";
316
+ readonly type: "address";
317
+ readonly internalType: "address";
318
+ }];
319
+ readonly outputs: readonly [{
320
+ readonly name: "";
321
+ readonly type: "address";
322
+ readonly internalType: "address";
323
+ }];
324
+ readonly stateMutability: "view";
298
325
  }, {
299
326
  readonly type: "function";
300
327
  readonly name: "getBtcVaultBasicInfo";
@@ -685,6 +712,18 @@ export declare const BTCVaultRegistryABI: readonly [{
685
712
  readonly type: "uint16";
686
713
  readonly internalType: "uint16";
687
714
  }];
715
+ }, {
716
+ readonly type: "error";
717
+ readonly name: "PeginFingerprintChanged";
718
+ readonly inputs: readonly [{
719
+ readonly name: "expected";
720
+ readonly type: "bytes32";
721
+ readonly internalType: "bytes32";
722
+ }, {
723
+ readonly name: "actual";
724
+ readonly type: "bytes32";
725
+ readonly internalType: "bytes32";
726
+ }];
688
727
  }, {
689
728
  readonly type: "error";
690
729
  readonly name: "VaultProviderNotRegistered";
@@ -761,5 +800,230 @@ export declare const BTCVaultRegistryABI: readonly [{
761
800
  readonly type: "error";
762
801
  readonly name: "CapExceeded";
763
802
  readonly inputs: readonly [];
803
+ }, {
804
+ readonly type: "event";
805
+ readonly name: "PegInSubmitted";
806
+ readonly inputs: readonly [{
807
+ readonly name: "vaultId";
808
+ readonly type: "bytes32";
809
+ readonly indexed: true;
810
+ readonly internalType: "bytes32";
811
+ }, {
812
+ readonly name: "peginTxHash";
813
+ readonly type: "bytes32";
814
+ readonly indexed: true;
815
+ readonly internalType: "bytes32";
816
+ }, {
817
+ readonly name: "depositor";
818
+ readonly type: "address";
819
+ readonly indexed: true;
820
+ readonly internalType: "address";
821
+ }, {
822
+ readonly name: "vaultProvider";
823
+ readonly type: "address";
824
+ readonly indexed: false;
825
+ readonly internalType: "address";
826
+ }, {
827
+ readonly name: "amount";
828
+ readonly type: "uint256";
829
+ readonly indexed: false;
830
+ readonly internalType: "uint256";
831
+ }, {
832
+ readonly name: "vaultCoreVersion";
833
+ readonly type: "uint16";
834
+ readonly indexed: false;
835
+ readonly internalType: "uint16";
836
+ }, {
837
+ readonly name: "universalChallengersVersion";
838
+ readonly type: "uint16";
839
+ readonly indexed: false;
840
+ readonly internalType: "uint16";
841
+ }, {
842
+ readonly name: "appVaultKeepersVersion";
843
+ readonly type: "uint16";
844
+ readonly indexed: false;
845
+ readonly internalType: "uint16";
846
+ }, {
847
+ readonly name: "proverCircuitVersion";
848
+ readonly type: "uint16";
849
+ readonly indexed: false;
850
+ readonly internalType: "uint16";
851
+ }, {
852
+ readonly name: "offchainParamsVersion";
853
+ readonly type: "uint16";
854
+ readonly indexed: false;
855
+ readonly internalType: "uint16";
856
+ }, {
857
+ readonly name: "referralCode";
858
+ readonly type: "uint32";
859
+ readonly indexed: false;
860
+ readonly internalType: "uint32";
861
+ }, {
862
+ readonly name: "depositorPayoutBtcAddress";
863
+ readonly type: "bytes";
864
+ readonly indexed: false;
865
+ readonly internalType: "bytes";
866
+ }, {
867
+ readonly name: "depositorWotsPkHash";
868
+ readonly type: "bytes32";
869
+ readonly indexed: false;
870
+ readonly internalType: "bytes32";
871
+ }, {
872
+ readonly name: "hashlock";
873
+ readonly type: "bytes32";
874
+ readonly indexed: false;
875
+ readonly internalType: "bytes32";
876
+ }, {
877
+ readonly name: "btcPopSignature";
878
+ readonly type: "bytes";
879
+ readonly indexed: false;
880
+ readonly internalType: "bytes";
881
+ }, {
882
+ readonly name: "htlcVout";
883
+ readonly type: "uint8";
884
+ readonly indexed: false;
885
+ readonly internalType: "uint8";
886
+ }, {
887
+ readonly name: "unsignedPrePeginTx";
888
+ readonly type: "bytes";
889
+ readonly indexed: false;
890
+ readonly internalType: "bytes";
891
+ }, {
892
+ readonly name: "depositorSignedPeginTx";
893
+ readonly type: "bytes";
894
+ readonly indexed: false;
895
+ readonly internalType: "bytes";
896
+ }, {
897
+ readonly name: "vpKeyEpoch";
898
+ readonly type: "uint64";
899
+ readonly indexed: false;
900
+ readonly internalType: "uint64";
901
+ }, {
902
+ readonly name: "appKeeperKeyEpoch";
903
+ readonly type: "uint64";
904
+ readonly indexed: false;
905
+ readonly internalType: "uint64";
906
+ }, {
907
+ readonly name: "ucKeyEpoch";
908
+ readonly type: "uint64";
909
+ readonly indexed: false;
910
+ readonly internalType: "uint64";
911
+ }];
912
+ readonly anonymous: false;
913
+ }, {
914
+ readonly type: "event";
915
+ readonly name: "PegInSubmittedV2";
916
+ readonly inputs: readonly [{
917
+ readonly name: "vaultId";
918
+ readonly type: "bytes32";
919
+ readonly indexed: true;
920
+ readonly internalType: "bytes32";
921
+ }, {
922
+ readonly name: "peginTxHash";
923
+ readonly type: "bytes32";
924
+ readonly indexed: true;
925
+ readonly internalType: "bytes32";
926
+ }, {
927
+ readonly name: "depositor";
928
+ readonly type: "address";
929
+ readonly indexed: true;
930
+ readonly internalType: "address";
931
+ }, {
932
+ readonly name: "vaultProvider";
933
+ readonly type: "address";
934
+ readonly indexed: false;
935
+ readonly internalType: "address";
936
+ }, {
937
+ readonly name: "amount";
938
+ readonly type: "uint256";
939
+ readonly indexed: false;
940
+ readonly internalType: "uint256";
941
+ }, {
942
+ readonly name: "vaultCoreVersion";
943
+ readonly type: "uint16";
944
+ readonly indexed: false;
945
+ readonly internalType: "uint16";
946
+ }, {
947
+ readonly name: "universalChallengersVersion";
948
+ readonly type: "uint16";
949
+ readonly indexed: false;
950
+ readonly internalType: "uint16";
951
+ }, {
952
+ readonly name: "appVaultKeepersVersion";
953
+ readonly type: "uint16";
954
+ readonly indexed: false;
955
+ readonly internalType: "uint16";
956
+ }, {
957
+ readonly name: "proverCircuitVersion";
958
+ readonly type: "uint16";
959
+ readonly indexed: false;
960
+ readonly internalType: "uint16";
961
+ }, {
962
+ readonly name: "offchainParamsVersion";
963
+ readonly type: "uint16";
964
+ readonly indexed: false;
965
+ readonly internalType: "uint16";
966
+ }, {
967
+ readonly name: "referralCode";
968
+ readonly type: "uint32";
969
+ readonly indexed: false;
970
+ readonly internalType: "uint32";
971
+ }, {
972
+ readonly name: "depositorPayoutBtcAddress";
973
+ readonly type: "bytes";
974
+ readonly indexed: false;
975
+ readonly internalType: "bytes";
976
+ }, {
977
+ readonly name: "depositorWotsPkHash";
978
+ readonly type: "bytes32";
979
+ readonly indexed: false;
980
+ readonly internalType: "bytes32";
981
+ }, {
982
+ readonly name: "hashlock";
983
+ readonly type: "bytes32";
984
+ readonly indexed: false;
985
+ readonly internalType: "bytes32";
986
+ }, {
987
+ readonly name: "btcPopSignature";
988
+ readonly type: "bytes";
989
+ readonly indexed: false;
990
+ readonly internalType: "bytes";
991
+ }, {
992
+ readonly name: "htlcVout";
993
+ readonly type: "uint8";
994
+ readonly indexed: false;
995
+ readonly internalType: "uint8";
996
+ }, {
997
+ readonly name: "unsignedPrePeginTx";
998
+ readonly type: "bytes";
999
+ readonly indexed: false;
1000
+ readonly internalType: "bytes";
1001
+ }, {
1002
+ readonly name: "depositorSignedPeginTx";
1003
+ readonly type: "bytes";
1004
+ readonly indexed: false;
1005
+ readonly internalType: "bytes";
1006
+ }, {
1007
+ readonly name: "vpKeyEpoch";
1008
+ readonly type: "uint64";
1009
+ readonly indexed: false;
1010
+ readonly internalType: "uint64";
1011
+ }, {
1012
+ readonly name: "appKeeperKeyEpoch";
1013
+ readonly type: "uint64";
1014
+ readonly indexed: false;
1015
+ readonly internalType: "uint64";
1016
+ }, {
1017
+ readonly name: "ucKeyEpoch";
1018
+ readonly type: "uint64";
1019
+ readonly indexed: false;
1020
+ readonly internalType: "uint64";
1021
+ }, {
1022
+ readonly name: "maxAcceptableCommissionBps";
1023
+ readonly type: "uint16";
1024
+ readonly indexed: false;
1025
+ readonly internalType: "uint16";
1026
+ }];
1027
+ readonly anonymous: false;
764
1028
  }];
765
1029
  //# 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;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2oBtB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA08BtB,CAAC"}
@@ -243,6 +243,16 @@ export declare const ProtocolParamsABI: readonly [{
243
243
  readonly internalType: "uint16";
244
244
  }];
245
245
  readonly stateMutability: "view";
246
+ }, {
247
+ readonly type: "function";
248
+ readonly name: "ucKeyEpochCurrent";
249
+ readonly inputs: readonly [];
250
+ readonly outputs: readonly [{
251
+ readonly name: "";
252
+ readonly type: "uint64";
253
+ readonly internalType: "uint64";
254
+ }];
255
+ readonly stateMutability: "view";
246
256
  }, {
247
257
  readonly type: "function";
248
258
  readonly name: "getCurrentOperationBtcKey";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4VpB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6WpB,CAAC"}
@@ -1,11 +1,38 @@
1
+ import { Hex } from 'viem';
1
2
  /**
2
- * Contract Error Handling Utilities
3
+ * `PeginFingerprintChanged(bytes32 expected, bytes32 actual)`.
3
4
  *
4
- * Provides utilities for extracting and handling contract revert errors.
5
- * Maps known error selectors to user-friendly messages.
5
+ * Re-derived rather than copied: `keccak256("PeginFingerprintChanged(bytes32,bytes32)")`
6
+ * begins `0x846c25bb`. Source is
7
+ * https://github.com/babylonlabs-io/vault-contracts-aave-v4/pull/555, and the
8
+ * value matches that repo's generated `snapshots/selectors.md` at head
9
+ * 86577e40. `BTCVaultRegistry.abi.ts` carries the matching error entry, and a
10
+ * test asserts the two agree.
11
+ */
12
+ export declare const PEGIN_FINGERPRINT_CHANGED_SELECTOR = "0x846c25bb";
13
+ /**
14
+ * The registry rejected a peg-in registration because the protocol state it
15
+ * resolves at inclusion no longer matches the state the Pre-Pegin was built
16
+ * against.
17
+ *
18
+ * Typed rather than one more entry in {@link CONTRACT_ERRORS} because the
19
+ * consuming app has to branch on it — this is the one contract revert on the
20
+ * peg-in path with a specific recovery, and matching an English message across
21
+ * a package boundary to find it would be a string nobody can safely reword.
6
22
  *
7
- * @module contracts/errors
23
+ * `expected` and `actual` are the depositor's fingerprint and the registry's.
24
+ * They are diagnostics only — the difference between "the chain moved" and
25
+ * "our encoder is wrong" — and must never be shown to a depositor.
8
26
  */
27
+ export declare class PeginFingerprintChangedError extends Error {
28
+ readonly expected?: Hex;
29
+ readonly actual?: Hex;
30
+ constructor(message: string, fingerprints?: {
31
+ expected: Hex;
32
+ actual: Hex;
33
+ });
34
+ }
35
+ export declare function isPeginFingerprintChangedError(err: unknown): err is PeginFingerprintChangedError;
9
36
  /**
10
37
  * Known contract error signatures mapped to user-friendly messages.
11
38
  *
@@ -26,6 +53,11 @@ export declare function extractErrorData(error: unknown): string | undefined;
26
53
  /**
27
54
  * Get a user-friendly error message for a contract error.
28
55
  *
56
+ * Reads {@link CONTRACT_ERRORS} only, so it reports `PeginFingerprintChanged`
57
+ * as unrecognised even though {@link handleContractError} throws a typed error
58
+ * for it. That revert deliberately has no message-table entry: consumers branch
59
+ * on {@link PeginFingerprintChangedError} and supply their own copy.
60
+ *
29
61
  * @param error - The error object from a contract call
30
62
  * @returns A user-friendly error message, or undefined if error is not recognized
31
63
  */
@@ -33,6 +65,11 @@ export declare function getContractErrorMessage(error: unknown): string | undefi
33
65
  /**
34
66
  * Check if an error is a known contract error.
35
67
  *
68
+ * "Known" means present in {@link CONTRACT_ERRORS}, so this returns `false` for
69
+ * `PeginFingerprintChanged` — see {@link getContractErrorMessage} for why that
70
+ * revert is typed instead of tabled. Use
71
+ * {@link isPeginFingerprintChangedError} to recognise it.
72
+ *
36
73
  * @param error - The error object to check
37
74
  * @returns True if the error is a known contract error
38
75
  */
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4DlD,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AA+ED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAU1E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CA+CzD"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAuB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAErD;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,eAAe,CAAC;AAK/D;;;;;;;;;;;;;GAaG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE;QAAE,QAAQ,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE;CAM3E;AAID,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,OAAO,GACX,GAAG,IAAI,4BAA4B,CAKrC;AA2BD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4DlD,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AA+ED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAU1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAgEzD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../BTCVaultRegistry.abi-z7d_eP22.cjs"),e=require("../../../BTCVaultRegistryKeyEpochs.abi-CrQiTLfA.cjs"),n=[{type:"function",name:"getVaultKeepersByVersion",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"versionNumber",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"getCurrentVaultKeepers",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"getCurrentVaultKeepersVersion",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getCurrentOperationBtcKey",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"keeperAdmin",type:"address",internalType:"address"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getOperationBtcKeyAtEpochOrGenesis",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"keeperAdmin",type:"address",internalType:"address"},{name:"epoch",type:"uint64",internalType:"uint64"},{name:"rosterGenesisKey",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getPayoutScriptAtEpoch",inputs:[{name:"appEntryPoint",type:"address",internalType:"address"},{name:"keeperAdmin",type:"address",internalType:"address"},{name:"epoch",type:"uint64",internalType:"uint64"}],outputs:[{name:"",type:"bytes",internalType:"bytes"}],stateMutability:"view"}],i=[{type:"function",name:"activeVaultCoreVersion",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getTBVProtocolParams",inputs:[],outputs:[{name:"",type:"tuple",internalType:"struct IProtocolParams.TBVProtocolParams",components:[{name:"minimumPegInAmount",type:"uint64",internalType:"uint64"},{name:"maxPegInAmount",type:"uint64",internalType:"uint64"},{name:"pegInAckTimeout",type:"uint64",internalType:"uint64"},{name:"pegInActivationTimeout",type:"uint64",internalType:"uint64"},{name:"maxHtlcOutputCount",type:"uint8",internalType:"uint8"},{name:"expiredPegInGraceBlocks",type:"uint64",internalType:"uint64"}]}],stateMutability:"view"},{type:"function",name:"getLatestOffchainParams",inputs:[],outputs:[{name:"",type:"tuple",internalType:"struct IProtocolParams.VersionedOffchainParams",components:[{name:"timelockAssert",type:"uint256",internalType:"uint256"},{name:"timelockChallengeAssert",type:"uint256",internalType:"uint256"},{name:"securityCouncilKeys",type:"bytes32[]",internalType:"bytes32[]"},{name:"councilQuorum",type:"uint8",internalType:"uint8"},{name:"feeRate",type:"uint64",internalType:"uint64"},{name:"babeTotalInstances",type:"uint16",internalType:"uint16"},{name:"babeInstancesToFinalize",type:"uint8",internalType:"uint8"},{name:"minVpCommissionBps",type:"uint16",internalType:"uint16"},{name:"tRefund",type:"uint32",internalType:"uint32"},{name:"tStale",type:"uint32",internalType:"uint32"},{name:"minPeginFeeRate",type:"uint64",internalType:"uint64"},{name:"proverCircuitVersion",type:"uint16",internalType:"uint16"},{name:"minPrepeginDepth",type:"uint32",internalType:"uint32"}]}],stateMutability:"view"},{type:"function",name:"getOffchainParamsByVersion",inputs:[{name:"versionNumber",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"tuple",internalType:"struct IProtocolParams.VersionedOffchainParams",components:[{name:"timelockAssert",type:"uint256",internalType:"uint256"},{name:"timelockChallengeAssert",type:"uint256",internalType:"uint256"},{name:"securityCouncilKeys",type:"bytes32[]",internalType:"bytes32[]"},{name:"councilQuorum",type:"uint8",internalType:"uint8"},{name:"feeRate",type:"uint64",internalType:"uint64"},{name:"babeTotalInstances",type:"uint16",internalType:"uint16"},{name:"babeInstancesToFinalize",type:"uint8",internalType:"uint8"},{name:"minVpCommissionBps",type:"uint16",internalType:"uint16"},{name:"tRefund",type:"uint32",internalType:"uint32"},{name:"tStale",type:"uint32",internalType:"uint32"},{name:"minPeginFeeRate",type:"uint64",internalType:"uint64"},{name:"proverCircuitVersion",type:"uint16",internalType:"uint16"},{name:"minPrepeginDepth",type:"uint32",internalType:"uint32"}]}],stateMutability:"view"},{type:"function",name:"latestOffchainParamsVersion",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getUniversalChallengersByVersion",inputs:[{name:"versionNumber",type:"uint16",internalType:"uint16"}],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"getCurrentUniversalChallengers",inputs:[],outputs:[{name:"",type:"tuple[]",internalType:"struct BTCVaultTypes.AddressBTCKeyPair[]",components:[{name:"ethAddress",type:"address",internalType:"address"},{name:"btcPubKey",type:"bytes32",internalType:"bytes32"}]}],stateMutability:"view"},{type:"function",name:"latestUniversalChallengersVersion",inputs:[],outputs:[{name:"",type:"uint16",internalType:"uint16"}],stateMutability:"view"},{type:"function",name:"getCurrentOperationBtcKey",inputs:[{name:"ucAdmin",type:"address",internalType:"address"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getOperationBtcKeyAtEpochOrGenesis",inputs:[{name:"ucAdmin",type:"address",internalType:"address"},{name:"epoch",type:"uint64",internalType:"uint64"},{name:"rosterGenesisKey",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"peginActivationDelay",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"}];exports.BTCVaultRegistryABI=t.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=e.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=e.CONTRACT_ERRORS;exports.extractErrorData=e.extractErrorData;exports.getContractErrorMessage=e.getContractErrorMessage;exports.handleContractError=e.handleContractError;exports.isKnownContractError=e.isKnownContractError;exports.ApplicationRegistryABI=n;exports.ProtocolParamsABI=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../ProtocolParams.abi-Db2USqQm.cjs"),e=require("../../../BTCVaultRegistry.abi-BQ5tFNSu.cjs"),r=require("../../../BTCVaultRegistryKeyEpochs.abi-DCJnzKer.cjs");exports.ApplicationRegistryABI=t.ApplicationRegistryABI;exports.ProtocolParamsABI=t.ProtocolParamsABI;exports.BTCVaultRegistryABI=e.BTCVaultRegistryABI;exports.BTCVaultRegistryKeyEpochsABI=r.BTCVaultRegistryKeyEpochsABI;exports.CONTRACT_ERRORS=r.CONTRACT_ERRORS;exports.PEGIN_FINGERPRINT_CHANGED_SELECTOR=r.PEGIN_FINGERPRINT_CHANGED_SELECTOR;exports.PeginFingerprintChangedError=r.PeginFingerprintChangedError;exports.extractErrorData=r.extractErrorData;exports.getContractErrorMessage=r.getContractErrorMessage;exports.handleContractError=r.handleContractError;exports.isKnownContractError=r.isKnownContractError;exports.isPeginFingerprintChangedError=r.isPeginFingerprintChangedError;
2
2
  //# sourceMappingURL=index.cjs.map