@lidofinance/lsv-cli 1.2.0 → 1.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 (265) hide show
  1. package/README.md +58 -0
  2. package/dist/abi/Dashboard.d.ts +268 -0
  3. package/dist/abi/Dashboard.js +2 -0
  4. package/dist/abi/Dashboard.js.map +1 -1
  5. package/dist/abi/PredepositGuarantee.d.ts +357 -88
  6. package/dist/abi/PredepositGuarantee.js +31 -28
  7. package/dist/abi/PredepositGuarantee.js.map +1 -1
  8. package/dist/abi/VaultViewer.d.ts +8 -0
  9. package/dist/abi/VaultViewer.js +10 -0
  10. package/dist/abi/VaultViewer.js.map +1 -1
  11. package/dist/command/index.js +1 -0
  12. package/dist/command/index.js.map +1 -1
  13. package/dist/configs/deployed.js +27 -8
  14. package/dist/configs/deployed.js.map +1 -1
  15. package/dist/configs/index.d.ts +4 -3
  16. package/dist/configs/index.js +4 -3
  17. package/dist/configs/index.js.map +1 -1
  18. package/dist/contracts/vault-viewer.js +2 -2
  19. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +1 -2
  20. package/dist/features/defi-wrapper/defi-wrapper-factory.js +12 -9
  21. package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
  22. package/dist/features/deposits/index.d.ts +1 -0
  23. package/dist/features/deposits/index.js +1 -0
  24. package/dist/features/deposits/index.js.map +1 -1
  25. package/dist/features/deposits/validators.d.ts +12 -0
  26. package/dist/features/deposits/validators.js +31 -0
  27. package/dist/features/deposits/validators.js.map +1 -0
  28. package/dist/features/index.d.ts +1 -0
  29. package/dist/features/index.js +1 -0
  30. package/dist/features/index.js.map +1 -1
  31. package/dist/features/lazy-oracle.js +2 -2
  32. package/dist/features/lazy-oracle.js.map +1 -1
  33. package/dist/features/mint-burn/allowance.d.ts +7 -1
  34. package/dist/features/mint-burn/allowance.js +8 -9
  35. package/dist/features/mint-burn/allowance.js.map +1 -1
  36. package/dist/features/mint-burn/burn-shares.d.ts +2 -1
  37. package/dist/features/mint-burn/burn-shares.js +4 -3
  38. package/dist/features/mint-burn/burn-shares.js.map +1 -1
  39. package/dist/features/mint-burn/burn-steth.d.ts +2 -1
  40. package/dist/features/mint-burn/burn-steth.js +4 -3
  41. package/dist/features/mint-burn/burn-steth.js.map +1 -1
  42. package/dist/features/mint-burn/mint-shares.js +4 -6
  43. package/dist/features/mint-burn/mint-shares.js.map +1 -1
  44. package/dist/features/mint-burn/mint-steth.js +4 -6
  45. package/dist/features/mint-burn/mint-steth.js.map +1 -1
  46. package/dist/features/utils/connection.d.ts +2 -0
  47. package/dist/features/utils/connection.js +14 -0
  48. package/dist/features/utils/connection.js.map +1 -0
  49. package/dist/features/utils/index.d.ts +1 -0
  50. package/dist/features/utils/index.js +1 -0
  51. package/dist/features/utils/index.js.map +1 -1
  52. package/dist/features/utils/liability-shares.js +2 -1
  53. package/dist/features/utils/liability-shares.js.map +1 -1
  54. package/dist/features/utils/report-fresh.d.ts +11 -1
  55. package/dist/features/utils/report-fresh.js +17 -14
  56. package/dist/features/utils/report-fresh.js.map +1 -1
  57. package/dist/features/vault-factory.d.ts +13 -14
  58. package/dist/features/vault-factory.js +30 -8
  59. package/dist/features/vault-factory.js.map +1 -1
  60. package/dist/features/vault-operations/connect-vault.d.ts +4 -0
  61. package/dist/features/vault-operations/connect-vault.js +21 -0
  62. package/dist/features/vault-operations/connect-vault.js.map +1 -0
  63. package/dist/features/vault-operations/create-vault.js +6 -4
  64. package/dist/features/vault-operations/create-vault.js.map +1 -1
  65. package/dist/features/vault-operations/dashboard-by-vault.js +17 -4
  66. package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
  67. package/dist/features/vault-operations/index.d.ts +2 -0
  68. package/dist/features/vault-operations/index.js +2 -0
  69. package/dist/features/vault-operations/index.js.map +1 -1
  70. package/dist/features/vault-operations/roles.d.ts +5 -0
  71. package/dist/features/vault-operations/roles.js +65 -0
  72. package/dist/features/vault-operations/roles.js.map +1 -0
  73. package/dist/features/vault-operations/vault-info.js +9 -3
  74. package/dist/features/vault-operations/vault-info.js.map +1 -1
  75. package/dist/features/vault-operations/vault-overview.js +5 -7
  76. package/dist/features/vault-operations/vault-overview.js.map +1 -1
  77. package/dist/features/vault-operations/vault-roles.js +1 -1
  78. package/dist/features/vault-operations/vault-roles.js.map +1 -1
  79. package/dist/features/with-report.d.ts +6 -0
  80. package/dist/features/with-report.js +18 -0
  81. package/dist/features/with-report.js.map +1 -0
  82. package/dist/index.js +32 -10
  83. package/dist/index.js.map +1 -1
  84. package/dist/programs/contracts/dashboard/write.js +39 -20
  85. package/dist/programs/contracts/dashboard/write.js.map +1 -1
  86. package/dist/programs/contracts/hub/write.js +5 -1
  87. package/dist/programs/contracts/hub/write.js.map +1 -1
  88. package/dist/programs/contracts/operator-grid/write.js +1 -1
  89. package/dist/programs/contracts/operator-grid/write.js.map +1 -1
  90. package/dist/programs/contracts/vault-factory/write.js +37 -23
  91. package/dist/programs/contracts/vault-factory/write.js.map +1 -1
  92. package/dist/programs/defi-wrapper/contracts/factory/write.js +12 -14
  93. package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
  94. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js +53 -16
  95. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js.map +1 -1
  96. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +2 -2
  97. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
  98. package/dist/programs/pdg-helpers.js +13 -9
  99. package/dist/programs/pdg-helpers.js.map +1 -1
  100. package/dist/programs/use-cases/consolidation/write.js +2 -2
  101. package/dist/programs/use-cases/consolidation/write.js.map +1 -1
  102. package/dist/programs/use-cases/vault-operations/create-vault.js +63 -27
  103. package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
  104. package/dist/programs/use-cases/vault-operations/write.js +124 -26
  105. package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
  106. package/dist/tests/integration/deposits.test.d.ts +1 -0
  107. package/dist/tests/integration/deposits.test.js +67 -0
  108. package/dist/tests/integration/deposits.test.js.map +1 -0
  109. package/dist/tests/integration/globalSetup.d.ts +1 -0
  110. package/dist/tests/integration/globalSetup.js +55 -0
  111. package/dist/tests/integration/globalSetup.js.map +1 -0
  112. package/dist/tests/integration/helpers/index.d.ts +3 -0
  113. package/dist/tests/integration/helpers/index.js +4 -0
  114. package/dist/tests/integration/helpers/index.js.map +1 -0
  115. package/dist/tests/integration/helpers/test-assertions.d.ts +32 -0
  116. package/dist/tests/integration/helpers/test-assertions.js +92 -0
  117. package/dist/tests/integration/helpers/test-assertions.js.map +1 -0
  118. package/dist/tests/integration/helpers/test-client.d.ts +14530 -0
  119. package/dist/tests/integration/helpers/test-client.js +73 -0
  120. package/dist/tests/integration/helpers/test-client.js.map +1 -0
  121. package/dist/tests/integration/helpers/test-config.d.ts +14 -0
  122. package/dist/tests/integration/helpers/test-config.js +62 -0
  123. package/dist/tests/integration/helpers/test-config.js.map +1 -0
  124. package/dist/tests/integration/helpers/test-setup.d.ts +12 -0
  125. package/dist/tests/integration/helpers/test-setup.js +40 -0
  126. package/dist/tests/integration/helpers/test-setup.js.map +1 -0
  127. package/dist/tests/integration/lazy-oracle.test.d.ts +1 -0
  128. package/dist/tests/integration/lazy-oracle.test.js +31 -0
  129. package/dist/tests/integration/lazy-oracle.test.js.map +1 -0
  130. package/dist/tests/integration/metrics.test.d.ts +1 -0
  131. package/dist/tests/integration/metrics.test.js +95 -0
  132. package/dist/tests/integration/metrics.test.js.map +1 -0
  133. package/dist/tests/integration/mint-burn.test.d.ts +1 -0
  134. package/dist/tests/integration/mint-burn.test.js +149 -0
  135. package/dist/tests/integration/mint-burn.test.js.map +1 -0
  136. package/dist/tests/integration/operator-grid.test.d.ts +1 -0
  137. package/dist/tests/integration/operator-grid.test.js +41 -0
  138. package/dist/tests/integration/operator-grid.test.js.map +1 -0
  139. package/dist/tests/integration/pdg.test.d.ts +1 -0
  140. package/dist/tests/integration/pdg.test.js +47 -0
  141. package/dist/tests/integration/pdg.test.js.map +1 -0
  142. package/dist/tests/integration/utils.test.d.ts +1 -0
  143. package/dist/tests/integration/utils.test.js +70 -0
  144. package/dist/tests/integration/utils.test.js.map +1 -0
  145. package/dist/tests/integration/vault-factory.test.d.ts +1 -0
  146. package/dist/tests/integration/vault-factory.test.js +29 -0
  147. package/dist/tests/integration/vault-factory.test.js.map +1 -0
  148. package/dist/tests/integration/vault-hub.test.d.ts +1 -0
  149. package/dist/tests/integration/vault-hub.test.js +71 -0
  150. package/dist/tests/integration/vault-hub.test.js.map +1 -0
  151. package/dist/tests/integration/vault-operations.test.d.ts +1 -0
  152. package/dist/tests/integration/vault-operations.test.js +151 -0
  153. package/dist/tests/integration/vault-operations.test.js.map +1 -0
  154. package/dist/tests/integration/vault-roles.test.d.ts +1 -0
  155. package/dist/tests/integration/vault-roles.test.js +44 -0
  156. package/dist/tests/integration/vault-roles.test.js.map +1 -0
  157. package/dist/tests/integration/vault.test.d.ts +1 -0
  158. package/dist/tests/integration/vault.test.js +44 -0
  159. package/dist/tests/integration/vault.test.js.map +1 -0
  160. package/dist/tests/utils/arguments.test.js +85 -4
  161. package/dist/tests/utils/arguments.test.js.map +1 -1
  162. package/dist/tests/utils/bigInt.test.js +1 -1
  163. package/dist/tests/utils/bigInt.test.js.map +1 -1
  164. package/dist/tests/utils/calculate-health.test.d.ts +1 -0
  165. package/dist/tests/utils/calculate-health.test.js +140 -0
  166. package/dist/tests/utils/calculate-health.test.js.map +1 -0
  167. package/dist/tests/utils/calculate-overview-v2.test.d.ts +1 -0
  168. package/dist/tests/utils/calculate-overview-v2.test.js +181 -0
  169. package/dist/tests/utils/calculate-overview-v2.test.js.map +1 -0
  170. package/dist/tests/utils/calculate-overview.test.js +2 -1
  171. package/dist/tests/utils/calculate-overview.test.js.map +1 -1
  172. package/dist/tests/utils/csv-file.test.d.ts +1 -0
  173. package/dist/tests/utils/csv-file.test.js +111 -0
  174. package/dist/tests/utils/csv-file.test.js.map +1 -0
  175. package/dist/tests/utils/data-validators.test.js +1 -1
  176. package/dist/tests/utils/data-validators.test.js.map +1 -1
  177. package/dist/tests/utils/error-handler.test.js +7 -16
  178. package/dist/tests/utils/error-handler.test.js.map +1 -1
  179. package/dist/tests/utils/get-commands.test.js +1 -1
  180. package/dist/tests/utils/get-commands.test.js.map +1 -1
  181. package/dist/tests/utils/get-deposit-data-root.test.js +1 -2
  182. package/dist/tests/utils/get-deposit-data-root.test.js.map +1 -1
  183. package/dist/tests/utils/get-value.test.js +1 -1
  184. package/dist/tests/utils/get-value.test.js.map +1 -1
  185. package/dist/tests/utils/health.test.js +1 -1
  186. package/dist/tests/utils/health.test.js.map +1 -1
  187. package/dist/tests/utils/interrupt-handler.test.js +2 -5
  188. package/dist/tests/utils/interrupt-handler.test.js.map +1 -1
  189. package/dist/tests/utils/ipfs.test.js +37 -24
  190. package/dist/tests/utils/ipfs.test.js.map +1 -1
  191. package/dist/tests/utils/lido-apr.test.d.ts +1 -0
  192. package/dist/tests/utils/lido-apr.test.js +95 -0
  193. package/dist/tests/utils/lido-apr.test.js.map +1 -0
  194. package/dist/tests/utils/logging.test.js +135 -15
  195. package/dist/tests/utils/logging.test.js.map +1 -1
  196. package/dist/tests/utils/merkle-utils.test.d.ts +1 -0
  197. package/dist/tests/utils/merkle-utils.test.js +231 -0
  198. package/dist/tests/utils/merkle-utils.test.js.map +1 -0
  199. package/dist/tests/utils/rebase-rewards.test.d.ts +1 -0
  200. package/dist/tests/utils/rebase-rewards.test.js +114 -0
  201. package/dist/tests/utils/rebase-rewards.test.js.map +1 -0
  202. package/dist/tests/utils/resove-path.test.js +1 -1
  203. package/dist/tests/utils/resove-path.test.js.map +1 -1
  204. package/dist/tests/utils/sleep.test.js +5 -5
  205. package/dist/tests/utils/sleep.test.js.map +1 -1
  206. package/dist/tests/utils/snake-to-camel.test.d.ts +1 -0
  207. package/dist/tests/utils/snake-to-camel.test.js +37 -0
  208. package/dist/tests/utils/snake-to-camel.test.js.map +1 -0
  209. package/dist/tests/utils/timestamp.test.d.ts +1 -0
  210. package/dist/tests/utils/timestamp.test.js +51 -0
  211. package/dist/tests/utils/timestamp.test.js.map +1 -0
  212. package/dist/utils/arguments.d.ts +2 -1
  213. package/dist/utils/arguments.js +6 -0
  214. package/dist/utils/arguments.js.map +1 -1
  215. package/dist/utils/calculate-overview-v2.d.ts +1 -2
  216. package/dist/utils/calculate-overview-v2.js +3 -6
  217. package/dist/utils/calculate-overview-v2.js.map +1 -1
  218. package/dist/utils/calculate-overview.d.ts +1 -0
  219. package/dist/utils/calculate-overview.js +1 -0
  220. package/dist/utils/calculate-overview.js.map +1 -1
  221. package/dist/utils/commands/report.d.ts +6 -1
  222. package/dist/utils/commands/report.js +6 -5
  223. package/dist/utils/commands/report.js.map +1 -1
  224. package/dist/utils/consolidation/confirms.js +2 -2
  225. package/dist/utils/consolidation/confirms.js.map +1 -1
  226. package/dist/utils/consolidation/logs.js +4 -2
  227. package/dist/utils/consolidation/logs.js.map +1 -1
  228. package/dist/utils/consolidation/pubkeys.js +2 -0
  229. package/dist/utils/consolidation/pubkeys.js.map +1 -1
  230. package/dist/utils/consolidation/types.d.ts +1 -0
  231. package/dist/utils/consolidation/validator-info.js +2 -0
  232. package/dist/utils/consolidation/validator-info.js.map +1 -1
  233. package/dist/utils/error-handler.js +2 -9
  234. package/dist/utils/error-handler.js.map +1 -1
  235. package/dist/utils/interrupt-handler.js +8 -2
  236. package/dist/utils/interrupt-handler.js.map +1 -1
  237. package/dist/utils/logging/console.js +41 -3
  238. package/dist/utils/logging/console.js.map +1 -1
  239. package/dist/utils/prompts/mint-burn/confirm-mint.js +1 -0
  240. package/dist/utils/prompts/mint-burn/confirm-mint.js.map +1 -1
  241. package/dist/utils/prompts/operations.js +4 -1
  242. package/dist/utils/prompts/operations.js.map +1 -1
  243. package/dist/utils/proof/create-proof.d.ts +5 -0
  244. package/dist/utils/proof/create-proof.js +5 -0
  245. package/dist/utils/proof/create-proof.js.map +1 -1
  246. package/dist/utils/transactions/tx-private-key.d.ts +4 -0
  247. package/dist/utils/transactions/tx-private-key.js +52 -24
  248. package/dist/utils/transactions/tx-private-key.js.map +1 -1
  249. package/dist/utils/transactions/tx-wc.d.ts +1 -0
  250. package/dist/utils/transactions/tx-wc.js +10 -19
  251. package/dist/utils/transactions/tx-wc.js.map +1 -1
  252. package/dist/utils/transactions/types.d.ts +1 -0
  253. package/dist/utils/transactions/utils.d.ts +3 -0
  254. package/dist/utils/transactions/utils.js +33 -0
  255. package/dist/utils/transactions/utils.js.map +1 -0
  256. package/dist/utils/wallet-connect.js +3 -1
  257. package/dist/utils/wallet-connect.js.map +1 -1
  258. package/dist/version/index.js +1 -1
  259. package/dist/vitest.config.d.ts +2 -0
  260. package/dist/vitest.config.js +29 -0
  261. package/dist/vitest.config.js.map +1 -0
  262. package/dist/vitest.integration.config.d.ts +2 -0
  263. package/dist/vitest.integration.config.js +39 -0
  264. package/dist/vitest.integration.config.js.map +1 -0
  265. package/package.json +14 -9
@@ -1,4 +1,4 @@
1
- export declare const PredepositGuaranteeAbi: readonly [{
1
+ export declare const PredepositGuaranteeErrorsAbi: readonly [{
2
2
  readonly inputs: readonly [];
3
3
  readonly name: "AccessControlBadConfirmation";
4
4
  readonly type: "error";
@@ -16,201 +16,258 @@ export declare const PredepositGuaranteeAbi: readonly [{
16
16
  readonly type: "error";
17
17
  }, {
18
18
  readonly inputs: readonly [];
19
- readonly name: "ConfirmExpiryOutOfBounds";
19
+ readonly name: "ArrayLengthsNotMatch";
20
20
  readonly type: "error";
21
21
  }, {
22
22
  readonly inputs: readonly [];
23
- readonly name: "SenderNotMember";
23
+ readonly name: "CompensateFailed";
24
24
  readonly type: "error";
25
25
  }, {
26
26
  readonly inputs: readonly [];
27
- readonly name: "ZeroConfirmingRoles";
27
+ readonly name: "EmptyDeposits";
28
28
  readonly type: "error";
29
29
  }, {
30
30
  readonly inputs: readonly [];
31
- readonly name: "AlreadyOssified";
31
+ readonly name: "IndexOutOfRange";
32
32
  readonly type: "error";
33
33
  }, {
34
34
  readonly inputs: readonly [];
35
- readonly name: "BeaconChainDepositsAlreadyPaused";
35
+ readonly name: "InputHasInfinityPoints";
36
36
  readonly type: "error";
37
37
  }, {
38
38
  readonly inputs: readonly [];
39
- readonly name: "BeaconChainDepositsAlreadyResumed";
39
+ readonly name: "InvalidDepositYLength";
40
40
  readonly type: "error";
41
41
  }, {
42
42
  readonly inputs: readonly [];
43
- readonly name: "BeaconChainDepositsOnPause";
43
+ readonly name: "InvalidInitialization";
44
44
  readonly type: "error";
45
45
  }, {
46
46
  readonly inputs: readonly [];
47
- readonly name: "EthCollectionNotAllowed";
47
+ readonly name: "InvalidPubkeyLength";
48
+ readonly type: "error";
49
+ }, {
50
+ readonly inputs: readonly [];
51
+ readonly name: "InvalidSignature";
52
+ readonly type: "error";
53
+ }, {
54
+ readonly inputs: readonly [];
55
+ readonly name: "InvalidSlot";
48
56
  readonly type: "error";
49
57
  }, {
50
58
  readonly inputs: readonly [{
51
59
  readonly internalType: "uint256";
52
- readonly name: "_balance";
53
- readonly type: "uint256";
54
- }, {
55
- readonly internalType: "uint256";
56
- readonly name: "_required";
60
+ readonly name: "amount";
57
61
  readonly type: "uint256";
58
62
  }];
59
- readonly name: "InsufficientBalance";
63
+ readonly name: "InvalidTopUpAmount";
60
64
  readonly type: "error";
61
65
  }, {
62
66
  readonly inputs: readonly [{
63
- readonly internalType: "uint256";
64
- readonly name: "_staged";
65
- readonly type: "uint256";
67
+ readonly internalType: "bytes";
68
+ readonly name: "validatorPubkey";
69
+ readonly type: "bytes";
66
70
  }, {
71
+ readonly internalType: "enum IPredepositGuarantee.ValidatorStage";
72
+ readonly name: "stage";
73
+ readonly type: "uint8";
74
+ }];
75
+ readonly name: "InvalidValidatorStage";
76
+ readonly type: "error";
77
+ }, {
78
+ readonly inputs: readonly [{
67
79
  readonly internalType: "uint256";
68
- readonly name: "_requested";
80
+ readonly name: "locked";
69
81
  readonly type: "uint256";
70
82
  }];
71
- readonly name: "InsufficientStaged";
83
+ readonly name: "LockedIsNotZero";
84
+ readonly type: "error";
85
+ }, {
86
+ readonly inputs: readonly [];
87
+ readonly name: "NotDepositor";
72
88
  readonly type: "error";
73
89
  }, {
74
90
  readonly inputs: readonly [{
75
91
  readonly internalType: "uint256";
76
- readonly name: "_passed";
92
+ readonly name: "unlocked";
77
93
  readonly type: "uint256";
78
94
  }, {
79
95
  readonly internalType: "uint256";
80
- readonly name: "_required";
96
+ readonly name: "amount";
81
97
  readonly type: "uint256";
82
98
  }];
83
- readonly name: "InsufficientValidatorWithdrawalFee";
99
+ readonly name: "NotEnoughUnlocked";
84
100
  readonly type: "error";
85
101
  }, {
86
102
  readonly inputs: readonly [];
87
- readonly name: "InvalidInitialization";
103
+ readonly name: "NotGuarantor";
88
104
  readonly type: "error";
89
105
  }, {
90
106
  readonly inputs: readonly [];
91
- readonly name: "InvalidPubkeysLength";
107
+ readonly name: "NotInitializing";
92
108
  readonly type: "error";
93
109
  }, {
94
110
  readonly inputs: readonly [];
95
- readonly name: "MalformedPubkeysArray";
111
+ readonly name: "NotStakingVaultOwner";
112
+ readonly type: "error";
113
+ }, {
114
+ readonly inputs: readonly [];
115
+ readonly name: "NothingToRefund";
116
+ readonly type: "error";
117
+ }, {
118
+ readonly inputs: readonly [];
119
+ readonly name: "PauseUntilMustBeInFuture";
120
+ readonly type: "error";
121
+ }, {
122
+ readonly inputs: readonly [];
123
+ readonly name: "PausedExpected";
96
124
  readonly type: "error";
97
125
  }, {
98
126
  readonly inputs: readonly [{
99
- readonly internalType: "uint256";
100
- readonly name: "keysCount";
101
- readonly type: "uint256";
127
+ readonly internalType: "bytes";
128
+ readonly name: "validatorPubkey";
129
+ readonly type: "bytes";
102
130
  }, {
103
131
  readonly internalType: "uint256";
104
- readonly name: "amountsCount";
132
+ readonly name: "depositAmount";
105
133
  readonly type: "uint256";
106
134
  }];
107
- readonly name: "MismatchedArrayLengths";
135
+ readonly name: "PredepositAmountInvalid";
108
136
  readonly type: "error";
109
137
  }, {
110
138
  readonly inputs: readonly [];
111
- readonly name: "NewDepositorSameAsPrevious";
139
+ readonly name: "RefundFailed";
112
140
  readonly type: "error";
113
141
  }, {
114
142
  readonly inputs: readonly [];
115
- readonly name: "NoWithdrawalRequests";
143
+ readonly name: "ResumedExpected";
116
144
  readonly type: "error";
117
145
  }, {
118
146
  readonly inputs: readonly [];
119
- readonly name: "NotInitializing";
147
+ readonly name: "RootNotFound";
120
148
  readonly type: "error";
121
149
  }, {
122
- readonly inputs: readonly [{
123
- readonly internalType: "address";
124
- readonly name: "owner";
125
- readonly type: "address";
126
- }];
127
- readonly name: "OwnableInvalidOwner";
150
+ readonly inputs: readonly [];
151
+ readonly name: "SameDepositor";
152
+ readonly type: "error";
153
+ }, {
154
+ readonly inputs: readonly [];
155
+ readonly name: "SameGuarantor";
128
156
  readonly type: "error";
129
157
  }, {
130
158
  readonly inputs: readonly [{
131
- readonly internalType: "address";
132
- readonly name: "account";
133
- readonly type: "address";
159
+ readonly internalType: "bytes";
160
+ readonly name: "validatorPubkey";
161
+ readonly type: "bytes";
162
+ }, {
163
+ readonly internalType: "enum IPredepositGuarantee.ValidatorStage";
164
+ readonly name: "stage";
165
+ readonly type: "uint8";
134
166
  }];
135
- readonly name: "OwnableUnauthorizedAccount";
167
+ readonly name: "ValidatorNotActivated";
136
168
  readonly type: "error";
137
169
  }, {
138
- readonly inputs: readonly [];
139
- readonly name: "RenouncementNotAllowed";
170
+ readonly inputs: readonly [{
171
+ readonly internalType: "bytes";
172
+ readonly name: "validatorPubkey";
173
+ readonly type: "bytes";
174
+ }];
175
+ readonly name: "ValidatorNotEligibleForActivation";
140
176
  readonly type: "error";
141
177
  }, {
142
178
  readonly inputs: readonly [{
143
- readonly internalType: "address";
144
- readonly name: "token";
145
- readonly type: "address";
179
+ readonly internalType: "bytes";
180
+ readonly name: "validatorPubkey";
181
+ readonly type: "bytes";
182
+ }, {
183
+ readonly internalType: "enum IPredepositGuarantee.ValidatorStage";
184
+ readonly name: "stage";
185
+ readonly type: "uint8";
146
186
  }];
147
- readonly name: "SafeERC20FailedOperation";
187
+ readonly name: "ValidatorNotNew";
148
188
  readonly type: "error";
149
189
  }, {
150
- readonly inputs: readonly [];
151
- readonly name: "SenderNotDepositor";
190
+ readonly inputs: readonly [{
191
+ readonly internalType: "bytes";
192
+ readonly name: "validatorPubkey";
193
+ readonly type: "bytes";
194
+ }, {
195
+ readonly internalType: "enum IPredepositGuarantee.ValidatorStage";
196
+ readonly name: "stage";
197
+ readonly type: "uint8";
198
+ }];
199
+ readonly name: "ValidatorNotPreDeposited";
152
200
  readonly type: "error";
153
201
  }, {
154
- readonly inputs: readonly [];
155
- readonly name: "SenderNotNodeOperator";
202
+ readonly inputs: readonly [{
203
+ readonly internalType: "bytes";
204
+ readonly name: "validatorPubkey";
205
+ readonly type: "bytes";
206
+ }, {
207
+ readonly internalType: "enum IPredepositGuarantee.ValidatorStage";
208
+ readonly name: "stage";
209
+ readonly type: "uint8";
210
+ }];
211
+ readonly name: "ValidatorNotProven";
156
212
  readonly type: "error";
157
213
  }, {
158
214
  readonly inputs: readonly [{
159
- readonly internalType: "address";
160
- readonly name: "recipient";
161
- readonly type: "address";
162
- }, {
163
215
  readonly internalType: "uint256";
164
- readonly name: "amount";
216
+ readonly name: "value";
165
217
  readonly type: "uint256";
166
218
  }];
167
- readonly name: "TransferFailed";
219
+ readonly name: "ValueNotMultipleOfPredepositAmount";
168
220
  readonly type: "error";
169
221
  }, {
170
- readonly inputs: readonly [];
171
- readonly name: "WithdrawalFeeInvalidData";
222
+ readonly inputs: readonly [{
223
+ readonly internalType: "uint8";
224
+ readonly name: "version";
225
+ readonly type: "uint8";
226
+ }];
227
+ readonly name: "WithdrawalCredentialsInvalidVersion";
172
228
  readonly type: "error";
173
229
  }, {
174
230
  readonly inputs: readonly [];
175
- readonly name: "WithdrawalFeeReadFailed";
231
+ readonly name: "WithdrawalCredentialsMatch";
176
232
  readonly type: "error";
177
233
  }, {
178
234
  readonly inputs: readonly [{
179
- readonly internalType: "bytes";
180
- readonly name: "callData";
181
- readonly type: "bytes";
235
+ readonly internalType: "bytes32";
236
+ readonly name: "withdrawalCredentials";
237
+ readonly type: "bytes32";
182
238
  }];
183
- readonly name: "WithdrawalRequestAdditionFailed";
239
+ readonly name: "WithdrawalCredentialsMisformed";
184
240
  readonly type: "error";
185
241
  }, {
186
242
  readonly inputs: readonly [{
187
- readonly internalType: "string";
188
- readonly name: "name";
189
- readonly type: "string";
243
+ readonly internalType: "address";
244
+ readonly name: "stakingVault";
245
+ readonly type: "address";
246
+ }, {
247
+ readonly internalType: "address";
248
+ readonly name: "withdrawalCredentialsAddress";
249
+ readonly type: "address";
190
250
  }];
191
- readonly name: "ZeroArgument";
251
+ readonly name: "WithdrawalCredentialsMismatch";
252
+ readonly type: "error";
253
+ }, {
254
+ readonly inputs: readonly [];
255
+ readonly name: "WithdrawalFailed";
192
256
  readonly type: "error";
193
257
  }, {
194
258
  readonly inputs: readonly [{
195
- readonly internalType: "bytes4";
196
- readonly name: "_genesisForkVersion";
197
- readonly type: "bytes4";
198
- }, {
199
- readonly internalType: "GIndex";
200
- readonly name: "_gIFirstValidator";
201
- readonly type: "bytes32";
202
- }, {
203
- readonly internalType: "GIndex";
204
- readonly name: "_gIFirstValidatorAfterChange";
205
- readonly type: "bytes32";
206
- }, {
207
- readonly internalType: "uint64";
208
- readonly name: "_pivotSlot";
209
- readonly type: "uint64";
259
+ readonly internalType: "string";
260
+ readonly name: "argument";
261
+ readonly type: "string";
210
262
  }];
211
- readonly stateMutability: "nonpayable";
212
- readonly type: "constructor";
263
+ readonly name: "ZeroArgument";
264
+ readonly type: "error";
213
265
  }, {
266
+ readonly inputs: readonly [];
267
+ readonly name: "ZeroPauseDuration";
268
+ readonly type: "error";
269
+ }];
270
+ export declare const PredepositGuaranteeAbi: readonly [{
214
271
  readonly inputs: readonly [];
215
272
  readonly name: "AccessControlBadConfirmation";
216
273
  readonly type: "error";
@@ -478,6 +535,218 @@ export declare const PredepositGuaranteeAbi: readonly [{
478
535
  readonly inputs: readonly [];
479
536
  readonly name: "ZeroPauseDuration";
480
537
  readonly type: "error";
538
+ }, {
539
+ readonly inputs: readonly [];
540
+ readonly name: "AccessControlBadConfirmation";
541
+ readonly type: "error";
542
+ }, {
543
+ readonly inputs: readonly [{
544
+ readonly internalType: "address";
545
+ readonly name: "account";
546
+ readonly type: "address";
547
+ }, {
548
+ readonly internalType: "bytes32";
549
+ readonly name: "neededRole";
550
+ readonly type: "bytes32";
551
+ }];
552
+ readonly name: "AccessControlUnauthorizedAccount";
553
+ readonly type: "error";
554
+ }, {
555
+ readonly inputs: readonly [];
556
+ readonly name: "ConfirmExpiryOutOfBounds";
557
+ readonly type: "error";
558
+ }, {
559
+ readonly inputs: readonly [];
560
+ readonly name: "SenderNotMember";
561
+ readonly type: "error";
562
+ }, {
563
+ readonly inputs: readonly [];
564
+ readonly name: "ZeroConfirmingRoles";
565
+ readonly type: "error";
566
+ }, {
567
+ readonly inputs: readonly [];
568
+ readonly name: "AlreadyOssified";
569
+ readonly type: "error";
570
+ }, {
571
+ readonly inputs: readonly [];
572
+ readonly name: "BeaconChainDepositsAlreadyPaused";
573
+ readonly type: "error";
574
+ }, {
575
+ readonly inputs: readonly [];
576
+ readonly name: "BeaconChainDepositsAlreadyResumed";
577
+ readonly type: "error";
578
+ }, {
579
+ readonly inputs: readonly [];
580
+ readonly name: "BeaconChainDepositsOnPause";
581
+ readonly type: "error";
582
+ }, {
583
+ readonly inputs: readonly [];
584
+ readonly name: "EthCollectionNotAllowed";
585
+ readonly type: "error";
586
+ }, {
587
+ readonly inputs: readonly [{
588
+ readonly internalType: "uint256";
589
+ readonly name: "_balance";
590
+ readonly type: "uint256";
591
+ }, {
592
+ readonly internalType: "uint256";
593
+ readonly name: "_required";
594
+ readonly type: "uint256";
595
+ }];
596
+ readonly name: "InsufficientBalance";
597
+ readonly type: "error";
598
+ }, {
599
+ readonly inputs: readonly [{
600
+ readonly internalType: "uint256";
601
+ readonly name: "_staged";
602
+ readonly type: "uint256";
603
+ }, {
604
+ readonly internalType: "uint256";
605
+ readonly name: "_requested";
606
+ readonly type: "uint256";
607
+ }];
608
+ readonly name: "InsufficientStaged";
609
+ readonly type: "error";
610
+ }, {
611
+ readonly inputs: readonly [{
612
+ readonly internalType: "uint256";
613
+ readonly name: "_passed";
614
+ readonly type: "uint256";
615
+ }, {
616
+ readonly internalType: "uint256";
617
+ readonly name: "_required";
618
+ readonly type: "uint256";
619
+ }];
620
+ readonly name: "InsufficientValidatorWithdrawalFee";
621
+ readonly type: "error";
622
+ }, {
623
+ readonly inputs: readonly [];
624
+ readonly name: "InvalidInitialization";
625
+ readonly type: "error";
626
+ }, {
627
+ readonly inputs: readonly [];
628
+ readonly name: "InvalidPubkeysLength";
629
+ readonly type: "error";
630
+ }, {
631
+ readonly inputs: readonly [];
632
+ readonly name: "MalformedPubkeysArray";
633
+ readonly type: "error";
634
+ }, {
635
+ readonly inputs: readonly [{
636
+ readonly internalType: "uint256";
637
+ readonly name: "keysCount";
638
+ readonly type: "uint256";
639
+ }, {
640
+ readonly internalType: "uint256";
641
+ readonly name: "amountsCount";
642
+ readonly type: "uint256";
643
+ }];
644
+ readonly name: "MismatchedArrayLengths";
645
+ readonly type: "error";
646
+ }, {
647
+ readonly inputs: readonly [];
648
+ readonly name: "NewDepositorSameAsPrevious";
649
+ readonly type: "error";
650
+ }, {
651
+ readonly inputs: readonly [];
652
+ readonly name: "NoWithdrawalRequests";
653
+ readonly type: "error";
654
+ }, {
655
+ readonly inputs: readonly [];
656
+ readonly name: "NotInitializing";
657
+ readonly type: "error";
658
+ }, {
659
+ readonly inputs: readonly [{
660
+ readonly internalType: "address";
661
+ readonly name: "owner";
662
+ readonly type: "address";
663
+ }];
664
+ readonly name: "OwnableInvalidOwner";
665
+ readonly type: "error";
666
+ }, {
667
+ readonly inputs: readonly [{
668
+ readonly internalType: "address";
669
+ readonly name: "account";
670
+ readonly type: "address";
671
+ }];
672
+ readonly name: "OwnableUnauthorizedAccount";
673
+ readonly type: "error";
674
+ }, {
675
+ readonly inputs: readonly [];
676
+ readonly name: "RenouncementNotAllowed";
677
+ readonly type: "error";
678
+ }, {
679
+ readonly inputs: readonly [{
680
+ readonly internalType: "address";
681
+ readonly name: "token";
682
+ readonly type: "address";
683
+ }];
684
+ readonly name: "SafeERC20FailedOperation";
685
+ readonly type: "error";
686
+ }, {
687
+ readonly inputs: readonly [];
688
+ readonly name: "SenderNotDepositor";
689
+ readonly type: "error";
690
+ }, {
691
+ readonly inputs: readonly [];
692
+ readonly name: "SenderNotNodeOperator";
693
+ readonly type: "error";
694
+ }, {
695
+ readonly inputs: readonly [{
696
+ readonly internalType: "address";
697
+ readonly name: "recipient";
698
+ readonly type: "address";
699
+ }, {
700
+ readonly internalType: "uint256";
701
+ readonly name: "amount";
702
+ readonly type: "uint256";
703
+ }];
704
+ readonly name: "TransferFailed";
705
+ readonly type: "error";
706
+ }, {
707
+ readonly inputs: readonly [];
708
+ readonly name: "WithdrawalFeeInvalidData";
709
+ readonly type: "error";
710
+ }, {
711
+ readonly inputs: readonly [];
712
+ readonly name: "WithdrawalFeeReadFailed";
713
+ readonly type: "error";
714
+ }, {
715
+ readonly inputs: readonly [{
716
+ readonly internalType: "bytes";
717
+ readonly name: "callData";
718
+ readonly type: "bytes";
719
+ }];
720
+ readonly name: "WithdrawalRequestAdditionFailed";
721
+ readonly type: "error";
722
+ }, {
723
+ readonly inputs: readonly [{
724
+ readonly internalType: "string";
725
+ readonly name: "name";
726
+ readonly type: "string";
727
+ }];
728
+ readonly name: "ZeroArgument";
729
+ readonly type: "error";
730
+ }, {
731
+ readonly inputs: readonly [{
732
+ readonly internalType: "bytes4";
733
+ readonly name: "_genesisForkVersion";
734
+ readonly type: "bytes4";
735
+ }, {
736
+ readonly internalType: "GIndex";
737
+ readonly name: "_gIFirstValidator";
738
+ readonly type: "bytes32";
739
+ }, {
740
+ readonly internalType: "GIndex";
741
+ readonly name: "_gIFirstValidatorAfterChange";
742
+ readonly type: "bytes32";
743
+ }, {
744
+ readonly internalType: "uint64";
745
+ readonly name: "_pivotSlot";
746
+ readonly type: "uint64";
747
+ }];
748
+ readonly stateMutability: "nonpayable";
749
+ readonly type: "constructor";
481
750
  }, {
482
751
  readonly anonymous: false;
483
752
  readonly inputs: readonly [{
@@ -1,32 +1,5 @@
1
1
  import { StakingVaultErrorsAbi } from './StakingVault.js';
2
- export const PredepositGuaranteeAbi = [
3
- ...StakingVaultErrorsAbi,
4
- {
5
- inputs: [
6
- {
7
- internalType: 'bytes4',
8
- name: '_genesisForkVersion',
9
- type: 'bytes4',
10
- },
11
- {
12
- internalType: 'GIndex',
13
- name: '_gIFirstValidator',
14
- type: 'bytes32',
15
- },
16
- {
17
- internalType: 'GIndex',
18
- name: '_gIFirstValidatorAfterChange',
19
- type: 'bytes32',
20
- },
21
- {
22
- internalType: 'uint64',
23
- name: '_pivotSlot',
24
- type: 'uint64',
25
- },
26
- ],
27
- stateMutability: 'nonpayable',
28
- type: 'constructor',
29
- },
2
+ export const PredepositGuaranteeErrorsAbi = [
30
3
  {
31
4
  inputs: [],
32
5
  name: 'AccessControlBadConfirmation',
@@ -378,6 +351,36 @@ export const PredepositGuaranteeAbi = [
378
351
  name: 'ZeroPauseDuration',
379
352
  type: 'error',
380
353
  },
354
+ ];
355
+ export const PredepositGuaranteeAbi = [
356
+ ...PredepositGuaranteeErrorsAbi,
357
+ ...StakingVaultErrorsAbi,
358
+ {
359
+ inputs: [
360
+ {
361
+ internalType: 'bytes4',
362
+ name: '_genesisForkVersion',
363
+ type: 'bytes4',
364
+ },
365
+ {
366
+ internalType: 'GIndex',
367
+ name: '_gIFirstValidator',
368
+ type: 'bytes32',
369
+ },
370
+ {
371
+ internalType: 'GIndex',
372
+ name: '_gIFirstValidatorAfterChange',
373
+ type: 'bytes32',
374
+ },
375
+ {
376
+ internalType: 'uint64',
377
+ name: '_pivotSlot',
378
+ type: 'uint64',
379
+ },
380
+ ],
381
+ stateMutability: 'nonpayable',
382
+ type: 'constructor',
383
+ },
381
384
  {
382
385
  anonymous: false,
383
386
  inputs: [