@underscore-finance/sdk 1.2.18 → 1.2.20-next.0

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 (177) hide show
  1. package/AGENTS.md +162 -0
  2. package/README.md +17 -116
  3. package/abis.json +181875 -0
  4. package/addresses.json +76 -0
  5. package/dist/contracts/AaveV3.d.ts.map +1 -1
  6. package/dist/contracts/AaveV3.js +1898 -1919
  7. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  8. package/dist/contracts/AeroClassic.js +1518 -1533
  9. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  10. package/dist/contracts/AeroSlipstream.js +1620 -1641
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
  12. package/dist/contracts/AgentSenderGeneric.js +3059 -3074
  13. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
  14. package/dist/contracts/AgentSenderSpecial.js +1474 -1489
  15. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
  16. package/dist/contracts/AgentSenderSpecialSigHelper.js +1728 -1728
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +1899 -1902
  19. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -1
  20. package/dist/contracts/AgentWrapperV1.js +2693 -2708
  21. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -1
  22. package/dist/contracts/AgentWrapperV2.js +1806 -1809
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +404 -410
  25. package/dist/contracts/Avantis.d.ts.map +1 -1
  26. package/dist/contracts/Avantis.js +1905 -1929
  27. package/dist/contracts/Billing.d.ts.map +1 -1
  28. package/dist/contracts/Billing.js +235 -247
  29. package/dist/contracts/ChequeBook.d.ts +294 -0
  30. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  31. package/dist/contracts/ChequeBook.js +1198 -866
  32. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  33. package/dist/contracts/CompoundV3.js +1919 -1943
  34. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -1
  35. package/dist/contracts/ConvertVaultToken.js +31 -31
  36. package/dist/contracts/Curve.d.ts.map +1 -1
  37. package/dist/contracts/Curve.js +787 -802
  38. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  39. package/dist/contracts/DefaultsBase.js +178 -178
  40. package/dist/contracts/ERC20.d.ts.map +1 -1
  41. package/dist/contracts/ERC20.js +186 -192
  42. package/dist/contracts/EarnVault.d.ts.map +1 -1
  43. package/dist/contracts/EarnVault.js +1262 -1292
  44. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
  45. package/dist/contracts/EarnVaultAgent.js +745 -760
  46. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -1
  47. package/dist/contracts/EarnVaultAgentSigHelper.js +665 -665
  48. package/dist/contracts/Euler.d.ts.map +1 -1
  49. package/dist/contracts/Euler.js +1948 -1975
  50. package/dist/contracts/ExtraFi.d.ts.map +1 -1
  51. package/dist/contracts/ExtraFi.js +1929 -1953
  52. package/dist/contracts/Fluid.d.ts.map +1 -1
  53. package/dist/contracts/Fluid.js +1927 -1951
  54. package/dist/contracts/FortyAcres.d.ts.map +1 -1
  55. package/dist/contracts/FortyAcres.js +1916 -1940
  56. package/dist/contracts/Hatchery.d.ts.map +1 -1
  57. package/dist/contracts/Hatchery.js +255 -264
  58. package/dist/contracts/Helpers.d.ts.map +1 -1
  59. package/dist/contracts/Helpers.js +1069 -1123
  60. package/dist/contracts/HighCommand.d.ts.map +1 -1
  61. package/dist/contracts/HighCommand.js +1395 -1407
  62. package/dist/contracts/Kernel.d.ts.map +1 -1
  63. package/dist/contracts/Kernel.js +224 -236
  64. package/dist/contracts/Ledger.d.ts +9 -12
  65. package/dist/contracts/Ledger.d.ts.map +1 -1
  66. package/dist/contracts/Ledger.js +480 -486
  67. package/dist/contracts/LegoBook.d.ts.map +1 -1
  68. package/dist/contracts/LegoBook.js +1069 -1123
  69. package/dist/contracts/LegoTools.d.ts +16 -22
  70. package/dist/contracts/LegoTools.d.ts.map +1 -1
  71. package/dist/contracts/LegoTools.js +1420 -1426
  72. package/dist/contracts/LevgVault.d.ts.map +1 -1
  73. package/dist/contracts/LevgVault.js +1544 -1580
  74. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
  75. package/dist/contracts/LevgVaultAgent.js +1514 -1529
  76. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -1
  77. package/dist/contracts/LevgVaultAgentSigHelper.js +1769 -1769
  78. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
  79. package/dist/contracts/LevgVaultHelper.js +732 -732
  80. package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
  81. package/dist/contracts/LevgVaultTools.js +2118 -2118
  82. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  83. package/dist/contracts/LootDistributor.js +754 -790
  84. package/dist/contracts/Migrator.d.ts.map +1 -1
  85. package/dist/contracts/Migrator.js +168 -174
  86. package/dist/contracts/MissionControl.d.ts.map +1 -1
  87. package/dist/contracts/MissionControl.js +956 -962
  88. package/dist/contracts/Moonwell.d.ts.map +1 -1
  89. package/dist/contracts/Moonwell.js +1918 -1942
  90. package/dist/contracts/Morpho.d.ts.map +1 -1
  91. package/dist/contracts/Morpho.js +1948 -1975
  92. package/dist/contracts/Paymaster.d.ts.map +1 -1
  93. package/dist/contracts/Paymaster.js +1203 -1224
  94. package/dist/contracts/RipeLego.d.ts.map +1 -1
  95. package/dist/contracts/RipeLego.js +2135 -2177
  96. package/dist/contracts/Sentinel.d.ts +32 -41
  97. package/dist/contracts/Sentinel.d.ts.map +1 -1
  98. package/dist/contracts/Sentinel.js +1398 -1398
  99. package/dist/contracts/SignatureHelper.d.ts.map +1 -1
  100. package/dist/contracts/SignatureHelper.js +3202 -3202
  101. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -1
  102. package/dist/contracts/SignatureHelperV1.js +3202 -3202
  103. package/dist/contracts/SkyPsm.d.ts.map +1 -1
  104. package/dist/contracts/SkyPsm.js +1953 -1980
  105. package/dist/contracts/Switchboard.d.ts.map +1 -1
  106. package/dist/contracts/Switchboard.js +1085 -1139
  107. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  108. package/dist/contracts/SwitchboardAlpha.js +2333 -2474
  109. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  110. package/dist/contracts/SwitchboardBravo.js +1138 -1216
  111. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  112. package/dist/contracts/SwitchboardCharlie.js +2296 -2476
  113. package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
  114. package/dist/contracts/UnderscoreLego.js +1894 -1918
  115. package/dist/contracts/UndyAero.d.ts.map +1 -1
  116. package/dist/contracts/UndyAero.js +1342 -1372
  117. package/dist/contracts/UndyBtc.d.ts.map +1 -1
  118. package/dist/contracts/UndyBtc.js +1342 -1372
  119. package/dist/contracts/UndyCbeth.d.ts.map +1 -1
  120. package/dist/contracts/UndyCbeth.js +1342 -1372
  121. package/dist/contracts/UndyEth.d.ts.map +1 -1
  122. package/dist/contracts/UndyEth.js +1342 -1372
  123. package/dist/contracts/UndyEurc.d.ts.map +1 -1
  124. package/dist/contracts/UndyEurc.js +1342 -1372
  125. package/dist/contracts/UndyGho.d.ts.map +1 -1
  126. package/dist/contracts/UndyGho.js +1342 -1372
  127. package/dist/contracts/UndyHq.d.ts.map +1 -1
  128. package/dist/contracts/UndyHq.js +1234 -1300
  129. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  130. package/dist/contracts/UndyRewardsLego.js +1120 -1120
  131. package/dist/contracts/UndyUsd.d.ts.map +1 -1
  132. package/dist/contracts/UndyUsd.js +1342 -1372
  133. package/dist/contracts/UndyUsdV2.d.ts +1762 -0
  134. package/dist/contracts/UndyUsdV2.d.ts.map +1 -0
  135. package/dist/contracts/UndyUsdV2.js +2267 -0
  136. package/dist/contracts/UndyUsds.d.ts.map +1 -1
  137. package/dist/contracts/UndyUsds.js +1342 -1372
  138. package/dist/contracts/UndyVirtual.d.ts.map +1 -1
  139. package/dist/contracts/UndyVirtual.js +1363 -1396
  140. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  141. package/dist/contracts/UniswapV2.js +1518 -1533
  142. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  143. package/dist/contracts/UniswapV3.js +1620 -1641
  144. package/dist/contracts/UserWallet.d.ts.map +1 -1
  145. package/dist/contracts/UserWallet.js +1999 -2005
  146. package/dist/contracts/UserWalletConfig.d.ts +67 -0
  147. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  148. package/dist/contracts/UserWalletConfig.js +2649 -2592
  149. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -1
  150. package/dist/contracts/UserWalletConfigV1.js +2327 -2348
  151. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
  152. package/dist/contracts/UserWalletSignatureHelper.js +3436 -3436
  153. package/dist/contracts/UserWalletV1.d.ts.map +1 -1
  154. package/dist/contracts/UserWalletV1.js +1914 -1920
  155. package/dist/contracts/VaultRegistry.d.ts +11 -14
  156. package/dist/contracts/VaultRegistry.d.ts.map +1 -1
  157. package/dist/contracts/VaultRegistry.js +2343 -2439
  158. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  159. package/dist/contracts/WalletBackpack.js +926 -965
  160. package/dist/contracts/Wasabi.d.ts.map +1 -1
  161. package/dist/contracts/Wasabi.js +1917 -1941
  162. package/dist/contracts/index.d.ts +1 -0
  163. package/dist/contracts/index.d.ts.map +1 -1
  164. package/dist/contracts/index.js +1 -0
  165. package/dist/contracts/sdk.d.ts +2 -0
  166. package/dist/contracts/sdk.d.ts.map +1 -1
  167. package/dist/contracts/sdk.js +2 -0
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +9 -5
  170. package/package.json +44 -24
  171. package/LICENSE +0 -41
  172. package/dist/contracts/Agent.d.ts +0 -3773
  173. package/dist/contracts/Agent.d.ts.map +0 -1
  174. package/dist/contracts/Agent.js +0 -4942
  175. package/dist/getContracts.d.ts +0 -77
  176. package/dist/getContracts.d.ts.map +0 -1
  177. package/dist/getContracts.js +0 -64
@@ -5,1217 +5,1217 @@
5
5
  import { singleQuery } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- stateMutability: 'view',
9
- type: 'function',
10
- name: 'getAddys',
11
- inputs: [],
12
- outputs: [
13
- {
14
- name: '',
15
- type: 'tuple',
16
- components: [
8
+ "stateMutability": "view",
9
+ "type": "function",
10
+ "name": "getAddys",
11
+ "inputs": [],
12
+ "outputs": [
13
+ {
14
+ "name": "",
15
+ "type": "tuple",
16
+ "components": [
17
17
  {
18
- name: 'hq',
19
- type: 'address',
18
+ "name": "hq",
19
+ "type": "address"
20
20
  },
21
21
  {
22
- name: 'undyToken',
23
- type: 'address',
22
+ "name": "undyToken",
23
+ "type": "address"
24
24
  },
25
25
  {
26
- name: 'ledger',
27
- type: 'address',
26
+ "name": "ledger",
27
+ "type": "address"
28
28
  },
29
29
  {
30
- name: 'missionControl',
31
- type: 'address',
30
+ "name": "missionControl",
31
+ "type": "address"
32
32
  },
33
33
  {
34
- name: 'legoBook',
35
- type: 'address',
34
+ "name": "legoBook",
35
+ "type": "address"
36
36
  },
37
37
  {
38
- name: 'switchboard',
39
- type: 'address',
38
+ "name": "switchboard",
39
+ "type": "address"
40
40
  },
41
41
  {
42
- name: 'hatchery',
43
- type: 'address',
42
+ "name": "hatchery",
43
+ "type": "address"
44
44
  },
45
45
  {
46
- name: 'lootDistributor',
47
- type: 'address',
46
+ "name": "lootDistributor",
47
+ "type": "address"
48
48
  },
49
49
  {
50
- name: 'appraiser',
51
- type: 'address',
50
+ "name": "appraiser",
51
+ "type": "address"
52
52
  },
53
53
  {
54
- name: 'walletBackpack',
55
- type: 'address',
54
+ "name": "walletBackpack",
55
+ "type": "address"
56
56
  },
57
57
  {
58
- name: 'billing',
59
- type: 'address',
58
+ "name": "billing",
59
+ "type": "address"
60
60
  },
61
61
  {
62
- name: 'vaultRegistry',
63
- type: 'address',
64
- },
65
- ],
66
- },
67
- ],
62
+ "name": "vaultRegistry",
63
+ "type": "address"
64
+ }
65
+ ]
66
+ }
67
+ ]
68
68
  },
69
69
  {
70
- stateMutability: 'view',
71
- type: 'function',
72
- name: 'getUndyHq',
73
- inputs: [],
74
- outputs: [
75
- {
76
- name: '',
77
- type: 'address',
78
- },
79
- ],
70
+ "stateMutability": "view",
71
+ "type": "function",
72
+ "name": "getUndyHq",
73
+ "inputs": [],
74
+ "outputs": [
75
+ {
76
+ "name": "",
77
+ "type": "address"
78
+ }
79
+ ]
80
80
  },
81
81
  {
82
- stateMutability: 'view',
83
- type: 'function',
84
- name: 'getSwappableUsdcAmount',
85
- inputs: [
82
+ "stateMutability": "view",
83
+ "type": "function",
84
+ "name": "getSwappableUsdcAmount",
85
+ "inputs": [
86
86
  {
87
- name: '_wallet',
88
- type: 'address',
87
+ "name": "_wallet",
88
+ "type": "address"
89
89
  },
90
90
  {
91
- name: '_amountIn',
92
- type: 'uint256',
91
+ "name": "_amountIn",
92
+ "type": "uint256"
93
93
  },
94
94
  {
95
- name: '_leverageVaultToken',
96
- type: 'address',
95
+ "name": "_leverageVaultToken",
96
+ "type": "address"
97
97
  },
98
98
  {
99
- name: '_leverageVaultTokenRipeVaultId',
100
- type: 'uint256',
101
- },
99
+ "name": "_leverageVaultTokenRipeVaultId",
100
+ "type": "uint256"
101
+ }
102
102
  ],
103
- outputs: [
103
+ "outputs": [
104
104
  {
105
- name: '',
106
- type: 'uint256',
107
- },
108
- ],
105
+ "name": "",
106
+ "type": "uint256"
107
+ }
108
+ ]
109
109
  },
110
110
  {
111
- stateMutability: 'view',
112
- type: 'function',
113
- name: 'getSwappableUsdcAmount',
114
- inputs: [
111
+ "stateMutability": "view",
112
+ "type": "function",
113
+ "name": "getSwappableUsdcAmount",
114
+ "inputs": [
115
115
  {
116
- name: '_wallet',
117
- type: 'address',
116
+ "name": "_wallet",
117
+ "type": "address"
118
118
  },
119
119
  {
120
- name: '_amountIn',
121
- type: 'uint256',
120
+ "name": "_amountIn",
121
+ "type": "uint256"
122
122
  },
123
123
  {
124
- name: '_leverageVaultToken',
125
- type: 'address',
124
+ "name": "_leverageVaultToken",
125
+ "type": "address"
126
126
  },
127
127
  {
128
- name: '_leverageVaultTokenRipeVaultId',
129
- type: 'uint256',
128
+ "name": "_leverageVaultTokenRipeVaultId",
129
+ "type": "uint256"
130
130
  },
131
131
  {
132
- name: '_usdc',
133
- type: 'address',
134
- },
132
+ "name": "_usdc",
133
+ "type": "address"
134
+ }
135
135
  ],
136
- outputs: [
136
+ "outputs": [
137
137
  {
138
- name: '',
139
- type: 'uint256',
140
- },
141
- ],
138
+ "name": "",
139
+ "type": "uint256"
140
+ }
141
+ ]
142
142
  },
143
143
  {
144
- stateMutability: 'view',
145
- type: 'function',
146
- name: 'getSwappableUsdcAmount',
147
- inputs: [
144
+ "stateMutability": "view",
145
+ "type": "function",
146
+ "name": "getSwappableUsdcAmount",
147
+ "inputs": [
148
148
  {
149
- name: '_wallet',
150
- type: 'address',
149
+ "name": "_wallet",
150
+ "type": "address"
151
151
  },
152
152
  {
153
- name: '_amountIn',
154
- type: 'uint256',
153
+ "name": "_amountIn",
154
+ "type": "uint256"
155
155
  },
156
156
  {
157
- name: '_leverageVaultToken',
158
- type: 'address',
157
+ "name": "_leverageVaultToken",
158
+ "type": "address"
159
159
  },
160
160
  {
161
- name: '_leverageVaultTokenRipeVaultId',
162
- type: 'uint256',
161
+ "name": "_leverageVaultTokenRipeVaultId",
162
+ "type": "uint256"
163
163
  },
164
164
  {
165
- name: '_usdc',
166
- type: 'address',
165
+ "name": "_usdc",
166
+ "type": "address"
167
167
  },
168
168
  {
169
- name: '_green',
170
- type: 'address',
171
- },
169
+ "name": "_green",
170
+ "type": "address"
171
+ }
172
172
  ],
173
- outputs: [
173
+ "outputs": [
174
174
  {
175
- name: '',
176
- type: 'uint256',
177
- },
178
- ],
175
+ "name": "",
176
+ "type": "uint256"
177
+ }
178
+ ]
179
179
  },
180
180
  {
181
- stateMutability: 'view',
182
- type: 'function',
183
- name: 'getSwappableUsdcAmount',
184
- inputs: [
181
+ "stateMutability": "view",
182
+ "type": "function",
183
+ "name": "getSwappableUsdcAmount",
184
+ "inputs": [
185
185
  {
186
- name: '_wallet',
187
- type: 'address',
186
+ "name": "_wallet",
187
+ "type": "address"
188
188
  },
189
189
  {
190
- name: '_amountIn',
191
- type: 'uint256',
190
+ "name": "_amountIn",
191
+ "type": "uint256"
192
192
  },
193
193
  {
194
- name: '_leverageVaultToken',
195
- type: 'address',
194
+ "name": "_leverageVaultToken",
195
+ "type": "address"
196
196
  },
197
197
  {
198
- name: '_leverageVaultTokenRipeVaultId',
199
- type: 'uint256',
198
+ "name": "_leverageVaultTokenRipeVaultId",
199
+ "type": "uint256"
200
200
  },
201
201
  {
202
- name: '_usdc',
203
- type: 'address',
202
+ "name": "_usdc",
203
+ "type": "address"
204
204
  },
205
205
  {
206
- name: '_green',
207
- type: 'address',
206
+ "name": "_green",
207
+ "type": "address"
208
208
  },
209
209
  {
210
- name: '_savingsGreen',
211
- type: 'address',
212
- },
210
+ "name": "_savingsGreen",
211
+ "type": "address"
212
+ }
213
213
  ],
214
- outputs: [
214
+ "outputs": [
215
215
  {
216
- name: '',
217
- type: 'uint256',
218
- },
219
- ],
216
+ "name": "",
217
+ "type": "uint256"
218
+ }
219
+ ]
220
220
  },
221
221
  {
222
- stateMutability: 'view',
223
- type: 'function',
224
- name: 'getSwappableUsdcAmount',
225
- inputs: [
222
+ "stateMutability": "view",
223
+ "type": "function",
224
+ "name": "getSwappableUsdcAmount",
225
+ "inputs": [
226
226
  {
227
- name: '_wallet',
228
- type: 'address',
227
+ "name": "_wallet",
228
+ "type": "address"
229
229
  },
230
230
  {
231
- name: '_amountIn',
232
- type: 'uint256',
231
+ "name": "_amountIn",
232
+ "type": "uint256"
233
233
  },
234
234
  {
235
- name: '_leverageVaultToken',
236
- type: 'address',
235
+ "name": "_leverageVaultToken",
236
+ "type": "address"
237
237
  },
238
238
  {
239
- name: '_leverageVaultTokenRipeVaultId',
240
- type: 'uint256',
239
+ "name": "_leverageVaultTokenRipeVaultId",
240
+ "type": "uint256"
241
241
  },
242
242
  {
243
- name: '_usdc',
244
- type: 'address',
243
+ "name": "_usdc",
244
+ "type": "address"
245
245
  },
246
246
  {
247
- name: '_green',
248
- type: 'address',
247
+ "name": "_green",
248
+ "type": "address"
249
249
  },
250
250
  {
251
- name: '_savingsGreen',
252
- type: 'address',
251
+ "name": "_savingsGreen",
252
+ "type": "address"
253
253
  },
254
254
  {
255
- name: '_legoBook',
256
- type: 'address',
257
- },
255
+ "name": "_legoBook",
256
+ "type": "address"
257
+ }
258
258
  ],
259
- outputs: [
259
+ "outputs": [
260
260
  {
261
- name: '',
262
- type: 'uint256',
263
- },
264
- ],
261
+ "name": "",
262
+ "type": "uint256"
263
+ }
264
+ ]
265
265
  },
266
266
  {
267
- stateMutability: 'view',
268
- type: 'function',
269
- name: 'getMaxBorrowAmount',
270
- inputs: [
267
+ "stateMutability": "view",
268
+ "type": "function",
269
+ "name": "getMaxBorrowAmount",
270
+ "inputs": [
271
271
  {
272
- name: '_wallet',
273
- type: 'address',
272
+ "name": "_wallet",
273
+ "type": "address"
274
274
  },
275
275
  {
276
- name: '_underlyingAsset',
277
- type: 'address',
276
+ "name": "_underlyingAsset",
277
+ "type": "address"
278
278
  },
279
279
  {
280
- name: '_collateralVaultToken',
281
- type: 'address',
280
+ "name": "_collateralVaultToken",
281
+ "type": "address"
282
282
  },
283
283
  {
284
- name: '_collateralVaultTokenRipeVaultId',
285
- type: 'uint256',
284
+ "name": "_collateralVaultTokenRipeVaultId",
285
+ "type": "uint256"
286
286
  },
287
287
  {
288
- name: '_totalAssets',
289
- type: 'uint256',
288
+ "name": "_totalAssets",
289
+ "type": "uint256"
290
290
  },
291
291
  {
292
- name: '_maxDebtRatio',
293
- type: 'uint256',
294
- },
292
+ "name": "_maxDebtRatio",
293
+ "type": "uint256"
294
+ }
295
295
  ],
296
- outputs: [
296
+ "outputs": [
297
297
  {
298
- name: '',
299
- type: 'uint256',
300
- },
301
- ],
298
+ "name": "",
299
+ "type": "uint256"
300
+ }
301
+ ]
302
302
  },
303
303
  {
304
- stateMutability: 'view',
305
- type: 'function',
306
- name: 'getMaxBorrowAmount',
307
- inputs: [
304
+ "stateMutability": "view",
305
+ "type": "function",
306
+ "name": "getMaxBorrowAmount",
307
+ "inputs": [
308
308
  {
309
- name: '_wallet',
310
- type: 'address',
309
+ "name": "_wallet",
310
+ "type": "address"
311
311
  },
312
312
  {
313
- name: '_underlyingAsset',
314
- type: 'address',
313
+ "name": "_underlyingAsset",
314
+ "type": "address"
315
315
  },
316
316
  {
317
- name: '_collateralVaultToken',
318
- type: 'address',
317
+ "name": "_collateralVaultToken",
318
+ "type": "address"
319
319
  },
320
320
  {
321
- name: '_collateralVaultTokenRipeVaultId',
322
- type: 'uint256',
321
+ "name": "_collateralVaultTokenRipeVaultId",
322
+ "type": "uint256"
323
323
  },
324
324
  {
325
- name: '_totalAssets',
326
- type: 'uint256',
325
+ "name": "_totalAssets",
326
+ "type": "uint256"
327
327
  },
328
328
  {
329
- name: '_maxDebtRatio',
330
- type: 'uint256',
329
+ "name": "_maxDebtRatio",
330
+ "type": "uint256"
331
331
  },
332
332
  {
333
- name: '_legoBook',
334
- type: 'address',
335
- },
333
+ "name": "_legoBook",
334
+ "type": "address"
335
+ }
336
336
  ],
337
- outputs: [
337
+ "outputs": [
338
338
  {
339
- name: '',
340
- type: 'uint256',
341
- },
342
- ],
339
+ "name": "",
340
+ "type": "uint256"
341
+ }
342
+ ]
343
343
  },
344
344
  {
345
- stateMutability: 'view',
346
- type: 'function',
347
- name: 'performPostSwapValidation',
348
- inputs: [
345
+ "stateMutability": "view",
346
+ "type": "function",
347
+ "name": "performPostSwapValidation",
348
+ "inputs": [
349
349
  {
350
- name: '_tokenIn',
351
- type: 'address',
350
+ "name": "_tokenIn",
351
+ "type": "address"
352
352
  },
353
353
  {
354
- name: '_tokenInAmount',
355
- type: 'uint256',
354
+ "name": "_tokenInAmount",
355
+ "type": "uint256"
356
356
  },
357
357
  {
358
- name: '_tokenOut',
359
- type: 'address',
358
+ "name": "_tokenOut",
359
+ "type": "address"
360
360
  },
361
361
  {
362
- name: '_tokenOutAmount',
363
- type: 'uint256',
362
+ "name": "_tokenOutAmount",
363
+ "type": "uint256"
364
364
  },
365
365
  {
366
- name: '_usdcSlippageAllowed',
367
- type: 'uint256',
366
+ "name": "_usdcSlippageAllowed",
367
+ "type": "uint256"
368
368
  },
369
369
  {
370
- name: '_greenSlippageAllowed',
371
- type: 'uint256',
372
- },
370
+ "name": "_greenSlippageAllowed",
371
+ "type": "uint256"
372
+ }
373
373
  ],
374
- outputs: [
374
+ "outputs": [
375
375
  {
376
- name: '',
377
- type: 'bool',
378
- },
379
- ],
376
+ "name": "",
377
+ "type": "bool"
378
+ }
379
+ ]
380
380
  },
381
381
  {
382
- stateMutability: 'view',
383
- type: 'function',
384
- name: 'performPostSwapValidation',
385
- inputs: [
382
+ "stateMutability": "view",
383
+ "type": "function",
384
+ "name": "performPostSwapValidation",
385
+ "inputs": [
386
386
  {
387
- name: '_tokenIn',
388
- type: 'address',
387
+ "name": "_tokenIn",
388
+ "type": "address"
389
389
  },
390
390
  {
391
- name: '_tokenInAmount',
392
- type: 'uint256',
391
+ "name": "_tokenInAmount",
392
+ "type": "uint256"
393
393
  },
394
394
  {
395
- name: '_tokenOut',
396
- type: 'address',
395
+ "name": "_tokenOut",
396
+ "type": "address"
397
397
  },
398
398
  {
399
- name: '_tokenOutAmount',
400
- type: 'uint256',
399
+ "name": "_tokenOutAmount",
400
+ "type": "uint256"
401
401
  },
402
402
  {
403
- name: '_usdcSlippageAllowed',
404
- type: 'uint256',
403
+ "name": "_usdcSlippageAllowed",
404
+ "type": "uint256"
405
405
  },
406
406
  {
407
- name: '_greenSlippageAllowed',
408
- type: 'uint256',
407
+ "name": "_greenSlippageAllowed",
408
+ "type": "uint256"
409
409
  },
410
410
  {
411
- name: '_usdc',
412
- type: 'address',
413
- },
411
+ "name": "_usdc",
412
+ "type": "address"
413
+ }
414
414
  ],
415
- outputs: [
415
+ "outputs": [
416
416
  {
417
- name: '',
418
- type: 'bool',
419
- },
420
- ],
417
+ "name": "",
418
+ "type": "bool"
419
+ }
420
+ ]
421
421
  },
422
422
  {
423
- stateMutability: 'view',
424
- type: 'function',
425
- name: 'performPostSwapValidation',
426
- inputs: [
423
+ "stateMutability": "view",
424
+ "type": "function",
425
+ "name": "performPostSwapValidation",
426
+ "inputs": [
427
427
  {
428
- name: '_tokenIn',
429
- type: 'address',
428
+ "name": "_tokenIn",
429
+ "type": "address"
430
430
  },
431
431
  {
432
- name: '_tokenInAmount',
433
- type: 'uint256',
432
+ "name": "_tokenInAmount",
433
+ "type": "uint256"
434
434
  },
435
435
  {
436
- name: '_tokenOut',
437
- type: 'address',
436
+ "name": "_tokenOut",
437
+ "type": "address"
438
438
  },
439
439
  {
440
- name: '_tokenOutAmount',
441
- type: 'uint256',
440
+ "name": "_tokenOutAmount",
441
+ "type": "uint256"
442
442
  },
443
443
  {
444
- name: '_usdcSlippageAllowed',
445
- type: 'uint256',
444
+ "name": "_usdcSlippageAllowed",
445
+ "type": "uint256"
446
446
  },
447
447
  {
448
- name: '_greenSlippageAllowed',
449
- type: 'uint256',
448
+ "name": "_greenSlippageAllowed",
449
+ "type": "uint256"
450
450
  },
451
451
  {
452
- name: '_usdc',
453
- type: 'address',
452
+ "name": "_usdc",
453
+ "type": "address"
454
454
  },
455
455
  {
456
- name: '_green',
457
- type: 'address',
458
- },
456
+ "name": "_green",
457
+ "type": "address"
458
+ }
459
459
  ],
460
- outputs: [
460
+ "outputs": [
461
461
  {
462
- name: '',
463
- type: 'bool',
464
- },
465
- ],
462
+ "name": "",
463
+ "type": "bool"
464
+ }
465
+ ]
466
466
  },
467
467
  {
468
- stateMutability: 'view',
469
- type: 'function',
470
- name: 'getTotalAssetsForUsdcVault',
471
- inputs: [
468
+ "stateMutability": "view",
469
+ "type": "function",
470
+ "name": "getTotalAssetsForUsdcVault",
471
+ "inputs": [
472
472
  {
473
- name: '_wallet',
474
- type: 'address',
473
+ "name": "_wallet",
474
+ "type": "address"
475
475
  },
476
476
  {
477
- name: '_collateralVaultToken',
478
- type: 'address',
477
+ "name": "_collateralVaultToken",
478
+ "type": "address"
479
479
  },
480
480
  {
481
- name: '_collateralVaultTokenRipeVaultId',
482
- type: 'uint256',
481
+ "name": "_collateralVaultTokenRipeVaultId",
482
+ "type": "uint256"
483
483
  },
484
484
  {
485
- name: '_leverageVaultToken',
486
- type: 'address',
485
+ "name": "_leverageVaultToken",
486
+ "type": "address"
487
487
  },
488
488
  {
489
- name: '_leverageVaultTokenRipeVaultId',
490
- type: 'uint256',
491
- },
489
+ "name": "_leverageVaultTokenRipeVaultId",
490
+ "type": "uint256"
491
+ }
492
492
  ],
493
- outputs: [
493
+ "outputs": [
494
494
  {
495
- name: '',
496
- type: 'uint256',
497
- },
498
- ],
495
+ "name": "",
496
+ "type": "uint256"
497
+ }
498
+ ]
499
499
  },
500
500
  {
501
- stateMutability: 'view',
502
- type: 'function',
503
- name: 'getTotalAssetsForUsdcVault',
504
- inputs: [
501
+ "stateMutability": "view",
502
+ "type": "function",
503
+ "name": "getTotalAssetsForUsdcVault",
504
+ "inputs": [
505
505
  {
506
- name: '_wallet',
507
- type: 'address',
506
+ "name": "_wallet",
507
+ "type": "address"
508
508
  },
509
509
  {
510
- name: '_collateralVaultToken',
511
- type: 'address',
510
+ "name": "_collateralVaultToken",
511
+ "type": "address"
512
512
  },
513
513
  {
514
- name: '_collateralVaultTokenRipeVaultId',
515
- type: 'uint256',
514
+ "name": "_collateralVaultTokenRipeVaultId",
515
+ "type": "uint256"
516
516
  },
517
517
  {
518
- name: '_leverageVaultToken',
519
- type: 'address',
518
+ "name": "_leverageVaultToken",
519
+ "type": "address"
520
520
  },
521
521
  {
522
- name: '_leverageVaultTokenRipeVaultId',
523
- type: 'uint256',
522
+ "name": "_leverageVaultTokenRipeVaultId",
523
+ "type": "uint256"
524
524
  },
525
525
  {
526
- name: '_shouldGetMax',
527
- type: 'bool',
528
- },
526
+ "name": "_shouldGetMax",
527
+ "type": "bool"
528
+ }
529
529
  ],
530
- outputs: [
530
+ "outputs": [
531
531
  {
532
- name: '',
533
- type: 'uint256',
534
- },
535
- ],
532
+ "name": "",
533
+ "type": "uint256"
534
+ }
535
+ ]
536
536
  },
537
537
  {
538
- stateMutability: 'view',
539
- type: 'function',
540
- name: 'getTotalAssetsForUsdcVault',
541
- inputs: [
538
+ "stateMutability": "view",
539
+ "type": "function",
540
+ "name": "getTotalAssetsForUsdcVault",
541
+ "inputs": [
542
542
  {
543
- name: '_wallet',
544
- type: 'address',
543
+ "name": "_wallet",
544
+ "type": "address"
545
545
  },
546
546
  {
547
- name: '_collateralVaultToken',
548
- type: 'address',
547
+ "name": "_collateralVaultToken",
548
+ "type": "address"
549
549
  },
550
550
  {
551
- name: '_collateralVaultTokenRipeVaultId',
552
- type: 'uint256',
551
+ "name": "_collateralVaultTokenRipeVaultId",
552
+ "type": "uint256"
553
553
  },
554
554
  {
555
- name: '_leverageVaultToken',
556
- type: 'address',
555
+ "name": "_leverageVaultToken",
556
+ "type": "address"
557
557
  },
558
558
  {
559
- name: '_leverageVaultTokenRipeVaultId',
560
- type: 'uint256',
559
+ "name": "_leverageVaultTokenRipeVaultId",
560
+ "type": "uint256"
561
561
  },
562
562
  {
563
- name: '_shouldGetMax',
564
- type: 'bool',
563
+ "name": "_shouldGetMax",
564
+ "type": "bool"
565
565
  },
566
566
  {
567
- name: '_usdc',
568
- type: 'address',
569
- },
567
+ "name": "_usdc",
568
+ "type": "address"
569
+ }
570
570
  ],
571
- outputs: [
571
+ "outputs": [
572
572
  {
573
- name: '',
574
- type: 'uint256',
575
- },
576
- ],
573
+ "name": "",
574
+ "type": "uint256"
575
+ }
576
+ ]
577
577
  },
578
578
  {
579
- stateMutability: 'view',
580
- type: 'function',
581
- name: 'getTotalAssetsForUsdcVault',
582
- inputs: [
579
+ "stateMutability": "view",
580
+ "type": "function",
581
+ "name": "getTotalAssetsForUsdcVault",
582
+ "inputs": [
583
583
  {
584
- name: '_wallet',
585
- type: 'address',
584
+ "name": "_wallet",
585
+ "type": "address"
586
586
  },
587
587
  {
588
- name: '_collateralVaultToken',
589
- type: 'address',
588
+ "name": "_collateralVaultToken",
589
+ "type": "address"
590
590
  },
591
591
  {
592
- name: '_collateralVaultTokenRipeVaultId',
593
- type: 'uint256',
592
+ "name": "_collateralVaultTokenRipeVaultId",
593
+ "type": "uint256"
594
594
  },
595
595
  {
596
- name: '_leverageVaultToken',
597
- type: 'address',
596
+ "name": "_leverageVaultToken",
597
+ "type": "address"
598
598
  },
599
599
  {
600
- name: '_leverageVaultTokenRipeVaultId',
601
- type: 'uint256',
600
+ "name": "_leverageVaultTokenRipeVaultId",
601
+ "type": "uint256"
602
602
  },
603
603
  {
604
- name: '_shouldGetMax',
605
- type: 'bool',
604
+ "name": "_shouldGetMax",
605
+ "type": "bool"
606
606
  },
607
607
  {
608
- name: '_usdc',
609
- type: 'address',
608
+ "name": "_usdc",
609
+ "type": "address"
610
610
  },
611
611
  {
612
- name: '_green',
613
- type: 'address',
614
- },
612
+ "name": "_green",
613
+ "type": "address"
614
+ }
615
615
  ],
616
- outputs: [
616
+ "outputs": [
617
617
  {
618
- name: '',
619
- type: 'uint256',
620
- },
621
- ],
618
+ "name": "",
619
+ "type": "uint256"
620
+ }
621
+ ]
622
622
  },
623
623
  {
624
- stateMutability: 'view',
625
- type: 'function',
626
- name: 'getTotalAssetsForUsdcVault',
627
- inputs: [
624
+ "stateMutability": "view",
625
+ "type": "function",
626
+ "name": "getTotalAssetsForUsdcVault",
627
+ "inputs": [
628
628
  {
629
- name: '_wallet',
630
- type: 'address',
629
+ "name": "_wallet",
630
+ "type": "address"
631
631
  },
632
632
  {
633
- name: '_collateralVaultToken',
634
- type: 'address',
633
+ "name": "_collateralVaultToken",
634
+ "type": "address"
635
635
  },
636
636
  {
637
- name: '_collateralVaultTokenRipeVaultId',
638
- type: 'uint256',
637
+ "name": "_collateralVaultTokenRipeVaultId",
638
+ "type": "uint256"
639
639
  },
640
640
  {
641
- name: '_leverageVaultToken',
642
- type: 'address',
641
+ "name": "_leverageVaultToken",
642
+ "type": "address"
643
643
  },
644
644
  {
645
- name: '_leverageVaultTokenRipeVaultId',
646
- type: 'uint256',
645
+ "name": "_leverageVaultTokenRipeVaultId",
646
+ "type": "uint256"
647
647
  },
648
648
  {
649
- name: '_shouldGetMax',
650
- type: 'bool',
649
+ "name": "_shouldGetMax",
650
+ "type": "bool"
651
651
  },
652
652
  {
653
- name: '_usdc',
654
- type: 'address',
653
+ "name": "_usdc",
654
+ "type": "address"
655
655
  },
656
656
  {
657
- name: '_green',
658
- type: 'address',
657
+ "name": "_green",
658
+ "type": "address"
659
659
  },
660
660
  {
661
- name: '_savingsGreen',
662
- type: 'address',
663
- },
661
+ "name": "_savingsGreen",
662
+ "type": "address"
663
+ }
664
664
  ],
665
- outputs: [
665
+ "outputs": [
666
666
  {
667
- name: '',
668
- type: 'uint256',
669
- },
670
- ],
667
+ "name": "",
668
+ "type": "uint256"
669
+ }
670
+ ]
671
671
  },
672
672
  {
673
- stateMutability: 'view',
674
- type: 'function',
675
- name: 'getTotalAssetsForUsdcVault',
676
- inputs: [
673
+ "stateMutability": "view",
674
+ "type": "function",
675
+ "name": "getTotalAssetsForUsdcVault",
676
+ "inputs": [
677
677
  {
678
- name: '_wallet',
679
- type: 'address',
678
+ "name": "_wallet",
679
+ "type": "address"
680
680
  },
681
681
  {
682
- name: '_collateralVaultToken',
683
- type: 'address',
682
+ "name": "_collateralVaultToken",
683
+ "type": "address"
684
684
  },
685
685
  {
686
- name: '_collateralVaultTokenRipeVaultId',
687
- type: 'uint256',
686
+ "name": "_collateralVaultTokenRipeVaultId",
687
+ "type": "uint256"
688
688
  },
689
689
  {
690
- name: '_leverageVaultToken',
691
- type: 'address',
690
+ "name": "_leverageVaultToken",
691
+ "type": "address"
692
692
  },
693
693
  {
694
- name: '_leverageVaultTokenRipeVaultId',
695
- type: 'uint256',
694
+ "name": "_leverageVaultTokenRipeVaultId",
695
+ "type": "uint256"
696
696
  },
697
697
  {
698
- name: '_shouldGetMax',
699
- type: 'bool',
698
+ "name": "_shouldGetMax",
699
+ "type": "bool"
700
700
  },
701
701
  {
702
- name: '_usdc',
703
- type: 'address',
702
+ "name": "_usdc",
703
+ "type": "address"
704
704
  },
705
705
  {
706
- name: '_green',
707
- type: 'address',
706
+ "name": "_green",
707
+ "type": "address"
708
708
  },
709
709
  {
710
- name: '_savingsGreen',
711
- type: 'address',
710
+ "name": "_savingsGreen",
711
+ "type": "address"
712
712
  },
713
713
  {
714
- name: '_legoBook',
715
- type: 'address',
716
- },
714
+ "name": "_legoBook",
715
+ "type": "address"
716
+ }
717
717
  ],
718
- outputs: [
718
+ "outputs": [
719
719
  {
720
- name: '',
721
- type: 'uint256',
722
- },
723
- ],
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ]
724
724
  },
725
725
  {
726
- stateMutability: 'view',
727
- type: 'function',
728
- name: 'getTotalAssetsForNonUsdcVault',
729
- inputs: [
726
+ "stateMutability": "view",
727
+ "type": "function",
728
+ "name": "getTotalAssetsForNonUsdcVault",
729
+ "inputs": [
730
730
  {
731
- name: '_wallet',
732
- type: 'address',
731
+ "name": "_wallet",
732
+ "type": "address"
733
733
  },
734
734
  {
735
- name: '_underlyingAsset',
736
- type: 'address',
735
+ "name": "_underlyingAsset",
736
+ "type": "address"
737
737
  },
738
738
  {
739
- name: '_collateralVaultToken',
740
- type: 'address',
739
+ "name": "_collateralVaultToken",
740
+ "type": "address"
741
741
  },
742
742
  {
743
- name: '_collateralVaultTokenRipeVaultId',
744
- type: 'uint256',
743
+ "name": "_collateralVaultTokenRipeVaultId",
744
+ "type": "uint256"
745
745
  },
746
746
  {
747
- name: '_leverageVaultToken',
748
- type: 'address',
747
+ "name": "_leverageVaultToken",
748
+ "type": "address"
749
749
  },
750
750
  {
751
- name: '_leverageVaultTokenRipeVaultId',
752
- type: 'uint256',
753
- },
751
+ "name": "_leverageVaultTokenRipeVaultId",
752
+ "type": "uint256"
753
+ }
754
754
  ],
755
- outputs: [
755
+ "outputs": [
756
756
  {
757
- name: '',
758
- type: 'uint256',
759
- },
760
- ],
757
+ "name": "",
758
+ "type": "uint256"
759
+ }
760
+ ]
761
761
  },
762
762
  {
763
- stateMutability: 'view',
764
- type: 'function',
765
- name: 'getTotalAssetsForNonUsdcVault',
766
- inputs: [
763
+ "stateMutability": "view",
764
+ "type": "function",
765
+ "name": "getTotalAssetsForNonUsdcVault",
766
+ "inputs": [
767
767
  {
768
- name: '_wallet',
769
- type: 'address',
768
+ "name": "_wallet",
769
+ "type": "address"
770
770
  },
771
771
  {
772
- name: '_underlyingAsset',
773
- type: 'address',
772
+ "name": "_underlyingAsset",
773
+ "type": "address"
774
774
  },
775
775
  {
776
- name: '_collateralVaultToken',
777
- type: 'address',
776
+ "name": "_collateralVaultToken",
777
+ "type": "address"
778
778
  },
779
779
  {
780
- name: '_collateralVaultTokenRipeVaultId',
781
- type: 'uint256',
780
+ "name": "_collateralVaultTokenRipeVaultId",
781
+ "type": "uint256"
782
782
  },
783
783
  {
784
- name: '_leverageVaultToken',
785
- type: 'address',
784
+ "name": "_leverageVaultToken",
785
+ "type": "address"
786
786
  },
787
787
  {
788
- name: '_leverageVaultTokenRipeVaultId',
789
- type: 'uint256',
788
+ "name": "_leverageVaultTokenRipeVaultId",
789
+ "type": "uint256"
790
790
  },
791
791
  {
792
- name: '_shouldGetMax',
793
- type: 'bool',
794
- },
792
+ "name": "_shouldGetMax",
793
+ "type": "bool"
794
+ }
795
795
  ],
796
- outputs: [
796
+ "outputs": [
797
797
  {
798
- name: '',
799
- type: 'uint256',
800
- },
801
- ],
798
+ "name": "",
799
+ "type": "uint256"
800
+ }
801
+ ]
802
802
  },
803
803
  {
804
- stateMutability: 'view',
805
- type: 'function',
806
- name: 'getTotalAssetsForNonUsdcVault',
807
- inputs: [
804
+ "stateMutability": "view",
805
+ "type": "function",
806
+ "name": "getTotalAssetsForNonUsdcVault",
807
+ "inputs": [
808
808
  {
809
- name: '_wallet',
810
- type: 'address',
809
+ "name": "_wallet",
810
+ "type": "address"
811
811
  },
812
812
  {
813
- name: '_underlyingAsset',
814
- type: 'address',
813
+ "name": "_underlyingAsset",
814
+ "type": "address"
815
815
  },
816
816
  {
817
- name: '_collateralVaultToken',
818
- type: 'address',
817
+ "name": "_collateralVaultToken",
818
+ "type": "address"
819
819
  },
820
820
  {
821
- name: '_collateralVaultTokenRipeVaultId',
822
- type: 'uint256',
821
+ "name": "_collateralVaultTokenRipeVaultId",
822
+ "type": "uint256"
823
823
  },
824
824
  {
825
- name: '_leverageVaultToken',
826
- type: 'address',
825
+ "name": "_leverageVaultToken",
826
+ "type": "address"
827
827
  },
828
828
  {
829
- name: '_leverageVaultTokenRipeVaultId',
830
- type: 'uint256',
829
+ "name": "_leverageVaultTokenRipeVaultId",
830
+ "type": "uint256"
831
831
  },
832
832
  {
833
- name: '_shouldGetMax',
834
- type: 'bool',
833
+ "name": "_shouldGetMax",
834
+ "type": "bool"
835
835
  },
836
836
  {
837
- name: '_usdc',
838
- type: 'address',
839
- },
837
+ "name": "_usdc",
838
+ "type": "address"
839
+ }
840
840
  ],
841
- outputs: [
841
+ "outputs": [
842
842
  {
843
- name: '',
844
- type: 'uint256',
845
- },
846
- ],
843
+ "name": "",
844
+ "type": "uint256"
845
+ }
846
+ ]
847
847
  },
848
848
  {
849
- stateMutability: 'view',
850
- type: 'function',
851
- name: 'getTotalAssetsForNonUsdcVault',
852
- inputs: [
849
+ "stateMutability": "view",
850
+ "type": "function",
851
+ "name": "getTotalAssetsForNonUsdcVault",
852
+ "inputs": [
853
853
  {
854
- name: '_wallet',
855
- type: 'address',
854
+ "name": "_wallet",
855
+ "type": "address"
856
856
  },
857
857
  {
858
- name: '_underlyingAsset',
859
- type: 'address',
858
+ "name": "_underlyingAsset",
859
+ "type": "address"
860
860
  },
861
861
  {
862
- name: '_collateralVaultToken',
863
- type: 'address',
862
+ "name": "_collateralVaultToken",
863
+ "type": "address"
864
864
  },
865
865
  {
866
- name: '_collateralVaultTokenRipeVaultId',
867
- type: 'uint256',
866
+ "name": "_collateralVaultTokenRipeVaultId",
867
+ "type": "uint256"
868
868
  },
869
869
  {
870
- name: '_leverageVaultToken',
871
- type: 'address',
870
+ "name": "_leverageVaultToken",
871
+ "type": "address"
872
872
  },
873
873
  {
874
- name: '_leverageVaultTokenRipeVaultId',
875
- type: 'uint256',
874
+ "name": "_leverageVaultTokenRipeVaultId",
875
+ "type": "uint256"
876
876
  },
877
877
  {
878
- name: '_shouldGetMax',
879
- type: 'bool',
878
+ "name": "_shouldGetMax",
879
+ "type": "bool"
880
880
  },
881
881
  {
882
- name: '_usdc',
883
- type: 'address',
882
+ "name": "_usdc",
883
+ "type": "address"
884
884
  },
885
885
  {
886
- name: '_green',
887
- type: 'address',
888
- },
886
+ "name": "_green",
887
+ "type": "address"
888
+ }
889
889
  ],
890
- outputs: [
890
+ "outputs": [
891
891
  {
892
- name: '',
893
- type: 'uint256',
894
- },
895
- ],
892
+ "name": "",
893
+ "type": "uint256"
894
+ }
895
+ ]
896
896
  },
897
897
  {
898
- stateMutability: 'view',
899
- type: 'function',
900
- name: 'getTotalAssetsForNonUsdcVault',
901
- inputs: [
898
+ "stateMutability": "view",
899
+ "type": "function",
900
+ "name": "getTotalAssetsForNonUsdcVault",
901
+ "inputs": [
902
902
  {
903
- name: '_wallet',
904
- type: 'address',
903
+ "name": "_wallet",
904
+ "type": "address"
905
905
  },
906
906
  {
907
- name: '_underlyingAsset',
908
- type: 'address',
907
+ "name": "_underlyingAsset",
908
+ "type": "address"
909
909
  },
910
910
  {
911
- name: '_collateralVaultToken',
912
- type: 'address',
911
+ "name": "_collateralVaultToken",
912
+ "type": "address"
913
913
  },
914
914
  {
915
- name: '_collateralVaultTokenRipeVaultId',
916
- type: 'uint256',
915
+ "name": "_collateralVaultTokenRipeVaultId",
916
+ "type": "uint256"
917
917
  },
918
918
  {
919
- name: '_leverageVaultToken',
920
- type: 'address',
919
+ "name": "_leverageVaultToken",
920
+ "type": "address"
921
921
  },
922
922
  {
923
- name: '_leverageVaultTokenRipeVaultId',
924
- type: 'uint256',
923
+ "name": "_leverageVaultTokenRipeVaultId",
924
+ "type": "uint256"
925
925
  },
926
926
  {
927
- name: '_shouldGetMax',
928
- type: 'bool',
927
+ "name": "_shouldGetMax",
928
+ "type": "bool"
929
929
  },
930
930
  {
931
- name: '_usdc',
932
- type: 'address',
931
+ "name": "_usdc",
932
+ "type": "address"
933
933
  },
934
934
  {
935
- name: '_green',
936
- type: 'address',
935
+ "name": "_green",
936
+ "type": "address"
937
937
  },
938
938
  {
939
- name: '_savingsGreen',
940
- type: 'address',
941
- },
939
+ "name": "_savingsGreen",
940
+ "type": "address"
941
+ }
942
942
  ],
943
- outputs: [
943
+ "outputs": [
944
944
  {
945
- name: '',
946
- type: 'uint256',
947
- },
948
- ],
945
+ "name": "",
946
+ "type": "uint256"
947
+ }
948
+ ]
949
949
  },
950
950
  {
951
- stateMutability: 'view',
952
- type: 'function',
953
- name: 'getTotalAssetsForNonUsdcVault',
954
- inputs: [
951
+ "stateMutability": "view",
952
+ "type": "function",
953
+ "name": "getTotalAssetsForNonUsdcVault",
954
+ "inputs": [
955
955
  {
956
- name: '_wallet',
957
- type: 'address',
956
+ "name": "_wallet",
957
+ "type": "address"
958
958
  },
959
959
  {
960
- name: '_underlyingAsset',
961
- type: 'address',
960
+ "name": "_underlyingAsset",
961
+ "type": "address"
962
962
  },
963
963
  {
964
- name: '_collateralVaultToken',
965
- type: 'address',
964
+ "name": "_collateralVaultToken",
965
+ "type": "address"
966
966
  },
967
967
  {
968
- name: '_collateralVaultTokenRipeVaultId',
969
- type: 'uint256',
968
+ "name": "_collateralVaultTokenRipeVaultId",
969
+ "type": "uint256"
970
970
  },
971
971
  {
972
- name: '_leverageVaultToken',
973
- type: 'address',
972
+ "name": "_leverageVaultToken",
973
+ "type": "address"
974
974
  },
975
975
  {
976
- name: '_leverageVaultTokenRipeVaultId',
977
- type: 'uint256',
976
+ "name": "_leverageVaultTokenRipeVaultId",
977
+ "type": "uint256"
978
978
  },
979
979
  {
980
- name: '_shouldGetMax',
981
- type: 'bool',
980
+ "name": "_shouldGetMax",
981
+ "type": "bool"
982
982
  },
983
983
  {
984
- name: '_usdc',
985
- type: 'address',
984
+ "name": "_usdc",
985
+ "type": "address"
986
986
  },
987
987
  {
988
- name: '_green',
989
- type: 'address',
988
+ "name": "_green",
989
+ "type": "address"
990
990
  },
991
991
  {
992
- name: '_savingsGreen',
993
- type: 'address',
992
+ "name": "_savingsGreen",
993
+ "type": "address"
994
994
  },
995
995
  {
996
- name: '_legoBook',
997
- type: 'address',
998
- },
996
+ "name": "_legoBook",
997
+ "type": "address"
998
+ }
999
999
  ],
1000
- outputs: [
1000
+ "outputs": [
1001
1001
  {
1002
- name: '',
1003
- type: 'uint256',
1004
- },
1005
- ],
1002
+ "name": "",
1003
+ "type": "uint256"
1004
+ }
1005
+ ]
1006
1006
  },
1007
1007
  {
1008
- stateMutability: 'view',
1009
- type: 'function',
1010
- name: 'getCollateralBalance',
1011
- inputs: [
1008
+ "stateMutability": "view",
1009
+ "type": "function",
1010
+ "name": "getCollateralBalance",
1011
+ "inputs": [
1012
1012
  {
1013
- name: '_user',
1014
- type: 'address',
1013
+ "name": "_user",
1014
+ "type": "address"
1015
1015
  },
1016
1016
  {
1017
- name: '_asset',
1018
- type: 'address',
1017
+ "name": "_asset",
1018
+ "type": "address"
1019
1019
  },
1020
1020
  {
1021
- name: '_ripeVaultId',
1022
- type: 'uint256',
1023
- },
1021
+ "name": "_ripeVaultId",
1022
+ "type": "uint256"
1023
+ }
1024
1024
  ],
1025
- outputs: [
1025
+ "outputs": [
1026
1026
  {
1027
- name: '',
1028
- type: 'uint256',
1029
- },
1030
- ],
1027
+ "name": "",
1028
+ "type": "uint256"
1029
+ }
1030
+ ]
1031
1031
  },
1032
1032
  {
1033
- stateMutability: 'view',
1034
- type: 'function',
1035
- name: 'getCollateralBalance',
1036
- inputs: [
1033
+ "stateMutability": "view",
1034
+ "type": "function",
1035
+ "name": "getCollateralBalance",
1036
+ "inputs": [
1037
1037
  {
1038
- name: '_user',
1039
- type: 'address',
1038
+ "name": "_user",
1039
+ "type": "address"
1040
1040
  },
1041
1041
  {
1042
- name: '_asset',
1043
- type: 'address',
1042
+ "name": "_asset",
1043
+ "type": "address"
1044
1044
  },
1045
1045
  {
1046
- name: '_ripeVaultId',
1047
- type: 'uint256',
1046
+ "name": "_ripeVaultId",
1047
+ "type": "uint256"
1048
1048
  },
1049
1049
  {
1050
- name: '_vaultBook',
1051
- type: 'address',
1052
- },
1050
+ "name": "_vaultBook",
1051
+ "type": "address"
1052
+ }
1053
1053
  ],
1054
- outputs: [
1054
+ "outputs": [
1055
1055
  {
1056
- name: '',
1057
- type: 'uint256',
1058
- },
1059
- ],
1056
+ "name": "",
1057
+ "type": "uint256"
1058
+ }
1059
+ ]
1060
1060
  },
1061
1061
  {
1062
- stateMutability: 'view',
1063
- type: 'function',
1064
- name: 'isSupportedAssetInVault',
1065
- inputs: [
1062
+ "stateMutability": "view",
1063
+ "type": "function",
1064
+ "name": "isSupportedAssetInVault",
1065
+ "inputs": [
1066
1066
  {
1067
- name: '_vaultId',
1068
- type: 'uint256',
1067
+ "name": "_vaultId",
1068
+ "type": "uint256"
1069
1069
  },
1070
1070
  {
1071
- name: '_asset',
1072
- type: 'address',
1073
- },
1071
+ "name": "_asset",
1072
+ "type": "address"
1073
+ }
1074
1074
  ],
1075
- outputs: [
1075
+ "outputs": [
1076
1076
  {
1077
- name: '',
1078
- type: 'bool',
1079
- },
1080
- ],
1077
+ "name": "",
1078
+ "type": "bool"
1079
+ }
1080
+ ]
1081
1081
  },
1082
1082
  {
1083
- stateMutability: 'view',
1084
- type: 'function',
1085
- name: 'getVaultBookAndDeleverage',
1086
- inputs: [],
1087
- outputs: [
1083
+ "stateMutability": "view",
1084
+ "type": "function",
1085
+ "name": "getVaultBookAndDeleverage",
1086
+ "inputs": [],
1087
+ "outputs": [
1088
1088
  {
1089
- name: '',
1090
- type: 'address',
1089
+ "name": "",
1090
+ "type": "address"
1091
1091
  },
1092
1092
  {
1093
- name: '',
1094
- type: 'address',
1095
- },
1096
- ],
1093
+ "name": "",
1094
+ "type": "address"
1095
+ }
1096
+ ]
1097
1097
  },
1098
1098
  {
1099
- stateMutability: 'view',
1100
- type: 'function',
1101
- name: 'isValidVaultToken',
1102
- inputs: [
1099
+ "stateMutability": "view",
1100
+ "type": "function",
1101
+ "name": "isValidVaultToken",
1102
+ "inputs": [
1103
1103
  {
1104
- name: '_underlyingAsset',
1105
- type: 'address',
1104
+ "name": "_underlyingAsset",
1105
+ "type": "address"
1106
1106
  },
1107
1107
  {
1108
- name: '_vaultToken',
1109
- type: 'address',
1108
+ "name": "_vaultToken",
1109
+ "type": "address"
1110
1110
  },
1111
1111
  {
1112
- name: '_ripeVaultId',
1113
- type: 'uint256',
1112
+ "name": "_ripeVaultId",
1113
+ "type": "uint256"
1114
1114
  },
1115
1115
  {
1116
- name: '_legoId',
1117
- type: 'uint256',
1118
- },
1116
+ "name": "_legoId",
1117
+ "type": "uint256"
1118
+ }
1119
1119
  ],
1120
- outputs: [
1120
+ "outputs": [
1121
1121
  {
1122
- name: '',
1123
- type: 'bool',
1124
- },
1125
- ],
1122
+ "name": "",
1123
+ "type": "bool"
1124
+ }
1125
+ ]
1126
1126
  },
1127
1127
  {
1128
- stateMutability: 'view',
1129
- type: 'function',
1130
- name: 'isValidRawAssetCollateral',
1131
- inputs: [
1128
+ "stateMutability": "view",
1129
+ "type": "function",
1130
+ "name": "isValidRawAssetCollateral",
1131
+ "inputs": [
1132
1132
  {
1133
- name: '_underlyingAsset',
1134
- type: 'address',
1133
+ "name": "_underlyingAsset",
1134
+ "type": "address"
1135
1135
  },
1136
1136
  {
1137
- name: '_rawAsset',
1138
- type: 'address',
1137
+ "name": "_rawAsset",
1138
+ "type": "address"
1139
1139
  },
1140
1140
  {
1141
- name: '_ripeVaultId',
1142
- type: 'uint256',
1143
- },
1141
+ "name": "_ripeVaultId",
1142
+ "type": "uint256"
1143
+ }
1144
1144
  ],
1145
- outputs: [
1145
+ "outputs": [
1146
1146
  {
1147
- name: '',
1148
- type: 'bool',
1149
- },
1150
- ],
1147
+ "name": "",
1148
+ "type": "bool"
1149
+ }
1150
+ ]
1151
1151
  },
1152
1152
  {
1153
- stateMutability: 'view',
1154
- type: 'function',
1155
- name: 'RIPE_REGISTRY',
1156
- inputs: [],
1157
- outputs: [
1158
- {
1159
- name: '',
1160
- type: 'address',
1161
- },
1162
- ],
1153
+ "stateMutability": "view",
1154
+ "type": "function",
1155
+ "name": "RIPE_REGISTRY",
1156
+ "inputs": [],
1157
+ "outputs": [
1158
+ {
1159
+ "name": "",
1160
+ "type": "address"
1161
+ }
1162
+ ]
1163
1163
  },
1164
1164
  {
1165
- stateMutability: 'view',
1166
- type: 'function',
1167
- name: 'GREEN_TOKEN',
1168
- inputs: [],
1169
- outputs: [
1170
- {
1171
- name: '',
1172
- type: 'address',
1173
- },
1174
- ],
1165
+ "stateMutability": "view",
1166
+ "type": "function",
1167
+ "name": "GREEN_TOKEN",
1168
+ "inputs": [],
1169
+ "outputs": [
1170
+ {
1171
+ "name": "",
1172
+ "type": "address"
1173
+ }
1174
+ ]
1175
1175
  },
1176
1176
  {
1177
- stateMutability: 'view',
1178
- type: 'function',
1179
- name: 'SAVINGS_GREEN',
1180
- inputs: [],
1181
- outputs: [
1182
- {
1183
- name: '',
1184
- type: 'address',
1185
- },
1186
- ],
1177
+ "stateMutability": "view",
1178
+ "type": "function",
1179
+ "name": "SAVINGS_GREEN",
1180
+ "inputs": [],
1181
+ "outputs": [
1182
+ {
1183
+ "name": "",
1184
+ "type": "address"
1185
+ }
1186
+ ]
1187
1187
  },
1188
1188
  {
1189
- stateMutability: 'view',
1190
- type: 'function',
1191
- name: 'USDC',
1192
- inputs: [],
1193
- outputs: [
1194
- {
1195
- name: '',
1196
- type: 'address',
1197
- },
1198
- ],
1189
+ "stateMutability": "view",
1190
+ "type": "function",
1191
+ "name": "USDC",
1192
+ "inputs": [],
1193
+ "outputs": [
1194
+ {
1195
+ "name": "",
1196
+ "type": "address"
1197
+ }
1198
+ ]
1199
1199
  },
1200
1200
  {
1201
- stateMutability: 'nonpayable',
1202
- type: 'constructor',
1203
- inputs: [
1201
+ "stateMutability": "nonpayable",
1202
+ "type": "constructor",
1203
+ "inputs": [
1204
1204
  {
1205
- name: '_undyHq',
1206
- type: 'address',
1205
+ "name": "_undyHq",
1206
+ "type": "address"
1207
1207
  },
1208
1208
  {
1209
- name: '_ripeRegistry',
1210
- type: 'address',
1209
+ "name": "_ripeRegistry",
1210
+ "type": "address"
1211
1211
  },
1212
1212
  {
1213
- name: '_usdc',
1214
- type: 'address',
1215
- },
1213
+ "name": "_usdc",
1214
+ "type": "address"
1215
+ }
1216
1216
  ],
1217
- outputs: [],
1218
- },
1217
+ "outputs": []
1218
+ }
1219
1219
  ];
1220
1220
  export const deployAddress = '0xD69cD617B0C2686a2C8C01d32c487cBb79e082f1';
1221
1221
  function getRequest(method, args, contractAddressOrOptions) {