@underscore-finance/sdk 0.3.4 → 1.0.1

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