@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,1180 @@
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: 'SkyDeposit',
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: 'SkyWithdrawal',
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: 'vaultToken',
102
+ type: 'address',
103
+ },
104
+ ],
105
+ name: 'AssetOpportunityAdded',
106
+ type: 'event',
107
+ },
108
+ {
109
+ anonymous: false,
110
+ inputs: [
111
+ {
112
+ indexed: true,
113
+ name: 'asset',
114
+ type: 'address',
115
+ },
116
+ {
117
+ indexed: true,
118
+ name: 'vaultToken',
119
+ type: 'address',
120
+ },
121
+ ],
122
+ name: 'AssetOpportunityRemoved',
123
+ type: 'event',
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: true,
130
+ name: 'asset',
131
+ type: 'address',
132
+ },
133
+ {
134
+ indexed: true,
135
+ name: 'recipient',
136
+ type: 'address',
137
+ },
138
+ {
139
+ indexed: false,
140
+ name: 'amount',
141
+ type: 'uint256',
142
+ },
143
+ ],
144
+ name: 'SkyFundsRecovered',
145
+ type: 'event',
146
+ },
147
+ {
148
+ anonymous: false,
149
+ inputs: [
150
+ {
151
+ indexed: false,
152
+ name: 'legoId',
153
+ type: 'uint256',
154
+ },
155
+ ],
156
+ name: 'SkyLegoIdSet',
157
+ type: 'event',
158
+ },
159
+ {
160
+ anonymous: false,
161
+ inputs: [
162
+ {
163
+ indexed: false,
164
+ name: 'isActivated',
165
+ type: 'bool',
166
+ },
167
+ ],
168
+ name: 'SkyActivated',
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: 'confirmBlock',
187
+ type: 'uint256',
188
+ },
189
+ ],
190
+ name: 'GovChangeInitiated',
191
+ type: 'event',
192
+ },
193
+ {
194
+ anonymous: false,
195
+ inputs: [
196
+ {
197
+ indexed: true,
198
+ name: 'prevGov',
199
+ type: 'address',
200
+ },
201
+ {
202
+ indexed: true,
203
+ name: 'newGov',
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: 'GovChangeConfirmed',
218
+ type: 'event',
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
223
+ {
224
+ indexed: true,
225
+ name: 'cancelledGov',
226
+ type: 'address',
227
+ },
228
+ {
229
+ indexed: false,
230
+ name: 'initiatedBlock',
231
+ type: 'uint256',
232
+ },
233
+ {
234
+ indexed: false,
235
+ name: 'confirmBlock',
236
+ type: 'uint256',
237
+ },
238
+ ],
239
+ name: 'GovChangeCancelled',
240
+ type: 'event',
241
+ },
242
+ {
243
+ anonymous: false,
244
+ inputs: [
245
+ {
246
+ indexed: false,
247
+ name: 'delayBlocks',
248
+ type: 'uint256',
249
+ },
250
+ ],
251
+ name: 'GovChangeDelaySet',
252
+ type: 'event',
253
+ },
254
+ {
255
+ inputs: [
256
+ {
257
+ name: '_address',
258
+ type: 'address',
259
+ },
260
+ ],
261
+ name: 'canGovern',
262
+ outputs: [
263
+ {
264
+ name: '',
265
+ type: 'bool',
266
+ },
267
+ ],
268
+ stateMutability: 'view',
269
+ type: 'function',
270
+ },
271
+ {
272
+ inputs: [],
273
+ name: 'hasPendingGovChange',
274
+ outputs: [
275
+ {
276
+ name: '',
277
+ type: 'bool',
278
+ },
279
+ ],
280
+ stateMutability: 'view',
281
+ type: 'function',
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ name: '_newGov',
287
+ type: 'address',
288
+ },
289
+ ],
290
+ name: 'changeGovernance',
291
+ outputs: [],
292
+ stateMutability: 'nonpayable',
293
+ type: 'function',
294
+ },
295
+ {
296
+ inputs: [],
297
+ name: 'confirmGovernanceChange',
298
+ outputs: [],
299
+ stateMutability: 'nonpayable',
300
+ type: 'function',
301
+ },
302
+ {
303
+ inputs: [],
304
+ name: 'cancelGovernanceChange',
305
+ outputs: [],
306
+ stateMutability: 'nonpayable',
307
+ type: 'function',
308
+ },
309
+ {
310
+ inputs: [
311
+ {
312
+ name: '_numBlocks',
313
+ type: 'uint256',
314
+ },
315
+ ],
316
+ name: 'setGovernanceChangeDelay',
317
+ outputs: [],
318
+ stateMutability: 'nonpayable',
319
+ type: 'function',
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: 'governance',
324
+ outputs: [
325
+ {
326
+ name: '',
327
+ type: 'address',
328
+ },
329
+ ],
330
+ stateMutability: 'view',
331
+ type: 'function',
332
+ },
333
+ {
334
+ inputs: [],
335
+ name: 'pendingGov',
336
+ outputs: [
337
+ {
338
+ components: [
339
+ {
340
+ name: 'newGov',
341
+ type: 'address',
342
+ },
343
+ {
344
+ name: 'initiatedBlock',
345
+ type: 'uint256',
346
+ },
347
+ {
348
+ name: 'confirmBlock',
349
+ type: 'uint256',
350
+ },
351
+ ],
352
+ name: '',
353
+ type: 'tuple',
354
+ },
355
+ ],
356
+ stateMutability: 'view',
357
+ type: 'function',
358
+ },
359
+ {
360
+ inputs: [],
361
+ name: 'govChangeDelay',
362
+ outputs: [
363
+ {
364
+ name: '',
365
+ type: 'uint256',
366
+ },
367
+ ],
368
+ stateMutability: 'view',
369
+ type: 'function',
370
+ },
371
+ {
372
+ inputs: [],
373
+ name: 'MIN_GOV_CHANGE_DELAY',
374
+ outputs: [
375
+ {
376
+ name: '',
377
+ type: 'uint256',
378
+ },
379
+ ],
380
+ stateMutability: 'view',
381
+ type: 'function',
382
+ },
383
+ {
384
+ inputs: [],
385
+ name: 'MAX_GOV_CHANGE_DELAY',
386
+ outputs: [
387
+ {
388
+ name: '',
389
+ type: 'uint256',
390
+ },
391
+ ],
392
+ stateMutability: 'view',
393
+ type: 'function',
394
+ },
395
+ {
396
+ inputs: [],
397
+ name: 'getRegistries',
398
+ outputs: [
399
+ {
400
+ name: '',
401
+ type: 'address[]',
402
+ },
403
+ ],
404
+ stateMutability: 'view',
405
+ type: 'function',
406
+ },
407
+ {
408
+ inputs: [
409
+ {
410
+ name: '_user',
411
+ type: 'address',
412
+ },
413
+ ],
414
+ name: 'getAccessForLego',
415
+ outputs: [
416
+ {
417
+ name: '',
418
+ type: 'address',
419
+ },
420
+ {
421
+ name: '',
422
+ type: 'string',
423
+ },
424
+ {
425
+ name: '',
426
+ type: 'uint256',
427
+ },
428
+ ],
429
+ stateMutability: 'view',
430
+ type: 'function',
431
+ },
432
+ {
433
+ inputs: [
434
+ {
435
+ name: '_asset',
436
+ type: 'address',
437
+ },
438
+ ],
439
+ name: 'getAssetOpportunities',
440
+ outputs: [
441
+ {
442
+ name: '',
443
+ type: 'address[]',
444
+ },
445
+ ],
446
+ stateMutability: 'view',
447
+ type: 'function',
448
+ },
449
+ {
450
+ inputs: [],
451
+ name: 'getAssets',
452
+ outputs: [
453
+ {
454
+ name: '',
455
+ type: 'address[]',
456
+ },
457
+ ],
458
+ stateMutability: 'view',
459
+ type: 'function',
460
+ },
461
+ {
462
+ inputs: [
463
+ {
464
+ name: '_vaultToken',
465
+ type: 'address',
466
+ },
467
+ ],
468
+ name: 'isVaultToken',
469
+ outputs: [
470
+ {
471
+ name: '',
472
+ type: 'bool',
473
+ },
474
+ ],
475
+ stateMutability: 'view',
476
+ type: 'function',
477
+ },
478
+ {
479
+ inputs: [
480
+ {
481
+ name: '_vaultToken',
482
+ type: 'address',
483
+ },
484
+ ],
485
+ name: 'getUnderlyingAsset',
486
+ outputs: [
487
+ {
488
+ name: '',
489
+ type: 'address',
490
+ },
491
+ ],
492
+ stateMutability: 'view',
493
+ type: 'function',
494
+ },
495
+ {
496
+ inputs: [
497
+ {
498
+ name: '_vaultToken',
499
+ type: 'address',
500
+ },
501
+ {
502
+ name: '_vaultTokenAmount',
503
+ type: 'uint256',
504
+ },
505
+ ],
506
+ name: 'getUnderlyingAmount',
507
+ outputs: [
508
+ {
509
+ name: '',
510
+ type: 'uint256',
511
+ },
512
+ ],
513
+ stateMutability: 'view',
514
+ type: 'function',
515
+ },
516
+ {
517
+ inputs: [
518
+ {
519
+ name: '_asset',
520
+ type: 'address',
521
+ },
522
+ {
523
+ name: '_assetAmount',
524
+ type: 'uint256',
525
+ },
526
+ {
527
+ name: '_vaultToken',
528
+ type: 'address',
529
+ },
530
+ ],
531
+ name: 'getVaultTokenAmount',
532
+ outputs: [
533
+ {
534
+ name: '',
535
+ type: 'uint256',
536
+ },
537
+ ],
538
+ stateMutability: 'view',
539
+ type: 'function',
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ name: '_vaultToken',
545
+ type: 'address',
546
+ },
547
+ {
548
+ name: '_vaultTokenAmount',
549
+ type: 'uint256',
550
+ },
551
+ ],
552
+ name: 'getUsdValueOfVaultToken',
553
+ outputs: [
554
+ {
555
+ name: '',
556
+ type: 'uint256',
557
+ },
558
+ ],
559
+ stateMutability: 'view',
560
+ type: 'function',
561
+ },
562
+ {
563
+ inputs: [
564
+ {
565
+ name: '_vaultToken',
566
+ type: 'address',
567
+ },
568
+ {
569
+ name: '_vaultTokenAmount',
570
+ type: 'uint256',
571
+ },
572
+ {
573
+ name: '_oracleRegistry',
574
+ type: 'address',
575
+ },
576
+ ],
577
+ name: 'getUsdValueOfVaultToken',
578
+ outputs: [
579
+ {
580
+ name: '',
581
+ type: 'uint256',
582
+ },
583
+ ],
584
+ stateMutability: 'view',
585
+ type: 'function',
586
+ },
587
+ {
588
+ inputs: [
589
+ {
590
+ name: '_vaultToken',
591
+ type: 'address',
592
+ },
593
+ {
594
+ name: '_vaultTokenAmount',
595
+ type: 'uint256',
596
+ },
597
+ ],
598
+ name: 'getUnderlyingData',
599
+ outputs: [
600
+ {
601
+ name: '',
602
+ type: 'address',
603
+ },
604
+ {
605
+ name: '',
606
+ type: 'uint256',
607
+ },
608
+ {
609
+ name: '',
610
+ type: 'uint256',
611
+ },
612
+ ],
613
+ stateMutability: 'view',
614
+ type: 'function',
615
+ },
616
+ {
617
+ inputs: [
618
+ {
619
+ name: '_vaultToken',
620
+ type: 'address',
621
+ },
622
+ {
623
+ name: '_vaultTokenAmount',
624
+ type: 'uint256',
625
+ },
626
+ {
627
+ name: '_oracleRegistry',
628
+ type: 'address',
629
+ },
630
+ ],
631
+ name: 'getUnderlyingData',
632
+ outputs: [
633
+ {
634
+ name: '',
635
+ type: 'address',
636
+ },
637
+ {
638
+ name: '',
639
+ type: 'uint256',
640
+ },
641
+ {
642
+ name: '',
643
+ type: 'uint256',
644
+ },
645
+ ],
646
+ stateMutability: 'view',
647
+ type: 'function',
648
+ },
649
+ {
650
+ inputs: [
651
+ {
652
+ name: '_vaultToken',
653
+ type: 'address',
654
+ },
655
+ ],
656
+ name: 'totalAssets',
657
+ outputs: [
658
+ {
659
+ name: '',
660
+ type: 'uint256',
661
+ },
662
+ ],
663
+ stateMutability: 'view',
664
+ type: 'function',
665
+ },
666
+ {
667
+ inputs: [
668
+ {
669
+ name: '_vaultToken',
670
+ type: 'address',
671
+ },
672
+ ],
673
+ name: 'totalBorrows',
674
+ outputs: [
675
+ {
676
+ name: '',
677
+ type: 'uint256',
678
+ },
679
+ ],
680
+ stateMutability: 'view',
681
+ type: 'function',
682
+ },
683
+ {
684
+ inputs: [
685
+ {
686
+ name: '_asset',
687
+ type: 'address',
688
+ },
689
+ {
690
+ name: '_amount',
691
+ type: 'uint256',
692
+ },
693
+ {
694
+ name: '_vault',
695
+ type: 'address',
696
+ },
697
+ {
698
+ name: '_recipient',
699
+ type: 'address',
700
+ },
701
+ ],
702
+ name: 'depositTokens',
703
+ outputs: [
704
+ {
705
+ name: '',
706
+ type: 'uint256',
707
+ },
708
+ {
709
+ name: '',
710
+ type: 'address',
711
+ },
712
+ {
713
+ name: '',
714
+ type: 'uint256',
715
+ },
716
+ {
717
+ name: '',
718
+ type: 'uint256',
719
+ },
720
+ {
721
+ name: '',
722
+ type: 'uint256',
723
+ },
724
+ ],
725
+ stateMutability: 'nonpayable',
726
+ type: 'function',
727
+ },
728
+ {
729
+ inputs: [
730
+ {
731
+ name: '_asset',
732
+ type: 'address',
733
+ },
734
+ {
735
+ name: '_amount',
736
+ type: 'uint256',
737
+ },
738
+ {
739
+ name: '_vault',
740
+ type: 'address',
741
+ },
742
+ {
743
+ name: '_recipient',
744
+ type: 'address',
745
+ },
746
+ {
747
+ name: '_oracleRegistry',
748
+ type: 'address',
749
+ },
750
+ ],
751
+ name: 'depositTokens',
752
+ outputs: [
753
+ {
754
+ name: '',
755
+ type: 'uint256',
756
+ },
757
+ {
758
+ name: '',
759
+ type: 'address',
760
+ },
761
+ {
762
+ name: '',
763
+ type: 'uint256',
764
+ },
765
+ {
766
+ name: '',
767
+ type: 'uint256',
768
+ },
769
+ {
770
+ name: '',
771
+ type: 'uint256',
772
+ },
773
+ ],
774
+ stateMutability: 'nonpayable',
775
+ type: 'function',
776
+ },
777
+ {
778
+ inputs: [
779
+ {
780
+ name: '_asset',
781
+ type: 'address',
782
+ },
783
+ {
784
+ name: '_amount',
785
+ type: 'uint256',
786
+ },
787
+ {
788
+ name: '_vaultToken',
789
+ type: 'address',
790
+ },
791
+ {
792
+ name: '_recipient',
793
+ type: 'address',
794
+ },
795
+ ],
796
+ name: 'withdrawTokens',
797
+ outputs: [
798
+ {
799
+ name: '',
800
+ type: 'uint256',
801
+ },
802
+ {
803
+ name: '',
804
+ type: 'uint256',
805
+ },
806
+ {
807
+ name: '',
808
+ type: 'uint256',
809
+ },
810
+ {
811
+ name: '',
812
+ type: 'uint256',
813
+ },
814
+ ],
815
+ stateMutability: 'nonpayable',
816
+ type: 'function',
817
+ },
818
+ {
819
+ inputs: [
820
+ {
821
+ name: '_asset',
822
+ type: 'address',
823
+ },
824
+ {
825
+ name: '_amount',
826
+ type: 'uint256',
827
+ },
828
+ {
829
+ name: '_vaultToken',
830
+ type: 'address',
831
+ },
832
+ {
833
+ name: '_recipient',
834
+ type: 'address',
835
+ },
836
+ {
837
+ name: '_oracleRegistry',
838
+ type: 'address',
839
+ },
840
+ ],
841
+ name: 'withdrawTokens',
842
+ outputs: [
843
+ {
844
+ name: '',
845
+ type: 'uint256',
846
+ },
847
+ {
848
+ name: '',
849
+ type: 'uint256',
850
+ },
851
+ {
852
+ name: '',
853
+ type: 'uint256',
854
+ },
855
+ {
856
+ name: '',
857
+ type: 'uint256',
858
+ },
859
+ ],
860
+ stateMutability: 'nonpayable',
861
+ type: 'function',
862
+ },
863
+ {
864
+ inputs: [
865
+ {
866
+ name: '_user',
867
+ type: 'address',
868
+ },
869
+ {
870
+ name: '_market',
871
+ type: 'address',
872
+ },
873
+ {
874
+ name: '_rewardToken',
875
+ type: 'address',
876
+ },
877
+ {
878
+ name: '_rewardAmount',
879
+ type: 'uint256',
880
+ },
881
+ {
882
+ name: '_proof',
883
+ type: 'bytes32',
884
+ },
885
+ ],
886
+ name: 'claimRewards',
887
+ outputs: [],
888
+ stateMutability: 'nonpayable',
889
+ type: 'function',
890
+ },
891
+ {
892
+ inputs: [
893
+ {
894
+ name: '_user',
895
+ type: 'address',
896
+ },
897
+ ],
898
+ name: 'hasClaimableRewards',
899
+ outputs: [
900
+ {
901
+ name: '',
902
+ type: 'bool',
903
+ },
904
+ ],
905
+ stateMutability: 'view',
906
+ type: 'function',
907
+ },
908
+ {
909
+ inputs: [
910
+ {
911
+ name: '_asset',
912
+ type: 'address',
913
+ },
914
+ {
915
+ name: '_recipient',
916
+ type: 'address',
917
+ },
918
+ ],
919
+ name: 'recoverFunds',
920
+ outputs: [
921
+ {
922
+ name: '',
923
+ type: 'bool',
924
+ },
925
+ ],
926
+ stateMutability: 'nonpayable',
927
+ type: 'function',
928
+ },
929
+ {
930
+ inputs: [
931
+ {
932
+ name: '_legoId',
933
+ type: 'uint256',
934
+ },
935
+ ],
936
+ name: 'setLegoId',
937
+ outputs: [
938
+ {
939
+ name: '',
940
+ type: 'bool',
941
+ },
942
+ ],
943
+ stateMutability: 'nonpayable',
944
+ type: 'function',
945
+ },
946
+ {
947
+ inputs: [
948
+ {
949
+ name: '_shouldActivate',
950
+ type: 'bool',
951
+ },
952
+ ],
953
+ name: 'activate',
954
+ outputs: [],
955
+ stateMutability: 'nonpayable',
956
+ type: 'function',
957
+ },
958
+ {
959
+ inputs: [],
960
+ name: 'usdc',
961
+ outputs: [
962
+ {
963
+ name: '',
964
+ type: 'address',
965
+ },
966
+ ],
967
+ stateMutability: 'view',
968
+ type: 'function',
969
+ },
970
+ {
971
+ inputs: [],
972
+ name: 'usds',
973
+ outputs: [
974
+ {
975
+ name: '',
976
+ type: 'address',
977
+ },
978
+ ],
979
+ stateMutability: 'view',
980
+ type: 'function',
981
+ },
982
+ {
983
+ inputs: [],
984
+ name: 'susds',
985
+ outputs: [
986
+ {
987
+ name: '',
988
+ type: 'address',
989
+ },
990
+ ],
991
+ stateMutability: 'view',
992
+ type: 'function',
993
+ },
994
+ {
995
+ inputs: [],
996
+ name: 'SKY_PSM',
997
+ outputs: [
998
+ {
999
+ name: '',
1000
+ type: 'address',
1001
+ },
1002
+ ],
1003
+ stateMutability: 'view',
1004
+ type: 'function',
1005
+ },
1006
+ {
1007
+ inputs: [],
1008
+ name: 'legoId',
1009
+ outputs: [
1010
+ {
1011
+ name: '',
1012
+ type: 'uint256',
1013
+ },
1014
+ ],
1015
+ stateMutability: 'view',
1016
+ type: 'function',
1017
+ },
1018
+ {
1019
+ inputs: [],
1020
+ name: 'isActivated',
1021
+ outputs: [
1022
+ {
1023
+ name: '',
1024
+ type: 'bool',
1025
+ },
1026
+ ],
1027
+ stateMutability: 'view',
1028
+ type: 'function',
1029
+ },
1030
+ {
1031
+ inputs: [],
1032
+ name: 'ADDY_REGISTRY',
1033
+ outputs: [
1034
+ {
1035
+ name: '',
1036
+ type: 'address',
1037
+ },
1038
+ ],
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ },
1042
+ {
1043
+ inputs: [
1044
+ {
1045
+ name: '_skyPsm',
1046
+ type: 'address',
1047
+ },
1048
+ {
1049
+ name: '_addyRegistry',
1050
+ type: 'address',
1051
+ },
1052
+ ],
1053
+ outputs: [],
1054
+ stateMutability: 'nonpayable',
1055
+ type: 'constructor',
1056
+ },
1057
+ ];
1058
+ export const deployAddress = '0x3514536163D5c0c5207A6A1230fc76bEe8CE8506';
1059
+ function getRequest(method, args, contractAddressOrOptions) {
1060
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1061
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1062
+ const call = {
1063
+ contractName: 'v0_3_LegoSky',
1064
+ method,
1065
+ args,
1066
+ address,
1067
+ deployAddress,
1068
+ defaultValue,
1069
+ getAbi: () => abi,
1070
+ with: (options) => {
1071
+ call.address = options.contractAddress;
1072
+ call.defaultValue = options.defaultValue;
1073
+ return call;
1074
+ },
1075
+ defaultTo: (defaultValue) => {
1076
+ call.defaultValue = defaultValue;
1077
+ return call;
1078
+ },
1079
+ at: (address) => {
1080
+ call.address = address;
1081
+ return call;
1082
+ },
1083
+ };
1084
+ return call;
1085
+ }
1086
+ export const call = {
1087
+ canGovern: (...args) => getRequest('canGovern', args),
1088
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1089
+ governance: (...args) => getRequest('governance', args),
1090
+ pendingGov: (...args) => getRequest('pendingGov', args),
1091
+ govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1092
+ MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1093
+ MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1094
+ getRegistries: (...args) => getRequest('getRegistries', args),
1095
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1096
+ getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
1097
+ getAssets: (...args) => getRequest('getAssets', args),
1098
+ isVaultToken: (...args) => getRequest('isVaultToken', args),
1099
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
1100
+ getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
1101
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
1102
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
1103
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
1104
+ totalAssets: (...args) => getRequest('totalAssets', args),
1105
+ totalBorrows: (...args) => getRequest('totalBorrows', args),
1106
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1107
+ usdc: (...args) => getRequest('usdc', args),
1108
+ usds: (...args) => getRequest('usds', args),
1109
+ susds: (...args) => getRequest('susds', args),
1110
+ SKY_PSM: (...args) => getRequest('SKY_PSM', args),
1111
+ legoId: (...args) => getRequest('legoId', args),
1112
+ isActivated: (...args) => getRequest('isActivated', args),
1113
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1114
+ };
1115
+ function getMutation(functionName) {
1116
+ return {
1117
+ contractName: 'v0_3_LegoSky',
1118
+ functionName,
1119
+ deployAddress,
1120
+ argsType: undefined,
1121
+ getAbi: () => abi,
1122
+ };
1123
+ }
1124
+ export const mutation = {
1125
+ changeGovernance: getMutation('changeGovernance'),
1126
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1127
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1128
+ setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1129
+ depositTokens: getMutation('depositTokens'),
1130
+ withdrawTokens: getMutation('withdrawTokens'),
1131
+ claimRewards: getMutation('claimRewards'),
1132
+ recoverFunds: getMutation('recoverFunds'),
1133
+ setLegoId: getMutation('setLegoId'),
1134
+ activate: getMutation('activate'),
1135
+ };
1136
+ export function toSdk(publicClient, walletClient) {
1137
+ return {
1138
+ deployAddress,
1139
+ abi,
1140
+ // Queries
1141
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1142
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1143
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1144
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1145
+ govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1146
+ MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1147
+ MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1148
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1149
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1150
+ getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
1151
+ getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
1152
+ isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
1153
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
1154
+ getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
1155
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
1156
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
1157
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
1158
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
1159
+ totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
1160
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1161
+ usdc: (...args) => singleQuery(publicClient, call.usdc(...args)),
1162
+ usds: (...args) => singleQuery(publicClient, call.usds(...args)),
1163
+ susds: (...args) => singleQuery(publicClient, call.susds(...args)),
1164
+ SKY_PSM: (...args) => singleQuery(publicClient, call.SKY_PSM(...args)),
1165
+ legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1166
+ isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1167
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1168
+ // Mutations
1169
+ changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1170
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1171
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1172
+ setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1173
+ depositTokens: (...args) => mutate(walletClient, mutation.depositTokens)(...args),
1174
+ withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens)(...args),
1175
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1176
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1177
+ setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1178
+ activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1179
+ };
1180
+ }