@underscore-finance/sdk 0.3.4 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/contracts/AaveV3.d.ts +2120 -0
  2. package/dist/contracts/AaveV3.d.ts.map +1 -0
  3. package/dist/contracts/AaveV3.js +2714 -0
  4. package/dist/contracts/AeroClassic.d.ts +2017 -0
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  6. package/dist/contracts/AeroClassic.js +2567 -0
  7. package/dist/contracts/AeroSlipstream.d.ts +2113 -0
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  9. package/dist/contracts/AeroSlipstream.js +2692 -0
  10. package/dist/contracts/Agent.d.ts +2189 -1138
  11. package/dist/contracts/Agent.d.ts.map +1 -1
  12. package/dist/contracts/Agent.js +2807 -1343
  13. package/dist/contracts/AgentWrapper.d.ts +3760 -0
  14. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  15. package/dist/contracts/AgentWrapper.js +4922 -0
  16. package/dist/contracts/Appraiser.d.ts +997 -0
  17. package/dist/contracts/Appraiser.d.ts.map +1 -0
  18. package/dist/contracts/Appraiser.js +1285 -0
  19. package/dist/contracts/Billing.d.ts +420 -0
  20. package/dist/contracts/Billing.d.ts.map +1 -0
  21. package/dist/contracts/Billing.js +506 -0
  22. package/dist/contracts/ChequeBook.d.ts +1184 -0
  23. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  24. package/dist/contracts/ChequeBook.js +1352 -0
  25. package/dist/contracts/CompoundV3.d.ts +2158 -0
  26. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  27. package/dist/contracts/CompoundV3.js +2764 -0
  28. package/dist/contracts/Curve.d.ts +1077 -0
  29. package/dist/contracts/Curve.d.ts.map +1 -0
  30. package/dist/contracts/Curve.js +1357 -0
  31. package/dist/contracts/DefaultsBase.d.ts +290 -0
  32. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  33. package/dist/contracts/DefaultsBase.js +316 -0
  34. package/dist/contracts/Euler.d.ts +2172 -0
  35. package/dist/contracts/Euler.d.ts.map +1 -0
  36. package/dist/contracts/Euler.js +2782 -0
  37. package/dist/contracts/Fluid.d.ts +2106 -0
  38. package/dist/contracts/Fluid.d.ts.map +1 -0
  39. package/dist/contracts/Fluid.js +2696 -0
  40. package/dist/contracts/Hatchery.d.ts +541 -0
  41. package/dist/contracts/Hatchery.d.ts.map +1 -0
  42. package/dist/contracts/Hatchery.js +671 -0
  43. package/dist/contracts/HighCommand.d.ts +1868 -0
  44. package/dist/contracts/HighCommand.d.ts.map +1 -0
  45. package/dist/contracts/HighCommand.js +2149 -0
  46. package/dist/contracts/Kernel.d.ts +354 -0
  47. package/dist/contracts/Kernel.d.ts.map +1 -0
  48. package/dist/contracts/Kernel.js +412 -0
  49. package/dist/contracts/Ledger.d.ts +694 -0
  50. package/dist/contracts/Ledger.d.ts.map +1 -0
  51. package/dist/contracts/Ledger.js +834 -0
  52. package/dist/contracts/LegoBook.d.ts +1424 -0
  53. package/dist/contracts/LegoBook.d.ts.map +1 -0
  54. package/dist/contracts/LegoBook.js +1783 -0
  55. package/dist/contracts/LegoTools.d.ts +1898 -0
  56. package/dist/contracts/LegoTools.d.ts.map +1 -0
  57. package/dist/contracts/LegoTools.js +2378 -0
  58. package/dist/contracts/LegoUniswapV0_2.d.ts +1204 -0
  59. package/dist/contracts/LegoUniswapV0_2.d.ts.map +1 -0
  60. package/dist/contracts/LegoUniswapV0_2.js +1546 -0
  61. package/dist/contracts/LootDistributor.d.ts +996 -0
  62. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  63. package/dist/contracts/LootDistributor.js +1255 -0
  64. package/dist/contracts/Migrator.d.ts +268 -0
  65. package/dist/contracts/Migrator.d.ts.map +1 -0
  66. package/dist/contracts/Migrator.js +324 -0
  67. package/dist/contracts/MissionControl.d.ts +1331 -0
  68. package/dist/contracts/MissionControl.d.ts.map +1 -0
  69. package/dist/contracts/MissionControl.js +1485 -0
  70. package/dist/contracts/Moonwell.d.ts +2137 -0
  71. package/dist/contracts/Moonwell.d.ts.map +1 -0
  72. package/dist/contracts/Moonwell.js +2737 -0
  73. package/dist/contracts/Morpho.d.ts +2172 -0
  74. package/dist/contracts/Morpho.d.ts.map +1 -0
  75. package/dist/contracts/Morpho.js +2782 -0
  76. package/dist/contracts/Paymaster.d.ts +1679 -0
  77. package/dist/contracts/Paymaster.d.ts.map +1 -0
  78. package/dist/contracts/Paymaster.js +2077 -0
  79. package/dist/contracts/RipeLego.d.ts +2263 -0
  80. package/dist/contracts/RipeLego.d.ts.map +1 -0
  81. package/dist/contracts/RipeLego.js +2891 -0
  82. package/dist/contracts/Sentinel.d.ts +1804 -0
  83. package/dist/contracts/Sentinel.d.ts.map +1 -0
  84. package/dist/contracts/Sentinel.js +2152 -0
  85. package/dist/contracts/Switchboard.d.ts +1395 -0
  86. package/dist/contracts/Switchboard.d.ts.map +1 -0
  87. package/dist/contracts/Switchboard.js +1746 -0
  88. package/dist/contracts/SwitchboardAlpha.d.ts +2228 -0
  89. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  90. package/dist/contracts/SwitchboardAlpha.js +2743 -0
  91. package/dist/contracts/SwitchboardBravo.d.ts +1498 -0
  92. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  93. package/dist/contracts/SwitchboardBravo.js +1855 -0
  94. package/dist/contracts/UndyHq.d.ts +1580 -0
  95. package/dist/contracts/UndyHq.d.ts.map +1 -0
  96. package/dist/contracts/UndyHq.js +1986 -0
  97. package/dist/contracts/UniswapV2.d.ts +2017 -0
  98. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  99. package/dist/contracts/UniswapV2.js +2567 -0
  100. package/dist/contracts/UniswapV3.d.ts +2113 -0
  101. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  102. package/dist/contracts/UniswapV3.js +2692 -0
  103. package/dist/contracts/UserWallet.d.ts +1438 -784
  104. package/dist/contracts/UserWallet.d.ts.map +1 -1
  105. package/dist/contracts/UserWallet.js +1854 -935
  106. package/dist/contracts/UserWalletConfig.d.ts +3034 -1231
  107. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  108. package/dist/contracts/UserWalletConfig.js +3395 -1407
  109. package/dist/contracts/WalletBackpack.d.ts +1183 -0
  110. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  111. package/dist/contracts/WalletBackpack.js +1484 -0
  112. package/dist/contracts/index.d.ts +72 -36
  113. package/dist/contracts/index.d.ts.map +1 -1
  114. package/dist/contracts/index.js +72 -36
  115. package/dist/contracts/sdk.d.ts +146 -72
  116. package/dist/contracts/sdk.d.ts.map +1 -1
  117. package/dist/contracts/sdk.js +146 -72
  118. package/dist/contracts/v0_1_AddyRegistry.d.ts +473 -0
  119. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +1 -0
  120. package/dist/contracts/v0_1_AddyRegistry.js +594 -0
  121. package/dist/contracts/v0_1_Agent.d.ts +2631 -0
  122. package/dist/contracts/v0_1_Agent.d.ts.map +1 -0
  123. package/dist/contracts/v0_1_Agent.js +3372 -0
  124. package/dist/contracts/v0_1_AgentFactory.d.ts +1054 -0
  125. package/dist/contracts/v0_1_AgentFactory.d.ts.map +1 -0
  126. package/dist/contracts/v0_1_AgentFactory.js +1336 -0
  127. package/dist/contracts/v0_1_UserWallet.d.ts +1980 -0
  128. package/dist/contracts/v0_1_UserWallet.d.ts.map +1 -0
  129. package/dist/contracts/v0_1_UserWallet.js +2581 -0
  130. package/dist/contracts/v0_1_UserWalletConfig.d.ts +1400 -0
  131. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +1 -0
  132. package/dist/contracts/v0_1_UserWalletConfig.js +1676 -0
  133. package/dist/contracts/v0_2_AddyRegistry.d.ts +1050 -0
  134. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +1 -0
  135. package/dist/contracts/v0_2_AddyRegistry.js +1313 -0
  136. package/dist/contracts/v0_2_Agent.d.ts +2709 -0
  137. package/dist/contracts/v0_2_Agent.d.ts.map +1 -0
  138. package/dist/contracts/v0_2_Agent.js +3458 -0
  139. package/dist/contracts/v0_2_AgentFactory.d.ts +1275 -0
  140. package/dist/contracts/v0_2_AgentFactory.d.ts.map +1 -0
  141. package/dist/contracts/v0_2_AgentFactory.js +1609 -0
  142. package/dist/contracts/v0_2_UserWallet.d.ts +1958 -0
  143. package/dist/contracts/v0_2_UserWallet.d.ts.map +1 -0
  144. package/dist/contracts/v0_2_UserWallet.js +2553 -0
  145. package/dist/contracts/v0_2_UserWalletConfig.d.ts +1468 -0
  146. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +1 -0
  147. package/dist/contracts/v0_2_UserWalletConfig.js +1764 -0
  148. package/dist/contracts/v0_3_AddyRegistry.d.ts +1109 -0
  149. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +1 -0
  150. package/dist/contracts/v0_3_AddyRegistry.js +1392 -0
  151. package/dist/contracts/v0_3_Agent.d.ts +2709 -0
  152. package/dist/contracts/v0_3_Agent.d.ts.map +1 -0
  153. package/dist/contracts/v0_3_Agent.js +3458 -0
  154. package/dist/contracts/v0_3_AgentFactory.d.ts +1665 -0
  155. package/dist/contracts/v0_3_AgentFactory.d.ts.map +1 -0
  156. package/dist/contracts/v0_3_AgentFactory.js +2078 -0
  157. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +706 -0
  158. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +1 -0
  159. package/dist/contracts/v0_3_ChainlinkFeeds.js +900 -0
  160. package/dist/contracts/v0_3_LegoAaveV3.d.ts +1033 -0
  161. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +1 -0
  162. package/dist/contracts/v0_3_LegoAaveV3.js +1330 -0
  163. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +1204 -0
  164. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +1 -0
  165. package/dist/contracts/v0_3_LegoAeroClassic.js +1546 -0
  166. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +1300 -0
  167. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +1 -0
  168. package/dist/contracts/v0_3_LegoAeroSlipstream.js +1671 -0
  169. package/dist/contracts/v0_3_LegoCommon.d.ts +164 -0
  170. package/dist/contracts/v0_3_LegoCommon.d.ts.map +1 -0
  171. package/dist/contracts/v0_3_LegoCommon.js +202 -0
  172. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +1060 -0
  173. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +1 -0
  174. package/dist/contracts/v0_3_LegoCompoundV3.js +1365 -0
  175. package/dist/contracts/v0_3_LegoCredit.d.ts +140 -0
  176. package/dist/contracts/v0_3_LegoCredit.d.ts.map +1 -0
  177. package/dist/contracts/v0_3_LegoCredit.js +179 -0
  178. package/dist/contracts/v0_3_LegoCurve.d.ts +1189 -0
  179. package/dist/contracts/v0_3_LegoCurve.d.ts.map +1 -0
  180. package/dist/contracts/v0_3_LegoCurve.js +1519 -0
  181. package/dist/contracts/v0_3_LegoDex.d.ts +587 -0
  182. package/dist/contracts/v0_3_LegoDex.d.ts.map +1 -0
  183. package/dist/contracts/v0_3_LegoDex.js +774 -0
  184. package/dist/contracts/v0_3_LegoEuler.d.ts +1074 -0
  185. package/dist/contracts/v0_3_LegoEuler.d.ts.map +1 -0
  186. package/dist/contracts/v0_3_LegoEuler.js +1383 -0
  187. package/dist/contracts/v0_3_LegoFluid.d.ts +1025 -0
  188. package/dist/contracts/v0_3_LegoFluid.d.ts.map +1 -0
  189. package/dist/contracts/v0_3_LegoFluid.js +1320 -0
  190. package/dist/contracts/v0_3_LegoHelper.d.ts +1563 -0
  191. package/dist/contracts/v0_3_LegoHelper.d.ts.map +1 -0
  192. package/dist/contracts/v0_3_LegoHelper.js +1947 -0
  193. package/dist/contracts/v0_3_LegoMoonwell.d.ts +1042 -0
  194. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +1 -0
  195. package/dist/contracts/v0_3_LegoMoonwell.js +1342 -0
  196. package/dist/contracts/v0_3_LegoMorpho.d.ts +1074 -0
  197. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +1 -0
  198. package/dist/contracts/v0_3_LegoMorpho.js +1383 -0
  199. package/dist/contracts/v0_3_LegoRegistry.d.ts +1079 -0
  200. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +1 -0
  201. package/dist/contracts/v0_3_LegoRegistry.js +1368 -0
  202. package/dist/contracts/v0_3_LegoSky.d.ts +923 -0
  203. package/dist/contracts/v0_3_LegoSky.d.ts.map +1 -0
  204. package/dist/contracts/v0_3_LegoSky.js +1180 -0
  205. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +1338 -0
  206. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +1 -0
  207. package/dist/contracts/v0_3_LegoUniswapV3.js +1718 -0
  208. package/dist/contracts/v0_3_LegoYield.d.ts +390 -0
  209. package/dist/contracts/v0_3_LegoYield.d.ts.map +1 -0
  210. package/dist/contracts/v0_3_LegoYield.js +511 -0
  211. package/dist/contracts/v0_3_OracleParser.d.ts +207 -0
  212. package/dist/contracts/v0_3_OracleParser.d.ts.map +1 -0
  213. package/dist/contracts/v0_3_OracleParser.js +264 -0
  214. package/dist/contracts/v0_3_OracleRegistry.d.ts +1221 -0
  215. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +1 -0
  216. package/dist/contracts/v0_3_OracleRegistry.js +1562 -0
  217. package/dist/contracts/v0_3_PriceSheets.d.ts +1127 -0
  218. package/dist/contracts/v0_3_PriceSheets.d.ts.map +1 -0
  219. package/dist/contracts/v0_3_PriceSheets.js +1383 -0
  220. package/dist/contracts/v0_3_PythFeeds.d.ts +640 -0
  221. package/dist/contracts/v0_3_PythFeeds.d.ts.map +1 -0
  222. package/dist/contracts/v0_3_PythFeeds.js +813 -0
  223. package/dist/contracts/v0_3_StorkFeeds.d.ts +640 -0
  224. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +1 -0
  225. package/dist/contracts/v0_3_StorkFeeds.js +813 -0
  226. package/dist/contracts/v0_3_UserWallet.d.ts +1975 -0
  227. package/dist/contracts/v0_3_UserWallet.d.ts.map +1 -0
  228. package/dist/contracts/v0_3_UserWallet.js +2577 -0
  229. package/dist/contracts/v0_3_UserWalletConfig.d.ts +1852 -0
  230. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +1 -0
  231. package/dist/contracts/v0_3_UserWalletConfig.js +2263 -0
  232. package/dist/getContracts.d.ts +77 -0
  233. package/dist/getContracts.d.ts.map +1 -0
  234. package/dist/getContracts.js +67 -0
  235. package/dist/getLegacyContracts.d.ts +69 -0
  236. package/dist/getLegacyContracts.d.ts.map +1 -0
  237. package/dist/getLegacyContracts.js +55 -0
  238. package/dist/getSwapInstructions.d.ts +60 -0
  239. package/dist/getSwapInstructions.d.ts.map +1 -0
  240. package/dist/getSwapInstructions.js +41 -0
  241. package/dist/index.d.ts +7 -477
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -0,0 +1,1285 @@
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
+ name: 'DepartmentPauseModified',
9
+ inputs: [
10
+ {
11
+ name: 'isPaused',
12
+ type: 'bool',
13
+ indexed: false,
14
+ },
15
+ ],
16
+ anonymous: false,
17
+ type: 'event',
18
+ },
19
+ {
20
+ name: 'DepartmentFundsRecovered',
21
+ inputs: [
22
+ {
23
+ name: 'asset',
24
+ type: 'address',
25
+ indexed: true,
26
+ },
27
+ {
28
+ name: 'recipient',
29
+ type: 'address',
30
+ indexed: true,
31
+ },
32
+ {
33
+ name: 'balance',
34
+ type: 'uint256',
35
+ indexed: false,
36
+ },
37
+ ],
38
+ anonymous: false,
39
+ type: 'event',
40
+ },
41
+ {
42
+ stateMutability: 'view',
43
+ type: 'function',
44
+ name: 'getAddys',
45
+ inputs: [],
46
+ outputs: [
47
+ {
48
+ name: '',
49
+ type: 'tuple',
50
+ components: [
51
+ {
52
+ name: 'hq',
53
+ type: 'address',
54
+ },
55
+ {
56
+ name: 'undyToken',
57
+ type: 'address',
58
+ },
59
+ {
60
+ name: 'ledger',
61
+ type: 'address',
62
+ },
63
+ {
64
+ name: 'missionControl',
65
+ type: 'address',
66
+ },
67
+ {
68
+ name: 'legoBook',
69
+ type: 'address',
70
+ },
71
+ {
72
+ name: 'switchboard',
73
+ type: 'address',
74
+ },
75
+ {
76
+ name: 'hatchery',
77
+ type: 'address',
78
+ },
79
+ {
80
+ name: 'lootDistributor',
81
+ type: 'address',
82
+ },
83
+ {
84
+ name: 'appraiser',
85
+ type: 'address',
86
+ },
87
+ {
88
+ name: 'walletBackpack',
89
+ type: 'address',
90
+ },
91
+ {
92
+ name: 'billing',
93
+ type: 'address',
94
+ },
95
+ ],
96
+ },
97
+ ],
98
+ },
99
+ {
100
+ stateMutability: 'view',
101
+ type: 'function',
102
+ name: 'getUndyHq',
103
+ inputs: [],
104
+ outputs: [
105
+ {
106
+ name: '',
107
+ type: 'address',
108
+ },
109
+ ],
110
+ },
111
+ {
112
+ stateMutability: 'view',
113
+ type: 'function',
114
+ name: 'canMintUndy',
115
+ inputs: [],
116
+ outputs: [
117
+ {
118
+ name: '',
119
+ type: 'bool',
120
+ },
121
+ ],
122
+ },
123
+ {
124
+ stateMutability: 'nonpayable',
125
+ type: 'function',
126
+ name: 'pause',
127
+ inputs: [
128
+ {
129
+ name: '_shouldPause',
130
+ type: 'bool',
131
+ },
132
+ ],
133
+ outputs: [],
134
+ },
135
+ {
136
+ stateMutability: 'nonpayable',
137
+ type: 'function',
138
+ name: 'recoverFunds',
139
+ inputs: [
140
+ {
141
+ name: '_recipient',
142
+ type: 'address',
143
+ },
144
+ {
145
+ name: '_asset',
146
+ type: 'address',
147
+ },
148
+ ],
149
+ outputs: [],
150
+ },
151
+ {
152
+ stateMutability: 'nonpayable',
153
+ type: 'function',
154
+ name: 'recoverFundsMany',
155
+ inputs: [
156
+ {
157
+ name: '_recipient',
158
+ type: 'address',
159
+ },
160
+ {
161
+ name: '_assets',
162
+ type: 'address[]',
163
+ },
164
+ ],
165
+ outputs: [],
166
+ },
167
+ {
168
+ stateMutability: 'view',
169
+ type: 'function',
170
+ name: 'isPaused',
171
+ inputs: [],
172
+ outputs: [
173
+ {
174
+ name: '',
175
+ type: 'bool',
176
+ },
177
+ ],
178
+ },
179
+ {
180
+ stateMutability: 'nonpayable',
181
+ type: 'function',
182
+ name: 'calculateYieldProfits',
183
+ inputs: [
184
+ {
185
+ name: '_asset',
186
+ type: 'address',
187
+ },
188
+ {
189
+ name: '_currentBalance',
190
+ type: 'uint256',
191
+ },
192
+ {
193
+ name: '_lastBalance',
194
+ type: 'uint256',
195
+ },
196
+ {
197
+ name: '_lastPricePerShare',
198
+ type: 'uint256',
199
+ },
200
+ {
201
+ name: '_missionControl',
202
+ type: 'address',
203
+ },
204
+ {
205
+ name: '_legoBook',
206
+ type: 'address',
207
+ },
208
+ ],
209
+ outputs: [
210
+ {
211
+ name: '',
212
+ type: 'uint256',
213
+ },
214
+ {
215
+ name: '',
216
+ type: 'uint256',
217
+ },
218
+ {
219
+ name: '',
220
+ type: 'uint256',
221
+ },
222
+ ],
223
+ },
224
+ {
225
+ stateMutability: 'view',
226
+ type: 'function',
227
+ name: 'calculateYieldProfitsNoUpdate',
228
+ inputs: [
229
+ {
230
+ name: '_legoId',
231
+ type: 'uint256',
232
+ },
233
+ {
234
+ name: '_asset',
235
+ type: 'address',
236
+ },
237
+ {
238
+ name: '_underlyingAsset',
239
+ type: 'address',
240
+ },
241
+ {
242
+ name: '_currentBalance',
243
+ type: 'uint256',
244
+ },
245
+ {
246
+ name: '_lastBalance',
247
+ type: 'uint256',
248
+ },
249
+ {
250
+ name: '_lastPricePerShare',
251
+ type: 'uint256',
252
+ },
253
+ ],
254
+ outputs: [
255
+ {
256
+ name: '',
257
+ type: 'uint256',
258
+ },
259
+ {
260
+ name: '',
261
+ type: 'uint256',
262
+ },
263
+ {
264
+ name: '',
265
+ type: 'uint256',
266
+ },
267
+ ],
268
+ },
269
+ {
270
+ stateMutability: 'view',
271
+ type: 'function',
272
+ name: 'getUsdValue',
273
+ inputs: [
274
+ {
275
+ name: '_asset',
276
+ type: 'address',
277
+ },
278
+ {
279
+ name: '_amount',
280
+ type: 'uint256',
281
+ },
282
+ ],
283
+ outputs: [
284
+ {
285
+ name: '',
286
+ type: 'uint256',
287
+ },
288
+ ],
289
+ },
290
+ {
291
+ stateMutability: 'view',
292
+ type: 'function',
293
+ name: 'getUsdValue',
294
+ inputs: [
295
+ {
296
+ name: '_asset',
297
+ type: 'address',
298
+ },
299
+ {
300
+ name: '_amount',
301
+ type: 'uint256',
302
+ },
303
+ {
304
+ name: '_missionControl',
305
+ type: 'address',
306
+ },
307
+ ],
308
+ outputs: [
309
+ {
310
+ name: '',
311
+ type: 'uint256',
312
+ },
313
+ ],
314
+ },
315
+ {
316
+ stateMutability: 'view',
317
+ type: 'function',
318
+ name: 'getUsdValue',
319
+ inputs: [
320
+ {
321
+ name: '_asset',
322
+ type: 'address',
323
+ },
324
+ {
325
+ name: '_amount',
326
+ type: 'uint256',
327
+ },
328
+ {
329
+ name: '_missionControl',
330
+ type: 'address',
331
+ },
332
+ {
333
+ name: '_legoBook',
334
+ type: 'address',
335
+ },
336
+ ],
337
+ outputs: [
338
+ {
339
+ name: '',
340
+ type: 'uint256',
341
+ },
342
+ ],
343
+ },
344
+ {
345
+ stateMutability: 'view',
346
+ type: 'function',
347
+ name: 'getUsdValue',
348
+ inputs: [
349
+ {
350
+ name: '_asset',
351
+ type: 'address',
352
+ },
353
+ {
354
+ name: '_amount',
355
+ type: 'uint256',
356
+ },
357
+ {
358
+ name: '_missionControl',
359
+ type: 'address',
360
+ },
361
+ {
362
+ name: '_legoBook',
363
+ type: 'address',
364
+ },
365
+ {
366
+ name: '_ledger',
367
+ type: 'address',
368
+ },
369
+ ],
370
+ outputs: [
371
+ {
372
+ name: '',
373
+ type: 'uint256',
374
+ },
375
+ ],
376
+ },
377
+ {
378
+ stateMutability: 'view',
379
+ type: 'function',
380
+ name: 'getPrice',
381
+ inputs: [
382
+ {
383
+ name: '_asset',
384
+ type: 'address',
385
+ },
386
+ ],
387
+ outputs: [
388
+ {
389
+ name: '',
390
+ type: 'uint256',
391
+ },
392
+ ],
393
+ },
394
+ {
395
+ stateMutability: 'view',
396
+ type: 'function',
397
+ name: 'getPrice',
398
+ inputs: [
399
+ {
400
+ name: '_asset',
401
+ type: 'address',
402
+ },
403
+ {
404
+ name: '_missionControl',
405
+ type: 'address',
406
+ },
407
+ ],
408
+ outputs: [
409
+ {
410
+ name: '',
411
+ type: 'uint256',
412
+ },
413
+ ],
414
+ },
415
+ {
416
+ stateMutability: 'view',
417
+ type: 'function',
418
+ name: 'getPrice',
419
+ inputs: [
420
+ {
421
+ name: '_asset',
422
+ type: 'address',
423
+ },
424
+ {
425
+ name: '_missionControl',
426
+ type: 'address',
427
+ },
428
+ {
429
+ name: '_legoBook',
430
+ type: 'address',
431
+ },
432
+ ],
433
+ outputs: [
434
+ {
435
+ name: '',
436
+ type: 'uint256',
437
+ },
438
+ ],
439
+ },
440
+ {
441
+ stateMutability: 'view',
442
+ type: 'function',
443
+ name: 'getPrice',
444
+ inputs: [
445
+ {
446
+ name: '_asset',
447
+ type: 'address',
448
+ },
449
+ {
450
+ name: '_missionControl',
451
+ type: 'address',
452
+ },
453
+ {
454
+ name: '_legoBook',
455
+ type: 'address',
456
+ },
457
+ {
458
+ name: '_ledger',
459
+ type: 'address',
460
+ },
461
+ ],
462
+ outputs: [
463
+ {
464
+ name: '',
465
+ type: 'uint256',
466
+ },
467
+ ],
468
+ },
469
+ {
470
+ stateMutability: 'nonpayable',
471
+ type: 'function',
472
+ name: 'updatePriceAndGetUsdValue',
473
+ inputs: [
474
+ {
475
+ name: '_asset',
476
+ type: 'address',
477
+ },
478
+ {
479
+ name: '_amount',
480
+ type: 'uint256',
481
+ },
482
+ ],
483
+ outputs: [
484
+ {
485
+ name: '',
486
+ type: 'uint256',
487
+ },
488
+ ],
489
+ },
490
+ {
491
+ stateMutability: 'nonpayable',
492
+ type: 'function',
493
+ name: 'updatePriceAndGetUsdValue',
494
+ inputs: [
495
+ {
496
+ name: '_asset',
497
+ type: 'address',
498
+ },
499
+ {
500
+ name: '_amount',
501
+ type: 'uint256',
502
+ },
503
+ {
504
+ name: '_missionControl',
505
+ type: 'address',
506
+ },
507
+ ],
508
+ outputs: [
509
+ {
510
+ name: '',
511
+ type: 'uint256',
512
+ },
513
+ ],
514
+ },
515
+ {
516
+ stateMutability: 'nonpayable',
517
+ type: 'function',
518
+ name: 'updatePriceAndGetUsdValue',
519
+ inputs: [
520
+ {
521
+ name: '_asset',
522
+ type: 'address',
523
+ },
524
+ {
525
+ name: '_amount',
526
+ type: 'uint256',
527
+ },
528
+ {
529
+ name: '_missionControl',
530
+ type: 'address',
531
+ },
532
+ {
533
+ name: '_legoBook',
534
+ type: 'address',
535
+ },
536
+ ],
537
+ outputs: [
538
+ {
539
+ name: '',
540
+ type: 'uint256',
541
+ },
542
+ ],
543
+ },
544
+ {
545
+ stateMutability: 'nonpayable',
546
+ type: 'function',
547
+ name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
548
+ inputs: [
549
+ {
550
+ name: '_asset',
551
+ type: 'address',
552
+ },
553
+ {
554
+ name: '_amount',
555
+ type: 'uint256',
556
+ },
557
+ ],
558
+ outputs: [
559
+ {
560
+ name: '',
561
+ type: 'uint256',
562
+ },
563
+ {
564
+ name: '',
565
+ type: 'bool',
566
+ },
567
+ ],
568
+ },
569
+ {
570
+ stateMutability: 'nonpayable',
571
+ type: 'function',
572
+ name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
573
+ inputs: [
574
+ {
575
+ name: '_asset',
576
+ type: 'address',
577
+ },
578
+ {
579
+ name: '_amount',
580
+ type: 'uint256',
581
+ },
582
+ {
583
+ name: '_missionControl',
584
+ type: 'address',
585
+ },
586
+ ],
587
+ outputs: [
588
+ {
589
+ name: '',
590
+ type: 'uint256',
591
+ },
592
+ {
593
+ name: '',
594
+ type: 'bool',
595
+ },
596
+ ],
597
+ },
598
+ {
599
+ stateMutability: 'nonpayable',
600
+ type: 'function',
601
+ name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
602
+ inputs: [
603
+ {
604
+ name: '_asset',
605
+ type: 'address',
606
+ },
607
+ {
608
+ name: '_amount',
609
+ type: 'uint256',
610
+ },
611
+ {
612
+ name: '_missionControl',
613
+ type: 'address',
614
+ },
615
+ {
616
+ name: '_legoBook',
617
+ type: 'address',
618
+ },
619
+ ],
620
+ outputs: [
621
+ {
622
+ name: '',
623
+ type: 'uint256',
624
+ },
625
+ {
626
+ name: '',
627
+ type: 'bool',
628
+ },
629
+ ],
630
+ },
631
+ {
632
+ stateMutability: 'view',
633
+ type: 'function',
634
+ name: 'getNormalAssetPrice',
635
+ inputs: [
636
+ {
637
+ name: '_asset',
638
+ type: 'address',
639
+ },
640
+ ],
641
+ outputs: [
642
+ {
643
+ name: '',
644
+ type: 'uint256',
645
+ },
646
+ ],
647
+ },
648
+ {
649
+ stateMutability: 'view',
650
+ type: 'function',
651
+ name: 'getNormalAssetPrice',
652
+ inputs: [
653
+ {
654
+ name: '_asset',
655
+ type: 'address',
656
+ },
657
+ {
658
+ name: '_missionControl',
659
+ type: 'address',
660
+ },
661
+ ],
662
+ outputs: [
663
+ {
664
+ name: '',
665
+ type: 'uint256',
666
+ },
667
+ ],
668
+ },
669
+ {
670
+ stateMutability: 'view',
671
+ type: 'function',
672
+ name: 'getNormalAssetPrice',
673
+ inputs: [
674
+ {
675
+ name: '_asset',
676
+ type: 'address',
677
+ },
678
+ {
679
+ name: '_missionControl',
680
+ type: 'address',
681
+ },
682
+ {
683
+ name: '_legoBook',
684
+ type: 'address',
685
+ },
686
+ ],
687
+ outputs: [
688
+ {
689
+ name: '',
690
+ type: 'uint256',
691
+ },
692
+ ],
693
+ },
694
+ {
695
+ stateMutability: 'view',
696
+ type: 'function',
697
+ name: 'getNormalAssetPrice',
698
+ inputs: [
699
+ {
700
+ name: '_asset',
701
+ type: 'address',
702
+ },
703
+ {
704
+ name: '_missionControl',
705
+ type: 'address',
706
+ },
707
+ {
708
+ name: '_legoBook',
709
+ type: 'address',
710
+ },
711
+ {
712
+ name: '_ledger',
713
+ type: 'address',
714
+ },
715
+ ],
716
+ outputs: [
717
+ {
718
+ name: '',
719
+ type: 'uint256',
720
+ },
721
+ ],
722
+ },
723
+ {
724
+ stateMutability: 'nonpayable',
725
+ type: 'function',
726
+ name: 'updateAndGetNormalAssetPrice',
727
+ inputs: [
728
+ {
729
+ name: '_asset',
730
+ type: 'address',
731
+ },
732
+ ],
733
+ outputs: [
734
+ {
735
+ name: '',
736
+ type: 'uint256',
737
+ },
738
+ ],
739
+ },
740
+ {
741
+ stateMutability: 'nonpayable',
742
+ type: 'function',
743
+ name: 'updateAndGetNormalAssetPrice',
744
+ inputs: [
745
+ {
746
+ name: '_asset',
747
+ type: 'address',
748
+ },
749
+ {
750
+ name: '_missionControl',
751
+ type: 'address',
752
+ },
753
+ ],
754
+ outputs: [
755
+ {
756
+ name: '',
757
+ type: 'uint256',
758
+ },
759
+ ],
760
+ },
761
+ {
762
+ stateMutability: 'nonpayable',
763
+ type: 'function',
764
+ name: 'updateAndGetNormalAssetPrice',
765
+ inputs: [
766
+ {
767
+ name: '_asset',
768
+ type: 'address',
769
+ },
770
+ {
771
+ name: '_missionControl',
772
+ type: 'address',
773
+ },
774
+ {
775
+ name: '_legoBook',
776
+ type: 'address',
777
+ },
778
+ ],
779
+ outputs: [
780
+ {
781
+ name: '',
782
+ type: 'uint256',
783
+ },
784
+ ],
785
+ },
786
+ {
787
+ stateMutability: 'view',
788
+ type: 'function',
789
+ name: 'getPricePerShare',
790
+ inputs: [
791
+ {
792
+ name: '_asset',
793
+ type: 'address',
794
+ },
795
+ ],
796
+ outputs: [
797
+ {
798
+ name: '',
799
+ type: 'uint256',
800
+ },
801
+ ],
802
+ },
803
+ {
804
+ stateMutability: 'view',
805
+ type: 'function',
806
+ name: 'getPricePerShare',
807
+ inputs: [
808
+ {
809
+ name: '_asset',
810
+ type: 'address',
811
+ },
812
+ {
813
+ name: '_missionControl',
814
+ type: 'address',
815
+ },
816
+ ],
817
+ outputs: [
818
+ {
819
+ name: '',
820
+ type: 'uint256',
821
+ },
822
+ ],
823
+ },
824
+ {
825
+ stateMutability: 'view',
826
+ type: 'function',
827
+ name: 'getPricePerShare',
828
+ inputs: [
829
+ {
830
+ name: '_asset',
831
+ type: 'address',
832
+ },
833
+ {
834
+ name: '_missionControl',
835
+ type: 'address',
836
+ },
837
+ {
838
+ name: '_legoBook',
839
+ type: 'address',
840
+ },
841
+ ],
842
+ outputs: [
843
+ {
844
+ name: '',
845
+ type: 'uint256',
846
+ },
847
+ ],
848
+ },
849
+ {
850
+ stateMutability: 'view',
851
+ type: 'function',
852
+ name: 'getPricePerShare',
853
+ inputs: [
854
+ {
855
+ name: '_asset',
856
+ type: 'address',
857
+ },
858
+ {
859
+ name: '_missionControl',
860
+ type: 'address',
861
+ },
862
+ {
863
+ name: '_legoBook',
864
+ type: 'address',
865
+ },
866
+ {
867
+ name: '_ledger',
868
+ type: 'address',
869
+ },
870
+ ],
871
+ outputs: [
872
+ {
873
+ name: '',
874
+ type: 'uint256',
875
+ },
876
+ ],
877
+ },
878
+ {
879
+ stateMutability: 'view',
880
+ type: 'function',
881
+ name: 'getPricePerShareWithConfig',
882
+ inputs: [
883
+ {
884
+ name: '_asset',
885
+ type: 'address',
886
+ },
887
+ {
888
+ name: '_legoAddr',
889
+ type: 'address',
890
+ },
891
+ {
892
+ name: '_staleBlocks',
893
+ type: 'uint256',
894
+ },
895
+ {
896
+ name: '_decimals',
897
+ type: 'uint256',
898
+ },
899
+ ],
900
+ outputs: [
901
+ {
902
+ name: '',
903
+ type: 'uint256',
904
+ },
905
+ ],
906
+ },
907
+ {
908
+ stateMutability: 'nonpayable',
909
+ type: 'function',
910
+ name: 'updateAndGetPricePerShare',
911
+ inputs: [
912
+ {
913
+ name: '_asset',
914
+ type: 'address',
915
+ },
916
+ ],
917
+ outputs: [
918
+ {
919
+ name: '',
920
+ type: 'uint256',
921
+ },
922
+ ],
923
+ },
924
+ {
925
+ stateMutability: 'nonpayable',
926
+ type: 'function',
927
+ name: 'updateAndGetPricePerShare',
928
+ inputs: [
929
+ {
930
+ name: '_asset',
931
+ type: 'address',
932
+ },
933
+ {
934
+ name: '_missionControl',
935
+ type: 'address',
936
+ },
937
+ ],
938
+ outputs: [
939
+ {
940
+ name: '',
941
+ type: 'uint256',
942
+ },
943
+ ],
944
+ },
945
+ {
946
+ stateMutability: 'nonpayable',
947
+ type: 'function',
948
+ name: 'updateAndGetPricePerShare',
949
+ inputs: [
950
+ {
951
+ name: '_asset',
952
+ type: 'address',
953
+ },
954
+ {
955
+ name: '_missionControl',
956
+ type: 'address',
957
+ },
958
+ {
959
+ name: '_legoBook',
960
+ type: 'address',
961
+ },
962
+ ],
963
+ outputs: [
964
+ {
965
+ name: '',
966
+ type: 'uint256',
967
+ },
968
+ ],
969
+ },
970
+ {
971
+ stateMutability: 'view',
972
+ type: 'function',
973
+ name: 'getRipePrice',
974
+ inputs: [
975
+ {
976
+ name: '_asset',
977
+ type: 'address',
978
+ },
979
+ ],
980
+ outputs: [
981
+ {
982
+ name: '',
983
+ type: 'uint256',
984
+ },
985
+ ],
986
+ },
987
+ {
988
+ stateMutability: 'view',
989
+ type: 'function',
990
+ name: 'getProfitCalcConfig',
991
+ inputs: [
992
+ {
993
+ name: '_asset',
994
+ type: 'address',
995
+ },
996
+ ],
997
+ outputs: [
998
+ {
999
+ name: '',
1000
+ type: 'tuple',
1001
+ components: [
1002
+ {
1003
+ name: 'legoId',
1004
+ type: 'uint256',
1005
+ },
1006
+ {
1007
+ name: 'legoAddr',
1008
+ type: 'address',
1009
+ },
1010
+ {
1011
+ name: 'decimals',
1012
+ type: 'uint256',
1013
+ },
1014
+ {
1015
+ name: 'staleBlocks',
1016
+ type: 'uint256',
1017
+ },
1018
+ {
1019
+ name: 'isYieldAsset',
1020
+ type: 'bool',
1021
+ },
1022
+ {
1023
+ name: 'isRebasing',
1024
+ type: 'bool',
1025
+ },
1026
+ {
1027
+ name: 'underlyingAsset',
1028
+ type: 'address',
1029
+ },
1030
+ {
1031
+ name: 'maxYieldIncrease',
1032
+ type: 'uint256',
1033
+ },
1034
+ {
1035
+ name: 'performanceFee',
1036
+ type: 'uint256',
1037
+ },
1038
+ ],
1039
+ },
1040
+ ],
1041
+ },
1042
+ {
1043
+ stateMutability: 'view',
1044
+ type: 'function',
1045
+ name: 'getAssetUsdValueConfig',
1046
+ inputs: [
1047
+ {
1048
+ name: '_asset',
1049
+ type: 'address',
1050
+ },
1051
+ ],
1052
+ outputs: [
1053
+ {
1054
+ name: '',
1055
+ type: 'tuple',
1056
+ components: [
1057
+ {
1058
+ name: 'legoId',
1059
+ type: 'uint256',
1060
+ },
1061
+ {
1062
+ name: 'legoAddr',
1063
+ type: 'address',
1064
+ },
1065
+ {
1066
+ name: 'decimals',
1067
+ type: 'uint256',
1068
+ },
1069
+ {
1070
+ name: 'staleBlocks',
1071
+ type: 'uint256',
1072
+ },
1073
+ {
1074
+ name: 'isYieldAsset',
1075
+ type: 'bool',
1076
+ },
1077
+ {
1078
+ name: 'underlyingAsset',
1079
+ type: 'address',
1080
+ },
1081
+ ],
1082
+ },
1083
+ ],
1084
+ },
1085
+ {
1086
+ stateMutability: 'view',
1087
+ type: 'function',
1088
+ name: 'lastPrice',
1089
+ inputs: [
1090
+ {
1091
+ name: 'arg0',
1092
+ type: 'address',
1093
+ },
1094
+ ],
1095
+ outputs: [
1096
+ {
1097
+ name: '',
1098
+ type: 'tuple',
1099
+ components: [
1100
+ {
1101
+ name: 'price',
1102
+ type: 'uint256',
1103
+ },
1104
+ {
1105
+ name: 'lastUpdate',
1106
+ type: 'uint256',
1107
+ },
1108
+ ],
1109
+ },
1110
+ ],
1111
+ },
1112
+ {
1113
+ stateMutability: 'view',
1114
+ type: 'function',
1115
+ name: 'lastPricePerShare',
1116
+ inputs: [
1117
+ {
1118
+ name: 'arg0',
1119
+ type: 'address',
1120
+ },
1121
+ ],
1122
+ outputs: [
1123
+ {
1124
+ name: '',
1125
+ type: 'tuple',
1126
+ components: [
1127
+ {
1128
+ name: 'pricePerShare',
1129
+ type: 'uint256',
1130
+ },
1131
+ {
1132
+ name: 'lastUpdate',
1133
+ type: 'uint256',
1134
+ },
1135
+ ],
1136
+ },
1137
+ ],
1138
+ },
1139
+ {
1140
+ stateMutability: 'view',
1141
+ type: 'function',
1142
+ name: 'WETH',
1143
+ inputs: [],
1144
+ outputs: [
1145
+ {
1146
+ name: '',
1147
+ type: 'address',
1148
+ },
1149
+ ],
1150
+ },
1151
+ {
1152
+ stateMutability: 'view',
1153
+ type: 'function',
1154
+ name: 'ETH',
1155
+ inputs: [],
1156
+ outputs: [
1157
+ {
1158
+ name: '',
1159
+ type: 'address',
1160
+ },
1161
+ ],
1162
+ },
1163
+ {
1164
+ stateMutability: 'nonpayable',
1165
+ type: 'constructor',
1166
+ inputs: [
1167
+ {
1168
+ name: '_undyHq',
1169
+ type: 'address',
1170
+ },
1171
+ {
1172
+ name: '_ripeHq',
1173
+ type: 'address',
1174
+ },
1175
+ {
1176
+ name: '_wethAddr',
1177
+ type: 'address',
1178
+ },
1179
+ {
1180
+ name: '_ethAddr',
1181
+ type: 'address',
1182
+ },
1183
+ ],
1184
+ outputs: [],
1185
+ },
1186
+ ];
1187
+ export const deployAddress = '0x50B32Df18452986f35Cb5B3d59B2Ea6C101ab2ad';
1188
+ function getRequest(method, args, contractAddressOrOptions) {
1189
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1190
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1191
+ const call = {
1192
+ contractName: 'Appraiser',
1193
+ method,
1194
+ args,
1195
+ address,
1196
+ deployAddress,
1197
+ defaultValue,
1198
+ getAbi: () => abi,
1199
+ with: (options) => {
1200
+ call.address = options.contractAddress;
1201
+ call.defaultValue = options.defaultValue;
1202
+ return call;
1203
+ },
1204
+ defaultTo: (defaultValue) => {
1205
+ call.defaultValue = defaultValue;
1206
+ return call;
1207
+ },
1208
+ at: (address) => {
1209
+ call.address = address;
1210
+ return call;
1211
+ },
1212
+ };
1213
+ return call;
1214
+ }
1215
+ export const call = {
1216
+ getAddys: (...args) => getRequest('getAddys', args),
1217
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
1218
+ canMintUndy: (...args) => getRequest('canMintUndy', args),
1219
+ isPaused: (...args) => getRequest('isPaused', args),
1220
+ calculateYieldProfitsNoUpdate: (...args) => getRequest('calculateYieldProfitsNoUpdate', args),
1221
+ getUsdValue: (...args) => getRequest('getUsdValue', args),
1222
+ getPrice: (...args) => getRequest('getPrice', args),
1223
+ getNormalAssetPrice: (...args) => getRequest('getNormalAssetPrice', args),
1224
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
1225
+ getPricePerShareWithConfig: (...args) => getRequest('getPricePerShareWithConfig', args),
1226
+ getRipePrice: (...args) => getRequest('getRipePrice', args),
1227
+ getProfitCalcConfig: (...args) => getRequest('getProfitCalcConfig', args),
1228
+ getAssetUsdValueConfig: (...args) => getRequest('getAssetUsdValueConfig', args),
1229
+ lastPrice: (...args) => getRequest('lastPrice', args),
1230
+ lastPricePerShare: (...args) => getRequest('lastPricePerShare', args),
1231
+ WETH: (...args) => getRequest('WETH', args),
1232
+ ETH: (...args) => getRequest('ETH', args),
1233
+ };
1234
+ function getMutation(functionName) {
1235
+ return {
1236
+ contractName: 'Appraiser',
1237
+ functionName,
1238
+ deployAddress,
1239
+ argsType: undefined,
1240
+ getAbi: () => abi,
1241
+ };
1242
+ }
1243
+ export const mutation = {
1244
+ pause: getMutation('pause'),
1245
+ recoverFunds: getMutation('recoverFunds'),
1246
+ recoverFundsMany: getMutation('recoverFundsMany'),
1247
+ calculateYieldProfits: getMutation('calculateYieldProfits'),
1248
+ updatePriceAndGetUsdValue: getMutation('updatePriceAndGetUsdValue'),
1249
+ updatePriceAndGetUsdValueAndIsYieldAsset: getMutation('updatePriceAndGetUsdValueAndIsYieldAsset'),
1250
+ updateAndGetNormalAssetPrice: getMutation('updateAndGetNormalAssetPrice'),
1251
+ updateAndGetPricePerShare: getMutation('updateAndGetPricePerShare'),
1252
+ };
1253
+ export function toSdk(publicClient, walletClient) {
1254
+ return {
1255
+ deployAddress,
1256
+ abi,
1257
+ // Queries
1258
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
1259
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
1260
+ canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
1261
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1262
+ calculateYieldProfitsNoUpdate: (...args) => singleQuery(publicClient, call.calculateYieldProfitsNoUpdate(...args)),
1263
+ getUsdValue: (...args) => singleQuery(publicClient, call.getUsdValue(...args)),
1264
+ getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
1265
+ getNormalAssetPrice: (...args) => singleQuery(publicClient, call.getNormalAssetPrice(...args)),
1266
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
1267
+ getPricePerShareWithConfig: (...args) => singleQuery(publicClient, call.getPricePerShareWithConfig(...args)),
1268
+ getRipePrice: (...args) => singleQuery(publicClient, call.getRipePrice(...args)),
1269
+ getProfitCalcConfig: (...args) => singleQuery(publicClient, call.getProfitCalcConfig(...args)),
1270
+ getAssetUsdValueConfig: (...args) => singleQuery(publicClient, call.getAssetUsdValueConfig(...args)),
1271
+ lastPrice: (...args) => singleQuery(publicClient, call.lastPrice(...args)),
1272
+ lastPricePerShare: (...args) => singleQuery(publicClient, call.lastPricePerShare(...args)),
1273
+ WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
1274
+ ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
1275
+ // Mutations
1276
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1277
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1278
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
1279
+ calculateYieldProfits: (...args) => mutate(walletClient, mutation.calculateYieldProfits)(...args),
1280
+ updatePriceAndGetUsdValue: (...args) => mutate(walletClient, mutation.updatePriceAndGetUsdValue)(...args),
1281
+ updatePriceAndGetUsdValueAndIsYieldAsset: (...args) => mutate(walletClient, mutation.updatePriceAndGetUsdValueAndIsYieldAsset)(...args),
1282
+ updateAndGetNormalAssetPrice: (...args) => mutate(walletClient, mutation.updateAndGetNormalAssetPrice)(...args),
1283
+ updateAndGetPricePerShare: (...args) => mutate(walletClient, mutation.updateAndGetPricePerShare)(...args),
1284
+ };
1285
+ }