@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,1519 +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: 'CurveSwap',
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: 'CurveLiquidityAdded',
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: 'CurveLiquidityRemoved',
156
- type: 'event',
157
- },
158
- {
159
- anonymous: false,
160
- inputs: [
161
- {
162
- indexed: true,
163
- name: 'asset',
164
- type: 'address',
165
- },
166
- {
167
- indexed: true,
168
- name: 'recipient',
169
- type: 'address',
170
- },
171
- {
172
- indexed: false,
173
- name: 'amount',
174
- type: 'uint256',
175
- },
176
- ],
177
- name: 'CurveFundsRecovered',
178
- type: 'event',
179
- },
180
- {
181
- anonymous: false,
182
- inputs: [
183
- {
184
- indexed: false,
185
- name: 'legoId',
186
- type: 'uint256',
187
- },
188
- ],
189
- name: 'CurveLegoIdSet',
190
- type: 'event',
191
- },
192
- {
193
- anonymous: false,
194
- inputs: [
195
- {
196
- indexed: false,
197
- name: 'isActivated',
198
- type: 'bool',
199
- },
200
- ],
201
- name: 'CurveActivated',
202
- type: 'event',
203
- },
204
- {
205
- anonymous: false,
206
- inputs: [
207
- {
208
- indexed: true,
209
- name: 'prevGov',
210
- type: 'address',
211
- },
212
- {
213
- indexed: true,
214
- name: 'newGov',
215
- type: 'address',
216
- },
217
- {
218
- indexed: false,
219
- name: 'confirmBlock',
220
- type: 'uint256',
221
- },
222
- ],
223
- name: 'GovChangeInitiated',
224
- type: 'event',
225
- },
226
- {
227
- anonymous: false,
228
- inputs: [
229
- {
230
- indexed: true,
231
- name: 'prevGov',
232
- type: 'address',
233
- },
234
- {
235
- indexed: true,
236
- name: 'newGov',
237
- type: 'address',
238
- },
239
- {
240
- indexed: false,
241
- name: 'initiatedBlock',
242
- type: 'uint256',
243
- },
244
- {
245
- indexed: false,
246
- name: 'confirmBlock',
247
- type: 'uint256',
248
- },
249
- ],
250
- name: 'GovChangeConfirmed',
251
- type: 'event',
252
- },
253
- {
254
- anonymous: false,
255
- inputs: [
256
- {
257
- indexed: true,
258
- name: 'cancelledGov',
259
- type: 'address',
260
- },
261
- {
262
- indexed: false,
263
- name: 'initiatedBlock',
264
- type: 'uint256',
265
- },
266
- {
267
- indexed: false,
268
- name: 'confirmBlock',
269
- type: 'uint256',
270
- },
271
- ],
272
- name: 'GovChangeCancelled',
273
- type: 'event',
274
- },
275
- {
276
- anonymous: false,
277
- inputs: [
278
- {
279
- indexed: false,
280
- name: 'delayBlocks',
281
- type: 'uint256',
282
- },
283
- ],
284
- name: 'GovChangeDelaySet',
285
- type: 'event',
286
- },
287
- {
288
- inputs: [
289
- {
290
- name: '_address',
291
- type: 'address',
292
- },
293
- ],
294
- name: 'canGovern',
295
- outputs: [
296
- {
297
- name: '',
298
- type: 'bool',
299
- },
300
- ],
301
- stateMutability: 'view',
302
- type: 'function',
303
- },
304
- {
305
- inputs: [],
306
- name: 'hasPendingGovChange',
307
- outputs: [
308
- {
309
- name: '',
310
- type: 'bool',
311
- },
312
- ],
313
- stateMutability: 'view',
314
- type: 'function',
315
- },
316
- {
317
- inputs: [
318
- {
319
- name: '_newGov',
320
- type: 'address',
321
- },
322
- ],
323
- name: 'changeGovernance',
324
- outputs: [],
325
- stateMutability: 'nonpayable',
326
- type: 'function',
327
- },
328
- {
329
- inputs: [],
330
- name: 'confirmGovernanceChange',
331
- outputs: [],
332
- stateMutability: 'nonpayable',
333
- type: 'function',
334
- },
335
- {
336
- inputs: [],
337
- name: 'cancelGovernanceChange',
338
- outputs: [],
339
- stateMutability: 'nonpayable',
340
- type: 'function',
341
- },
342
- {
343
- inputs: [
344
- {
345
- name: '_numBlocks',
346
- type: 'uint256',
347
- },
348
- ],
349
- name: 'setGovernanceChangeDelay',
350
- outputs: [],
351
- stateMutability: 'nonpayable',
352
- type: 'function',
353
- },
354
- {
355
- inputs: [],
356
- name: 'governance',
357
- outputs: [
358
- {
359
- name: '',
360
- type: 'address',
361
- },
362
- ],
363
- stateMutability: 'view',
364
- type: 'function',
365
- },
366
- {
367
- inputs: [],
368
- name: 'pendingGov',
369
- outputs: [
370
- {
371
- components: [
372
- {
373
- name: 'newGov',
374
- type: 'address',
375
- },
376
- {
377
- name: 'initiatedBlock',
378
- type: 'uint256',
379
- },
380
- {
381
- name: 'confirmBlock',
382
- type: 'uint256',
383
- },
384
- ],
385
- name: '',
386
- type: 'tuple',
387
- },
388
- ],
389
- stateMutability: 'view',
390
- type: 'function',
391
- },
392
- {
393
- inputs: [],
394
- name: 'govChangeDelay',
395
- outputs: [
396
- {
397
- name: '',
398
- type: 'uint256',
399
- },
400
- ],
401
- stateMutability: 'view',
402
- type: 'function',
403
- },
404
- {
405
- inputs: [],
406
- name: 'MIN_GOV_CHANGE_DELAY',
407
- outputs: [
408
- {
409
- name: '',
410
- type: 'uint256',
411
- },
412
- ],
413
- stateMutability: 'view',
414
- type: 'function',
415
- },
416
- {
417
- inputs: [],
418
- name: 'MAX_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: 'getRegistries',
431
- outputs: [
432
- {
433
- name: '',
434
- type: 'address[]',
435
- },
436
- ],
437
- stateMutability: 'view',
438
- type: 'function',
439
- },
440
- {
441
- inputs: [
442
- {
443
- name: '_user',
444
- type: 'address',
445
- },
446
- ],
447
- name: 'getAccessForLego',
448
- outputs: [
449
- {
450
- name: '',
451
- type: 'address',
452
- },
453
- {
454
- name: '',
455
- type: 'string',
456
- },
457
- {
458
- name: '',
459
- type: 'uint256',
460
- },
461
- ],
462
- stateMutability: 'view',
463
- type: 'function',
464
- },
465
- {
466
- inputs: [
467
- {
468
- name: '_amountIn',
469
- type: 'uint256',
470
- },
471
- {
472
- name: '_minAmountOut',
473
- type: 'uint256',
474
- },
475
- {
476
- name: '_tokenPath',
477
- type: 'address[]',
478
- },
479
- {
480
- name: '_poolPath',
481
- type: 'address[]',
482
- },
483
- {
484
- name: '_recipient',
485
- type: 'address',
486
- },
487
- ],
488
- name: 'swapTokens',
489
- outputs: [
490
- {
491
- name: '',
492
- type: 'uint256',
493
- },
494
- {
495
- name: '',
496
- type: 'uint256',
497
- },
498
- {
499
- name: '',
500
- type: 'uint256',
501
- },
502
- {
503
- name: '',
504
- type: 'uint256',
505
- },
506
- ],
507
- stateMutability: 'nonpayable',
508
- type: 'function',
509
- },
510
- {
511
- inputs: [
512
- {
513
- name: '_amountIn',
514
- type: 'uint256',
515
- },
516
- {
517
- name: '_minAmountOut',
518
- type: 'uint256',
519
- },
520
- {
521
- name: '_tokenPath',
522
- type: 'address[]',
523
- },
524
- {
525
- name: '_poolPath',
526
- type: 'address[]',
527
- },
528
- {
529
- name: '_recipient',
530
- type: 'address',
531
- },
532
- {
533
- name: '_oracleRegistry',
534
- type: 'address',
535
- },
536
- ],
537
- name: 'swapTokens',
538
- outputs: [
539
- {
540
- name: '',
541
- type: 'uint256',
542
- },
543
- {
544
- name: '',
545
- type: 'uint256',
546
- },
547
- {
548
- name: '',
549
- type: 'uint256',
550
- },
551
- {
552
- name: '',
553
- type: 'uint256',
554
- },
555
- ],
556
- stateMutability: 'nonpayable',
557
- type: 'function',
558
- },
559
- {
560
- inputs: [
561
- {
562
- name: '_nftTokenId',
563
- type: 'uint256',
564
- },
565
- {
566
- name: '_pool',
567
- type: 'address',
568
- },
569
- {
570
- name: '_tokenA',
571
- type: 'address',
572
- },
573
- {
574
- name: '_tokenB',
575
- type: 'address',
576
- },
577
- {
578
- name: '_tickLower',
579
- type: 'int24',
580
- },
581
- {
582
- name: '_tickUpper',
583
- type: 'int24',
584
- },
585
- {
586
- name: '_amountA',
587
- type: 'uint256',
588
- },
589
- {
590
- name: '_amountB',
591
- type: 'uint256',
592
- },
593
- {
594
- name: '_minAmountA',
595
- type: 'uint256',
596
- },
597
- {
598
- name: '_minAmountB',
599
- type: 'uint256',
600
- },
601
- {
602
- name: '_minLpAmount',
603
- type: 'uint256',
604
- },
605
- {
606
- name: '_recipient',
607
- type: 'address',
608
- },
609
- ],
610
- name: 'addLiquidity',
611
- outputs: [
612
- {
613
- name: '',
614
- type: 'uint256',
615
- },
616
- {
617
- name: '',
618
- type: 'uint256',
619
- },
620
- {
621
- name: '',
622
- type: 'uint256',
623
- },
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
- stateMutability: 'nonpayable',
642
- type: 'function',
643
- },
644
- {
645
- inputs: [
646
- {
647
- name: '_nftTokenId',
648
- type: 'uint256',
649
- },
650
- {
651
- name: '_pool',
652
- type: 'address',
653
- },
654
- {
655
- name: '_tokenA',
656
- type: 'address',
657
- },
658
- {
659
- name: '_tokenB',
660
- type: 'address',
661
- },
662
- {
663
- name: '_tickLower',
664
- type: 'int24',
665
- },
666
- {
667
- name: '_tickUpper',
668
- type: 'int24',
669
- },
670
- {
671
- name: '_amountA',
672
- type: 'uint256',
673
- },
674
- {
675
- name: '_amountB',
676
- type: 'uint256',
677
- },
678
- {
679
- name: '_minAmountA',
680
- type: 'uint256',
681
- },
682
- {
683
- name: '_minAmountB',
684
- type: 'uint256',
685
- },
686
- {
687
- name: '_minLpAmount',
688
- type: 'uint256',
689
- },
690
- {
691
- name: '_recipient',
692
- type: 'address',
693
- },
694
- {
695
- name: '_oracleRegistry',
696
- type: 'address',
697
- },
698
- ],
699
- name: 'addLiquidity',
700
- outputs: [
701
- {
702
- name: '',
703
- type: 'uint256',
704
- },
705
- {
706
- name: '',
707
- type: 'uint256',
708
- },
709
- {
710
- name: '',
711
- type: 'uint256',
712
- },
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
- stateMutability: 'nonpayable',
731
- type: 'function',
732
- },
733
- {
734
- inputs: [
735
- {
736
- name: '_nftTokenId',
737
- type: 'uint256',
738
- },
739
- {
740
- name: '_pool',
741
- type: 'address',
742
- },
743
- {
744
- name: '_tokenA',
745
- type: 'address',
746
- },
747
- {
748
- name: '_tokenB',
749
- type: 'address',
750
- },
751
- {
752
- name: '_lpToken',
753
- type: 'address',
754
- },
755
- {
756
- name: '_liqToRemove',
757
- type: 'uint256',
758
- },
759
- {
760
- name: '_minAmountA',
761
- type: 'uint256',
762
- },
763
- {
764
- name: '_minAmountB',
765
- type: 'uint256',
766
- },
767
- {
768
- name: '_recipient',
769
- type: 'address',
770
- },
771
- ],
772
- name: 'removeLiquidity',
773
- outputs: [
774
- {
775
- name: '',
776
- type: 'uint256',
777
- },
778
- {
779
- name: '',
780
- type: 'uint256',
781
- },
782
- {
783
- name: '',
784
- type: 'uint256',
785
- },
786
- {
787
- name: '',
788
- type: 'uint256',
789
- },
790
- {
791
- name: '',
792
- type: 'uint256',
793
- },
794
- {
795
- name: '',
796
- type: 'bool',
797
- },
798
- ],
799
- stateMutability: 'nonpayable',
800
- type: 'function',
801
- },
802
- {
803
- inputs: [
804
- {
805
- name: '_nftTokenId',
806
- type: 'uint256',
807
- },
808
- {
809
- name: '_pool',
810
- type: 'address',
811
- },
812
- {
813
- name: '_tokenA',
814
- type: 'address',
815
- },
816
- {
817
- name: '_tokenB',
818
- type: 'address',
819
- },
820
- {
821
- name: '_lpToken',
822
- type: 'address',
823
- },
824
- {
825
- name: '_liqToRemove',
826
- type: 'uint256',
827
- },
828
- {
829
- name: '_minAmountA',
830
- type: 'uint256',
831
- },
832
- {
833
- name: '_minAmountB',
834
- type: 'uint256',
835
- },
836
- {
837
- name: '_recipient',
838
- type: 'address',
839
- },
840
- {
841
- name: '_oracleRegistry',
842
- type: 'address',
843
- },
844
- ],
845
- name: 'removeLiquidity',
846
- outputs: [
847
- {
848
- name: '',
849
- type: 'uint256',
850
- },
851
- {
852
- name: '',
853
- type: 'uint256',
854
- },
855
- {
856
- name: '',
857
- type: 'uint256',
858
- },
859
- {
860
- name: '',
861
- type: 'uint256',
862
- },
863
- {
864
- name: '',
865
- type: 'uint256',
866
- },
867
- {
868
- name: '',
869
- type: 'bool',
870
- },
871
- ],
872
- stateMutability: 'nonpayable',
873
- type: 'function',
874
- },
875
- {
876
- inputs: [
877
- {
878
- name: '_user',
879
- type: 'address',
880
- },
881
- {
882
- name: '_market',
883
- type: 'address',
884
- },
885
- {
886
- name: '_rewardToken',
887
- type: 'address',
888
- },
889
- {
890
- name: '_rewardAmount',
891
- type: 'uint256',
892
- },
893
- {
894
- name: '_proof',
895
- type: 'bytes32',
896
- },
897
- ],
898
- name: 'claimRewards',
899
- outputs: [],
900
- stateMutability: 'nonpayable',
901
- type: 'function',
902
- },
903
- {
904
- inputs: [
905
- {
906
- name: '_user',
907
- type: 'address',
908
- },
909
- ],
910
- name: 'hasClaimableRewards',
911
- outputs: [
912
- {
913
- name: '',
914
- type: 'bool',
915
- },
916
- ],
917
- stateMutability: 'view',
918
- type: 'function',
919
- },
920
- {
921
- inputs: [
922
- {
923
- name: '_pool',
924
- type: 'address',
925
- },
926
- ],
927
- name: 'getLpToken',
928
- outputs: [
929
- {
930
- name: '',
931
- type: 'address',
932
- },
933
- ],
934
- stateMutability: 'view',
935
- type: 'function',
936
- },
937
- {
938
- inputs: [
939
- {
940
- name: '_lpToken',
941
- type: 'address',
942
- },
943
- ],
944
- name: 'getPoolForLpToken',
945
- outputs: [
946
- {
947
- name: '',
948
- type: 'address',
949
- },
950
- ],
951
- stateMutability: 'view',
952
- type: 'function',
953
- },
954
- {
955
- inputs: [],
956
- name: 'getCoreRouterPool',
957
- outputs: [
958
- {
959
- name: '',
960
- type: 'address',
961
- },
962
- ],
963
- stateMutability: 'view',
964
- type: 'function',
965
- },
966
- {
967
- inputs: [
968
- {
969
- name: '_tokenA',
970
- type: 'address',
971
- },
972
- {
973
- name: '_tokenB',
974
- type: 'address',
975
- },
976
- ],
977
- name: 'getDeepestLiqPool',
978
- outputs: [
979
- {
980
- components: [
981
- {
982
- name: 'pool',
983
- type: 'address',
984
- },
985
- {
986
- name: 'fee',
987
- type: 'uint256',
988
- },
989
- {
990
- name: 'liquidity',
991
- type: 'uint256',
992
- },
993
- {
994
- name: 'numCoins',
995
- type: 'uint256',
996
- },
997
- {
998
- name: 'legoId',
999
- type: 'uint256',
1000
- },
1001
- ],
1002
- name: '',
1003
- type: 'tuple',
1004
- },
1005
- ],
1006
- stateMutability: 'view',
1007
- type: 'function',
1008
- },
1009
- {
1010
- inputs: [
1011
- {
1012
- name: '_tokenIn',
1013
- type: 'address',
1014
- },
1015
- {
1016
- name: '_tokenOut',
1017
- type: 'address',
1018
- },
1019
- {
1020
- name: '_amountIn',
1021
- type: 'uint256',
1022
- },
1023
- ],
1024
- name: 'getBestSwapAmountOut',
1025
- outputs: [
1026
- {
1027
- name: '',
1028
- type: 'address',
1029
- },
1030
- {
1031
- name: '',
1032
- type: 'uint256',
1033
- },
1034
- ],
1035
- stateMutability: 'view',
1036
- type: 'function',
1037
- },
1038
- {
1039
- inputs: [
1040
- {
1041
- name: '_pool',
1042
- type: 'address',
1043
- },
1044
- {
1045
- name: '_tokenIn',
1046
- type: 'address',
1047
- },
1048
- {
1049
- name: '_tokenOut',
1050
- type: 'address',
1051
- },
1052
- {
1053
- name: '_amountIn',
1054
- type: 'uint256',
1055
- },
1056
- ],
1057
- name: 'getSwapAmountOut',
1058
- outputs: [
1059
- {
1060
- name: '',
1061
- type: 'uint256',
1062
- },
1063
- ],
1064
- stateMutability: 'view',
1065
- type: 'function',
1066
- },
1067
- {
1068
- inputs: [
1069
- {
1070
- name: '_tokenIn',
1071
- type: 'address',
1072
- },
1073
- {
1074
- name: '_tokenOut',
1075
- type: 'address',
1076
- },
1077
- {
1078
- name: '_amountOut',
1079
- type: 'uint256',
1080
- },
1081
- ],
1082
- name: 'getBestSwapAmountIn',
1083
- outputs: [
1084
- {
1085
- name: '',
1086
- type: 'address',
1087
- },
1088
- {
1089
- name: '',
1090
- type: 'uint256',
1091
- },
1092
- ],
1093
- stateMutability: 'view',
1094
- type: 'function',
1095
- },
1096
- {
1097
- inputs: [
1098
- {
1099
- name: '_pool',
1100
- type: 'address',
1101
- },
1102
- {
1103
- name: '_tokenIn',
1104
- type: 'address',
1105
- },
1106
- {
1107
- name: '_tokenOut',
1108
- type: 'address',
1109
- },
1110
- {
1111
- name: '_amountOut',
1112
- type: 'uint256',
1113
- },
1114
- ],
1115
- name: 'getSwapAmountIn',
1116
- outputs: [
1117
- {
1118
- name: '',
1119
- type: 'uint256',
1120
- },
1121
- ],
1122
- stateMutability: 'view',
1123
- type: 'function',
1124
- },
1125
- {
1126
- inputs: [
1127
- {
1128
- name: '_pool',
1129
- type: 'address',
1130
- },
1131
- {
1132
- name: '_tokenA',
1133
- type: 'address',
1134
- },
1135
- {
1136
- name: '_tokenB',
1137
- type: 'address',
1138
- },
1139
- {
1140
- name: '_availAmountA',
1141
- type: 'uint256',
1142
- },
1143
- {
1144
- name: '_availAmountB',
1145
- type: 'uint256',
1146
- },
1147
- ],
1148
- name: 'getAddLiqAmountsIn',
1149
- outputs: [
1150
- {
1151
- name: '',
1152
- type: 'uint256',
1153
- },
1154
- {
1155
- name: '',
1156
- type: 'uint256',
1157
- },
1158
- {
1159
- name: '',
1160
- type: 'uint256',
1161
- },
1162
- ],
1163
- stateMutability: 'view',
1164
- type: 'function',
1165
- },
1166
- {
1167
- inputs: [
1168
- {
1169
- name: '_pool',
1170
- type: 'address',
1171
- },
1172
- {
1173
- name: '_tokenA',
1174
- type: 'address',
1175
- },
1176
- {
1177
- name: '_tokenB',
1178
- type: 'address',
1179
- },
1180
- {
1181
- name: '_lpAmount',
1182
- type: 'uint256',
1183
- },
1184
- ],
1185
- name: 'getRemoveLiqAmountsOut',
1186
- outputs: [
1187
- {
1188
- name: '',
1189
- type: 'uint256',
1190
- },
1191
- {
1192
- name: '',
1193
- type: 'uint256',
1194
- },
1195
- ],
1196
- stateMutability: 'view',
1197
- type: 'function',
1198
- },
1199
- {
1200
- inputs: [
1201
- {
1202
- name: '_pool',
1203
- type: 'address',
1204
- },
1205
- {
1206
- name: '_targetToken',
1207
- type: 'address',
1208
- },
1209
- ],
1210
- name: 'getPriceUnsafe',
1211
- outputs: [
1212
- {
1213
- name: '',
1214
- type: 'uint256',
1215
- },
1216
- ],
1217
- stateMutability: 'view',
1218
- type: 'function',
1219
- },
1220
- {
1221
- inputs: [
1222
- {
1223
- name: '_pool',
1224
- type: 'address',
1225
- },
1226
- {
1227
- name: '_targetToken',
1228
- type: 'address',
1229
- },
1230
- {
1231
- name: '_oracleRegistry',
1232
- type: 'address',
1233
- },
1234
- ],
1235
- name: 'getPriceUnsafe',
1236
- outputs: [
1237
- {
1238
- name: '',
1239
- type: 'uint256',
1240
- },
1241
- ],
1242
- stateMutability: 'view',
1243
- type: 'function',
1244
- },
1245
- {
1246
- inputs: [
1247
- {
1248
- name: '_asset',
1249
- type: 'address',
1250
- },
1251
- {
1252
- name: '_recipient',
1253
- type: 'address',
1254
- },
1255
- ],
1256
- name: 'recoverFunds',
1257
- outputs: [
1258
- {
1259
- name: '',
1260
- type: 'bool',
1261
- },
1262
- ],
1263
- stateMutability: 'nonpayable',
1264
- type: 'function',
1265
- },
1266
- {
1267
- inputs: [
1268
- {
1269
- name: '_legoId',
1270
- type: 'uint256',
1271
- },
1272
- ],
1273
- name: 'setLegoId',
1274
- outputs: [
1275
- {
1276
- name: '',
1277
- type: 'bool',
1278
- },
1279
- ],
1280
- stateMutability: 'nonpayable',
1281
- type: 'function',
1282
- },
1283
- {
1284
- inputs: [
1285
- {
1286
- name: '_shouldActivate',
1287
- type: 'bool',
1288
- },
1289
- ],
1290
- name: 'activate',
1291
- outputs: [],
1292
- stateMutability: 'nonpayable',
1293
- type: 'function',
1294
- },
1295
- {
1296
- inputs: [],
1297
- name: 'CURVE_META_REGISTRY',
1298
- outputs: [
1299
- {
1300
- name: '',
1301
- type: 'address',
1302
- },
1303
- ],
1304
- stateMutability: 'view',
1305
- type: 'function',
1306
- },
1307
- {
1308
- inputs: [],
1309
- name: 'CURVE_REGISTRIES',
1310
- outputs: [
1311
- {
1312
- components: [
1313
- {
1314
- name: 'StableSwapNg',
1315
- type: 'address',
1316
- },
1317
- {
1318
- name: 'TwoCryptoNg',
1319
- type: 'address',
1320
- },
1321
- {
1322
- name: 'TricryptoNg',
1323
- type: 'address',
1324
- },
1325
- {
1326
- name: 'TwoCrypto',
1327
- type: 'address',
1328
- },
1329
- {
1330
- name: 'MetaPool',
1331
- type: 'address',
1332
- },
1333
- {
1334
- name: 'RateProvider',
1335
- type: 'address',
1336
- },
1337
- ],
1338
- name: '',
1339
- type: 'tuple',
1340
- },
1341
- ],
1342
- stateMutability: 'view',
1343
- type: 'function',
1344
- },
1345
- {
1346
- inputs: [],
1347
- name: 'legoId',
1348
- outputs: [
1349
- {
1350
- name: '',
1351
- type: 'uint256',
1352
- },
1353
- ],
1354
- stateMutability: 'view',
1355
- type: 'function',
1356
- },
1357
- {
1358
- inputs: [],
1359
- name: 'isActivated',
1360
- outputs: [
1361
- {
1362
- name: '',
1363
- type: 'bool',
1364
- },
1365
- ],
1366
- stateMutability: 'view',
1367
- type: 'function',
1368
- },
1369
- {
1370
- inputs: [],
1371
- name: 'ADDY_REGISTRY',
1372
- outputs: [
1373
- {
1374
- name: '',
1375
- type: 'address',
1376
- },
1377
- ],
1378
- stateMutability: 'view',
1379
- type: 'function',
1380
- },
1381
- {
1382
- inputs: [
1383
- {
1384
- name: '_curveAddressProvider',
1385
- type: 'address',
1386
- },
1387
- {
1388
- name: '_addyRegistry',
1389
- type: 'address',
1390
- },
1391
- ],
1392
- outputs: [],
1393
- stateMutability: 'nonpayable',
1394
- type: 'constructor',
1395
- },
1396
- ];
1397
- export const deployAddress = '0x6118D44763a556Cf8d113ebBce853E14a0C67997';
1398
- function getRequest(method, args, contractAddressOrOptions) {
1399
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1400
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1401
- const call = {
1402
- contractName: 'v0_3_LegoCurve',
1403
- method,
1404
- args,
1405
- address,
1406
- deployAddress,
1407
- defaultValue,
1408
- getAbi: () => abi,
1409
- with: (options) => {
1410
- call.address = options.contractAddress;
1411
- call.defaultValue = options.defaultValue;
1412
- return call;
1413
- },
1414
- defaultTo: (defaultValue) => {
1415
- call.defaultValue = defaultValue;
1416
- return call;
1417
- },
1418
- at: (address) => {
1419
- call.address = address;
1420
- return call;
1421
- },
1422
- };
1423
- return call;
1424
- }
1425
- export const call = {
1426
- canGovern: (...args) => getRequest('canGovern', args),
1427
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1428
- governance: (...args) => getRequest('governance', args),
1429
- pendingGov: (...args) => getRequest('pendingGov', args),
1430
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1431
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1432
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1433
- getRegistries: (...args) => getRequest('getRegistries', args),
1434
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1435
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1436
- getLpToken: (...args) => getRequest('getLpToken', args),
1437
- getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
1438
- getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
1439
- getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
1440
- getBestSwapAmountOut: (...args) => getRequest('getBestSwapAmountOut', args),
1441
- getSwapAmountOut: (...args) => getRequest('getSwapAmountOut', args),
1442
- getBestSwapAmountIn: (...args) => getRequest('getBestSwapAmountIn', args),
1443
- getSwapAmountIn: (...args) => getRequest('getSwapAmountIn', args),
1444
- getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
1445
- getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
1446
- getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
1447
- CURVE_META_REGISTRY: (...args) => getRequest('CURVE_META_REGISTRY', args),
1448
- CURVE_REGISTRIES: (...args) => getRequest('CURVE_REGISTRIES', args),
1449
- legoId: (...args) => getRequest('legoId', args),
1450
- isActivated: (...args) => getRequest('isActivated', args),
1451
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1452
- };
1453
- function getMutation(functionName) {
1454
- return {
1455
- contractName: 'v0_3_LegoCurve',
1456
- functionName,
1457
- deployAddress,
1458
- argsType: undefined,
1459
- getAbi: () => abi,
1460
- };
1461
- }
1462
- export const mutation = {
1463
- changeGovernance: getMutation('changeGovernance'),
1464
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1465
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1466
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1467
- swapTokens: getMutation('swapTokens'),
1468
- addLiquidity: getMutation('addLiquidity'),
1469
- removeLiquidity: getMutation('removeLiquidity'),
1470
- claimRewards: getMutation('claimRewards'),
1471
- recoverFunds: getMutation('recoverFunds'),
1472
- setLegoId: getMutation('setLegoId'),
1473
- activate: getMutation('activate'),
1474
- };
1475
- export function toSdk(publicClient, walletClient) {
1476
- return {
1477
- deployAddress,
1478
- abi,
1479
- // Queries
1480
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1481
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1482
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1483
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1484
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1485
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1486
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1487
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1488
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1489
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1490
- getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args)),
1491
- getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args)),
1492
- getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args)),
1493
- getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args)),
1494
- getBestSwapAmountOut: (...args) => singleQuery(publicClient, call.getBestSwapAmountOut(...args)),
1495
- getSwapAmountOut: (...args) => singleQuery(publicClient, call.getSwapAmountOut(...args)),
1496
- getBestSwapAmountIn: (...args) => singleQuery(publicClient, call.getBestSwapAmountIn(...args)),
1497
- getSwapAmountIn: (...args) => singleQuery(publicClient, call.getSwapAmountIn(...args)),
1498
- getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args)),
1499
- getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args)),
1500
- getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args)),
1501
- CURVE_META_REGISTRY: (...args) => singleQuery(publicClient, call.CURVE_META_REGISTRY(...args)),
1502
- CURVE_REGISTRIES: (...args) => singleQuery(publicClient, call.CURVE_REGISTRIES(...args)),
1503
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1504
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1505
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1506
- // Mutations
1507
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1508
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1509
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1510
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1511
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1512
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
1513
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
1514
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1515
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1516
- setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1517
- activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1518
- };
1519
- }