@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,1383 @@
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: 'asset',
18
+ type: 'address',
19
+ },
20
+ {
21
+ indexed: true,
22
+ name: 'vaultToken',
23
+ type: 'address',
24
+ },
25
+ {
26
+ indexed: false,
27
+ name: 'assetAmountDeposited',
28
+ type: 'uint256',
29
+ },
30
+ {
31
+ indexed: false,
32
+ name: 'usdValue',
33
+ type: 'uint256',
34
+ },
35
+ {
36
+ indexed: false,
37
+ name: 'vaultTokenAmountReceived',
38
+ type: 'uint256',
39
+ },
40
+ {
41
+ indexed: false,
42
+ name: 'recipient',
43
+ type: 'address',
44
+ },
45
+ ],
46
+ name: 'EulerDeposit',
47
+ type: 'event',
48
+ },
49
+ {
50
+ anonymous: false,
51
+ inputs: [
52
+ {
53
+ indexed: true,
54
+ name: 'sender',
55
+ type: 'address',
56
+ },
57
+ {
58
+ indexed: true,
59
+ name: 'asset',
60
+ type: 'address',
61
+ },
62
+ {
63
+ indexed: true,
64
+ name: 'vaultToken',
65
+ type: 'address',
66
+ },
67
+ {
68
+ indexed: false,
69
+ name: 'assetAmountReceived',
70
+ type: 'uint256',
71
+ },
72
+ {
73
+ indexed: false,
74
+ name: 'usdValue',
75
+ type: 'uint256',
76
+ },
77
+ {
78
+ indexed: false,
79
+ name: 'vaultTokenAmountBurned',
80
+ type: 'uint256',
81
+ },
82
+ {
83
+ indexed: false,
84
+ name: 'recipient',
85
+ type: 'address',
86
+ },
87
+ ],
88
+ name: 'EulerWithdrawal',
89
+ type: 'event',
90
+ },
91
+ {
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ indexed: true,
96
+ name: 'asset',
97
+ type: 'address',
98
+ },
99
+ {
100
+ indexed: true,
101
+ name: 'recipient',
102
+ type: 'address',
103
+ },
104
+ {
105
+ indexed: false,
106
+ name: 'amount',
107
+ type: 'uint256',
108
+ },
109
+ ],
110
+ name: 'EulerFundsRecovered',
111
+ type: 'event',
112
+ },
113
+ {
114
+ anonymous: false,
115
+ inputs: [
116
+ {
117
+ indexed: false,
118
+ name: 'addr',
119
+ type: 'address',
120
+ },
121
+ ],
122
+ name: 'EulerRewardsAddrSet',
123
+ type: 'event',
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: false,
130
+ name: 'legoId',
131
+ type: 'uint256',
132
+ },
133
+ ],
134
+ name: 'EulerLegoIdSet',
135
+ type: 'event',
136
+ },
137
+ {
138
+ anonymous: false,
139
+ inputs: [
140
+ {
141
+ indexed: false,
142
+ name: 'isActivated',
143
+ type: 'bool',
144
+ },
145
+ ],
146
+ name: 'EulerActivated',
147
+ type: 'event',
148
+ },
149
+ {
150
+ anonymous: false,
151
+ inputs: [
152
+ {
153
+ indexed: true,
154
+ name: 'prevGov',
155
+ type: 'address',
156
+ },
157
+ {
158
+ indexed: true,
159
+ name: 'newGov',
160
+ type: 'address',
161
+ },
162
+ {
163
+ indexed: false,
164
+ name: 'confirmBlock',
165
+ type: 'uint256',
166
+ },
167
+ ],
168
+ name: 'GovChangeInitiated',
169
+ type: 'event',
170
+ },
171
+ {
172
+ anonymous: false,
173
+ inputs: [
174
+ {
175
+ indexed: true,
176
+ name: 'prevGov',
177
+ type: 'address',
178
+ },
179
+ {
180
+ indexed: true,
181
+ name: 'newGov',
182
+ type: 'address',
183
+ },
184
+ {
185
+ indexed: false,
186
+ name: 'initiatedBlock',
187
+ type: 'uint256',
188
+ },
189
+ {
190
+ indexed: false,
191
+ name: 'confirmBlock',
192
+ type: 'uint256',
193
+ },
194
+ ],
195
+ name: 'GovChangeConfirmed',
196
+ type: 'event',
197
+ },
198
+ {
199
+ anonymous: false,
200
+ inputs: [
201
+ {
202
+ indexed: true,
203
+ name: 'cancelledGov',
204
+ type: 'address',
205
+ },
206
+ {
207
+ indexed: false,
208
+ name: 'initiatedBlock',
209
+ type: 'uint256',
210
+ },
211
+ {
212
+ indexed: false,
213
+ name: 'confirmBlock',
214
+ type: 'uint256',
215
+ },
216
+ ],
217
+ name: 'GovChangeCancelled',
218
+ type: 'event',
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
223
+ {
224
+ indexed: false,
225
+ name: 'delayBlocks',
226
+ type: 'uint256',
227
+ },
228
+ ],
229
+ name: 'GovChangeDelaySet',
230
+ type: 'event',
231
+ },
232
+ {
233
+ anonymous: false,
234
+ inputs: [
235
+ {
236
+ indexed: true,
237
+ name: 'asset',
238
+ type: 'address',
239
+ },
240
+ {
241
+ indexed: true,
242
+ name: 'vaultToken',
243
+ type: 'address',
244
+ },
245
+ ],
246
+ name: 'AssetOpportunityAdded',
247
+ type: 'event',
248
+ },
249
+ {
250
+ anonymous: false,
251
+ inputs: [
252
+ {
253
+ indexed: true,
254
+ name: 'asset',
255
+ type: 'address',
256
+ },
257
+ {
258
+ indexed: true,
259
+ name: 'vaultToken',
260
+ type: 'address',
261
+ },
262
+ ],
263
+ name: 'AssetOpportunityRemoved',
264
+ type: 'event',
265
+ },
266
+ {
267
+ inputs: [
268
+ {
269
+ name: '_asset',
270
+ type: 'address',
271
+ },
272
+ ],
273
+ name: 'getAssetOpportunities',
274
+ outputs: [
275
+ {
276
+ name: '',
277
+ type: 'address[]',
278
+ },
279
+ ],
280
+ stateMutability: 'view',
281
+ type: 'function',
282
+ },
283
+ {
284
+ inputs: [],
285
+ name: 'getAssets',
286
+ outputs: [
287
+ {
288
+ name: '',
289
+ type: 'address[]',
290
+ },
291
+ ],
292
+ stateMutability: 'view',
293
+ type: 'function',
294
+ },
295
+ {
296
+ inputs: [
297
+ {
298
+ name: 'arg0',
299
+ type: 'address',
300
+ },
301
+ {
302
+ name: 'arg1',
303
+ type: 'uint256',
304
+ },
305
+ ],
306
+ name: 'assetOpportunities',
307
+ outputs: [
308
+ {
309
+ name: '',
310
+ type: 'address',
311
+ },
312
+ ],
313
+ stateMutability: 'view',
314
+ type: 'function',
315
+ },
316
+ {
317
+ inputs: [
318
+ {
319
+ name: 'arg0',
320
+ type: 'address',
321
+ },
322
+ {
323
+ name: 'arg1',
324
+ type: 'address',
325
+ },
326
+ ],
327
+ name: 'indexOfAssetOpportunity',
328
+ outputs: [
329
+ {
330
+ name: '',
331
+ type: 'uint256',
332
+ },
333
+ ],
334
+ stateMutability: 'view',
335
+ type: 'function',
336
+ },
337
+ {
338
+ inputs: [
339
+ {
340
+ name: 'arg0',
341
+ type: 'address',
342
+ },
343
+ ],
344
+ name: 'numAssetOpportunities',
345
+ outputs: [
346
+ {
347
+ name: '',
348
+ type: 'uint256',
349
+ },
350
+ ],
351
+ stateMutability: 'view',
352
+ type: 'function',
353
+ },
354
+ {
355
+ inputs: [
356
+ {
357
+ name: 'arg0',
358
+ type: 'address',
359
+ },
360
+ ],
361
+ name: 'vaultToAsset',
362
+ outputs: [
363
+ {
364
+ name: '',
365
+ type: 'address',
366
+ },
367
+ ],
368
+ stateMutability: 'view',
369
+ type: 'function',
370
+ },
371
+ {
372
+ inputs: [
373
+ {
374
+ name: 'arg0',
375
+ type: 'uint256',
376
+ },
377
+ ],
378
+ name: 'assets',
379
+ outputs: [
380
+ {
381
+ name: '',
382
+ type: 'address',
383
+ },
384
+ ],
385
+ stateMutability: 'view',
386
+ type: 'function',
387
+ },
388
+ {
389
+ inputs: [
390
+ {
391
+ name: 'arg0',
392
+ type: 'address',
393
+ },
394
+ ],
395
+ name: 'indexOfAsset',
396
+ outputs: [
397
+ {
398
+ name: '',
399
+ type: 'uint256',
400
+ },
401
+ ],
402
+ stateMutability: 'view',
403
+ type: 'function',
404
+ },
405
+ {
406
+ inputs: [],
407
+ name: 'numAssets',
408
+ outputs: [
409
+ {
410
+ name: '',
411
+ type: 'uint256',
412
+ },
413
+ ],
414
+ stateMutability: 'view',
415
+ type: 'function',
416
+ },
417
+ {
418
+ inputs: [
419
+ {
420
+ name: '_address',
421
+ type: 'address',
422
+ },
423
+ ],
424
+ name: 'canGovern',
425
+ outputs: [
426
+ {
427
+ name: '',
428
+ type: 'bool',
429
+ },
430
+ ],
431
+ stateMutability: 'view',
432
+ type: 'function',
433
+ },
434
+ {
435
+ inputs: [],
436
+ name: 'hasPendingGovChange',
437
+ outputs: [
438
+ {
439
+ name: '',
440
+ type: 'bool',
441
+ },
442
+ ],
443
+ stateMutability: 'view',
444
+ type: 'function',
445
+ },
446
+ {
447
+ inputs: [
448
+ {
449
+ name: '_newGov',
450
+ type: 'address',
451
+ },
452
+ ],
453
+ name: 'changeGovernance',
454
+ outputs: [],
455
+ stateMutability: 'nonpayable',
456
+ type: 'function',
457
+ },
458
+ {
459
+ inputs: [],
460
+ name: 'confirmGovernanceChange',
461
+ outputs: [],
462
+ stateMutability: 'nonpayable',
463
+ type: 'function',
464
+ },
465
+ {
466
+ inputs: [],
467
+ name: 'cancelGovernanceChange',
468
+ outputs: [],
469
+ stateMutability: 'nonpayable',
470
+ type: 'function',
471
+ },
472
+ {
473
+ inputs: [
474
+ {
475
+ name: '_numBlocks',
476
+ type: 'uint256',
477
+ },
478
+ ],
479
+ name: 'setGovernanceChangeDelay',
480
+ outputs: [],
481
+ stateMutability: 'nonpayable',
482
+ type: 'function',
483
+ },
484
+ {
485
+ inputs: [],
486
+ name: 'governance',
487
+ outputs: [
488
+ {
489
+ name: '',
490
+ type: 'address',
491
+ },
492
+ ],
493
+ stateMutability: 'view',
494
+ type: 'function',
495
+ },
496
+ {
497
+ inputs: [],
498
+ name: 'pendingGov',
499
+ outputs: [
500
+ {
501
+ components: [
502
+ {
503
+ name: 'newGov',
504
+ type: 'address',
505
+ },
506
+ {
507
+ name: 'initiatedBlock',
508
+ type: 'uint256',
509
+ },
510
+ {
511
+ name: 'confirmBlock',
512
+ type: 'uint256',
513
+ },
514
+ ],
515
+ name: '',
516
+ type: 'tuple',
517
+ },
518
+ ],
519
+ stateMutability: 'view',
520
+ type: 'function',
521
+ },
522
+ {
523
+ inputs: [],
524
+ name: 'govChangeDelay',
525
+ outputs: [
526
+ {
527
+ name: '',
528
+ type: 'uint256',
529
+ },
530
+ ],
531
+ stateMutability: 'view',
532
+ type: 'function',
533
+ },
534
+ {
535
+ inputs: [],
536
+ name: 'MIN_GOV_CHANGE_DELAY',
537
+ outputs: [
538
+ {
539
+ name: '',
540
+ type: 'uint256',
541
+ },
542
+ ],
543
+ stateMutability: 'view',
544
+ type: 'function',
545
+ },
546
+ {
547
+ inputs: [],
548
+ name: 'MAX_GOV_CHANGE_DELAY',
549
+ outputs: [
550
+ {
551
+ name: '',
552
+ type: 'uint256',
553
+ },
554
+ ],
555
+ stateMutability: 'view',
556
+ type: 'function',
557
+ },
558
+ {
559
+ inputs: [],
560
+ name: 'getRegistries',
561
+ outputs: [
562
+ {
563
+ name: '',
564
+ type: 'address[]',
565
+ },
566
+ ],
567
+ stateMutability: 'view',
568
+ type: 'function',
569
+ },
570
+ {
571
+ inputs: [
572
+ {
573
+ name: '_user',
574
+ type: 'address',
575
+ },
576
+ ],
577
+ name: 'getAccessForLego',
578
+ outputs: [
579
+ {
580
+ name: '',
581
+ type: 'address',
582
+ },
583
+ {
584
+ name: '',
585
+ type: 'string',
586
+ },
587
+ {
588
+ name: '',
589
+ type: 'uint256',
590
+ },
591
+ ],
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ },
595
+ {
596
+ inputs: [
597
+ {
598
+ name: '_vaultToken',
599
+ type: 'address',
600
+ },
601
+ ],
602
+ name: 'isVaultToken',
603
+ outputs: [
604
+ {
605
+ name: '',
606
+ type: 'bool',
607
+ },
608
+ ],
609
+ stateMutability: 'view',
610
+ type: 'function',
611
+ },
612
+ {
613
+ inputs: [
614
+ {
615
+ name: '_vaultToken',
616
+ type: 'address',
617
+ },
618
+ ],
619
+ name: 'getUnderlyingAsset',
620
+ outputs: [
621
+ {
622
+ name: '',
623
+ type: 'address',
624
+ },
625
+ ],
626
+ stateMutability: 'view',
627
+ type: 'function',
628
+ },
629
+ {
630
+ inputs: [
631
+ {
632
+ name: '_vaultToken',
633
+ type: 'address',
634
+ },
635
+ {
636
+ name: '_vaultTokenAmount',
637
+ type: 'uint256',
638
+ },
639
+ ],
640
+ name: 'getUnderlyingAmount',
641
+ outputs: [
642
+ {
643
+ name: '',
644
+ type: 'uint256',
645
+ },
646
+ ],
647
+ stateMutability: 'view',
648
+ type: 'function',
649
+ },
650
+ {
651
+ inputs: [
652
+ {
653
+ name: '_asset',
654
+ type: 'address',
655
+ },
656
+ {
657
+ name: '_assetAmount',
658
+ type: 'uint256',
659
+ },
660
+ {
661
+ name: '_vaultToken',
662
+ type: 'address',
663
+ },
664
+ ],
665
+ name: 'getVaultTokenAmount',
666
+ outputs: [
667
+ {
668
+ name: '',
669
+ type: 'uint256',
670
+ },
671
+ ],
672
+ stateMutability: 'view',
673
+ type: 'function',
674
+ },
675
+ {
676
+ inputs: [
677
+ {
678
+ name: '_vaultToken',
679
+ type: 'address',
680
+ },
681
+ {
682
+ name: '_vaultTokenAmount',
683
+ type: 'uint256',
684
+ },
685
+ ],
686
+ name: 'getUsdValueOfVaultToken',
687
+ outputs: [
688
+ {
689
+ name: '',
690
+ type: 'uint256',
691
+ },
692
+ ],
693
+ stateMutability: 'view',
694
+ type: 'function',
695
+ },
696
+ {
697
+ inputs: [
698
+ {
699
+ name: '_vaultToken',
700
+ type: 'address',
701
+ },
702
+ {
703
+ name: '_vaultTokenAmount',
704
+ type: 'uint256',
705
+ },
706
+ {
707
+ name: '_oracleRegistry',
708
+ type: 'address',
709
+ },
710
+ ],
711
+ name: 'getUsdValueOfVaultToken',
712
+ outputs: [
713
+ {
714
+ name: '',
715
+ type: 'uint256',
716
+ },
717
+ ],
718
+ stateMutability: 'view',
719
+ type: 'function',
720
+ },
721
+ {
722
+ inputs: [
723
+ {
724
+ name: '_vaultToken',
725
+ type: 'address',
726
+ },
727
+ {
728
+ name: '_vaultTokenAmount',
729
+ type: 'uint256',
730
+ },
731
+ ],
732
+ name: 'getUnderlyingData',
733
+ outputs: [
734
+ {
735
+ name: '',
736
+ type: 'address',
737
+ },
738
+ {
739
+ name: '',
740
+ type: 'uint256',
741
+ },
742
+ {
743
+ name: '',
744
+ type: 'uint256',
745
+ },
746
+ ],
747
+ stateMutability: 'view',
748
+ type: 'function',
749
+ },
750
+ {
751
+ inputs: [
752
+ {
753
+ name: '_vaultToken',
754
+ type: 'address',
755
+ },
756
+ {
757
+ name: '_vaultTokenAmount',
758
+ type: 'uint256',
759
+ },
760
+ {
761
+ name: '_oracleRegistry',
762
+ type: 'address',
763
+ },
764
+ ],
765
+ name: 'getUnderlyingData',
766
+ outputs: [
767
+ {
768
+ name: '',
769
+ type: 'address',
770
+ },
771
+ {
772
+ name: '',
773
+ type: 'uint256',
774
+ },
775
+ {
776
+ name: '',
777
+ type: 'uint256',
778
+ },
779
+ ],
780
+ stateMutability: 'view',
781
+ type: 'function',
782
+ },
783
+ {
784
+ inputs: [
785
+ {
786
+ name: '_vaultToken',
787
+ type: 'address',
788
+ },
789
+ ],
790
+ name: 'totalAssets',
791
+ outputs: [
792
+ {
793
+ name: '',
794
+ type: 'uint256',
795
+ },
796
+ ],
797
+ stateMutability: 'view',
798
+ type: 'function',
799
+ },
800
+ {
801
+ inputs: [
802
+ {
803
+ name: '_vaultToken',
804
+ type: 'address',
805
+ },
806
+ ],
807
+ name: 'totalBorrows',
808
+ outputs: [
809
+ {
810
+ name: '',
811
+ type: 'uint256',
812
+ },
813
+ ],
814
+ stateMutability: 'view',
815
+ type: 'function',
816
+ },
817
+ {
818
+ inputs: [
819
+ {
820
+ name: '_asset',
821
+ type: 'address',
822
+ },
823
+ {
824
+ name: '_amount',
825
+ type: 'uint256',
826
+ },
827
+ {
828
+ name: '_vault',
829
+ type: 'address',
830
+ },
831
+ {
832
+ name: '_recipient',
833
+ type: 'address',
834
+ },
835
+ ],
836
+ name: 'depositTokens',
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'uint256',
841
+ },
842
+ {
843
+ name: '',
844
+ type: 'address',
845
+ },
846
+ {
847
+ name: '',
848
+ type: 'uint256',
849
+ },
850
+ {
851
+ name: '',
852
+ type: 'uint256',
853
+ },
854
+ {
855
+ name: '',
856
+ type: 'uint256',
857
+ },
858
+ ],
859
+ stateMutability: 'nonpayable',
860
+ type: 'function',
861
+ },
862
+ {
863
+ inputs: [
864
+ {
865
+ name: '_asset',
866
+ type: 'address',
867
+ },
868
+ {
869
+ name: '_amount',
870
+ type: 'uint256',
871
+ },
872
+ {
873
+ name: '_vault',
874
+ type: 'address',
875
+ },
876
+ {
877
+ name: '_recipient',
878
+ type: 'address',
879
+ },
880
+ {
881
+ name: '_oracleRegistry',
882
+ type: 'address',
883
+ },
884
+ ],
885
+ name: 'depositTokens',
886
+ outputs: [
887
+ {
888
+ name: '',
889
+ type: 'uint256',
890
+ },
891
+ {
892
+ name: '',
893
+ type: 'address',
894
+ },
895
+ {
896
+ name: '',
897
+ type: 'uint256',
898
+ },
899
+ {
900
+ name: '',
901
+ type: 'uint256',
902
+ },
903
+ {
904
+ name: '',
905
+ type: 'uint256',
906
+ },
907
+ ],
908
+ stateMutability: 'nonpayable',
909
+ type: 'function',
910
+ },
911
+ {
912
+ inputs: [
913
+ {
914
+ name: '_asset',
915
+ type: 'address',
916
+ },
917
+ {
918
+ name: '_amount',
919
+ type: 'uint256',
920
+ },
921
+ {
922
+ name: '_vaultToken',
923
+ type: 'address',
924
+ },
925
+ {
926
+ name: '_recipient',
927
+ type: 'address',
928
+ },
929
+ ],
930
+ name: 'withdrawTokens',
931
+ outputs: [
932
+ {
933
+ name: '',
934
+ type: 'uint256',
935
+ },
936
+ {
937
+ name: '',
938
+ type: 'uint256',
939
+ },
940
+ {
941
+ name: '',
942
+ type: 'uint256',
943
+ },
944
+ {
945
+ name: '',
946
+ type: 'uint256',
947
+ },
948
+ ],
949
+ stateMutability: 'nonpayable',
950
+ type: 'function',
951
+ },
952
+ {
953
+ inputs: [
954
+ {
955
+ name: '_asset',
956
+ type: 'address',
957
+ },
958
+ {
959
+ name: '_amount',
960
+ type: 'uint256',
961
+ },
962
+ {
963
+ name: '_vaultToken',
964
+ type: 'address',
965
+ },
966
+ {
967
+ name: '_recipient',
968
+ type: 'address',
969
+ },
970
+ {
971
+ name: '_oracleRegistry',
972
+ type: 'address',
973
+ },
974
+ ],
975
+ name: 'withdrawTokens',
976
+ outputs: [
977
+ {
978
+ name: '',
979
+ type: 'uint256',
980
+ },
981
+ {
982
+ name: '',
983
+ type: 'uint256',
984
+ },
985
+ {
986
+ name: '',
987
+ type: 'uint256',
988
+ },
989
+ {
990
+ name: '',
991
+ type: 'uint256',
992
+ },
993
+ ],
994
+ stateMutability: 'nonpayable',
995
+ type: 'function',
996
+ },
997
+ {
998
+ inputs: [
999
+ {
1000
+ name: '_user',
1001
+ type: 'address',
1002
+ },
1003
+ {
1004
+ name: '_market',
1005
+ type: 'address',
1006
+ },
1007
+ {
1008
+ name: '_rewardToken',
1009
+ type: 'address',
1010
+ },
1011
+ {
1012
+ name: '_rewardAmount',
1013
+ type: 'uint256',
1014
+ },
1015
+ {
1016
+ name: '_proof',
1017
+ type: 'bytes32',
1018
+ },
1019
+ ],
1020
+ name: 'claimRewards',
1021
+ outputs: [],
1022
+ stateMutability: 'nonpayable',
1023
+ type: 'function',
1024
+ },
1025
+ {
1026
+ inputs: [
1027
+ {
1028
+ name: '_user',
1029
+ type: 'address',
1030
+ },
1031
+ ],
1032
+ name: 'hasClaimableRewards',
1033
+ outputs: [
1034
+ {
1035
+ name: '',
1036
+ type: 'bool',
1037
+ },
1038
+ ],
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ },
1042
+ {
1043
+ inputs: [
1044
+ {
1045
+ name: '_addr',
1046
+ type: 'address',
1047
+ },
1048
+ ],
1049
+ name: 'setEulerRewardsAddr',
1050
+ outputs: [
1051
+ {
1052
+ name: '',
1053
+ type: 'bool',
1054
+ },
1055
+ ],
1056
+ stateMutability: 'nonpayable',
1057
+ type: 'function',
1058
+ },
1059
+ {
1060
+ inputs: [
1061
+ {
1062
+ name: '_asset',
1063
+ type: 'address',
1064
+ },
1065
+ {
1066
+ name: '_vault',
1067
+ type: 'address',
1068
+ },
1069
+ ],
1070
+ name: 'addAssetOpportunity',
1071
+ outputs: [
1072
+ {
1073
+ name: '',
1074
+ type: 'bool',
1075
+ },
1076
+ ],
1077
+ stateMutability: 'nonpayable',
1078
+ type: 'function',
1079
+ },
1080
+ {
1081
+ inputs: [
1082
+ {
1083
+ name: '_asset',
1084
+ type: 'address',
1085
+ },
1086
+ {
1087
+ name: '_vault',
1088
+ type: 'address',
1089
+ },
1090
+ ],
1091
+ name: 'removeAssetOpportunity',
1092
+ outputs: [
1093
+ {
1094
+ name: '',
1095
+ type: 'bool',
1096
+ },
1097
+ ],
1098
+ stateMutability: 'nonpayable',
1099
+ type: 'function',
1100
+ },
1101
+ {
1102
+ inputs: [
1103
+ {
1104
+ name: '_asset',
1105
+ type: 'address',
1106
+ },
1107
+ {
1108
+ name: '_recipient',
1109
+ type: 'address',
1110
+ },
1111
+ ],
1112
+ name: 'recoverFunds',
1113
+ outputs: [
1114
+ {
1115
+ name: '',
1116
+ type: 'bool',
1117
+ },
1118
+ ],
1119
+ stateMutability: 'nonpayable',
1120
+ type: 'function',
1121
+ },
1122
+ {
1123
+ inputs: [
1124
+ {
1125
+ name: '_legoId',
1126
+ type: 'uint256',
1127
+ },
1128
+ ],
1129
+ name: 'setLegoId',
1130
+ outputs: [
1131
+ {
1132
+ name: '',
1133
+ type: 'bool',
1134
+ },
1135
+ ],
1136
+ stateMutability: 'nonpayable',
1137
+ type: 'function',
1138
+ },
1139
+ {
1140
+ inputs: [
1141
+ {
1142
+ name: '_shouldActivate',
1143
+ type: 'bool',
1144
+ },
1145
+ ],
1146
+ name: 'activate',
1147
+ outputs: [],
1148
+ stateMutability: 'nonpayable',
1149
+ type: 'function',
1150
+ },
1151
+ {
1152
+ inputs: [],
1153
+ name: 'eulerRewards',
1154
+ outputs: [
1155
+ {
1156
+ name: '',
1157
+ type: 'address',
1158
+ },
1159
+ ],
1160
+ stateMutability: 'view',
1161
+ type: 'function',
1162
+ },
1163
+ {
1164
+ inputs: [],
1165
+ name: 'EULER_EVAULT_FACTORY',
1166
+ outputs: [
1167
+ {
1168
+ name: '',
1169
+ type: 'address',
1170
+ },
1171
+ ],
1172
+ stateMutability: 'view',
1173
+ type: 'function',
1174
+ },
1175
+ {
1176
+ inputs: [],
1177
+ name: 'EULER_EARN_FACTORY',
1178
+ outputs: [
1179
+ {
1180
+ name: '',
1181
+ type: 'address',
1182
+ },
1183
+ ],
1184
+ stateMutability: 'view',
1185
+ type: 'function',
1186
+ },
1187
+ {
1188
+ inputs: [],
1189
+ name: 'legoId',
1190
+ outputs: [
1191
+ {
1192
+ name: '',
1193
+ type: 'uint256',
1194
+ },
1195
+ ],
1196
+ stateMutability: 'view',
1197
+ type: 'function',
1198
+ },
1199
+ {
1200
+ inputs: [],
1201
+ name: 'isActivated',
1202
+ outputs: [
1203
+ {
1204
+ name: '',
1205
+ type: 'bool',
1206
+ },
1207
+ ],
1208
+ stateMutability: 'view',
1209
+ type: 'function',
1210
+ },
1211
+ {
1212
+ inputs: [],
1213
+ name: 'ADDY_REGISTRY',
1214
+ outputs: [
1215
+ {
1216
+ name: '',
1217
+ type: 'address',
1218
+ },
1219
+ ],
1220
+ stateMutability: 'view',
1221
+ type: 'function',
1222
+ },
1223
+ {
1224
+ inputs: [
1225
+ {
1226
+ name: '_evaultFactory',
1227
+ type: 'address',
1228
+ },
1229
+ {
1230
+ name: '_earnFactory',
1231
+ type: 'address',
1232
+ },
1233
+ {
1234
+ name: '_addyRegistry',
1235
+ type: 'address',
1236
+ },
1237
+ ],
1238
+ outputs: [],
1239
+ stateMutability: 'nonpayable',
1240
+ type: 'constructor',
1241
+ },
1242
+ ];
1243
+ export const deployAddress = '0xB2a1cdC1D896eE37cD432b591FeC2664294286FB';
1244
+ function getRequest(method, args, contractAddressOrOptions) {
1245
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1246
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1247
+ const call = {
1248
+ contractName: 'v0_3_LegoEuler',
1249
+ method,
1250
+ args,
1251
+ address,
1252
+ deployAddress,
1253
+ defaultValue,
1254
+ getAbi: () => abi,
1255
+ with: (options) => {
1256
+ call.address = options.contractAddress;
1257
+ call.defaultValue = options.defaultValue;
1258
+ return call;
1259
+ },
1260
+ defaultTo: (defaultValue) => {
1261
+ call.defaultValue = defaultValue;
1262
+ return call;
1263
+ },
1264
+ at: (address) => {
1265
+ call.address = address;
1266
+ return call;
1267
+ },
1268
+ };
1269
+ return call;
1270
+ }
1271
+ export const call = {
1272
+ getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
1273
+ getAssets: (...args) => getRequest('getAssets', args),
1274
+ assetOpportunities: (...args) => getRequest('assetOpportunities', args),
1275
+ indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
1276
+ numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
1277
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
1278
+ assets: (...args) => getRequest('assets', args),
1279
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
1280
+ numAssets: (...args) => getRequest('numAssets', args),
1281
+ canGovern: (...args) => getRequest('canGovern', args),
1282
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1283
+ governance: (...args) => getRequest('governance', args),
1284
+ pendingGov: (...args) => getRequest('pendingGov', args),
1285
+ govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1286
+ MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1287
+ MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1288
+ getRegistries: (...args) => getRequest('getRegistries', args),
1289
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1290
+ isVaultToken: (...args) => getRequest('isVaultToken', args),
1291
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
1292
+ getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
1293
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
1294
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
1295
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
1296
+ totalAssets: (...args) => getRequest('totalAssets', args),
1297
+ totalBorrows: (...args) => getRequest('totalBorrows', args),
1298
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1299
+ eulerRewards: (...args) => getRequest('eulerRewards', args),
1300
+ EULER_EVAULT_FACTORY: (...args) => getRequest('EULER_EVAULT_FACTORY', args),
1301
+ EULER_EARN_FACTORY: (...args) => getRequest('EULER_EARN_FACTORY', args),
1302
+ legoId: (...args) => getRequest('legoId', args),
1303
+ isActivated: (...args) => getRequest('isActivated', args),
1304
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1305
+ };
1306
+ function getMutation(functionName) {
1307
+ return {
1308
+ contractName: 'v0_3_LegoEuler',
1309
+ functionName,
1310
+ deployAddress,
1311
+ argsType: undefined,
1312
+ getAbi: () => abi,
1313
+ };
1314
+ }
1315
+ export const mutation = {
1316
+ changeGovernance: getMutation('changeGovernance'),
1317
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1318
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1319
+ setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1320
+ depositTokens: getMutation('depositTokens'),
1321
+ withdrawTokens: getMutation('withdrawTokens'),
1322
+ claimRewards: getMutation('claimRewards'),
1323
+ setEulerRewardsAddr: getMutation('setEulerRewardsAddr'),
1324
+ addAssetOpportunity: getMutation('addAssetOpportunity'),
1325
+ removeAssetOpportunity: getMutation('removeAssetOpportunity'),
1326
+ recoverFunds: getMutation('recoverFunds'),
1327
+ setLegoId: getMutation('setLegoId'),
1328
+ activate: getMutation('activate'),
1329
+ };
1330
+ export function toSdk(publicClient, walletClient) {
1331
+ return {
1332
+ deployAddress,
1333
+ abi,
1334
+ // Queries
1335
+ getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
1336
+ getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
1337
+ assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
1338
+ indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
1339
+ numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
1340
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
1341
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
1342
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
1343
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
1344
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1345
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1346
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1347
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1348
+ govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1349
+ MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1350
+ MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1351
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1352
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1353
+ isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
1354
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
1355
+ getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
1356
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
1357
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
1358
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
1359
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
1360
+ totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
1361
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1362
+ eulerRewards: (...args) => singleQuery(publicClient, call.eulerRewards(...args)),
1363
+ EULER_EVAULT_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EVAULT_FACTORY(...args)),
1364
+ EULER_EARN_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EARN_FACTORY(...args)),
1365
+ legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1366
+ isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1367
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1368
+ // Mutations
1369
+ changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1370
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1371
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1372
+ setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1373
+ depositTokens: (...args) => mutate(walletClient, mutation.depositTokens)(...args),
1374
+ withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens)(...args),
1375
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1376
+ setEulerRewardsAddr: (...args) => mutate(walletClient, mutation.setEulerRewardsAddr)(...args),
1377
+ addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
1378
+ removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
1379
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1380
+ setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1381
+ activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1382
+ };
1383
+ }