@underscore-finance/sdk 1.0.11 → 1.1.2

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 (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -1,1546 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
6
- export const abi = [
7
- {
8
- anonymous: false,
9
- inputs: [
10
- {
11
- indexed: true,
12
- name: 'sender',
13
- type: 'address',
14
- },
15
- {
16
- indexed: true,
17
- name: 'tokenIn',
18
- type: 'address',
19
- },
20
- {
21
- indexed: true,
22
- name: 'tokenOut',
23
- type: 'address',
24
- },
25
- {
26
- indexed: false,
27
- name: 'amountIn',
28
- type: 'uint256',
29
- },
30
- {
31
- indexed: false,
32
- name: 'amountOut',
33
- type: 'uint256',
34
- },
35
- {
36
- indexed: false,
37
- name: 'usdValue',
38
- type: 'uint256',
39
- },
40
- {
41
- indexed: false,
42
- name: 'numTokens',
43
- type: 'uint256',
44
- },
45
- {
46
- indexed: false,
47
- name: 'recipient',
48
- type: 'address',
49
- },
50
- ],
51
- name: 'AerodromeSwap',
52
- type: 'event',
53
- },
54
- {
55
- anonymous: false,
56
- inputs: [
57
- {
58
- indexed: true,
59
- name: 'sender',
60
- type: 'address',
61
- },
62
- {
63
- indexed: true,
64
- name: 'tokenA',
65
- type: 'address',
66
- },
67
- {
68
- indexed: true,
69
- name: 'tokenB',
70
- type: 'address',
71
- },
72
- {
73
- indexed: false,
74
- name: 'amountA',
75
- type: 'uint256',
76
- },
77
- {
78
- indexed: false,
79
- name: 'amountB',
80
- type: 'uint256',
81
- },
82
- {
83
- indexed: false,
84
- name: 'lpAmountReceived',
85
- type: 'uint256',
86
- },
87
- {
88
- indexed: false,
89
- name: 'usdValue',
90
- type: 'uint256',
91
- },
92
- {
93
- indexed: false,
94
- name: 'recipient',
95
- type: 'address',
96
- },
97
- ],
98
- name: 'AerodromeLiquidityAdded',
99
- type: 'event',
100
- },
101
- {
102
- anonymous: false,
103
- inputs: [
104
- {
105
- indexed: false,
106
- name: 'sender',
107
- type: 'address',
108
- },
109
- {
110
- indexed: true,
111
- name: 'pool',
112
- type: 'address',
113
- },
114
- {
115
- indexed: true,
116
- name: 'tokenA',
117
- type: 'address',
118
- },
119
- {
120
- indexed: true,
121
- name: 'tokenB',
122
- type: 'address',
123
- },
124
- {
125
- indexed: false,
126
- name: 'amountA',
127
- type: 'uint256',
128
- },
129
- {
130
- indexed: false,
131
- name: 'amountB',
132
- type: 'uint256',
133
- },
134
- {
135
- indexed: false,
136
- name: 'lpToken',
137
- type: 'address',
138
- },
139
- {
140
- indexed: false,
141
- name: 'lpAmountBurned',
142
- type: 'uint256',
143
- },
144
- {
145
- indexed: false,
146
- name: 'usdValue',
147
- type: 'uint256',
148
- },
149
- {
150
- indexed: false,
151
- name: 'recipient',
152
- type: 'address',
153
- },
154
- ],
155
- name: 'AerodromeLiquidityRemoved',
156
- type: 'event',
157
- },
158
- {
159
- anonymous: false,
160
- inputs: [
161
- {
162
- indexed: true,
163
- name: 'pool',
164
- type: 'address',
165
- },
166
- ],
167
- name: 'AeroClassicCoreRouterPoolSet',
168
- type: 'event',
169
- },
170
- {
171
- anonymous: false,
172
- inputs: [
173
- {
174
- indexed: true,
175
- name: 'asset',
176
- type: 'address',
177
- },
178
- {
179
- indexed: true,
180
- name: 'recipient',
181
- type: 'address',
182
- },
183
- {
184
- indexed: false,
185
- name: 'amount',
186
- type: 'uint256',
187
- },
188
- ],
189
- name: 'AeroClassicFundsRecovered',
190
- type: 'event',
191
- },
192
- {
193
- anonymous: false,
194
- inputs: [
195
- {
196
- indexed: false,
197
- name: 'legoId',
198
- type: 'uint256',
199
- },
200
- ],
201
- name: 'AerodromeLegoIdSet',
202
- type: 'event',
203
- },
204
- {
205
- anonymous: false,
206
- inputs: [
207
- {
208
- indexed: false,
209
- name: 'isActivated',
210
- type: 'bool',
211
- },
212
- ],
213
- name: 'AerodromeActivated',
214
- type: 'event',
215
- },
216
- {
217
- anonymous: false,
218
- inputs: [
219
- {
220
- indexed: true,
221
- name: 'prevGov',
222
- type: 'address',
223
- },
224
- {
225
- indexed: true,
226
- name: 'newGov',
227
- type: 'address',
228
- },
229
- {
230
- indexed: false,
231
- name: 'confirmBlock',
232
- type: 'uint256',
233
- },
234
- ],
235
- name: 'GovChangeInitiated',
236
- type: 'event',
237
- },
238
- {
239
- anonymous: false,
240
- inputs: [
241
- {
242
- indexed: true,
243
- name: 'prevGov',
244
- type: 'address',
245
- },
246
- {
247
- indexed: true,
248
- name: 'newGov',
249
- type: 'address',
250
- },
251
- {
252
- indexed: false,
253
- name: 'initiatedBlock',
254
- type: 'uint256',
255
- },
256
- {
257
- indexed: false,
258
- name: 'confirmBlock',
259
- type: 'uint256',
260
- },
261
- ],
262
- name: 'GovChangeConfirmed',
263
- type: 'event',
264
- },
265
- {
266
- anonymous: false,
267
- inputs: [
268
- {
269
- indexed: true,
270
- name: 'cancelledGov',
271
- type: 'address',
272
- },
273
- {
274
- indexed: false,
275
- name: 'initiatedBlock',
276
- type: 'uint256',
277
- },
278
- {
279
- indexed: false,
280
- name: 'confirmBlock',
281
- type: 'uint256',
282
- },
283
- ],
284
- name: 'GovChangeCancelled',
285
- type: 'event',
286
- },
287
- {
288
- anonymous: false,
289
- inputs: [
290
- {
291
- indexed: false,
292
- name: 'delayBlocks',
293
- type: 'uint256',
294
- },
295
- ],
296
- name: 'GovChangeDelaySet',
297
- type: 'event',
298
- },
299
- {
300
- inputs: [
301
- {
302
- name: '_address',
303
- type: 'address',
304
- },
305
- ],
306
- name: 'canGovern',
307
- outputs: [
308
- {
309
- name: '',
310
- type: 'bool',
311
- },
312
- ],
313
- stateMutability: 'view',
314
- type: 'function',
315
- },
316
- {
317
- inputs: [],
318
- name: 'hasPendingGovChange',
319
- outputs: [
320
- {
321
- name: '',
322
- type: 'bool',
323
- },
324
- ],
325
- stateMutability: 'view',
326
- type: 'function',
327
- },
328
- {
329
- inputs: [
330
- {
331
- name: '_newGov',
332
- type: 'address',
333
- },
334
- ],
335
- name: 'changeGovernance',
336
- outputs: [],
337
- stateMutability: 'nonpayable',
338
- type: 'function',
339
- },
340
- {
341
- inputs: [],
342
- name: 'confirmGovernanceChange',
343
- outputs: [],
344
- stateMutability: 'nonpayable',
345
- type: 'function',
346
- },
347
- {
348
- inputs: [],
349
- name: 'cancelGovernanceChange',
350
- outputs: [],
351
- stateMutability: 'nonpayable',
352
- type: 'function',
353
- },
354
- {
355
- inputs: [
356
- {
357
- name: '_numBlocks',
358
- type: 'uint256',
359
- },
360
- ],
361
- name: 'setGovernanceChangeDelay',
362
- outputs: [],
363
- stateMutability: 'nonpayable',
364
- type: 'function',
365
- },
366
- {
367
- inputs: [],
368
- name: 'governance',
369
- outputs: [
370
- {
371
- name: '',
372
- type: 'address',
373
- },
374
- ],
375
- stateMutability: 'view',
376
- type: 'function',
377
- },
378
- {
379
- inputs: [],
380
- name: 'pendingGov',
381
- outputs: [
382
- {
383
- components: [
384
- {
385
- name: 'newGov',
386
- type: 'address',
387
- },
388
- {
389
- name: 'initiatedBlock',
390
- type: 'uint256',
391
- },
392
- {
393
- name: 'confirmBlock',
394
- type: 'uint256',
395
- },
396
- ],
397
- name: '',
398
- type: 'tuple',
399
- },
400
- ],
401
- stateMutability: 'view',
402
- type: 'function',
403
- },
404
- {
405
- inputs: [],
406
- name: 'govChangeDelay',
407
- outputs: [
408
- {
409
- name: '',
410
- type: 'uint256',
411
- },
412
- ],
413
- stateMutability: 'view',
414
- type: 'function',
415
- },
416
- {
417
- inputs: [],
418
- name: 'MIN_GOV_CHANGE_DELAY',
419
- outputs: [
420
- {
421
- name: '',
422
- type: 'uint256',
423
- },
424
- ],
425
- stateMutability: 'view',
426
- type: 'function',
427
- },
428
- {
429
- inputs: [],
430
- name: 'MAX_GOV_CHANGE_DELAY',
431
- outputs: [
432
- {
433
- name: '',
434
- type: 'uint256',
435
- },
436
- ],
437
- stateMutability: 'view',
438
- type: 'function',
439
- },
440
- {
441
- inputs: [],
442
- name: 'getRegistries',
443
- outputs: [
444
- {
445
- name: '',
446
- type: 'address[]',
447
- },
448
- ],
449
- stateMutability: 'view',
450
- type: 'function',
451
- },
452
- {
453
- inputs: [
454
- {
455
- name: '_user',
456
- type: 'address',
457
- },
458
- ],
459
- name: 'getAccessForLego',
460
- outputs: [
461
- {
462
- name: '',
463
- type: 'address',
464
- },
465
- {
466
- name: '',
467
- type: 'string',
468
- },
469
- {
470
- name: '',
471
- type: 'uint256',
472
- },
473
- ],
474
- stateMutability: 'view',
475
- type: 'function',
476
- },
477
- {
478
- inputs: [
479
- {
480
- name: '_amountIn',
481
- type: 'uint256',
482
- },
483
- {
484
- name: '_minAmountOut',
485
- type: 'uint256',
486
- },
487
- {
488
- name: '_tokenPath',
489
- type: 'address[]',
490
- },
491
- {
492
- name: '_poolPath',
493
- type: 'address[]',
494
- },
495
- {
496
- name: '_recipient',
497
- type: 'address',
498
- },
499
- ],
500
- name: 'swapTokens',
501
- outputs: [
502
- {
503
- name: '',
504
- type: 'uint256',
505
- },
506
- {
507
- name: '',
508
- type: 'uint256',
509
- },
510
- {
511
- name: '',
512
- type: 'uint256',
513
- },
514
- {
515
- name: '',
516
- type: 'uint256',
517
- },
518
- ],
519
- stateMutability: 'nonpayable',
520
- type: 'function',
521
- },
522
- {
523
- inputs: [
524
- {
525
- name: '_amountIn',
526
- type: 'uint256',
527
- },
528
- {
529
- name: '_minAmountOut',
530
- type: 'uint256',
531
- },
532
- {
533
- name: '_tokenPath',
534
- type: 'address[]',
535
- },
536
- {
537
- name: '_poolPath',
538
- type: 'address[]',
539
- },
540
- {
541
- name: '_recipient',
542
- type: 'address',
543
- },
544
- {
545
- name: '_oracleRegistry',
546
- type: 'address',
547
- },
548
- ],
549
- name: 'swapTokens',
550
- outputs: [
551
- {
552
- name: '',
553
- type: 'uint256',
554
- },
555
- {
556
- name: '',
557
- type: 'uint256',
558
- },
559
- {
560
- name: '',
561
- type: 'uint256',
562
- },
563
- {
564
- name: '',
565
- type: 'uint256',
566
- },
567
- ],
568
- stateMutability: 'nonpayable',
569
- type: 'function',
570
- },
571
- {
572
- inputs: [
573
- {
574
- name: '_nftTokenId',
575
- type: 'uint256',
576
- },
577
- {
578
- name: '_pool',
579
- type: 'address',
580
- },
581
- {
582
- name: '_tokenA',
583
- type: 'address',
584
- },
585
- {
586
- name: '_tokenB',
587
- type: 'address',
588
- },
589
- {
590
- name: '_tickLower',
591
- type: 'int24',
592
- },
593
- {
594
- name: '_tickUpper',
595
- type: 'int24',
596
- },
597
- {
598
- name: '_amountA',
599
- type: 'uint256',
600
- },
601
- {
602
- name: '_amountB',
603
- type: 'uint256',
604
- },
605
- {
606
- name: '_minAmountA',
607
- type: 'uint256',
608
- },
609
- {
610
- name: '_minAmountB',
611
- type: 'uint256',
612
- },
613
- {
614
- name: '_minLpAmount',
615
- type: 'uint256',
616
- },
617
- {
618
- name: '_recipient',
619
- type: 'address',
620
- },
621
- ],
622
- name: 'addLiquidity',
623
- outputs: [
624
- {
625
- name: '',
626
- type: 'uint256',
627
- },
628
- {
629
- name: '',
630
- type: 'uint256',
631
- },
632
- {
633
- name: '',
634
- type: 'uint256',
635
- },
636
- {
637
- name: '',
638
- type: 'uint256',
639
- },
640
- {
641
- name: '',
642
- type: 'uint256',
643
- },
644
- {
645
- name: '',
646
- type: 'uint256',
647
- },
648
- {
649
- name: '',
650
- type: 'uint256',
651
- },
652
- ],
653
- stateMutability: 'nonpayable',
654
- type: 'function',
655
- },
656
- {
657
- inputs: [
658
- {
659
- name: '_nftTokenId',
660
- type: 'uint256',
661
- },
662
- {
663
- name: '_pool',
664
- type: 'address',
665
- },
666
- {
667
- name: '_tokenA',
668
- type: 'address',
669
- },
670
- {
671
- name: '_tokenB',
672
- type: 'address',
673
- },
674
- {
675
- name: '_tickLower',
676
- type: 'int24',
677
- },
678
- {
679
- name: '_tickUpper',
680
- type: 'int24',
681
- },
682
- {
683
- name: '_amountA',
684
- type: 'uint256',
685
- },
686
- {
687
- name: '_amountB',
688
- type: 'uint256',
689
- },
690
- {
691
- name: '_minAmountA',
692
- type: 'uint256',
693
- },
694
- {
695
- name: '_minAmountB',
696
- type: 'uint256',
697
- },
698
- {
699
- name: '_minLpAmount',
700
- type: 'uint256',
701
- },
702
- {
703
- name: '_recipient',
704
- type: 'address',
705
- },
706
- {
707
- name: '_oracleRegistry',
708
- type: 'address',
709
- },
710
- ],
711
- name: 'addLiquidity',
712
- outputs: [
713
- {
714
- name: '',
715
- type: 'uint256',
716
- },
717
- {
718
- name: '',
719
- type: 'uint256',
720
- },
721
- {
722
- name: '',
723
- type: 'uint256',
724
- },
725
- {
726
- name: '',
727
- type: 'uint256',
728
- },
729
- {
730
- name: '',
731
- type: 'uint256',
732
- },
733
- {
734
- name: '',
735
- type: 'uint256',
736
- },
737
- {
738
- name: '',
739
- type: 'uint256',
740
- },
741
- ],
742
- stateMutability: 'nonpayable',
743
- type: 'function',
744
- },
745
- {
746
- inputs: [
747
- {
748
- name: '_nftTokenId',
749
- type: 'uint256',
750
- },
751
- {
752
- name: '_pool',
753
- type: 'address',
754
- },
755
- {
756
- name: '_tokenA',
757
- type: 'address',
758
- },
759
- {
760
- name: '_tokenB',
761
- type: 'address',
762
- },
763
- {
764
- name: '_lpToken',
765
- type: 'address',
766
- },
767
- {
768
- name: '_liqToRemove',
769
- type: 'uint256',
770
- },
771
- {
772
- name: '_minAmountA',
773
- type: 'uint256',
774
- },
775
- {
776
- name: '_minAmountB',
777
- type: 'uint256',
778
- },
779
- {
780
- name: '_recipient',
781
- type: 'address',
782
- },
783
- ],
784
- name: 'removeLiquidity',
785
- outputs: [
786
- {
787
- name: '',
788
- type: 'uint256',
789
- },
790
- {
791
- name: '',
792
- type: 'uint256',
793
- },
794
- {
795
- name: '',
796
- type: 'uint256',
797
- },
798
- {
799
- name: '',
800
- type: 'uint256',
801
- },
802
- {
803
- name: '',
804
- type: 'uint256',
805
- },
806
- {
807
- name: '',
808
- type: 'bool',
809
- },
810
- ],
811
- stateMutability: 'nonpayable',
812
- type: 'function',
813
- },
814
- {
815
- inputs: [
816
- {
817
- name: '_nftTokenId',
818
- type: 'uint256',
819
- },
820
- {
821
- name: '_pool',
822
- type: 'address',
823
- },
824
- {
825
- name: '_tokenA',
826
- type: 'address',
827
- },
828
- {
829
- name: '_tokenB',
830
- type: 'address',
831
- },
832
- {
833
- name: '_lpToken',
834
- type: 'address',
835
- },
836
- {
837
- name: '_liqToRemove',
838
- type: 'uint256',
839
- },
840
- {
841
- name: '_minAmountA',
842
- type: 'uint256',
843
- },
844
- {
845
- name: '_minAmountB',
846
- type: 'uint256',
847
- },
848
- {
849
- name: '_recipient',
850
- type: 'address',
851
- },
852
- {
853
- name: '_oracleRegistry',
854
- type: 'address',
855
- },
856
- ],
857
- name: 'removeLiquidity',
858
- outputs: [
859
- {
860
- name: '',
861
- type: 'uint256',
862
- },
863
- {
864
- name: '',
865
- type: 'uint256',
866
- },
867
- {
868
- name: '',
869
- type: 'uint256',
870
- },
871
- {
872
- name: '',
873
- type: 'uint256',
874
- },
875
- {
876
- name: '',
877
- type: 'uint256',
878
- },
879
- {
880
- name: '',
881
- type: 'bool',
882
- },
883
- ],
884
- stateMutability: 'nonpayable',
885
- type: 'function',
886
- },
887
- {
888
- inputs: [
889
- {
890
- name: '_user',
891
- type: 'address',
892
- },
893
- {
894
- name: '_market',
895
- type: 'address',
896
- },
897
- {
898
- name: '_rewardToken',
899
- type: 'address',
900
- },
901
- {
902
- name: '_rewardAmount',
903
- type: 'uint256',
904
- },
905
- {
906
- name: '_proof',
907
- type: 'bytes32',
908
- },
909
- ],
910
- name: 'claimRewards',
911
- outputs: [],
912
- stateMutability: 'nonpayable',
913
- type: 'function',
914
- },
915
- {
916
- inputs: [
917
- {
918
- name: '_user',
919
- type: 'address',
920
- },
921
- ],
922
- name: 'hasClaimableRewards',
923
- outputs: [
924
- {
925
- name: '',
926
- type: 'bool',
927
- },
928
- ],
929
- stateMutability: 'view',
930
- type: 'function',
931
- },
932
- {
933
- inputs: [
934
- {
935
- name: '_pool',
936
- type: 'address',
937
- },
938
- ],
939
- name: 'getLpToken',
940
- outputs: [
941
- {
942
- name: '',
943
- type: 'address',
944
- },
945
- ],
946
- stateMutability: 'view',
947
- type: 'function',
948
- },
949
- {
950
- inputs: [
951
- {
952
- name: '_lpToken',
953
- type: 'address',
954
- },
955
- ],
956
- name: 'getPoolForLpToken',
957
- outputs: [
958
- {
959
- name: '',
960
- type: 'address',
961
- },
962
- ],
963
- stateMutability: 'view',
964
- type: 'function',
965
- },
966
- {
967
- inputs: [],
968
- name: 'getCoreRouterPool',
969
- outputs: [
970
- {
971
- name: '',
972
- type: 'address',
973
- },
974
- ],
975
- stateMutability: 'view',
976
- type: 'function',
977
- },
978
- {
979
- inputs: [
980
- {
981
- name: '_tokenA',
982
- type: 'address',
983
- },
984
- {
985
- name: '_tokenB',
986
- type: 'address',
987
- },
988
- ],
989
- name: 'getDeepestLiqPool',
990
- outputs: [
991
- {
992
- components: [
993
- {
994
- name: 'pool',
995
- type: 'address',
996
- },
997
- {
998
- name: 'fee',
999
- type: 'uint256',
1000
- },
1001
- {
1002
- name: 'liquidity',
1003
- type: 'uint256',
1004
- },
1005
- {
1006
- name: 'numCoins',
1007
- type: 'uint256',
1008
- },
1009
- {
1010
- name: 'legoId',
1011
- type: 'uint256',
1012
- },
1013
- ],
1014
- name: '',
1015
- type: 'tuple',
1016
- },
1017
- ],
1018
- stateMutability: 'view',
1019
- type: 'function',
1020
- },
1021
- {
1022
- inputs: [
1023
- {
1024
- name: '_tokenIn',
1025
- type: 'address',
1026
- },
1027
- {
1028
- name: '_tokenOut',
1029
- type: 'address',
1030
- },
1031
- {
1032
- name: '_amountIn',
1033
- type: 'uint256',
1034
- },
1035
- ],
1036
- name: 'getBestSwapAmountOut',
1037
- outputs: [
1038
- {
1039
- name: '',
1040
- type: 'address',
1041
- },
1042
- {
1043
- name: '',
1044
- type: 'uint256',
1045
- },
1046
- ],
1047
- stateMutability: 'view',
1048
- type: 'function',
1049
- },
1050
- {
1051
- inputs: [
1052
- {
1053
- name: '_pool',
1054
- type: 'address',
1055
- },
1056
- {
1057
- name: '_tokenIn',
1058
- type: 'address',
1059
- },
1060
- {
1061
- name: '_tokenOut',
1062
- type: 'address',
1063
- },
1064
- {
1065
- name: '_amountIn',
1066
- type: 'uint256',
1067
- },
1068
- ],
1069
- name: 'getSwapAmountOut',
1070
- outputs: [
1071
- {
1072
- name: '',
1073
- type: 'uint256',
1074
- },
1075
- ],
1076
- stateMutability: 'view',
1077
- type: 'function',
1078
- },
1079
- {
1080
- inputs: [
1081
- {
1082
- name: '_tokenIn',
1083
- type: 'address',
1084
- },
1085
- {
1086
- name: '_tokenOut',
1087
- type: 'address',
1088
- },
1089
- {
1090
- name: '_amountOut',
1091
- type: 'uint256',
1092
- },
1093
- ],
1094
- name: 'getBestSwapAmountIn',
1095
- outputs: [
1096
- {
1097
- name: '',
1098
- type: 'address',
1099
- },
1100
- {
1101
- name: '',
1102
- type: 'uint256',
1103
- },
1104
- ],
1105
- stateMutability: 'view',
1106
- type: 'function',
1107
- },
1108
- {
1109
- inputs: [
1110
- {
1111
- name: '_pool',
1112
- type: 'address',
1113
- },
1114
- {
1115
- name: '_tokenIn',
1116
- type: 'address',
1117
- },
1118
- {
1119
- name: '_tokenOut',
1120
- type: 'address',
1121
- },
1122
- {
1123
- name: '_amountOut',
1124
- type: 'uint256',
1125
- },
1126
- ],
1127
- name: 'getSwapAmountIn',
1128
- outputs: [
1129
- {
1130
- name: '',
1131
- type: 'uint256',
1132
- },
1133
- ],
1134
- stateMutability: 'view',
1135
- type: 'function',
1136
- },
1137
- {
1138
- inputs: [
1139
- {
1140
- name: '_pool',
1141
- type: 'address',
1142
- },
1143
- {
1144
- name: '_tokenA',
1145
- type: 'address',
1146
- },
1147
- {
1148
- name: '_tokenB',
1149
- type: 'address',
1150
- },
1151
- {
1152
- name: '_availAmountA',
1153
- type: 'uint256',
1154
- },
1155
- {
1156
- name: '_availAmountB',
1157
- type: 'uint256',
1158
- },
1159
- ],
1160
- name: 'getAddLiqAmountsIn',
1161
- outputs: [
1162
- {
1163
- name: '',
1164
- type: 'uint256',
1165
- },
1166
- {
1167
- name: '',
1168
- type: 'uint256',
1169
- },
1170
- {
1171
- name: '',
1172
- type: 'uint256',
1173
- },
1174
- ],
1175
- stateMutability: 'view',
1176
- type: 'function',
1177
- },
1178
- {
1179
- inputs: [
1180
- {
1181
- name: '_pool',
1182
- type: 'address',
1183
- },
1184
- {
1185
- name: '_tokenA',
1186
- type: 'address',
1187
- },
1188
- {
1189
- name: '_tokenB',
1190
- type: 'address',
1191
- },
1192
- {
1193
- name: '_lpAmount',
1194
- type: 'uint256',
1195
- },
1196
- ],
1197
- name: 'getRemoveLiqAmountsOut',
1198
- outputs: [
1199
- {
1200
- name: '',
1201
- type: 'uint256',
1202
- },
1203
- {
1204
- name: '',
1205
- type: 'uint256',
1206
- },
1207
- ],
1208
- stateMutability: 'view',
1209
- type: 'function',
1210
- },
1211
- {
1212
- inputs: [
1213
- {
1214
- name: '_pool',
1215
- type: 'address',
1216
- },
1217
- {
1218
- name: '_targetToken',
1219
- type: 'address',
1220
- },
1221
- ],
1222
- name: 'getPriceUnsafe',
1223
- outputs: [
1224
- {
1225
- name: '',
1226
- type: 'uint256',
1227
- },
1228
- ],
1229
- stateMutability: 'view',
1230
- type: 'function',
1231
- },
1232
- {
1233
- inputs: [
1234
- {
1235
- name: '_pool',
1236
- type: 'address',
1237
- },
1238
- {
1239
- name: '_targetToken',
1240
- type: 'address',
1241
- },
1242
- {
1243
- name: '_oracleRegistry',
1244
- type: 'address',
1245
- },
1246
- ],
1247
- name: 'getPriceUnsafe',
1248
- outputs: [
1249
- {
1250
- name: '',
1251
- type: 'uint256',
1252
- },
1253
- ],
1254
- stateMutability: 'view',
1255
- type: 'function',
1256
- },
1257
- {
1258
- inputs: [
1259
- {
1260
- name: '_addr',
1261
- type: 'address',
1262
- },
1263
- ],
1264
- name: 'setCoreRouterPool',
1265
- outputs: [
1266
- {
1267
- name: '',
1268
- type: 'bool',
1269
- },
1270
- ],
1271
- stateMutability: 'nonpayable',
1272
- type: 'function',
1273
- },
1274
- {
1275
- inputs: [
1276
- {
1277
- name: '_asset',
1278
- type: 'address',
1279
- },
1280
- {
1281
- name: '_recipient',
1282
- type: 'address',
1283
- },
1284
- ],
1285
- name: 'recoverFunds',
1286
- outputs: [
1287
- {
1288
- name: '',
1289
- type: 'bool',
1290
- },
1291
- ],
1292
- stateMutability: 'nonpayable',
1293
- type: 'function',
1294
- },
1295
- {
1296
- inputs: [
1297
- {
1298
- name: '_legoId',
1299
- type: 'uint256',
1300
- },
1301
- ],
1302
- name: 'setLegoId',
1303
- outputs: [
1304
- {
1305
- name: '',
1306
- type: 'bool',
1307
- },
1308
- ],
1309
- stateMutability: 'nonpayable',
1310
- type: 'function',
1311
- },
1312
- {
1313
- inputs: [
1314
- {
1315
- name: '_shouldActivate',
1316
- type: 'bool',
1317
- },
1318
- ],
1319
- name: 'activate',
1320
- outputs: [],
1321
- stateMutability: 'nonpayable',
1322
- type: 'function',
1323
- },
1324
- {
1325
- inputs: [],
1326
- name: 'coreRouterPool',
1327
- outputs: [
1328
- {
1329
- name: '',
1330
- type: 'address',
1331
- },
1332
- ],
1333
- stateMutability: 'view',
1334
- type: 'function',
1335
- },
1336
- {
1337
- inputs: [],
1338
- name: 'AERODROME_FACTORY',
1339
- outputs: [
1340
- {
1341
- name: '',
1342
- type: 'address',
1343
- },
1344
- ],
1345
- stateMutability: 'view',
1346
- type: 'function',
1347
- },
1348
- {
1349
- inputs: [],
1350
- name: 'AERODROME_ROUTER',
1351
- outputs: [
1352
- {
1353
- name: '',
1354
- type: 'address',
1355
- },
1356
- ],
1357
- stateMutability: 'view',
1358
- type: 'function',
1359
- },
1360
- {
1361
- inputs: [],
1362
- name: 'legoId',
1363
- outputs: [
1364
- {
1365
- name: '',
1366
- type: 'uint256',
1367
- },
1368
- ],
1369
- stateMutability: 'view',
1370
- type: 'function',
1371
- },
1372
- {
1373
- inputs: [],
1374
- name: 'isActivated',
1375
- outputs: [
1376
- {
1377
- name: '',
1378
- type: 'bool',
1379
- },
1380
- ],
1381
- stateMutability: 'view',
1382
- type: 'function',
1383
- },
1384
- {
1385
- inputs: [],
1386
- name: 'ADDY_REGISTRY',
1387
- outputs: [
1388
- {
1389
- name: '',
1390
- type: 'address',
1391
- },
1392
- ],
1393
- stateMutability: 'view',
1394
- type: 'function',
1395
- },
1396
- {
1397
- inputs: [
1398
- {
1399
- name: '_aerodromeFactory',
1400
- type: 'address',
1401
- },
1402
- {
1403
- name: '_aerodromeRouter',
1404
- type: 'address',
1405
- },
1406
- {
1407
- name: '_addyRegistry',
1408
- type: 'address',
1409
- },
1410
- {
1411
- name: '_coreRouterPool',
1412
- type: 'address',
1413
- },
1414
- ],
1415
- outputs: [],
1416
- stateMutability: 'nonpayable',
1417
- type: 'constructor',
1418
- },
1419
- ];
1420
- export const deployAddress = '0x61C8D98F01B066fA99eb2cf2E6069a7e5d891313';
1421
- function getRequest(method, args, contractAddressOrOptions) {
1422
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1423
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1424
- const call = {
1425
- contractName: 'v0_3_LegoAeroClassic',
1426
- method,
1427
- args,
1428
- address,
1429
- deployAddress,
1430
- defaultValue,
1431
- getAbi: () => abi,
1432
- with: (options) => {
1433
- call.address = options.contractAddress;
1434
- call.defaultValue = options.defaultValue;
1435
- return call;
1436
- },
1437
- defaultTo: (defaultValue) => {
1438
- call.defaultValue = defaultValue;
1439
- return call;
1440
- },
1441
- at: (address) => {
1442
- call.address = address;
1443
- return call;
1444
- },
1445
- };
1446
- return call;
1447
- }
1448
- export const call = {
1449
- canGovern: (...args) => getRequest('canGovern', args),
1450
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1451
- governance: (...args) => getRequest('governance', args),
1452
- pendingGov: (...args) => getRequest('pendingGov', args),
1453
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1454
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1455
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1456
- getRegistries: (...args) => getRequest('getRegistries', args),
1457
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1458
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1459
- getLpToken: (...args) => getRequest('getLpToken', args),
1460
- getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
1461
- getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
1462
- getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
1463
- getBestSwapAmountOut: (...args) => getRequest('getBestSwapAmountOut', args),
1464
- getSwapAmountOut: (...args) => getRequest('getSwapAmountOut', args),
1465
- getBestSwapAmountIn: (...args) => getRequest('getBestSwapAmountIn', args),
1466
- getSwapAmountIn: (...args) => getRequest('getSwapAmountIn', args),
1467
- getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
1468
- getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
1469
- getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
1470
- coreRouterPool: (...args) => getRequest('coreRouterPool', args),
1471
- AERODROME_FACTORY: (...args) => getRequest('AERODROME_FACTORY', args),
1472
- AERODROME_ROUTER: (...args) => getRequest('AERODROME_ROUTER', args),
1473
- legoId: (...args) => getRequest('legoId', args),
1474
- isActivated: (...args) => getRequest('isActivated', args),
1475
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1476
- };
1477
- function getMutation(functionName) {
1478
- return {
1479
- contractName: 'v0_3_LegoAeroClassic',
1480
- functionName,
1481
- deployAddress,
1482
- argsType: undefined,
1483
- getAbi: () => abi,
1484
- };
1485
- }
1486
- export const mutation = {
1487
- changeGovernance: getMutation('changeGovernance'),
1488
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1489
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1490
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1491
- swapTokens: getMutation('swapTokens'),
1492
- addLiquidity: getMutation('addLiquidity'),
1493
- removeLiquidity: getMutation('removeLiquidity'),
1494
- claimRewards: getMutation('claimRewards'),
1495
- setCoreRouterPool: getMutation('setCoreRouterPool'),
1496
- recoverFunds: getMutation('recoverFunds'),
1497
- setLegoId: getMutation('setLegoId'),
1498
- activate: getMutation('activate'),
1499
- };
1500
- export function toSdk(publicClient, walletClient) {
1501
- return {
1502
- deployAddress,
1503
- abi,
1504
- // Queries
1505
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1506
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1507
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1508
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1509
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1510
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1511
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1512
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1513
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1514
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1515
- getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args)),
1516
- getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args)),
1517
- getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args)),
1518
- getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args)),
1519
- getBestSwapAmountOut: (...args) => singleQuery(publicClient, call.getBestSwapAmountOut(...args)),
1520
- getSwapAmountOut: (...args) => singleQuery(publicClient, call.getSwapAmountOut(...args)),
1521
- getBestSwapAmountIn: (...args) => singleQuery(publicClient, call.getBestSwapAmountIn(...args)),
1522
- getSwapAmountIn: (...args) => singleQuery(publicClient, call.getSwapAmountIn(...args)),
1523
- getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args)),
1524
- getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args)),
1525
- getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args)),
1526
- coreRouterPool: (...args) => singleQuery(publicClient, call.coreRouterPool(...args)),
1527
- AERODROME_FACTORY: (...args) => singleQuery(publicClient, call.AERODROME_FACTORY(...args)),
1528
- AERODROME_ROUTER: (...args) => singleQuery(publicClient, call.AERODROME_ROUTER(...args)),
1529
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1530
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1531
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1532
- // Mutations
1533
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1534
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1535
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1536
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1537
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1538
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
1539
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
1540
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1541
- setCoreRouterPool: (...args) => mutate(walletClient, mutation.setCoreRouterPool)(...args),
1542
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1543
- setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1544
- activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1545
- };
1546
- }