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