@underscore-finance/sdk 1.0.12 → 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 (307) 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/package.json +1 -1
  79. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  80. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  81. package/dist/contracts/AddyRegistry.js +0 -1392
  82. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  83. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry_v1.js +0 -594
  85. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  86. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  88. package/dist/contracts/AgentFactory.d.ts +0 -1665
  89. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  90. package/dist/contracts/AgentFactory.js +0 -2078
  91. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  92. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory_v1.js +0 -1336
  94. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  95. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v2.js +0 -1609
  97. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  98. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  99. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  100. package/dist/contracts/Agent_v2.d.ts +0 -2709
  101. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v2.js +0 -3458
  103. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  104. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  105. package/dist/contracts/ChainlinkFeeds.js +0 -900
  106. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  107. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  108. package/dist/contracts/LegoAaveV3.js +0 -1330
  109. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  110. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  111. package/dist/contracts/LegoAeroClassic.js +0 -1546
  112. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  113. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  114. package/dist/contracts/LegoCommon.d.ts +0 -164
  115. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  116. package/dist/contracts/LegoCommon.js +0 -202
  117. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  118. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  119. package/dist/contracts/LegoCompoundV3.js +0 -1365
  120. package/dist/contracts/LegoCredit.d.ts +0 -140
  121. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  122. package/dist/contracts/LegoCredit.js +0 -179
  123. package/dist/contracts/LegoCurve.d.ts +0 -1189
  124. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  125. package/dist/contracts/LegoCurve.js +0 -1519
  126. package/dist/contracts/LegoDex.d.ts +0 -587
  127. package/dist/contracts/LegoDex.d.ts.map +0 -1
  128. package/dist/contracts/LegoDex.js +0 -774
  129. package/dist/contracts/LegoEuler.d.ts +0 -1074
  130. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  131. package/dist/contracts/LegoEuler.js +0 -1383
  132. package/dist/contracts/LegoFluid.d.ts +0 -1025
  133. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  134. package/dist/contracts/LegoFluid.js +0 -1320
  135. package/dist/contracts/LegoHelper.d.ts +0 -1563
  136. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  137. package/dist/contracts/LegoHelper.js +0 -1947
  138. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  139. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  140. package/dist/contracts/LegoMoonwell.js +0 -1342
  141. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  142. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  143. package/dist/contracts/LegoMorpho.js +0 -1383
  144. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  145. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  146. package/dist/contracts/LegoRegistry.js +0 -1368
  147. package/dist/contracts/LegoSky.d.ts +0 -923
  148. package/dist/contracts/LegoSky.d.ts.map +0 -1
  149. package/dist/contracts/LegoSky.js +0 -1180
  150. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  151. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  152. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  153. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  157. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  158. package/dist/contracts/LegoYield.d.ts +0 -390
  159. package/dist/contracts/LegoYield.d.ts.map +0 -1
  160. package/dist/contracts/LegoYield.js +0 -511
  161. package/dist/contracts/OracleParser.d.ts +0 -207
  162. package/dist/contracts/OracleParser.d.ts.map +0 -1
  163. package/dist/contracts/OracleParser.js +0 -264
  164. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  165. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  166. package/dist/contracts/OracleRegistry.js +0 -1562
  167. package/dist/contracts/PriceSheets.d.ts +0 -1127
  168. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  169. package/dist/contracts/PriceSheets.js +0 -1383
  170. package/dist/contracts/PythFeeds.d.ts +0 -640
  171. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  172. package/dist/contracts/PythFeeds.js +0 -813
  173. package/dist/contracts/StorkFeeds.d.ts +0 -640
  174. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  175. package/dist/contracts/StorkFeeds.js +0 -813
  176. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  177. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  178. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  179. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  180. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  182. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  183. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  184. package/dist/contracts/UserWallet_v1.js +0 -2581
  185. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  186. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v2.js +0 -2553
  188. package/dist/contracts/WalletConfig.d.ts +0 -1398
  189. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  190. package/dist/contracts/WalletConfig.js +0 -1674
  191. package/dist/contracts/WalletFunds.d.ts +0 -1978
  192. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  193. package/dist/contracts/WalletFunds.js +0 -2579
  194. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  195. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  196. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  197. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  198. package/dist/contracts/v0_1_Agent.js +0 -3372
  199. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  200. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  202. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  203. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  205. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  206. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  208. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  209. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  210. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  211. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  212. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_Agent.js +0 -3458
  214. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  215. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  217. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  218. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  220. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  221. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  223. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  224. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  225. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  226. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  227. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_Agent.js +0 -3458
  229. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  230. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  232. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  233. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  235. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  236. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  238. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  239. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  241. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  242. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  244. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  245. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  247. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  248. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  250. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  251. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  253. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  254. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  256. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  257. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoDex.js +0 -774
  259. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  260. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  262. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  263. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  265. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  266. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  268. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  269. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  271. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  272. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  274. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  275. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  277. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  278. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  280. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  281. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  283. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  284. package/dist/contracts/v0_3_LegoYield.js +0 -511
  285. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  286. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_OracleParser.js +0 -264
  288. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  289. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  291. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  292. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  293. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  294. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  296. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  299. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  300. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  302. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  303. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  305. package/dist/getLegacyContracts.d.ts +0 -69
  306. package/dist/getLegacyContracts.d.ts.map +0 -1
  307. package/dist/getLegacyContracts.js +0 -55
@@ -1,2629 +0,0 @@
1
- import { PublicClient, WalletClient } from 'viem';
2
- type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
3
- type Address = `0x${string}`;
4
- export declare const abi: readonly [{
5
- readonly anonymous: false;
6
- readonly inputs: readonly [{
7
- readonly indexed: true;
8
- readonly name: "prevOwner";
9
- readonly type: "address";
10
- }, {
11
- readonly indexed: true;
12
- readonly name: "newOwner";
13
- readonly type: "address";
14
- }, {
15
- readonly indexed: false;
16
- readonly name: "confirmBlock";
17
- readonly type: "uint256";
18
- }];
19
- readonly name: "AgentOwnershipChangeInitiated";
20
- readonly type: "event";
21
- }, {
22
- readonly anonymous: false;
23
- readonly inputs: readonly [{
24
- readonly indexed: true;
25
- readonly name: "prevOwner";
26
- readonly type: "address";
27
- }, {
28
- readonly indexed: true;
29
- readonly name: "newOwner";
30
- readonly type: "address";
31
- }, {
32
- readonly indexed: false;
33
- readonly name: "initiatedBlock";
34
- readonly type: "uint256";
35
- }, {
36
- readonly indexed: false;
37
- readonly name: "confirmBlock";
38
- readonly type: "uint256";
39
- }];
40
- readonly name: "AgentOwnershipChangeConfirmed";
41
- readonly type: "event";
42
- }, {
43
- readonly anonymous: false;
44
- readonly inputs: readonly [{
45
- readonly indexed: true;
46
- readonly name: "cancelledOwner";
47
- readonly type: "address";
48
- }, {
49
- readonly indexed: false;
50
- readonly name: "initiatedBlock";
51
- readonly type: "uint256";
52
- }, {
53
- readonly indexed: false;
54
- readonly name: "confirmBlock";
55
- readonly type: "uint256";
56
- }];
57
- readonly name: "AgentOwnershipChangeCancelled";
58
- readonly type: "event";
59
- }, {
60
- readonly anonymous: false;
61
- readonly inputs: readonly [{
62
- readonly indexed: false;
63
- readonly name: "delayBlocks";
64
- readonly type: "uint256";
65
- }];
66
- readonly name: "AgentOwnershipChangeDelaySet";
67
- readonly type: "event";
68
- }, {
69
- readonly anonymous: false;
70
- readonly inputs: readonly [{
71
- readonly indexed: true;
72
- readonly name: "asset";
73
- readonly type: "address";
74
- }, {
75
- readonly indexed: true;
76
- readonly name: "recipient";
77
- readonly type: "address";
78
- }, {
79
- readonly indexed: false;
80
- readonly name: "balance";
81
- readonly type: "uint256";
82
- }];
83
- readonly name: "AgentFundsRecovered";
84
- readonly type: "event";
85
- }, {
86
- readonly inputs: readonly [{
87
- readonly name: "_owner";
88
- readonly type: "address";
89
- }];
90
- readonly name: "initialize";
91
- readonly outputs: readonly [{
92
- readonly name: "";
93
- readonly type: "bool";
94
- }];
95
- readonly stateMutability: "nonpayable";
96
- readonly type: "function";
97
- }, {
98
- readonly inputs: readonly [];
99
- readonly name: "apiVersion";
100
- readonly outputs: readonly [{
101
- readonly name: "";
102
- readonly type: "string";
103
- }];
104
- readonly stateMutability: "pure";
105
- readonly type: "function";
106
- }, {
107
- readonly inputs: readonly [{
108
- readonly name: "_userWallet";
109
- readonly type: "address";
110
- }, {
111
- readonly name: "_legoId";
112
- readonly type: "uint256";
113
- }, {
114
- readonly name: "_asset";
115
- readonly type: "address";
116
- }, {
117
- readonly name: "_vault";
118
- readonly type: "address";
119
- }];
120
- readonly name: "depositTokens";
121
- readonly outputs: readonly [{
122
- readonly name: "";
123
- readonly type: "uint256";
124
- }, {
125
- readonly name: "";
126
- readonly type: "address";
127
- }, {
128
- readonly name: "";
129
- readonly type: "uint256";
130
- }, {
131
- readonly name: "";
132
- readonly type: "uint256";
133
- }];
134
- readonly stateMutability: "nonpayable";
135
- readonly type: "function";
136
- }, {
137
- readonly inputs: readonly [{
138
- readonly name: "_userWallet";
139
- readonly type: "address";
140
- }, {
141
- readonly name: "_legoId";
142
- readonly type: "uint256";
143
- }, {
144
- readonly name: "_asset";
145
- readonly type: "address";
146
- }, {
147
- readonly name: "_vault";
148
- readonly type: "address";
149
- }, {
150
- readonly name: "_amount";
151
- readonly type: "uint256";
152
- }];
153
- readonly name: "depositTokens";
154
- readonly outputs: readonly [{
155
- readonly name: "";
156
- readonly type: "uint256";
157
- }, {
158
- readonly name: "";
159
- readonly type: "address";
160
- }, {
161
- readonly name: "";
162
- readonly type: "uint256";
163
- }, {
164
- readonly name: "";
165
- readonly type: "uint256";
166
- }];
167
- readonly stateMutability: "nonpayable";
168
- readonly type: "function";
169
- }, {
170
- readonly inputs: readonly [{
171
- readonly name: "_userWallet";
172
- readonly type: "address";
173
- }, {
174
- readonly name: "_legoId";
175
- readonly type: "uint256";
176
- }, {
177
- readonly name: "_asset";
178
- readonly type: "address";
179
- }, {
180
- readonly name: "_vault";
181
- readonly type: "address";
182
- }, {
183
- readonly name: "_amount";
184
- readonly type: "uint256";
185
- }, {
186
- readonly components: readonly [{
187
- readonly name: "signature";
188
- readonly type: "bytes";
189
- }, {
190
- readonly name: "signer";
191
- readonly type: "address";
192
- }, {
193
- readonly name: "expiration";
194
- readonly type: "uint256";
195
- }];
196
- readonly name: "_sig";
197
- readonly type: "tuple";
198
- }];
199
- readonly name: "depositTokens";
200
- readonly outputs: readonly [{
201
- readonly name: "";
202
- readonly type: "uint256";
203
- }, {
204
- readonly name: "";
205
- readonly type: "address";
206
- }, {
207
- readonly name: "";
208
- readonly type: "uint256";
209
- }, {
210
- readonly name: "";
211
- readonly type: "uint256";
212
- }];
213
- readonly stateMutability: "nonpayable";
214
- readonly type: "function";
215
- }, {
216
- readonly inputs: readonly [{
217
- readonly name: "_userWallet";
218
- readonly type: "address";
219
- }, {
220
- readonly name: "_legoId";
221
- readonly type: "uint256";
222
- }, {
223
- readonly name: "_asset";
224
- readonly type: "address";
225
- }, {
226
- readonly name: "_vaultToken";
227
- readonly type: "address";
228
- }];
229
- readonly name: "withdrawTokens";
230
- readonly outputs: readonly [{
231
- readonly name: "";
232
- readonly type: "uint256";
233
- }, {
234
- readonly name: "";
235
- readonly type: "uint256";
236
- }, {
237
- readonly name: "";
238
- readonly type: "uint256";
239
- }];
240
- readonly stateMutability: "nonpayable";
241
- readonly type: "function";
242
- }, {
243
- readonly inputs: readonly [{
244
- readonly name: "_userWallet";
245
- readonly type: "address";
246
- }, {
247
- readonly name: "_legoId";
248
- readonly type: "uint256";
249
- }, {
250
- readonly name: "_asset";
251
- readonly type: "address";
252
- }, {
253
- readonly name: "_vaultToken";
254
- readonly type: "address";
255
- }, {
256
- readonly name: "_vaultTokenAmount";
257
- readonly type: "uint256";
258
- }];
259
- readonly name: "withdrawTokens";
260
- readonly outputs: readonly [{
261
- readonly name: "";
262
- readonly type: "uint256";
263
- }, {
264
- readonly name: "";
265
- readonly type: "uint256";
266
- }, {
267
- readonly name: "";
268
- readonly type: "uint256";
269
- }];
270
- readonly stateMutability: "nonpayable";
271
- readonly type: "function";
272
- }, {
273
- readonly inputs: readonly [{
274
- readonly name: "_userWallet";
275
- readonly type: "address";
276
- }, {
277
- readonly name: "_legoId";
278
- readonly type: "uint256";
279
- }, {
280
- readonly name: "_asset";
281
- readonly type: "address";
282
- }, {
283
- readonly name: "_vaultToken";
284
- readonly type: "address";
285
- }, {
286
- readonly name: "_vaultTokenAmount";
287
- readonly type: "uint256";
288
- }, {
289
- readonly components: readonly [{
290
- readonly name: "signature";
291
- readonly type: "bytes";
292
- }, {
293
- readonly name: "signer";
294
- readonly type: "address";
295
- }, {
296
- readonly name: "expiration";
297
- readonly type: "uint256";
298
- }];
299
- readonly name: "_sig";
300
- readonly type: "tuple";
301
- }];
302
- readonly name: "withdrawTokens";
303
- readonly outputs: readonly [{
304
- readonly name: "";
305
- readonly type: "uint256";
306
- }, {
307
- readonly name: "";
308
- readonly type: "uint256";
309
- }, {
310
- readonly name: "";
311
- readonly type: "uint256";
312
- }];
313
- readonly stateMutability: "nonpayable";
314
- readonly type: "function";
315
- }, {
316
- readonly inputs: readonly [{
317
- readonly name: "_userWallet";
318
- readonly type: "address";
319
- }, {
320
- readonly name: "_fromLegoId";
321
- readonly type: "uint256";
322
- }, {
323
- readonly name: "_fromAsset";
324
- readonly type: "address";
325
- }, {
326
- readonly name: "_fromVaultToken";
327
- readonly type: "address";
328
- }, {
329
- readonly name: "_toLegoId";
330
- readonly type: "uint256";
331
- }, {
332
- readonly name: "_toVault";
333
- readonly type: "address";
334
- }];
335
- readonly name: "rebalance";
336
- readonly outputs: readonly [{
337
- readonly name: "";
338
- readonly type: "uint256";
339
- }, {
340
- readonly name: "";
341
- readonly type: "address";
342
- }, {
343
- readonly name: "";
344
- readonly type: "uint256";
345
- }, {
346
- readonly name: "";
347
- readonly type: "uint256";
348
- }];
349
- readonly stateMutability: "nonpayable";
350
- readonly type: "function";
351
- }, {
352
- readonly inputs: readonly [{
353
- readonly name: "_userWallet";
354
- readonly type: "address";
355
- }, {
356
- readonly name: "_fromLegoId";
357
- readonly type: "uint256";
358
- }, {
359
- readonly name: "_fromAsset";
360
- readonly type: "address";
361
- }, {
362
- readonly name: "_fromVaultToken";
363
- readonly type: "address";
364
- }, {
365
- readonly name: "_toLegoId";
366
- readonly type: "uint256";
367
- }, {
368
- readonly name: "_toVault";
369
- readonly type: "address";
370
- }, {
371
- readonly name: "_fromVaultTokenAmount";
372
- readonly type: "uint256";
373
- }];
374
- readonly name: "rebalance";
375
- readonly outputs: readonly [{
376
- readonly name: "";
377
- readonly type: "uint256";
378
- }, {
379
- readonly name: "";
380
- readonly type: "address";
381
- }, {
382
- readonly name: "";
383
- readonly type: "uint256";
384
- }, {
385
- readonly name: "";
386
- readonly type: "uint256";
387
- }];
388
- readonly stateMutability: "nonpayable";
389
- readonly type: "function";
390
- }, {
391
- readonly inputs: readonly [{
392
- readonly name: "_userWallet";
393
- readonly type: "address";
394
- }, {
395
- readonly name: "_fromLegoId";
396
- readonly type: "uint256";
397
- }, {
398
- readonly name: "_fromAsset";
399
- readonly type: "address";
400
- }, {
401
- readonly name: "_fromVaultToken";
402
- readonly type: "address";
403
- }, {
404
- readonly name: "_toLegoId";
405
- readonly type: "uint256";
406
- }, {
407
- readonly name: "_toVault";
408
- readonly type: "address";
409
- }, {
410
- readonly name: "_fromVaultTokenAmount";
411
- readonly type: "uint256";
412
- }, {
413
- readonly components: readonly [{
414
- readonly name: "signature";
415
- readonly type: "bytes";
416
- }, {
417
- readonly name: "signer";
418
- readonly type: "address";
419
- }, {
420
- readonly name: "expiration";
421
- readonly type: "uint256";
422
- }];
423
- readonly name: "_sig";
424
- readonly type: "tuple";
425
- }];
426
- readonly name: "rebalance";
427
- readonly outputs: readonly [{
428
- readonly name: "";
429
- readonly type: "uint256";
430
- }, {
431
- readonly name: "";
432
- readonly type: "address";
433
- }, {
434
- readonly name: "";
435
- readonly type: "uint256";
436
- }, {
437
- readonly name: "";
438
- readonly type: "uint256";
439
- }];
440
- readonly stateMutability: "nonpayable";
441
- readonly type: "function";
442
- }, {
443
- readonly inputs: readonly [{
444
- readonly name: "_userWallet";
445
- readonly type: "address";
446
- }, {
447
- readonly components: readonly [{
448
- readonly name: "legoId";
449
- readonly type: "uint256";
450
- }, {
451
- readonly name: "amountIn";
452
- readonly type: "uint256";
453
- }, {
454
- readonly name: "minAmountOut";
455
- readonly type: "uint256";
456
- }, {
457
- readonly name: "tokenPath";
458
- readonly type: "address[]";
459
- }, {
460
- readonly name: "poolPath";
461
- readonly type: "address[]";
462
- }];
463
- readonly name: "_swapInstructions";
464
- readonly type: "tuple[]";
465
- }];
466
- readonly name: "swapTokens";
467
- readonly outputs: readonly [{
468
- readonly name: "";
469
- readonly type: "uint256";
470
- }, {
471
- readonly name: "";
472
- readonly type: "uint256";
473
- }, {
474
- readonly name: "";
475
- readonly type: "uint256";
476
- }];
477
- readonly stateMutability: "nonpayable";
478
- readonly type: "function";
479
- }, {
480
- readonly inputs: readonly [{
481
- readonly name: "_userWallet";
482
- readonly type: "address";
483
- }, {
484
- readonly components: readonly [{
485
- readonly name: "legoId";
486
- readonly type: "uint256";
487
- }, {
488
- readonly name: "amountIn";
489
- readonly type: "uint256";
490
- }, {
491
- readonly name: "minAmountOut";
492
- readonly type: "uint256";
493
- }, {
494
- readonly name: "tokenPath";
495
- readonly type: "address[]";
496
- }, {
497
- readonly name: "poolPath";
498
- readonly type: "address[]";
499
- }];
500
- readonly name: "_swapInstructions";
501
- readonly type: "tuple[]";
502
- }, {
503
- readonly components: readonly [{
504
- readonly name: "signature";
505
- readonly type: "bytes";
506
- }, {
507
- readonly name: "signer";
508
- readonly type: "address";
509
- }, {
510
- readonly name: "expiration";
511
- readonly type: "uint256";
512
- }];
513
- readonly name: "_sig";
514
- readonly type: "tuple";
515
- }];
516
- readonly name: "swapTokens";
517
- readonly outputs: readonly [{
518
- readonly name: "";
519
- readonly type: "uint256";
520
- }, {
521
- readonly name: "";
522
- readonly type: "uint256";
523
- }, {
524
- readonly name: "";
525
- readonly type: "uint256";
526
- }];
527
- readonly stateMutability: "nonpayable";
528
- readonly type: "function";
529
- }, {
530
- readonly inputs: readonly [{
531
- readonly name: "_userWallet";
532
- readonly type: "address";
533
- }, {
534
- readonly components: readonly [{
535
- readonly name: "legoId";
536
- readonly type: "uint256";
537
- }, {
538
- readonly name: "amountIn";
539
- readonly type: "uint256";
540
- }, {
541
- readonly name: "minAmountOut";
542
- readonly type: "uint256";
543
- }, {
544
- readonly name: "tokenPath";
545
- readonly type: "address[]";
546
- }, {
547
- readonly name: "poolPath";
548
- readonly type: "address[]";
549
- }];
550
- readonly name: "_swapInstructions";
551
- readonly type: "tuple[]";
552
- }, {
553
- readonly name: "_expiration";
554
- readonly type: "uint256";
555
- }];
556
- readonly name: "getSwapActionHash";
557
- readonly outputs: readonly [{
558
- readonly name: "";
559
- readonly type: "bytes32";
560
- }];
561
- readonly stateMutability: "view";
562
- readonly type: "function";
563
- }, {
564
- readonly inputs: readonly [{
565
- readonly name: "_userWallet";
566
- readonly type: "address";
567
- }, {
568
- readonly name: "_legoId";
569
- readonly type: "uint256";
570
- }];
571
- readonly name: "borrow";
572
- readonly outputs: readonly [{
573
- readonly name: "";
574
- readonly type: "address";
575
- }, {
576
- readonly name: "";
577
- readonly type: "uint256";
578
- }, {
579
- readonly name: "";
580
- readonly type: "uint256";
581
- }];
582
- readonly stateMutability: "nonpayable";
583
- readonly type: "function";
584
- }, {
585
- readonly inputs: readonly [{
586
- readonly name: "_userWallet";
587
- readonly type: "address";
588
- }, {
589
- readonly name: "_legoId";
590
- readonly type: "uint256";
591
- }, {
592
- readonly name: "_borrowAsset";
593
- readonly type: "address";
594
- }];
595
- readonly name: "borrow";
596
- readonly outputs: readonly [{
597
- readonly name: "";
598
- readonly type: "address";
599
- }, {
600
- readonly name: "";
601
- readonly type: "uint256";
602
- }, {
603
- readonly name: "";
604
- readonly type: "uint256";
605
- }];
606
- readonly stateMutability: "nonpayable";
607
- readonly type: "function";
608
- }, {
609
- readonly inputs: readonly [{
610
- readonly name: "_userWallet";
611
- readonly type: "address";
612
- }, {
613
- readonly name: "_legoId";
614
- readonly type: "uint256";
615
- }, {
616
- readonly name: "_borrowAsset";
617
- readonly type: "address";
618
- }, {
619
- readonly name: "_amount";
620
- readonly type: "uint256";
621
- }];
622
- readonly name: "borrow";
623
- readonly outputs: readonly [{
624
- readonly name: "";
625
- readonly type: "address";
626
- }, {
627
- readonly name: "";
628
- readonly type: "uint256";
629
- }, {
630
- readonly name: "";
631
- readonly type: "uint256";
632
- }];
633
- readonly stateMutability: "nonpayable";
634
- readonly type: "function";
635
- }, {
636
- readonly inputs: readonly [{
637
- readonly name: "_userWallet";
638
- readonly type: "address";
639
- }, {
640
- readonly name: "_legoId";
641
- readonly type: "uint256";
642
- }, {
643
- readonly name: "_borrowAsset";
644
- readonly type: "address";
645
- }, {
646
- readonly name: "_amount";
647
- readonly type: "uint256";
648
- }, {
649
- readonly components: readonly [{
650
- readonly name: "signature";
651
- readonly type: "bytes";
652
- }, {
653
- readonly name: "signer";
654
- readonly type: "address";
655
- }, {
656
- readonly name: "expiration";
657
- readonly type: "uint256";
658
- }];
659
- readonly name: "_sig";
660
- readonly type: "tuple";
661
- }];
662
- readonly name: "borrow";
663
- readonly outputs: readonly [{
664
- readonly name: "";
665
- readonly type: "address";
666
- }, {
667
- readonly name: "";
668
- readonly type: "uint256";
669
- }, {
670
- readonly name: "";
671
- readonly type: "uint256";
672
- }];
673
- readonly stateMutability: "nonpayable";
674
- readonly type: "function";
675
- }, {
676
- readonly inputs: readonly [{
677
- readonly name: "_userWallet";
678
- readonly type: "address";
679
- }, {
680
- readonly name: "_legoId";
681
- readonly type: "uint256";
682
- }, {
683
- readonly name: "_paymentAsset";
684
- readonly type: "address";
685
- }];
686
- readonly name: "repayDebt";
687
- readonly outputs: readonly [{
688
- readonly name: "";
689
- readonly type: "address";
690
- }, {
691
- readonly name: "";
692
- readonly type: "uint256";
693
- }, {
694
- readonly name: "";
695
- readonly type: "uint256";
696
- }, {
697
- readonly name: "";
698
- readonly type: "uint256";
699
- }];
700
- readonly stateMutability: "nonpayable";
701
- readonly type: "function";
702
- }, {
703
- readonly inputs: readonly [{
704
- readonly name: "_userWallet";
705
- readonly type: "address";
706
- }, {
707
- readonly name: "_legoId";
708
- readonly type: "uint256";
709
- }, {
710
- readonly name: "_paymentAsset";
711
- readonly type: "address";
712
- }, {
713
- readonly name: "_paymentAmount";
714
- readonly type: "uint256";
715
- }];
716
- readonly name: "repayDebt";
717
- readonly outputs: readonly [{
718
- readonly name: "";
719
- readonly type: "address";
720
- }, {
721
- readonly name: "";
722
- readonly type: "uint256";
723
- }, {
724
- readonly name: "";
725
- readonly type: "uint256";
726
- }, {
727
- readonly name: "";
728
- readonly type: "uint256";
729
- }];
730
- readonly stateMutability: "nonpayable";
731
- readonly type: "function";
732
- }, {
733
- readonly inputs: readonly [{
734
- readonly name: "_userWallet";
735
- readonly type: "address";
736
- }, {
737
- readonly name: "_legoId";
738
- readonly type: "uint256";
739
- }, {
740
- readonly name: "_paymentAsset";
741
- readonly type: "address";
742
- }, {
743
- readonly name: "_paymentAmount";
744
- readonly type: "uint256";
745
- }, {
746
- readonly components: readonly [{
747
- readonly name: "signature";
748
- readonly type: "bytes";
749
- }, {
750
- readonly name: "signer";
751
- readonly type: "address";
752
- }, {
753
- readonly name: "expiration";
754
- readonly type: "uint256";
755
- }];
756
- readonly name: "_sig";
757
- readonly type: "tuple";
758
- }];
759
- readonly name: "repayDebt";
760
- readonly outputs: readonly [{
761
- readonly name: "";
762
- readonly type: "address";
763
- }, {
764
- readonly name: "";
765
- readonly type: "uint256";
766
- }, {
767
- readonly name: "";
768
- readonly type: "uint256";
769
- }, {
770
- readonly name: "";
771
- readonly type: "uint256";
772
- }];
773
- readonly stateMutability: "nonpayable";
774
- readonly type: "function";
775
- }, {
776
- readonly inputs: readonly [{
777
- readonly name: "_userWallet";
778
- readonly type: "address";
779
- }, {
780
- readonly name: "_legoId";
781
- readonly type: "uint256";
782
- }];
783
- readonly name: "claimRewards";
784
- readonly outputs: readonly [];
785
- readonly stateMutability: "nonpayable";
786
- readonly type: "function";
787
- }, {
788
- readonly inputs: readonly [{
789
- readonly name: "_userWallet";
790
- readonly type: "address";
791
- }, {
792
- readonly name: "_legoId";
793
- readonly type: "uint256";
794
- }, {
795
- readonly name: "_market";
796
- readonly type: "address";
797
- }];
798
- readonly name: "claimRewards";
799
- readonly outputs: readonly [];
800
- readonly stateMutability: "nonpayable";
801
- readonly type: "function";
802
- }, {
803
- readonly inputs: readonly [{
804
- readonly name: "_userWallet";
805
- readonly type: "address";
806
- }, {
807
- readonly name: "_legoId";
808
- readonly type: "uint256";
809
- }, {
810
- readonly name: "_market";
811
- readonly type: "address";
812
- }, {
813
- readonly name: "_rewardToken";
814
- readonly type: "address";
815
- }];
816
- readonly name: "claimRewards";
817
- readonly outputs: readonly [];
818
- readonly stateMutability: "nonpayable";
819
- readonly type: "function";
820
- }, {
821
- readonly inputs: readonly [{
822
- readonly name: "_userWallet";
823
- readonly type: "address";
824
- }, {
825
- readonly name: "_legoId";
826
- readonly type: "uint256";
827
- }, {
828
- readonly name: "_market";
829
- readonly type: "address";
830
- }, {
831
- readonly name: "_rewardToken";
832
- readonly type: "address";
833
- }, {
834
- readonly name: "_rewardAmount";
835
- readonly type: "uint256";
836
- }];
837
- readonly name: "claimRewards";
838
- readonly outputs: readonly [];
839
- readonly stateMutability: "nonpayable";
840
- readonly type: "function";
841
- }, {
842
- readonly inputs: readonly [{
843
- readonly name: "_userWallet";
844
- readonly type: "address";
845
- }, {
846
- readonly name: "_legoId";
847
- readonly type: "uint256";
848
- }, {
849
- readonly name: "_market";
850
- readonly type: "address";
851
- }, {
852
- readonly name: "_rewardToken";
853
- readonly type: "address";
854
- }, {
855
- readonly name: "_rewardAmount";
856
- readonly type: "uint256";
857
- }, {
858
- readonly name: "_proof";
859
- readonly type: "bytes32";
860
- }];
861
- readonly name: "claimRewards";
862
- readonly outputs: readonly [];
863
- readonly stateMutability: "nonpayable";
864
- readonly type: "function";
865
- }, {
866
- readonly inputs: readonly [{
867
- readonly name: "_userWallet";
868
- readonly type: "address";
869
- }, {
870
- readonly name: "_legoId";
871
- readonly type: "uint256";
872
- }, {
873
- readonly name: "_market";
874
- readonly type: "address";
875
- }, {
876
- readonly name: "_rewardToken";
877
- readonly type: "address";
878
- }, {
879
- readonly name: "_rewardAmount";
880
- readonly type: "uint256";
881
- }, {
882
- readonly name: "_proof";
883
- readonly type: "bytes32";
884
- }, {
885
- readonly components: readonly [{
886
- readonly name: "signature";
887
- readonly type: "bytes";
888
- }, {
889
- readonly name: "signer";
890
- readonly type: "address";
891
- }, {
892
- readonly name: "expiration";
893
- readonly type: "uint256";
894
- }];
895
- readonly name: "_sig";
896
- readonly type: "tuple";
897
- }];
898
- readonly name: "claimRewards";
899
- readonly outputs: readonly [];
900
- readonly stateMutability: "nonpayable";
901
- readonly type: "function";
902
- }, {
903
- readonly inputs: readonly [{
904
- readonly name: "_userWallet";
905
- readonly type: "address";
906
- }, {
907
- readonly name: "_legoId";
908
- readonly type: "uint256";
909
- }, {
910
- readonly name: "_nftAddr";
911
- readonly type: "address";
912
- }, {
913
- readonly name: "_nftTokenId";
914
- readonly type: "uint256";
915
- }, {
916
- readonly name: "_pool";
917
- readonly type: "address";
918
- }, {
919
- readonly name: "_tokenA";
920
- readonly type: "address";
921
- }, {
922
- readonly name: "_tokenB";
923
- readonly type: "address";
924
- }];
925
- readonly name: "addLiquidity";
926
- readonly outputs: readonly [{
927
- readonly name: "";
928
- readonly type: "uint256";
929
- }, {
930
- readonly name: "";
931
- readonly type: "uint256";
932
- }, {
933
- readonly name: "";
934
- readonly type: "uint256";
935
- }, {
936
- readonly name: "";
937
- readonly type: "uint256";
938
- }, {
939
- readonly name: "";
940
- readonly type: "uint256";
941
- }];
942
- readonly stateMutability: "nonpayable";
943
- readonly type: "function";
944
- }, {
945
- readonly inputs: readonly [{
946
- readonly name: "_userWallet";
947
- readonly type: "address";
948
- }, {
949
- readonly name: "_legoId";
950
- readonly type: "uint256";
951
- }, {
952
- readonly name: "_nftAddr";
953
- readonly type: "address";
954
- }, {
955
- readonly name: "_nftTokenId";
956
- readonly type: "uint256";
957
- }, {
958
- readonly name: "_pool";
959
- readonly type: "address";
960
- }, {
961
- readonly name: "_tokenA";
962
- readonly type: "address";
963
- }, {
964
- readonly name: "_tokenB";
965
- readonly type: "address";
966
- }, {
967
- readonly name: "_amountA";
968
- readonly type: "uint256";
969
- }];
970
- readonly name: "addLiquidity";
971
- readonly outputs: readonly [{
972
- readonly name: "";
973
- readonly type: "uint256";
974
- }, {
975
- readonly name: "";
976
- readonly type: "uint256";
977
- }, {
978
- readonly name: "";
979
- readonly type: "uint256";
980
- }, {
981
- readonly name: "";
982
- readonly type: "uint256";
983
- }, {
984
- readonly name: "";
985
- readonly type: "uint256";
986
- }];
987
- readonly stateMutability: "nonpayable";
988
- readonly type: "function";
989
- }, {
990
- readonly inputs: readonly [{
991
- readonly name: "_userWallet";
992
- readonly type: "address";
993
- }, {
994
- readonly name: "_legoId";
995
- readonly type: "uint256";
996
- }, {
997
- readonly name: "_nftAddr";
998
- readonly type: "address";
999
- }, {
1000
- readonly name: "_nftTokenId";
1001
- readonly type: "uint256";
1002
- }, {
1003
- readonly name: "_pool";
1004
- readonly type: "address";
1005
- }, {
1006
- readonly name: "_tokenA";
1007
- readonly type: "address";
1008
- }, {
1009
- readonly name: "_tokenB";
1010
- readonly type: "address";
1011
- }, {
1012
- readonly name: "_amountA";
1013
- readonly type: "uint256";
1014
- }, {
1015
- readonly name: "_amountB";
1016
- readonly type: "uint256";
1017
- }];
1018
- readonly name: "addLiquidity";
1019
- readonly outputs: readonly [{
1020
- readonly name: "";
1021
- readonly type: "uint256";
1022
- }, {
1023
- readonly name: "";
1024
- readonly type: "uint256";
1025
- }, {
1026
- readonly name: "";
1027
- readonly type: "uint256";
1028
- }, {
1029
- readonly name: "";
1030
- readonly type: "uint256";
1031
- }, {
1032
- readonly name: "";
1033
- readonly type: "uint256";
1034
- }];
1035
- readonly stateMutability: "nonpayable";
1036
- readonly type: "function";
1037
- }, {
1038
- readonly inputs: readonly [{
1039
- readonly name: "_userWallet";
1040
- readonly type: "address";
1041
- }, {
1042
- readonly name: "_legoId";
1043
- readonly type: "uint256";
1044
- }, {
1045
- readonly name: "_nftAddr";
1046
- readonly type: "address";
1047
- }, {
1048
- readonly name: "_nftTokenId";
1049
- readonly type: "uint256";
1050
- }, {
1051
- readonly name: "_pool";
1052
- readonly type: "address";
1053
- }, {
1054
- readonly name: "_tokenA";
1055
- readonly type: "address";
1056
- }, {
1057
- readonly name: "_tokenB";
1058
- readonly type: "address";
1059
- }, {
1060
- readonly name: "_amountA";
1061
- readonly type: "uint256";
1062
- }, {
1063
- readonly name: "_amountB";
1064
- readonly type: "uint256";
1065
- }, {
1066
- readonly name: "_tickLower";
1067
- readonly type: "int24";
1068
- }];
1069
- readonly name: "addLiquidity";
1070
- readonly outputs: readonly [{
1071
- readonly name: "";
1072
- readonly type: "uint256";
1073
- }, {
1074
- readonly name: "";
1075
- readonly type: "uint256";
1076
- }, {
1077
- readonly name: "";
1078
- readonly type: "uint256";
1079
- }, {
1080
- readonly name: "";
1081
- readonly type: "uint256";
1082
- }, {
1083
- readonly name: "";
1084
- readonly type: "uint256";
1085
- }];
1086
- readonly stateMutability: "nonpayable";
1087
- readonly type: "function";
1088
- }, {
1089
- readonly inputs: readonly [{
1090
- readonly name: "_userWallet";
1091
- readonly type: "address";
1092
- }, {
1093
- readonly name: "_legoId";
1094
- readonly type: "uint256";
1095
- }, {
1096
- readonly name: "_nftAddr";
1097
- readonly type: "address";
1098
- }, {
1099
- readonly name: "_nftTokenId";
1100
- readonly type: "uint256";
1101
- }, {
1102
- readonly name: "_pool";
1103
- readonly type: "address";
1104
- }, {
1105
- readonly name: "_tokenA";
1106
- readonly type: "address";
1107
- }, {
1108
- readonly name: "_tokenB";
1109
- readonly type: "address";
1110
- }, {
1111
- readonly name: "_amountA";
1112
- readonly type: "uint256";
1113
- }, {
1114
- readonly name: "_amountB";
1115
- readonly type: "uint256";
1116
- }, {
1117
- readonly name: "_tickLower";
1118
- readonly type: "int24";
1119
- }, {
1120
- readonly name: "_tickUpper";
1121
- readonly type: "int24";
1122
- }];
1123
- readonly name: "addLiquidity";
1124
- readonly outputs: readonly [{
1125
- readonly name: "";
1126
- readonly type: "uint256";
1127
- }, {
1128
- readonly name: "";
1129
- readonly type: "uint256";
1130
- }, {
1131
- readonly name: "";
1132
- readonly type: "uint256";
1133
- }, {
1134
- readonly name: "";
1135
- readonly type: "uint256";
1136
- }, {
1137
- readonly name: "";
1138
- readonly type: "uint256";
1139
- }];
1140
- readonly stateMutability: "nonpayable";
1141
- readonly type: "function";
1142
- }, {
1143
- readonly inputs: readonly [{
1144
- readonly name: "_userWallet";
1145
- readonly type: "address";
1146
- }, {
1147
- readonly name: "_legoId";
1148
- readonly type: "uint256";
1149
- }, {
1150
- readonly name: "_nftAddr";
1151
- readonly type: "address";
1152
- }, {
1153
- readonly name: "_nftTokenId";
1154
- readonly type: "uint256";
1155
- }, {
1156
- readonly name: "_pool";
1157
- readonly type: "address";
1158
- }, {
1159
- readonly name: "_tokenA";
1160
- readonly type: "address";
1161
- }, {
1162
- readonly name: "_tokenB";
1163
- readonly type: "address";
1164
- }, {
1165
- readonly name: "_amountA";
1166
- readonly type: "uint256";
1167
- }, {
1168
- readonly name: "_amountB";
1169
- readonly type: "uint256";
1170
- }, {
1171
- readonly name: "_tickLower";
1172
- readonly type: "int24";
1173
- }, {
1174
- readonly name: "_tickUpper";
1175
- readonly type: "int24";
1176
- }, {
1177
- readonly name: "_minAmountA";
1178
- readonly type: "uint256";
1179
- }];
1180
- readonly name: "addLiquidity";
1181
- readonly outputs: readonly [{
1182
- readonly name: "";
1183
- readonly type: "uint256";
1184
- }, {
1185
- readonly name: "";
1186
- readonly type: "uint256";
1187
- }, {
1188
- readonly name: "";
1189
- readonly type: "uint256";
1190
- }, {
1191
- readonly name: "";
1192
- readonly type: "uint256";
1193
- }, {
1194
- readonly name: "";
1195
- readonly type: "uint256";
1196
- }];
1197
- readonly stateMutability: "nonpayable";
1198
- readonly type: "function";
1199
- }, {
1200
- readonly inputs: readonly [{
1201
- readonly name: "_userWallet";
1202
- readonly type: "address";
1203
- }, {
1204
- readonly name: "_legoId";
1205
- readonly type: "uint256";
1206
- }, {
1207
- readonly name: "_nftAddr";
1208
- readonly type: "address";
1209
- }, {
1210
- readonly name: "_nftTokenId";
1211
- readonly type: "uint256";
1212
- }, {
1213
- readonly name: "_pool";
1214
- readonly type: "address";
1215
- }, {
1216
- readonly name: "_tokenA";
1217
- readonly type: "address";
1218
- }, {
1219
- readonly name: "_tokenB";
1220
- readonly type: "address";
1221
- }, {
1222
- readonly name: "_amountA";
1223
- readonly type: "uint256";
1224
- }, {
1225
- readonly name: "_amountB";
1226
- readonly type: "uint256";
1227
- }, {
1228
- readonly name: "_tickLower";
1229
- readonly type: "int24";
1230
- }, {
1231
- readonly name: "_tickUpper";
1232
- readonly type: "int24";
1233
- }, {
1234
- readonly name: "_minAmountA";
1235
- readonly type: "uint256";
1236
- }, {
1237
- readonly name: "_minAmountB";
1238
- readonly type: "uint256";
1239
- }];
1240
- readonly name: "addLiquidity";
1241
- readonly outputs: readonly [{
1242
- readonly name: "";
1243
- readonly type: "uint256";
1244
- }, {
1245
- readonly name: "";
1246
- readonly type: "uint256";
1247
- }, {
1248
- readonly name: "";
1249
- readonly type: "uint256";
1250
- }, {
1251
- readonly name: "";
1252
- readonly type: "uint256";
1253
- }, {
1254
- readonly name: "";
1255
- readonly type: "uint256";
1256
- }];
1257
- readonly stateMutability: "nonpayable";
1258
- readonly type: "function";
1259
- }, {
1260
- readonly inputs: readonly [{
1261
- readonly name: "_userWallet";
1262
- readonly type: "address";
1263
- }, {
1264
- readonly name: "_legoId";
1265
- readonly type: "uint256";
1266
- }, {
1267
- readonly name: "_nftAddr";
1268
- readonly type: "address";
1269
- }, {
1270
- readonly name: "_nftTokenId";
1271
- readonly type: "uint256";
1272
- }, {
1273
- readonly name: "_pool";
1274
- readonly type: "address";
1275
- }, {
1276
- readonly name: "_tokenA";
1277
- readonly type: "address";
1278
- }, {
1279
- readonly name: "_tokenB";
1280
- readonly type: "address";
1281
- }, {
1282
- readonly name: "_amountA";
1283
- readonly type: "uint256";
1284
- }, {
1285
- readonly name: "_amountB";
1286
- readonly type: "uint256";
1287
- }, {
1288
- readonly name: "_tickLower";
1289
- readonly type: "int24";
1290
- }, {
1291
- readonly name: "_tickUpper";
1292
- readonly type: "int24";
1293
- }, {
1294
- readonly name: "_minAmountA";
1295
- readonly type: "uint256";
1296
- }, {
1297
- readonly name: "_minAmountB";
1298
- readonly type: "uint256";
1299
- }, {
1300
- readonly name: "_minLpAmount";
1301
- readonly type: "uint256";
1302
- }];
1303
- readonly name: "addLiquidity";
1304
- readonly outputs: readonly [{
1305
- readonly name: "";
1306
- readonly type: "uint256";
1307
- }, {
1308
- readonly name: "";
1309
- readonly type: "uint256";
1310
- }, {
1311
- readonly name: "";
1312
- readonly type: "uint256";
1313
- }, {
1314
- readonly name: "";
1315
- readonly type: "uint256";
1316
- }, {
1317
- readonly name: "";
1318
- readonly type: "uint256";
1319
- }];
1320
- readonly stateMutability: "nonpayable";
1321
- readonly type: "function";
1322
- }, {
1323
- readonly inputs: readonly [{
1324
- readonly name: "_userWallet";
1325
- readonly type: "address";
1326
- }, {
1327
- readonly name: "_legoId";
1328
- readonly type: "uint256";
1329
- }, {
1330
- readonly name: "_nftAddr";
1331
- readonly type: "address";
1332
- }, {
1333
- readonly name: "_nftTokenId";
1334
- readonly type: "uint256";
1335
- }, {
1336
- readonly name: "_pool";
1337
- readonly type: "address";
1338
- }, {
1339
- readonly name: "_tokenA";
1340
- readonly type: "address";
1341
- }, {
1342
- readonly name: "_tokenB";
1343
- readonly type: "address";
1344
- }, {
1345
- readonly name: "_amountA";
1346
- readonly type: "uint256";
1347
- }, {
1348
- readonly name: "_amountB";
1349
- readonly type: "uint256";
1350
- }, {
1351
- readonly name: "_tickLower";
1352
- readonly type: "int24";
1353
- }, {
1354
- readonly name: "_tickUpper";
1355
- readonly type: "int24";
1356
- }, {
1357
- readonly name: "_minAmountA";
1358
- readonly type: "uint256";
1359
- }, {
1360
- readonly name: "_minAmountB";
1361
- readonly type: "uint256";
1362
- }, {
1363
- readonly name: "_minLpAmount";
1364
- readonly type: "uint256";
1365
- }, {
1366
- readonly components: readonly [{
1367
- readonly name: "signature";
1368
- readonly type: "bytes";
1369
- }, {
1370
- readonly name: "signer";
1371
- readonly type: "address";
1372
- }, {
1373
- readonly name: "expiration";
1374
- readonly type: "uint256";
1375
- }];
1376
- readonly name: "_sig";
1377
- readonly type: "tuple";
1378
- }];
1379
- readonly name: "addLiquidity";
1380
- readonly outputs: readonly [{
1381
- readonly name: "";
1382
- readonly type: "uint256";
1383
- }, {
1384
- readonly name: "";
1385
- readonly type: "uint256";
1386
- }, {
1387
- readonly name: "";
1388
- readonly type: "uint256";
1389
- }, {
1390
- readonly name: "";
1391
- readonly type: "uint256";
1392
- }, {
1393
- readonly name: "";
1394
- readonly type: "uint256";
1395
- }];
1396
- readonly stateMutability: "nonpayable";
1397
- readonly type: "function";
1398
- }, {
1399
- readonly inputs: readonly [{
1400
- readonly name: "_userWallet";
1401
- readonly type: "address";
1402
- }, {
1403
- readonly name: "_legoId";
1404
- readonly type: "uint256";
1405
- }, {
1406
- readonly name: "_nftAddr";
1407
- readonly type: "address";
1408
- }, {
1409
- readonly name: "_nftTokenId";
1410
- readonly type: "uint256";
1411
- }, {
1412
- readonly name: "_pool";
1413
- readonly type: "address";
1414
- }, {
1415
- readonly name: "_tokenA";
1416
- readonly type: "address";
1417
- }, {
1418
- readonly name: "_tokenB";
1419
- readonly type: "address";
1420
- }];
1421
- readonly name: "removeLiquidity";
1422
- readonly outputs: readonly [{
1423
- readonly name: "";
1424
- readonly type: "uint256";
1425
- }, {
1426
- readonly name: "";
1427
- readonly type: "uint256";
1428
- }, {
1429
- readonly name: "";
1430
- readonly type: "uint256";
1431
- }, {
1432
- readonly name: "";
1433
- readonly type: "bool";
1434
- }];
1435
- readonly stateMutability: "nonpayable";
1436
- readonly type: "function";
1437
- }, {
1438
- readonly inputs: readonly [{
1439
- readonly name: "_userWallet";
1440
- readonly type: "address";
1441
- }, {
1442
- readonly name: "_legoId";
1443
- readonly type: "uint256";
1444
- }, {
1445
- readonly name: "_nftAddr";
1446
- readonly type: "address";
1447
- }, {
1448
- readonly name: "_nftTokenId";
1449
- readonly type: "uint256";
1450
- }, {
1451
- readonly name: "_pool";
1452
- readonly type: "address";
1453
- }, {
1454
- readonly name: "_tokenA";
1455
- readonly type: "address";
1456
- }, {
1457
- readonly name: "_tokenB";
1458
- readonly type: "address";
1459
- }, {
1460
- readonly name: "_liqToRemove";
1461
- readonly type: "uint256";
1462
- }];
1463
- readonly name: "removeLiquidity";
1464
- readonly outputs: readonly [{
1465
- readonly name: "";
1466
- readonly type: "uint256";
1467
- }, {
1468
- readonly name: "";
1469
- readonly type: "uint256";
1470
- }, {
1471
- readonly name: "";
1472
- readonly type: "uint256";
1473
- }, {
1474
- readonly name: "";
1475
- readonly type: "bool";
1476
- }];
1477
- readonly stateMutability: "nonpayable";
1478
- readonly type: "function";
1479
- }, {
1480
- readonly inputs: readonly [{
1481
- readonly name: "_userWallet";
1482
- readonly type: "address";
1483
- }, {
1484
- readonly name: "_legoId";
1485
- readonly type: "uint256";
1486
- }, {
1487
- readonly name: "_nftAddr";
1488
- readonly type: "address";
1489
- }, {
1490
- readonly name: "_nftTokenId";
1491
- readonly type: "uint256";
1492
- }, {
1493
- readonly name: "_pool";
1494
- readonly type: "address";
1495
- }, {
1496
- readonly name: "_tokenA";
1497
- readonly type: "address";
1498
- }, {
1499
- readonly name: "_tokenB";
1500
- readonly type: "address";
1501
- }, {
1502
- readonly name: "_liqToRemove";
1503
- readonly type: "uint256";
1504
- }, {
1505
- readonly name: "_minAmountA";
1506
- readonly type: "uint256";
1507
- }];
1508
- readonly name: "removeLiquidity";
1509
- readonly outputs: readonly [{
1510
- readonly name: "";
1511
- readonly type: "uint256";
1512
- }, {
1513
- readonly name: "";
1514
- readonly type: "uint256";
1515
- }, {
1516
- readonly name: "";
1517
- readonly type: "uint256";
1518
- }, {
1519
- readonly name: "";
1520
- readonly type: "bool";
1521
- }];
1522
- readonly stateMutability: "nonpayable";
1523
- readonly type: "function";
1524
- }, {
1525
- readonly inputs: readonly [{
1526
- readonly name: "_userWallet";
1527
- readonly type: "address";
1528
- }, {
1529
- readonly name: "_legoId";
1530
- readonly type: "uint256";
1531
- }, {
1532
- readonly name: "_nftAddr";
1533
- readonly type: "address";
1534
- }, {
1535
- readonly name: "_nftTokenId";
1536
- readonly type: "uint256";
1537
- }, {
1538
- readonly name: "_pool";
1539
- readonly type: "address";
1540
- }, {
1541
- readonly name: "_tokenA";
1542
- readonly type: "address";
1543
- }, {
1544
- readonly name: "_tokenB";
1545
- readonly type: "address";
1546
- }, {
1547
- readonly name: "_liqToRemove";
1548
- readonly type: "uint256";
1549
- }, {
1550
- readonly name: "_minAmountA";
1551
- readonly type: "uint256";
1552
- }, {
1553
- readonly name: "_minAmountB";
1554
- readonly type: "uint256";
1555
- }];
1556
- readonly name: "removeLiquidity";
1557
- readonly outputs: readonly [{
1558
- readonly name: "";
1559
- readonly type: "uint256";
1560
- }, {
1561
- readonly name: "";
1562
- readonly type: "uint256";
1563
- }, {
1564
- readonly name: "";
1565
- readonly type: "uint256";
1566
- }, {
1567
- readonly name: "";
1568
- readonly type: "bool";
1569
- }];
1570
- readonly stateMutability: "nonpayable";
1571
- readonly type: "function";
1572
- }, {
1573
- readonly inputs: readonly [{
1574
- readonly name: "_userWallet";
1575
- readonly type: "address";
1576
- }, {
1577
- readonly name: "_legoId";
1578
- readonly type: "uint256";
1579
- }, {
1580
- readonly name: "_nftAddr";
1581
- readonly type: "address";
1582
- }, {
1583
- readonly name: "_nftTokenId";
1584
- readonly type: "uint256";
1585
- }, {
1586
- readonly name: "_pool";
1587
- readonly type: "address";
1588
- }, {
1589
- readonly name: "_tokenA";
1590
- readonly type: "address";
1591
- }, {
1592
- readonly name: "_tokenB";
1593
- readonly type: "address";
1594
- }, {
1595
- readonly name: "_liqToRemove";
1596
- readonly type: "uint256";
1597
- }, {
1598
- readonly name: "_minAmountA";
1599
- readonly type: "uint256";
1600
- }, {
1601
- readonly name: "_minAmountB";
1602
- readonly type: "uint256";
1603
- }, {
1604
- readonly components: readonly [{
1605
- readonly name: "signature";
1606
- readonly type: "bytes";
1607
- }, {
1608
- readonly name: "signer";
1609
- readonly type: "address";
1610
- }, {
1611
- readonly name: "expiration";
1612
- readonly type: "uint256";
1613
- }];
1614
- readonly name: "_sig";
1615
- readonly type: "tuple";
1616
- }];
1617
- readonly name: "removeLiquidity";
1618
- readonly outputs: readonly [{
1619
- readonly name: "";
1620
- readonly type: "uint256";
1621
- }, {
1622
- readonly name: "";
1623
- readonly type: "uint256";
1624
- }, {
1625
- readonly name: "";
1626
- readonly type: "uint256";
1627
- }, {
1628
- readonly name: "";
1629
- readonly type: "bool";
1630
- }];
1631
- readonly stateMutability: "nonpayable";
1632
- readonly type: "function";
1633
- }, {
1634
- readonly inputs: readonly [{
1635
- readonly name: "_userWallet";
1636
- readonly type: "address";
1637
- }, {
1638
- readonly name: "_recipient";
1639
- readonly type: "address";
1640
- }];
1641
- readonly name: "transferFunds";
1642
- readonly outputs: readonly [{
1643
- readonly name: "";
1644
- readonly type: "uint256";
1645
- }, {
1646
- readonly name: "";
1647
- readonly type: "uint256";
1648
- }];
1649
- readonly stateMutability: "nonpayable";
1650
- readonly type: "function";
1651
- }, {
1652
- readonly inputs: readonly [{
1653
- readonly name: "_userWallet";
1654
- readonly type: "address";
1655
- }, {
1656
- readonly name: "_recipient";
1657
- readonly type: "address";
1658
- }, {
1659
- readonly name: "_amount";
1660
- readonly type: "uint256";
1661
- }];
1662
- readonly name: "transferFunds";
1663
- readonly outputs: readonly [{
1664
- readonly name: "";
1665
- readonly type: "uint256";
1666
- }, {
1667
- readonly name: "";
1668
- readonly type: "uint256";
1669
- }];
1670
- readonly stateMutability: "nonpayable";
1671
- readonly type: "function";
1672
- }, {
1673
- readonly inputs: readonly [{
1674
- readonly name: "_userWallet";
1675
- readonly type: "address";
1676
- }, {
1677
- readonly name: "_recipient";
1678
- readonly type: "address";
1679
- }, {
1680
- readonly name: "_amount";
1681
- readonly type: "uint256";
1682
- }, {
1683
- readonly name: "_asset";
1684
- readonly type: "address";
1685
- }];
1686
- readonly name: "transferFunds";
1687
- readonly outputs: readonly [{
1688
- readonly name: "";
1689
- readonly type: "uint256";
1690
- }, {
1691
- readonly name: "";
1692
- readonly type: "uint256";
1693
- }];
1694
- readonly stateMutability: "nonpayable";
1695
- readonly type: "function";
1696
- }, {
1697
- readonly inputs: readonly [{
1698
- readonly name: "_userWallet";
1699
- readonly type: "address";
1700
- }, {
1701
- readonly name: "_recipient";
1702
- readonly type: "address";
1703
- }, {
1704
- readonly name: "_amount";
1705
- readonly type: "uint256";
1706
- }, {
1707
- readonly name: "_asset";
1708
- readonly type: "address";
1709
- }, {
1710
- readonly components: readonly [{
1711
- readonly name: "signature";
1712
- readonly type: "bytes";
1713
- }, {
1714
- readonly name: "signer";
1715
- readonly type: "address";
1716
- }, {
1717
- readonly name: "expiration";
1718
- readonly type: "uint256";
1719
- }];
1720
- readonly name: "_sig";
1721
- readonly type: "tuple";
1722
- }];
1723
- readonly name: "transferFunds";
1724
- readonly outputs: readonly [{
1725
- readonly name: "";
1726
- readonly type: "uint256";
1727
- }, {
1728
- readonly name: "";
1729
- readonly type: "uint256";
1730
- }];
1731
- readonly stateMutability: "nonpayable";
1732
- readonly type: "function";
1733
- }, {
1734
- readonly inputs: readonly [{
1735
- readonly name: "_userWallet";
1736
- readonly type: "address";
1737
- }];
1738
- readonly name: "convertEthToWeth";
1739
- readonly outputs: readonly [{
1740
- readonly name: "";
1741
- readonly type: "uint256";
1742
- }, {
1743
- readonly name: "";
1744
- readonly type: "address";
1745
- }, {
1746
- readonly name: "";
1747
- readonly type: "uint256";
1748
- }];
1749
- readonly stateMutability: "nonpayable";
1750
- readonly type: "function";
1751
- }, {
1752
- readonly inputs: readonly [{
1753
- readonly name: "_userWallet";
1754
- readonly type: "address";
1755
- }, {
1756
- readonly name: "_amount";
1757
- readonly type: "uint256";
1758
- }];
1759
- readonly name: "convertEthToWeth";
1760
- readonly outputs: readonly [{
1761
- readonly name: "";
1762
- readonly type: "uint256";
1763
- }, {
1764
- readonly name: "";
1765
- readonly type: "address";
1766
- }, {
1767
- readonly name: "";
1768
- readonly type: "uint256";
1769
- }];
1770
- readonly stateMutability: "nonpayable";
1771
- readonly type: "function";
1772
- }, {
1773
- readonly inputs: readonly [{
1774
- readonly name: "_userWallet";
1775
- readonly type: "address";
1776
- }, {
1777
- readonly name: "_amount";
1778
- readonly type: "uint256";
1779
- }, {
1780
- readonly name: "_depositLegoId";
1781
- readonly type: "uint256";
1782
- }];
1783
- readonly name: "convertEthToWeth";
1784
- readonly outputs: readonly [{
1785
- readonly name: "";
1786
- readonly type: "uint256";
1787
- }, {
1788
- readonly name: "";
1789
- readonly type: "address";
1790
- }, {
1791
- readonly name: "";
1792
- readonly type: "uint256";
1793
- }];
1794
- readonly stateMutability: "nonpayable";
1795
- readonly type: "function";
1796
- }, {
1797
- readonly inputs: readonly [{
1798
- readonly name: "_userWallet";
1799
- readonly type: "address";
1800
- }, {
1801
- readonly name: "_amount";
1802
- readonly type: "uint256";
1803
- }, {
1804
- readonly name: "_depositLegoId";
1805
- readonly type: "uint256";
1806
- }, {
1807
- readonly name: "_depositVault";
1808
- readonly type: "address";
1809
- }];
1810
- readonly name: "convertEthToWeth";
1811
- readonly outputs: readonly [{
1812
- readonly name: "";
1813
- readonly type: "uint256";
1814
- }, {
1815
- readonly name: "";
1816
- readonly type: "address";
1817
- }, {
1818
- readonly name: "";
1819
- readonly type: "uint256";
1820
- }];
1821
- readonly stateMutability: "nonpayable";
1822
- readonly type: "function";
1823
- }, {
1824
- readonly inputs: readonly [{
1825
- readonly name: "_userWallet";
1826
- readonly type: "address";
1827
- }, {
1828
- readonly name: "_amount";
1829
- readonly type: "uint256";
1830
- }, {
1831
- readonly name: "_depositLegoId";
1832
- readonly type: "uint256";
1833
- }, {
1834
- readonly name: "_depositVault";
1835
- readonly type: "address";
1836
- }, {
1837
- readonly components: readonly [{
1838
- readonly name: "signature";
1839
- readonly type: "bytes";
1840
- }, {
1841
- readonly name: "signer";
1842
- readonly type: "address";
1843
- }, {
1844
- readonly name: "expiration";
1845
- readonly type: "uint256";
1846
- }];
1847
- readonly name: "_sig";
1848
- readonly type: "tuple";
1849
- }];
1850
- readonly name: "convertEthToWeth";
1851
- readonly outputs: readonly [{
1852
- readonly name: "";
1853
- readonly type: "uint256";
1854
- }, {
1855
- readonly name: "";
1856
- readonly type: "address";
1857
- }, {
1858
- readonly name: "";
1859
- readonly type: "uint256";
1860
- }];
1861
- readonly stateMutability: "nonpayable";
1862
- readonly type: "function";
1863
- }, {
1864
- readonly inputs: readonly [{
1865
- readonly name: "_userWallet";
1866
- readonly type: "address";
1867
- }];
1868
- readonly name: "convertWethToEth";
1869
- readonly outputs: readonly [{
1870
- readonly name: "";
1871
- readonly type: "uint256";
1872
- }];
1873
- readonly stateMutability: "nonpayable";
1874
- readonly type: "function";
1875
- }, {
1876
- readonly inputs: readonly [{
1877
- readonly name: "_userWallet";
1878
- readonly type: "address";
1879
- }, {
1880
- readonly name: "_amount";
1881
- readonly type: "uint256";
1882
- }];
1883
- readonly name: "convertWethToEth";
1884
- readonly outputs: readonly [{
1885
- readonly name: "";
1886
- readonly type: "uint256";
1887
- }];
1888
- readonly stateMutability: "nonpayable";
1889
- readonly type: "function";
1890
- }, {
1891
- readonly inputs: readonly [{
1892
- readonly name: "_userWallet";
1893
- readonly type: "address";
1894
- }, {
1895
- readonly name: "_amount";
1896
- readonly type: "uint256";
1897
- }, {
1898
- readonly name: "_recipient";
1899
- readonly type: "address";
1900
- }];
1901
- readonly name: "convertWethToEth";
1902
- readonly outputs: readonly [{
1903
- readonly name: "";
1904
- readonly type: "uint256";
1905
- }];
1906
- readonly stateMutability: "nonpayable";
1907
- readonly type: "function";
1908
- }, {
1909
- readonly inputs: readonly [{
1910
- readonly name: "_userWallet";
1911
- readonly type: "address";
1912
- }, {
1913
- readonly name: "_amount";
1914
- readonly type: "uint256";
1915
- }, {
1916
- readonly name: "_recipient";
1917
- readonly type: "address";
1918
- }, {
1919
- readonly name: "_withdrawLegoId";
1920
- readonly type: "uint256";
1921
- }];
1922
- readonly name: "convertWethToEth";
1923
- readonly outputs: readonly [{
1924
- readonly name: "";
1925
- readonly type: "uint256";
1926
- }];
1927
- readonly stateMutability: "nonpayable";
1928
- readonly type: "function";
1929
- }, {
1930
- readonly inputs: readonly [{
1931
- readonly name: "_userWallet";
1932
- readonly type: "address";
1933
- }, {
1934
- readonly name: "_amount";
1935
- readonly type: "uint256";
1936
- }, {
1937
- readonly name: "_recipient";
1938
- readonly type: "address";
1939
- }, {
1940
- readonly name: "_withdrawLegoId";
1941
- readonly type: "uint256";
1942
- }, {
1943
- readonly name: "_withdrawVaultToken";
1944
- readonly type: "address";
1945
- }];
1946
- readonly name: "convertWethToEth";
1947
- readonly outputs: readonly [{
1948
- readonly name: "";
1949
- readonly type: "uint256";
1950
- }];
1951
- readonly stateMutability: "nonpayable";
1952
- readonly type: "function";
1953
- }, {
1954
- readonly inputs: readonly [{
1955
- readonly name: "_userWallet";
1956
- readonly type: "address";
1957
- }, {
1958
- readonly name: "_amount";
1959
- readonly type: "uint256";
1960
- }, {
1961
- readonly name: "_recipient";
1962
- readonly type: "address";
1963
- }, {
1964
- readonly name: "_withdrawLegoId";
1965
- readonly type: "uint256";
1966
- }, {
1967
- readonly name: "_withdrawVaultToken";
1968
- readonly type: "address";
1969
- }, {
1970
- readonly components: readonly [{
1971
- readonly name: "signature";
1972
- readonly type: "bytes";
1973
- }, {
1974
- readonly name: "signer";
1975
- readonly type: "address";
1976
- }, {
1977
- readonly name: "expiration";
1978
- readonly type: "uint256";
1979
- }];
1980
- readonly name: "_sig";
1981
- readonly type: "tuple";
1982
- }];
1983
- readonly name: "convertWethToEth";
1984
- readonly outputs: readonly [{
1985
- readonly name: "";
1986
- readonly type: "uint256";
1987
- }];
1988
- readonly stateMutability: "nonpayable";
1989
- readonly type: "function";
1990
- }, {
1991
- readonly inputs: readonly [{
1992
- readonly name: "_userWallet";
1993
- readonly type: "address";
1994
- }, {
1995
- readonly components: readonly [{
1996
- readonly name: "usePrevAmountOut";
1997
- readonly type: "bool";
1998
- }, {
1999
- readonly name: "action";
2000
- readonly type: "uint256";
2001
- }, {
2002
- readonly name: "legoId";
2003
- readonly type: "uint256";
2004
- }, {
2005
- readonly name: "asset";
2006
- readonly type: "address";
2007
- }, {
2008
- readonly name: "vault";
2009
- readonly type: "address";
2010
- }, {
2011
- readonly name: "amount";
2012
- readonly type: "uint256";
2013
- }, {
2014
- readonly name: "altLegoId";
2015
- readonly type: "uint256";
2016
- }, {
2017
- readonly name: "altAsset";
2018
- readonly type: "address";
2019
- }, {
2020
- readonly name: "altVault";
2021
- readonly type: "address";
2022
- }, {
2023
- readonly name: "altAmount";
2024
- readonly type: "uint256";
2025
- }, {
2026
- readonly name: "minAmountOut";
2027
- readonly type: "uint256";
2028
- }, {
2029
- readonly name: "pool";
2030
- readonly type: "address";
2031
- }, {
2032
- readonly name: "proof";
2033
- readonly type: "bytes32";
2034
- }, {
2035
- readonly name: "nftAddr";
2036
- readonly type: "address";
2037
- }, {
2038
- readonly name: "nftTokenId";
2039
- readonly type: "uint256";
2040
- }, {
2041
- readonly name: "tickLower";
2042
- readonly type: "int24";
2043
- }, {
2044
- readonly name: "tickUpper";
2045
- readonly type: "int24";
2046
- }, {
2047
- readonly name: "minAmountA";
2048
- readonly type: "uint256";
2049
- }, {
2050
- readonly name: "minAmountB";
2051
- readonly type: "uint256";
2052
- }, {
2053
- readonly name: "minLpAmount";
2054
- readonly type: "uint256";
2055
- }, {
2056
- readonly name: "liqToRemove";
2057
- readonly type: "uint256";
2058
- }, {
2059
- readonly name: "recipient";
2060
- readonly type: "address";
2061
- }, {
2062
- readonly name: "isWethToEthConversion";
2063
- readonly type: "bool";
2064
- }];
2065
- readonly name: "_instructions";
2066
- readonly type: "tuple[]";
2067
- }];
2068
- readonly name: "performBatchActions";
2069
- readonly outputs: readonly [{
2070
- readonly name: "";
2071
- readonly type: "bool";
2072
- }];
2073
- readonly stateMutability: "nonpayable";
2074
- readonly type: "function";
2075
- }, {
2076
- readonly inputs: readonly [{
2077
- readonly name: "_userWallet";
2078
- readonly type: "address";
2079
- }, {
2080
- readonly components: readonly [{
2081
- readonly name: "usePrevAmountOut";
2082
- readonly type: "bool";
2083
- }, {
2084
- readonly name: "action";
2085
- readonly type: "uint256";
2086
- }, {
2087
- readonly name: "legoId";
2088
- readonly type: "uint256";
2089
- }, {
2090
- readonly name: "asset";
2091
- readonly type: "address";
2092
- }, {
2093
- readonly name: "vault";
2094
- readonly type: "address";
2095
- }, {
2096
- readonly name: "amount";
2097
- readonly type: "uint256";
2098
- }, {
2099
- readonly name: "altLegoId";
2100
- readonly type: "uint256";
2101
- }, {
2102
- readonly name: "altAsset";
2103
- readonly type: "address";
2104
- }, {
2105
- readonly name: "altVault";
2106
- readonly type: "address";
2107
- }, {
2108
- readonly name: "altAmount";
2109
- readonly type: "uint256";
2110
- }, {
2111
- readonly name: "minAmountOut";
2112
- readonly type: "uint256";
2113
- }, {
2114
- readonly name: "pool";
2115
- readonly type: "address";
2116
- }, {
2117
- readonly name: "proof";
2118
- readonly type: "bytes32";
2119
- }, {
2120
- readonly name: "nftAddr";
2121
- readonly type: "address";
2122
- }, {
2123
- readonly name: "nftTokenId";
2124
- readonly type: "uint256";
2125
- }, {
2126
- readonly name: "tickLower";
2127
- readonly type: "int24";
2128
- }, {
2129
- readonly name: "tickUpper";
2130
- readonly type: "int24";
2131
- }, {
2132
- readonly name: "minAmountA";
2133
- readonly type: "uint256";
2134
- }, {
2135
- readonly name: "minAmountB";
2136
- readonly type: "uint256";
2137
- }, {
2138
- readonly name: "minLpAmount";
2139
- readonly type: "uint256";
2140
- }, {
2141
- readonly name: "liqToRemove";
2142
- readonly type: "uint256";
2143
- }, {
2144
- readonly name: "recipient";
2145
- readonly type: "address";
2146
- }, {
2147
- readonly name: "isWethToEthConversion";
2148
- readonly type: "bool";
2149
- }];
2150
- readonly name: "_instructions";
2151
- readonly type: "tuple[]";
2152
- }, {
2153
- readonly components: readonly [{
2154
- readonly name: "signature";
2155
- readonly type: "bytes";
2156
- }, {
2157
- readonly name: "signer";
2158
- readonly type: "address";
2159
- }, {
2160
- readonly name: "expiration";
2161
- readonly type: "uint256";
2162
- }];
2163
- readonly name: "_sig";
2164
- readonly type: "tuple";
2165
- }];
2166
- readonly name: "performBatchActions";
2167
- readonly outputs: readonly [{
2168
- readonly name: "";
2169
- readonly type: "bool";
2170
- }];
2171
- readonly stateMutability: "nonpayable";
2172
- readonly type: "function";
2173
- }, {
2174
- readonly inputs: readonly [{
2175
- readonly name: "_userWallet";
2176
- readonly type: "address";
2177
- }, {
2178
- readonly components: readonly [{
2179
- readonly name: "usePrevAmountOut";
2180
- readonly type: "bool";
2181
- }, {
2182
- readonly name: "action";
2183
- readonly type: "uint256";
2184
- }, {
2185
- readonly name: "legoId";
2186
- readonly type: "uint256";
2187
- }, {
2188
- readonly name: "asset";
2189
- readonly type: "address";
2190
- }, {
2191
- readonly name: "vault";
2192
- readonly type: "address";
2193
- }, {
2194
- readonly name: "amount";
2195
- readonly type: "uint256";
2196
- }, {
2197
- readonly name: "altLegoId";
2198
- readonly type: "uint256";
2199
- }, {
2200
- readonly name: "altAsset";
2201
- readonly type: "address";
2202
- }, {
2203
- readonly name: "altVault";
2204
- readonly type: "address";
2205
- }, {
2206
- readonly name: "altAmount";
2207
- readonly type: "uint256";
2208
- }, {
2209
- readonly name: "minAmountOut";
2210
- readonly type: "uint256";
2211
- }, {
2212
- readonly name: "pool";
2213
- readonly type: "address";
2214
- }, {
2215
- readonly name: "proof";
2216
- readonly type: "bytes32";
2217
- }, {
2218
- readonly name: "nftAddr";
2219
- readonly type: "address";
2220
- }, {
2221
- readonly name: "nftTokenId";
2222
- readonly type: "uint256";
2223
- }, {
2224
- readonly name: "tickLower";
2225
- readonly type: "int24";
2226
- }, {
2227
- readonly name: "tickUpper";
2228
- readonly type: "int24";
2229
- }, {
2230
- readonly name: "minAmountA";
2231
- readonly type: "uint256";
2232
- }, {
2233
- readonly name: "minAmountB";
2234
- readonly type: "uint256";
2235
- }, {
2236
- readonly name: "minLpAmount";
2237
- readonly type: "uint256";
2238
- }, {
2239
- readonly name: "liqToRemove";
2240
- readonly type: "uint256";
2241
- }, {
2242
- readonly name: "recipient";
2243
- readonly type: "address";
2244
- }, {
2245
- readonly name: "isWethToEthConversion";
2246
- readonly type: "bool";
2247
- }];
2248
- readonly name: "_instructions";
2249
- readonly type: "tuple[]";
2250
- }, {
2251
- readonly name: "_expiration";
2252
- readonly type: "uint256";
2253
- }];
2254
- readonly name: "getBatchActionHash";
2255
- readonly outputs: readonly [{
2256
- readonly name: "";
2257
- readonly type: "bytes32";
2258
- }];
2259
- readonly stateMutability: "view";
2260
- readonly type: "function";
2261
- }, {
2262
- readonly inputs: readonly [];
2263
- readonly name: "DOMAIN_SEPARATOR";
2264
- readonly outputs: readonly [{
2265
- readonly name: "";
2266
- readonly type: "bytes32";
2267
- }];
2268
- readonly stateMutability: "view";
2269
- readonly type: "function";
2270
- }, {
2271
- readonly inputs: readonly [{
2272
- readonly name: "_newOwner";
2273
- readonly type: "address";
2274
- }];
2275
- readonly name: "changeOwnership";
2276
- readonly outputs: readonly [];
2277
- readonly stateMutability: "nonpayable";
2278
- readonly type: "function";
2279
- }, {
2280
- readonly inputs: readonly [];
2281
- readonly name: "confirmOwnershipChange";
2282
- readonly outputs: readonly [];
2283
- readonly stateMutability: "nonpayable";
2284
- readonly type: "function";
2285
- }, {
2286
- readonly inputs: readonly [];
2287
- readonly name: "cancelOwnershipChange";
2288
- readonly outputs: readonly [];
2289
- readonly stateMutability: "nonpayable";
2290
- readonly type: "function";
2291
- }, {
2292
- readonly inputs: readonly [{
2293
- readonly name: "_numBlocks";
2294
- readonly type: "uint256";
2295
- }];
2296
- readonly name: "setOwnershipChangeDelay";
2297
- readonly outputs: readonly [];
2298
- readonly stateMutability: "nonpayable";
2299
- readonly type: "function";
2300
- }, {
2301
- readonly inputs: readonly [{
2302
- readonly name: "_asset";
2303
- readonly type: "address";
2304
- }];
2305
- readonly name: "recoverFunds";
2306
- readonly outputs: readonly [{
2307
- readonly name: "";
2308
- readonly type: "bool";
2309
- }];
2310
- readonly stateMutability: "nonpayable";
2311
- readonly type: "function";
2312
- }, {
2313
- readonly inputs: readonly [];
2314
- readonly name: "initialized";
2315
- readonly outputs: readonly [{
2316
- readonly name: "";
2317
- readonly type: "bool";
2318
- }];
2319
- readonly stateMutability: "view";
2320
- readonly type: "function";
2321
- }, {
2322
- readonly inputs: readonly [{
2323
- readonly name: "arg0";
2324
- readonly type: "bytes";
2325
- }];
2326
- readonly name: "usedSignatures";
2327
- readonly outputs: readonly [{
2328
- readonly name: "";
2329
- readonly type: "bool";
2330
- }];
2331
- readonly stateMutability: "view";
2332
- readonly type: "function";
2333
- }, {
2334
- readonly inputs: readonly [];
2335
- readonly name: "owner";
2336
- readonly outputs: readonly [{
2337
- readonly name: "";
2338
- readonly type: "address";
2339
- }];
2340
- readonly stateMutability: "view";
2341
- readonly type: "function";
2342
- }, {
2343
- readonly inputs: readonly [];
2344
- readonly name: "pendingOwner";
2345
- readonly outputs: readonly [{
2346
- readonly components: readonly [{
2347
- readonly name: "newOwner";
2348
- readonly type: "address";
2349
- }, {
2350
- readonly name: "initiatedBlock";
2351
- readonly type: "uint256";
2352
- }, {
2353
- readonly name: "confirmBlock";
2354
- readonly type: "uint256";
2355
- }];
2356
- readonly name: "";
2357
- readonly type: "tuple";
2358
- }];
2359
- readonly stateMutability: "view";
2360
- readonly type: "function";
2361
- }, {
2362
- readonly inputs: readonly [];
2363
- readonly name: "ownershipChangeDelay";
2364
- readonly outputs: readonly [{
2365
- readonly name: "";
2366
- readonly type: "uint256";
2367
- }];
2368
- readonly stateMutability: "view";
2369
- readonly type: "function";
2370
- }, {
2371
- readonly inputs: readonly [];
2372
- readonly name: "MIN_OWNER_CHANGE_DELAY";
2373
- readonly outputs: readonly [{
2374
- readonly name: "";
2375
- readonly type: "uint256";
2376
- }];
2377
- readonly stateMutability: "view";
2378
- readonly type: "function";
2379
- }, {
2380
- readonly inputs: readonly [];
2381
- readonly name: "MAX_OWNER_CHANGE_DELAY";
2382
- readonly outputs: readonly [{
2383
- readonly name: "";
2384
- readonly type: "uint256";
2385
- }];
2386
- readonly stateMutability: "view";
2387
- readonly type: "function";
2388
- }, {
2389
- readonly inputs: readonly [{
2390
- readonly name: "_minOwnerChangeDelay";
2391
- readonly type: "uint256";
2392
- }, {
2393
- readonly name: "_maxOwnerChangeDelay";
2394
- readonly type: "uint256";
2395
- }];
2396
- readonly outputs: readonly [];
2397
- readonly stateMutability: "nonpayable";
2398
- readonly type: "constructor";
2399
- }];
2400
- export declare const deployAddress: Address | undefined;
2401
- export type Contract = {
2402
- calls: {
2403
- apiVersion: () => Promise<string>;
2404
- getSwapActionHash: (userWallet: `0x${string}`, swapInstructions: {
2405
- legoId: bigint;
2406
- amountIn: bigint;
2407
- minAmountOut: bigint;
2408
- tokenPath: `0x${string}`[];
2409
- poolPath: `0x${string}`[];
2410
- }[], expiration: bigint) => Promise<`0x${string}`>;
2411
- getBatchActionHash: (userWallet: `0x${string}`, instructions: {
2412
- usePrevAmountOut: boolean;
2413
- action: bigint;
2414
- legoId: bigint;
2415
- asset: `0x${string}`;
2416
- vault: `0x${string}`;
2417
- amount: bigint;
2418
- altLegoId: bigint;
2419
- altAsset: `0x${string}`;
2420
- altVault: `0x${string}`;
2421
- altAmount: bigint;
2422
- minAmountOut: bigint;
2423
- pool: `0x${string}`;
2424
- proof: `0x${string}`;
2425
- nftAddr: `0x${string}`;
2426
- nftTokenId: bigint;
2427
- tickLower: unknown;
2428
- tickUpper: unknown;
2429
- minAmountA: bigint;
2430
- minAmountB: bigint;
2431
- minLpAmount: bigint;
2432
- liqToRemove: bigint;
2433
- recipient: `0x${string}`;
2434
- isWethToEthConversion: boolean;
2435
- }[], expiration: bigint) => Promise<`0x${string}`>;
2436
- DOMAIN_SEPARATOR: () => Promise<`0x${string}`>;
2437
- initialized: () => Promise<boolean>;
2438
- usedSignatures: (arg0: `0x${string}`) => Promise<boolean>;
2439
- owner: () => Promise<`0x${string}`>;
2440
- pendingOwner: () => Promise<{
2441
- newOwner: `0x${string}`;
2442
- initiatedBlock: bigint;
2443
- confirmBlock: bigint;
2444
- }>;
2445
- ownershipChangeDelay: () => Promise<bigint>;
2446
- MIN_OWNER_CHANGE_DELAY: () => Promise<bigint>;
2447
- MAX_OWNER_CHANGE_DELAY: () => Promise<bigint>;
2448
- };
2449
- mutations: {
2450
- initialize: (owner: `0x${string}`) => Promise<boolean>;
2451
- depositTokens: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, vault: `0x${string}`, amount?: bigint, sig?: {
2452
- signature: `0x${string}`;
2453
- signer: `0x${string}`;
2454
- expiration: bigint;
2455
- }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2456
- withdrawTokens: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, vaultToken: `0x${string}`, vaultTokenAmount?: bigint, sig?: {
2457
- signature: `0x${string}`;
2458
- signer: `0x${string}`;
2459
- expiration: bigint;
2460
- }) => Promise<[bigint, bigint, bigint]>;
2461
- rebalance: (userWallet: `0x${string}`, fromLegoId: bigint, fromAsset: `0x${string}`, fromVaultToken: `0x${string}`, toLegoId: bigint, toVault: `0x${string}`, fromVaultTokenAmount?: bigint, sig?: {
2462
- signature: `0x${string}`;
2463
- signer: `0x${string}`;
2464
- expiration: bigint;
2465
- }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2466
- swapTokens: (userWallet: `0x${string}`, swapInstructions: {
2467
- legoId: bigint;
2468
- amountIn: bigint;
2469
- minAmountOut: bigint;
2470
- tokenPath: `0x${string}`[];
2471
- poolPath: `0x${string}`[];
2472
- }[], sig?: {
2473
- signature: `0x${string}`;
2474
- signer: `0x${string}`;
2475
- expiration: bigint;
2476
- }) => Promise<[bigint, bigint, bigint]>;
2477
- borrow: (userWallet: `0x${string}`, legoId: bigint, borrowAsset?: `0x${string}`, amount?: bigint, sig?: {
2478
- signature: `0x${string}`;
2479
- signer: `0x${string}`;
2480
- expiration: bigint;
2481
- }) => Promise<[`0x${string}`, bigint, bigint]>;
2482
- repayDebt: (userWallet: `0x${string}`, legoId: bigint, paymentAsset: `0x${string}`, paymentAmount?: bigint, sig?: {
2483
- signature: `0x${string}`;
2484
- signer: `0x${string}`;
2485
- expiration: bigint;
2486
- }) => Promise<[`0x${string}`, bigint, bigint, bigint]>;
2487
- claimRewards: (userWallet: `0x${string}`, legoId: bigint, market?: `0x${string}`, rewardToken?: `0x${string}`, rewardAmount?: bigint, proof?: `0x${string}`, sig?: {
2488
- signature: `0x${string}`;
2489
- signer: `0x${string}`;
2490
- expiration: bigint;
2491
- }) => Promise<void>;
2492
- addLiquidity: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, tickLower?: unknown, tickUpper?: unknown, minAmountA?: bigint, minAmountB?: bigint, minLpAmount?: bigint, sig?: {
2493
- signature: `0x${string}`;
2494
- signer: `0x${string}`;
2495
- expiration: bigint;
2496
- }) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
2497
- removeLiquidity: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove?: bigint, minAmountA?: bigint, minAmountB?: bigint, sig?: {
2498
- signature: `0x${string}`;
2499
- signer: `0x${string}`;
2500
- expiration: bigint;
2501
- }) => Promise<[bigint, bigint, bigint, boolean]>;
2502
- transferFunds: (userWallet: `0x${string}`, recipient: `0x${string}`, amount?: bigint, asset?: `0x${string}`, sig?: {
2503
- signature: `0x${string}`;
2504
- signer: `0x${string}`;
2505
- expiration: bigint;
2506
- }) => Promise<[bigint, bigint]>;
2507
- convertEthToWeth: (userWallet: `0x${string}`, amount?: bigint, depositLegoId?: bigint, depositVault?: `0x${string}`, sig?: {
2508
- signature: `0x${string}`;
2509
- signer: `0x${string}`;
2510
- expiration: bigint;
2511
- }) => Promise<[bigint, `0x${string}`, bigint]>;
2512
- convertWethToEth: (userWallet: `0x${string}`, amount?: bigint, recipient?: `0x${string}`, withdrawLegoId?: bigint, withdrawVaultToken?: `0x${string}`, sig?: {
2513
- signature: `0x${string}`;
2514
- signer: `0x${string}`;
2515
- expiration: bigint;
2516
- }) => Promise<bigint>;
2517
- performBatchActions: (userWallet: `0x${string}`, instructions: {
2518
- usePrevAmountOut: boolean;
2519
- action: bigint;
2520
- legoId: bigint;
2521
- asset: `0x${string}`;
2522
- vault: `0x${string}`;
2523
- amount: bigint;
2524
- altLegoId: bigint;
2525
- altAsset: `0x${string}`;
2526
- altVault: `0x${string}`;
2527
- altAmount: bigint;
2528
- minAmountOut: bigint;
2529
- pool: `0x${string}`;
2530
- proof: `0x${string}`;
2531
- nftAddr: `0x${string}`;
2532
- nftTokenId: bigint;
2533
- tickLower: unknown;
2534
- tickUpper: unknown;
2535
- minAmountA: bigint;
2536
- minAmountB: bigint;
2537
- minLpAmount: bigint;
2538
- liqToRemove: bigint;
2539
- recipient: `0x${string}`;
2540
- isWethToEthConversion: boolean;
2541
- }[], sig?: {
2542
- signature: `0x${string}`;
2543
- signer: `0x${string}`;
2544
- expiration: bigint;
2545
- }) => Promise<boolean>;
2546
- changeOwnership: (newOwner: `0x${string}`) => Promise<void>;
2547
- confirmOwnershipChange: () => Promise<void>;
2548
- cancelOwnershipChange: () => Promise<void>;
2549
- setOwnershipChangeDelay: (numBlocks: bigint) => Promise<void>;
2550
- recoverFunds: (asset: `0x${string}`) => Promise<boolean>;
2551
- };
2552
- events: {
2553
- AgentOwnershipChangeInitiated: (prevOwner: `0x${string}`, newOwner: `0x${string}`, confirmBlock: bigint) => Promise<void>;
2554
- AgentOwnershipChangeConfirmed: (prevOwner: `0x${string}`, newOwner: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
2555
- AgentOwnershipChangeCancelled: (cancelledOwner: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
2556
- AgentOwnershipChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
2557
- AgentFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2558
- };
2559
- };
2560
- export type Calls = keyof Contract['calls'];
2561
- export type Request<M extends Calls> = {
2562
- contractName: 'AgentTemplate';
2563
- method: M;
2564
- args: ExtractArgs<Contract['calls'][M]>;
2565
- address: Address | undefined;
2566
- deployAddress: Address | undefined;
2567
- defaultValue: Awaited<ReturnType<Contract['calls'][M]>> | undefined;
2568
- getAbi: () => typeof abi;
2569
- with: (options: {
2570
- contractAddress?: Address;
2571
- defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
2572
- }) => Request<M>;
2573
- defaultTo: (defaultValue: Awaited<ReturnType<Contract['calls'][M]>>) => Request<M>;
2574
- at: (address: Address) => Request<M>;
2575
- };
2576
- export type CallReturn<M extends Calls> = NonNullable<Request<M>['defaultValue']>;
2577
- declare function getRequest<M extends Calls>(method: M, args: ExtractArgs<Contract['calls'][M]>, contractAddressOrOptions?: Address | {
2578
- contractAddress?: Address;
2579
- defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
2580
- }): Request<M>;
2581
- type CallType = {
2582
- [K in Calls]: (...args: ExtractArgs<Contract['calls'][K]>) => ReturnType<typeof getRequest<K>>;
2583
- };
2584
- export declare const call: CallType;
2585
- export type Mutations = keyof Contract['mutations'];
2586
- export declare const mutation: {
2587
- [K in Mutations]: {
2588
- contractName: 'AgentTemplate';
2589
- deployAddress: Address | undefined;
2590
- getAbi: () => typeof abi;
2591
- functionName: K;
2592
- argsType: ExtractArgs<Contract['mutations'][K]> | undefined;
2593
- };
2594
- };
2595
- export type SDK = {
2596
- apiVersion: (...args: ExtractArgs<Contract['calls']['apiVersion']>) => Promise<CallReturn<'apiVersion'>>;
2597
- getSwapActionHash: (...args: ExtractArgs<Contract['calls']['getSwapActionHash']>) => Promise<CallReturn<'getSwapActionHash'>>;
2598
- getBatchActionHash: (...args: ExtractArgs<Contract['calls']['getBatchActionHash']>) => Promise<CallReturn<'getBatchActionHash'>>;
2599
- DOMAIN_SEPARATOR: (...args: ExtractArgs<Contract['calls']['DOMAIN_SEPARATOR']>) => Promise<CallReturn<'DOMAIN_SEPARATOR'>>;
2600
- initialized: (...args: ExtractArgs<Contract['calls']['initialized']>) => Promise<CallReturn<'initialized'>>;
2601
- usedSignatures: (...args: ExtractArgs<Contract['calls']['usedSignatures']>) => Promise<CallReturn<'usedSignatures'>>;
2602
- owner: (...args: ExtractArgs<Contract['calls']['owner']>) => Promise<CallReturn<'owner'>>;
2603
- pendingOwner: (...args: ExtractArgs<Contract['calls']['pendingOwner']>) => Promise<CallReturn<'pendingOwner'>>;
2604
- ownershipChangeDelay: (...args: ExtractArgs<Contract['calls']['ownershipChangeDelay']>) => Promise<CallReturn<'ownershipChangeDelay'>>;
2605
- MIN_OWNER_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_OWNER_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_OWNER_CHANGE_DELAY'>>;
2606
- MAX_OWNER_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_OWNER_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_OWNER_CHANGE_DELAY'>>;
2607
- initialize: (...args: ExtractArgs<Contract['mutations']['initialize']>) => Promise<Address>;
2608
- depositTokens: (...args: ExtractArgs<Contract['mutations']['depositTokens']>) => Promise<Address>;
2609
- withdrawTokens: (...args: ExtractArgs<Contract['mutations']['withdrawTokens']>) => Promise<Address>;
2610
- rebalance: (...args: ExtractArgs<Contract['mutations']['rebalance']>) => Promise<Address>;
2611
- swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2612
- borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2613
- repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2614
- claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2615
- addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
2616
- removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
2617
- transferFunds: (...args: ExtractArgs<Contract['mutations']['transferFunds']>) => Promise<Address>;
2618
- convertEthToWeth: (...args: ExtractArgs<Contract['mutations']['convertEthToWeth']>) => Promise<Address>;
2619
- convertWethToEth: (...args: ExtractArgs<Contract['mutations']['convertWethToEth']>) => Promise<Address>;
2620
- performBatchActions: (...args: ExtractArgs<Contract['mutations']['performBatchActions']>) => Promise<Address>;
2621
- changeOwnership: (...args: ExtractArgs<Contract['mutations']['changeOwnership']>) => Promise<Address>;
2622
- confirmOwnershipChange: (...args: ExtractArgs<Contract['mutations']['confirmOwnershipChange']>) => Promise<Address>;
2623
- cancelOwnershipChange: (...args: ExtractArgs<Contract['mutations']['cancelOwnershipChange']>) => Promise<Address>;
2624
- setOwnershipChangeDelay: (...args: ExtractArgs<Contract['mutations']['setOwnershipChangeDelay']>) => Promise<Address>;
2625
- recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2626
- };
2627
- export declare function toSdk(address: Address, publicClient?: PublicClient, walletClient?: WalletClient): SDK;
2628
- export {};
2629
- //# sourceMappingURL=AgentTemplate.d.ts.map