@underscore-finance/sdk 1.2.20-next.1 → 1.2.20-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/AGENTS.md +172 -0
  2. package/README.md +17 -116
  3. package/abis.json +193056 -0
  4. package/addresses.json +76 -0
  5. package/dist/contracts/AaveV3.d.ts +2594 -0
  6. package/dist/contracts/AaveV3.d.ts.map +1 -0
  7. package/dist/contracts/AaveV3.js +3272 -0
  8. package/dist/contracts/Addys.d.ts +124 -0
  9. package/dist/contracts/Addys.d.ts.map +1 -0
  10. package/dist/contracts/Addys.js +134 -0
  11. package/dist/contracts/AeroClassic.d.ts +2118 -0
  12. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  13. package/dist/contracts/AeroClassic.js +2679 -0
  14. package/dist/contracts/AeroSlipstream.d.ts +2256 -0
  15. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  16. package/dist/contracts/AeroSlipstream.js +2848 -0
  17. package/dist/contracts/AgentSenderGeneric.d.ts +4771 -0
  18. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  19. package/dist/contracts/AgentSenderGeneric.js +6192 -0
  20. package/dist/contracts/AgentSenderSpecial.d.ts +2124 -0
  21. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  22. package/dist/contracts/AgentSenderSpecial.js +2671 -0
  23. package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
  24. package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
  25. package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
  26. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +3180 -0
  27. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -0
  28. package/dist/contracts/AgentSenderSpecialSigHelper.js +4211 -0
  29. package/dist/contracts/AgentWrapper.d.ts +2678 -0
  30. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  31. package/dist/contracts/AgentWrapper.js +3602 -0
  32. package/dist/contracts/AgentWrapperV1.d.ts +3789 -0
  33. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  34. package/dist/contracts/AgentWrapperV1.js +4945 -0
  35. package/dist/contracts/AgentWrapperV2.d.ts +2494 -0
  36. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -0
  37. package/dist/contracts/AgentWrapperV2.js +3354 -0
  38. package/dist/contracts/Appraiser.d.ts +577 -0
  39. package/dist/contracts/Appraiser.d.ts.map +1 -0
  40. package/dist/contracts/Appraiser.js +735 -0
  41. package/dist/contracts/Avantis.d.ts +2606 -0
  42. package/dist/contracts/Avantis.d.ts.map +1 -0
  43. package/dist/contracts/Avantis.js +3282 -0
  44. package/dist/contracts/Billing.d.ts +381 -0
  45. package/dist/contracts/Billing.d.ts.map +1 -0
  46. package/dist/contracts/Billing.js +451 -0
  47. package/dist/contracts/ChequeBook.d.ts +1860 -0
  48. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  49. package/dist/contracts/ChequeBook.js +2131 -0
  50. package/dist/contracts/CompoundV3.d.ts +2622 -0
  51. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  52. package/dist/contracts/CompoundV3.js +3304 -0
  53. package/dist/contracts/ConvertVaultToken.d.ts +64 -0
  54. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  55. package/dist/contracts/ConvertVaultToken.js +75 -0
  56. package/dist/contracts/Curve.d.ts +1107 -0
  57. package/dist/contracts/Curve.d.ts.map +1 -0
  58. package/dist/contracts/Curve.js +1379 -0
  59. package/dist/contracts/DefaultsBase.d.ts +306 -0
  60. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  61. package/dist/contracts/DefaultsBase.js +331 -0
  62. package/dist/contracts/DefaultsLocal.d.ts +320 -0
  63. package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
  64. package/dist/contracts/DefaultsLocal.js +350 -0
  65. package/dist/contracts/ERC20.d.ts +813 -0
  66. package/dist/contracts/ERC20.d.ts.map +1 -0
  67. package/dist/contracts/ERC20.js +1006 -0
  68. package/dist/contracts/EarnVault.d.ts +1762 -0
  69. package/dist/contracts/EarnVault.d.ts.map +1 -0
  70. package/dist/contracts/EarnVault.js +2267 -0
  71. package/dist/contracts/EarnVaultAgent.d.ts +1160 -0
  72. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  73. package/dist/contracts/EarnVaultAgent.js +1435 -0
  74. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +905 -0
  75. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  76. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  77. package/dist/contracts/EarnVaultWallet.d.ts +777 -0
  78. package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
  79. package/dist/contracts/EarnVaultWallet.js +987 -0
  80. package/dist/contracts/Erc20Token.d.ts +813 -0
  81. package/dist/contracts/Erc20Token.d.ts.map +1 -0
  82. package/dist/contracts/Erc20Token.js +1006 -0
  83. package/dist/contracts/Euler.d.ts +2662 -0
  84. package/dist/contracts/Euler.d.ts.map +1 -0
  85. package/dist/contracts/Euler.js +3350 -0
  86. package/dist/contracts/ExtraFi.d.ts +2637 -0
  87. package/dist/contracts/ExtraFi.d.ts.map +1 -0
  88. package/dist/contracts/ExtraFi.js +3323 -0
  89. package/dist/contracts/Fluid.d.ts +2634 -0
  90. package/dist/contracts/Fluid.d.ts.map +1 -0
  91. package/dist/contracts/Fluid.js +3318 -0
  92. package/dist/contracts/FortyAcres.d.ts +2620 -0
  93. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  94. package/dist/contracts/FortyAcres.js +3300 -0
  95. package/dist/contracts/Hatchery.d.ts +392 -0
  96. package/dist/contracts/Hatchery.d.ts.map +1 -0
  97. package/dist/contracts/Hatchery.js +472 -0
  98. package/dist/contracts/Helpers.d.ts +1463 -0
  99. package/dist/contracts/Helpers.d.ts.map +1 -0
  100. package/dist/contracts/Helpers.js +1763 -0
  101. package/dist/contracts/HighCommand.d.ts +2169 -0
  102. package/dist/contracts/HighCommand.d.ts.map +1 -0
  103. package/dist/contracts/HighCommand.js +2474 -0
  104. package/dist/contracts/Kernel.d.ts +391 -0
  105. package/dist/contracts/Kernel.d.ts.map +1 -0
  106. package/dist/contracts/Kernel.js +446 -0
  107. package/dist/contracts/Ledger.d.ts +637 -0
  108. package/dist/contracts/Ledger.d.ts.map +1 -0
  109. package/dist/contracts/Ledger.js +759 -0
  110. package/dist/contracts/LegoBook.d.ts +1463 -0
  111. package/dist/contracts/LegoBook.d.ts.map +1 -0
  112. package/dist/contracts/LegoBook.js +1763 -0
  113. package/dist/contracts/LegoTools.d.ts +1913 -0
  114. package/dist/contracts/LegoTools.d.ts.map +1 -0
  115. package/dist/contracts/LegoTools.js +2402 -0
  116. package/dist/contracts/LevgVault.d.ts +2115 -0
  117. package/dist/contracts/LevgVault.d.ts.map +1 -0
  118. package/dist/contracts/LevgVault.js +2733 -0
  119. package/dist/contracts/LevgVaultAgent.d.ts +2013 -0
  120. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -0
  121. package/dist/contracts/LevgVaultAgent.js +2563 -0
  122. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +2221 -0
  123. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -0
  124. package/dist/contracts/LevgVaultAgentSigHelper.js +2963 -0
  125. package/dist/contracts/LevgVaultHelper.d.ts +977 -0
  126. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  127. package/dist/contracts/LevgVaultHelper.js +1289 -0
  128. package/dist/contracts/LevgVaultTools.d.ts +2629 -0
  129. package/dist/contracts/LevgVaultTools.d.ts.map +1 -0
  130. package/dist/contracts/LevgVaultTools.js +3560 -0
  131. package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
  132. package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
  133. package/dist/contracts/LevgVaultWallet.js +1439 -0
  134. package/dist/contracts/LocalGov.d.ts +427 -0
  135. package/dist/contracts/LocalGov.d.ts.map +1 -0
  136. package/dist/contracts/LocalGov.js +507 -0
  137. package/dist/contracts/LootDistributor.d.ts +1053 -0
  138. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  139. package/dist/contracts/LootDistributor.js +1291 -0
  140. package/dist/contracts/Migrator.d.ts +449 -0
  141. package/dist/contracts/Migrator.d.ts.map +1 -0
  142. package/dist/contracts/Migrator.js +535 -0
  143. package/dist/contracts/MissionControl.d.ts +1405 -0
  144. package/dist/contracts/MissionControl.d.ts.map +1 -0
  145. package/dist/contracts/MissionControl.js +1592 -0
  146. package/dist/contracts/Moonwell.d.ts +2623 -0
  147. package/dist/contracts/Moonwell.d.ts.map +1 -0
  148. package/dist/contracts/Moonwell.js +3304 -0
  149. package/dist/contracts/Morpho.d.ts +2662 -0
  150. package/dist/contracts/Morpho.d.ts.map +1 -0
  151. package/dist/contracts/Morpho.js +3350 -0
  152. package/dist/contracts/Ownership.d.ts +414 -0
  153. package/dist/contracts/Ownership.d.ts.map +1 -0
  154. package/dist/contracts/Ownership.js +472 -0
  155. package/dist/contracts/Paymaster.d.ts +1511 -0
  156. package/dist/contracts/Paymaster.d.ts.map +1 -0
  157. package/dist/contracts/Paymaster.js +1812 -0
  158. package/dist/contracts/RipeLego.d.ts +2913 -0
  159. package/dist/contracts/RipeLego.d.ts.map +1 -0
  160. package/dist/contracts/RipeLego.js +3643 -0
  161. package/dist/contracts/Sentinel.d.ts +2067 -0
  162. package/dist/contracts/Sentinel.d.ts.map +1 -0
  163. package/dist/contracts/Sentinel.js +2480 -0
  164. package/dist/contracts/SignatureHelper.d.ts +4250 -0
  165. package/dist/contracts/SignatureHelper.d.ts.map +1 -0
  166. package/dist/contracts/SignatureHelper.js +5714 -0
  167. package/dist/contracts/SignatureHelperV1.d.ts +4250 -0
  168. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -0
  169. package/dist/contracts/SignatureHelperV1.js +5714 -0
  170. package/dist/contracts/SkyPsm.d.ts +2667 -0
  171. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  172. package/dist/contracts/SkyPsm.js +3356 -0
  173. package/dist/contracts/Switchboard.d.ts +1483 -0
  174. package/dist/contracts/Switchboard.d.ts.map +1 -0
  175. package/dist/contracts/Switchboard.js +1790 -0
  176. package/dist/contracts/SwitchboardAlpha.d.ts +3161 -0
  177. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  178. package/dist/contracts/SwitchboardAlpha.js +3771 -0
  179. package/dist/contracts/SwitchboardBravo.d.ts +1591 -0
  180. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  181. package/dist/contracts/SwitchboardBravo.js +1872 -0
  182. package/dist/contracts/SwitchboardCharlie.d.ts +3172 -0
  183. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  184. package/dist/contracts/SwitchboardCharlie.js +3713 -0
  185. package/dist/contracts/UnderscoreLego.d.ts +2592 -0
  186. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  187. package/dist/contracts/UnderscoreLego.js +3264 -0
  188. package/dist/contracts/UndyAero.d.ts +1733 -0
  189. package/dist/contracts/UndyAero.d.ts.map +1 -0
  190. package/dist/contracts/UndyAero.js +2235 -0
  191. package/dist/contracts/UndyBtc.d.ts +1733 -0
  192. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  193. package/dist/contracts/UndyBtc.js +2235 -0
  194. package/dist/contracts/UndyCbeth.d.ts +1733 -0
  195. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  196. package/dist/contracts/UndyCbeth.js +2235 -0
  197. package/dist/contracts/UndyEth.d.ts +1733 -0
  198. package/dist/contracts/UndyEth.d.ts.map +1 -0
  199. package/dist/contracts/UndyEth.js +2235 -0
  200. package/dist/contracts/UndyEurc.d.ts +1733 -0
  201. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  202. package/dist/contracts/UndyEurc.js +2235 -0
  203. package/dist/contracts/UndyGho.d.ts +1733 -0
  204. package/dist/contracts/UndyGho.d.ts.map +1 -0
  205. package/dist/contracts/UndyGho.js +2235 -0
  206. package/dist/contracts/UndyHq.d.ts +1677 -0
  207. package/dist/contracts/UndyHq.d.ts.map +1 -0
  208. package/dist/contracts/UndyHq.js +2026 -0
  209. package/dist/contracts/UndyRewardsLego.d.ts +1572 -0
  210. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -0
  211. package/dist/contracts/UndyRewardsLego.js +1994 -0
  212. package/dist/contracts/UndyToken.d.ts +821 -0
  213. package/dist/contracts/UndyToken.d.ts.map +1 -0
  214. package/dist/contracts/UndyToken.js +1017 -0
  215. package/dist/contracts/UndyUsd.d.ts +1733 -0
  216. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  217. package/dist/contracts/UndyUsd.js +2235 -0
  218. package/dist/contracts/UndyUsdV2.d.ts +1762 -0
  219. package/dist/contracts/UndyUsdV2.d.ts.map +1 -0
  220. package/dist/contracts/UndyUsdV2.js +2267 -0
  221. package/dist/contracts/UndyUsds.d.ts +1733 -0
  222. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  223. package/dist/contracts/UndyUsds.js +2235 -0
  224. package/dist/contracts/UndyVirtual.d.ts +1762 -0
  225. package/dist/contracts/UndyVirtual.d.ts.map +1 -0
  226. package/dist/contracts/UndyVirtual.js +2267 -0
  227. package/dist/contracts/UniswapV2.d.ts +2118 -0
  228. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  229. package/dist/contracts/UniswapV2.js +2679 -0
  230. package/dist/contracts/UniswapV3.d.ts +2256 -0
  231. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  232. package/dist/contracts/UniswapV3.js +2848 -0
  233. package/dist/contracts/UserWallet.d.ts +2650 -0
  234. package/dist/contracts/UserWallet.d.ts.map +1 -0
  235. package/dist/contracts/UserWallet.js +3520 -0
  236. package/dist/contracts/UserWalletConfig.d.ts +3918 -0
  237. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  238. package/dist/contracts/UserWalletConfig.js +4527 -0
  239. package/dist/contracts/UserWalletConfigV1.d.ts +3692 -0
  240. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  241. package/dist/contracts/UserWalletConfigV1.js +4276 -0
  242. package/dist/contracts/UserWalletSignatureHelper.d.ts +5558 -0
  243. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -0
  244. package/dist/contracts/UserWalletSignatureHelper.js +7480 -0
  245. package/dist/contracts/UserWalletV1.d.ts +2650 -0
  246. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  247. package/dist/contracts/UserWalletV1.js +3520 -0
  248. package/dist/contracts/VaultErc20Token.d.ts +522 -0
  249. package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
  250. package/dist/contracts/VaultErc20Token.js +658 -0
  251. package/dist/contracts/VaultRegistry.d.ts +3162 -0
  252. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  253. package/dist/contracts/VaultRegistry.js +3893 -0
  254. package/dist/contracts/WalletBackpack.d.ts +1248 -0
  255. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  256. package/dist/contracts/WalletBackpack.js +1519 -0
  257. package/dist/contracts/Wasabi.d.ts +2620 -0
  258. package/dist/contracts/Wasabi.d.ts.map +1 -0
  259. package/dist/contracts/Wasabi.js +3300 -0
  260. package/dist/contracts/index.d.ts +86 -0
  261. package/dist/contracts/index.d.ts.map +1 -0
  262. package/dist/contracts/index.js +89 -0
  263. package/dist/contracts/sdk.d.ts +176 -0
  264. package/dist/contracts/sdk.d.ts.map +1 -0
  265. package/dist/contracts/sdk.js +178 -0
  266. package/dist/getSwapInstructions.d.ts +34 -0
  267. package/dist/getSwapInstructions.d.ts.map +1 -0
  268. package/dist/getSwapInstructions.js +21 -0
  269. package/dist/index.d.ts +135 -0
  270. package/dist/index.d.ts.map +1 -0
  271. package/dist/index.js +137 -0
  272. package/package.json +44 -17
  273. package/.claude/settings.local.json +0 -31
  274. package/.eslintrc.json +0 -27
  275. package/.prettierrc +0 -9
  276. package/.tool-versions +0 -1
  277. package/LICENSE +0 -41
  278. package/LICENSE_DATE.md +0 -34
  279. package/LICENSE_GRANTS.md +0 -33
  280. package/LICENSE_INFO.md +0 -90
  281. package/dapp.config.js +0 -154
  282. package/src/getSwapInstructions.ts +0 -55
  283. package/src/index.ts +0 -192
  284. package/tsconfig.json +0 -18
@@ -0,0 +1,2848 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ import { encodeEventTopics, parseEventLogs } from 'viem';
7
+ export const abi = [
8
+ {
9
+ "name": "UniswapV3Swap",
10
+ "inputs": [
11
+ {
12
+ "name": "sender",
13
+ "type": "address",
14
+ "indexed": true
15
+ },
16
+ {
17
+ "name": "tokenIn",
18
+ "type": "address",
19
+ "indexed": true
20
+ },
21
+ {
22
+ "name": "tokenOut",
23
+ "type": "address",
24
+ "indexed": true
25
+ },
26
+ {
27
+ "name": "amountIn",
28
+ "type": "uint256",
29
+ "indexed": false
30
+ },
31
+ {
32
+ "name": "amountOut",
33
+ "type": "uint256",
34
+ "indexed": false
35
+ },
36
+ {
37
+ "name": "usdValue",
38
+ "type": "uint256",
39
+ "indexed": false
40
+ },
41
+ {
42
+ "name": "numTokens",
43
+ "type": "uint256",
44
+ "indexed": false
45
+ },
46
+ {
47
+ "name": "recipient",
48
+ "type": "address",
49
+ "indexed": false
50
+ }
51
+ ],
52
+ "anonymous": false,
53
+ "type": "event"
54
+ },
55
+ {
56
+ "name": "UniswapV3LiquidityAdded",
57
+ "inputs": [
58
+ {
59
+ "name": "sender",
60
+ "type": "address",
61
+ "indexed": true
62
+ },
63
+ {
64
+ "name": "tokenA",
65
+ "type": "address",
66
+ "indexed": true
67
+ },
68
+ {
69
+ "name": "tokenB",
70
+ "type": "address",
71
+ "indexed": true
72
+ },
73
+ {
74
+ "name": "amountA",
75
+ "type": "uint256",
76
+ "indexed": false
77
+ },
78
+ {
79
+ "name": "amountB",
80
+ "type": "uint256",
81
+ "indexed": false
82
+ },
83
+ {
84
+ "name": "liquidityAdded",
85
+ "type": "uint256",
86
+ "indexed": false
87
+ },
88
+ {
89
+ "name": "nftTokenId",
90
+ "type": "uint256",
91
+ "indexed": false
92
+ },
93
+ {
94
+ "name": "usdValue",
95
+ "type": "uint256",
96
+ "indexed": false
97
+ },
98
+ {
99
+ "name": "recipient",
100
+ "type": "address",
101
+ "indexed": false
102
+ }
103
+ ],
104
+ "anonymous": false,
105
+ "type": "event"
106
+ },
107
+ {
108
+ "name": "UniswapV3LiquidityRemoved",
109
+ "inputs": [
110
+ {
111
+ "name": "sender",
112
+ "type": "address",
113
+ "indexed": false
114
+ },
115
+ {
116
+ "name": "pool",
117
+ "type": "address",
118
+ "indexed": true
119
+ },
120
+ {
121
+ "name": "nftTokenId",
122
+ "type": "uint256",
123
+ "indexed": false
124
+ },
125
+ {
126
+ "name": "tokenA",
127
+ "type": "address",
128
+ "indexed": true
129
+ },
130
+ {
131
+ "name": "tokenB",
132
+ "type": "address",
133
+ "indexed": true
134
+ },
135
+ {
136
+ "name": "amountA",
137
+ "type": "uint256",
138
+ "indexed": false
139
+ },
140
+ {
141
+ "name": "amountB",
142
+ "type": "uint256",
143
+ "indexed": false
144
+ },
145
+ {
146
+ "name": "liquidityRemoved",
147
+ "type": "uint256",
148
+ "indexed": false
149
+ },
150
+ {
151
+ "name": "usdValue",
152
+ "type": "uint256",
153
+ "indexed": false
154
+ },
155
+ {
156
+ "name": "recipient",
157
+ "type": "address",
158
+ "indexed": false
159
+ }
160
+ ],
161
+ "anonymous": false,
162
+ "type": "event"
163
+ },
164
+ {
165
+ "name": "UniswapV3NftRecovered",
166
+ "inputs": [
167
+ {
168
+ "name": "collection",
169
+ "type": "address",
170
+ "indexed": true
171
+ },
172
+ {
173
+ "name": "nftTokenId",
174
+ "type": "uint256",
175
+ "indexed": false
176
+ },
177
+ {
178
+ "name": "recipient",
179
+ "type": "address",
180
+ "indexed": true
181
+ }
182
+ ],
183
+ "anonymous": false,
184
+ "type": "event"
185
+ },
186
+ {
187
+ "name": "UniswapV3FeesCollected",
188
+ "inputs": [
189
+ {
190
+ "name": "sender",
191
+ "type": "address",
192
+ "indexed": true
193
+ },
194
+ {
195
+ "name": "nftTokenId",
196
+ "type": "uint256",
197
+ "indexed": false
198
+ },
199
+ {
200
+ "name": "token0",
201
+ "type": "address",
202
+ "indexed": true
203
+ },
204
+ {
205
+ "name": "token1",
206
+ "type": "address",
207
+ "indexed": true
208
+ },
209
+ {
210
+ "name": "amount0",
211
+ "type": "uint256",
212
+ "indexed": false
213
+ },
214
+ {
215
+ "name": "amount1",
216
+ "type": "uint256",
217
+ "indexed": false
218
+ },
219
+ {
220
+ "name": "recipient",
221
+ "type": "address",
222
+ "indexed": false
223
+ }
224
+ ],
225
+ "anonymous": false,
226
+ "type": "event"
227
+ },
228
+ {
229
+ "name": "LegoPauseModified",
230
+ "inputs": [
231
+ {
232
+ "name": "isPaused",
233
+ "type": "bool",
234
+ "indexed": false
235
+ }
236
+ ],
237
+ "anonymous": false,
238
+ "type": "event"
239
+ },
240
+ {
241
+ "name": "LegoFundsRecovered",
242
+ "inputs": [
243
+ {
244
+ "name": "asset",
245
+ "type": "address",
246
+ "indexed": true
247
+ },
248
+ {
249
+ "name": "recipient",
250
+ "type": "address",
251
+ "indexed": true
252
+ },
253
+ {
254
+ "name": "balance",
255
+ "type": "uint256",
256
+ "indexed": false
257
+ }
258
+ ],
259
+ "anonymous": false,
260
+ "type": "event"
261
+ },
262
+ {
263
+ "stateMutability": "view",
264
+ "type": "function",
265
+ "name": "getAddys",
266
+ "inputs": [],
267
+ "outputs": [
268
+ {
269
+ "name": "",
270
+ "type": "tuple",
271
+ "components": [
272
+ {
273
+ "name": "hq",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "name": "undyToken",
278
+ "type": "address"
279
+ },
280
+ {
281
+ "name": "ledger",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "name": "missionControl",
286
+ "type": "address"
287
+ },
288
+ {
289
+ "name": "legoBook",
290
+ "type": "address"
291
+ },
292
+ {
293
+ "name": "switchboard",
294
+ "type": "address"
295
+ },
296
+ {
297
+ "name": "hatchery",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "name": "lootDistributor",
302
+ "type": "address"
303
+ },
304
+ {
305
+ "name": "appraiser",
306
+ "type": "address"
307
+ },
308
+ {
309
+ "name": "walletBackpack",
310
+ "type": "address"
311
+ },
312
+ {
313
+ "name": "billing",
314
+ "type": "address"
315
+ },
316
+ {
317
+ "name": "vaultRegistry",
318
+ "type": "address"
319
+ }
320
+ ]
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "stateMutability": "view",
326
+ "type": "function",
327
+ "name": "getUndyHq",
328
+ "inputs": [],
329
+ "outputs": [
330
+ {
331
+ "name": "",
332
+ "type": "address"
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "stateMutability": "nonpayable",
338
+ "type": "function",
339
+ "name": "pause",
340
+ "inputs": [
341
+ {
342
+ "name": "_shouldPause",
343
+ "type": "bool"
344
+ }
345
+ ],
346
+ "outputs": []
347
+ },
348
+ {
349
+ "stateMutability": "nonpayable",
350
+ "type": "function",
351
+ "name": "recoverFunds",
352
+ "inputs": [
353
+ {
354
+ "name": "_recipient",
355
+ "type": "address"
356
+ },
357
+ {
358
+ "name": "_asset",
359
+ "type": "address"
360
+ }
361
+ ],
362
+ "outputs": []
363
+ },
364
+ {
365
+ "stateMutability": "nonpayable",
366
+ "type": "function",
367
+ "name": "recoverFundsMany",
368
+ "inputs": [
369
+ {
370
+ "name": "_recipient",
371
+ "type": "address"
372
+ },
373
+ {
374
+ "name": "_assets",
375
+ "type": "address[]"
376
+ }
377
+ ],
378
+ "outputs": []
379
+ },
380
+ {
381
+ "stateMutability": "view",
382
+ "type": "function",
383
+ "name": "legoId",
384
+ "inputs": [],
385
+ "outputs": [
386
+ {
387
+ "name": "",
388
+ "type": "uint256"
389
+ }
390
+ ]
391
+ },
392
+ {
393
+ "stateMutability": "view",
394
+ "type": "function",
395
+ "name": "isPaused",
396
+ "inputs": [],
397
+ "outputs": [
398
+ {
399
+ "name": "",
400
+ "type": "bool"
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "stateMutability": "view",
406
+ "type": "function",
407
+ "name": "hasCapability",
408
+ "inputs": [
409
+ {
410
+ "name": "_action",
411
+ "type": "uint256"
412
+ }
413
+ ],
414
+ "outputs": [
415
+ {
416
+ "name": "",
417
+ "type": "bool"
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "stateMutability": "view",
423
+ "type": "function",
424
+ "name": "onERC721Received",
425
+ "inputs": [
426
+ {
427
+ "name": "_operator",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "name": "_owner",
432
+ "type": "address"
433
+ },
434
+ {
435
+ "name": "_tokenId",
436
+ "type": "uint256"
437
+ },
438
+ {
439
+ "name": "_data",
440
+ "type": "bytes"
441
+ }
442
+ ],
443
+ "outputs": [
444
+ {
445
+ "name": "",
446
+ "type": "bytes4"
447
+ }
448
+ ]
449
+ },
450
+ {
451
+ "stateMutability": "view",
452
+ "type": "function",
453
+ "name": "getRegistries",
454
+ "inputs": [],
455
+ "outputs": [
456
+ {
457
+ "name": "",
458
+ "type": "address[]"
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "stateMutability": "view",
464
+ "type": "function",
465
+ "name": "isYieldLego",
466
+ "inputs": [],
467
+ "outputs": [
468
+ {
469
+ "name": "",
470
+ "type": "bool"
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ "stateMutability": "view",
476
+ "type": "function",
477
+ "name": "isDexLego",
478
+ "inputs": [],
479
+ "outputs": [
480
+ {
481
+ "name": "",
482
+ "type": "bool"
483
+ }
484
+ ]
485
+ },
486
+ {
487
+ "stateMutability": "nonpayable",
488
+ "type": "function",
489
+ "name": "swapTokens",
490
+ "inputs": [
491
+ {
492
+ "name": "_amountIn",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "name": "_minAmountOut",
497
+ "type": "uint256"
498
+ },
499
+ {
500
+ "name": "_tokenPath",
501
+ "type": "address[]"
502
+ },
503
+ {
504
+ "name": "_poolPath",
505
+ "type": "address[]"
506
+ },
507
+ {
508
+ "name": "_recipient",
509
+ "type": "address"
510
+ }
511
+ ],
512
+ "outputs": [
513
+ {
514
+ "name": "",
515
+ "type": "uint256"
516
+ },
517
+ {
518
+ "name": "",
519
+ "type": "uint256"
520
+ },
521
+ {
522
+ "name": "",
523
+ "type": "uint256"
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ "stateMutability": "nonpayable",
529
+ "type": "function",
530
+ "name": "swapTokens",
531
+ "inputs": [
532
+ {
533
+ "name": "_amountIn",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "name": "_minAmountOut",
538
+ "type": "uint256"
539
+ },
540
+ {
541
+ "name": "_tokenPath",
542
+ "type": "address[]"
543
+ },
544
+ {
545
+ "name": "_poolPath",
546
+ "type": "address[]"
547
+ },
548
+ {
549
+ "name": "_recipient",
550
+ "type": "address"
551
+ },
552
+ {
553
+ "name": "_miniAddys",
554
+ "type": "tuple",
555
+ "components": [
556
+ {
557
+ "name": "ledger",
558
+ "type": "address"
559
+ },
560
+ {
561
+ "name": "missionControl",
562
+ "type": "address"
563
+ },
564
+ {
565
+ "name": "legoBook",
566
+ "type": "address"
567
+ },
568
+ {
569
+ "name": "appraiser",
570
+ "type": "address"
571
+ }
572
+ ]
573
+ }
574
+ ],
575
+ "outputs": [
576
+ {
577
+ "name": "",
578
+ "type": "uint256"
579
+ },
580
+ {
581
+ "name": "",
582
+ "type": "uint256"
583
+ },
584
+ {
585
+ "name": "",
586
+ "type": "uint256"
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "stateMutability": "nonpayable",
592
+ "type": "function",
593
+ "name": "uniswapV3SwapCallback",
594
+ "inputs": [
595
+ {
596
+ "name": "_amount0Delta",
597
+ "type": "int256"
598
+ },
599
+ {
600
+ "name": "_amount1Delta",
601
+ "type": "int256"
602
+ },
603
+ {
604
+ "name": "_data",
605
+ "type": "bytes"
606
+ }
607
+ ],
608
+ "outputs": []
609
+ },
610
+ {
611
+ "stateMutability": "nonpayable",
612
+ "type": "function",
613
+ "name": "addLiquidityConcentrated",
614
+ "inputs": [
615
+ {
616
+ "name": "_nftTokenId",
617
+ "type": "uint256"
618
+ },
619
+ {
620
+ "name": "_pool",
621
+ "type": "address"
622
+ },
623
+ {
624
+ "name": "_tokenA",
625
+ "type": "address"
626
+ },
627
+ {
628
+ "name": "_tokenB",
629
+ "type": "address"
630
+ },
631
+ {
632
+ "name": "_tickLower",
633
+ "type": "int24"
634
+ },
635
+ {
636
+ "name": "_tickUpper",
637
+ "type": "int24"
638
+ },
639
+ {
640
+ "name": "_amountA",
641
+ "type": "uint256"
642
+ },
643
+ {
644
+ "name": "_amountB",
645
+ "type": "uint256"
646
+ },
647
+ {
648
+ "name": "_minAmountA",
649
+ "type": "uint256"
650
+ },
651
+ {
652
+ "name": "_minAmountB",
653
+ "type": "uint256"
654
+ },
655
+ {
656
+ "name": "_extraData",
657
+ "type": "bytes32"
658
+ },
659
+ {
660
+ "name": "_recipient",
661
+ "type": "address"
662
+ }
663
+ ],
664
+ "outputs": [
665
+ {
666
+ "name": "",
667
+ "type": "uint256"
668
+ },
669
+ {
670
+ "name": "",
671
+ "type": "uint256"
672
+ },
673
+ {
674
+ "name": "",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "name": "",
679
+ "type": "uint256"
680
+ },
681
+ {
682
+ "name": "",
683
+ "type": "uint256"
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "stateMutability": "nonpayable",
689
+ "type": "function",
690
+ "name": "addLiquidityConcentrated",
691
+ "inputs": [
692
+ {
693
+ "name": "_nftTokenId",
694
+ "type": "uint256"
695
+ },
696
+ {
697
+ "name": "_pool",
698
+ "type": "address"
699
+ },
700
+ {
701
+ "name": "_tokenA",
702
+ "type": "address"
703
+ },
704
+ {
705
+ "name": "_tokenB",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "name": "_tickLower",
710
+ "type": "int24"
711
+ },
712
+ {
713
+ "name": "_tickUpper",
714
+ "type": "int24"
715
+ },
716
+ {
717
+ "name": "_amountA",
718
+ "type": "uint256"
719
+ },
720
+ {
721
+ "name": "_amountB",
722
+ "type": "uint256"
723
+ },
724
+ {
725
+ "name": "_minAmountA",
726
+ "type": "uint256"
727
+ },
728
+ {
729
+ "name": "_minAmountB",
730
+ "type": "uint256"
731
+ },
732
+ {
733
+ "name": "_extraData",
734
+ "type": "bytes32"
735
+ },
736
+ {
737
+ "name": "_recipient",
738
+ "type": "address"
739
+ },
740
+ {
741
+ "name": "_miniAddys",
742
+ "type": "tuple",
743
+ "components": [
744
+ {
745
+ "name": "ledger",
746
+ "type": "address"
747
+ },
748
+ {
749
+ "name": "missionControl",
750
+ "type": "address"
751
+ },
752
+ {
753
+ "name": "legoBook",
754
+ "type": "address"
755
+ },
756
+ {
757
+ "name": "appraiser",
758
+ "type": "address"
759
+ }
760
+ ]
761
+ }
762
+ ],
763
+ "outputs": [
764
+ {
765
+ "name": "",
766
+ "type": "uint256"
767
+ },
768
+ {
769
+ "name": "",
770
+ "type": "uint256"
771
+ },
772
+ {
773
+ "name": "",
774
+ "type": "uint256"
775
+ },
776
+ {
777
+ "name": "",
778
+ "type": "uint256"
779
+ },
780
+ {
781
+ "name": "",
782
+ "type": "uint256"
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "stateMutability": "nonpayable",
788
+ "type": "function",
789
+ "name": "removeLiquidityConcentrated",
790
+ "inputs": [
791
+ {
792
+ "name": "_nftTokenId",
793
+ "type": "uint256"
794
+ },
795
+ {
796
+ "name": "_pool",
797
+ "type": "address"
798
+ },
799
+ {
800
+ "name": "_tokenA",
801
+ "type": "address"
802
+ },
803
+ {
804
+ "name": "_tokenB",
805
+ "type": "address"
806
+ },
807
+ {
808
+ "name": "_liqToRemove",
809
+ "type": "uint256"
810
+ },
811
+ {
812
+ "name": "_minAmountA",
813
+ "type": "uint256"
814
+ },
815
+ {
816
+ "name": "_minAmountB",
817
+ "type": "uint256"
818
+ },
819
+ {
820
+ "name": "_extraData",
821
+ "type": "bytes32"
822
+ },
823
+ {
824
+ "name": "_recipient",
825
+ "type": "address"
826
+ }
827
+ ],
828
+ "outputs": [
829
+ {
830
+ "name": "",
831
+ "type": "uint256"
832
+ },
833
+ {
834
+ "name": "",
835
+ "type": "uint256"
836
+ },
837
+ {
838
+ "name": "",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "name": "",
843
+ "type": "bool"
844
+ },
845
+ {
846
+ "name": "",
847
+ "type": "uint256"
848
+ }
849
+ ]
850
+ },
851
+ {
852
+ "stateMutability": "nonpayable",
853
+ "type": "function",
854
+ "name": "removeLiquidityConcentrated",
855
+ "inputs": [
856
+ {
857
+ "name": "_nftTokenId",
858
+ "type": "uint256"
859
+ },
860
+ {
861
+ "name": "_pool",
862
+ "type": "address"
863
+ },
864
+ {
865
+ "name": "_tokenA",
866
+ "type": "address"
867
+ },
868
+ {
869
+ "name": "_tokenB",
870
+ "type": "address"
871
+ },
872
+ {
873
+ "name": "_liqToRemove",
874
+ "type": "uint256"
875
+ },
876
+ {
877
+ "name": "_minAmountA",
878
+ "type": "uint256"
879
+ },
880
+ {
881
+ "name": "_minAmountB",
882
+ "type": "uint256"
883
+ },
884
+ {
885
+ "name": "_extraData",
886
+ "type": "bytes32"
887
+ },
888
+ {
889
+ "name": "_recipient",
890
+ "type": "address"
891
+ },
892
+ {
893
+ "name": "_miniAddys",
894
+ "type": "tuple",
895
+ "components": [
896
+ {
897
+ "name": "ledger",
898
+ "type": "address"
899
+ },
900
+ {
901
+ "name": "missionControl",
902
+ "type": "address"
903
+ },
904
+ {
905
+ "name": "legoBook",
906
+ "type": "address"
907
+ },
908
+ {
909
+ "name": "appraiser",
910
+ "type": "address"
911
+ }
912
+ ]
913
+ }
914
+ ],
915
+ "outputs": [
916
+ {
917
+ "name": "",
918
+ "type": "uint256"
919
+ },
920
+ {
921
+ "name": "",
922
+ "type": "uint256"
923
+ },
924
+ {
925
+ "name": "",
926
+ "type": "uint256"
927
+ },
928
+ {
929
+ "name": "",
930
+ "type": "bool"
931
+ },
932
+ {
933
+ "name": "",
934
+ "type": "uint256"
935
+ }
936
+ ]
937
+ },
938
+ {
939
+ "stateMutability": "view",
940
+ "type": "function",
941
+ "name": "getLpToken",
942
+ "inputs": [
943
+ {
944
+ "name": "_pool",
945
+ "type": "address"
946
+ }
947
+ ],
948
+ "outputs": [
949
+ {
950
+ "name": "",
951
+ "type": "address"
952
+ }
953
+ ]
954
+ },
955
+ {
956
+ "stateMutability": "view",
957
+ "type": "function",
958
+ "name": "getPoolForLpToken",
959
+ "inputs": [
960
+ {
961
+ "name": "_lpToken",
962
+ "type": "address"
963
+ }
964
+ ],
965
+ "outputs": [
966
+ {
967
+ "name": "",
968
+ "type": "address"
969
+ }
970
+ ]
971
+ },
972
+ {
973
+ "stateMutability": "view",
974
+ "type": "function",
975
+ "name": "getCoreRouterPool",
976
+ "inputs": [],
977
+ "outputs": [
978
+ {
979
+ "name": "",
980
+ "type": "address"
981
+ }
982
+ ]
983
+ },
984
+ {
985
+ "stateMutability": "view",
986
+ "type": "function",
987
+ "name": "getDeepestLiqPool",
988
+ "inputs": [
989
+ {
990
+ "name": "_tokenA",
991
+ "type": "address"
992
+ },
993
+ {
994
+ "name": "_tokenB",
995
+ "type": "address"
996
+ }
997
+ ],
998
+ "outputs": [
999
+ {
1000
+ "name": "",
1001
+ "type": "tuple",
1002
+ "components": [
1003
+ {
1004
+ "name": "pool",
1005
+ "type": "address"
1006
+ },
1007
+ {
1008
+ "name": "fee",
1009
+ "type": "uint256"
1010
+ },
1011
+ {
1012
+ "name": "liquidity",
1013
+ "type": "uint256"
1014
+ },
1015
+ {
1016
+ "name": "numCoins",
1017
+ "type": "uint256"
1018
+ }
1019
+ ]
1020
+ }
1021
+ ]
1022
+ },
1023
+ {
1024
+ "stateMutability": "nonpayable",
1025
+ "type": "function",
1026
+ "name": "getBestSwapAmountOut",
1027
+ "inputs": [
1028
+ {
1029
+ "name": "_tokenIn",
1030
+ "type": "address"
1031
+ },
1032
+ {
1033
+ "name": "_tokenOut",
1034
+ "type": "address"
1035
+ },
1036
+ {
1037
+ "name": "_amountIn",
1038
+ "type": "uint256"
1039
+ }
1040
+ ],
1041
+ "outputs": [
1042
+ {
1043
+ "name": "",
1044
+ "type": "address"
1045
+ },
1046
+ {
1047
+ "name": "",
1048
+ "type": "uint256"
1049
+ }
1050
+ ]
1051
+ },
1052
+ {
1053
+ "stateMutability": "nonpayable",
1054
+ "type": "function",
1055
+ "name": "getSwapAmountOut",
1056
+ "inputs": [
1057
+ {
1058
+ "name": "_pool",
1059
+ "type": "address"
1060
+ },
1061
+ {
1062
+ "name": "_tokenIn",
1063
+ "type": "address"
1064
+ },
1065
+ {
1066
+ "name": "_tokenOut",
1067
+ "type": "address"
1068
+ },
1069
+ {
1070
+ "name": "_amountIn",
1071
+ "type": "uint256"
1072
+ }
1073
+ ],
1074
+ "outputs": [
1075
+ {
1076
+ "name": "",
1077
+ "type": "uint256"
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ "stateMutability": "nonpayable",
1083
+ "type": "function",
1084
+ "name": "getBestSwapAmountIn",
1085
+ "inputs": [
1086
+ {
1087
+ "name": "_tokenIn",
1088
+ "type": "address"
1089
+ },
1090
+ {
1091
+ "name": "_tokenOut",
1092
+ "type": "address"
1093
+ },
1094
+ {
1095
+ "name": "_amountOut",
1096
+ "type": "uint256"
1097
+ }
1098
+ ],
1099
+ "outputs": [
1100
+ {
1101
+ "name": "",
1102
+ "type": "address"
1103
+ },
1104
+ {
1105
+ "name": "",
1106
+ "type": "uint256"
1107
+ }
1108
+ ]
1109
+ },
1110
+ {
1111
+ "stateMutability": "nonpayable",
1112
+ "type": "function",
1113
+ "name": "getSwapAmountIn",
1114
+ "inputs": [
1115
+ {
1116
+ "name": "_pool",
1117
+ "type": "address"
1118
+ },
1119
+ {
1120
+ "name": "_tokenIn",
1121
+ "type": "address"
1122
+ },
1123
+ {
1124
+ "name": "_tokenOut",
1125
+ "type": "address"
1126
+ },
1127
+ {
1128
+ "name": "_amountOut",
1129
+ "type": "uint256"
1130
+ }
1131
+ ],
1132
+ "outputs": [
1133
+ {
1134
+ "name": "",
1135
+ "type": "uint256"
1136
+ }
1137
+ ]
1138
+ },
1139
+ {
1140
+ "stateMutability": "view",
1141
+ "type": "function",
1142
+ "name": "getAddLiqAmountsIn",
1143
+ "inputs": [
1144
+ {
1145
+ "name": "_pool",
1146
+ "type": "address"
1147
+ },
1148
+ {
1149
+ "name": "_tokenA",
1150
+ "type": "address"
1151
+ },
1152
+ {
1153
+ "name": "_tokenB",
1154
+ "type": "address"
1155
+ },
1156
+ {
1157
+ "name": "_availAmountA",
1158
+ "type": "uint256"
1159
+ },
1160
+ {
1161
+ "name": "_availAmountB",
1162
+ "type": "uint256"
1163
+ }
1164
+ ],
1165
+ "outputs": [
1166
+ {
1167
+ "name": "",
1168
+ "type": "uint256"
1169
+ },
1170
+ {
1171
+ "name": "",
1172
+ "type": "uint256"
1173
+ },
1174
+ {
1175
+ "name": "",
1176
+ "type": "uint256"
1177
+ }
1178
+ ]
1179
+ },
1180
+ {
1181
+ "stateMutability": "view",
1182
+ "type": "function",
1183
+ "name": "getRemoveLiqAmountsOut",
1184
+ "inputs": [
1185
+ {
1186
+ "name": "_pool",
1187
+ "type": "address"
1188
+ },
1189
+ {
1190
+ "name": "_tokenA",
1191
+ "type": "address"
1192
+ },
1193
+ {
1194
+ "name": "_tokenB",
1195
+ "type": "address"
1196
+ },
1197
+ {
1198
+ "name": "_lpAmount",
1199
+ "type": "uint256"
1200
+ }
1201
+ ],
1202
+ "outputs": [
1203
+ {
1204
+ "name": "",
1205
+ "type": "uint256"
1206
+ },
1207
+ {
1208
+ "name": "",
1209
+ "type": "uint256"
1210
+ }
1211
+ ]
1212
+ },
1213
+ {
1214
+ "stateMutability": "view",
1215
+ "type": "function",
1216
+ "name": "getPrice",
1217
+ "inputs": [
1218
+ {
1219
+ "name": "_asset",
1220
+ "type": "address"
1221
+ },
1222
+ {
1223
+ "name": "_decimals",
1224
+ "type": "uint256"
1225
+ }
1226
+ ],
1227
+ "outputs": [
1228
+ {
1229
+ "name": "",
1230
+ "type": "uint256"
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ "stateMutability": "view",
1236
+ "type": "function",
1237
+ "name": "getPriceUnsafe",
1238
+ "inputs": [
1239
+ {
1240
+ "name": "_pool",
1241
+ "type": "address"
1242
+ },
1243
+ {
1244
+ "name": "_targetToken",
1245
+ "type": "address"
1246
+ }
1247
+ ],
1248
+ "outputs": [
1249
+ {
1250
+ "name": "",
1251
+ "type": "uint256"
1252
+ }
1253
+ ]
1254
+ },
1255
+ {
1256
+ "stateMutability": "view",
1257
+ "type": "function",
1258
+ "name": "getPriceUnsafe",
1259
+ "inputs": [
1260
+ {
1261
+ "name": "_pool",
1262
+ "type": "address"
1263
+ },
1264
+ {
1265
+ "name": "_targetToken",
1266
+ "type": "address"
1267
+ },
1268
+ {
1269
+ "name": "_appraiser",
1270
+ "type": "address"
1271
+ }
1272
+ ],
1273
+ "outputs": [
1274
+ {
1275
+ "name": "",
1276
+ "type": "uint256"
1277
+ }
1278
+ ]
1279
+ },
1280
+ {
1281
+ "stateMutability": "nonpayable",
1282
+ "type": "function",
1283
+ "name": "recoverNft",
1284
+ "inputs": [
1285
+ {
1286
+ "name": "_collection",
1287
+ "type": "address"
1288
+ },
1289
+ {
1290
+ "name": "_nftTokenId",
1291
+ "type": "uint256"
1292
+ },
1293
+ {
1294
+ "name": "_recipient",
1295
+ "type": "address"
1296
+ }
1297
+ ],
1298
+ "outputs": [
1299
+ {
1300
+ "name": "",
1301
+ "type": "bool"
1302
+ }
1303
+ ]
1304
+ },
1305
+ {
1306
+ "stateMutability": "nonpayable",
1307
+ "type": "function",
1308
+ "name": "depositForYield",
1309
+ "inputs": [
1310
+ {
1311
+ "name": "_asset",
1312
+ "type": "address"
1313
+ },
1314
+ {
1315
+ "name": "_amount",
1316
+ "type": "uint256"
1317
+ },
1318
+ {
1319
+ "name": "_vaultAddr",
1320
+ "type": "address"
1321
+ },
1322
+ {
1323
+ "name": "_extraData",
1324
+ "type": "bytes32"
1325
+ },
1326
+ {
1327
+ "name": "_recipient",
1328
+ "type": "address"
1329
+ }
1330
+ ],
1331
+ "outputs": [
1332
+ {
1333
+ "name": "",
1334
+ "type": "uint256"
1335
+ },
1336
+ {
1337
+ "name": "",
1338
+ "type": "address"
1339
+ },
1340
+ {
1341
+ "name": "",
1342
+ "type": "uint256"
1343
+ },
1344
+ {
1345
+ "name": "",
1346
+ "type": "uint256"
1347
+ }
1348
+ ]
1349
+ },
1350
+ {
1351
+ "stateMutability": "nonpayable",
1352
+ "type": "function",
1353
+ "name": "depositForYield",
1354
+ "inputs": [
1355
+ {
1356
+ "name": "_asset",
1357
+ "type": "address"
1358
+ },
1359
+ {
1360
+ "name": "_amount",
1361
+ "type": "uint256"
1362
+ },
1363
+ {
1364
+ "name": "_vaultAddr",
1365
+ "type": "address"
1366
+ },
1367
+ {
1368
+ "name": "_extraData",
1369
+ "type": "bytes32"
1370
+ },
1371
+ {
1372
+ "name": "_recipient",
1373
+ "type": "address"
1374
+ },
1375
+ {
1376
+ "name": "_miniAddys",
1377
+ "type": "tuple",
1378
+ "components": [
1379
+ {
1380
+ "name": "ledger",
1381
+ "type": "address"
1382
+ },
1383
+ {
1384
+ "name": "missionControl",
1385
+ "type": "address"
1386
+ },
1387
+ {
1388
+ "name": "legoBook",
1389
+ "type": "address"
1390
+ },
1391
+ {
1392
+ "name": "appraiser",
1393
+ "type": "address"
1394
+ }
1395
+ ]
1396
+ }
1397
+ ],
1398
+ "outputs": [
1399
+ {
1400
+ "name": "",
1401
+ "type": "uint256"
1402
+ },
1403
+ {
1404
+ "name": "",
1405
+ "type": "address"
1406
+ },
1407
+ {
1408
+ "name": "",
1409
+ "type": "uint256"
1410
+ },
1411
+ {
1412
+ "name": "",
1413
+ "type": "uint256"
1414
+ }
1415
+ ]
1416
+ },
1417
+ {
1418
+ "stateMutability": "nonpayable",
1419
+ "type": "function",
1420
+ "name": "withdrawFromYield",
1421
+ "inputs": [
1422
+ {
1423
+ "name": "_vaultToken",
1424
+ "type": "address"
1425
+ },
1426
+ {
1427
+ "name": "_amount",
1428
+ "type": "uint256"
1429
+ },
1430
+ {
1431
+ "name": "_extraData",
1432
+ "type": "bytes32"
1433
+ },
1434
+ {
1435
+ "name": "_recipient",
1436
+ "type": "address"
1437
+ }
1438
+ ],
1439
+ "outputs": [
1440
+ {
1441
+ "name": "",
1442
+ "type": "uint256"
1443
+ },
1444
+ {
1445
+ "name": "",
1446
+ "type": "address"
1447
+ },
1448
+ {
1449
+ "name": "",
1450
+ "type": "uint256"
1451
+ },
1452
+ {
1453
+ "name": "",
1454
+ "type": "uint256"
1455
+ }
1456
+ ]
1457
+ },
1458
+ {
1459
+ "stateMutability": "nonpayable",
1460
+ "type": "function",
1461
+ "name": "withdrawFromYield",
1462
+ "inputs": [
1463
+ {
1464
+ "name": "_vaultToken",
1465
+ "type": "address"
1466
+ },
1467
+ {
1468
+ "name": "_amount",
1469
+ "type": "uint256"
1470
+ },
1471
+ {
1472
+ "name": "_extraData",
1473
+ "type": "bytes32"
1474
+ },
1475
+ {
1476
+ "name": "_recipient",
1477
+ "type": "address"
1478
+ },
1479
+ {
1480
+ "name": "_miniAddys",
1481
+ "type": "tuple",
1482
+ "components": [
1483
+ {
1484
+ "name": "ledger",
1485
+ "type": "address"
1486
+ },
1487
+ {
1488
+ "name": "missionControl",
1489
+ "type": "address"
1490
+ },
1491
+ {
1492
+ "name": "legoBook",
1493
+ "type": "address"
1494
+ },
1495
+ {
1496
+ "name": "appraiser",
1497
+ "type": "address"
1498
+ }
1499
+ ]
1500
+ }
1501
+ ],
1502
+ "outputs": [
1503
+ {
1504
+ "name": "",
1505
+ "type": "uint256"
1506
+ },
1507
+ {
1508
+ "name": "",
1509
+ "type": "address"
1510
+ },
1511
+ {
1512
+ "name": "",
1513
+ "type": "uint256"
1514
+ },
1515
+ {
1516
+ "name": "",
1517
+ "type": "uint256"
1518
+ }
1519
+ ]
1520
+ },
1521
+ {
1522
+ "stateMutability": "nonpayable",
1523
+ "type": "function",
1524
+ "name": "mintOrRedeemAsset",
1525
+ "inputs": [
1526
+ {
1527
+ "name": "_tokenIn",
1528
+ "type": "address"
1529
+ },
1530
+ {
1531
+ "name": "_tokenOut",
1532
+ "type": "address"
1533
+ },
1534
+ {
1535
+ "name": "_tokenInAmount",
1536
+ "type": "uint256"
1537
+ },
1538
+ {
1539
+ "name": "_minAmountOut",
1540
+ "type": "uint256"
1541
+ },
1542
+ {
1543
+ "name": "_extraData",
1544
+ "type": "bytes32"
1545
+ },
1546
+ {
1547
+ "name": "_recipient",
1548
+ "type": "address"
1549
+ }
1550
+ ],
1551
+ "outputs": [
1552
+ {
1553
+ "name": "",
1554
+ "type": "uint256"
1555
+ },
1556
+ {
1557
+ "name": "",
1558
+ "type": "uint256"
1559
+ },
1560
+ {
1561
+ "name": "",
1562
+ "type": "bool"
1563
+ },
1564
+ {
1565
+ "name": "",
1566
+ "type": "uint256"
1567
+ }
1568
+ ]
1569
+ },
1570
+ {
1571
+ "stateMutability": "nonpayable",
1572
+ "type": "function",
1573
+ "name": "mintOrRedeemAsset",
1574
+ "inputs": [
1575
+ {
1576
+ "name": "_tokenIn",
1577
+ "type": "address"
1578
+ },
1579
+ {
1580
+ "name": "_tokenOut",
1581
+ "type": "address"
1582
+ },
1583
+ {
1584
+ "name": "_tokenInAmount",
1585
+ "type": "uint256"
1586
+ },
1587
+ {
1588
+ "name": "_minAmountOut",
1589
+ "type": "uint256"
1590
+ },
1591
+ {
1592
+ "name": "_extraData",
1593
+ "type": "bytes32"
1594
+ },
1595
+ {
1596
+ "name": "_recipient",
1597
+ "type": "address"
1598
+ },
1599
+ {
1600
+ "name": "_miniAddys",
1601
+ "type": "tuple",
1602
+ "components": [
1603
+ {
1604
+ "name": "ledger",
1605
+ "type": "address"
1606
+ },
1607
+ {
1608
+ "name": "missionControl",
1609
+ "type": "address"
1610
+ },
1611
+ {
1612
+ "name": "legoBook",
1613
+ "type": "address"
1614
+ },
1615
+ {
1616
+ "name": "appraiser",
1617
+ "type": "address"
1618
+ }
1619
+ ]
1620
+ }
1621
+ ],
1622
+ "outputs": [
1623
+ {
1624
+ "name": "",
1625
+ "type": "uint256"
1626
+ },
1627
+ {
1628
+ "name": "",
1629
+ "type": "uint256"
1630
+ },
1631
+ {
1632
+ "name": "",
1633
+ "type": "bool"
1634
+ },
1635
+ {
1636
+ "name": "",
1637
+ "type": "uint256"
1638
+ }
1639
+ ]
1640
+ },
1641
+ {
1642
+ "stateMutability": "nonpayable",
1643
+ "type": "function",
1644
+ "name": "confirmMintOrRedeemAsset",
1645
+ "inputs": [
1646
+ {
1647
+ "name": "_tokenIn",
1648
+ "type": "address"
1649
+ },
1650
+ {
1651
+ "name": "_tokenOut",
1652
+ "type": "address"
1653
+ },
1654
+ {
1655
+ "name": "_extraData",
1656
+ "type": "bytes32"
1657
+ },
1658
+ {
1659
+ "name": "_recipient",
1660
+ "type": "address"
1661
+ }
1662
+ ],
1663
+ "outputs": [
1664
+ {
1665
+ "name": "",
1666
+ "type": "uint256"
1667
+ },
1668
+ {
1669
+ "name": "",
1670
+ "type": "uint256"
1671
+ }
1672
+ ]
1673
+ },
1674
+ {
1675
+ "stateMutability": "nonpayable",
1676
+ "type": "function",
1677
+ "name": "confirmMintOrRedeemAsset",
1678
+ "inputs": [
1679
+ {
1680
+ "name": "_tokenIn",
1681
+ "type": "address"
1682
+ },
1683
+ {
1684
+ "name": "_tokenOut",
1685
+ "type": "address"
1686
+ },
1687
+ {
1688
+ "name": "_extraData",
1689
+ "type": "bytes32"
1690
+ },
1691
+ {
1692
+ "name": "_recipient",
1693
+ "type": "address"
1694
+ },
1695
+ {
1696
+ "name": "_miniAddys",
1697
+ "type": "tuple",
1698
+ "components": [
1699
+ {
1700
+ "name": "ledger",
1701
+ "type": "address"
1702
+ },
1703
+ {
1704
+ "name": "missionControl",
1705
+ "type": "address"
1706
+ },
1707
+ {
1708
+ "name": "legoBook",
1709
+ "type": "address"
1710
+ },
1711
+ {
1712
+ "name": "appraiser",
1713
+ "type": "address"
1714
+ }
1715
+ ]
1716
+ }
1717
+ ],
1718
+ "outputs": [
1719
+ {
1720
+ "name": "",
1721
+ "type": "uint256"
1722
+ },
1723
+ {
1724
+ "name": "",
1725
+ "type": "uint256"
1726
+ }
1727
+ ]
1728
+ },
1729
+ {
1730
+ "stateMutability": "nonpayable",
1731
+ "type": "function",
1732
+ "name": "addCollateral",
1733
+ "inputs": [
1734
+ {
1735
+ "name": "_asset",
1736
+ "type": "address"
1737
+ },
1738
+ {
1739
+ "name": "_amount",
1740
+ "type": "uint256"
1741
+ },
1742
+ {
1743
+ "name": "_extraData",
1744
+ "type": "bytes32"
1745
+ },
1746
+ {
1747
+ "name": "_recipient",
1748
+ "type": "address"
1749
+ }
1750
+ ],
1751
+ "outputs": [
1752
+ {
1753
+ "name": "",
1754
+ "type": "uint256"
1755
+ },
1756
+ {
1757
+ "name": "",
1758
+ "type": "uint256"
1759
+ }
1760
+ ]
1761
+ },
1762
+ {
1763
+ "stateMutability": "nonpayable",
1764
+ "type": "function",
1765
+ "name": "addCollateral",
1766
+ "inputs": [
1767
+ {
1768
+ "name": "_asset",
1769
+ "type": "address"
1770
+ },
1771
+ {
1772
+ "name": "_amount",
1773
+ "type": "uint256"
1774
+ },
1775
+ {
1776
+ "name": "_extraData",
1777
+ "type": "bytes32"
1778
+ },
1779
+ {
1780
+ "name": "_recipient",
1781
+ "type": "address"
1782
+ },
1783
+ {
1784
+ "name": "_miniAddys",
1785
+ "type": "tuple",
1786
+ "components": [
1787
+ {
1788
+ "name": "ledger",
1789
+ "type": "address"
1790
+ },
1791
+ {
1792
+ "name": "missionControl",
1793
+ "type": "address"
1794
+ },
1795
+ {
1796
+ "name": "legoBook",
1797
+ "type": "address"
1798
+ },
1799
+ {
1800
+ "name": "appraiser",
1801
+ "type": "address"
1802
+ }
1803
+ ]
1804
+ }
1805
+ ],
1806
+ "outputs": [
1807
+ {
1808
+ "name": "",
1809
+ "type": "uint256"
1810
+ },
1811
+ {
1812
+ "name": "",
1813
+ "type": "uint256"
1814
+ }
1815
+ ]
1816
+ },
1817
+ {
1818
+ "stateMutability": "nonpayable",
1819
+ "type": "function",
1820
+ "name": "removeCollateral",
1821
+ "inputs": [
1822
+ {
1823
+ "name": "_asset",
1824
+ "type": "address"
1825
+ },
1826
+ {
1827
+ "name": "_amount",
1828
+ "type": "uint256"
1829
+ },
1830
+ {
1831
+ "name": "_extraData",
1832
+ "type": "bytes32"
1833
+ },
1834
+ {
1835
+ "name": "_recipient",
1836
+ "type": "address"
1837
+ }
1838
+ ],
1839
+ "outputs": [
1840
+ {
1841
+ "name": "",
1842
+ "type": "uint256"
1843
+ },
1844
+ {
1845
+ "name": "",
1846
+ "type": "uint256"
1847
+ }
1848
+ ]
1849
+ },
1850
+ {
1851
+ "stateMutability": "nonpayable",
1852
+ "type": "function",
1853
+ "name": "removeCollateral",
1854
+ "inputs": [
1855
+ {
1856
+ "name": "_asset",
1857
+ "type": "address"
1858
+ },
1859
+ {
1860
+ "name": "_amount",
1861
+ "type": "uint256"
1862
+ },
1863
+ {
1864
+ "name": "_extraData",
1865
+ "type": "bytes32"
1866
+ },
1867
+ {
1868
+ "name": "_recipient",
1869
+ "type": "address"
1870
+ },
1871
+ {
1872
+ "name": "_miniAddys",
1873
+ "type": "tuple",
1874
+ "components": [
1875
+ {
1876
+ "name": "ledger",
1877
+ "type": "address"
1878
+ },
1879
+ {
1880
+ "name": "missionControl",
1881
+ "type": "address"
1882
+ },
1883
+ {
1884
+ "name": "legoBook",
1885
+ "type": "address"
1886
+ },
1887
+ {
1888
+ "name": "appraiser",
1889
+ "type": "address"
1890
+ }
1891
+ ]
1892
+ }
1893
+ ],
1894
+ "outputs": [
1895
+ {
1896
+ "name": "",
1897
+ "type": "uint256"
1898
+ },
1899
+ {
1900
+ "name": "",
1901
+ "type": "uint256"
1902
+ }
1903
+ ]
1904
+ },
1905
+ {
1906
+ "stateMutability": "nonpayable",
1907
+ "type": "function",
1908
+ "name": "borrow",
1909
+ "inputs": [
1910
+ {
1911
+ "name": "_borrowAsset",
1912
+ "type": "address"
1913
+ },
1914
+ {
1915
+ "name": "_amount",
1916
+ "type": "uint256"
1917
+ },
1918
+ {
1919
+ "name": "_extraData",
1920
+ "type": "bytes32"
1921
+ },
1922
+ {
1923
+ "name": "_recipient",
1924
+ "type": "address"
1925
+ }
1926
+ ],
1927
+ "outputs": [
1928
+ {
1929
+ "name": "",
1930
+ "type": "uint256"
1931
+ },
1932
+ {
1933
+ "name": "",
1934
+ "type": "uint256"
1935
+ }
1936
+ ]
1937
+ },
1938
+ {
1939
+ "stateMutability": "nonpayable",
1940
+ "type": "function",
1941
+ "name": "borrow",
1942
+ "inputs": [
1943
+ {
1944
+ "name": "_borrowAsset",
1945
+ "type": "address"
1946
+ },
1947
+ {
1948
+ "name": "_amount",
1949
+ "type": "uint256"
1950
+ },
1951
+ {
1952
+ "name": "_extraData",
1953
+ "type": "bytes32"
1954
+ },
1955
+ {
1956
+ "name": "_recipient",
1957
+ "type": "address"
1958
+ },
1959
+ {
1960
+ "name": "_miniAddys",
1961
+ "type": "tuple",
1962
+ "components": [
1963
+ {
1964
+ "name": "ledger",
1965
+ "type": "address"
1966
+ },
1967
+ {
1968
+ "name": "missionControl",
1969
+ "type": "address"
1970
+ },
1971
+ {
1972
+ "name": "legoBook",
1973
+ "type": "address"
1974
+ },
1975
+ {
1976
+ "name": "appraiser",
1977
+ "type": "address"
1978
+ }
1979
+ ]
1980
+ }
1981
+ ],
1982
+ "outputs": [
1983
+ {
1984
+ "name": "",
1985
+ "type": "uint256"
1986
+ },
1987
+ {
1988
+ "name": "",
1989
+ "type": "uint256"
1990
+ }
1991
+ ]
1992
+ },
1993
+ {
1994
+ "stateMutability": "nonpayable",
1995
+ "type": "function",
1996
+ "name": "repayDebt",
1997
+ "inputs": [
1998
+ {
1999
+ "name": "_paymentAsset",
2000
+ "type": "address"
2001
+ },
2002
+ {
2003
+ "name": "_paymentAmount",
2004
+ "type": "uint256"
2005
+ },
2006
+ {
2007
+ "name": "_extraData",
2008
+ "type": "bytes32"
2009
+ },
2010
+ {
2011
+ "name": "_recipient",
2012
+ "type": "address"
2013
+ }
2014
+ ],
2015
+ "outputs": [
2016
+ {
2017
+ "name": "",
2018
+ "type": "uint256"
2019
+ },
2020
+ {
2021
+ "name": "",
2022
+ "type": "uint256"
2023
+ }
2024
+ ]
2025
+ },
2026
+ {
2027
+ "stateMutability": "nonpayable",
2028
+ "type": "function",
2029
+ "name": "repayDebt",
2030
+ "inputs": [
2031
+ {
2032
+ "name": "_paymentAsset",
2033
+ "type": "address"
2034
+ },
2035
+ {
2036
+ "name": "_paymentAmount",
2037
+ "type": "uint256"
2038
+ },
2039
+ {
2040
+ "name": "_extraData",
2041
+ "type": "bytes32"
2042
+ },
2043
+ {
2044
+ "name": "_recipient",
2045
+ "type": "address"
2046
+ },
2047
+ {
2048
+ "name": "_miniAddys",
2049
+ "type": "tuple",
2050
+ "components": [
2051
+ {
2052
+ "name": "ledger",
2053
+ "type": "address"
2054
+ },
2055
+ {
2056
+ "name": "missionControl",
2057
+ "type": "address"
2058
+ },
2059
+ {
2060
+ "name": "legoBook",
2061
+ "type": "address"
2062
+ },
2063
+ {
2064
+ "name": "appraiser",
2065
+ "type": "address"
2066
+ }
2067
+ ]
2068
+ }
2069
+ ],
2070
+ "outputs": [
2071
+ {
2072
+ "name": "",
2073
+ "type": "uint256"
2074
+ },
2075
+ {
2076
+ "name": "",
2077
+ "type": "uint256"
2078
+ }
2079
+ ]
2080
+ },
2081
+ {
2082
+ "stateMutability": "nonpayable",
2083
+ "type": "function",
2084
+ "name": "claimRewards",
2085
+ "inputs": [
2086
+ {
2087
+ "name": "_user",
2088
+ "type": "address"
2089
+ },
2090
+ {
2091
+ "name": "_rewardToken",
2092
+ "type": "address"
2093
+ },
2094
+ {
2095
+ "name": "_rewardAmount",
2096
+ "type": "uint256"
2097
+ },
2098
+ {
2099
+ "name": "_extraData",
2100
+ "type": "bytes32"
2101
+ }
2102
+ ],
2103
+ "outputs": [
2104
+ {
2105
+ "name": "",
2106
+ "type": "uint256"
2107
+ },
2108
+ {
2109
+ "name": "",
2110
+ "type": "uint256"
2111
+ }
2112
+ ]
2113
+ },
2114
+ {
2115
+ "stateMutability": "nonpayable",
2116
+ "type": "function",
2117
+ "name": "claimRewards",
2118
+ "inputs": [
2119
+ {
2120
+ "name": "_user",
2121
+ "type": "address"
2122
+ },
2123
+ {
2124
+ "name": "_rewardToken",
2125
+ "type": "address"
2126
+ },
2127
+ {
2128
+ "name": "_rewardAmount",
2129
+ "type": "uint256"
2130
+ },
2131
+ {
2132
+ "name": "_extraData",
2133
+ "type": "bytes32"
2134
+ },
2135
+ {
2136
+ "name": "_miniAddys",
2137
+ "type": "tuple",
2138
+ "components": [
2139
+ {
2140
+ "name": "ledger",
2141
+ "type": "address"
2142
+ },
2143
+ {
2144
+ "name": "missionControl",
2145
+ "type": "address"
2146
+ },
2147
+ {
2148
+ "name": "legoBook",
2149
+ "type": "address"
2150
+ },
2151
+ {
2152
+ "name": "appraiser",
2153
+ "type": "address"
2154
+ }
2155
+ ]
2156
+ }
2157
+ ],
2158
+ "outputs": [
2159
+ {
2160
+ "name": "",
2161
+ "type": "uint256"
2162
+ },
2163
+ {
2164
+ "name": "",
2165
+ "type": "uint256"
2166
+ }
2167
+ ]
2168
+ },
2169
+ {
2170
+ "stateMutability": "nonpayable",
2171
+ "type": "function",
2172
+ "name": "claimIncentives",
2173
+ "inputs": [
2174
+ {
2175
+ "name": "_user",
2176
+ "type": "address"
2177
+ },
2178
+ {
2179
+ "name": "_rewardToken",
2180
+ "type": "address"
2181
+ },
2182
+ {
2183
+ "name": "_rewardAmount",
2184
+ "type": "uint256"
2185
+ },
2186
+ {
2187
+ "name": "_proofs",
2188
+ "type": "bytes32[]"
2189
+ }
2190
+ ],
2191
+ "outputs": [
2192
+ {
2193
+ "name": "",
2194
+ "type": "uint256"
2195
+ },
2196
+ {
2197
+ "name": "",
2198
+ "type": "uint256"
2199
+ }
2200
+ ]
2201
+ },
2202
+ {
2203
+ "stateMutability": "nonpayable",
2204
+ "type": "function",
2205
+ "name": "claimIncentives",
2206
+ "inputs": [
2207
+ {
2208
+ "name": "_user",
2209
+ "type": "address"
2210
+ },
2211
+ {
2212
+ "name": "_rewardToken",
2213
+ "type": "address"
2214
+ },
2215
+ {
2216
+ "name": "_rewardAmount",
2217
+ "type": "uint256"
2218
+ },
2219
+ {
2220
+ "name": "_proofs",
2221
+ "type": "bytes32[]"
2222
+ },
2223
+ {
2224
+ "name": "_miniAddys",
2225
+ "type": "tuple",
2226
+ "components": [
2227
+ {
2228
+ "name": "ledger",
2229
+ "type": "address"
2230
+ },
2231
+ {
2232
+ "name": "missionControl",
2233
+ "type": "address"
2234
+ },
2235
+ {
2236
+ "name": "legoBook",
2237
+ "type": "address"
2238
+ },
2239
+ {
2240
+ "name": "appraiser",
2241
+ "type": "address"
2242
+ }
2243
+ ]
2244
+ }
2245
+ ],
2246
+ "outputs": [
2247
+ {
2248
+ "name": "",
2249
+ "type": "uint256"
2250
+ },
2251
+ {
2252
+ "name": "",
2253
+ "type": "uint256"
2254
+ }
2255
+ ]
2256
+ },
2257
+ {
2258
+ "stateMutability": "nonpayable",
2259
+ "type": "function",
2260
+ "name": "addLiquidity",
2261
+ "inputs": [
2262
+ {
2263
+ "name": "_pool",
2264
+ "type": "address"
2265
+ },
2266
+ {
2267
+ "name": "_tokenA",
2268
+ "type": "address"
2269
+ },
2270
+ {
2271
+ "name": "_tokenB",
2272
+ "type": "address"
2273
+ },
2274
+ {
2275
+ "name": "_amountA",
2276
+ "type": "uint256"
2277
+ },
2278
+ {
2279
+ "name": "_amountB",
2280
+ "type": "uint256"
2281
+ },
2282
+ {
2283
+ "name": "_minAmountA",
2284
+ "type": "uint256"
2285
+ },
2286
+ {
2287
+ "name": "_minAmountB",
2288
+ "type": "uint256"
2289
+ },
2290
+ {
2291
+ "name": "_minLpAmount",
2292
+ "type": "uint256"
2293
+ },
2294
+ {
2295
+ "name": "_extraData",
2296
+ "type": "bytes32"
2297
+ },
2298
+ {
2299
+ "name": "_recipient",
2300
+ "type": "address"
2301
+ }
2302
+ ],
2303
+ "outputs": [
2304
+ {
2305
+ "name": "",
2306
+ "type": "address"
2307
+ },
2308
+ {
2309
+ "name": "",
2310
+ "type": "uint256"
2311
+ },
2312
+ {
2313
+ "name": "",
2314
+ "type": "uint256"
2315
+ },
2316
+ {
2317
+ "name": "",
2318
+ "type": "uint256"
2319
+ },
2320
+ {
2321
+ "name": "",
2322
+ "type": "uint256"
2323
+ }
2324
+ ]
2325
+ },
2326
+ {
2327
+ "stateMutability": "nonpayable",
2328
+ "type": "function",
2329
+ "name": "addLiquidity",
2330
+ "inputs": [
2331
+ {
2332
+ "name": "_pool",
2333
+ "type": "address"
2334
+ },
2335
+ {
2336
+ "name": "_tokenA",
2337
+ "type": "address"
2338
+ },
2339
+ {
2340
+ "name": "_tokenB",
2341
+ "type": "address"
2342
+ },
2343
+ {
2344
+ "name": "_amountA",
2345
+ "type": "uint256"
2346
+ },
2347
+ {
2348
+ "name": "_amountB",
2349
+ "type": "uint256"
2350
+ },
2351
+ {
2352
+ "name": "_minAmountA",
2353
+ "type": "uint256"
2354
+ },
2355
+ {
2356
+ "name": "_minAmountB",
2357
+ "type": "uint256"
2358
+ },
2359
+ {
2360
+ "name": "_minLpAmount",
2361
+ "type": "uint256"
2362
+ },
2363
+ {
2364
+ "name": "_extraData",
2365
+ "type": "bytes32"
2366
+ },
2367
+ {
2368
+ "name": "_recipient",
2369
+ "type": "address"
2370
+ },
2371
+ {
2372
+ "name": "_miniAddys",
2373
+ "type": "tuple",
2374
+ "components": [
2375
+ {
2376
+ "name": "ledger",
2377
+ "type": "address"
2378
+ },
2379
+ {
2380
+ "name": "missionControl",
2381
+ "type": "address"
2382
+ },
2383
+ {
2384
+ "name": "legoBook",
2385
+ "type": "address"
2386
+ },
2387
+ {
2388
+ "name": "appraiser",
2389
+ "type": "address"
2390
+ }
2391
+ ]
2392
+ }
2393
+ ],
2394
+ "outputs": [
2395
+ {
2396
+ "name": "",
2397
+ "type": "address"
2398
+ },
2399
+ {
2400
+ "name": "",
2401
+ "type": "uint256"
2402
+ },
2403
+ {
2404
+ "name": "",
2405
+ "type": "uint256"
2406
+ },
2407
+ {
2408
+ "name": "",
2409
+ "type": "uint256"
2410
+ },
2411
+ {
2412
+ "name": "",
2413
+ "type": "uint256"
2414
+ }
2415
+ ]
2416
+ },
2417
+ {
2418
+ "stateMutability": "nonpayable",
2419
+ "type": "function",
2420
+ "name": "removeLiquidity",
2421
+ "inputs": [
2422
+ {
2423
+ "name": "_pool",
2424
+ "type": "address"
2425
+ },
2426
+ {
2427
+ "name": "_tokenA",
2428
+ "type": "address"
2429
+ },
2430
+ {
2431
+ "name": "_tokenB",
2432
+ "type": "address"
2433
+ },
2434
+ {
2435
+ "name": "_lpToken",
2436
+ "type": "address"
2437
+ },
2438
+ {
2439
+ "name": "_lpAmount",
2440
+ "type": "uint256"
2441
+ },
2442
+ {
2443
+ "name": "_minAmountA",
2444
+ "type": "uint256"
2445
+ },
2446
+ {
2447
+ "name": "_minAmountB",
2448
+ "type": "uint256"
2449
+ },
2450
+ {
2451
+ "name": "_extraData",
2452
+ "type": "bytes32"
2453
+ },
2454
+ {
2455
+ "name": "_recipient",
2456
+ "type": "address"
2457
+ }
2458
+ ],
2459
+ "outputs": [
2460
+ {
2461
+ "name": "",
2462
+ "type": "uint256"
2463
+ },
2464
+ {
2465
+ "name": "",
2466
+ "type": "uint256"
2467
+ },
2468
+ {
2469
+ "name": "",
2470
+ "type": "uint256"
2471
+ },
2472
+ {
2473
+ "name": "",
2474
+ "type": "uint256"
2475
+ }
2476
+ ]
2477
+ },
2478
+ {
2479
+ "stateMutability": "nonpayable",
2480
+ "type": "function",
2481
+ "name": "removeLiquidity",
2482
+ "inputs": [
2483
+ {
2484
+ "name": "_pool",
2485
+ "type": "address"
2486
+ },
2487
+ {
2488
+ "name": "_tokenA",
2489
+ "type": "address"
2490
+ },
2491
+ {
2492
+ "name": "_tokenB",
2493
+ "type": "address"
2494
+ },
2495
+ {
2496
+ "name": "_lpToken",
2497
+ "type": "address"
2498
+ },
2499
+ {
2500
+ "name": "_lpAmount",
2501
+ "type": "uint256"
2502
+ },
2503
+ {
2504
+ "name": "_minAmountA",
2505
+ "type": "uint256"
2506
+ },
2507
+ {
2508
+ "name": "_minAmountB",
2509
+ "type": "uint256"
2510
+ },
2511
+ {
2512
+ "name": "_extraData",
2513
+ "type": "bytes32"
2514
+ },
2515
+ {
2516
+ "name": "_recipient",
2517
+ "type": "address"
2518
+ },
2519
+ {
2520
+ "name": "_miniAddys",
2521
+ "type": "tuple",
2522
+ "components": [
2523
+ {
2524
+ "name": "ledger",
2525
+ "type": "address"
2526
+ },
2527
+ {
2528
+ "name": "missionControl",
2529
+ "type": "address"
2530
+ },
2531
+ {
2532
+ "name": "legoBook",
2533
+ "type": "address"
2534
+ },
2535
+ {
2536
+ "name": "appraiser",
2537
+ "type": "address"
2538
+ }
2539
+ ]
2540
+ }
2541
+ ],
2542
+ "outputs": [
2543
+ {
2544
+ "name": "",
2545
+ "type": "uint256"
2546
+ },
2547
+ {
2548
+ "name": "",
2549
+ "type": "uint256"
2550
+ },
2551
+ {
2552
+ "name": "",
2553
+ "type": "uint256"
2554
+ },
2555
+ {
2556
+ "name": "",
2557
+ "type": "uint256"
2558
+ }
2559
+ ]
2560
+ },
2561
+ {
2562
+ "stateMutability": "view",
2563
+ "type": "function",
2564
+ "name": "getAccessForLego",
2565
+ "inputs": [
2566
+ {
2567
+ "name": "_user",
2568
+ "type": "address"
2569
+ },
2570
+ {
2571
+ "name": "_action",
2572
+ "type": "uint256"
2573
+ }
2574
+ ],
2575
+ "outputs": [
2576
+ {
2577
+ "name": "",
2578
+ "type": "address"
2579
+ },
2580
+ {
2581
+ "name": "",
2582
+ "type": "string"
2583
+ },
2584
+ {
2585
+ "name": "",
2586
+ "type": "uint256"
2587
+ }
2588
+ ]
2589
+ },
2590
+ {
2591
+ "stateMutability": "view",
2592
+ "type": "function",
2593
+ "name": "UNIV3_FACTORY",
2594
+ "inputs": [],
2595
+ "outputs": [
2596
+ {
2597
+ "name": "",
2598
+ "type": "address"
2599
+ }
2600
+ ]
2601
+ },
2602
+ {
2603
+ "stateMutability": "view",
2604
+ "type": "function",
2605
+ "name": "UNIV3_NFT_MANAGER",
2606
+ "inputs": [],
2607
+ "outputs": [
2608
+ {
2609
+ "name": "",
2610
+ "type": "address"
2611
+ }
2612
+ ]
2613
+ },
2614
+ {
2615
+ "stateMutability": "view",
2616
+ "type": "function",
2617
+ "name": "UNIV3_QUOTER",
2618
+ "inputs": [],
2619
+ "outputs": [
2620
+ {
2621
+ "name": "",
2622
+ "type": "address"
2623
+ }
2624
+ ]
2625
+ },
2626
+ {
2627
+ "stateMutability": "view",
2628
+ "type": "function",
2629
+ "name": "RIPE_REGISTRY",
2630
+ "inputs": [],
2631
+ "outputs": [
2632
+ {
2633
+ "name": "",
2634
+ "type": "address"
2635
+ }
2636
+ ]
2637
+ },
2638
+ {
2639
+ "stateMutability": "view",
2640
+ "type": "function",
2641
+ "name": "coreRouterPool",
2642
+ "inputs": [],
2643
+ "outputs": [
2644
+ {
2645
+ "name": "",
2646
+ "type": "address"
2647
+ }
2648
+ ]
2649
+ },
2650
+ {
2651
+ "stateMutability": "nonpayable",
2652
+ "type": "constructor",
2653
+ "inputs": [
2654
+ {
2655
+ "name": "_undyHq",
2656
+ "type": "address"
2657
+ },
2658
+ {
2659
+ "name": "_uniswapV3Factory",
2660
+ "type": "address"
2661
+ },
2662
+ {
2663
+ "name": "_uniNftPositionManager",
2664
+ "type": "address"
2665
+ },
2666
+ {
2667
+ "name": "_uniV3Quoter",
2668
+ "type": "address"
2669
+ },
2670
+ {
2671
+ "name": "_coreRouterPool",
2672
+ "type": "address"
2673
+ },
2674
+ {
2675
+ "name": "_ripeRegistry",
2676
+ "type": "address"
2677
+ }
2678
+ ],
2679
+ "outputs": []
2680
+ }
2681
+ ];
2682
+ export const deployAddress = '0xEa1f7604E751b54AF321636DBc2dc75C0045e7A5';
2683
+ function getRequest(method, args, contractAddressOrOptions) {
2684
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2685
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2686
+ const call = {
2687
+ contractName: 'UniswapV3',
2688
+ method,
2689
+ args,
2690
+ address,
2691
+ deployAddress,
2692
+ defaultValue,
2693
+ getAbi: () => abi,
2694
+ with: (options) => {
2695
+ call.address = options.contractAddress;
2696
+ call.defaultValue = options.defaultValue;
2697
+ return call;
2698
+ },
2699
+ defaultTo: (defaultValue) => {
2700
+ call.defaultValue = defaultValue;
2701
+ return call;
2702
+ },
2703
+ at: (address) => {
2704
+ call.address = address;
2705
+ return call;
2706
+ },
2707
+ };
2708
+ return call;
2709
+ }
2710
+ export const call = {
2711
+ getAddys: (...args) => getRequest('getAddys', args),
2712
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
2713
+ legoId: (...args) => getRequest('legoId', args),
2714
+ isPaused: (...args) => getRequest('isPaused', args),
2715
+ hasCapability: (...args) => getRequest('hasCapability', args),
2716
+ onERC721Received: (...args) => getRequest('onERC721Received', args),
2717
+ getRegistries: (...args) => getRequest('getRegistries', args),
2718
+ isYieldLego: (...args) => getRequest('isYieldLego', args),
2719
+ isDexLego: (...args) => getRequest('isDexLego', args),
2720
+ getLpToken: (...args) => getRequest('getLpToken', args),
2721
+ getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
2722
+ getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
2723
+ getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
2724
+ getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
2725
+ getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
2726
+ getPrice: (...args) => getRequest('getPrice', args),
2727
+ getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
2728
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2729
+ UNIV3_FACTORY: (...args) => getRequest('UNIV3_FACTORY', args),
2730
+ UNIV3_NFT_MANAGER: (...args) => getRequest('UNIV3_NFT_MANAGER', args),
2731
+ UNIV3_QUOTER: (...args) => getRequest('UNIV3_QUOTER', args),
2732
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2733
+ coreRouterPool: (...args) => getRequest('coreRouterPool', args),
2734
+ };
2735
+ function getMutation(functionName) {
2736
+ return {
2737
+ contractName: 'UniswapV3',
2738
+ functionName,
2739
+ deployAddress,
2740
+ argsType: undefined,
2741
+ getAbi: () => abi,
2742
+ };
2743
+ }
2744
+ export const mutation = {
2745
+ pause: getMutation('pause'),
2746
+ recoverFunds: getMutation('recoverFunds'),
2747
+ recoverFundsMany: getMutation('recoverFundsMany'),
2748
+ swapTokens: getMutation('swapTokens'),
2749
+ uniswapV3SwapCallback: getMutation('uniswapV3SwapCallback'),
2750
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
2751
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
2752
+ getBestSwapAmountOut: getMutation('getBestSwapAmountOut'),
2753
+ getSwapAmountOut: getMutation('getSwapAmountOut'),
2754
+ getBestSwapAmountIn: getMutation('getBestSwapAmountIn'),
2755
+ getSwapAmountIn: getMutation('getSwapAmountIn'),
2756
+ recoverNft: getMutation('recoverNft'),
2757
+ depositForYield: getMutation('depositForYield'),
2758
+ withdrawFromYield: getMutation('withdrawFromYield'),
2759
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2760
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
2761
+ addCollateral: getMutation('addCollateral'),
2762
+ removeCollateral: getMutation('removeCollateral'),
2763
+ borrow: getMutation('borrow'),
2764
+ repayDebt: getMutation('repayDebt'),
2765
+ claimRewards: getMutation('claimRewards'),
2766
+ claimIncentives: getMutation('claimIncentives'),
2767
+ addLiquidity: getMutation('addLiquidity'),
2768
+ removeLiquidity: getMutation('removeLiquidity'),
2769
+ };
2770
+ export function parseEvents(eventName, events) {
2771
+ return events.map((event) => {
2772
+ return {
2773
+ event,
2774
+ parsed: parseEventLogs({
2775
+ abi,
2776
+ eventName,
2777
+ logs: [event],
2778
+ }),
2779
+ };
2780
+ });
2781
+ }
2782
+ export function getEventTopic(eventName) {
2783
+ return encodeEventTopics({ abi, eventName })[0];
2784
+ }
2785
+ export function toSdk(publicClient, walletClient, addressResolver) {
2786
+ return {
2787
+ deployAddress,
2788
+ abi,
2789
+ events: {
2790
+ UniswapV3Swap: { topic: getEventTopic('UniswapV3Swap'), parse: (events) => parseEvents('UniswapV3Swap', events) },
2791
+ UniswapV3LiquidityAdded: { topic: getEventTopic('UniswapV3LiquidityAdded'), parse: (events) => parseEvents('UniswapV3LiquidityAdded', events) },
2792
+ UniswapV3LiquidityRemoved: { topic: getEventTopic('UniswapV3LiquidityRemoved'), parse: (events) => parseEvents('UniswapV3LiquidityRemoved', events) },
2793
+ UniswapV3NftRecovered: { topic: getEventTopic('UniswapV3NftRecovered'), parse: (events) => parseEvents('UniswapV3NftRecovered', events) },
2794
+ UniswapV3FeesCollected: { topic: getEventTopic('UniswapV3FeesCollected'), parse: (events) => parseEvents('UniswapV3FeesCollected', events) },
2795
+ LegoPauseModified: { topic: getEventTopic('LegoPauseModified'), parse: (events) => parseEvents('LegoPauseModified', events) },
2796
+ LegoFundsRecovered: { topic: getEventTopic('LegoFundsRecovered'), parse: (events) => parseEvents('LegoFundsRecovered', events) },
2797
+ },
2798
+ // Queries
2799
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),
2800
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args), {}, addressResolver),
2801
+ legoId: (...args) => singleQuery(publicClient, call.legoId(...args), {}, addressResolver),
2802
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args), {}, addressResolver),
2803
+ hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args), {}, addressResolver),
2804
+ onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args), {}, addressResolver),
2805
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args), {}, addressResolver),
2806
+ isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args), {}, addressResolver),
2807
+ isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args), {}, addressResolver),
2808
+ getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args), {}, addressResolver),
2809
+ getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args), {}, addressResolver),
2810
+ getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args), {}, addressResolver),
2811
+ getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args), {}, addressResolver),
2812
+ getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args), {}, addressResolver),
2813
+ getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args), {}, addressResolver),
2814
+ getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args), {}, addressResolver),
2815
+ getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args), {}, addressResolver),
2816
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args), {}, addressResolver),
2817
+ UNIV3_FACTORY: (...args) => singleQuery(publicClient, call.UNIV3_FACTORY(...args), {}, addressResolver),
2818
+ UNIV3_NFT_MANAGER: (...args) => singleQuery(publicClient, call.UNIV3_NFT_MANAGER(...args), {}, addressResolver),
2819
+ UNIV3_QUOTER: (...args) => singleQuery(publicClient, call.UNIV3_QUOTER(...args), {}, addressResolver),
2820
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args), {}, addressResolver),
2821
+ coreRouterPool: (...args) => singleQuery(publicClient, call.coreRouterPool(...args), {}, addressResolver),
2822
+ // Mutations
2823
+ pause: (...args) => mutate(walletClient, mutation.pause, { addressResolver })(...args),
2824
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { addressResolver })(...args),
2825
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany, { addressResolver })(...args),
2826
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { addressResolver })(...args),
2827
+ uniswapV3SwapCallback: (...args) => mutate(walletClient, mutation.uniswapV3SwapCallback, { addressResolver })(...args),
2828
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { addressResolver })(...args),
2829
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { addressResolver })(...args),
2830
+ getBestSwapAmountOut: (...args) => mutate(walletClient, mutation.getBestSwapAmountOut, { addressResolver })(...args),
2831
+ getSwapAmountOut: (...args) => mutate(walletClient, mutation.getSwapAmountOut, { addressResolver })(...args),
2832
+ getBestSwapAmountIn: (...args) => mutate(walletClient, mutation.getBestSwapAmountIn, { addressResolver })(...args),
2833
+ getSwapAmountIn: (...args) => mutate(walletClient, mutation.getSwapAmountIn, { addressResolver })(...args),
2834
+ recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { addressResolver })(...args),
2835
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { addressResolver })(...args),
2836
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { addressResolver })(...args),
2837
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { addressResolver })(...args),
2838
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { addressResolver })(...args),
2839
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { addressResolver })(...args),
2840
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { addressResolver })(...args),
2841
+ borrow: (...args) => mutate(walletClient, mutation.borrow, { addressResolver })(...args),
2842
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { addressResolver })(...args),
2843
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { addressResolver })(...args),
2844
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { addressResolver })(...args),
2845
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { addressResolver })(...args),
2846
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { addressResolver })(...args),
2847
+ };
2848
+ }