@underscore-finance/sdk 0.3.5 → 1.0.2

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