@underscore-finance/sdk 0.3.5 → 1.0.2

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