@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,3372 +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: 'prevOwner',
13
- type: 'address',
14
- },
15
- {
16
- indexed: true,
17
- name: 'newOwner',
18
- type: 'address',
19
- },
20
- {
21
- indexed: false,
22
- name: 'confirmBlock',
23
- type: 'uint256',
24
- },
25
- ],
26
- name: 'AgentOwnershipChangeInitiated',
27
- type: 'event',
28
- },
29
- {
30
- anonymous: false,
31
- inputs: [
32
- {
33
- indexed: true,
34
- name: 'prevOwner',
35
- type: 'address',
36
- },
37
- {
38
- indexed: true,
39
- name: 'newOwner',
40
- type: 'address',
41
- },
42
- {
43
- indexed: false,
44
- name: 'initiatedBlock',
45
- type: 'uint256',
46
- },
47
- {
48
- indexed: false,
49
- name: 'confirmBlock',
50
- type: 'uint256',
51
- },
52
- ],
53
- name: 'AgentOwnershipChangeConfirmed',
54
- type: 'event',
55
- },
56
- {
57
- anonymous: false,
58
- inputs: [
59
- {
60
- indexed: true,
61
- name: 'cancelledOwner',
62
- type: 'address',
63
- },
64
- {
65
- indexed: false,
66
- name: 'initiatedBlock',
67
- type: 'uint256',
68
- },
69
- {
70
- indexed: false,
71
- name: 'confirmBlock',
72
- type: 'uint256',
73
- },
74
- ],
75
- name: 'AgentOwnershipChangeCancelled',
76
- type: 'event',
77
- },
78
- {
79
- anonymous: false,
80
- inputs: [
81
- {
82
- indexed: false,
83
- name: 'delayBlocks',
84
- type: 'uint256',
85
- },
86
- ],
87
- name: 'AgentOwnershipChangeDelaySet',
88
- type: 'event',
89
- },
90
- {
91
- anonymous: false,
92
- inputs: [
93
- {
94
- indexed: true,
95
- name: 'asset',
96
- type: 'address',
97
- },
98
- {
99
- indexed: true,
100
- name: 'recipient',
101
- type: 'address',
102
- },
103
- {
104
- indexed: false,
105
- name: 'balance',
106
- type: 'uint256',
107
- },
108
- ],
109
- name: 'AgentFundsRecovered',
110
- type: 'event',
111
- },
112
- {
113
- inputs: [
114
- {
115
- name: '_owner',
116
- type: 'address',
117
- },
118
- ],
119
- name: 'initialize',
120
- outputs: [
121
- {
122
- name: '',
123
- type: 'bool',
124
- },
125
- ],
126
- stateMutability: 'nonpayable',
127
- type: 'function',
128
- },
129
- {
130
- inputs: [],
131
- name: 'apiVersion',
132
- outputs: [
133
- {
134
- name: '',
135
- type: 'string',
136
- },
137
- ],
138
- stateMutability: 'pure',
139
- type: 'function',
140
- },
141
- {
142
- inputs: [
143
- {
144
- name: '_userWallet',
145
- type: 'address',
146
- },
147
- {
148
- name: '_legoId',
149
- type: 'uint256',
150
- },
151
- {
152
- name: '_asset',
153
- type: 'address',
154
- },
155
- {
156
- name: '_vault',
157
- type: 'address',
158
- },
159
- ],
160
- name: 'depositTokens',
161
- outputs: [
162
- {
163
- name: '',
164
- type: 'uint256',
165
- },
166
- {
167
- name: '',
168
- type: 'address',
169
- },
170
- {
171
- name: '',
172
- type: 'uint256',
173
- },
174
- {
175
- name: '',
176
- type: 'uint256',
177
- },
178
- ],
179
- stateMutability: 'nonpayable',
180
- type: 'function',
181
- },
182
- {
183
- inputs: [
184
- {
185
- name: '_userWallet',
186
- type: 'address',
187
- },
188
- {
189
- name: '_legoId',
190
- type: 'uint256',
191
- },
192
- {
193
- name: '_asset',
194
- type: 'address',
195
- },
196
- {
197
- name: '_vault',
198
- type: 'address',
199
- },
200
- {
201
- name: '_amount',
202
- type: 'uint256',
203
- },
204
- ],
205
- name: 'depositTokens',
206
- outputs: [
207
- {
208
- name: '',
209
- type: 'uint256',
210
- },
211
- {
212
- name: '',
213
- type: 'address',
214
- },
215
- {
216
- name: '',
217
- type: 'uint256',
218
- },
219
- {
220
- name: '',
221
- type: 'uint256',
222
- },
223
- ],
224
- stateMutability: 'nonpayable',
225
- type: 'function',
226
- },
227
- {
228
- inputs: [
229
- {
230
- name: '_userWallet',
231
- type: 'address',
232
- },
233
- {
234
- name: '_legoId',
235
- type: 'uint256',
236
- },
237
- {
238
- name: '_asset',
239
- type: 'address',
240
- },
241
- {
242
- name: '_vault',
243
- type: 'address',
244
- },
245
- {
246
- name: '_amount',
247
- type: 'uint256',
248
- },
249
- {
250
- components: [
251
- {
252
- name: 'signature',
253
- type: 'bytes',
254
- },
255
- {
256
- name: 'signer',
257
- type: 'address',
258
- },
259
- {
260
- name: 'expiration',
261
- type: 'uint256',
262
- },
263
- ],
264
- name: '_sig',
265
- type: 'tuple',
266
- },
267
- ],
268
- name: 'depositTokens',
269
- outputs: [
270
- {
271
- name: '',
272
- type: 'uint256',
273
- },
274
- {
275
- name: '',
276
- type: 'address',
277
- },
278
- {
279
- name: '',
280
- type: 'uint256',
281
- },
282
- {
283
- name: '',
284
- type: 'uint256',
285
- },
286
- ],
287
- stateMutability: 'nonpayable',
288
- type: 'function',
289
- },
290
- {
291
- inputs: [
292
- {
293
- name: '_userWallet',
294
- type: 'address',
295
- },
296
- {
297
- name: '_legoId',
298
- type: 'uint256',
299
- },
300
- {
301
- name: '_asset',
302
- type: 'address',
303
- },
304
- {
305
- name: '_vaultToken',
306
- type: 'address',
307
- },
308
- ],
309
- name: 'withdrawTokens',
310
- outputs: [
311
- {
312
- name: '',
313
- type: 'uint256',
314
- },
315
- {
316
- name: '',
317
- type: 'uint256',
318
- },
319
- {
320
- name: '',
321
- type: 'uint256',
322
- },
323
- ],
324
- stateMutability: 'nonpayable',
325
- type: 'function',
326
- },
327
- {
328
- inputs: [
329
- {
330
- name: '_userWallet',
331
- type: 'address',
332
- },
333
- {
334
- name: '_legoId',
335
- type: 'uint256',
336
- },
337
- {
338
- name: '_asset',
339
- type: 'address',
340
- },
341
- {
342
- name: '_vaultToken',
343
- type: 'address',
344
- },
345
- {
346
- name: '_vaultTokenAmount',
347
- type: 'uint256',
348
- },
349
- ],
350
- name: 'withdrawTokens',
351
- outputs: [
352
- {
353
- name: '',
354
- type: 'uint256',
355
- },
356
- {
357
- name: '',
358
- type: 'uint256',
359
- },
360
- {
361
- name: '',
362
- type: 'uint256',
363
- },
364
- ],
365
- stateMutability: 'nonpayable',
366
- type: 'function',
367
- },
368
- {
369
- inputs: [
370
- {
371
- name: '_userWallet',
372
- type: 'address',
373
- },
374
- {
375
- name: '_legoId',
376
- type: 'uint256',
377
- },
378
- {
379
- name: '_asset',
380
- type: 'address',
381
- },
382
- {
383
- name: '_vaultToken',
384
- type: 'address',
385
- },
386
- {
387
- name: '_vaultTokenAmount',
388
- type: 'uint256',
389
- },
390
- {
391
- components: [
392
- {
393
- name: 'signature',
394
- type: 'bytes',
395
- },
396
- {
397
- name: 'signer',
398
- type: 'address',
399
- },
400
- {
401
- name: 'expiration',
402
- type: 'uint256',
403
- },
404
- ],
405
- name: '_sig',
406
- type: 'tuple',
407
- },
408
- ],
409
- name: 'withdrawTokens',
410
- outputs: [
411
- {
412
- name: '',
413
- type: 'uint256',
414
- },
415
- {
416
- name: '',
417
- type: 'uint256',
418
- },
419
- {
420
- name: '',
421
- type: 'uint256',
422
- },
423
- ],
424
- stateMutability: 'nonpayable',
425
- type: 'function',
426
- },
427
- {
428
- inputs: [
429
- {
430
- name: '_userWallet',
431
- type: 'address',
432
- },
433
- {
434
- name: '_fromLegoId',
435
- type: 'uint256',
436
- },
437
- {
438
- name: '_fromAsset',
439
- type: 'address',
440
- },
441
- {
442
- name: '_fromVaultToken',
443
- type: 'address',
444
- },
445
- {
446
- name: '_toLegoId',
447
- type: 'uint256',
448
- },
449
- {
450
- name: '_toVault',
451
- type: 'address',
452
- },
453
- ],
454
- name: 'rebalance',
455
- outputs: [
456
- {
457
- name: '',
458
- type: 'uint256',
459
- },
460
- {
461
- name: '',
462
- type: 'address',
463
- },
464
- {
465
- name: '',
466
- type: 'uint256',
467
- },
468
- {
469
- name: '',
470
- type: 'uint256',
471
- },
472
- ],
473
- stateMutability: 'nonpayable',
474
- type: 'function',
475
- },
476
- {
477
- inputs: [
478
- {
479
- name: '_userWallet',
480
- type: 'address',
481
- },
482
- {
483
- name: '_fromLegoId',
484
- type: 'uint256',
485
- },
486
- {
487
- name: '_fromAsset',
488
- type: 'address',
489
- },
490
- {
491
- name: '_fromVaultToken',
492
- type: 'address',
493
- },
494
- {
495
- name: '_toLegoId',
496
- type: 'uint256',
497
- },
498
- {
499
- name: '_toVault',
500
- type: 'address',
501
- },
502
- {
503
- name: '_fromVaultTokenAmount',
504
- type: 'uint256',
505
- },
506
- ],
507
- name: 'rebalance',
508
- outputs: [
509
- {
510
- name: '',
511
- type: 'uint256',
512
- },
513
- {
514
- name: '',
515
- type: 'address',
516
- },
517
- {
518
- name: '',
519
- type: 'uint256',
520
- },
521
- {
522
- name: '',
523
- type: 'uint256',
524
- },
525
- ],
526
- stateMutability: 'nonpayable',
527
- type: 'function',
528
- },
529
- {
530
- inputs: [
531
- {
532
- name: '_userWallet',
533
- type: 'address',
534
- },
535
- {
536
- name: '_fromLegoId',
537
- type: 'uint256',
538
- },
539
- {
540
- name: '_fromAsset',
541
- type: 'address',
542
- },
543
- {
544
- name: '_fromVaultToken',
545
- type: 'address',
546
- },
547
- {
548
- name: '_toLegoId',
549
- type: 'uint256',
550
- },
551
- {
552
- name: '_toVault',
553
- type: 'address',
554
- },
555
- {
556
- name: '_fromVaultTokenAmount',
557
- type: 'uint256',
558
- },
559
- {
560
- components: [
561
- {
562
- name: 'signature',
563
- type: 'bytes',
564
- },
565
- {
566
- name: 'signer',
567
- type: 'address',
568
- },
569
- {
570
- name: 'expiration',
571
- type: 'uint256',
572
- },
573
- ],
574
- name: '_sig',
575
- type: 'tuple',
576
- },
577
- ],
578
- name: 'rebalance',
579
- outputs: [
580
- {
581
- name: '',
582
- type: 'uint256',
583
- },
584
- {
585
- name: '',
586
- type: 'address',
587
- },
588
- {
589
- name: '',
590
- type: 'uint256',
591
- },
592
- {
593
- name: '',
594
- type: 'uint256',
595
- },
596
- ],
597
- stateMutability: 'nonpayable',
598
- type: 'function',
599
- },
600
- {
601
- inputs: [
602
- {
603
- name: '_userWallet',
604
- type: 'address',
605
- },
606
- {
607
- components: [
608
- {
609
- name: 'legoId',
610
- type: 'uint256',
611
- },
612
- {
613
- name: 'amountIn',
614
- type: 'uint256',
615
- },
616
- {
617
- name: 'minAmountOut',
618
- type: 'uint256',
619
- },
620
- {
621
- name: 'tokenPath',
622
- type: 'address[]',
623
- },
624
- {
625
- name: 'poolPath',
626
- type: 'address[]',
627
- },
628
- ],
629
- name: '_swapInstructions',
630
- type: 'tuple[]',
631
- },
632
- ],
633
- name: 'swapTokens',
634
- outputs: [
635
- {
636
- name: '',
637
- type: 'uint256',
638
- },
639
- {
640
- name: '',
641
- type: 'uint256',
642
- },
643
- {
644
- name: '',
645
- type: 'uint256',
646
- },
647
- ],
648
- stateMutability: 'nonpayable',
649
- type: 'function',
650
- },
651
- {
652
- inputs: [
653
- {
654
- name: '_userWallet',
655
- type: 'address',
656
- },
657
- {
658
- components: [
659
- {
660
- name: 'legoId',
661
- type: 'uint256',
662
- },
663
- {
664
- name: 'amountIn',
665
- type: 'uint256',
666
- },
667
- {
668
- name: 'minAmountOut',
669
- type: 'uint256',
670
- },
671
- {
672
- name: 'tokenPath',
673
- type: 'address[]',
674
- },
675
- {
676
- name: 'poolPath',
677
- type: 'address[]',
678
- },
679
- ],
680
- name: '_swapInstructions',
681
- type: 'tuple[]',
682
- },
683
- {
684
- components: [
685
- {
686
- name: 'signature',
687
- type: 'bytes',
688
- },
689
- {
690
- name: 'signer',
691
- type: 'address',
692
- },
693
- {
694
- name: 'expiration',
695
- type: 'uint256',
696
- },
697
- ],
698
- name: '_sig',
699
- type: 'tuple',
700
- },
701
- ],
702
- name: 'swapTokens',
703
- outputs: [
704
- {
705
- name: '',
706
- type: 'uint256',
707
- },
708
- {
709
- name: '',
710
- type: 'uint256',
711
- },
712
- {
713
- name: '',
714
- type: 'uint256',
715
- },
716
- ],
717
- stateMutability: 'nonpayable',
718
- type: 'function',
719
- },
720
- {
721
- inputs: [
722
- {
723
- name: '_userWallet',
724
- type: 'address',
725
- },
726
- {
727
- components: [
728
- {
729
- name: 'legoId',
730
- type: 'uint256',
731
- },
732
- {
733
- name: 'amountIn',
734
- type: 'uint256',
735
- },
736
- {
737
- name: 'minAmountOut',
738
- type: 'uint256',
739
- },
740
- {
741
- name: 'tokenPath',
742
- type: 'address[]',
743
- },
744
- {
745
- name: 'poolPath',
746
- type: 'address[]',
747
- },
748
- ],
749
- name: '_swapInstructions',
750
- type: 'tuple[]',
751
- },
752
- {
753
- name: '_expiration',
754
- type: 'uint256',
755
- },
756
- ],
757
- name: 'getSwapActionHash',
758
- outputs: [
759
- {
760
- name: '',
761
- type: 'bytes32',
762
- },
763
- ],
764
- stateMutability: 'view',
765
- type: 'function',
766
- },
767
- {
768
- inputs: [
769
- {
770
- name: '_userWallet',
771
- type: 'address',
772
- },
773
- {
774
- name: '_legoId',
775
- type: 'uint256',
776
- },
777
- ],
778
- name: 'borrow',
779
- outputs: [
780
- {
781
- name: '',
782
- type: 'address',
783
- },
784
- {
785
- name: '',
786
- type: 'uint256',
787
- },
788
- {
789
- name: '',
790
- type: 'uint256',
791
- },
792
- ],
793
- stateMutability: 'nonpayable',
794
- type: 'function',
795
- },
796
- {
797
- inputs: [
798
- {
799
- name: '_userWallet',
800
- type: 'address',
801
- },
802
- {
803
- name: '_legoId',
804
- type: 'uint256',
805
- },
806
- {
807
- name: '_borrowAsset',
808
- type: 'address',
809
- },
810
- ],
811
- name: 'borrow',
812
- outputs: [
813
- {
814
- name: '',
815
- type: 'address',
816
- },
817
- {
818
- name: '',
819
- type: 'uint256',
820
- },
821
- {
822
- name: '',
823
- type: 'uint256',
824
- },
825
- ],
826
- stateMutability: 'nonpayable',
827
- type: 'function',
828
- },
829
- {
830
- inputs: [
831
- {
832
- name: '_userWallet',
833
- type: 'address',
834
- },
835
- {
836
- name: '_legoId',
837
- type: 'uint256',
838
- },
839
- {
840
- name: '_borrowAsset',
841
- type: 'address',
842
- },
843
- {
844
- name: '_amount',
845
- type: 'uint256',
846
- },
847
- ],
848
- name: 'borrow',
849
- outputs: [
850
- {
851
- name: '',
852
- type: 'address',
853
- },
854
- {
855
- name: '',
856
- type: 'uint256',
857
- },
858
- {
859
- name: '',
860
- type: 'uint256',
861
- },
862
- ],
863
- stateMutability: 'nonpayable',
864
- type: 'function',
865
- },
866
- {
867
- inputs: [
868
- {
869
- name: '_userWallet',
870
- type: 'address',
871
- },
872
- {
873
- name: '_legoId',
874
- type: 'uint256',
875
- },
876
- {
877
- name: '_borrowAsset',
878
- type: 'address',
879
- },
880
- {
881
- name: '_amount',
882
- type: 'uint256',
883
- },
884
- {
885
- components: [
886
- {
887
- name: 'signature',
888
- type: 'bytes',
889
- },
890
- {
891
- name: 'signer',
892
- type: 'address',
893
- },
894
- {
895
- name: 'expiration',
896
- type: 'uint256',
897
- },
898
- ],
899
- name: '_sig',
900
- type: 'tuple',
901
- },
902
- ],
903
- name: 'borrow',
904
- outputs: [
905
- {
906
- name: '',
907
- type: 'address',
908
- },
909
- {
910
- name: '',
911
- type: 'uint256',
912
- },
913
- {
914
- name: '',
915
- type: 'uint256',
916
- },
917
- ],
918
- stateMutability: 'nonpayable',
919
- type: 'function',
920
- },
921
- {
922
- inputs: [
923
- {
924
- name: '_userWallet',
925
- type: 'address',
926
- },
927
- {
928
- name: '_legoId',
929
- type: 'uint256',
930
- },
931
- {
932
- name: '_paymentAsset',
933
- type: 'address',
934
- },
935
- ],
936
- name: 'repayDebt',
937
- outputs: [
938
- {
939
- name: '',
940
- type: 'address',
941
- },
942
- {
943
- name: '',
944
- type: 'uint256',
945
- },
946
- {
947
- name: '',
948
- type: 'uint256',
949
- },
950
- {
951
- name: '',
952
- type: 'uint256',
953
- },
954
- ],
955
- stateMutability: 'nonpayable',
956
- type: 'function',
957
- },
958
- {
959
- inputs: [
960
- {
961
- name: '_userWallet',
962
- type: 'address',
963
- },
964
- {
965
- name: '_legoId',
966
- type: 'uint256',
967
- },
968
- {
969
- name: '_paymentAsset',
970
- type: 'address',
971
- },
972
- {
973
- name: '_paymentAmount',
974
- type: 'uint256',
975
- },
976
- ],
977
- name: 'repayDebt',
978
- outputs: [
979
- {
980
- name: '',
981
- type: 'address',
982
- },
983
- {
984
- name: '',
985
- type: 'uint256',
986
- },
987
- {
988
- name: '',
989
- type: 'uint256',
990
- },
991
- {
992
- name: '',
993
- type: 'uint256',
994
- },
995
- ],
996
- stateMutability: 'nonpayable',
997
- type: 'function',
998
- },
999
- {
1000
- inputs: [
1001
- {
1002
- name: '_userWallet',
1003
- type: 'address',
1004
- },
1005
- {
1006
- name: '_legoId',
1007
- type: 'uint256',
1008
- },
1009
- {
1010
- name: '_paymentAsset',
1011
- type: 'address',
1012
- },
1013
- {
1014
- name: '_paymentAmount',
1015
- type: 'uint256',
1016
- },
1017
- {
1018
- components: [
1019
- {
1020
- name: 'signature',
1021
- type: 'bytes',
1022
- },
1023
- {
1024
- name: 'signer',
1025
- type: 'address',
1026
- },
1027
- {
1028
- name: 'expiration',
1029
- type: 'uint256',
1030
- },
1031
- ],
1032
- name: '_sig',
1033
- type: 'tuple',
1034
- },
1035
- ],
1036
- name: 'repayDebt',
1037
- outputs: [
1038
- {
1039
- name: '',
1040
- type: 'address',
1041
- },
1042
- {
1043
- name: '',
1044
- type: 'uint256',
1045
- },
1046
- {
1047
- name: '',
1048
- type: 'uint256',
1049
- },
1050
- {
1051
- name: '',
1052
- type: 'uint256',
1053
- },
1054
- ],
1055
- stateMutability: 'nonpayable',
1056
- type: 'function',
1057
- },
1058
- {
1059
- inputs: [
1060
- {
1061
- name: '_userWallet',
1062
- type: 'address',
1063
- },
1064
- {
1065
- name: '_legoId',
1066
- type: 'uint256',
1067
- },
1068
- ],
1069
- name: 'claimRewards',
1070
- outputs: [],
1071
- stateMutability: 'nonpayable',
1072
- type: 'function',
1073
- },
1074
- {
1075
- inputs: [
1076
- {
1077
- name: '_userWallet',
1078
- type: 'address',
1079
- },
1080
- {
1081
- name: '_legoId',
1082
- type: 'uint256',
1083
- },
1084
- {
1085
- name: '_market',
1086
- type: 'address',
1087
- },
1088
- ],
1089
- name: 'claimRewards',
1090
- outputs: [],
1091
- stateMutability: 'nonpayable',
1092
- type: 'function',
1093
- },
1094
- {
1095
- inputs: [
1096
- {
1097
- name: '_userWallet',
1098
- type: 'address',
1099
- },
1100
- {
1101
- name: '_legoId',
1102
- type: 'uint256',
1103
- },
1104
- {
1105
- name: '_market',
1106
- type: 'address',
1107
- },
1108
- {
1109
- name: '_rewardToken',
1110
- type: 'address',
1111
- },
1112
- ],
1113
- name: 'claimRewards',
1114
- outputs: [],
1115
- stateMutability: 'nonpayable',
1116
- type: 'function',
1117
- },
1118
- {
1119
- inputs: [
1120
- {
1121
- name: '_userWallet',
1122
- type: 'address',
1123
- },
1124
- {
1125
- name: '_legoId',
1126
- type: 'uint256',
1127
- },
1128
- {
1129
- name: '_market',
1130
- type: 'address',
1131
- },
1132
- {
1133
- name: '_rewardToken',
1134
- type: 'address',
1135
- },
1136
- {
1137
- name: '_rewardAmount',
1138
- type: 'uint256',
1139
- },
1140
- ],
1141
- name: 'claimRewards',
1142
- outputs: [],
1143
- stateMutability: 'nonpayable',
1144
- type: 'function',
1145
- },
1146
- {
1147
- inputs: [
1148
- {
1149
- name: '_userWallet',
1150
- type: 'address',
1151
- },
1152
- {
1153
- name: '_legoId',
1154
- type: 'uint256',
1155
- },
1156
- {
1157
- name: '_market',
1158
- type: 'address',
1159
- },
1160
- {
1161
- name: '_rewardToken',
1162
- type: 'address',
1163
- },
1164
- {
1165
- name: '_rewardAmount',
1166
- type: 'uint256',
1167
- },
1168
- {
1169
- name: '_proof',
1170
- type: 'bytes32',
1171
- },
1172
- ],
1173
- name: 'claimRewards',
1174
- outputs: [],
1175
- stateMutability: 'nonpayable',
1176
- type: 'function',
1177
- },
1178
- {
1179
- inputs: [
1180
- {
1181
- name: '_userWallet',
1182
- type: 'address',
1183
- },
1184
- {
1185
- name: '_legoId',
1186
- type: 'uint256',
1187
- },
1188
- {
1189
- name: '_market',
1190
- type: 'address',
1191
- },
1192
- {
1193
- name: '_rewardToken',
1194
- type: 'address',
1195
- },
1196
- {
1197
- name: '_rewardAmount',
1198
- type: 'uint256',
1199
- },
1200
- {
1201
- name: '_proof',
1202
- type: 'bytes32',
1203
- },
1204
- {
1205
- components: [
1206
- {
1207
- name: 'signature',
1208
- type: 'bytes',
1209
- },
1210
- {
1211
- name: 'signer',
1212
- type: 'address',
1213
- },
1214
- {
1215
- name: 'expiration',
1216
- type: 'uint256',
1217
- },
1218
- ],
1219
- name: '_sig',
1220
- type: 'tuple',
1221
- },
1222
- ],
1223
- name: 'claimRewards',
1224
- outputs: [],
1225
- stateMutability: 'nonpayable',
1226
- type: 'function',
1227
- },
1228
- {
1229
- inputs: [
1230
- {
1231
- name: '_userWallet',
1232
- type: 'address',
1233
- },
1234
- {
1235
- name: '_legoId',
1236
- type: 'uint256',
1237
- },
1238
- {
1239
- name: '_nftAddr',
1240
- type: 'address',
1241
- },
1242
- {
1243
- name: '_nftTokenId',
1244
- type: 'uint256',
1245
- },
1246
- {
1247
- name: '_pool',
1248
- type: 'address',
1249
- },
1250
- {
1251
- name: '_tokenA',
1252
- type: 'address',
1253
- },
1254
- {
1255
- name: '_tokenB',
1256
- type: 'address',
1257
- },
1258
- ],
1259
- name: 'addLiquidity',
1260
- outputs: [
1261
- {
1262
- name: '',
1263
- type: 'uint256',
1264
- },
1265
- {
1266
- name: '',
1267
- type: 'uint256',
1268
- },
1269
- {
1270
- name: '',
1271
- type: 'uint256',
1272
- },
1273
- {
1274
- name: '',
1275
- type: 'uint256',
1276
- },
1277
- {
1278
- name: '',
1279
- type: 'uint256',
1280
- },
1281
- ],
1282
- stateMutability: 'nonpayable',
1283
- type: 'function',
1284
- },
1285
- {
1286
- inputs: [
1287
- {
1288
- name: '_userWallet',
1289
- type: 'address',
1290
- },
1291
- {
1292
- name: '_legoId',
1293
- type: 'uint256',
1294
- },
1295
- {
1296
- name: '_nftAddr',
1297
- type: 'address',
1298
- },
1299
- {
1300
- name: '_nftTokenId',
1301
- type: 'uint256',
1302
- },
1303
- {
1304
- name: '_pool',
1305
- type: 'address',
1306
- },
1307
- {
1308
- name: '_tokenA',
1309
- type: 'address',
1310
- },
1311
- {
1312
- name: '_tokenB',
1313
- type: 'address',
1314
- },
1315
- {
1316
- name: '_amountA',
1317
- type: 'uint256',
1318
- },
1319
- ],
1320
- name: 'addLiquidity',
1321
- outputs: [
1322
- {
1323
- name: '',
1324
- type: 'uint256',
1325
- },
1326
- {
1327
- name: '',
1328
- type: 'uint256',
1329
- },
1330
- {
1331
- name: '',
1332
- type: 'uint256',
1333
- },
1334
- {
1335
- name: '',
1336
- type: 'uint256',
1337
- },
1338
- {
1339
- name: '',
1340
- type: 'uint256',
1341
- },
1342
- ],
1343
- stateMutability: 'nonpayable',
1344
- type: 'function',
1345
- },
1346
- {
1347
- inputs: [
1348
- {
1349
- name: '_userWallet',
1350
- type: 'address',
1351
- },
1352
- {
1353
- name: '_legoId',
1354
- type: 'uint256',
1355
- },
1356
- {
1357
- name: '_nftAddr',
1358
- type: 'address',
1359
- },
1360
- {
1361
- name: '_nftTokenId',
1362
- type: 'uint256',
1363
- },
1364
- {
1365
- name: '_pool',
1366
- type: 'address',
1367
- },
1368
- {
1369
- name: '_tokenA',
1370
- type: 'address',
1371
- },
1372
- {
1373
- name: '_tokenB',
1374
- type: 'address',
1375
- },
1376
- {
1377
- name: '_amountA',
1378
- type: 'uint256',
1379
- },
1380
- {
1381
- name: '_amountB',
1382
- type: 'uint256',
1383
- },
1384
- ],
1385
- name: 'addLiquidity',
1386
- outputs: [
1387
- {
1388
- name: '',
1389
- type: 'uint256',
1390
- },
1391
- {
1392
- name: '',
1393
- type: 'uint256',
1394
- },
1395
- {
1396
- name: '',
1397
- type: 'uint256',
1398
- },
1399
- {
1400
- name: '',
1401
- type: 'uint256',
1402
- },
1403
- {
1404
- name: '',
1405
- type: 'uint256',
1406
- },
1407
- ],
1408
- stateMutability: 'nonpayable',
1409
- type: 'function',
1410
- },
1411
- {
1412
- inputs: [
1413
- {
1414
- name: '_userWallet',
1415
- type: 'address',
1416
- },
1417
- {
1418
- name: '_legoId',
1419
- type: 'uint256',
1420
- },
1421
- {
1422
- name: '_nftAddr',
1423
- type: 'address',
1424
- },
1425
- {
1426
- name: '_nftTokenId',
1427
- type: 'uint256',
1428
- },
1429
- {
1430
- name: '_pool',
1431
- type: 'address',
1432
- },
1433
- {
1434
- name: '_tokenA',
1435
- type: 'address',
1436
- },
1437
- {
1438
- name: '_tokenB',
1439
- type: 'address',
1440
- },
1441
- {
1442
- name: '_amountA',
1443
- type: 'uint256',
1444
- },
1445
- {
1446
- name: '_amountB',
1447
- type: 'uint256',
1448
- },
1449
- {
1450
- name: '_tickLower',
1451
- type: 'int24',
1452
- },
1453
- ],
1454
- name: 'addLiquidity',
1455
- outputs: [
1456
- {
1457
- name: '',
1458
- type: 'uint256',
1459
- },
1460
- {
1461
- name: '',
1462
- type: 'uint256',
1463
- },
1464
- {
1465
- name: '',
1466
- type: 'uint256',
1467
- },
1468
- {
1469
- name: '',
1470
- type: 'uint256',
1471
- },
1472
- {
1473
- name: '',
1474
- type: 'uint256',
1475
- },
1476
- ],
1477
- stateMutability: 'nonpayable',
1478
- type: 'function',
1479
- },
1480
- {
1481
- inputs: [
1482
- {
1483
- name: '_userWallet',
1484
- type: 'address',
1485
- },
1486
- {
1487
- name: '_legoId',
1488
- type: 'uint256',
1489
- },
1490
- {
1491
- name: '_nftAddr',
1492
- type: 'address',
1493
- },
1494
- {
1495
- name: '_nftTokenId',
1496
- type: 'uint256',
1497
- },
1498
- {
1499
- name: '_pool',
1500
- type: 'address',
1501
- },
1502
- {
1503
- name: '_tokenA',
1504
- type: 'address',
1505
- },
1506
- {
1507
- name: '_tokenB',
1508
- type: 'address',
1509
- },
1510
- {
1511
- name: '_amountA',
1512
- type: 'uint256',
1513
- },
1514
- {
1515
- name: '_amountB',
1516
- type: 'uint256',
1517
- },
1518
- {
1519
- name: '_tickLower',
1520
- type: 'int24',
1521
- },
1522
- {
1523
- name: '_tickUpper',
1524
- type: 'int24',
1525
- },
1526
- ],
1527
- name: 'addLiquidity',
1528
- outputs: [
1529
- {
1530
- name: '',
1531
- type: 'uint256',
1532
- },
1533
- {
1534
- name: '',
1535
- type: 'uint256',
1536
- },
1537
- {
1538
- name: '',
1539
- type: 'uint256',
1540
- },
1541
- {
1542
- name: '',
1543
- type: 'uint256',
1544
- },
1545
- {
1546
- name: '',
1547
- type: 'uint256',
1548
- },
1549
- ],
1550
- stateMutability: 'nonpayable',
1551
- type: 'function',
1552
- },
1553
- {
1554
- inputs: [
1555
- {
1556
- name: '_userWallet',
1557
- type: 'address',
1558
- },
1559
- {
1560
- name: '_legoId',
1561
- type: 'uint256',
1562
- },
1563
- {
1564
- name: '_nftAddr',
1565
- type: 'address',
1566
- },
1567
- {
1568
- name: '_nftTokenId',
1569
- type: 'uint256',
1570
- },
1571
- {
1572
- name: '_pool',
1573
- type: 'address',
1574
- },
1575
- {
1576
- name: '_tokenA',
1577
- type: 'address',
1578
- },
1579
- {
1580
- name: '_tokenB',
1581
- type: 'address',
1582
- },
1583
- {
1584
- name: '_amountA',
1585
- type: 'uint256',
1586
- },
1587
- {
1588
- name: '_amountB',
1589
- type: 'uint256',
1590
- },
1591
- {
1592
- name: '_tickLower',
1593
- type: 'int24',
1594
- },
1595
- {
1596
- name: '_tickUpper',
1597
- type: 'int24',
1598
- },
1599
- {
1600
- name: '_minAmountA',
1601
- type: 'uint256',
1602
- },
1603
- ],
1604
- name: 'addLiquidity',
1605
- outputs: [
1606
- {
1607
- name: '',
1608
- type: 'uint256',
1609
- },
1610
- {
1611
- name: '',
1612
- type: 'uint256',
1613
- },
1614
- {
1615
- name: '',
1616
- type: 'uint256',
1617
- },
1618
- {
1619
- name: '',
1620
- type: 'uint256',
1621
- },
1622
- {
1623
- name: '',
1624
- type: 'uint256',
1625
- },
1626
- ],
1627
- stateMutability: 'nonpayable',
1628
- type: 'function',
1629
- },
1630
- {
1631
- inputs: [
1632
- {
1633
- name: '_userWallet',
1634
- type: 'address',
1635
- },
1636
- {
1637
- name: '_legoId',
1638
- type: 'uint256',
1639
- },
1640
- {
1641
- name: '_nftAddr',
1642
- type: 'address',
1643
- },
1644
- {
1645
- name: '_nftTokenId',
1646
- type: 'uint256',
1647
- },
1648
- {
1649
- name: '_pool',
1650
- type: 'address',
1651
- },
1652
- {
1653
- name: '_tokenA',
1654
- type: 'address',
1655
- },
1656
- {
1657
- name: '_tokenB',
1658
- type: 'address',
1659
- },
1660
- {
1661
- name: '_amountA',
1662
- type: 'uint256',
1663
- },
1664
- {
1665
- name: '_amountB',
1666
- type: 'uint256',
1667
- },
1668
- {
1669
- name: '_tickLower',
1670
- type: 'int24',
1671
- },
1672
- {
1673
- name: '_tickUpper',
1674
- type: 'int24',
1675
- },
1676
- {
1677
- name: '_minAmountA',
1678
- type: 'uint256',
1679
- },
1680
- {
1681
- name: '_minAmountB',
1682
- type: 'uint256',
1683
- },
1684
- ],
1685
- name: 'addLiquidity',
1686
- outputs: [
1687
- {
1688
- name: '',
1689
- type: 'uint256',
1690
- },
1691
- {
1692
- name: '',
1693
- type: 'uint256',
1694
- },
1695
- {
1696
- name: '',
1697
- type: 'uint256',
1698
- },
1699
- {
1700
- name: '',
1701
- type: 'uint256',
1702
- },
1703
- {
1704
- name: '',
1705
- type: 'uint256',
1706
- },
1707
- ],
1708
- stateMutability: 'nonpayable',
1709
- type: 'function',
1710
- },
1711
- {
1712
- inputs: [
1713
- {
1714
- name: '_userWallet',
1715
- type: 'address',
1716
- },
1717
- {
1718
- name: '_legoId',
1719
- type: 'uint256',
1720
- },
1721
- {
1722
- name: '_nftAddr',
1723
- type: 'address',
1724
- },
1725
- {
1726
- name: '_nftTokenId',
1727
- type: 'uint256',
1728
- },
1729
- {
1730
- name: '_pool',
1731
- type: 'address',
1732
- },
1733
- {
1734
- name: '_tokenA',
1735
- type: 'address',
1736
- },
1737
- {
1738
- name: '_tokenB',
1739
- type: 'address',
1740
- },
1741
- {
1742
- name: '_amountA',
1743
- type: 'uint256',
1744
- },
1745
- {
1746
- name: '_amountB',
1747
- type: 'uint256',
1748
- },
1749
- {
1750
- name: '_tickLower',
1751
- type: 'int24',
1752
- },
1753
- {
1754
- name: '_tickUpper',
1755
- type: 'int24',
1756
- },
1757
- {
1758
- name: '_minAmountA',
1759
- type: 'uint256',
1760
- },
1761
- {
1762
- name: '_minAmountB',
1763
- type: 'uint256',
1764
- },
1765
- {
1766
- name: '_minLpAmount',
1767
- type: 'uint256',
1768
- },
1769
- ],
1770
- name: 'addLiquidity',
1771
- outputs: [
1772
- {
1773
- name: '',
1774
- type: 'uint256',
1775
- },
1776
- {
1777
- name: '',
1778
- type: 'uint256',
1779
- },
1780
- {
1781
- name: '',
1782
- type: 'uint256',
1783
- },
1784
- {
1785
- name: '',
1786
- type: 'uint256',
1787
- },
1788
- {
1789
- name: '',
1790
- type: 'uint256',
1791
- },
1792
- ],
1793
- stateMutability: 'nonpayable',
1794
- type: 'function',
1795
- },
1796
- {
1797
- inputs: [
1798
- {
1799
- name: '_userWallet',
1800
- type: 'address',
1801
- },
1802
- {
1803
- name: '_legoId',
1804
- type: 'uint256',
1805
- },
1806
- {
1807
- name: '_nftAddr',
1808
- type: 'address',
1809
- },
1810
- {
1811
- name: '_nftTokenId',
1812
- type: 'uint256',
1813
- },
1814
- {
1815
- name: '_pool',
1816
- type: 'address',
1817
- },
1818
- {
1819
- name: '_tokenA',
1820
- type: 'address',
1821
- },
1822
- {
1823
- name: '_tokenB',
1824
- type: 'address',
1825
- },
1826
- {
1827
- name: '_amountA',
1828
- type: 'uint256',
1829
- },
1830
- {
1831
- name: '_amountB',
1832
- type: 'uint256',
1833
- },
1834
- {
1835
- name: '_tickLower',
1836
- type: 'int24',
1837
- },
1838
- {
1839
- name: '_tickUpper',
1840
- type: 'int24',
1841
- },
1842
- {
1843
- name: '_minAmountA',
1844
- type: 'uint256',
1845
- },
1846
- {
1847
- name: '_minAmountB',
1848
- type: 'uint256',
1849
- },
1850
- {
1851
- name: '_minLpAmount',
1852
- type: 'uint256',
1853
- },
1854
- {
1855
- components: [
1856
- {
1857
- name: 'signature',
1858
- type: 'bytes',
1859
- },
1860
- {
1861
- name: 'signer',
1862
- type: 'address',
1863
- },
1864
- {
1865
- name: 'expiration',
1866
- type: 'uint256',
1867
- },
1868
- ],
1869
- name: '_sig',
1870
- type: 'tuple',
1871
- },
1872
- ],
1873
- name: 'addLiquidity',
1874
- outputs: [
1875
- {
1876
- name: '',
1877
- type: 'uint256',
1878
- },
1879
- {
1880
- name: '',
1881
- type: 'uint256',
1882
- },
1883
- {
1884
- name: '',
1885
- type: 'uint256',
1886
- },
1887
- {
1888
- name: '',
1889
- type: 'uint256',
1890
- },
1891
- {
1892
- name: '',
1893
- type: 'uint256',
1894
- },
1895
- ],
1896
- stateMutability: 'nonpayable',
1897
- type: 'function',
1898
- },
1899
- {
1900
- inputs: [
1901
- {
1902
- name: '_userWallet',
1903
- type: 'address',
1904
- },
1905
- {
1906
- name: '_legoId',
1907
- type: 'uint256',
1908
- },
1909
- {
1910
- name: '_nftAddr',
1911
- type: 'address',
1912
- },
1913
- {
1914
- name: '_nftTokenId',
1915
- type: 'uint256',
1916
- },
1917
- {
1918
- name: '_pool',
1919
- type: 'address',
1920
- },
1921
- {
1922
- name: '_tokenA',
1923
- type: 'address',
1924
- },
1925
- {
1926
- name: '_tokenB',
1927
- type: 'address',
1928
- },
1929
- ],
1930
- name: 'removeLiquidity',
1931
- outputs: [
1932
- {
1933
- name: '',
1934
- type: 'uint256',
1935
- },
1936
- {
1937
- name: '',
1938
- type: 'uint256',
1939
- },
1940
- {
1941
- name: '',
1942
- type: 'uint256',
1943
- },
1944
- {
1945
- name: '',
1946
- type: 'bool',
1947
- },
1948
- ],
1949
- stateMutability: 'nonpayable',
1950
- type: 'function',
1951
- },
1952
- {
1953
- inputs: [
1954
- {
1955
- name: '_userWallet',
1956
- type: 'address',
1957
- },
1958
- {
1959
- name: '_legoId',
1960
- type: 'uint256',
1961
- },
1962
- {
1963
- name: '_nftAddr',
1964
- type: 'address',
1965
- },
1966
- {
1967
- name: '_nftTokenId',
1968
- type: 'uint256',
1969
- },
1970
- {
1971
- name: '_pool',
1972
- type: 'address',
1973
- },
1974
- {
1975
- name: '_tokenA',
1976
- type: 'address',
1977
- },
1978
- {
1979
- name: '_tokenB',
1980
- type: 'address',
1981
- },
1982
- {
1983
- name: '_liqToRemove',
1984
- type: 'uint256',
1985
- },
1986
- ],
1987
- name: 'removeLiquidity',
1988
- outputs: [
1989
- {
1990
- name: '',
1991
- type: 'uint256',
1992
- },
1993
- {
1994
- name: '',
1995
- type: 'uint256',
1996
- },
1997
- {
1998
- name: '',
1999
- type: 'uint256',
2000
- },
2001
- {
2002
- name: '',
2003
- type: 'bool',
2004
- },
2005
- ],
2006
- stateMutability: 'nonpayable',
2007
- type: 'function',
2008
- },
2009
- {
2010
- inputs: [
2011
- {
2012
- name: '_userWallet',
2013
- type: 'address',
2014
- },
2015
- {
2016
- name: '_legoId',
2017
- type: 'uint256',
2018
- },
2019
- {
2020
- name: '_nftAddr',
2021
- type: 'address',
2022
- },
2023
- {
2024
- name: '_nftTokenId',
2025
- type: 'uint256',
2026
- },
2027
- {
2028
- name: '_pool',
2029
- type: 'address',
2030
- },
2031
- {
2032
- name: '_tokenA',
2033
- type: 'address',
2034
- },
2035
- {
2036
- name: '_tokenB',
2037
- type: 'address',
2038
- },
2039
- {
2040
- name: '_liqToRemove',
2041
- type: 'uint256',
2042
- },
2043
- {
2044
- name: '_minAmountA',
2045
- type: 'uint256',
2046
- },
2047
- ],
2048
- name: 'removeLiquidity',
2049
- outputs: [
2050
- {
2051
- name: '',
2052
- type: 'uint256',
2053
- },
2054
- {
2055
- name: '',
2056
- type: 'uint256',
2057
- },
2058
- {
2059
- name: '',
2060
- type: 'uint256',
2061
- },
2062
- {
2063
- name: '',
2064
- type: 'bool',
2065
- },
2066
- ],
2067
- stateMutability: 'nonpayable',
2068
- type: 'function',
2069
- },
2070
- {
2071
- inputs: [
2072
- {
2073
- name: '_userWallet',
2074
- type: 'address',
2075
- },
2076
- {
2077
- name: '_legoId',
2078
- type: 'uint256',
2079
- },
2080
- {
2081
- name: '_nftAddr',
2082
- type: 'address',
2083
- },
2084
- {
2085
- name: '_nftTokenId',
2086
- type: 'uint256',
2087
- },
2088
- {
2089
- name: '_pool',
2090
- type: 'address',
2091
- },
2092
- {
2093
- name: '_tokenA',
2094
- type: 'address',
2095
- },
2096
- {
2097
- name: '_tokenB',
2098
- type: 'address',
2099
- },
2100
- {
2101
- name: '_liqToRemove',
2102
- type: 'uint256',
2103
- },
2104
- {
2105
- name: '_minAmountA',
2106
- type: 'uint256',
2107
- },
2108
- {
2109
- name: '_minAmountB',
2110
- type: 'uint256',
2111
- },
2112
- ],
2113
- name: 'removeLiquidity',
2114
- outputs: [
2115
- {
2116
- name: '',
2117
- type: 'uint256',
2118
- },
2119
- {
2120
- name: '',
2121
- type: 'uint256',
2122
- },
2123
- {
2124
- name: '',
2125
- type: 'uint256',
2126
- },
2127
- {
2128
- name: '',
2129
- type: 'bool',
2130
- },
2131
- ],
2132
- stateMutability: 'nonpayable',
2133
- type: 'function',
2134
- },
2135
- {
2136
- inputs: [
2137
- {
2138
- name: '_userWallet',
2139
- type: 'address',
2140
- },
2141
- {
2142
- name: '_legoId',
2143
- type: 'uint256',
2144
- },
2145
- {
2146
- name: '_nftAddr',
2147
- type: 'address',
2148
- },
2149
- {
2150
- name: '_nftTokenId',
2151
- type: 'uint256',
2152
- },
2153
- {
2154
- name: '_pool',
2155
- type: 'address',
2156
- },
2157
- {
2158
- name: '_tokenA',
2159
- type: 'address',
2160
- },
2161
- {
2162
- name: '_tokenB',
2163
- type: 'address',
2164
- },
2165
- {
2166
- name: '_liqToRemove',
2167
- type: 'uint256',
2168
- },
2169
- {
2170
- name: '_minAmountA',
2171
- type: 'uint256',
2172
- },
2173
- {
2174
- name: '_minAmountB',
2175
- type: 'uint256',
2176
- },
2177
- {
2178
- components: [
2179
- {
2180
- name: 'signature',
2181
- type: 'bytes',
2182
- },
2183
- {
2184
- name: 'signer',
2185
- type: 'address',
2186
- },
2187
- {
2188
- name: 'expiration',
2189
- type: 'uint256',
2190
- },
2191
- ],
2192
- name: '_sig',
2193
- type: 'tuple',
2194
- },
2195
- ],
2196
- name: 'removeLiquidity',
2197
- outputs: [
2198
- {
2199
- name: '',
2200
- type: 'uint256',
2201
- },
2202
- {
2203
- name: '',
2204
- type: 'uint256',
2205
- },
2206
- {
2207
- name: '',
2208
- type: 'uint256',
2209
- },
2210
- {
2211
- name: '',
2212
- type: 'bool',
2213
- },
2214
- ],
2215
- stateMutability: 'nonpayable',
2216
- type: 'function',
2217
- },
2218
- {
2219
- inputs: [
2220
- {
2221
- name: '_userWallet',
2222
- type: 'address',
2223
- },
2224
- {
2225
- name: '_recipient',
2226
- type: 'address',
2227
- },
2228
- ],
2229
- name: 'transferFunds',
2230
- outputs: [
2231
- {
2232
- name: '',
2233
- type: 'uint256',
2234
- },
2235
- {
2236
- name: '',
2237
- type: 'uint256',
2238
- },
2239
- ],
2240
- stateMutability: 'nonpayable',
2241
- type: 'function',
2242
- },
2243
- {
2244
- inputs: [
2245
- {
2246
- name: '_userWallet',
2247
- type: 'address',
2248
- },
2249
- {
2250
- name: '_recipient',
2251
- type: 'address',
2252
- },
2253
- {
2254
- name: '_amount',
2255
- type: 'uint256',
2256
- },
2257
- ],
2258
- name: 'transferFunds',
2259
- outputs: [
2260
- {
2261
- name: '',
2262
- type: 'uint256',
2263
- },
2264
- {
2265
- name: '',
2266
- type: 'uint256',
2267
- },
2268
- ],
2269
- stateMutability: 'nonpayable',
2270
- type: 'function',
2271
- },
2272
- {
2273
- inputs: [
2274
- {
2275
- name: '_userWallet',
2276
- type: 'address',
2277
- },
2278
- {
2279
- name: '_recipient',
2280
- type: 'address',
2281
- },
2282
- {
2283
- name: '_amount',
2284
- type: 'uint256',
2285
- },
2286
- {
2287
- name: '_asset',
2288
- type: 'address',
2289
- },
2290
- ],
2291
- name: 'transferFunds',
2292
- outputs: [
2293
- {
2294
- name: '',
2295
- type: 'uint256',
2296
- },
2297
- {
2298
- name: '',
2299
- type: 'uint256',
2300
- },
2301
- ],
2302
- stateMutability: 'nonpayable',
2303
- type: 'function',
2304
- },
2305
- {
2306
- inputs: [
2307
- {
2308
- name: '_userWallet',
2309
- type: 'address',
2310
- },
2311
- {
2312
- name: '_recipient',
2313
- type: 'address',
2314
- },
2315
- {
2316
- name: '_amount',
2317
- type: 'uint256',
2318
- },
2319
- {
2320
- name: '_asset',
2321
- type: 'address',
2322
- },
2323
- {
2324
- components: [
2325
- {
2326
- name: 'signature',
2327
- type: 'bytes',
2328
- },
2329
- {
2330
- name: 'signer',
2331
- type: 'address',
2332
- },
2333
- {
2334
- name: 'expiration',
2335
- type: 'uint256',
2336
- },
2337
- ],
2338
- name: '_sig',
2339
- type: 'tuple',
2340
- },
2341
- ],
2342
- name: 'transferFunds',
2343
- outputs: [
2344
- {
2345
- name: '',
2346
- type: 'uint256',
2347
- },
2348
- {
2349
- name: '',
2350
- type: 'uint256',
2351
- },
2352
- ],
2353
- stateMutability: 'nonpayable',
2354
- type: 'function',
2355
- },
2356
- {
2357
- inputs: [
2358
- {
2359
- name: '_userWallet',
2360
- type: 'address',
2361
- },
2362
- ],
2363
- name: 'convertEthToWeth',
2364
- outputs: [
2365
- {
2366
- name: '',
2367
- type: 'uint256',
2368
- },
2369
- {
2370
- name: '',
2371
- type: 'address',
2372
- },
2373
- {
2374
- name: '',
2375
- type: 'uint256',
2376
- },
2377
- ],
2378
- stateMutability: 'nonpayable',
2379
- type: 'function',
2380
- },
2381
- {
2382
- inputs: [
2383
- {
2384
- name: '_userWallet',
2385
- type: 'address',
2386
- },
2387
- {
2388
- name: '_amount',
2389
- type: 'uint256',
2390
- },
2391
- ],
2392
- name: 'convertEthToWeth',
2393
- outputs: [
2394
- {
2395
- name: '',
2396
- type: 'uint256',
2397
- },
2398
- {
2399
- name: '',
2400
- type: 'address',
2401
- },
2402
- {
2403
- name: '',
2404
- type: 'uint256',
2405
- },
2406
- ],
2407
- stateMutability: 'nonpayable',
2408
- type: 'function',
2409
- },
2410
- {
2411
- inputs: [
2412
- {
2413
- name: '_userWallet',
2414
- type: 'address',
2415
- },
2416
- {
2417
- name: '_amount',
2418
- type: 'uint256',
2419
- },
2420
- {
2421
- name: '_depositLegoId',
2422
- type: 'uint256',
2423
- },
2424
- ],
2425
- name: 'convertEthToWeth',
2426
- outputs: [
2427
- {
2428
- name: '',
2429
- type: 'uint256',
2430
- },
2431
- {
2432
- name: '',
2433
- type: 'address',
2434
- },
2435
- {
2436
- name: '',
2437
- type: 'uint256',
2438
- },
2439
- ],
2440
- stateMutability: 'nonpayable',
2441
- type: 'function',
2442
- },
2443
- {
2444
- inputs: [
2445
- {
2446
- name: '_userWallet',
2447
- type: 'address',
2448
- },
2449
- {
2450
- name: '_amount',
2451
- type: 'uint256',
2452
- },
2453
- {
2454
- name: '_depositLegoId',
2455
- type: 'uint256',
2456
- },
2457
- {
2458
- name: '_depositVault',
2459
- type: 'address',
2460
- },
2461
- ],
2462
- name: 'convertEthToWeth',
2463
- outputs: [
2464
- {
2465
- name: '',
2466
- type: 'uint256',
2467
- },
2468
- {
2469
- name: '',
2470
- type: 'address',
2471
- },
2472
- {
2473
- name: '',
2474
- type: 'uint256',
2475
- },
2476
- ],
2477
- stateMutability: 'nonpayable',
2478
- type: 'function',
2479
- },
2480
- {
2481
- inputs: [
2482
- {
2483
- name: '_userWallet',
2484
- type: 'address',
2485
- },
2486
- {
2487
- name: '_amount',
2488
- type: 'uint256',
2489
- },
2490
- {
2491
- name: '_depositLegoId',
2492
- type: 'uint256',
2493
- },
2494
- {
2495
- name: '_depositVault',
2496
- type: 'address',
2497
- },
2498
- {
2499
- components: [
2500
- {
2501
- name: 'signature',
2502
- type: 'bytes',
2503
- },
2504
- {
2505
- name: 'signer',
2506
- type: 'address',
2507
- },
2508
- {
2509
- name: 'expiration',
2510
- type: 'uint256',
2511
- },
2512
- ],
2513
- name: '_sig',
2514
- type: 'tuple',
2515
- },
2516
- ],
2517
- name: 'convertEthToWeth',
2518
- outputs: [
2519
- {
2520
- name: '',
2521
- type: 'uint256',
2522
- },
2523
- {
2524
- name: '',
2525
- type: 'address',
2526
- },
2527
- {
2528
- name: '',
2529
- type: 'uint256',
2530
- },
2531
- ],
2532
- stateMutability: 'nonpayable',
2533
- type: 'function',
2534
- },
2535
- {
2536
- inputs: [
2537
- {
2538
- name: '_userWallet',
2539
- type: 'address',
2540
- },
2541
- ],
2542
- name: 'convertWethToEth',
2543
- outputs: [
2544
- {
2545
- name: '',
2546
- type: 'uint256',
2547
- },
2548
- ],
2549
- stateMutability: 'nonpayable',
2550
- type: 'function',
2551
- },
2552
- {
2553
- inputs: [
2554
- {
2555
- name: '_userWallet',
2556
- type: 'address',
2557
- },
2558
- {
2559
- name: '_amount',
2560
- type: 'uint256',
2561
- },
2562
- ],
2563
- name: 'convertWethToEth',
2564
- outputs: [
2565
- {
2566
- name: '',
2567
- type: 'uint256',
2568
- },
2569
- ],
2570
- stateMutability: 'nonpayable',
2571
- type: 'function',
2572
- },
2573
- {
2574
- inputs: [
2575
- {
2576
- name: '_userWallet',
2577
- type: 'address',
2578
- },
2579
- {
2580
- name: '_amount',
2581
- type: 'uint256',
2582
- },
2583
- {
2584
- name: '_recipient',
2585
- type: 'address',
2586
- },
2587
- ],
2588
- name: 'convertWethToEth',
2589
- outputs: [
2590
- {
2591
- name: '',
2592
- type: 'uint256',
2593
- },
2594
- ],
2595
- stateMutability: 'nonpayable',
2596
- type: 'function',
2597
- },
2598
- {
2599
- inputs: [
2600
- {
2601
- name: '_userWallet',
2602
- type: 'address',
2603
- },
2604
- {
2605
- name: '_amount',
2606
- type: 'uint256',
2607
- },
2608
- {
2609
- name: '_recipient',
2610
- type: 'address',
2611
- },
2612
- {
2613
- name: '_withdrawLegoId',
2614
- type: 'uint256',
2615
- },
2616
- ],
2617
- name: 'convertWethToEth',
2618
- outputs: [
2619
- {
2620
- name: '',
2621
- type: 'uint256',
2622
- },
2623
- ],
2624
- stateMutability: 'nonpayable',
2625
- type: 'function',
2626
- },
2627
- {
2628
- inputs: [
2629
- {
2630
- name: '_userWallet',
2631
- type: 'address',
2632
- },
2633
- {
2634
- name: '_amount',
2635
- type: 'uint256',
2636
- },
2637
- {
2638
- name: '_recipient',
2639
- type: 'address',
2640
- },
2641
- {
2642
- name: '_withdrawLegoId',
2643
- type: 'uint256',
2644
- },
2645
- {
2646
- name: '_withdrawVaultToken',
2647
- type: 'address',
2648
- },
2649
- ],
2650
- name: 'convertWethToEth',
2651
- outputs: [
2652
- {
2653
- name: '',
2654
- type: 'uint256',
2655
- },
2656
- ],
2657
- stateMutability: 'nonpayable',
2658
- type: 'function',
2659
- },
2660
- {
2661
- inputs: [
2662
- {
2663
- name: '_userWallet',
2664
- type: 'address',
2665
- },
2666
- {
2667
- name: '_amount',
2668
- type: 'uint256',
2669
- },
2670
- {
2671
- name: '_recipient',
2672
- type: 'address',
2673
- },
2674
- {
2675
- name: '_withdrawLegoId',
2676
- type: 'uint256',
2677
- },
2678
- {
2679
- name: '_withdrawVaultToken',
2680
- type: 'address',
2681
- },
2682
- {
2683
- components: [
2684
- {
2685
- name: 'signature',
2686
- type: 'bytes',
2687
- },
2688
- {
2689
- name: 'signer',
2690
- type: 'address',
2691
- },
2692
- {
2693
- name: 'expiration',
2694
- type: 'uint256',
2695
- },
2696
- ],
2697
- name: '_sig',
2698
- type: 'tuple',
2699
- },
2700
- ],
2701
- name: 'convertWethToEth',
2702
- outputs: [
2703
- {
2704
- name: '',
2705
- type: 'uint256',
2706
- },
2707
- ],
2708
- stateMutability: 'nonpayable',
2709
- type: 'function',
2710
- },
2711
- {
2712
- inputs: [
2713
- {
2714
- name: '_userWallet',
2715
- type: 'address',
2716
- },
2717
- {
2718
- components: [
2719
- {
2720
- name: 'usePrevAmountOut',
2721
- type: 'bool',
2722
- },
2723
- {
2724
- name: 'action',
2725
- type: 'uint256',
2726
- },
2727
- {
2728
- name: 'legoId',
2729
- type: 'uint256',
2730
- },
2731
- {
2732
- name: 'asset',
2733
- type: 'address',
2734
- },
2735
- {
2736
- name: 'vault',
2737
- type: 'address',
2738
- },
2739
- {
2740
- name: 'amount',
2741
- type: 'uint256',
2742
- },
2743
- {
2744
- name: 'altLegoId',
2745
- type: 'uint256',
2746
- },
2747
- {
2748
- name: 'altAsset',
2749
- type: 'address',
2750
- },
2751
- {
2752
- name: 'altVault',
2753
- type: 'address',
2754
- },
2755
- {
2756
- name: 'altAmount',
2757
- type: 'uint256',
2758
- },
2759
- {
2760
- name: 'minAmountOut',
2761
- type: 'uint256',
2762
- },
2763
- {
2764
- name: 'pool',
2765
- type: 'address',
2766
- },
2767
- {
2768
- name: 'proof',
2769
- type: 'bytes32',
2770
- },
2771
- {
2772
- name: 'nftAddr',
2773
- type: 'address',
2774
- },
2775
- {
2776
- name: 'nftTokenId',
2777
- type: 'uint256',
2778
- },
2779
- {
2780
- name: 'tickLower',
2781
- type: 'int24',
2782
- },
2783
- {
2784
- name: 'tickUpper',
2785
- type: 'int24',
2786
- },
2787
- {
2788
- name: 'minAmountA',
2789
- type: 'uint256',
2790
- },
2791
- {
2792
- name: 'minAmountB',
2793
- type: 'uint256',
2794
- },
2795
- {
2796
- name: 'minLpAmount',
2797
- type: 'uint256',
2798
- },
2799
- {
2800
- name: 'liqToRemove',
2801
- type: 'uint256',
2802
- },
2803
- {
2804
- name: 'recipient',
2805
- type: 'address',
2806
- },
2807
- {
2808
- name: 'isWethToEthConversion',
2809
- type: 'bool',
2810
- },
2811
- ],
2812
- name: '_instructions',
2813
- type: 'tuple[]',
2814
- },
2815
- ],
2816
- name: 'performBatchActions',
2817
- outputs: [
2818
- {
2819
- name: '',
2820
- type: 'bool',
2821
- },
2822
- ],
2823
- stateMutability: 'nonpayable',
2824
- type: 'function',
2825
- },
2826
- {
2827
- inputs: [
2828
- {
2829
- name: '_userWallet',
2830
- type: 'address',
2831
- },
2832
- {
2833
- components: [
2834
- {
2835
- name: 'usePrevAmountOut',
2836
- type: 'bool',
2837
- },
2838
- {
2839
- name: 'action',
2840
- type: 'uint256',
2841
- },
2842
- {
2843
- name: 'legoId',
2844
- type: 'uint256',
2845
- },
2846
- {
2847
- name: 'asset',
2848
- type: 'address',
2849
- },
2850
- {
2851
- name: 'vault',
2852
- type: 'address',
2853
- },
2854
- {
2855
- name: 'amount',
2856
- type: 'uint256',
2857
- },
2858
- {
2859
- name: 'altLegoId',
2860
- type: 'uint256',
2861
- },
2862
- {
2863
- name: 'altAsset',
2864
- type: 'address',
2865
- },
2866
- {
2867
- name: 'altVault',
2868
- type: 'address',
2869
- },
2870
- {
2871
- name: 'altAmount',
2872
- type: 'uint256',
2873
- },
2874
- {
2875
- name: 'minAmountOut',
2876
- type: 'uint256',
2877
- },
2878
- {
2879
- name: 'pool',
2880
- type: 'address',
2881
- },
2882
- {
2883
- name: 'proof',
2884
- type: 'bytes32',
2885
- },
2886
- {
2887
- name: 'nftAddr',
2888
- type: 'address',
2889
- },
2890
- {
2891
- name: 'nftTokenId',
2892
- type: 'uint256',
2893
- },
2894
- {
2895
- name: 'tickLower',
2896
- type: 'int24',
2897
- },
2898
- {
2899
- name: 'tickUpper',
2900
- type: 'int24',
2901
- },
2902
- {
2903
- name: 'minAmountA',
2904
- type: 'uint256',
2905
- },
2906
- {
2907
- name: 'minAmountB',
2908
- type: 'uint256',
2909
- },
2910
- {
2911
- name: 'minLpAmount',
2912
- type: 'uint256',
2913
- },
2914
- {
2915
- name: 'liqToRemove',
2916
- type: 'uint256',
2917
- },
2918
- {
2919
- name: 'recipient',
2920
- type: 'address',
2921
- },
2922
- {
2923
- name: 'isWethToEthConversion',
2924
- type: 'bool',
2925
- },
2926
- ],
2927
- name: '_instructions',
2928
- type: 'tuple[]',
2929
- },
2930
- {
2931
- components: [
2932
- {
2933
- name: 'signature',
2934
- type: 'bytes',
2935
- },
2936
- {
2937
- name: 'signer',
2938
- type: 'address',
2939
- },
2940
- {
2941
- name: 'expiration',
2942
- type: 'uint256',
2943
- },
2944
- ],
2945
- name: '_sig',
2946
- type: 'tuple',
2947
- },
2948
- ],
2949
- name: 'performBatchActions',
2950
- outputs: [
2951
- {
2952
- name: '',
2953
- type: 'bool',
2954
- },
2955
- ],
2956
- stateMutability: 'nonpayable',
2957
- type: 'function',
2958
- },
2959
- {
2960
- inputs: [
2961
- {
2962
- name: '_userWallet',
2963
- type: 'address',
2964
- },
2965
- {
2966
- components: [
2967
- {
2968
- name: 'usePrevAmountOut',
2969
- type: 'bool',
2970
- },
2971
- {
2972
- name: 'action',
2973
- type: 'uint256',
2974
- },
2975
- {
2976
- name: 'legoId',
2977
- type: 'uint256',
2978
- },
2979
- {
2980
- name: 'asset',
2981
- type: 'address',
2982
- },
2983
- {
2984
- name: 'vault',
2985
- type: 'address',
2986
- },
2987
- {
2988
- name: 'amount',
2989
- type: 'uint256',
2990
- },
2991
- {
2992
- name: 'altLegoId',
2993
- type: 'uint256',
2994
- },
2995
- {
2996
- name: 'altAsset',
2997
- type: 'address',
2998
- },
2999
- {
3000
- name: 'altVault',
3001
- type: 'address',
3002
- },
3003
- {
3004
- name: 'altAmount',
3005
- type: 'uint256',
3006
- },
3007
- {
3008
- name: 'minAmountOut',
3009
- type: 'uint256',
3010
- },
3011
- {
3012
- name: 'pool',
3013
- type: 'address',
3014
- },
3015
- {
3016
- name: 'proof',
3017
- type: 'bytes32',
3018
- },
3019
- {
3020
- name: 'nftAddr',
3021
- type: 'address',
3022
- },
3023
- {
3024
- name: 'nftTokenId',
3025
- type: 'uint256',
3026
- },
3027
- {
3028
- name: 'tickLower',
3029
- type: 'int24',
3030
- },
3031
- {
3032
- name: 'tickUpper',
3033
- type: 'int24',
3034
- },
3035
- {
3036
- name: 'minAmountA',
3037
- type: 'uint256',
3038
- },
3039
- {
3040
- name: 'minAmountB',
3041
- type: 'uint256',
3042
- },
3043
- {
3044
- name: 'minLpAmount',
3045
- type: 'uint256',
3046
- },
3047
- {
3048
- name: 'liqToRemove',
3049
- type: 'uint256',
3050
- },
3051
- {
3052
- name: 'recipient',
3053
- type: 'address',
3054
- },
3055
- {
3056
- name: 'isWethToEthConversion',
3057
- type: 'bool',
3058
- },
3059
- ],
3060
- name: '_instructions',
3061
- type: 'tuple[]',
3062
- },
3063
- {
3064
- name: '_expiration',
3065
- type: 'uint256',
3066
- },
3067
- ],
3068
- name: 'getBatchActionHash',
3069
- outputs: [
3070
- {
3071
- name: '',
3072
- type: 'bytes32',
3073
- },
3074
- ],
3075
- stateMutability: 'view',
3076
- type: 'function',
3077
- },
3078
- {
3079
- inputs: [],
3080
- name: 'DOMAIN_SEPARATOR',
3081
- outputs: [
3082
- {
3083
- name: '',
3084
- type: 'bytes32',
3085
- },
3086
- ],
3087
- stateMutability: 'view',
3088
- type: 'function',
3089
- },
3090
- {
3091
- inputs: [
3092
- {
3093
- name: '_newOwner',
3094
- type: 'address',
3095
- },
3096
- ],
3097
- name: 'changeOwnership',
3098
- outputs: [],
3099
- stateMutability: 'nonpayable',
3100
- type: 'function',
3101
- },
3102
- {
3103
- inputs: [],
3104
- name: 'confirmOwnershipChange',
3105
- outputs: [],
3106
- stateMutability: 'nonpayable',
3107
- type: 'function',
3108
- },
3109
- {
3110
- inputs: [],
3111
- name: 'cancelOwnershipChange',
3112
- outputs: [],
3113
- stateMutability: 'nonpayable',
3114
- type: 'function',
3115
- },
3116
- {
3117
- inputs: [
3118
- {
3119
- name: '_numBlocks',
3120
- type: 'uint256',
3121
- },
3122
- ],
3123
- name: 'setOwnershipChangeDelay',
3124
- outputs: [],
3125
- stateMutability: 'nonpayable',
3126
- type: 'function',
3127
- },
3128
- {
3129
- inputs: [
3130
- {
3131
- name: '_asset',
3132
- type: 'address',
3133
- },
3134
- ],
3135
- name: 'recoverFunds',
3136
- outputs: [
3137
- {
3138
- name: '',
3139
- type: 'bool',
3140
- },
3141
- ],
3142
- stateMutability: 'nonpayable',
3143
- type: 'function',
3144
- },
3145
- {
3146
- inputs: [],
3147
- name: 'initialized',
3148
- outputs: [
3149
- {
3150
- name: '',
3151
- type: 'bool',
3152
- },
3153
- ],
3154
- stateMutability: 'view',
3155
- type: 'function',
3156
- },
3157
- {
3158
- inputs: [
3159
- {
3160
- name: 'arg0',
3161
- type: 'bytes',
3162
- },
3163
- ],
3164
- name: 'usedSignatures',
3165
- outputs: [
3166
- {
3167
- name: '',
3168
- type: 'bool',
3169
- },
3170
- ],
3171
- stateMutability: 'view',
3172
- type: 'function',
3173
- },
3174
- {
3175
- inputs: [],
3176
- name: 'owner',
3177
- outputs: [
3178
- {
3179
- name: '',
3180
- type: 'address',
3181
- },
3182
- ],
3183
- stateMutability: 'view',
3184
- type: 'function',
3185
- },
3186
- {
3187
- inputs: [],
3188
- name: 'pendingOwner',
3189
- outputs: [
3190
- {
3191
- components: [
3192
- {
3193
- name: 'newOwner',
3194
- type: 'address',
3195
- },
3196
- {
3197
- name: 'initiatedBlock',
3198
- type: 'uint256',
3199
- },
3200
- {
3201
- name: 'confirmBlock',
3202
- type: 'uint256',
3203
- },
3204
- ],
3205
- name: '',
3206
- type: 'tuple',
3207
- },
3208
- ],
3209
- stateMutability: 'view',
3210
- type: 'function',
3211
- },
3212
- {
3213
- inputs: [],
3214
- name: 'ownershipChangeDelay',
3215
- outputs: [
3216
- {
3217
- name: '',
3218
- type: 'uint256',
3219
- },
3220
- ],
3221
- stateMutability: 'view',
3222
- type: 'function',
3223
- },
3224
- {
3225
- inputs: [],
3226
- name: 'MIN_OWNER_CHANGE_DELAY',
3227
- outputs: [
3228
- {
3229
- name: '',
3230
- type: 'uint256',
3231
- },
3232
- ],
3233
- stateMutability: 'view',
3234
- type: 'function',
3235
- },
3236
- {
3237
- inputs: [],
3238
- name: 'MAX_OWNER_CHANGE_DELAY',
3239
- outputs: [
3240
- {
3241
- name: '',
3242
- type: 'uint256',
3243
- },
3244
- ],
3245
- stateMutability: 'view',
3246
- type: 'function',
3247
- },
3248
- {
3249
- inputs: [
3250
- {
3251
- name: '_minOwnerChangeDelay',
3252
- type: 'uint256',
3253
- },
3254
- {
3255
- name: '_maxOwnerChangeDelay',
3256
- type: 'uint256',
3257
- },
3258
- ],
3259
- outputs: [],
3260
- stateMutability: 'nonpayable',
3261
- type: 'constructor',
3262
- },
3263
- ];
3264
- export const deployAddress = '0x70418b3AAa1044eC8bFF6a461B4E43460bb5699E';
3265
- function getRequest(method, args, contractAddressOrOptions) {
3266
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3267
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3268
- const call = {
3269
- contractName: 'v0_1_Agent',
3270
- method,
3271
- args,
3272
- address,
3273
- deployAddress,
3274
- defaultValue,
3275
- getAbi: () => abi,
3276
- with: (options) => {
3277
- call.address = options.contractAddress;
3278
- call.defaultValue = options.defaultValue;
3279
- return call;
3280
- },
3281
- defaultTo: (defaultValue) => {
3282
- call.defaultValue = defaultValue;
3283
- return call;
3284
- },
3285
- at: (address) => {
3286
- call.address = address;
3287
- return call;
3288
- },
3289
- };
3290
- return call;
3291
- }
3292
- export const call = {
3293
- apiVersion: (...args) => getRequest('apiVersion', args),
3294
- getSwapActionHash: (...args) => getRequest('getSwapActionHash', args),
3295
- getBatchActionHash: (...args) => getRequest('getBatchActionHash', args),
3296
- DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
3297
- initialized: (...args) => getRequest('initialized', args),
3298
- usedSignatures: (...args) => getRequest('usedSignatures', args),
3299
- owner: (...args) => getRequest('owner', args),
3300
- pendingOwner: (...args) => getRequest('pendingOwner', args),
3301
- ownershipChangeDelay: (...args) => getRequest('ownershipChangeDelay', args),
3302
- MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
3303
- MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
3304
- };
3305
- function getMutation(functionName) {
3306
- return {
3307
- contractName: 'v0_1_Agent',
3308
- functionName,
3309
- deployAddress,
3310
- argsType: undefined,
3311
- getAbi: () => abi,
3312
- };
3313
- }
3314
- export const mutation = {
3315
- initialize: getMutation('initialize'),
3316
- depositTokens: getMutation('depositTokens'),
3317
- withdrawTokens: getMutation('withdrawTokens'),
3318
- rebalance: getMutation('rebalance'),
3319
- swapTokens: getMutation('swapTokens'),
3320
- borrow: getMutation('borrow'),
3321
- repayDebt: getMutation('repayDebt'),
3322
- claimRewards: getMutation('claimRewards'),
3323
- addLiquidity: getMutation('addLiquidity'),
3324
- removeLiquidity: getMutation('removeLiquidity'),
3325
- transferFunds: getMutation('transferFunds'),
3326
- convertEthToWeth: getMutation('convertEthToWeth'),
3327
- convertWethToEth: getMutation('convertWethToEth'),
3328
- performBatchActions: getMutation('performBatchActions'),
3329
- changeOwnership: getMutation('changeOwnership'),
3330
- confirmOwnershipChange: getMutation('confirmOwnershipChange'),
3331
- cancelOwnershipChange: getMutation('cancelOwnershipChange'),
3332
- setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
3333
- recoverFunds: getMutation('recoverFunds'),
3334
- };
3335
- export function toSdk(deployAddress, publicClient, walletClient) {
3336
- return {
3337
- deployAddress,
3338
- abi,
3339
- // Queries
3340
- apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
3341
- getSwapActionHash: (...args) => singleQuery(publicClient, call.getSwapActionHash(...args).at(deployAddress)),
3342
- getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(deployAddress)),
3343
- DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(deployAddress)),
3344
- initialized: (...args) => singleQuery(publicClient, call.initialized(...args).at(deployAddress)),
3345
- usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(deployAddress)),
3346
- owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress)),
3347
- pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress)),
3348
- ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(deployAddress)),
3349
- MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
3350
- MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
3351
- // Mutations
3352
- initialize: (...args) => mutate(walletClient, mutation.initialize, { address: deployAddress })(...args),
3353
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address: deployAddress })(...args),
3354
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address: deployAddress })(...args),
3355
- rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address: deployAddress })(...args),
3356
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
3357
- borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
3358
- repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
3359
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress })(...args),
3360
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
3361
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress })(...args),
3362
- transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
3363
- convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
3364
- convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
3365
- performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions, { address: deployAddress })(...args),
3366
- changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address: deployAddress })(...args),
3367
- confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress })(...args),
3368
- cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress })(...args),
3369
- setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address: deployAddress })(...args),
3370
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address: deployAddress })(...args),
3371
- };
3372
- }