@lidofinance/lsv-cli 1.7.0 → 1.8.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 (182) hide show
  1. package/dist/abi/defi-wrapper/GenericStrategy.d.ts +308 -0
  2. package/dist/abi/defi-wrapper/GenericStrategy.js +409 -0
  3. package/dist/abi/defi-wrapper/GenericStrategy.js.map +1 -0
  4. package/dist/abi/defi-wrapper/index.d.ts +1 -0
  5. package/dist/abi/defi-wrapper/index.js +1 -0
  6. package/dist/abi/defi-wrapper/index.js.map +1 -1
  7. package/dist/abi/defi-wrapper/sources.d.ts +103 -0
  8. package/dist/abi/defi-wrapper/sources.js +104 -0
  9. package/dist/abi/defi-wrapper/sources.js.map +1 -0
  10. package/dist/configs/deployed.d.ts +5 -0
  11. package/dist/configs/deployed.js +20 -2
  12. package/dist/configs/deployed.js.map +1 -1
  13. package/dist/configs/envs.js +2 -0
  14. package/dist/configs/envs.js.map +1 -1
  15. package/dist/contracts/defi-wrapper/generic-strategy.d.ts +5 -0
  16. package/dist/contracts/defi-wrapper/generic-strategy.js +12 -0
  17. package/dist/contracts/defi-wrapper/generic-strategy.js.map +1 -0
  18. package/dist/contracts/defi-wrapper/index.d.ts +1 -0
  19. package/dist/contracts/defi-wrapper/index.js +1 -0
  20. package/dist/contracts/defi-wrapper/index.js.map +1 -1
  21. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +3 -0
  22. package/dist/features/defi-wrapper/defi-wrapper-factory.js +4 -1
  23. package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
  24. package/dist/features/defi-wrapper/index.d.ts +1 -0
  25. package/dist/features/defi-wrapper/index.js +1 -0
  26. package/dist/features/defi-wrapper/index.js.map +1 -1
  27. package/dist/features/defi-wrapper/pool-info.d.ts +18 -1
  28. package/dist/features/defi-wrapper/pool-info.js +47 -3
  29. package/dist/features/defi-wrapper/pool-info.js.map +1 -1
  30. package/dist/features/defi-wrapper/timelock-roles.d.ts +5 -0
  31. package/dist/features/defi-wrapper/timelock-roles.js +43 -0
  32. package/dist/features/defi-wrapper/timelock-roles.js.map +1 -0
  33. package/dist/features/defi-wrapper/timelock.d.ts +1 -6
  34. package/dist/features/defi-wrapper/timelock.js +2 -45
  35. package/dist/features/defi-wrapper/timelock.js.map +1 -1
  36. package/dist/features/defi-wrapper/verify-contracts.d.ts +20 -0
  37. package/dist/features/defi-wrapper/verify-contracts.js +145 -0
  38. package/dist/features/defi-wrapper/verify-contracts.js.map +1 -0
  39. package/dist/features/utils/try-fetch.js +2 -0
  40. package/dist/features/utils/try-fetch.js.map +1 -1
  41. package/dist/programs/account/write.js +2 -1
  42. package/dist/programs/account/write.js.map +1 -1
  43. package/dist/programs/defi-wrapper/contracts/factory/write.js +77 -6
  44. package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
  45. package/dist/programs/defi-wrapper/contracts/index.d.ts +1 -0
  46. package/dist/programs/defi-wrapper/contracts/index.js +1 -0
  47. package/dist/programs/defi-wrapper/contracts/index.js.map +1 -1
  48. package/dist/programs/defi-wrapper/contracts/strategy/config.d.ts +3 -0
  49. package/dist/programs/defi-wrapper/contracts/strategy/config.js +40 -0
  50. package/dist/programs/defi-wrapper/contracts/strategy/config.js.map +1 -0
  51. package/dist/programs/defi-wrapper/contracts/strategy/index.d.ts +3 -0
  52. package/dist/programs/defi-wrapper/contracts/strategy/index.js +4 -0
  53. package/dist/programs/defi-wrapper/contracts/strategy/index.js.map +1 -0
  54. package/dist/programs/defi-wrapper/contracts/strategy/main.d.ts +1 -0
  55. package/dist/programs/defi-wrapper/contracts/strategy/main.js +6 -0
  56. package/dist/programs/defi-wrapper/contracts/strategy/main.js.map +1 -0
  57. package/dist/programs/defi-wrapper/contracts/strategy/read.d.ts +1 -0
  58. package/dist/programs/defi-wrapper/contracts/strategy/read.js +30 -0
  59. package/dist/programs/defi-wrapper/contracts/strategy/read.js.map +1 -0
  60. package/dist/programs/defi-wrapper/contracts/strategy/write.d.ts +1 -0
  61. package/dist/programs/defi-wrapper/contracts/strategy/write.js +34 -0
  62. package/dist/programs/defi-wrapper/contracts/strategy/write.js.map +1 -0
  63. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +25 -21
  64. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
  65. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +3 -4
  66. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
  67. package/dist/programs/defi-wrapper/use-cases/distributor/write.js +1 -0
  68. package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -1
  69. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +3 -3
  70. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -1
  71. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +3 -3
  72. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -1
  73. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +3 -3
  74. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js.map +1 -1
  75. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.d.ts +1 -0
  76. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js +1 -0
  77. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js.map +1 -1
  78. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +4 -4
  79. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js.map +1 -1
  80. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +3 -3
  81. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js.map +1 -1
  82. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.d.ts +2 -0
  83. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js +3 -0
  84. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js.map +1 -0
  85. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.d.ts +1 -0
  86. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js +6 -0
  87. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js.map +1 -0
  88. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.d.ts +1 -0
  89. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js +57 -0
  90. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js.map +1 -0
  91. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +4 -4
  92. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js.map +1 -1
  93. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +32 -11
  94. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
  95. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +14 -12
  96. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
  97. package/dist/programs/use-cases/consolidation/write.js +2 -0
  98. package/dist/programs/use-cases/consolidation/write.js.map +1 -1
  99. package/dist/providers/wallet.d.ts +88 -72
  100. package/dist/providers/wallet.js +74 -2
  101. package/dist/providers/wallet.js.map +1 -1
  102. package/dist/tests/integration/gas-estimation.test.d.ts +1 -0
  103. package/dist/tests/integration/gas-estimation.test.js +76 -0
  104. package/dist/tests/integration/gas-estimation.test.js.map +1 -0
  105. package/dist/tests/integration/helpers/test-client.d.ts +52 -52
  106. package/dist/tests/utils/arguments-security.test.d.ts +1 -0
  107. package/dist/tests/utils/arguments-security.test.js +34 -0
  108. package/dist/tests/utils/arguments-security.test.js.map +1 -0
  109. package/dist/tests/utils/arguments.test.js +2 -20
  110. package/dist/tests/utils/arguments.test.js.map +1 -1
  111. package/dist/tests/utils/cache-security.test.d.ts +1 -0
  112. package/dist/tests/utils/cache-security.test.js +62 -0
  113. package/dist/tests/utils/cache-security.test.js.map +1 -0
  114. package/dist/tests/utils/contract-write-stateoverride.test.d.ts +1 -0
  115. package/dist/tests/utils/contract-write-stateoverride.test.js +135 -0
  116. package/dist/tests/utils/contract-write-stateoverride.test.js.map +1 -0
  117. package/dist/tests/utils/data-validators.test.js +21 -5
  118. package/dist/tests/utils/data-validators.test.js.map +1 -1
  119. package/dist/tests/utils/deployed-security.test.d.ts +1 -0
  120. package/dist/tests/utils/deployed-security.test.js +51 -0
  121. package/dist/tests/utils/deployed-security.test.js.map +1 -0
  122. package/dist/tests/utils/get-confirmations.test.d.ts +1 -0
  123. package/dist/tests/utils/get-confirmations.test.js +40 -0
  124. package/dist/tests/utils/get-confirmations.test.js.map +1 -0
  125. package/dist/tests/utils/ipfs-security.test.d.ts +1 -0
  126. package/dist/tests/utils/ipfs-security.test.js +105 -0
  127. package/dist/tests/utils/ipfs-security.test.js.map +1 -0
  128. package/dist/tests/utils/public-client-gas-estimation.test.d.ts +1 -0
  129. package/dist/tests/utils/public-client-gas-estimation.test.js +231 -0
  130. package/dist/tests/utils/public-client-gas-estimation.test.js.map +1 -0
  131. package/dist/tests/utils/rate-limit-security.test.d.ts +1 -0
  132. package/dist/tests/utils/rate-limit-security.test.js +82 -0
  133. package/dist/tests/utils/rate-limit-security.test.js.map +1 -0
  134. package/dist/tests/utils/salt.test.d.ts +1 -0
  135. package/dist/tests/utils/salt.test.js +20 -0
  136. package/dist/tests/utils/salt.test.js.map +1 -0
  137. package/dist/utils/arguments.d.ts +2 -7
  138. package/dist/utils/arguments.js +21 -17
  139. package/dist/utils/arguments.js.map +1 -1
  140. package/dist/utils/cache.js +15 -13
  141. package/dist/utils/cache.js.map +1 -1
  142. package/dist/utils/data-validators.d.ts +3 -2
  143. package/dist/utils/data-validators.js +8 -11
  144. package/dist/utils/data-validators.js.map +1 -1
  145. package/dist/utils/fetch-cl.js +2 -1
  146. package/dist/utils/fetch-cl.js.map +1 -1
  147. package/dist/utils/index.d.ts +6 -5
  148. package/dist/utils/index.js +6 -5
  149. package/dist/utils/index.js.map +1 -1
  150. package/dist/utils/ipfs.js +18 -1
  151. package/dist/utils/ipfs.js.map +1 -1
  152. package/dist/utils/logging/console.d.ts +1 -0
  153. package/dist/utils/logging/console.js +23 -2
  154. package/dist/utils/logging/console.js.map +1 -1
  155. package/dist/utils/prompts/account.d.ts +1 -0
  156. package/dist/utils/prompts/account.js +13 -0
  157. package/dist/utils/prompts/account.js.map +1 -0
  158. package/dist/utils/prompts/index.d.ts +3 -0
  159. package/dist/utils/prompts/index.js +3 -0
  160. package/dist/utils/prompts/index.js.map +1 -1
  161. package/dist/utils/prompts/strategy.d.ts +15398 -0
  162. package/dist/utils/prompts/strategy.js +10 -0
  163. package/dist/utils/prompts/strategy.js.map +1 -0
  164. package/dist/utils/prompts/timelock-roles.d.ts +1 -0
  165. package/dist/utils/prompts/timelock-roles.js +13 -0
  166. package/dist/utils/prompts/timelock-roles.js.map +1 -0
  167. package/dist/utils/rate-limit.d.ts +6 -9
  168. package/dist/utils/rate-limit.js +27 -5
  169. package/dist/utils/rate-limit.js.map +1 -1
  170. package/dist/utils/salt.d.ts +3 -0
  171. package/dist/utils/salt.js +8 -0
  172. package/dist/utils/salt.js.map +1 -0
  173. package/dist/utils/transactions/tx-private-key.d.ts +2 -1
  174. package/dist/utils/transactions/tx-private-key.js +5 -8
  175. package/dist/utils/transactions/tx-private-key.js.map +1 -1
  176. package/dist/utils/transactions/tx-wc.js +3 -7
  177. package/dist/utils/transactions/tx-wc.js.map +1 -1
  178. package/dist/utils/transactions/utils.d.ts +1 -0
  179. package/dist/utils/transactions/utils.js +12 -0
  180. package/dist/utils/transactions/utils.js.map +1 -1
  181. package/dist/version/index.js +1 -1
  182. package/package.json +3 -2
@@ -0,0 +1,308 @@
1
+ export declare const GenericStrategyAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "ALLOW_LIST_ENABLED";
4
+ readonly inputs: readonly [];
5
+ readonly outputs: readonly [{
6
+ readonly name: "";
7
+ readonly type: "bool";
8
+ readonly internalType: "bool";
9
+ }];
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "isAllowListed";
14
+ readonly inputs: readonly [{
15
+ readonly name: "_user";
16
+ readonly type: "address";
17
+ readonly internalType: "address";
18
+ }];
19
+ readonly outputs: readonly [{
20
+ readonly name: "";
21
+ readonly type: "bool";
22
+ readonly internalType: "bool";
23
+ }];
24
+ readonly stateMutability: "view";
25
+ }, {
26
+ readonly type: "function";
27
+ readonly name: "safeTransferERC20";
28
+ readonly inputs: readonly [{
29
+ readonly name: "_token";
30
+ readonly type: "address";
31
+ readonly internalType: "address";
32
+ }, {
33
+ readonly name: "_recipient";
34
+ readonly type: "address";
35
+ readonly internalType: "address";
36
+ }, {
37
+ readonly name: "_amount";
38
+ readonly type: "uint256";
39
+ readonly internalType: "uint256";
40
+ }];
41
+ readonly outputs: readonly [];
42
+ readonly stateMutability: "nonpayable";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly name: "STRATEGY_ID";
46
+ readonly inputs: readonly [];
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly type: "bytes32";
50
+ readonly internalType: "bytes32";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly name: "WSTETH";
56
+ readonly inputs: readonly [];
57
+ readonly outputs: readonly [{
58
+ readonly name: "";
59
+ readonly type: "address";
60
+ readonly internalType: "contract IWstETH";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ }, {
64
+ readonly type: "function";
65
+ readonly name: "burnWsteth";
66
+ readonly inputs: readonly [{
67
+ readonly name: "_wstethToBurn";
68
+ readonly type: "uint256";
69
+ readonly internalType: "uint256";
70
+ }];
71
+ readonly outputs: readonly [];
72
+ readonly stateMutability: "nonpayable";
73
+ }, {
74
+ readonly type: "function";
75
+ readonly name: "mintedStethSharesOf";
76
+ readonly inputs: readonly [{
77
+ readonly name: "_user";
78
+ readonly type: "address";
79
+ readonly internalType: "address";
80
+ }];
81
+ readonly outputs: readonly [{
82
+ readonly name: "mintedStethShares";
83
+ readonly type: "uint256";
84
+ readonly internalType: "uint256";
85
+ }];
86
+ readonly stateMutability: "view";
87
+ }, {
88
+ readonly type: "function";
89
+ readonly name: "requestWithdrawalFromPool";
90
+ readonly inputs: readonly [{
91
+ readonly name: "_recipient";
92
+ readonly type: "address";
93
+ readonly internalType: "address";
94
+ }, {
95
+ readonly name: "_stvToWithdraw";
96
+ readonly type: "uint256";
97
+ readonly internalType: "uint256";
98
+ }, {
99
+ readonly name: "_stethSharesToRebalance";
100
+ readonly type: "uint256";
101
+ readonly internalType: "uint256";
102
+ }];
103
+ readonly outputs: readonly [{
104
+ readonly name: "requestId";
105
+ readonly type: "uint256";
106
+ readonly internalType: "uint256";
107
+ }];
108
+ readonly stateMutability: "nonpayable";
109
+ }, {
110
+ readonly type: "function";
111
+ readonly name: "supply";
112
+ readonly inputs: readonly [{
113
+ readonly name: "_referral";
114
+ readonly type: "address";
115
+ readonly internalType: "address";
116
+ }, {
117
+ readonly name: "_wstethToMint";
118
+ readonly type: "uint256";
119
+ readonly internalType: "uint256";
120
+ }, {
121
+ readonly name: "_params";
122
+ readonly type: "bytes";
123
+ readonly internalType: "bytes";
124
+ }];
125
+ readonly outputs: readonly [{
126
+ readonly name: "stv";
127
+ readonly type: "uint256";
128
+ readonly internalType: "uint256";
129
+ }];
130
+ readonly stateMutability: "payable";
131
+ }, {
132
+ readonly type: "function";
133
+ readonly name: "wstethOf";
134
+ readonly inputs: readonly [{
135
+ readonly name: "_user";
136
+ readonly type: "address";
137
+ readonly internalType: "address";
138
+ }];
139
+ readonly outputs: readonly [{
140
+ readonly name: "";
141
+ readonly type: "uint256";
142
+ readonly internalType: "uint256";
143
+ }];
144
+ readonly stateMutability: "view";
145
+ }, {
146
+ readonly type: "function";
147
+ readonly name: "getStrategyCallForwarderAddress";
148
+ readonly inputs: readonly [{
149
+ readonly name: "_user";
150
+ readonly type: "address";
151
+ readonly internalType: "address";
152
+ }];
153
+ readonly outputs: readonly [{
154
+ readonly name: "callForwarder";
155
+ readonly type: "address";
156
+ readonly internalType: "contract IStrategyCallForwarder";
157
+ }];
158
+ readonly stateMutability: "view";
159
+ }, {
160
+ readonly type: "error";
161
+ readonly name: "ZeroArgument";
162
+ readonly inputs: readonly [{
163
+ readonly name: "name";
164
+ readonly type: "string";
165
+ readonly internalType: "string";
166
+ }];
167
+ }, {
168
+ readonly inputs: readonly [];
169
+ readonly name: "DEFAULT_ADMIN_ROLE";
170
+ readonly outputs: readonly [{
171
+ readonly internalType: "bytes32";
172
+ readonly name: "";
173
+ readonly type: "bytes32";
174
+ }];
175
+ readonly stateMutability: "view";
176
+ readonly type: "function";
177
+ }, {
178
+ readonly type: "function";
179
+ readonly name: "ALLOW_LIST_MANAGER_ROLE";
180
+ readonly inputs: readonly [];
181
+ readonly outputs: readonly [{
182
+ readonly name: "";
183
+ readonly type: "bytes32";
184
+ readonly internalType: "bytes32";
185
+ }];
186
+ readonly stateMutability: "view";
187
+ }, {
188
+ readonly inputs: readonly [{
189
+ readonly internalType: "bytes32";
190
+ readonly name: "role";
191
+ readonly type: "bytes32";
192
+ }, {
193
+ readonly internalType: "address";
194
+ readonly name: "account";
195
+ readonly type: "address";
196
+ }];
197
+ readonly name: "grantRole";
198
+ readonly outputs: readonly [];
199
+ readonly stateMutability: "nonpayable";
200
+ readonly type: "function";
201
+ }, {
202
+ readonly inputs: readonly [{
203
+ readonly internalType: "bytes32";
204
+ readonly name: "role";
205
+ readonly type: "bytes32";
206
+ }, {
207
+ readonly internalType: "address";
208
+ readonly name: "account";
209
+ readonly type: "address";
210
+ }];
211
+ readonly name: "hasRole";
212
+ readonly outputs: readonly [{
213
+ readonly internalType: "bool";
214
+ readonly name: "";
215
+ readonly type: "bool";
216
+ }];
217
+ readonly stateMutability: "view";
218
+ readonly type: "function";
219
+ }, {
220
+ readonly inputs: readonly [{
221
+ readonly internalType: "bytes32";
222
+ readonly name: "role";
223
+ readonly type: "bytes32";
224
+ }, {
225
+ readonly internalType: "address";
226
+ readonly name: "callerConfirmation";
227
+ readonly type: "address";
228
+ }];
229
+ readonly name: "renounceRole";
230
+ readonly outputs: readonly [];
231
+ readonly stateMutability: "nonpayable";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [{
235
+ readonly internalType: "bytes32";
236
+ readonly name: "role";
237
+ readonly type: "bytes32";
238
+ }, {
239
+ readonly internalType: "address";
240
+ readonly name: "account";
241
+ readonly type: "address";
242
+ }];
243
+ readonly name: "revokeRole";
244
+ readonly outputs: readonly [];
245
+ readonly stateMutability: "nonpayable";
246
+ readonly type: "function";
247
+ }, {
248
+ readonly type: "function";
249
+ readonly name: "getRoleAdmin";
250
+ readonly inputs: readonly [{
251
+ readonly name: "role";
252
+ readonly type: "bytes32";
253
+ readonly internalType: "bytes32";
254
+ }];
255
+ readonly outputs: readonly [{
256
+ readonly name: "";
257
+ readonly type: "bytes32";
258
+ readonly internalType: "bytes32";
259
+ }];
260
+ readonly stateMutability: "view";
261
+ }, {
262
+ readonly type: "function";
263
+ readonly name: "getRoleMember";
264
+ readonly inputs: readonly [{
265
+ readonly name: "role";
266
+ readonly type: "bytes32";
267
+ readonly internalType: "bytes32";
268
+ }, {
269
+ readonly name: "index";
270
+ readonly type: "uint256";
271
+ readonly internalType: "uint256";
272
+ }];
273
+ readonly outputs: readonly [{
274
+ readonly name: "";
275
+ readonly type: "address";
276
+ readonly internalType: "address";
277
+ }];
278
+ readonly stateMutability: "view";
279
+ }, {
280
+ readonly type: "function";
281
+ readonly name: "getRoleMemberCount";
282
+ readonly inputs: readonly [{
283
+ readonly name: "role";
284
+ readonly type: "bytes32";
285
+ readonly internalType: "bytes32";
286
+ }];
287
+ readonly outputs: readonly [{
288
+ readonly name: "";
289
+ readonly type: "uint256";
290
+ readonly internalType: "uint256";
291
+ }];
292
+ readonly stateMutability: "view";
293
+ }, {
294
+ readonly type: "function";
295
+ readonly name: "getRoleMembers";
296
+ readonly inputs: readonly [{
297
+ readonly name: "role";
298
+ readonly type: "bytes32";
299
+ readonly internalType: "bytes32";
300
+ }];
301
+ readonly outputs: readonly [{
302
+ readonly name: "";
303
+ readonly type: "address[]";
304
+ readonly internalType: "address[]";
305
+ }];
306
+ readonly stateMutability: "view";
307
+ }];
308
+ export type GenericStrategyAbiType = typeof GenericStrategyAbi;
@@ -0,0 +1,409 @@
1
+ export const GenericStrategyAbi = [
2
+ {
3
+ type: 'function',
4
+ name: 'ALLOW_LIST_ENABLED',
5
+ inputs: [],
6
+ outputs: [
7
+ {
8
+ name: '',
9
+ type: 'bool',
10
+ internalType: 'bool',
11
+ },
12
+ ],
13
+ stateMutability: 'view',
14
+ },
15
+ {
16
+ type: 'function',
17
+ name: 'isAllowListed',
18
+ inputs: [
19
+ {
20
+ name: '_user',
21
+ type: 'address',
22
+ internalType: 'address',
23
+ },
24
+ ],
25
+ outputs: [
26
+ {
27
+ name: '',
28
+ type: 'bool',
29
+ internalType: 'bool',
30
+ },
31
+ ],
32
+ stateMutability: 'view',
33
+ },
34
+ {
35
+ type: 'function',
36
+ name: 'safeTransferERC20',
37
+ inputs: [
38
+ {
39
+ name: '_token',
40
+ type: 'address',
41
+ internalType: 'address',
42
+ },
43
+ {
44
+ name: '_recipient',
45
+ type: 'address',
46
+ internalType: 'address',
47
+ },
48
+ {
49
+ name: '_amount',
50
+ type: 'uint256',
51
+ internalType: 'uint256',
52
+ },
53
+ ],
54
+ outputs: [],
55
+ stateMutability: 'nonpayable',
56
+ },
57
+ {
58
+ type: 'function',
59
+ name: 'STRATEGY_ID',
60
+ inputs: [],
61
+ outputs: [
62
+ {
63
+ name: '',
64
+ type: 'bytes32',
65
+ internalType: 'bytes32',
66
+ },
67
+ ],
68
+ stateMutability: 'view',
69
+ },
70
+ {
71
+ type: 'function',
72
+ name: 'WSTETH',
73
+ inputs: [],
74
+ outputs: [
75
+ {
76
+ name: '',
77
+ type: 'address',
78
+ internalType: 'contract IWstETH',
79
+ },
80
+ ],
81
+ stateMutability: 'view',
82
+ },
83
+ {
84
+ type: 'function',
85
+ name: 'burnWsteth',
86
+ inputs: [
87
+ {
88
+ name: '_wstethToBurn',
89
+ type: 'uint256',
90
+ internalType: 'uint256',
91
+ },
92
+ ],
93
+ outputs: [],
94
+ stateMutability: 'nonpayable',
95
+ },
96
+ {
97
+ type: 'function',
98
+ name: 'mintedStethSharesOf',
99
+ inputs: [
100
+ {
101
+ name: '_user',
102
+ type: 'address',
103
+ internalType: 'address',
104
+ },
105
+ ],
106
+ outputs: [
107
+ {
108
+ name: 'mintedStethShares',
109
+ type: 'uint256',
110
+ internalType: 'uint256',
111
+ },
112
+ ],
113
+ stateMutability: 'view',
114
+ },
115
+ {
116
+ type: 'function',
117
+ name: 'requestWithdrawalFromPool',
118
+ inputs: [
119
+ {
120
+ name: '_recipient',
121
+ type: 'address',
122
+ internalType: 'address',
123
+ },
124
+ {
125
+ name: '_stvToWithdraw',
126
+ type: 'uint256',
127
+ internalType: 'uint256',
128
+ },
129
+ {
130
+ name: '_stethSharesToRebalance',
131
+ type: 'uint256',
132
+ internalType: 'uint256',
133
+ },
134
+ ],
135
+ outputs: [
136
+ {
137
+ name: 'requestId',
138
+ type: 'uint256',
139
+ internalType: 'uint256',
140
+ },
141
+ ],
142
+ stateMutability: 'nonpayable',
143
+ },
144
+ {
145
+ type: 'function',
146
+ name: 'supply',
147
+ inputs: [
148
+ {
149
+ name: '_referral',
150
+ type: 'address',
151
+ internalType: 'address',
152
+ },
153
+ {
154
+ name: '_wstethToMint',
155
+ type: 'uint256',
156
+ internalType: 'uint256',
157
+ },
158
+ {
159
+ name: '_params',
160
+ type: 'bytes',
161
+ internalType: 'bytes',
162
+ },
163
+ ],
164
+ outputs: [
165
+ {
166
+ name: 'stv',
167
+ type: 'uint256',
168
+ internalType: 'uint256',
169
+ },
170
+ ],
171
+ stateMutability: 'payable',
172
+ },
173
+ {
174
+ type: 'function',
175
+ name: 'wstethOf',
176
+ inputs: [
177
+ {
178
+ name: '_user',
179
+ type: 'address',
180
+ internalType: 'address',
181
+ },
182
+ ],
183
+ outputs: [
184
+ {
185
+ name: '',
186
+ type: 'uint256',
187
+ internalType: 'uint256',
188
+ },
189
+ ],
190
+ stateMutability: 'view',
191
+ },
192
+ {
193
+ type: 'function',
194
+ name: 'getStrategyCallForwarderAddress',
195
+ inputs: [
196
+ {
197
+ name: '_user',
198
+ type: 'address',
199
+ internalType: 'address',
200
+ },
201
+ ],
202
+ outputs: [
203
+ {
204
+ name: 'callForwarder',
205
+ type: 'address',
206
+ internalType: 'contract IStrategyCallForwarder',
207
+ },
208
+ ],
209
+ stateMutability: 'view',
210
+ },
211
+ {
212
+ type: 'error',
213
+ name: 'ZeroArgument',
214
+ inputs: [
215
+ {
216
+ name: 'name',
217
+ type: 'string',
218
+ internalType: 'string',
219
+ },
220
+ ],
221
+ },
222
+ //ACL
223
+ {
224
+ inputs: [],
225
+ name: 'DEFAULT_ADMIN_ROLE',
226
+ outputs: [
227
+ {
228
+ internalType: 'bytes32',
229
+ name: '',
230
+ type: 'bytes32',
231
+ },
232
+ ],
233
+ stateMutability: 'view',
234
+ type: 'function',
235
+ },
236
+ {
237
+ type: 'function',
238
+ name: 'ALLOW_LIST_MANAGER_ROLE',
239
+ inputs: [],
240
+ outputs: [
241
+ {
242
+ name: '',
243
+ type: 'bytes32',
244
+ internalType: 'bytes32',
245
+ },
246
+ ],
247
+ stateMutability: 'view',
248
+ },
249
+ {
250
+ inputs: [
251
+ {
252
+ internalType: 'bytes32',
253
+ name: 'role',
254
+ type: 'bytes32',
255
+ },
256
+ {
257
+ internalType: 'address',
258
+ name: 'account',
259
+ type: 'address',
260
+ },
261
+ ],
262
+ name: 'grantRole',
263
+ outputs: [],
264
+ stateMutability: 'nonpayable',
265
+ type: 'function',
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: 'bytes32',
271
+ name: 'role',
272
+ type: 'bytes32',
273
+ },
274
+ {
275
+ internalType: 'address',
276
+ name: 'account',
277
+ type: 'address',
278
+ },
279
+ ],
280
+ name: 'hasRole',
281
+ outputs: [
282
+ {
283
+ internalType: 'bool',
284
+ name: '',
285
+ type: 'bool',
286
+ },
287
+ ],
288
+ stateMutability: 'view',
289
+ type: 'function',
290
+ },
291
+ {
292
+ inputs: [
293
+ {
294
+ internalType: 'bytes32',
295
+ name: 'role',
296
+ type: 'bytes32',
297
+ },
298
+ {
299
+ internalType: 'address',
300
+ name: 'callerConfirmation',
301
+ type: 'address',
302
+ },
303
+ ],
304
+ name: 'renounceRole',
305
+ outputs: [],
306
+ stateMutability: 'nonpayable',
307
+ type: 'function',
308
+ },
309
+ {
310
+ inputs: [
311
+ {
312
+ internalType: 'bytes32',
313
+ name: 'role',
314
+ type: 'bytes32',
315
+ },
316
+ {
317
+ internalType: 'address',
318
+ name: 'account',
319
+ type: 'address',
320
+ },
321
+ ],
322
+ name: 'revokeRole',
323
+ outputs: [],
324
+ stateMutability: 'nonpayable',
325
+ type: 'function',
326
+ },
327
+ {
328
+ type: 'function',
329
+ name: 'getRoleAdmin',
330
+ inputs: [
331
+ {
332
+ name: 'role',
333
+ type: 'bytes32',
334
+ internalType: 'bytes32',
335
+ },
336
+ ],
337
+ outputs: [
338
+ {
339
+ name: '',
340
+ type: 'bytes32',
341
+ internalType: 'bytes32',
342
+ },
343
+ ],
344
+ stateMutability: 'view',
345
+ },
346
+ {
347
+ type: 'function',
348
+ name: 'getRoleMember',
349
+ inputs: [
350
+ {
351
+ name: 'role',
352
+ type: 'bytes32',
353
+ internalType: 'bytes32',
354
+ },
355
+ {
356
+ name: 'index',
357
+ type: 'uint256',
358
+ internalType: 'uint256',
359
+ },
360
+ ],
361
+ outputs: [
362
+ {
363
+ name: '',
364
+ type: 'address',
365
+ internalType: 'address',
366
+ },
367
+ ],
368
+ stateMutability: 'view',
369
+ },
370
+ {
371
+ type: 'function',
372
+ name: 'getRoleMemberCount',
373
+ inputs: [
374
+ {
375
+ name: 'role',
376
+ type: 'bytes32',
377
+ internalType: 'bytes32',
378
+ },
379
+ ],
380
+ outputs: [
381
+ {
382
+ name: '',
383
+ type: 'uint256',
384
+ internalType: 'uint256',
385
+ },
386
+ ],
387
+ stateMutability: 'view',
388
+ },
389
+ {
390
+ type: 'function',
391
+ name: 'getRoleMembers',
392
+ inputs: [
393
+ {
394
+ name: 'role',
395
+ type: 'bytes32',
396
+ internalType: 'bytes32',
397
+ },
398
+ ],
399
+ outputs: [
400
+ {
401
+ name: '',
402
+ type: 'address[]',
403
+ internalType: 'address[]',
404
+ },
405
+ ],
406
+ stateMutability: 'view',
407
+ },
408
+ ];
409
+ //# sourceMappingURL=GenericStrategy.js.map