@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
@@ -5,18 +5,119 @@
5
5
  "type": "constructor"
6
6
  },
7
7
  {
8
- "anonymous": false,
9
8
  "inputs": [
10
9
  {
11
- "indexed": true,
12
- "internalType": "address",
13
- "name": "owner",
14
- "type": "address"
10
+ "internalType": "uint256",
11
+ "name": "claimed",
12
+ "type": "uint256"
15
13
  },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "fee",
17
+ "type": "uint256"
18
+ }
19
+ ],
20
+ "name": "AmbiguousFee",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "InvalidInitialization",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "NotInitializing",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "OnlyGovernanceAllowed",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "OnlyOperatorAllowed",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "OnlyRestakingPoolAllowed",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "uint64",
52
+ "name": "max",
53
+ "type": "uint64"
54
+ }
55
+ ],
56
+ "name": "PoolDistributeGasLimitNotInRange",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "PoolFailedInnerCall",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "PoolInsufficientBalance",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "PoolRestakerExists",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "PoolRestakerNotExists",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "PoolStakeAmGreaterThanAvailable",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "PoolStakeAmLessThanMin",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "PoolUnstakeAmLessThanMin",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "PoolWrongInputLength",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "PoolZeroAddress",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "PoolZeroAmount",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ReentrancyGuardReentrantCall",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "anonymous": false,
116
+ "inputs": [
16
117
  {
17
118
  "indexed": true,
18
119
  "internalType": "address",
19
- "name": "spender",
120
+ "name": "claimer",
20
121
  "type": "address"
21
122
  },
22
123
  {
@@ -26,7 +127,7 @@
26
127
  "type": "uint256"
27
128
  }
28
129
  ],
29
- "name": "Approval",
130
+ "name": "ClaimExpected",
30
131
  "type": "event"
31
132
  },
32
133
  {
@@ -34,36 +135,37 @@
34
135
  "inputs": [
35
136
  {
36
137
  "indexed": true,
37
- "internalType": "address",
38
- "name": "sender",
39
- "type": "address"
138
+ "internalType": "string",
139
+ "name": "provider",
140
+ "type": "string"
40
141
  },
41
142
  {
42
143
  "indexed": false,
43
- "internalType": "uint256",
44
- "name": "amount0Out",
45
- "type": "uint256"
46
- },
144
+ "internalType": "bytes[]",
145
+ "name": "pubkeys",
146
+ "type": "bytes[]"
147
+ }
148
+ ],
149
+ "name": "Deposited",
150
+ "type": "event"
151
+ },
152
+ {
153
+ "anonymous": false,
154
+ "inputs": [
47
155
  {
48
156
  "indexed": false,
49
- "internalType": "uint256",
50
- "name": "amount1Out",
51
- "type": "uint256"
157
+ "internalType": "uint32",
158
+ "name": "prevValue",
159
+ "type": "uint32"
52
160
  },
53
161
  {
54
162
  "indexed": false,
55
- "internalType": "uint256",
56
- "name": "liquidityIn",
57
- "type": "uint256"
58
- },
59
- {
60
- "indexed": true,
61
- "internalType": "address",
62
- "name": "to",
63
- "type": "address"
163
+ "internalType": "uint32",
164
+ "name": "newValue",
165
+ "type": "uint32"
64
166
  }
65
167
  ],
66
- "name": "Burn",
168
+ "name": "DistributeGasLimitChanged",
67
169
  "type": "event"
68
170
  },
69
171
  {
@@ -72,35 +174,29 @@
72
174
  {
73
175
  "indexed": true,
74
176
  "internalType": "address",
75
- "name": "sender",
177
+ "name": "restaker",
76
178
  "type": "address"
77
179
  },
78
180
  {
79
- "indexed": false,
80
- "internalType": "uint256",
81
- "name": "amount0In",
82
- "type": "uint256"
181
+ "indexed": true,
182
+ "internalType": "address",
183
+ "name": "treasury",
184
+ "type": "address"
83
185
  },
84
186
  {
85
187
  "indexed": false,
86
188
  "internalType": "uint256",
87
- "name": "amount1In",
189
+ "name": "fee",
88
190
  "type": "uint256"
89
191
  },
90
192
  {
91
193
  "indexed": false,
92
194
  "internalType": "uint256",
93
- "name": "liquidityOut",
195
+ "name": "totalClaimed",
94
196
  "type": "uint256"
95
- },
96
- {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "to",
100
- "type": "address"
101
197
  }
102
198
  ],
103
- "name": "Mint",
199
+ "name": "FeeClaimed",
104
200
  "type": "event"
105
201
  },
106
202
  {
@@ -108,12 +204,12 @@
108
204
  "inputs": [
109
205
  {
110
206
  "indexed": false,
111
- "internalType": "uint256",
112
- "name": "fee",
113
- "type": "uint256"
207
+ "internalType": "uint64",
208
+ "name": "version",
209
+ "type": "uint64"
114
210
  }
115
211
  ],
116
- "name": "SetBurnFee",
212
+ "name": "Initialized",
117
213
  "type": "event"
118
214
  },
119
215
  {
@@ -122,24 +218,17 @@
122
218
  {
123
219
  "indexed": false,
124
220
  "internalType": "uint256",
125
- "name": "fee",
221
+ "name": "prevValue",
126
222
  "type": "uint256"
127
- }
128
- ],
129
- "name": "SetMintFee",
130
- "type": "event"
131
- },
132
- {
133
- "anonymous": false,
134
- "inputs": [
223
+ },
135
224
  {
136
225
  "indexed": false,
137
- "internalType": "address",
138
- "name": "account",
139
- "type": "address"
226
+ "internalType": "uint256",
227
+ "name": "newValue",
228
+ "type": "uint256"
140
229
  }
141
230
  ],
142
- "name": "SetOracle",
231
+ "name": "MaxTVLChanged",
143
232
  "type": "event"
144
233
  },
145
234
  {
@@ -148,11 +237,17 @@
148
237
  {
149
238
  "indexed": false,
150
239
  "internalType": "uint256",
151
- "name": "fee",
240
+ "name": "prevValue",
241
+ "type": "uint256"
242
+ },
243
+ {
244
+ "indexed": false,
245
+ "internalType": "uint256",
246
+ "name": "newValue",
152
247
  "type": "uint256"
153
248
  }
154
249
  ],
155
- "name": "SetSwapFee",
250
+ "name": "MinStakeChanged",
156
251
  "type": "event"
157
252
  },
158
253
  {
@@ -160,12 +255,18 @@
160
255
  "inputs": [
161
256
  {
162
257
  "indexed": false,
163
- "internalType": "address",
164
- "name": "trader",
165
- "type": "address"
258
+ "internalType": "uint256",
259
+ "name": "prevValue",
260
+ "type": "uint256"
261
+ },
262
+ {
263
+ "indexed": false,
264
+ "internalType": "uint256",
265
+ "name": "newValue",
266
+ "type": "uint256"
166
267
  }
167
268
  ],
168
- "name": "SetTrader",
269
+ "name": "MinUntakeChanged",
169
270
  "type": "event"
170
271
  },
171
272
  {
@@ -174,41 +275,29 @@
174
275
  {
175
276
  "indexed": true,
176
277
  "internalType": "address",
177
- "name": "sender",
278
+ "name": "ownerAddress",
178
279
  "type": "address"
179
280
  },
180
281
  {
181
- "indexed": false,
182
- "internalType": "uint256",
183
- "name": "amount0In",
184
- "type": "uint256"
185
- },
186
- {
187
- "indexed": false,
188
- "internalType": "uint256",
189
- "name": "amount1In",
190
- "type": "uint256"
282
+ "indexed": true,
283
+ "internalType": "address",
284
+ "name": "receiverAddress",
285
+ "type": "address"
191
286
  },
192
287
  {
193
288
  "indexed": false,
194
289
  "internalType": "uint256",
195
- "name": "amount0Out",
290
+ "name": "amount",
196
291
  "type": "uint256"
197
292
  },
198
293
  {
199
294
  "indexed": false,
200
295
  "internalType": "uint256",
201
- "name": "amount1Out",
296
+ "name": "shares",
202
297
  "type": "uint256"
203
- },
204
- {
205
- "indexed": true,
206
- "internalType": "address",
207
- "name": "to",
208
- "type": "address"
209
298
  }
210
299
  ],
211
- "name": "Swap",
300
+ "name": "PendingUnstake",
212
301
  "type": "event"
213
302
  },
214
303
  {
@@ -217,245 +306,160 @@
217
306
  {
218
307
  "indexed": true,
219
308
  "internalType": "address",
220
- "name": "from",
221
- "type": "address"
222
- },
223
- {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "to",
309
+ "name": "sender",
227
310
  "type": "address"
228
311
  },
229
312
  {
230
313
  "indexed": false,
231
314
  "internalType": "uint256",
232
- "name": "value",
315
+ "name": "amount",
233
316
  "type": "uint256"
234
317
  }
235
318
  ],
236
- "name": "Transfer",
319
+ "name": "Received",
237
320
  "type": "event"
238
321
  },
239
322
  {
240
- "inputs": [],
241
- "name": "DOMAIN_TYPEHASH",
242
- "outputs": [
243
- {
244
- "internalType": "bytes32",
245
- "name": "",
246
- "type": "bytes32"
247
- }
248
- ],
249
- "stateMutability": "view",
250
- "type": "function"
251
- },
252
- {
253
- "inputs": [],
254
- "name": "MINIMUM_LIQUIDITY",
255
- "outputs": [
256
- {
257
- "internalType": "uint256",
258
- "name": "",
259
- "type": "uint256"
260
- }
261
- ],
262
- "stateMutability": "view",
263
- "type": "function"
264
- },
265
- {
266
- "inputs": [],
267
- "name": "PERMIT_TYPEHASH",
268
- "outputs": [
323
+ "anonymous": false,
324
+ "inputs": [
269
325
  {
326
+ "indexed": true,
270
327
  "internalType": "bytes32",
271
- "name": "",
328
+ "name": "code",
272
329
  "type": "bytes32"
273
330
  }
274
331
  ],
275
- "stateMutability": "view",
276
- "type": "function"
332
+ "name": "ReferralStake",
333
+ "type": "event"
277
334
  },
278
335
  {
336
+ "anonymous": false,
279
337
  "inputs": [
280
338
  {
281
- "internalType": "address",
282
- "name": "",
283
- "type": "address"
339
+ "indexed": true,
340
+ "internalType": "string",
341
+ "name": "provider",
342
+ "type": "string"
284
343
  },
285
344
  {
345
+ "indexed": false,
286
346
  "internalType": "address",
287
- "name": "",
347
+ "name": "restaker",
288
348
  "type": "address"
289
349
  }
290
350
  ],
291
- "name": "allowance",
292
- "outputs": [
293
- {
294
- "internalType": "uint256",
295
- "name": "",
296
- "type": "uint256"
297
- }
298
- ],
299
- "stateMutability": "view",
300
- "type": "function"
351
+ "name": "RestakerAdded",
352
+ "type": "event"
301
353
  },
302
354
  {
355
+ "anonymous": false,
303
356
  "inputs": [
304
357
  {
358
+ "indexed": true,
305
359
  "internalType": "address",
306
- "name": "spender",
360
+ "name": "staker",
307
361
  "type": "address"
308
362
  },
309
363
  {
364
+ "indexed": false,
310
365
  "internalType": "uint256",
311
- "name": "value",
366
+ "name": "amount",
312
367
  "type": "uint256"
313
- }
314
- ],
315
- "name": "approve",
316
- "outputs": [
317
- {
318
- "internalType": "bool",
319
- "name": "",
320
- "type": "bool"
321
- }
322
- ],
323
- "stateMutability": "nonpayable",
324
- "type": "function"
325
- },
326
- {
327
- "inputs": [
328
- {
329
- "internalType": "address",
330
- "name": "",
331
- "type": "address"
332
- }
333
- ],
334
- "name": "balanceOf",
335
- "outputs": [
368
+ },
336
369
  {
370
+ "indexed": false,
337
371
  "internalType": "uint256",
338
- "name": "",
372
+ "name": "shares",
339
373
  "type": "uint256"
340
374
  }
341
375
  ],
342
- "stateMutability": "view",
343
- "type": "function"
376
+ "name": "Staked",
377
+ "type": "event"
344
378
  },
345
379
  {
380
+ "anonymous": false,
346
381
  "inputs": [
347
382
  {
383
+ "indexed": true,
348
384
  "internalType": "address",
349
- "name": "to",
385
+ "name": "claimer",
350
386
  "type": "address"
351
- }
352
- ],
353
- "name": "burn",
354
- "outputs": [
355
- {
356
- "internalType": "uint256",
357
- "name": "amount0Out",
358
- "type": "uint256"
359
387
  },
360
388
  {
361
- "internalType": "uint256",
362
- "name": "amount1Out",
363
- "type": "uint256"
364
- }
365
- ],
366
- "stateMutability": "nonpayable",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [],
371
- "name": "burnFee",
372
- "outputs": [
389
+ "indexed": true,
390
+ "internalType": "address",
391
+ "name": "caller",
392
+ "type": "address"
393
+ },
373
394
  {
395
+ "indexed": false,
374
396
  "internalType": "uint256",
375
- "name": "",
397
+ "name": "value",
376
398
  "type": "uint256"
377
399
  }
378
400
  ],
379
- "stateMutability": "view",
380
- "type": "function"
401
+ "name": "UnstakeClaimed",
402
+ "type": "event"
381
403
  },
382
404
  {
405
+ "anonymous": false,
383
406
  "inputs": [
384
407
  {
408
+ "indexed": true,
385
409
  "internalType": "address",
386
- "name": "to",
410
+ "name": "from",
387
411
  "type": "address"
388
- }
389
- ],
390
- "name": "collect",
391
- "outputs": [],
392
- "stateMutability": "nonpayable",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [],
397
- "name": "decimals",
398
- "outputs": [
399
- {
400
- "internalType": "uint8",
401
- "name": "",
402
- "type": "uint8"
403
- }
404
- ],
405
- "stateMutability": "view",
406
- "type": "function"
407
- },
408
- {
409
- "inputs": [
412
+ },
410
413
  {
414
+ "indexed": true,
411
415
  "internalType": "address",
412
- "name": "spender",
416
+ "name": "to",
413
417
  "type": "address"
414
418
  },
415
419
  {
420
+ "indexed": false,
416
421
  "internalType": "uint256",
417
- "name": "subtractedValue",
422
+ "name": "amount",
418
423
  "type": "uint256"
419
- }
420
- ],
421
- "name": "decreaseAllowance",
422
- "outputs": [
424
+ },
423
425
  {
424
- "internalType": "bool",
425
- "name": "",
426
- "type": "bool"
426
+ "indexed": false,
427
+ "internalType": "uint256",
428
+ "name": "shares",
429
+ "type": "uint256"
427
430
  }
428
431
  ],
429
- "stateMutability": "nonpayable",
430
- "type": "function"
432
+ "name": "Unstaked",
433
+ "type": "event"
431
434
  },
432
435
  {
433
- "inputs": [],
434
- "name": "factory",
435
- "outputs": [
436
+ "anonymous": false,
437
+ "inputs": [
436
438
  {
437
- "internalType": "address",
438
- "name": "",
439
- "type": "address"
439
+ "components": [
440
+ {
441
+ "internalType": "address",
442
+ "name": "recipient",
443
+ "type": "address"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "amount",
448
+ "type": "uint256"
449
+ }
450
+ ],
451
+ "indexed": false,
452
+ "internalType": "struct IRestakingPool.Unstake[]",
453
+ "name": "unstakes",
454
+ "type": "tuple[]"
440
455
  }
441
456
  ],
442
- "stateMutability": "view",
443
- "type": "function"
457
+ "name": "UnstakesDistributed",
458
+ "type": "event"
444
459
  },
445
460
  {
446
- "inputs": [
447
- {
448
- "internalType": "uint256",
449
- "name": "amount0",
450
- "type": "uint256"
451
- },
452
- {
453
- "internalType": "bytes",
454
- "name": "data",
455
- "type": "bytes"
456
- }
457
- ],
458
- "name": "getDepositAmount0In",
461
+ "inputs": [],
462
+ "name": "CALL_GAS_LIMIT",
459
463
  "outputs": [
460
464
  {
461
465
  "internalType": "uint256",
@@ -469,49 +473,33 @@
469
473
  {
470
474
  "inputs": [
471
475
  {
472
- "internalType": "uint256",
473
- "name": "amount1",
474
- "type": "uint256"
475
- },
476
- {
477
- "internalType": "bytes",
478
- "name": "data",
479
- "type": "bytes"
480
- }
481
- ],
482
- "name": "getDepositAmount1In",
483
- "outputs": [
484
- {
485
- "internalType": "uint256",
486
- "name": "",
487
- "type": "uint256"
476
+ "internalType": "string",
477
+ "name": "provider",
478
+ "type": "string"
488
479
  }
489
480
  ],
490
- "stateMutability": "view",
481
+ "name": "activateRestaking",
482
+ "outputs": [],
483
+ "stateMutability": "nonpayable",
491
484
  "type": "function"
492
485
  },
493
486
  {
494
- "inputs": [],
495
- "name": "getDomainSeparator",
496
- "outputs": [
487
+ "inputs": [
497
488
  {
498
- "internalType": "bytes32",
499
- "name": "",
500
- "type": "bytes32"
489
+ "internalType": "string",
490
+ "name": "provider",
491
+ "type": "string"
501
492
  }
502
493
  ],
503
- "stateMutability": "view",
494
+ "name": "addRestaker",
495
+ "outputs": [],
496
+ "stateMutability": "nonpayable",
504
497
  "type": "function"
505
498
  },
506
499
  {
507
500
  "inputs": [],
508
- "name": "getFees",
501
+ "name": "availableToStake",
509
502
  "outputs": [
510
- {
511
- "internalType": "uint256",
512
- "name": "",
513
- "type": "uint256"
514
- },
515
503
  {
516
504
  "internalType": "uint256",
517
505
  "name": "",
@@ -522,197 +510,163 @@
522
510
  "type": "function"
523
511
  },
524
512
  {
525
- "inputs": [],
526
- "name": "getReserves",
527
- "outputs": [
513
+ "inputs": [
528
514
  {
529
- "internalType": "uint112",
530
- "name": "",
531
- "type": "uint112"
515
+ "internalType": "string",
516
+ "name": "provider",
517
+ "type": "string"
532
518
  },
533
519
  {
534
- "internalType": "uint112",
535
- "name": "",
536
- "type": "uint112"
537
- }
538
- ],
539
- "stateMutability": "view",
540
- "type": "function"
541
- },
542
- {
543
- "inputs": [
544
- {
545
- "internalType": "uint256",
546
- "name": "amount1Out",
547
- "type": "uint256"
520
+ "internalType": "bytes[]",
521
+ "name": "pubkeys",
522
+ "type": "bytes[]"
548
523
  },
549
524
  {
550
- "internalType": "bytes",
551
- "name": "data",
552
- "type": "bytes"
553
- }
554
- ],
555
- "name": "getSwapAmount0In",
556
- "outputs": [
525
+ "internalType": "bytes[]",
526
+ "name": "signatures",
527
+ "type": "bytes[]"
528
+ },
557
529
  {
558
- "internalType": "uint256",
559
- "name": "swapAmount0In",
560
- "type": "uint256"
530
+ "internalType": "bytes32[]",
531
+ "name": "deposit_data_roots",
532
+ "type": "bytes32[]"
561
533
  }
562
534
  ],
563
- "stateMutability": "view",
535
+ "name": "batchDeposit",
536
+ "outputs": [],
537
+ "stateMutability": "nonpayable",
564
538
  "type": "function"
565
539
  },
566
540
  {
567
541
  "inputs": [
568
542
  {
569
- "internalType": "uint256",
570
- "name": "amount1In",
571
- "type": "uint256"
543
+ "internalType": "string",
544
+ "name": "provider",
545
+ "type": "string"
572
546
  },
573
- {
574
- "internalType": "bytes",
575
- "name": "data",
576
- "type": "bytes"
577
- }
578
- ],
579
- "name": "getSwapAmount0Out",
580
- "outputs": [
581
547
  {
582
548
  "internalType": "uint256",
583
- "name": "swapAmount0Out",
549
+ "name": "fee",
584
550
  "type": "uint256"
585
551
  }
586
552
  ],
587
- "stateMutability": "view",
553
+ "name": "claimRestaker",
554
+ "outputs": [],
555
+ "stateMutability": "nonpayable",
588
556
  "type": "function"
589
557
  },
590
558
  {
591
559
  "inputs": [
592
560
  {
593
- "internalType": "uint256",
594
- "name": "amount0Out",
595
- "type": "uint256"
596
- },
597
- {
598
- "internalType": "bytes",
599
- "name": "data",
600
- "type": "bytes"
601
- }
602
- ],
603
- "name": "getSwapAmount1In",
604
- "outputs": [
605
- {
606
- "internalType": "uint256",
607
- "name": "swapAmount1In",
608
- "type": "uint256"
561
+ "internalType": "address",
562
+ "name": "claimer",
563
+ "type": "address"
609
564
  }
610
565
  ],
611
- "stateMutability": "view",
566
+ "name": "claimUnstake",
567
+ "outputs": [],
568
+ "stateMutability": "nonpayable",
612
569
  "type": "function"
613
570
  },
614
571
  {
615
572
  "inputs": [
616
573
  {
617
- "internalType": "uint256",
618
- "name": "amount0In",
619
- "type": "uint256"
620
- },
621
- {
622
- "internalType": "bytes",
623
- "name": "data",
624
- "type": "bytes"
574
+ "internalType": "address",
575
+ "name": "claimer",
576
+ "type": "address"
625
577
  }
626
578
  ],
627
- "name": "getSwapAmount1Out",
579
+ "name": "claimableOf",
628
580
  "outputs": [
629
581
  {
630
582
  "internalType": "uint256",
631
- "name": "swapAmount1Out",
583
+ "name": "",
632
584
  "type": "uint256"
633
585
  }
634
586
  ],
635
587
  "stateMutability": "view",
636
588
  "type": "function"
637
- },
638
- {
639
- "inputs": [
640
- {
641
- "internalType": "address",
642
- "name": "spender",
643
- "type": "address"
644
- },
645
- {
646
- "internalType": "uint256",
647
- "name": "addedValue",
648
- "type": "uint256"
649
- }
650
- ],
651
- "name": "increaseAllowance",
589
+ },
590
+ {
591
+ "inputs": [],
592
+ "name": "config",
652
593
  "outputs": [
653
594
  {
654
- "internalType": "bool",
595
+ "internalType": "contract IProtocolConfig",
655
596
  "name": "",
656
- "type": "bool"
597
+ "type": "address"
657
598
  }
658
599
  ],
659
- "stateMutability": "nonpayable",
600
+ "stateMutability": "view",
660
601
  "type": "function"
661
602
  },
662
603
  {
663
604
  "inputs": [
664
605
  {
665
- "internalType": "address",
666
- "name": "_token0",
667
- "type": "address"
606
+ "internalType": "string",
607
+ "name": "provider",
608
+ "type": "string"
668
609
  },
669
610
  {
670
611
  "internalType": "address",
671
- "name": "_token1",
612
+ "name": "elOperator",
672
613
  "type": "address"
673
614
  },
674
615
  {
675
- "internalType": "address",
676
- "name": "_oracle",
677
- "type": "address"
616
+ "components": [
617
+ {
618
+ "internalType": "bytes",
619
+ "name": "signature",
620
+ "type": "bytes"
621
+ },
622
+ {
623
+ "internalType": "uint256",
624
+ "name": "expiry",
625
+ "type": "uint256"
626
+ }
627
+ ],
628
+ "internalType": "struct ISignatureUtils.SignatureWithExpiry",
629
+ "name": "approverSignatureAndExpiry",
630
+ "type": "tuple"
678
631
  },
679
632
  {
680
- "internalType": "address",
681
- "name": "_trader",
682
- "type": "address"
633
+ "internalType": "bytes32",
634
+ "name": "approverSalt",
635
+ "type": "bytes32"
683
636
  }
684
637
  ],
685
- "name": "initialize",
638
+ "name": "delegateTo",
686
639
  "outputs": [],
687
640
  "stateMutability": "nonpayable",
688
641
  "type": "function"
689
642
  },
690
643
  {
691
- "inputs": [
692
- {
693
- "internalType": "address",
694
- "name": "to",
695
- "type": "address"
696
- }
697
- ],
698
- "name": "mint",
644
+ "inputs": [],
645
+ "name": "distributeUnstakes",
646
+ "outputs": [],
647
+ "stateMutability": "nonpayable",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [],
652
+ "name": "getMinStake",
699
653
  "outputs": [
700
654
  {
701
655
  "internalType": "uint256",
702
- "name": "liquidityOut",
656
+ "name": "amount",
703
657
  "type": "uint256"
704
658
  }
705
659
  ],
706
- "stateMutability": "nonpayable",
660
+ "stateMutability": "view",
707
661
  "type": "function"
708
662
  },
709
663
  {
710
664
  "inputs": [],
711
- "name": "mintFee",
665
+ "name": "getMinUnstake",
712
666
  "outputs": [
713
667
  {
714
668
  "internalType": "uint256",
715
- "name": "",
669
+ "name": "shares",
716
670
  "type": "uint256"
717
671
  }
718
672
  ],
@@ -721,12 +675,12 @@
721
675
  },
722
676
  {
723
677
  "inputs": [],
724
- "name": "name",
678
+ "name": "getPending",
725
679
  "outputs": [
726
680
  {
727
- "internalType": "string",
681
+ "internalType": "uint256",
728
682
  "name": "",
729
- "type": "string"
683
+ "type": "uint256"
730
684
  }
731
685
  ],
732
686
  "stateMutability": "view",
@@ -734,13 +688,26 @@
734
688
  },
735
689
  {
736
690
  "inputs": [
691
+ {
692
+ "internalType": "string",
693
+ "name": "provider",
694
+ "type": "string"
695
+ }
696
+ ],
697
+ "name": "getRestaker",
698
+ "outputs": [
737
699
  {
738
700
  "internalType": "address",
739
701
  "name": "",
740
702
  "type": "address"
741
703
  }
742
704
  ],
743
- "name": "nonces",
705
+ "stateMutability": "view",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [],
710
+ "name": "getTotalClaimable",
744
711
  "outputs": [
745
712
  {
746
713
  "internalType": "uint256",
@@ -753,12 +720,12 @@
753
720
  },
754
721
  {
755
722
  "inputs": [],
756
- "name": "oracle",
723
+ "name": "getTotalPendingUnstakes",
757
724
  "outputs": [
758
725
  {
759
- "internalType": "address",
726
+ "internalType": "uint256",
760
727
  "name": "",
761
- "type": "address"
728
+ "type": "uint256"
762
729
  }
763
730
  ],
764
731
  "stateMutability": "view",
@@ -768,93 +735,115 @@
768
735
  "inputs": [
769
736
  {
770
737
  "internalType": "address",
771
- "name": "owner",
772
- "type": "address"
773
- },
774
- {
775
- "internalType": "address",
776
- "name": "spender",
738
+ "name": "recipient",
777
739
  "type": "address"
778
- },
779
- {
780
- "internalType": "uint256",
781
- "name": "value",
782
- "type": "uint256"
783
- },
740
+ }
741
+ ],
742
+ "name": "getTotalUnstakesOf",
743
+ "outputs": [
784
744
  {
785
745
  "internalType": "uint256",
786
- "name": "deadline",
746
+ "name": "",
787
747
  "type": "uint256"
788
- },
789
- {
790
- "internalType": "uint8",
791
- "name": "v",
792
- "type": "uint8"
793
- },
794
- {
795
- "internalType": "bytes32",
796
- "name": "r",
797
- "type": "bytes32"
798
- },
799
- {
800
- "internalType": "bytes32",
801
- "name": "s",
802
- "type": "bytes32"
803
748
  }
804
749
  ],
805
- "name": "permit",
806
- "outputs": [],
807
- "stateMutability": "nonpayable",
750
+ "stateMutability": "view",
808
751
  "type": "function"
809
752
  },
810
753
  {
811
- "inputs": [
754
+ "inputs": [],
755
+ "name": "getUnstakes",
756
+ "outputs": [
812
757
  {
813
- "internalType": "uint256",
814
- "name": "fee",
815
- "type": "uint256"
758
+ "components": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "recipient",
762
+ "type": "address"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "amount",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "internalType": "struct IRestakingPool.Unstake[]",
771
+ "name": "unstakes",
772
+ "type": "tuple[]"
816
773
  }
817
774
  ],
818
- "name": "setBurnFee",
819
- "outputs": [],
820
- "stateMutability": "nonpayable",
775
+ "stateMutability": "view",
821
776
  "type": "function"
822
777
  },
823
778
  {
824
779
  "inputs": [
825
780
  {
826
- "internalType": "uint256",
827
- "name": "fee",
828
- "type": "uint256"
781
+ "internalType": "address",
782
+ "name": "recipient",
783
+ "type": "address"
829
784
  }
830
785
  ],
831
- "name": "setMintFee",
832
- "outputs": [],
833
- "stateMutability": "nonpayable",
786
+ "name": "getUnstakesOf",
787
+ "outputs": [
788
+ {
789
+ "components": [
790
+ {
791
+ "internalType": "address",
792
+ "name": "recipient",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "uint256",
797
+ "name": "amount",
798
+ "type": "uint256"
799
+ }
800
+ ],
801
+ "internalType": "struct IRestakingPool.Unstake[]",
802
+ "name": "unstakes",
803
+ "type": "tuple[]"
804
+ }
805
+ ],
806
+ "stateMutability": "view",
834
807
  "type": "function"
835
808
  },
836
809
  {
837
810
  "inputs": [
838
811
  {
839
812
  "internalType": "address",
840
- "name": "_oracle",
813
+ "name": "claimer",
841
814
  "type": "address"
842
815
  }
843
816
  ],
844
- "name": "setOracle",
845
- "outputs": [],
846
- "stateMutability": "nonpayable",
817
+ "name": "hasClaimable",
818
+ "outputs": [
819
+ {
820
+ "internalType": "bool",
821
+ "name": "",
822
+ "type": "bool"
823
+ }
824
+ ],
825
+ "stateMutability": "view",
847
826
  "type": "function"
848
827
  },
849
828
  {
850
829
  "inputs": [
830
+ {
831
+ "internalType": "contract IProtocolConfig",
832
+ "name": "config",
833
+ "type": "address"
834
+ },
835
+ {
836
+ "internalType": "uint32",
837
+ "name": "distributeGasLimit",
838
+ "type": "uint32"
839
+ },
851
840
  {
852
841
  "internalType": "uint256",
853
- "name": "fee",
842
+ "name": "maxTVL",
854
843
  "type": "uint256"
855
844
  }
856
845
  ],
857
- "name": "setSwapFee",
846
+ "name": "initialize",
858
847
  "outputs": [],
859
848
  "stateMutability": "nonpayable",
860
849
  "type": "function"
@@ -862,12 +851,22 @@
862
851
  {
863
852
  "inputs": [
864
853
  {
865
- "internalType": "address",
866
- "name": "_trader",
867
- "type": "address"
854
+ "internalType": "string",
855
+ "name": "provider",
856
+ "type": "string"
857
+ },
858
+ {
859
+ "internalType": "contract IERC20[]",
860
+ "name": "tokenList",
861
+ "type": "address[]"
862
+ },
863
+ {
864
+ "internalType": "uint256[]",
865
+ "name": "amountsToWithdraw",
866
+ "type": "uint256[]"
868
867
  }
869
868
  ],
870
- "name": "setTrader",
869
+ "name": "recoverTokens",
871
870
  "outputs": [],
872
871
  "stateMutability": "nonpayable",
873
872
  "type": "function"
@@ -875,114 +874,86 @@
875
874
  {
876
875
  "inputs": [
877
876
  {
878
- "internalType": "uint256",
879
- "name": "amount0Out",
880
- "type": "uint256"
881
- },
882
- {
883
- "internalType": "uint256",
884
- "name": "amount1Out",
885
- "type": "uint256"
886
- },
887
- {
888
- "internalType": "address",
889
- "name": "to",
890
- "type": "address"
891
- },
892
- {
893
- "internalType": "bytes",
894
- "name": "data",
895
- "type": "bytes"
877
+ "internalType": "uint32",
878
+ "name": "newValue",
879
+ "type": "uint32"
896
880
  }
897
881
  ],
898
- "name": "swap",
882
+ "name": "setDistributeGasLimit",
899
883
  "outputs": [],
900
884
  "stateMutability": "nonpayable",
901
885
  "type": "function"
902
886
  },
903
887
  {
904
- "inputs": [],
905
- "name": "swapFee",
906
- "outputs": [
888
+ "inputs": [
907
889
  {
908
890
  "internalType": "uint256",
909
- "name": "",
891
+ "name": "newValue",
910
892
  "type": "uint256"
911
893
  }
912
894
  ],
913
- "stateMutability": "view",
895
+ "name": "setMaxTVL",
896
+ "outputs": [],
897
+ "stateMutability": "nonpayable",
914
898
  "type": "function"
915
899
  },
916
900
  {
917
- "inputs": [],
918
- "name": "symbol",
919
- "outputs": [
901
+ "inputs": [
920
902
  {
921
- "internalType": "string",
922
- "name": "",
923
- "type": "string"
903
+ "internalType": "uint256",
904
+ "name": "newValue",
905
+ "type": "uint256"
924
906
  }
925
907
  ],
926
- "stateMutability": "view",
927
- "type": "function"
928
- },
929
- {
930
- "inputs": [],
931
- "name": "sync",
908
+ "name": "setMinStake",
932
909
  "outputs": [],
933
910
  "stateMutability": "nonpayable",
934
911
  "type": "function"
935
912
  },
936
913
  {
937
- "inputs": [],
938
- "name": "token0",
939
- "outputs": [
914
+ "inputs": [
940
915
  {
941
- "internalType": "address",
942
- "name": "",
943
- "type": "address"
916
+ "internalType": "uint256",
917
+ "name": "newValue",
918
+ "type": "uint256"
944
919
  }
945
920
  ],
946
- "stateMutability": "view",
921
+ "name": "setMinUnstake",
922
+ "outputs": [],
923
+ "stateMutability": "nonpayable",
947
924
  "type": "function"
948
925
  },
949
926
  {
950
927
  "inputs": [],
951
- "name": "token1",
952
- "outputs": [
953
- {
954
- "internalType": "address",
955
- "name": "",
956
- "type": "address"
957
- }
958
- ],
959
- "stateMutability": "view",
928
+ "name": "stake",
929
+ "outputs": [],
930
+ "stateMutability": "payable",
960
931
  "type": "function"
961
932
  },
962
933
  {
963
- "inputs": [],
964
- "name": "totalSupply",
965
- "outputs": [
934
+ "inputs": [
966
935
  {
967
- "internalType": "uint256",
968
- "name": "",
969
- "type": "uint256"
936
+ "internalType": "bytes32",
937
+ "name": "code",
938
+ "type": "bytes32"
970
939
  }
971
940
  ],
972
- "stateMutability": "view",
941
+ "name": "stake",
942
+ "outputs": [],
943
+ "stateMutability": "payable",
973
944
  "type": "function"
974
945
  },
975
946
  {
976
- "inputs": [],
977
- "name": "trader",
978
- "outputs": [
947
+ "inputs": [
979
948
  {
980
- "internalType": "address",
981
- "name": "",
982
- "type": "address"
949
+ "internalType": "string",
950
+ "name": "provider",
951
+ "type": "string"
983
952
  }
984
953
  ],
985
- "stateMutability": "view",
954
+ "name": "undelegate",
955
+ "outputs": [],
956
+ "stateMutability": "nonpayable",
986
957
  "type": "function"
987
958
  },
988
959
  {
@@ -994,48 +965,98 @@
994
965
  },
995
966
  {
996
967
  "internalType": "uint256",
997
- "name": "value",
968
+ "name": "shares",
998
969
  "type": "uint256"
999
970
  }
1000
971
  ],
1001
- "name": "transfer",
1002
- "outputs": [
972
+ "name": "unstake",
973
+ "outputs": [],
974
+ "stateMutability": "nonpayable",
975
+ "type": "function"
976
+ },
977
+ {
978
+ "inputs": [
1003
979
  {
1004
- "internalType": "bool",
1005
- "name": "",
1006
- "type": "bool"
980
+ "internalType": "string",
981
+ "name": "provider",
982
+ "type": "string"
983
+ },
984
+ {
985
+ "internalType": "uint64",
986
+ "name": "oracleTimestamp",
987
+ "type": "uint64"
988
+ },
989
+ {
990
+ "components": [
991
+ {
992
+ "internalType": "bytes32",
993
+ "name": "beaconStateRoot",
994
+ "type": "bytes32"
995
+ },
996
+ {
997
+ "internalType": "bytes",
998
+ "name": "proof",
999
+ "type": "bytes"
1000
+ }
1001
+ ],
1002
+ "internalType": "struct BeaconChainProofs.StateRootProof",
1003
+ "name": "stateRootProof",
1004
+ "type": "tuple"
1005
+ },
1006
+ {
1007
+ "internalType": "uint40[]",
1008
+ "name": "validatorIndices",
1009
+ "type": "uint40[]"
1010
+ },
1011
+ {
1012
+ "internalType": "bytes[]",
1013
+ "name": "validatorFieldsProofs",
1014
+ "type": "bytes[]"
1015
+ },
1016
+ {
1017
+ "internalType": "bytes32[][]",
1018
+ "name": "validatorFields",
1019
+ "type": "bytes32[][]"
1007
1020
  }
1008
1021
  ],
1022
+ "name": "verifyWithdrawalCredentials",
1023
+ "outputs": [],
1009
1024
  "stateMutability": "nonpayable",
1010
1025
  "type": "function"
1011
1026
  },
1012
1027
  {
1013
1028
  "inputs": [
1014
1029
  {
1015
- "internalType": "address",
1016
- "name": "from",
1017
- "type": "address"
1018
- },
1030
+ "internalType": "string",
1031
+ "name": "provider",
1032
+ "type": "string"
1033
+ }
1034
+ ],
1035
+ "name": "withdrawBeforeRestaking",
1036
+ "outputs": [],
1037
+ "stateMutability": "nonpayable",
1038
+ "type": "function"
1039
+ },
1040
+ {
1041
+ "inputs": [
1019
1042
  {
1020
- "internalType": "address",
1021
- "name": "to",
1022
- "type": "address"
1043
+ "internalType": "string",
1044
+ "name": "provider",
1045
+ "type": "string"
1023
1046
  },
1024
1047
  {
1025
1048
  "internalType": "uint256",
1026
- "name": "value",
1049
+ "name": "amountToWithdraw",
1027
1050
  "type": "uint256"
1028
1051
  }
1029
1052
  ],
1030
- "name": "transferFrom",
1031
- "outputs": [
1032
- {
1033
- "internalType": "bool",
1034
- "name": "",
1035
- "type": "bool"
1036
- }
1037
- ],
1053
+ "name": "withdrawNonBeaconChainETHBalanceWei",
1054
+ "outputs": [],
1038
1055
  "stateMutability": "nonpayable",
1039
1056
  "type": "function"
1057
+ },
1058
+ {
1059
+ "stateMutability": "payable",
1060
+ "type": "receive"
1040
1061
  }
1041
1062
  ]