@underscore-finance/sdk 0.3.4 → 1.0.1

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