@paraswap/dex-lib 3.7.2 → 3.7.3

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 (236) hide show
  1. package/build/abi/Redstone.json +739 -0
  2. package/build/abi/aavev3stata/Factory.json +128 -0
  3. package/build/abi/aavev3stata/Token.json +735 -0
  4. package/build/abi/angle-transmuter/MorphoOracle.json +193 -0
  5. package/build/abi/angle-transmuter/MorphoVault.json +2506 -0
  6. package/build/abi/angle-transmuter/Pyth.json +1534 -0
  7. package/build/abi/angle-transmuter/Transmuter.json +1711 -0
  8. package/build/abi/angle-transmuter/TransmuterSidechain.json +1798 -0
  9. package/build/abi/idle-dao/idle-cdo-factory.json +38 -0
  10. package/build/abi/idle-dao/idle-cdo.json +1245 -0
  11. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  12. package/build/dex/aave-v1/aave-v1.js +22 -0
  13. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  14. package/build/dex/aave-v3-stata/aave-v3-stata.d.ts +50 -0
  15. package/build/dex/aave-v3-stata/aave-v3-stata.js +365 -0
  16. package/build/dex/aave-v3-stata/aave-v3-stata.js.map +1 -0
  17. package/build/dex/aave-v3-stata/config.d.ts +4 -0
  18. package/build/dex/aave-v3-stata/config.js +50 -0
  19. package/build/dex/aave-v3-stata/config.js.map +1 -0
  20. package/build/dex/aave-v3-stata/tokens.d.ts +9 -0
  21. package/build/dex/aave-v3-stata/tokens.js +37 -0
  22. package/build/dex/aave-v3-stata/tokens.js.map +1 -0
  23. package/build/dex/aave-v3-stata/types.d.ts +46 -0
  24. package/build/dex/aave-v3-stata/types.js +23 -0
  25. package/build/dex/aave-v3-stata/types.js.map +1 -0
  26. package/build/dex/aave-v3-stata/utils.d.ts +4 -0
  27. package/build/dex/aave-v3-stata/utils.js +67 -0
  28. package/build/dex/aave-v3-stata/utils.js.map +1 -0
  29. package/build/dex/angle-transmuter/angle-transmuter-pool.d.ts +67 -0
  30. package/build/dex/angle-transmuter/angle-transmuter-pool.js +448 -0
  31. package/build/dex/angle-transmuter/angle-transmuter-pool.js.map +1 -0
  32. package/build/dex/angle-transmuter/angle-transmuter.d.ts +59 -0
  33. package/build/dex/angle-transmuter/angle-transmuter.js +264 -0
  34. package/build/dex/angle-transmuter/angle-transmuter.js.map +1 -0
  35. package/build/dex/angle-transmuter/backedOracle.d.ts +19 -0
  36. package/build/dex/angle-transmuter/backedOracle.js +56 -0
  37. package/build/dex/angle-transmuter/backedOracle.js.map +1 -0
  38. package/build/dex/angle-transmuter/config.d.ts +4 -0
  39. package/build/dex/angle-transmuter/config.js +50 -0
  40. package/build/dex/angle-transmuter/config.js.map +1 -0
  41. package/build/dex/angle-transmuter/constants.d.ts +9 -0
  42. package/build/dex/angle-transmuter/constants.js +136 -0
  43. package/build/dex/angle-transmuter/constants.js.map +1 -0
  44. package/build/dex/angle-transmuter/morphoOracle.d.ts +42 -0
  45. package/build/dex/angle-transmuter/morphoOracle.js +179 -0
  46. package/build/dex/angle-transmuter/morphoOracle.js.map +1 -0
  47. package/build/dex/angle-transmuter/morphoVault.d.ts +20 -0
  48. package/build/dex/angle-transmuter/morphoVault.js +84 -0
  49. package/build/dex/angle-transmuter/morphoVault.js.map +1 -0
  50. package/build/dex/angle-transmuter/pyth.d.ts +19 -0
  51. package/build/dex/angle-transmuter/pyth.js +70 -0
  52. package/build/dex/angle-transmuter/pyth.js.map +1 -0
  53. package/build/dex/angle-transmuter/redstone.d.ts +20 -0
  54. package/build/dex/angle-transmuter/redstone.js +64 -0
  55. package/build/dex/angle-transmuter/redstone.js.map +1 -0
  56. package/build/dex/angle-transmuter/transmuter.d.ts +55 -0
  57. package/build/dex/angle-transmuter/transmuter.js +398 -0
  58. package/build/dex/angle-transmuter/transmuter.js.map +1 -0
  59. package/build/dex/angle-transmuter/types.d.ts +189 -0
  60. package/build/dex/angle-transmuter/types.js +33 -0
  61. package/build/dex/angle-transmuter/types.js.map +1 -0
  62. package/build/dex/angle-transmuter/utils.d.ts +9 -0
  63. package/build/dex/angle-transmuter/utils.js +257 -0
  64. package/build/dex/angle-transmuter/utils.js.map +1 -0
  65. package/build/dex/idle-dao/config.d.ts +6 -0
  66. package/build/dex/idle-dao/config.js +307 -0
  67. package/build/dex/idle-dao/config.js.map +1 -0
  68. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  69. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  70. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  71. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  72. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  73. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  74. package/build/dex/idle-dao/idle-dao.d.ts +41 -0
  75. package/build/dex/idle-dao/idle-dao.js +238 -0
  76. package/build/dex/idle-dao/idle-dao.js.map +1 -0
  77. package/build/dex/idle-dao/scripts.d.ts +9 -0
  78. package/build/dex/idle-dao/scripts.js +552 -0
  79. package/build/dex/idle-dao/scripts.js.map +1 -0
  80. package/build/dex/idle-dao/tokens.d.ts +9 -0
  81. package/build/dex/idle-dao/tokens.js +65 -0
  82. package/build/dex/idle-dao/tokens.js.map +1 -0
  83. package/build/dex/idle-dao/types.d.ts +35 -0
  84. package/build/dex/idle-dao/types.js +11 -0
  85. package/build/dex/idle-dao/types.js.map +1 -0
  86. package/build/dex/idle-dao/utils.d.ts +8 -0
  87. package/build/dex/idle-dao/utils.js +148 -0
  88. package/build/dex/idle-dao/utils.js.map +1 -0
  89. package/build/dex/index.js +2 -0
  90. package/build/dex/index.js.map +1 -1
  91. package/build/dex/platypus/platypus.d.ts +2 -1
  92. package/build/dex/platypus/platypus.js +31 -0
  93. package/build/dex/platypus/platypus.js.map +1 -1
  94. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  95. package/build/dex/swaap-v1/swaap-v1.js +10 -0
  96. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  97. package/build/lib/chainlink.d.ts +2 -0
  98. package/build/lib/chainlink.js +9 -0
  99. package/build/lib/chainlink.js.map +1 -1
  100. package/build/utils.d.ts +1 -1
  101. package/package.json +1 -1
  102. package/src/abi/Redstone.json +739 -0
  103. package/src/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  104. package/src/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  105. package/src/abi/angle-transmuter/MorphoOracle.json +193 -0
  106. package/src/abi/angle-transmuter/MorphoVault.json +2506 -0
  107. package/src/abi/angle-transmuter/Pyth.json +1534 -0
  108. package/src/abi/angle-transmuter/Transmuter.json +1711 -0
  109. package/src/abi/angle-transmuter/TransmuterSidechain.json +1798 -0
  110. package/src/dex/angle-transmuter/angle-transmuter-e2e.test.ts +156 -0
  111. package/src/dex/angle-transmuter/angle-transmuter-events.test.ts +365 -0
  112. package/src/dex/angle-transmuter/angle-transmuter-integration.test.ts +390 -0
  113. package/src/dex/angle-transmuter/angle-transmuter-pool.ts +895 -0
  114. package/src/dex/angle-transmuter/angle-transmuter.ts +408 -0
  115. package/src/dex/angle-transmuter/backedOracle.ts +91 -0
  116. package/src/dex/angle-transmuter/config.ts +50 -0
  117. package/src/dex/angle-transmuter/constants.ts +138 -0
  118. package/src/dex/angle-transmuter/morphoOracle.ts +335 -0
  119. package/src/dex/angle-transmuter/morphoVault.ts +134 -0
  120. package/src/dex/angle-transmuter/pyth.ts +105 -0
  121. package/src/dex/angle-transmuter/redstone.ts +105 -0
  122. package/src/dex/angle-transmuter/transmuter.ts +619 -0
  123. package/src/dex/angle-transmuter/types.ts +203 -0
  124. package/src/dex/angle-transmuter/utils.ts +358 -0
  125. package/src/dex/index.ts +2 -0
  126. package/src/lib/chainlink.ts +15 -0
  127. package/tests/constants-e2e.ts +48 -3
  128. package/build/abi/Uncompressor.json +0 -250
  129. package/build/dex/bProtocol.d.ts +0 -18
  130. package/build/dex/bProtocol.js +0 -39
  131. package/build/dex/bProtocol.js.map +0 -1
  132. package/build/dex/bancor.d.ts +0 -26
  133. package/build/dex/bancor.js +0 -58
  134. package/build/dex/bancor.js.map +0 -1
  135. package/build/dex/compound.d.ts +0 -18
  136. package/build/dex/compound.js +0 -46
  137. package/build/dex/compound.js.map +0 -1
  138. package/build/dex/curve-v2.d.ts +0 -58
  139. package/build/dex/curve-v2.js +0 -180
  140. package/build/dex/curve-v2.js.map +0 -1
  141. package/build/dex/dodo-v1.d.ts +0 -33
  142. package/build/dex/dodo-v1.js +0 -63
  143. package/build/dex/dodo-v1.js.map +0 -1
  144. package/build/dex/etherfi/etherfi.d.ts +0 -26
  145. package/build/dex/etherfi/etherfi.js +0 -96
  146. package/build/dex/etherfi/etherfi.js.map +0 -1
  147. package/build/dex/lido.d.ts +0 -19
  148. package/build/dex/lido.js +0 -42
  149. package/build/dex/lido.js.map +0 -1
  150. package/build/dex/onebit.d.ts +0 -25
  151. package/build/dex/onebit.js +0 -42
  152. package/build/dex/onebit.js.map +0 -1
  153. package/build/dex/sdai/config.d.ts +0 -11
  154. package/build/dex/sdai/config.js +0 -21
  155. package/build/dex/sdai/config.js.map +0 -1
  156. package/build/dex/sdai/constants.d.ts +0 -2
  157. package/build/dex/sdai/constants.js +0 -6
  158. package/build/dex/sdai/constants.js.map +0 -1
  159. package/build/dex/sdai/scripts/validate-state.d.ts +0 -1
  160. package/build/dex/sdai/scripts/validate-state.js +0 -102
  161. package/build/dex/sdai/scripts/validate-state.js.map +0 -1
  162. package/build/dex/sdai/sdai-pool.d.ts +0 -16
  163. package/build/dex/sdai/sdai-pool.js +0 -85
  164. package/build/dex/sdai/sdai-pool.js.map +0 -1
  165. package/build/dex/sdai/sdai.d.ts +0 -51
  166. package/build/dex/sdai/sdai.js +0 -172
  167. package/build/dex/sdai/sdai.js.map +0 -1
  168. package/build/dex/sdai/types.d.ts +0 -21
  169. package/build/dex/sdai/types.js +0 -11
  170. package/build/dex/sdai/types.js.map +0 -1
  171. package/build/dex/sdai/utils.d.ts +0 -4
  172. package/build/dex/sdai/utils.js +0 -39
  173. package/build/dex/sdai/utils.js.map +0 -1
  174. package/build/dex/smoothy.d.ts +0 -26
  175. package/build/dex/smoothy.js +0 -48
  176. package/build/dex/smoothy.js.map +0 -1
  177. package/build/dex/stable-pool.d.ts +0 -28
  178. package/build/dex/stable-pool.js +0 -62
  179. package/build/dex/stable-pool.js.map +0 -1
  180. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  181. package/build/dex/trader-joe-v2.1.js +0 -79
  182. package/build/dex/trader-joe-v2.1.js.map +0 -1
  183. package/build/executor/compressor/Compressor.d.ts +0 -23
  184. package/build/executor/compressor/Compressor.js +0 -144
  185. package/build/executor/compressor/Compressor.js.map +0 -1
  186. package/build/executor/compressor/compress.d.ts +0 -17
  187. package/build/executor/compressor/compress.js +0 -187
  188. package/build/executor/compressor/compress.js.map +0 -1
  189. package/build/executor/compressor/compress_functions/addressSubstitution.d.ts +0 -6
  190. package/build/executor/compressor/compress_functions/addressSubstitution.js +0 -29
  191. package/build/executor/compressor/compress_functions/addressSubstitution.js.map +0 -1
  192. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.d.ts +0 -10
  193. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js +0 -40
  194. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js.map +0 -1
  195. package/build/executor/compressor/compress_functions/byteSubstitution.d.ts +0 -11
  196. package/build/executor/compressor/compress_functions/byteSubstitution.js +0 -64
  197. package/build/executor/compressor/compress_functions/byteSubstitution.js.map +0 -1
  198. package/build/executor/compressor/compress_functions/ffSubstitution.d.ts +0 -7
  199. package/build/executor/compressor/compress_functions/ffSubstitution.js +0 -54
  200. package/build/executor/compressor/compress_functions/ffSubstitution.js.map +0 -1
  201. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.d.ts +0 -8
  202. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js +0 -67
  203. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js.map +0 -1
  204. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.d.ts +0 -8
  205. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js +0 -61
  206. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js.map +0 -1
  207. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.d.ts +0 -6
  208. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js +0 -37
  209. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js.map +0 -1
  210. package/build/executor/compressor/compress_functions/searchUnusedBytes.d.ts +0 -9
  211. package/build/executor/compressor/compress_functions/searchUnusedBytes.js +0 -33
  212. package/build/executor/compressor/compress_functions/searchUnusedBytes.js.map +0 -1
  213. package/build/executor/compressor/fetchSaved.d.ts +0 -0
  214. package/build/executor/compressor/fetchSaved.js +0 -17
  215. package/build/executor/compressor/fetchSaved.js.map +0 -1
  216. package/build/executor/compressor/utils/computeCostL2.d.ts +0 -2
  217. package/build/executor/compressor/utils/computeCostL2.js +0 -14
  218. package/build/executor/compressor/utils/computeCostL2.js.map +0 -1
  219. package/build/executor/compressor/utils/findLongestDuplicatedString.d.ts +0 -2
  220. package/build/executor/compressor/utils/findLongestDuplicatedString.js +0 -30
  221. package/build/executor/compressor/utils/findLongestDuplicatedString.js.map +0 -1
  222. package/build/executor/compressor/utils/getAllIndexes.d.ts +0 -2
  223. package/build/executor/compressor/utils/getAllIndexes.js +0 -12
  224. package/build/executor/compressor/utils/getAllIndexes.js.map +0 -1
  225. package/build/executor/compressor/utils/getByteForAddress.d.ts +0 -2
  226. package/build/executor/compressor/utils/getByteForAddress.js +0 -14
  227. package/build/executor/compressor/utils/getByteForAddress.js.map +0 -1
  228. package/build/executor/compressor/utils/intTo2Bytes.d.ts +0 -2
  229. package/build/executor/compressor/utils/intTo2Bytes.js +0 -14
  230. package/build/executor/compressor/utils/intTo2Bytes.js.map +0 -1
  231. package/build/executor/compressor/utils/intTo3Bytes.d.ts +0 -2
  232. package/build/executor/compressor/utils/intTo3Bytes.js +0 -18
  233. package/build/executor/compressor/utils/intTo3Bytes.js.map +0 -1
  234. package/build/executor/compressor/utils/intToByte.d.ts +0 -2
  235. package/build/executor/compressor/utils/intToByte.js +0 -10
  236. package/build/executor/compressor/utils/intToByte.js.map +0 -1
@@ -0,0 +1,735 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "contract IPool", "name": "pool", "type": "address" },
5
+ {
6
+ "internalType": "contract IRewardsController",
7
+ "name": "rewardsController",
8
+ "type": "address"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable",
12
+ "type": "constructor"
13
+ },
14
+ { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
15
+ {
16
+ "inputs": [
17
+ { "internalType": "uint256", "name": "length", "type": "uint256" }
18
+ ],
19
+ "name": "ECDSAInvalidSignatureLength",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
24
+ "name": "ECDSAInvalidSignatureS",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ { "internalType": "address", "name": "token", "type": "address" }
30
+ ],
31
+ "name": "SafeERC20FailedOperation",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "owner",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "spender",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "amount",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "Approval",
57
+ "type": "event"
58
+ },
59
+ {
60
+ "anonymous": false,
61
+ "inputs": [
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "sender",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "indexed": true,
70
+ "internalType": "address",
71
+ "name": "owner",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "uint256",
77
+ "name": "assets",
78
+ "type": "uint256"
79
+ },
80
+ {
81
+ "indexed": false,
82
+ "internalType": "uint256",
83
+ "name": "shares",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "Deposit",
88
+ "type": "event"
89
+ },
90
+ {
91
+ "anonymous": false,
92
+ "inputs": [
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint8",
96
+ "name": "version",
97
+ "type": "uint8"
98
+ }
99
+ ],
100
+ "name": "Initialized",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": true,
108
+ "internalType": "address",
109
+ "name": "aToken",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "string",
115
+ "name": "staticATokenName",
116
+ "type": "string"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "internalType": "string",
121
+ "name": "staticATokenSymbol",
122
+ "type": "string"
123
+ }
124
+ ],
125
+ "name": "Initialized",
126
+ "type": "event"
127
+ },
128
+ {
129
+ "anonymous": false,
130
+ "inputs": [
131
+ {
132
+ "indexed": true,
133
+ "internalType": "address",
134
+ "name": "reward",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint256",
140
+ "name": "startIndex",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "name": "RewardTokenRegistered",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": true,
152
+ "internalType": "address",
153
+ "name": "from",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": true,
158
+ "internalType": "address",
159
+ "name": "to",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "uint256",
165
+ "name": "amount",
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "name": "Transfer",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "sender",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": true,
183
+ "internalType": "address",
184
+ "name": "receiver",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "owner",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": false,
195
+ "internalType": "uint256",
196
+ "name": "assets",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint256",
202
+ "name": "shares",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "name": "Withdraw",
207
+ "type": "event"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "DOMAIN_SEPARATOR",
212
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "INCENTIVES_CONTROLLER",
219
+ "outputs": [
220
+ {
221
+ "internalType": "contract IRewardsController",
222
+ "name": "",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "METADEPOSIT_TYPEHASH",
232
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [],
238
+ "name": "METAWITHDRAWAL_TYPEHASH",
239
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
240
+ "stateMutability": "view",
241
+ "type": "function"
242
+ },
243
+ {
244
+ "inputs": [],
245
+ "name": "PERMIT_TYPEHASH",
246
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
247
+ "stateMutability": "view",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "POOL",
253
+ "outputs": [
254
+ { "internalType": "contract IPool", "name": "", "type": "address" }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [],
261
+ "name": "STATIC__ATOKEN_LM_REVISION",
262
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
263
+ "stateMutability": "view",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [],
268
+ "name": "aToken",
269
+ "outputs": [
270
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
271
+ ],
272
+ "stateMutability": "view",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [
277
+ { "internalType": "address", "name": "", "type": "address" },
278
+ { "internalType": "address", "name": "", "type": "address" }
279
+ ],
280
+ "name": "allowance",
281
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
282
+ "stateMutability": "view",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "inputs": [
287
+ { "internalType": "address", "name": "spender", "type": "address" },
288
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
289
+ ],
290
+ "name": "approve",
291
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
292
+ "stateMutability": "nonpayable",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "asset",
298
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
304
+ "name": "balanceOf",
305
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "inputs": [
311
+ { "internalType": "address", "name": "receiver", "type": "address" },
312
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
313
+ ],
314
+ "name": "claimRewards",
315
+ "outputs": [],
316
+ "stateMutability": "nonpayable",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ { "internalType": "address", "name": "onBehalfOf", "type": "address" },
322
+ { "internalType": "address", "name": "receiver", "type": "address" },
323
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
324
+ ],
325
+ "name": "claimRewardsOnBehalf",
326
+ "outputs": [],
327
+ "stateMutability": "nonpayable",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [
332
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
333
+ ],
334
+ "name": "claimRewardsToSelf",
335
+ "outputs": [],
336
+ "stateMutability": "nonpayable",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [
341
+ { "internalType": "address", "name": "reward", "type": "address" }
342
+ ],
343
+ "name": "collectAndUpdateRewards",
344
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
345
+ "stateMutability": "nonpayable",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
351
+ ],
352
+ "name": "convertToAssets",
353
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
354
+ "stateMutability": "view",
355
+ "type": "function"
356
+ },
357
+ {
358
+ "inputs": [
359
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
360
+ ],
361
+ "name": "convertToShares",
362
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "decimals",
369
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
376
+ { "internalType": "address", "name": "receiver", "type": "address" },
377
+ { "internalType": "uint16", "name": "referralCode", "type": "uint16" },
378
+ { "internalType": "bool", "name": "depositToAave", "type": "bool" }
379
+ ],
380
+ "name": "deposit",
381
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
382
+ "stateMutability": "nonpayable",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [
387
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
388
+ { "internalType": "address", "name": "receiver", "type": "address" }
389
+ ],
390
+ "name": "deposit",
391
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ { "internalType": "address", "name": "user", "type": "address" },
398
+ { "internalType": "address", "name": "reward", "type": "address" }
399
+ ],
400
+ "name": "getClaimableRewards",
401
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
402
+ "stateMutability": "view",
403
+ "type": "function"
404
+ },
405
+ {
406
+ "inputs": [
407
+ { "internalType": "address", "name": "reward", "type": "address" }
408
+ ],
409
+ "name": "getCurrentRewardsIndex",
410
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
411
+ "stateMutability": "view",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [
416
+ { "internalType": "address", "name": "reward", "type": "address" }
417
+ ],
418
+ "name": "getTotalClaimableRewards",
419
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
420
+ "stateMutability": "view",
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [
425
+ { "internalType": "address", "name": "user", "type": "address" },
426
+ { "internalType": "address", "name": "reward", "type": "address" }
427
+ ],
428
+ "name": "getUnclaimedRewards",
429
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ { "internalType": "address", "name": "newAToken", "type": "address" },
436
+ {
437
+ "internalType": "string",
438
+ "name": "staticATokenName",
439
+ "type": "string"
440
+ },
441
+ {
442
+ "internalType": "string",
443
+ "name": "staticATokenSymbol",
444
+ "type": "string"
445
+ }
446
+ ],
447
+ "name": "initialize",
448
+ "outputs": [],
449
+ "stateMutability": "nonpayable",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ { "internalType": "address", "name": "reward", "type": "address" }
455
+ ],
456
+ "name": "isRegisteredRewardToken",
457
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
458
+ "stateMutability": "view",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
463
+ "name": "maxDeposit",
464
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
470
+ "name": "maxMint",
471
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
472
+ "stateMutability": "view",
473
+ "type": "function"
474
+ },
475
+ {
476
+ "inputs": [
477
+ { "internalType": "address", "name": "owner", "type": "address" }
478
+ ],
479
+ "name": "maxRedeem",
480
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
481
+ "stateMutability": "view",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [
486
+ { "internalType": "address", "name": "owner", "type": "address" }
487
+ ],
488
+ "name": "maxWithdraw",
489
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [
495
+ { "internalType": "address", "name": "depositor", "type": "address" },
496
+ { "internalType": "address", "name": "receiver", "type": "address" },
497
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
498
+ { "internalType": "uint16", "name": "referralCode", "type": "uint16" },
499
+ { "internalType": "bool", "name": "depositToAave", "type": "bool" },
500
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
501
+ {
502
+ "components": [
503
+ { "internalType": "address", "name": "owner", "type": "address" },
504
+ { "internalType": "address", "name": "spender", "type": "address" },
505
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
506
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
507
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
508
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
509
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
510
+ ],
511
+ "internalType": "struct IStaticATokenLM.PermitParams",
512
+ "name": "permit",
513
+ "type": "tuple"
514
+ },
515
+ {
516
+ "components": [
517
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
518
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
519
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
520
+ ],
521
+ "internalType": "struct IStaticATokenLM.SignatureParams",
522
+ "name": "sigParams",
523
+ "type": "tuple"
524
+ }
525
+ ],
526
+ "name": "metaDeposit",
527
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
528
+ "stateMutability": "nonpayable",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ { "internalType": "address", "name": "owner", "type": "address" },
534
+ { "internalType": "address", "name": "receiver", "type": "address" },
535
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
536
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
537
+ { "internalType": "bool", "name": "withdrawFromAave", "type": "bool" },
538
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
539
+ {
540
+ "components": [
541
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
542
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
543
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
544
+ ],
545
+ "internalType": "struct IStaticATokenLM.SignatureParams",
546
+ "name": "sigParams",
547
+ "type": "tuple"
548
+ }
549
+ ],
550
+ "name": "metaWithdraw",
551
+ "outputs": [
552
+ { "internalType": "uint256", "name": "", "type": "uint256" },
553
+ { "internalType": "uint256", "name": "", "type": "uint256" }
554
+ ],
555
+ "stateMutability": "nonpayable",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [
560
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
561
+ { "internalType": "address", "name": "receiver", "type": "address" }
562
+ ],
563
+ "name": "mint",
564
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
565
+ "stateMutability": "nonpayable",
566
+ "type": "function"
567
+ },
568
+ {
569
+ "inputs": [],
570
+ "name": "name",
571
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
572
+ "stateMutability": "view",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
577
+ "name": "nonces",
578
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
579
+ "stateMutability": "view",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [
584
+ { "internalType": "address", "name": "owner", "type": "address" },
585
+ { "internalType": "address", "name": "spender", "type": "address" },
586
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
587
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
588
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
589
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
590
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
591
+ ],
592
+ "name": "permit",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [
599
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
600
+ ],
601
+ "name": "previewDeposit",
602
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
603
+ "stateMutability": "view",
604
+ "type": "function"
605
+ },
606
+ {
607
+ "inputs": [
608
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
609
+ ],
610
+ "name": "previewMint",
611
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [
617
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
618
+ ],
619
+ "name": "previewRedeem",
620
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [
626
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
627
+ ],
628
+ "name": "previewWithdraw",
629
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
630
+ "stateMutability": "view",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [],
635
+ "name": "rate",
636
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
637
+ "stateMutability": "view",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "inputs": [
642
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
643
+ { "internalType": "address", "name": "receiver", "type": "address" },
644
+ { "internalType": "address", "name": "owner", "type": "address" }
645
+ ],
646
+ "name": "redeem",
647
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
648
+ "stateMutability": "nonpayable",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [
653
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
654
+ { "internalType": "address", "name": "receiver", "type": "address" },
655
+ { "internalType": "address", "name": "owner", "type": "address" },
656
+ { "internalType": "bool", "name": "withdrawFromAave", "type": "bool" }
657
+ ],
658
+ "name": "redeem",
659
+ "outputs": [
660
+ { "internalType": "uint256", "name": "", "type": "uint256" },
661
+ { "internalType": "uint256", "name": "", "type": "uint256" }
662
+ ],
663
+ "stateMutability": "nonpayable",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [],
668
+ "name": "refreshRewardTokens",
669
+ "outputs": [],
670
+ "stateMutability": "nonpayable",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [],
675
+ "name": "rewardTokens",
676
+ "outputs": [
677
+ { "internalType": "address[]", "name": "", "type": "address[]" }
678
+ ],
679
+ "stateMutability": "view",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [],
684
+ "name": "symbol",
685
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "totalAssets",
692
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [],
698
+ "name": "totalSupply",
699
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
700
+ "stateMutability": "view",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [
705
+ { "internalType": "address", "name": "to", "type": "address" },
706
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
707
+ ],
708
+ "name": "transfer",
709
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
710
+ "stateMutability": "nonpayable",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [
715
+ { "internalType": "address", "name": "from", "type": "address" },
716
+ { "internalType": "address", "name": "to", "type": "address" },
717
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
718
+ ],
719
+ "name": "transferFrom",
720
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
721
+ "stateMutability": "nonpayable",
722
+ "type": "function"
723
+ },
724
+ {
725
+ "inputs": [
726
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
727
+ { "internalType": "address", "name": "receiver", "type": "address" },
728
+ { "internalType": "address", "name": "owner", "type": "address" }
729
+ ],
730
+ "name": "withdraw",
731
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
732
+ "stateMutability": "nonpayable",
733
+ "type": "function"
734
+ }
735
+ ]