@paraswap/dex-lib 4.0.13 → 4.0.14

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 (199) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/{integral/pool.json → inception/inception-ineth-pool.json} +558 -537
  5. package/build/abi/inception/inception-ratio-feed.json +329 -0
  6. package/build/abi/inception/inception-vault.json +991 -0
  7. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  8. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  9. package/build/abi/{integral/relayer.json → wombat/pool.json} +474 -721
  10. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  11. package/build/dex/aave-v1/aave-v1.js +23 -0
  12. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  13. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  14. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  15. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  16. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  17. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  18. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  19. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  20. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  21. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  22. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  23. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  24. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  25. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  26. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  27. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  28. package/build/dex/bebop/bebop.js +2 -2
  29. package/build/dex/bebop/bebop.js.map +1 -1
  30. package/build/dex/cables/cables.js +7 -3
  31. package/build/dex/cables/cables.js.map +1 -1
  32. package/build/dex/curve-v1-factory/curve-v1-factory.js +6 -2
  33. package/build/dex/curve-v1-factory/curve-v1-factory.js.map +1 -1
  34. package/build/dex/curve-v1-factory/curve-v1-pool-manager.d.ts +1 -1
  35. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js +8 -2
  36. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js.map +1 -1
  37. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.d.ts +3 -2
  38. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +7 -5
  39. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js.map +1 -1
  40. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.d.ts +7 -4
  41. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js +23 -11
  42. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js.map +1 -1
  43. package/build/dex/dexalot/constants.d.ts +2 -2
  44. package/build/dex/dexalot/constants.js +2 -2
  45. package/build/dex/dexalot/dexalot.js +8 -4
  46. package/build/dex/dexalot/dexalot.js.map +1 -1
  47. package/build/dex/dexalot/rate-fetcher.d.ts +1 -1
  48. package/build/dex/dexalot/rate-fetcher.js.map +1 -1
  49. package/build/dex/generic-rfq/rate-fetcher.js +5 -5
  50. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  51. package/build/dex/inception/config.d.ts +4 -0
  52. package/build/dex/inception/config.js +109 -0
  53. package/build/dex/inception/config.js.map +1 -0
  54. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  55. package/build/dex/inception/inception-event-pool.js +49 -0
  56. package/build/dex/inception/inception-event-pool.js.map +1 -0
  57. package/build/dex/inception/inception.d.ts +43 -0
  58. package/build/dex/inception/inception.js +180 -0
  59. package/build/dex/inception/inception.js.map +1 -0
  60. package/build/dex/inception/tokens.d.ts +9 -0
  61. package/build/dex/inception/tokens.js +28 -0
  62. package/build/dex/inception/tokens.js.map +1 -0
  63. package/build/dex/inception/types.d.ts +22 -0
  64. package/build/dex/inception/types.js +3 -0
  65. package/build/dex/inception/types.js.map +1 -0
  66. package/build/dex/inception/utils.d.ts +7 -0
  67. package/build/dex/inception/utils.js +58 -0
  68. package/build/dex/inception/utils.js.map +1 -0
  69. package/build/dex/jarvis.d.ts +2 -1
  70. package/build/dex/jarvis.js +58 -0
  71. package/build/dex/jarvis.js.map +1 -1
  72. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  73. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  74. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  75. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  76. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  77. package/build/dex/platypus/platypus.d.ts +2 -1
  78. package/build/dex/platypus/platypus.js +45 -0
  79. package/build/dex/platypus/platypus.js.map +1 -1
  80. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  81. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  82. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  83. package/build/dex/stable-pool.js +1 -8
  84. package/build/dex/stable-pool.js.map +1 -1
  85. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  86. package/build/dex/swaap-v1/swaap-v1.js +14 -0
  87. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  88. package/build/dex/swaap-v2/swaap-v2.js +2 -2
  89. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  90. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  91. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  92. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  93. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  94. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  95. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  96. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  97. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  98. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  99. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  100. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  101. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  102. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  103. package/build/dex/usual/usual-m-smart-m.js +50 -0
  104. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  105. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  106. package/build/dex/usual-m-smart-m/config.js +13 -0
  107. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  108. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  109. package/build/dex/usual-m-smart-m/types.js +3 -0
  110. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  111. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  112. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  113. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  114. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  115. package/build/dex/usual-m-usd0/config.js +14 -0
  116. package/build/dex/usual-m-usd0/config.js.map +1 -0
  117. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  118. package/build/dex/usual-m-usd0/types.js +3 -0
  119. package/build/dex/usual-m-usd0/types.js.map +1 -0
  120. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  121. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  122. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  123. package/build/dex/zerox/index.d.ts +4 -26
  124. package/build/dex/zerox/index.js +50 -42
  125. package/build/dex/zerox/index.js.map +1 -1
  126. package/build/dex/zerox/types.d.ts +29 -0
  127. package/build/dex/zerox/types.js +8 -1
  128. package/build/dex/zerox/types.js.map +1 -1
  129. package/build/dex-helper/dummy-dex-helper.js +10 -0
  130. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  131. package/build/dex-helper/icache.d.ts +3 -0
  132. package/build/lib/pub-sub.d.ts +51 -0
  133. package/build/lib/pub-sub.js +199 -0
  134. package/build/lib/pub-sub.js.map +1 -0
  135. package/package.json +1 -1
  136. package/src/abi/fluid-dex/fluid-dex.abi.json +2 -4
  137. package/src/dex/bebop/bebop.ts +4 -2
  138. package/src/dex/cables/cables.ts +9 -3
  139. package/src/dex/curve-v1-factory/curve-v1-factory.ts +5 -1
  140. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +17 -1
  141. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +4 -4
  142. package/src/dex/curve-v1-factory/state-polling-pools/polling-manager.ts +32 -21
  143. package/src/dex/dexalot/constants.ts +2 -2
  144. package/src/dex/dexalot/dexalot.ts +11 -4
  145. package/src/dex/dexalot/rate-fetcher.ts +6 -6
  146. package/src/dex/generic-rfq/rate-fetcher.ts +10 -5
  147. package/src/dex/swaap-v2/swaap-v2.ts +4 -2
  148. package/src/dex-helper/dummy-dex-helper.ts +21 -0
  149. package/src/dex-helper/icache.ts +6 -0
  150. package/src/lib/pub-sub.ts +252 -0
  151. package/.idea/aws.xml +0 -17
  152. package/.idea/codeStyles/Project.xml +0 -19
  153. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  154. package/.idea/misc.xml +0 -6
  155. package/.idea/modules.xml +0 -8
  156. package/.idea/paraswap-dex-lib.iml +0 -9
  157. package/.idea/prettier.xml +0 -7
  158. package/.idea/vcs.xml +0 -6
  159. package/build/abi/integral/factory.json +0 -333
  160. package/build/abi/integral/oracle.json +0 -501
  161. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +0 -49
  162. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +0 -104
  163. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +0 -1
  164. package/build/dex/integral/config.d.ts +0 -4
  165. package/build/dex/integral/config.js +0 -20
  166. package/build/dex/integral/config.js.map +0 -1
  167. package/build/dex/integral/context.d.ts +0 -40
  168. package/build/dex/integral/context.js +0 -158
  169. package/build/dex/integral/context.js.map +0 -1
  170. package/build/dex/integral/integral-factory.d.ts +0 -24
  171. package/build/dex/integral/integral-factory.js +0 -95
  172. package/build/dex/integral/integral-factory.js.map +0 -1
  173. package/build/dex/integral/integral-pool.d.ts +0 -50
  174. package/build/dex/integral/integral-pool.js +0 -149
  175. package/build/dex/integral/integral-pool.js.map +0 -1
  176. package/build/dex/integral/integral-pricing.d.ts +0 -18
  177. package/build/dex/integral/integral-pricing.js +0 -114
  178. package/build/dex/integral/integral-pricing.js.map +0 -1
  179. package/build/dex/integral/integral-relayer.d.ts +0 -42
  180. package/build/dex/integral/integral-relayer.js +0 -192
  181. package/build/dex/integral/integral-relayer.js.map +0 -1
  182. package/build/dex/integral/integral-token.d.ts +0 -27
  183. package/build/dex/integral/integral-token.js +0 -59
  184. package/build/dex/integral/integral-token.js.map +0 -1
  185. package/build/dex/integral/integral.d.ts +0 -41
  186. package/build/dex/integral/integral.js +0 -376
  187. package/build/dex/integral/integral.js.map +0 -1
  188. package/build/dex/integral/types.d.ts +0 -85
  189. package/build/dex/integral/types.js +0 -9
  190. package/build/dex/integral/types.js.map +0 -1
  191. package/build/dex/integral/utils-e2e.d.ts +0 -9
  192. package/build/dex/integral/utils-e2e.js +0 -131
  193. package/build/dex/integral/utils-e2e.js.map +0 -1
  194. package/build/dex/integral/utils.d.ts +0 -17
  195. package/build/dex/integral/utils.js +0 -94
  196. package/build/dex/integral/utils.js.map +0 -1
  197. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  198. package/build/dex/trader-joe-v2.1/optimizer.js +0 -47
  199. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
@@ -0,0 +1,991 @@
1
+ [
2
+ { "inputs": [], "name": "AlreadyDelegated", "type": "error" },
3
+ { "inputs": [], "name": "DelegationManagerImmutable", "type": "error" },
4
+ { "inputs": [], "name": "EigenLayerOperatorAlreadyExists", "type": "error" },
5
+ {
6
+ "inputs": [
7
+ { "internalType": "uint256", "name": "max", "type": "uint256" },
8
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
9
+ ],
10
+ "name": "ExceedsMaxPerDeposit",
11
+ "type": "error"
12
+ },
13
+ {
14
+ "inputs": [
15
+ { "internalType": "uint256", "name": "max", "type": "uint256" },
16
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
17
+ ],
18
+ "name": "ExceedsMaxTotalDeposited",
19
+ "type": "error"
20
+ },
21
+ { "inputs": [], "name": "ImplementationNotSet", "type": "error" },
22
+ { "inputs": [], "name": "InceptionOnPause", "type": "error" },
23
+ { "inputs": [], "name": "InconsistentData", "type": "error" },
24
+ {
25
+ "inputs": [
26
+ { "internalType": "uint256", "name": "capacity", "type": "uint256" }
27
+ ],
28
+ "name": "InsufficientCapacity",
29
+ "type": "error"
30
+ },
31
+ { "inputs": [], "name": "NotEigenLayerOperator", "type": "error" },
32
+ { "inputs": [], "name": "NullParams", "type": "error" },
33
+ { "inputs": [], "name": "OperatorNotRegistered", "type": "error" },
34
+ { "inputs": [], "name": "RestakerNotRegistered", "type": "error" },
35
+ {
36
+ "inputs": [
37
+ { "internalType": "address", "name": "assetAddress", "type": "address" }
38
+ ],
39
+ "name": "TransferAssetFailed",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [
44
+ { "internalType": "address", "name": "assetAddress", "type": "address" }
45
+ ],
46
+ "name": "TransferAssetFromFailed",
47
+ "type": "error"
48
+ },
49
+ { "inputs": [], "name": "WithdrawFutile", "type": "error" },
50
+ {
51
+ "anonymous": false,
52
+ "inputs": [
53
+ {
54
+ "indexed": true,
55
+ "internalType": "address",
56
+ "name": "stakerAddress",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "operatorAddress",
63
+ "type": "address"
64
+ }
65
+ ],
66
+ "name": "DelegatedTo",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": false,
74
+ "internalType": "address",
75
+ "name": "prevValue",
76
+ "type": "address"
77
+ },
78
+ {
79
+ "indexed": false,
80
+ "internalType": "address",
81
+ "name": "newValue",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "DelegationManagerChanged",
86
+ "type": "event"
87
+ },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "internalType": "address",
94
+ "name": "sender",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "receiver",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint256",
106
+ "name": "amount",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "indexed": false,
111
+ "internalType": "uint256",
112
+ "name": "iShares",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "name": "Deposit",
117
+ "type": "event"
118
+ },
119
+ {
120
+ "anonymous": false,
121
+ "inputs": [
122
+ {
123
+ "indexed": false,
124
+ "internalType": "uint256",
125
+ "name": "prevValue",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "uint256",
131
+ "name": "newValue",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "DepositFeeChanged",
136
+ "type": "event"
137
+ },
138
+ {
139
+ "anonymous": false,
140
+ "inputs": [
141
+ {
142
+ "indexed": true,
143
+ "internalType": "address",
144
+ "name": "stakerAddress",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "uint256",
150
+ "name": "amount",
151
+ "type": "uint256"
152
+ }
153
+ ],
154
+ "name": "DepositedToEL",
155
+ "type": "event"
156
+ },
157
+ {
158
+ "anonymous": false,
159
+ "inputs": [
160
+ {
161
+ "indexed": true,
162
+ "internalType": "address",
163
+ "name": "newELOperator",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "name": "ELOperatorAdded",
168
+ "type": "event"
169
+ },
170
+ {
171
+ "anonymous": false,
172
+ "inputs": [
173
+ {
174
+ "indexed": false,
175
+ "internalType": "address",
176
+ "name": "prevValue",
177
+ "type": "address"
178
+ },
179
+ {
180
+ "indexed": false,
181
+ "internalType": "address",
182
+ "name": "newValue",
183
+ "type": "address"
184
+ }
185
+ ],
186
+ "name": "ImplementationUpgraded",
187
+ "type": "event"
188
+ },
189
+ {
190
+ "anonymous": false,
191
+ "inputs": [
192
+ {
193
+ "indexed": false,
194
+ "internalType": "uint8",
195
+ "name": "version",
196
+ "type": "uint8"
197
+ }
198
+ ],
199
+ "name": "Initialized",
200
+ "type": "event"
201
+ },
202
+ {
203
+ "anonymous": false,
204
+ "inputs": [
205
+ {
206
+ "indexed": false,
207
+ "internalType": "uint256",
208
+ "name": "prevValue",
209
+ "type": "uint256"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "uint256",
214
+ "name": "newValue",
215
+ "type": "uint256"
216
+ }
217
+ ],
218
+ "name": "MinAmountChanged",
219
+ "type": "event"
220
+ },
221
+ {
222
+ "anonymous": false,
223
+ "inputs": [
224
+ {
225
+ "indexed": false,
226
+ "internalType": "string",
227
+ "name": "prevValue",
228
+ "type": "string"
229
+ },
230
+ {
231
+ "indexed": false,
232
+ "internalType": "string",
233
+ "name": "newValue",
234
+ "type": "string"
235
+ }
236
+ ],
237
+ "name": "NameChanged",
238
+ "type": "event"
239
+ },
240
+ {
241
+ "anonymous": false,
242
+ "inputs": [
243
+ {
244
+ "indexed": false,
245
+ "internalType": "address",
246
+ "name": "prevValue",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "internalType": "address",
252
+ "name": "newValue",
253
+ "type": "address"
254
+ }
255
+ ],
256
+ "name": "OperatorChanged",
257
+ "type": "event"
258
+ },
259
+ {
260
+ "anonymous": false,
261
+ "inputs": [
262
+ {
263
+ "indexed": true,
264
+ "internalType": "address",
265
+ "name": "previousOwner",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "indexed": true,
270
+ "internalType": "address",
271
+ "name": "newOwner",
272
+ "type": "address"
273
+ }
274
+ ],
275
+ "name": "OwnershipTransferred",
276
+ "type": "event"
277
+ },
278
+ {
279
+ "anonymous": false,
280
+ "inputs": [
281
+ {
282
+ "indexed": false,
283
+ "internalType": "address",
284
+ "name": "account",
285
+ "type": "address"
286
+ }
287
+ ],
288
+ "name": "Paused",
289
+ "type": "event"
290
+ },
291
+ {
292
+ "anonymous": false,
293
+ "inputs": [
294
+ {
295
+ "indexed": true,
296
+ "internalType": "address",
297
+ "name": "sender",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "indexed": true,
302
+ "internalType": "address",
303
+ "name": "receiver",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "indexed": false,
308
+ "internalType": "uint256",
309
+ "name": "amount",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "name": "Redeem",
314
+ "type": "event"
315
+ },
316
+ {
317
+ "anonymous": false,
318
+ "inputs": [
319
+ {
320
+ "indexed": false,
321
+ "internalType": "uint256[]",
322
+ "name": "withdrawals",
323
+ "type": "uint256[]"
324
+ }
325
+ ],
326
+ "name": "RedeemedRequests",
327
+ "type": "event"
328
+ },
329
+ {
330
+ "anonymous": false,
331
+ "inputs": [
332
+ {
333
+ "indexed": true,
334
+ "internalType": "bytes32",
335
+ "name": "code",
336
+ "type": "bytes32"
337
+ }
338
+ ],
339
+ "name": "ReferralCode",
340
+ "type": "event"
341
+ },
342
+ {
343
+ "anonymous": false,
344
+ "inputs": [
345
+ {
346
+ "indexed": true,
347
+ "internalType": "address",
348
+ "name": "restaker",
349
+ "type": "address"
350
+ }
351
+ ],
352
+ "name": "RestakerDeployed",
353
+ "type": "event"
354
+ },
355
+ {
356
+ "anonymous": false,
357
+ "inputs": [
358
+ {
359
+ "indexed": true,
360
+ "internalType": "address",
361
+ "name": "stakerAddress",
362
+ "type": "address"
363
+ },
364
+ {
365
+ "indexed": false,
366
+ "internalType": "contract IStrategy",
367
+ "name": "strategy",
368
+ "type": "address"
369
+ },
370
+ {
371
+ "indexed": false,
372
+ "internalType": "uint256",
373
+ "name": "shares",
374
+ "type": "uint256"
375
+ },
376
+ {
377
+ "indexed": false,
378
+ "internalType": "uint32",
379
+ "name": "withdrawalStartBlock",
380
+ "type": "uint32"
381
+ },
382
+ {
383
+ "indexed": false,
384
+ "internalType": "address",
385
+ "name": "delegatedAddress",
386
+ "type": "address"
387
+ },
388
+ {
389
+ "indexed": false,
390
+ "internalType": "uint256",
391
+ "name": "nonce",
392
+ "type": "uint256"
393
+ }
394
+ ],
395
+ "name": "StartWithdrawal",
396
+ "type": "event"
397
+ },
398
+ {
399
+ "anonymous": false,
400
+ "inputs": [
401
+ {
402
+ "indexed": false,
403
+ "internalType": "address",
404
+ "name": "account",
405
+ "type": "address"
406
+ }
407
+ ],
408
+ "name": "Unpaused",
409
+ "type": "event"
410
+ },
411
+ {
412
+ "anonymous": false,
413
+ "inputs": [
414
+ {
415
+ "indexed": true,
416
+ "internalType": "address",
417
+ "name": "sender",
418
+ "type": "address"
419
+ },
420
+ {
421
+ "indexed": true,
422
+ "internalType": "address",
423
+ "name": "receiver",
424
+ "type": "address"
425
+ },
426
+ {
427
+ "indexed": true,
428
+ "internalType": "address",
429
+ "name": "owner",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "indexed": false,
434
+ "internalType": "uint256",
435
+ "name": "amount",
436
+ "type": "uint256"
437
+ },
438
+ {
439
+ "indexed": false,
440
+ "internalType": "uint256",
441
+ "name": "iShares",
442
+ "type": "uint256"
443
+ }
444
+ ],
445
+ "name": "Withdraw",
446
+ "type": "event"
447
+ },
448
+ {
449
+ "anonymous": false,
450
+ "inputs": [
451
+ {
452
+ "indexed": false,
453
+ "internalType": "uint256",
454
+ "name": "totalAmount",
455
+ "type": "uint256"
456
+ }
457
+ ],
458
+ "name": "WithdrawalClaimed",
459
+ "type": "event"
460
+ },
461
+ {
462
+ "anonymous": false,
463
+ "inputs": [
464
+ {
465
+ "indexed": false,
466
+ "internalType": "address",
467
+ "name": "depositor",
468
+ "type": "address"
469
+ },
470
+ {
471
+ "indexed": false,
472
+ "internalType": "uint96",
473
+ "name": "nonce",
474
+ "type": "uint96"
475
+ },
476
+ {
477
+ "indexed": false,
478
+ "internalType": "address",
479
+ "name": "withdrawer",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "indexed": false,
484
+ "internalType": "address",
485
+ "name": "delegatedAddress",
486
+ "type": "address"
487
+ },
488
+ {
489
+ "indexed": false,
490
+ "internalType": "bytes32",
491
+ "name": "withdrawalRoot",
492
+ "type": "bytes32"
493
+ }
494
+ ],
495
+ "name": "WithdrawalQueued",
496
+ "type": "event"
497
+ },
498
+ {
499
+ "anonymous": false,
500
+ "inputs": [
501
+ {
502
+ "indexed": false,
503
+ "internalType": "address",
504
+ "name": "asset",
505
+ "type": "address"
506
+ },
507
+ {
508
+ "indexed": false,
509
+ "internalType": "uint256",
510
+ "name": "shares",
511
+ "type": "uint256"
512
+ },
513
+ {
514
+ "indexed": false,
515
+ "internalType": "uint256",
516
+ "name": "ethAmount",
517
+ "type": "uint256"
518
+ }
519
+ ],
520
+ "name": "Withdrawn",
521
+ "type": "event"
522
+ },
523
+ {
524
+ "inputs": [
525
+ { "internalType": "address", "name": "newELOperator", "type": "address" }
526
+ ],
527
+ "name": "addELOperator",
528
+ "outputs": [],
529
+ "stateMutability": "nonpayable",
530
+ "type": "function"
531
+ },
532
+ {
533
+ "inputs": [
534
+ { "internalType": "address", "name": "restaker", "type": "address" },
535
+ {
536
+ "components": [
537
+ { "internalType": "address", "name": "staker", "type": "address" },
538
+ {
539
+ "internalType": "address",
540
+ "name": "delegatedTo",
541
+ "type": "address"
542
+ },
543
+ {
544
+ "internalType": "address",
545
+ "name": "withdrawer",
546
+ "type": "address"
547
+ },
548
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
549
+ { "internalType": "uint32", "name": "startBlock", "type": "uint32" },
550
+ {
551
+ "internalType": "contract IStrategy[]",
552
+ "name": "strategies",
553
+ "type": "address[]"
554
+ },
555
+ { "internalType": "uint256[]", "name": "shares", "type": "uint256[]" }
556
+ ],
557
+ "internalType": "struct IDelegationManager.Withdrawal[]",
558
+ "name": "withdrawals",
559
+ "type": "tuple[]"
560
+ }
561
+ ],
562
+ "name": "claimCompletedWithdrawals",
563
+ "outputs": [],
564
+ "stateMutability": "nonpayable",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
569
+ "name": "claimerWithdrawalsQueue",
570
+ "outputs": [
571
+ { "internalType": "uint256", "name": "epoch", "type": "uint256" },
572
+ { "internalType": "address", "name": "receiver", "type": "address" },
573
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
574
+ ],
575
+ "stateMutability": "view",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [
580
+ { "internalType": "uint256", "name": "iShares", "type": "uint256" }
581
+ ],
582
+ "name": "convertToAssets",
583
+ "outputs": [
584
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
585
+ ],
586
+ "stateMutability": "view",
587
+ "type": "function"
588
+ },
589
+ {
590
+ "inputs": [
591
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
592
+ ],
593
+ "name": "convertToShares",
594
+ "outputs": [
595
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
596
+ ],
597
+ "stateMutability": "view",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [
602
+ { "internalType": "uint256", "name": "amount", "type": "uint256" },
603
+ { "internalType": "address", "name": "elOperator", "type": "address" },
604
+ { "internalType": "bytes32", "name": "approverSalt", "type": "bytes32" },
605
+ {
606
+ "components": [
607
+ { "internalType": "bytes", "name": "signature", "type": "bytes" },
608
+ { "internalType": "uint256", "name": "expiry", "type": "uint256" }
609
+ ],
610
+ "internalType": "struct IDelegationManager.SignatureWithExpiry",
611
+ "name": "approverSignatureAndExpiry",
612
+ "type": "tuple"
613
+ }
614
+ ],
615
+ "name": "delegateToOperator",
616
+ "outputs": [],
617
+ "stateMutability": "nonpayable",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ { "internalType": "address", "name": "elOperator", "type": "address" },
623
+ { "internalType": "bytes32", "name": "approverSalt", "type": "bytes32" },
624
+ {
625
+ "components": [
626
+ { "internalType": "bytes", "name": "signature", "type": "bytes" },
627
+ { "internalType": "uint256", "name": "expiry", "type": "uint256" }
628
+ ],
629
+ "internalType": "struct IDelegationManager.SignatureWithExpiry",
630
+ "name": "approverSignatureAndExpiry",
631
+ "type": "tuple"
632
+ }
633
+ ],
634
+ "name": "delegateToOperatorFromVault",
635
+ "outputs": [],
636
+ "stateMutability": "nonpayable",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [],
641
+ "name": "delegationManager",
642
+ "outputs": [
643
+ {
644
+ "internalType": "contract IDelegationManager",
645
+ "name": "",
646
+ "type": "address"
647
+ }
648
+ ],
649
+ "stateMutability": "view",
650
+ "type": "function"
651
+ },
652
+ {
653
+ "inputs": [
654
+ { "internalType": "uint256", "name": "amount", "type": "uint256" },
655
+ { "internalType": "address", "name": "receiver", "type": "address" }
656
+ ],
657
+ "name": "deposit",
658
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
659
+ "stateMutability": "nonpayable",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [
664
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
665
+ ],
666
+ "name": "depositAssetIntoStrategyFromVault",
667
+ "outputs": [],
668
+ "stateMutability": "nonpayable",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [
673
+ { "internalType": "uint256", "name": "amount", "type": "uint256" },
674
+ { "internalType": "address", "name": "receiver", "type": "address" },
675
+ { "internalType": "bytes32", "name": "code", "type": "bytes32" }
676
+ ],
677
+ "name": "depositWithReferral",
678
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
679
+ "stateMutability": "nonpayable",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [],
684
+ "name": "epoch",
685
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [
691
+ { "internalType": "uint256", "name": "amount", "type": "uint256" },
692
+ { "internalType": "address", "name": "restaker", "type": "address" }
693
+ ],
694
+ "name": "forceUndelegateRecovery",
695
+ "outputs": [],
696
+ "stateMutability": "nonpayable",
697
+ "type": "function"
698
+ },
699
+ {
700
+ "inputs": [
701
+ { "internalType": "address", "name": "elOperator", "type": "address" }
702
+ ],
703
+ "name": "getDelegatedTo",
704
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
705
+ "stateMutability": "view",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [],
710
+ "name": "getPendingWithdrawalAmountFromEL",
711
+ "outputs": [
712
+ { "internalType": "uint256", "name": "total", "type": "uint256" }
713
+ ],
714
+ "stateMutability": "view",
715
+ "type": "function"
716
+ },
717
+ {
718
+ "inputs": [
719
+ { "internalType": "address", "name": "claimer", "type": "address" }
720
+ ],
721
+ "name": "getPendingWithdrawalOf",
722
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
723
+ "stateMutability": "view",
724
+ "type": "function"
725
+ },
726
+ {
727
+ "inputs": [],
728
+ "name": "getTotalDelegated",
729
+ "outputs": [
730
+ { "internalType": "uint256", "name": "total", "type": "uint256" }
731
+ ],
732
+ "stateMutability": "view",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [],
737
+ "name": "getTotalDeposited",
738
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
739
+ "stateMutability": "view",
740
+ "type": "function"
741
+ },
742
+ {
743
+ "inputs": [],
744
+ "name": "implementation",
745
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
746
+ "stateMutability": "view",
747
+ "type": "function"
748
+ },
749
+ {
750
+ "inputs": [],
751
+ "name": "inceptionToken",
752
+ "outputs": [
753
+ {
754
+ "internalType": "contract IInceptionToken",
755
+ "name": "",
756
+ "type": "address"
757
+ }
758
+ ],
759
+ "stateMutability": "view",
760
+ "type": "function"
761
+ },
762
+ {
763
+ "inputs": [
764
+ { "internalType": "address", "name": "claimer", "type": "address" }
765
+ ],
766
+ "name": "isAbleToRedeem",
767
+ "outputs": [
768
+ { "internalType": "bool", "name": "able", "type": "bool" },
769
+ { "internalType": "uint256[]", "name": "", "type": "uint256[]" }
770
+ ],
771
+ "stateMutability": "view",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "inputs": [],
776
+ "name": "minAmount",
777
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
778
+ "stateMutability": "view",
779
+ "type": "function"
780
+ },
781
+ {
782
+ "inputs": [],
783
+ "name": "name",
784
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
785
+ "stateMutability": "view",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [],
790
+ "name": "owner",
791
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [],
797
+ "name": "pause",
798
+ "outputs": [],
799
+ "stateMutability": "nonpayable",
800
+ "type": "function"
801
+ },
802
+ {
803
+ "inputs": [],
804
+ "name": "paused",
805
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
806
+ "stateMutability": "view",
807
+ "type": "function"
808
+ },
809
+ {
810
+ "inputs": [],
811
+ "name": "ratio",
812
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
813
+ "stateMutability": "view",
814
+ "type": "function"
815
+ },
816
+ {
817
+ "inputs": [
818
+ { "internalType": "address", "name": "receiver", "type": "address" }
819
+ ],
820
+ "name": "redeem",
821
+ "outputs": [],
822
+ "stateMutability": "nonpayable",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [],
827
+ "name": "redeemReservedAmount",
828
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
829
+ "stateMutability": "view",
830
+ "type": "function"
831
+ },
832
+ {
833
+ "inputs": [],
834
+ "name": "renounceOwnership",
835
+ "outputs": [],
836
+ "stateMutability": "nonpayable",
837
+ "type": "function"
838
+ },
839
+ {
840
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
841
+ "name": "restakers",
842
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
843
+ "stateMutability": "view",
844
+ "type": "function"
845
+ },
846
+ {
847
+ "inputs": [
848
+ {
849
+ "internalType": "contract IDelegationManager",
850
+ "name": "newDelegationManager",
851
+ "type": "address"
852
+ }
853
+ ],
854
+ "name": "setDelegationManager",
855
+ "outputs": [],
856
+ "stateMutability": "nonpayable",
857
+ "type": "function"
858
+ },
859
+ {
860
+ "inputs": [
861
+ { "internalType": "uint256", "name": "newMinAmount", "type": "uint256" }
862
+ ],
863
+ "name": "setMinAmount",
864
+ "outputs": [],
865
+ "stateMutability": "nonpayable",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [
870
+ { "internalType": "string", "name": "newVaultName", "type": "string" }
871
+ ],
872
+ "name": "setName",
873
+ "outputs": [],
874
+ "stateMutability": "nonpayable",
875
+ "type": "function"
876
+ },
877
+ {
878
+ "inputs": [
879
+ { "internalType": "address", "name": "newOperator", "type": "address" }
880
+ ],
881
+ "name": "setOperator",
882
+ "outputs": [],
883
+ "stateMutability": "nonpayable",
884
+ "type": "function"
885
+ },
886
+ {
887
+ "inputs": [],
888
+ "name": "strategy",
889
+ "outputs": [
890
+ { "internalType": "contract IStrategy", "name": "", "type": "address" }
891
+ ],
892
+ "stateMutability": "view",
893
+ "type": "function"
894
+ },
895
+ {
896
+ "inputs": [],
897
+ "name": "strategyManager",
898
+ "outputs": [
899
+ {
900
+ "internalType": "contract IStrategyManager",
901
+ "name": "",
902
+ "type": "address"
903
+ }
904
+ ],
905
+ "stateMutability": "view",
906
+ "type": "function"
907
+ },
908
+ {
909
+ "inputs": [],
910
+ "name": "totalAmountToWithdraw",
911
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [],
917
+ "name": "totalAssets",
918
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
919
+ "stateMutability": "view",
920
+ "type": "function"
921
+ },
922
+ {
923
+ "inputs": [
924
+ { "internalType": "address", "name": "newOwner", "type": "address" }
925
+ ],
926
+ "name": "transferOwnership",
927
+ "outputs": [],
928
+ "stateMutability": "nonpayable",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "address",
935
+ "name": "elOperatorAddress",
936
+ "type": "address"
937
+ },
938
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
939
+ ],
940
+ "name": "undelegateFrom",
941
+ "outputs": [],
942
+ "stateMutability": "nonpayable",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [
947
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
948
+ ],
949
+ "name": "undelegateVault",
950
+ "outputs": [],
951
+ "stateMutability": "nonpayable",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [],
956
+ "name": "unpause",
957
+ "outputs": [],
958
+ "stateMutability": "nonpayable",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [],
963
+ "name": "updateEpoch",
964
+ "outputs": [],
965
+ "stateMutability": "nonpayable",
966
+ "type": "function"
967
+ },
968
+ {
969
+ "inputs": [
970
+ {
971
+ "internalType": "address",
972
+ "name": "newImplementation",
973
+ "type": "address"
974
+ }
975
+ ],
976
+ "name": "upgradeTo",
977
+ "outputs": [],
978
+ "stateMutability": "nonpayable",
979
+ "type": "function"
980
+ },
981
+ {
982
+ "inputs": [
983
+ { "internalType": "uint256", "name": "iShares", "type": "uint256" },
984
+ { "internalType": "address", "name": "receiver", "type": "address" }
985
+ ],
986
+ "name": "withdraw",
987
+ "outputs": [],
988
+ "stateMutability": "nonpayable",
989
+ "type": "function"
990
+ }
991
+ ]