@lidofinance/lsv-cli 1.7.0 → 1.9.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 (202) hide show
  1. package/README.md +9 -1
  2. package/dist/abi/defi-wrapper/GenericStrategy.d.ts +308 -0
  3. package/dist/abi/defi-wrapper/GenericStrategy.js +409 -0
  4. package/dist/abi/defi-wrapper/GenericStrategy.js.map +1 -0
  5. package/dist/abi/defi-wrapper/MellowStrategy.d.ts +429 -0
  6. package/dist/abi/defi-wrapper/MellowStrategy.js +892 -0
  7. package/dist/abi/defi-wrapper/MellowStrategy.js.map +1 -0
  8. package/dist/abi/defi-wrapper/index.d.ts +2 -0
  9. package/dist/abi/defi-wrapper/index.js +2 -0
  10. package/dist/abi/defi-wrapper/index.js.map +1 -1
  11. package/dist/abi/defi-wrapper/sources.d.ts +103 -0
  12. package/dist/abi/defi-wrapper/sources.js +104 -0
  13. package/dist/abi/defi-wrapper/sources.js.map +1 -0
  14. package/dist/configs/constants.d.ts +7 -1
  15. package/dist/configs/deployed.d.ts +5 -0
  16. package/dist/configs/deployed.js +20 -2
  17. package/dist/configs/deployed.js.map +1 -1
  18. package/dist/configs/envs.js +2 -0
  19. package/dist/configs/envs.js.map +1 -1
  20. package/dist/contracts/defi-wrapper/generic-strategy.d.ts +5 -0
  21. package/dist/contracts/defi-wrapper/generic-strategy.js +12 -0
  22. package/dist/contracts/defi-wrapper/generic-strategy.js.map +1 -0
  23. package/dist/contracts/defi-wrapper/index.d.ts +1 -0
  24. package/dist/contracts/defi-wrapper/index.js +1 -0
  25. package/dist/contracts/defi-wrapper/index.js.map +1 -1
  26. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +3 -0
  27. package/dist/features/defi-wrapper/defi-wrapper-factory.js +4 -1
  28. package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
  29. package/dist/features/defi-wrapper/index.d.ts +1 -0
  30. package/dist/features/defi-wrapper/index.js +1 -0
  31. package/dist/features/defi-wrapper/index.js.map +1 -1
  32. package/dist/features/defi-wrapper/pool-info.d.ts +18 -1
  33. package/dist/features/defi-wrapper/pool-info.js +47 -3
  34. package/dist/features/defi-wrapper/pool-info.js.map +1 -1
  35. package/dist/features/defi-wrapper/timelock-roles.d.ts +5 -0
  36. package/dist/features/defi-wrapper/timelock-roles.js +43 -0
  37. package/dist/features/defi-wrapper/timelock-roles.js.map +1 -0
  38. package/dist/features/defi-wrapper/timelock.d.ts +8929 -8
  39. package/dist/features/defi-wrapper/timelock.js +83 -52
  40. package/dist/features/defi-wrapper/timelock.js.map +1 -1
  41. package/dist/features/defi-wrapper/verify-contracts.d.ts +20 -0
  42. package/dist/features/defi-wrapper/verify-contracts.js +145 -0
  43. package/dist/features/defi-wrapper/verify-contracts.js.map +1 -0
  44. package/dist/features/utils/try-fetch.js +2 -0
  45. package/dist/features/utils/try-fetch.js.map +1 -1
  46. package/dist/programs/account/write.js +2 -1
  47. package/dist/programs/account/write.js.map +1 -1
  48. package/dist/programs/defi-wrapper/contracts/factory/write.js +77 -6
  49. package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
  50. package/dist/programs/defi-wrapper/contracts/index.d.ts +1 -0
  51. package/dist/programs/defi-wrapper/contracts/index.js +1 -0
  52. package/dist/programs/defi-wrapper/contracts/index.js.map +1 -1
  53. package/dist/programs/defi-wrapper/contracts/strategy/config.d.ts +3 -0
  54. package/dist/programs/defi-wrapper/contracts/strategy/config.js +40 -0
  55. package/dist/programs/defi-wrapper/contracts/strategy/config.js.map +1 -0
  56. package/dist/programs/defi-wrapper/contracts/strategy/index.d.ts +3 -0
  57. package/dist/programs/defi-wrapper/contracts/strategy/index.js +4 -0
  58. package/dist/programs/defi-wrapper/contracts/strategy/index.js.map +1 -0
  59. package/dist/programs/defi-wrapper/contracts/strategy/main.d.ts +1 -0
  60. package/dist/programs/defi-wrapper/contracts/strategy/main.js +6 -0
  61. package/dist/programs/defi-wrapper/contracts/strategy/main.js.map +1 -0
  62. package/dist/programs/defi-wrapper/contracts/strategy/read.d.ts +1 -0
  63. package/dist/programs/defi-wrapper/contracts/strategy/read.js +30 -0
  64. package/dist/programs/defi-wrapper/contracts/strategy/read.js.map +1 -0
  65. package/dist/programs/defi-wrapper/contracts/strategy/write.d.ts +1 -0
  66. package/dist/programs/defi-wrapper/contracts/strategy/write.js +34 -0
  67. package/dist/programs/defi-wrapper/contracts/strategy/write.js.map +1 -0
  68. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +25 -21
  69. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
  70. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +3 -4
  71. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
  72. package/dist/programs/defi-wrapper/use-cases/distributor/write.js +1 -0
  73. package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -1
  74. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +25 -7
  75. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -1
  76. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +195 -17
  77. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -1
  78. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +3 -3
  79. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js.map +1 -1
  80. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.d.ts +1 -0
  81. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js +1 -0
  82. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js.map +1 -1
  83. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +4 -4
  84. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js.map +1 -1
  85. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +3 -3
  86. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js.map +1 -1
  87. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.d.ts +2 -0
  88. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js +3 -0
  89. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js.map +1 -0
  90. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.d.ts +1 -0
  91. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js +6 -0
  92. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js.map +1 -0
  93. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.d.ts +1 -0
  94. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js +57 -0
  95. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js.map +1 -0
  96. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +4 -4
  97. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js.map +1 -1
  98. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +32 -11
  99. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
  100. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +14 -12
  101. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
  102. package/dist/programs/use-cases/consolidation/write.js +2 -0
  103. package/dist/programs/use-cases/consolidation/write.js.map +1 -1
  104. package/dist/providers/wallet.d.ts +2936 -8456
  105. package/dist/providers/wallet.js +74 -2
  106. package/dist/providers/wallet.js.map +1 -1
  107. package/dist/tests/integration/gas-estimation.test.d.ts +1 -0
  108. package/dist/tests/integration/gas-estimation.test.js +76 -0
  109. package/dist/tests/integration/gas-estimation.test.js.map +1 -0
  110. package/dist/tests/integration/helpers/test-client.d.ts +2071 -5761
  111. package/dist/tests/utils/arguments-security.test.d.ts +1 -0
  112. package/dist/tests/utils/arguments-security.test.js +34 -0
  113. package/dist/tests/utils/arguments-security.test.js.map +1 -0
  114. package/dist/tests/utils/arguments.test.js +2 -20
  115. package/dist/tests/utils/arguments.test.js.map +1 -1
  116. package/dist/tests/utils/cache-security.test.d.ts +1 -0
  117. package/dist/tests/utils/cache-security.test.js +62 -0
  118. package/dist/tests/utils/cache-security.test.js.map +1 -0
  119. package/dist/tests/utils/contract-write-stateoverride.test.d.ts +1 -0
  120. package/dist/tests/utils/contract-write-stateoverride.test.js +135 -0
  121. package/dist/tests/utils/contract-write-stateoverride.test.js.map +1 -0
  122. package/dist/tests/utils/data-validators.test.js +21 -5
  123. package/dist/tests/utils/data-validators.test.js.map +1 -1
  124. package/dist/tests/utils/deployed-security.test.d.ts +1 -0
  125. package/dist/tests/utils/deployed-security.test.js +51 -0
  126. package/dist/tests/utils/deployed-security.test.js.map +1 -0
  127. package/dist/tests/utils/get-confirmations.test.d.ts +1 -0
  128. package/dist/tests/utils/get-confirmations.test.js +40 -0
  129. package/dist/tests/utils/get-confirmations.test.js.map +1 -0
  130. package/dist/tests/utils/ipfs-security.test.d.ts +1 -0
  131. package/dist/tests/utils/ipfs-security.test.js +232 -0
  132. package/dist/tests/utils/ipfs-security.test.js.map +1 -0
  133. package/dist/tests/utils/ipfs.test.js +8 -8
  134. package/dist/tests/utils/ipfs.test.js.map +1 -1
  135. package/dist/tests/utils/parse-abi-arguments.test.d.ts +1 -0
  136. package/dist/tests/utils/parse-abi-arguments.test.js +399 -0
  137. package/dist/tests/utils/parse-abi-arguments.test.js.map +1 -0
  138. package/dist/tests/utils/public-client-gas-estimation.test.d.ts +1 -0
  139. package/dist/tests/utils/public-client-gas-estimation.test.js +231 -0
  140. package/dist/tests/utils/public-client-gas-estimation.test.js.map +1 -0
  141. package/dist/tests/utils/rate-limit-security.test.d.ts +1 -0
  142. package/dist/tests/utils/rate-limit-security.test.js +82 -0
  143. package/dist/tests/utils/rate-limit-security.test.js.map +1 -0
  144. package/dist/tests/utils/salt.test.d.ts +1 -0
  145. package/dist/tests/utils/salt.test.js +20 -0
  146. package/dist/tests/utils/salt.test.js.map +1 -0
  147. package/dist/tests/utils/stream-helpers.d.ts +1 -0
  148. package/dist/tests/utils/stream-helpers.js +11 -0
  149. package/dist/tests/utils/stream-helpers.js.map +1 -0
  150. package/dist/utils/arguments.d.ts +2 -7
  151. package/dist/utils/arguments.js +21 -17
  152. package/dist/utils/arguments.js.map +1 -1
  153. package/dist/utils/cache.js +15 -13
  154. package/dist/utils/cache.js.map +1 -1
  155. package/dist/utils/data-validators.d.ts +3 -2
  156. package/dist/utils/data-validators.js +8 -11
  157. package/dist/utils/data-validators.js.map +1 -1
  158. package/dist/utils/env.d.ts +1 -0
  159. package/dist/utils/env.js +8 -0
  160. package/dist/utils/env.js.map +1 -0
  161. package/dist/utils/fetch-cl.js +2 -1
  162. package/dist/utils/fetch-cl.js.map +1 -1
  163. package/dist/utils/index.d.ts +6 -5
  164. package/dist/utils/index.js +6 -5
  165. package/dist/utils/index.js.map +1 -1
  166. package/dist/utils/ipfs.d.ts +4 -2
  167. package/dist/utils/ipfs.js +93 -11
  168. package/dist/utils/ipfs.js.map +1 -1
  169. package/dist/utils/logging/console.d.ts +1 -0
  170. package/dist/utils/logging/console.js +23 -2
  171. package/dist/utils/logging/console.js.map +1 -1
  172. package/dist/utils/parse-abi-arguments.d.ts +24 -0
  173. package/dist/utils/parse-abi-arguments.js +159 -0
  174. package/dist/utils/parse-abi-arguments.js.map +1 -0
  175. package/dist/utils/prompts/account.d.ts +1 -0
  176. package/dist/utils/prompts/account.js +13 -0
  177. package/dist/utils/prompts/account.js.map +1 -0
  178. package/dist/utils/prompts/index.d.ts +3 -0
  179. package/dist/utils/prompts/index.js +3 -0
  180. package/dist/utils/prompts/index.js.map +1 -1
  181. package/dist/utils/prompts/strategy.d.ts +15398 -0
  182. package/dist/utils/prompts/strategy.js +10 -0
  183. package/dist/utils/prompts/strategy.js.map +1 -0
  184. package/dist/utils/prompts/timelock-roles.d.ts +1 -0
  185. package/dist/utils/prompts/timelock-roles.js +13 -0
  186. package/dist/utils/prompts/timelock-roles.js.map +1 -0
  187. package/dist/utils/rate-limit.d.ts +6 -0
  188. package/dist/utils/rate-limit.js +22 -5
  189. package/dist/utils/rate-limit.js.map +1 -1
  190. package/dist/utils/salt.d.ts +3 -0
  191. package/dist/utils/salt.js +8 -0
  192. package/dist/utils/salt.js.map +1 -0
  193. package/dist/utils/transactions/tx-private-key.d.ts +2 -1
  194. package/dist/utils/transactions/tx-private-key.js +5 -8
  195. package/dist/utils/transactions/tx-private-key.js.map +1 -1
  196. package/dist/utils/transactions/tx-wc.js +3 -7
  197. package/dist/utils/transactions/tx-wc.js.map +1 -1
  198. package/dist/utils/transactions/utils.d.ts +1 -0
  199. package/dist/utils/transactions/utils.js +12 -0
  200. package/dist/utils/transactions/utils.js.map +1 -1
  201. package/dist/version/index.js +1 -1
  202. package/package.json +10 -9
package/README.md CHANGED
@@ -26,7 +26,7 @@ For changes between versions see [Changelog](./CHANGELOG.md)
26
26
 
27
27
  ## Prerequisites
28
28
 
29
- - **Node.js**: Ensure you have Node.js (v20 or later) installed.
29
+ - **Node.js**: Ensure you have Node.js (v22 or later) installed.
30
30
  - **Yarn**: Yarn package manager is required to install dependencies.
31
31
 
32
32
  ## Installation
@@ -78,6 +78,14 @@ PRIVATE_KEY=0x
78
78
  # Note: WALLET_CONNECT_PROJECT_ID is NOT a secret. It is a public identifier
79
79
  # of the application using WalletConnect.
80
80
  WALLET_CONNECT_PROJECT_ID=ee928c025792b10a6daa97d85328c433
81
+
82
+ # IPFS (optional)
83
+ # Maximum size, in bytes, of content fetched from an IPFS gateway. Oversized
84
+ # objects are rejected before they are buffered into memory, guarding against
85
+ # out-of-memory DoS from a hostile or mistaken CID. Defaults to 20 MiB
86
+ # (20971520). Applications embedding the CLI as a package can also override
87
+ # this per call via the `maxBytes` argument of the fetch helpers.
88
+ # IPFS_MAX_CONTENT_BYTES=20971520
81
89
  ```
82
90
 
83
91
  If you plan to manage contracts, **PRIVATE_KEY** (or an encrypted account file) is required for write operations.
@@ -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;