@underscore-finance/sdk 1.1.2 → 1.2.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 (181) hide show
  1. package/dist/contracts/AaveV3.d.ts +126 -13
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +159 -13
  4. package/dist/contracts/AeroClassic.d.ts +85 -0
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +109 -1
  7. package/dist/contracts/AeroSlipstream.d.ts +119 -0
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +151 -1
  10. package/dist/contracts/AgentSenderGeneric.d.ts +4027 -0
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  12. package/dist/contracts/AgentSenderGeneric.js +5280 -0
  13. package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
  14. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  15. package/dist/contracts/AgentSenderSpecial.js +2509 -0
  16. package/dist/contracts/AgentWrapper.d.ts +170 -1462
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +262 -1869
  19. package/dist/contracts/AgentWrapperV1.d.ts +3760 -0
  20. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  21. package/dist/contracts/AgentWrapperV1.js +4922 -0
  22. package/dist/contracts/Appraiser.d.ts +18 -459
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +75 -649
  25. package/dist/contracts/Avantis.d.ts +2565 -0
  26. package/dist/contracts/Avantis.d.ts.map +1 -0
  27. package/dist/contracts/Avantis.js +3256 -0
  28. package/dist/contracts/Billing.d.ts +4 -68
  29. package/dist/contracts/Billing.d.ts.map +1 -1
  30. package/dist/contracts/Billing.js +5 -82
  31. package/dist/contracts/ChequeBook.d.ts +52 -1
  32. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  33. package/dist/contracts/ChequeBook.js +53 -1
  34. package/dist/contracts/CompoundV3.d.ts +126 -13
  35. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  36. package/dist/contracts/CompoundV3.js +159 -13
  37. package/dist/contracts/ConvertVaultToken.d.ts +63 -0
  38. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  39. package/dist/contracts/ConvertVaultToken.js +75 -0
  40. package/dist/contracts/Curve.d.ts +14 -0
  41. package/dist/contracts/Curve.d.ts.map +1 -1
  42. package/dist/contracts/Curve.js +19 -1
  43. package/dist/contracts/DefaultsBase.d.ts +45 -56
  44. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  45. package/dist/contracts/DefaultsBase.js +45 -59
  46. package/dist/contracts/EarnVault.d.ts +1680 -0
  47. package/dist/contracts/EarnVault.d.ts.map +1 -0
  48. package/dist/contracts/EarnVault.js +2206 -0
  49. package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
  50. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  51. package/dist/contracts/EarnVaultAgent.js +1273 -0
  52. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
  53. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  54. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  55. package/dist/contracts/Euler.d.ts +131 -14
  56. package/dist/contracts/Euler.d.ts.map +1 -1
  57. package/dist/contracts/Euler.js +164 -13
  58. package/dist/contracts/Fluid.d.ts +159 -14
  59. package/dist/contracts/Fluid.d.ts.map +1 -1
  60. package/dist/contracts/Fluid.js +200 -13
  61. package/dist/contracts/FortyAcres.d.ts +145 -14
  62. package/dist/contracts/FortyAcres.d.ts.map +1 -1
  63. package/dist/contracts/FortyAcres.js +182 -13
  64. package/dist/contracts/Hatchery.d.ts +6 -176
  65. package/dist/contracts/Hatchery.d.ts.map +1 -1
  66. package/dist/contracts/Hatchery.js +5 -225
  67. package/dist/contracts/HighCommand.d.ts +237 -1
  68. package/dist/contracts/HighCommand.d.ts.map +1 -1
  69. package/dist/contracts/HighCommand.js +259 -1
  70. package/dist/contracts/Kernel.d.ts +8 -0
  71. package/dist/contracts/Kernel.d.ts.map +1 -1
  72. package/dist/contracts/Kernel.js +9 -1
  73. package/dist/contracts/LegoBook.js +1 -1
  74. package/dist/contracts/LegoTools.js +1 -1
  75. package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
  76. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  77. package/dist/contracts/LevgVaultHelper.js +1414 -0
  78. package/dist/contracts/LootDistributor.d.ts +49 -131
  79. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  80. package/dist/contracts/LootDistributor.js +58 -157
  81. package/dist/contracts/Migrator.d.ts +4 -0
  82. package/dist/contracts/Migrator.d.ts.map +1 -1
  83. package/dist/contracts/Migrator.js +5 -1
  84. package/dist/contracts/MissionControl.d.ts +211 -295
  85. package/dist/contracts/MissionControl.d.ts.map +1 -1
  86. package/dist/contracts/MissionControl.js +216 -305
  87. package/dist/contracts/Moonwell.d.ts +131 -14
  88. package/dist/contracts/Moonwell.d.ts.map +1 -1
  89. package/dist/contracts/Moonwell.js +164 -13
  90. package/dist/contracts/Morpho.d.ts +131 -14
  91. package/dist/contracts/Morpho.d.ts.map +1 -1
  92. package/dist/contracts/Morpho.js +164 -13
  93. package/dist/contracts/Paymaster.d.ts +4 -0
  94. package/dist/contracts/Paymaster.d.ts.map +1 -1
  95. package/dist/contracts/Paymaster.js +5 -1
  96. package/dist/contracts/RipeLego.d.ts +267 -81
  97. package/dist/contracts/RipeLego.d.ts.map +1 -1
  98. package/dist/contracts/RipeLego.js +322 -87
  99. package/dist/contracts/Sentinel.d.ts +275 -7
  100. package/dist/contracts/Sentinel.d.ts.map +1 -1
  101. package/dist/contracts/Sentinel.js +331 -7
  102. package/dist/contracts/SkyPsm.d.ts +2622 -0
  103. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  104. package/dist/contracts/SkyPsm.js +3329 -0
  105. package/dist/contracts/Switchboard.d.ts +7 -0
  106. package/dist/contracts/Switchboard.d.ts.map +1 -1
  107. package/dist/contracts/Switchboard.js +9 -1
  108. package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
  109. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  110. package/dist/contracts/SwitchboardAlpha.js +566 -282
  111. package/dist/contracts/SwitchboardBravo.d.ts +4 -24
  112. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  113. package/dist/contracts/SwitchboardBravo.js +5 -32
  114. package/dist/contracts/SwitchboardCharlie.d.ts +1796 -343
  115. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  116. package/dist/contracts/SwitchboardCharlie.js +2178 -368
  117. package/dist/contracts/UnderscoreLego.d.ts +129 -15
  118. package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
  119. package/dist/contracts/UnderscoreLego.js +161 -14
  120. package/dist/contracts/UndyAero.d.ts +1680 -0
  121. package/dist/contracts/UndyAero.d.ts.map +1 -0
  122. package/dist/contracts/UndyAero.js +2206 -0
  123. package/dist/contracts/UndyBtc.d.ts +209 -16
  124. package/dist/contracts/UndyBtc.d.ts.map +1 -1
  125. package/dist/contracts/UndyBtc.js +267 -16
  126. package/dist/contracts/UndyCbeth.d.ts +1680 -0
  127. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  128. package/dist/contracts/UndyCbeth.js +2206 -0
  129. package/dist/contracts/UndyEth.d.ts +209 -16
  130. package/dist/contracts/UndyEth.d.ts.map +1 -1
  131. package/dist/contracts/UndyEth.js +267 -16
  132. package/dist/contracts/UndyEurc.d.ts +1680 -0
  133. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  134. package/dist/contracts/UndyEurc.js +2206 -0
  135. package/dist/contracts/UndyGho.d.ts +1680 -0
  136. package/dist/contracts/UndyGho.d.ts.map +1 -0
  137. package/dist/contracts/UndyGho.js +2206 -0
  138. package/dist/contracts/UndyUsd.d.ts +209 -16
  139. package/dist/contracts/UndyUsd.d.ts.map +1 -1
  140. package/dist/contracts/UndyUsd.js +267 -16
  141. package/dist/contracts/UndyUsds.d.ts +1680 -0
  142. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  143. package/dist/contracts/UndyUsds.js +2206 -0
  144. package/dist/contracts/UniswapV2.d.ts +85 -0
  145. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  146. package/dist/contracts/UniswapV2.js +109 -1
  147. package/dist/contracts/UniswapV3.d.ts +119 -0
  148. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  149. package/dist/contracts/UniswapV3.js +151 -1
  150. package/dist/contracts/UserWallet.d.ts +12 -8
  151. package/dist/contracts/UserWallet.d.ts.map +1 -1
  152. package/dist/contracts/UserWallet.js +13 -9
  153. package/dist/contracts/UserWalletConfig.d.ts +198 -56
  154. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  155. package/dist/contracts/UserWalletConfig.js +225 -72
  156. package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
  157. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  158. package/dist/contracts/UserWalletConfigV1.js +4251 -0
  159. package/dist/contracts/UserWalletV1.d.ts +2633 -0
  160. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  161. package/dist/contracts/UserWalletV1.js +3500 -0
  162. package/dist/contracts/VaultRegistry.d.ts +848 -85
  163. package/dist/contracts/VaultRegistry.d.ts.map +1 -1
  164. package/dist/contracts/VaultRegistry.js +1078 -83
  165. package/dist/contracts/WalletBackpack.d.ts +4 -0
  166. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  167. package/dist/contracts/WalletBackpack.js +5 -1
  168. package/dist/contracts/Wasabi.d.ts +2579 -0
  169. package/dist/contracts/Wasabi.d.ts.map +1 -0
  170. package/dist/contracts/Wasabi.js +3274 -0
  171. package/dist/contracts/index.d.ts +18 -1
  172. package/dist/contracts/index.d.ts.map +1 -1
  173. package/dist/contracts/index.js +18 -1
  174. package/dist/contracts/sdk.d.ts +36 -2
  175. package/dist/contracts/sdk.d.ts.map +1 -1
  176. package/dist/contracts/sdk.js +36 -2
  177. package/dist/getSwapInstructions.js +1 -1
  178. package/dist/index.d.ts +95 -8
  179. package/dist/index.d.ts.map +1 -1
  180. package/dist/index.js +45 -7
  181. package/package.json +3 -3
@@ -158,13 +158,35 @@ export const abi = [
158
158
  type: 'event',
159
159
  },
160
160
  {
161
- name: 'ApprovedVaultTokenSet',
161
+ name: 'IsLeveragedVaultSet',
162
162
  inputs: [
163
163
  {
164
164
  name: 'vaultAddr',
165
165
  type: 'address',
166
166
  indexed: true,
167
167
  },
168
+ {
169
+ name: 'isLeveragedVault',
170
+ type: 'bool',
171
+ indexed: false,
172
+ },
173
+ ],
174
+ anonymous: false,
175
+ type: 'event',
176
+ },
177
+ {
178
+ name: 'ApprovedVaultTokenSet',
179
+ inputs: [
180
+ {
181
+ name: 'undyVaultAddr',
182
+ type: 'address',
183
+ indexed: true,
184
+ },
185
+ {
186
+ name: 'underlyingAsset',
187
+ type: 'address',
188
+ indexed: true,
189
+ },
168
190
  {
169
191
  name: 'vaultToken',
170
192
  type: 'address',
@@ -175,6 +197,128 @@ export const abi = [
175
197
  type: 'bool',
176
198
  indexed: false,
177
199
  },
200
+ {
201
+ name: 'shouldMaxWithdraw',
202
+ type: 'bool',
203
+ indexed: false,
204
+ },
205
+ ],
206
+ anonymous: false,
207
+ type: 'event',
208
+ },
209
+ {
210
+ name: 'VaultTokenAdded',
211
+ inputs: [
212
+ {
213
+ name: 'undyVaultAddr',
214
+ type: 'address',
215
+ indexed: true,
216
+ },
217
+ {
218
+ name: 'underlyingAsset',
219
+ type: 'address',
220
+ indexed: true,
221
+ },
222
+ {
223
+ name: 'vaultToken',
224
+ type: 'address',
225
+ indexed: true,
226
+ },
227
+ ],
228
+ anonymous: false,
229
+ type: 'event',
230
+ },
231
+ {
232
+ name: 'VaultTokenRemoved',
233
+ inputs: [
234
+ {
235
+ name: 'undyVaultAddr',
236
+ type: 'address',
237
+ indexed: true,
238
+ },
239
+ {
240
+ name: 'underlyingAsset',
241
+ type: 'address',
242
+ indexed: true,
243
+ },
244
+ {
245
+ name: 'vaultToken',
246
+ type: 'address',
247
+ indexed: true,
248
+ },
249
+ ],
250
+ anonymous: false,
251
+ type: 'event',
252
+ },
253
+ {
254
+ name: 'AssetVaultTokenAdded',
255
+ inputs: [
256
+ {
257
+ name: 'asset',
258
+ type: 'address',
259
+ indexed: true,
260
+ },
261
+ {
262
+ name: 'vaultToken',
263
+ type: 'address',
264
+ indexed: true,
265
+ },
266
+ ],
267
+ anonymous: false,
268
+ type: 'event',
269
+ },
270
+ {
271
+ name: 'AssetVaultTokenRemoved',
272
+ inputs: [
273
+ {
274
+ name: 'asset',
275
+ type: 'address',
276
+ indexed: true,
277
+ },
278
+ {
279
+ name: 'vaultToken',
280
+ type: 'address',
281
+ indexed: true,
282
+ },
283
+ ],
284
+ anonymous: false,
285
+ type: 'event',
286
+ },
287
+ {
288
+ name: 'ShouldEnforceAllowlistSet',
289
+ inputs: [
290
+ {
291
+ name: 'undyVault',
292
+ type: 'address',
293
+ indexed: true,
294
+ },
295
+ {
296
+ name: 'shouldEnforce',
297
+ type: 'bool',
298
+ indexed: false,
299
+ },
300
+ ],
301
+ anonymous: false,
302
+ type: 'event',
303
+ },
304
+ {
305
+ name: 'AllowlistSet',
306
+ inputs: [
307
+ {
308
+ name: 'undyVault',
309
+ type: 'address',
310
+ indexed: true,
311
+ },
312
+ {
313
+ name: 'user',
314
+ type: 'address',
315
+ indexed: true,
316
+ },
317
+ {
318
+ name: 'isAllowed',
319
+ type: 'bool',
320
+ indexed: false,
321
+ },
178
322
  ],
179
323
  anonymous: false,
180
324
  type: 'event',
@@ -443,6 +587,112 @@ export const abi = [
443
587
  anonymous: false,
444
588
  type: 'event',
445
589
  },
590
+ {
591
+ name: 'AddressDisablePending',
592
+ inputs: [
593
+ {
594
+ name: 'regId',
595
+ type: 'uint256',
596
+ indexed: false,
597
+ },
598
+ {
599
+ name: 'description',
600
+ type: 'string',
601
+ indexed: false,
602
+ },
603
+ {
604
+ name: 'addr',
605
+ type: 'address',
606
+ indexed: true,
607
+ },
608
+ {
609
+ name: 'version',
610
+ type: 'uint256',
611
+ indexed: false,
612
+ },
613
+ {
614
+ name: 'confirmBlock',
615
+ type: 'uint256',
616
+ indexed: false,
617
+ },
618
+ {
619
+ name: 'registry',
620
+ type: 'string',
621
+ indexed: false,
622
+ },
623
+ ],
624
+ anonymous: false,
625
+ type: 'event',
626
+ },
627
+ {
628
+ name: 'AddressDisableConfirmed',
629
+ inputs: [
630
+ {
631
+ name: 'regId',
632
+ type: 'uint256',
633
+ indexed: false,
634
+ },
635
+ {
636
+ name: 'description',
637
+ type: 'string',
638
+ indexed: false,
639
+ },
640
+ {
641
+ name: 'addr',
642
+ type: 'address',
643
+ indexed: true,
644
+ },
645
+ {
646
+ name: 'version',
647
+ type: 'uint256',
648
+ indexed: false,
649
+ },
650
+ {
651
+ name: 'registry',
652
+ type: 'string',
653
+ indexed: false,
654
+ },
655
+ ],
656
+ anonymous: false,
657
+ type: 'event',
658
+ },
659
+ {
660
+ name: 'AddressDisableCancelled',
661
+ inputs: [
662
+ {
663
+ name: 'regId',
664
+ type: 'uint256',
665
+ indexed: false,
666
+ },
667
+ {
668
+ name: 'description',
669
+ type: 'string',
670
+ indexed: false,
671
+ },
672
+ {
673
+ name: 'addr',
674
+ type: 'address',
675
+ indexed: true,
676
+ },
677
+ {
678
+ name: 'initiatedBlock',
679
+ type: 'uint256',
680
+ indexed: false,
681
+ },
682
+ {
683
+ name: 'confirmBlock',
684
+ type: 'uint256',
685
+ indexed: false,
686
+ },
687
+ {
688
+ name: 'registry',
689
+ type: 'string',
690
+ indexed: false,
691
+ },
692
+ ],
693
+ anonymous: false,
694
+ type: 'event',
695
+ },
446
696
  {
447
697
  stateMutability: 'view',
448
698
  type: 'function',
@@ -1310,7 +1560,7 @@ export const abi = [
1310
1560
  name: 'isEarnVault',
1311
1561
  inputs: [
1312
1562
  {
1313
- name: '_vaultAddr',
1563
+ name: '_undyVaultAddr',
1314
1564
  type: 'address',
1315
1565
  },
1316
1566
  ],
@@ -1322,18 +1572,14 @@ export const abi = [
1322
1572
  ],
1323
1573
  },
1324
1574
  {
1325
- stateMutability: 'nonpayable',
1575
+ stateMutability: 'view',
1326
1576
  type: 'function',
1327
- name: 'startAddNewAddressToRegistry',
1577
+ name: 'isLeveragedVault',
1328
1578
  inputs: [
1329
1579
  {
1330
- name: '_vaultAddr',
1580
+ name: '_undyVaultAddr',
1331
1581
  type: 'address',
1332
1582
  },
1333
- {
1334
- name: '_description',
1335
- type: 'string',
1336
- },
1337
1583
  ],
1338
1584
  outputs: [
1339
1585
  {
@@ -1343,55 +1589,172 @@ export const abi = [
1343
1589
  ],
1344
1590
  },
1345
1591
  {
1346
- stateMutability: 'nonpayable',
1592
+ stateMutability: 'view',
1347
1593
  type: 'function',
1348
- name: 'confirmNewAddressToRegistry',
1594
+ name: 'isBasicEarnVault',
1349
1595
  inputs: [
1350
1596
  {
1351
- name: '_vaultAddr',
1597
+ name: '_undyVaultAddr',
1352
1598
  type: 'address',
1353
1599
  },
1354
1600
  ],
1355
1601
  outputs: [
1356
1602
  {
1357
1603
  name: '',
1358
- type: 'uint256',
1604
+ type: 'bool',
1359
1605
  },
1360
1606
  ],
1361
1607
  },
1362
1608
  {
1363
- stateMutability: 'nonpayable',
1609
+ stateMutability: 'view',
1364
1610
  type: 'function',
1365
- name: 'confirmNewAddressToRegistry',
1611
+ name: 'hasConfig',
1366
1612
  inputs: [
1367
1613
  {
1368
- name: '_vaultAddr',
1614
+ name: '_undyVaultAddr',
1369
1615
  type: 'address',
1370
1616
  },
1371
- {
1372
- name: '_approvedVaultTokens',
1373
- type: 'address[]',
1374
- },
1375
1617
  ],
1376
1618
  outputs: [
1377
1619
  {
1378
1620
  name: '',
1379
- type: 'uint256',
1621
+ type: 'bool',
1380
1622
  },
1381
1623
  ],
1382
1624
  },
1383
1625
  {
1384
1626
  stateMutability: 'nonpayable',
1385
1627
  type: 'function',
1386
- name: 'confirmNewAddressToRegistry',
1628
+ name: 'startAddNewAddressToRegistry',
1387
1629
  inputs: [
1388
1630
  {
1389
- name: '_vaultAddr',
1631
+ name: '_undyVaultAddr',
1390
1632
  type: 'address',
1391
1633
  },
1392
1634
  {
1393
- name: '_approvedVaultTokens',
1394
- type: 'address[]',
1635
+ name: '_description',
1636
+ type: 'string',
1637
+ },
1638
+ ],
1639
+ outputs: [
1640
+ {
1641
+ name: '',
1642
+ type: 'bool',
1643
+ },
1644
+ ],
1645
+ },
1646
+ {
1647
+ stateMutability: 'nonpayable',
1648
+ type: 'function',
1649
+ name: 'confirmNewAddressToRegistry',
1650
+ inputs: [
1651
+ {
1652
+ name: '_undyVaultAddr',
1653
+ type: 'address',
1654
+ },
1655
+ ],
1656
+ outputs: [
1657
+ {
1658
+ name: '',
1659
+ type: 'uint256',
1660
+ },
1661
+ ],
1662
+ },
1663
+ {
1664
+ stateMutability: 'nonpayable',
1665
+ type: 'function',
1666
+ name: 'confirmNewAddressToRegistry',
1667
+ inputs: [
1668
+ {
1669
+ name: '_undyVaultAddr',
1670
+ type: 'address',
1671
+ },
1672
+ {
1673
+ name: '_isLeveragedVault',
1674
+ type: 'bool',
1675
+ },
1676
+ ],
1677
+ outputs: [
1678
+ {
1679
+ name: '',
1680
+ type: 'uint256',
1681
+ },
1682
+ ],
1683
+ },
1684
+ {
1685
+ stateMutability: 'nonpayable',
1686
+ type: 'function',
1687
+ name: 'confirmNewAddressToRegistry',
1688
+ inputs: [
1689
+ {
1690
+ name: '_undyVaultAddr',
1691
+ type: 'address',
1692
+ },
1693
+ {
1694
+ name: '_isLeveragedVault',
1695
+ type: 'bool',
1696
+ },
1697
+ {
1698
+ name: '_shouldEnforceAllowlist',
1699
+ type: 'bool',
1700
+ },
1701
+ ],
1702
+ outputs: [
1703
+ {
1704
+ name: '',
1705
+ type: 'uint256',
1706
+ },
1707
+ ],
1708
+ },
1709
+ {
1710
+ stateMutability: 'nonpayable',
1711
+ type: 'function',
1712
+ name: 'confirmNewAddressToRegistry',
1713
+ inputs: [
1714
+ {
1715
+ name: '_undyVaultAddr',
1716
+ type: 'address',
1717
+ },
1718
+ {
1719
+ name: '_isLeveragedVault',
1720
+ type: 'bool',
1721
+ },
1722
+ {
1723
+ name: '_shouldEnforceAllowlist',
1724
+ type: 'bool',
1725
+ },
1726
+ {
1727
+ name: '_approvedVaultTokens',
1728
+ type: 'address[]',
1729
+ },
1730
+ ],
1731
+ outputs: [
1732
+ {
1733
+ name: '',
1734
+ type: 'uint256',
1735
+ },
1736
+ ],
1737
+ },
1738
+ {
1739
+ stateMutability: 'nonpayable',
1740
+ type: 'function',
1741
+ name: 'confirmNewAddressToRegistry',
1742
+ inputs: [
1743
+ {
1744
+ name: '_undyVaultAddr',
1745
+ type: 'address',
1746
+ },
1747
+ {
1748
+ name: '_isLeveragedVault',
1749
+ type: 'bool',
1750
+ },
1751
+ {
1752
+ name: '_shouldEnforceAllowlist',
1753
+ type: 'bool',
1754
+ },
1755
+ {
1756
+ name: '_approvedVaultTokens',
1757
+ type: 'address[]',
1395
1758
  },
1396
1759
  {
1397
1760
  name: '_maxDepositAmount',
@@ -1411,9 +1774,17 @@ export const abi = [
1411
1774
  name: 'confirmNewAddressToRegistry',
1412
1775
  inputs: [
1413
1776
  {
1414
- name: '_vaultAddr',
1777
+ name: '_undyVaultAddr',
1415
1778
  type: 'address',
1416
1779
  },
1780
+ {
1781
+ name: '_isLeveragedVault',
1782
+ type: 'bool',
1783
+ },
1784
+ {
1785
+ name: '_shouldEnforceAllowlist',
1786
+ type: 'bool',
1787
+ },
1417
1788
  {
1418
1789
  name: '_approvedVaultTokens',
1419
1790
  type: 'address[]',
@@ -1440,9 +1811,17 @@ export const abi = [
1440
1811
  name: 'confirmNewAddressToRegistry',
1441
1812
  inputs: [
1442
1813
  {
1443
- name: '_vaultAddr',
1814
+ name: '_undyVaultAddr',
1444
1815
  type: 'address',
1445
1816
  },
1817
+ {
1818
+ name: '_isLeveragedVault',
1819
+ type: 'bool',
1820
+ },
1821
+ {
1822
+ name: '_shouldEnforceAllowlist',
1823
+ type: 'bool',
1824
+ },
1446
1825
  {
1447
1826
  name: '_approvedVaultTokens',
1448
1827
  type: 'address[]',
@@ -1473,9 +1852,17 @@ export const abi = [
1473
1852
  name: 'confirmNewAddressToRegistry',
1474
1853
  inputs: [
1475
1854
  {
1476
- name: '_vaultAddr',
1855
+ name: '_undyVaultAddr',
1477
1856
  type: 'address',
1478
1857
  },
1858
+ {
1859
+ name: '_isLeveragedVault',
1860
+ type: 'bool',
1861
+ },
1862
+ {
1863
+ name: '_shouldEnforceAllowlist',
1864
+ type: 'bool',
1865
+ },
1479
1866
  {
1480
1867
  name: '_approvedVaultTokens',
1481
1868
  type: 'address[]',
@@ -1510,9 +1897,17 @@ export const abi = [
1510
1897
  name: 'confirmNewAddressToRegistry',
1511
1898
  inputs: [
1512
1899
  {
1513
- name: '_vaultAddr',
1900
+ name: '_undyVaultAddr',
1514
1901
  type: 'address',
1515
1902
  },
1903
+ {
1904
+ name: '_isLeveragedVault',
1905
+ type: 'bool',
1906
+ },
1907
+ {
1908
+ name: '_shouldEnforceAllowlist',
1909
+ type: 'bool',
1910
+ },
1516
1911
  {
1517
1912
  name: '_approvedVaultTokens',
1518
1913
  type: 'address[]',
@@ -1551,9 +1946,17 @@ export const abi = [
1551
1946
  name: 'confirmNewAddressToRegistry',
1552
1947
  inputs: [
1553
1948
  {
1554
- name: '_vaultAddr',
1949
+ name: '_undyVaultAddr',
1555
1950
  type: 'address',
1556
1951
  },
1952
+ {
1953
+ name: '_isLeveragedVault',
1954
+ type: 'bool',
1955
+ },
1956
+ {
1957
+ name: '_shouldEnforceAllowlist',
1958
+ type: 'bool',
1959
+ },
1557
1960
  {
1558
1961
  name: '_approvedVaultTokens',
1559
1962
  type: 'address[]',
@@ -1596,9 +1999,17 @@ export const abi = [
1596
1999
  name: 'confirmNewAddressToRegistry',
1597
2000
  inputs: [
1598
2001
  {
1599
- name: '_vaultAddr',
2002
+ name: '_undyVaultAddr',
1600
2003
  type: 'address',
1601
2004
  },
2005
+ {
2006
+ name: '_isLeveragedVault',
2007
+ type: 'bool',
2008
+ },
2009
+ {
2010
+ name: '_shouldEnforceAllowlist',
2011
+ type: 'bool',
2012
+ },
1602
2013
  {
1603
2014
  name: '_approvedVaultTokens',
1604
2015
  type: 'address[]',
@@ -1645,9 +2056,17 @@ export const abi = [
1645
2056
  name: 'confirmNewAddressToRegistry',
1646
2057
  inputs: [
1647
2058
  {
1648
- name: '_vaultAddr',
2059
+ name: '_undyVaultAddr',
1649
2060
  type: 'address',
1650
2061
  },
2062
+ {
2063
+ name: '_isLeveragedVault',
2064
+ type: 'bool',
2065
+ },
2066
+ {
2067
+ name: '_shouldEnforceAllowlist',
2068
+ type: 'bool',
2069
+ },
1651
2070
  {
1652
2071
  name: '_approvedVaultTokens',
1653
2072
  type: 'address[]',
@@ -1698,9 +2117,17 @@ export const abi = [
1698
2117
  name: 'confirmNewAddressToRegistry',
1699
2118
  inputs: [
1700
2119
  {
1701
- name: '_vaultAddr',
2120
+ name: '_undyVaultAddr',
1702
2121
  type: 'address',
1703
2122
  },
2123
+ {
2124
+ name: '_isLeveragedVault',
2125
+ type: 'bool',
2126
+ },
2127
+ {
2128
+ name: '_shouldEnforceAllowlist',
2129
+ type: 'bool',
2130
+ },
1704
2131
  {
1705
2132
  name: '_approvedVaultTokens',
1706
2133
  type: 'address[]',
@@ -1755,7 +2182,7 @@ export const abi = [
1755
2182
  name: 'cancelNewAddressToRegistry',
1756
2183
  inputs: [
1757
2184
  {
1758
- name: '_vaultAddr',
2185
+ name: '_undyVaultAddr',
1759
2186
  type: 'address',
1760
2187
  },
1761
2188
  ],
@@ -1766,13 +2193,64 @@ export const abi = [
1766
2193
  },
1767
2194
  ],
1768
2195
  },
2196
+ {
2197
+ stateMutability: 'nonpayable',
2198
+ type: 'function',
2199
+ name: 'startAddressDisableInRegistry',
2200
+ inputs: [
2201
+ {
2202
+ name: '_regId',
2203
+ type: 'uint256',
2204
+ },
2205
+ ],
2206
+ outputs: [
2207
+ {
2208
+ name: '',
2209
+ type: 'bool',
2210
+ },
2211
+ ],
2212
+ },
2213
+ {
2214
+ stateMutability: 'nonpayable',
2215
+ type: 'function',
2216
+ name: 'confirmAddressDisableInRegistry',
2217
+ inputs: [
2218
+ {
2219
+ name: '_regId',
2220
+ type: 'uint256',
2221
+ },
2222
+ ],
2223
+ outputs: [
2224
+ {
2225
+ name: '',
2226
+ type: 'bool',
2227
+ },
2228
+ ],
2229
+ },
2230
+ {
2231
+ stateMutability: 'nonpayable',
2232
+ type: 'function',
2233
+ name: 'cancelAddressDisableInRegistry',
2234
+ inputs: [
2235
+ {
2236
+ name: '_regId',
2237
+ type: 'uint256',
2238
+ },
2239
+ ],
2240
+ outputs: [
2241
+ {
2242
+ name: '',
2243
+ type: 'bool',
2244
+ },
2245
+ ],
2246
+ },
1769
2247
  {
1770
2248
  stateMutability: 'nonpayable',
1771
2249
  type: 'function',
1772
2250
  name: 'setCanDeposit',
1773
2251
  inputs: [
1774
2252
  {
1775
- name: '_vaultAddr',
2253
+ name: '_undyVaultAddr',
1776
2254
  type: 'address',
1777
2255
  },
1778
2256
  {
@@ -1788,7 +2266,7 @@ export const abi = [
1788
2266
  name: 'setCanWithdraw',
1789
2267
  inputs: [
1790
2268
  {
1791
- name: '_vaultAddr',
2269
+ name: '_undyVaultAddr',
1792
2270
  type: 'address',
1793
2271
  },
1794
2272
  {
@@ -1804,7 +2282,7 @@ export const abi = [
1804
2282
  name: 'setMaxDepositAmount',
1805
2283
  inputs: [
1806
2284
  {
1807
- name: '_vaultAddr',
2285
+ name: '_undyVaultAddr',
1808
2286
  type: 'address',
1809
2287
  },
1810
2288
  {
@@ -1820,7 +2298,7 @@ export const abi = [
1820
2298
  name: 'setVaultOpsFrozen',
1821
2299
  inputs: [
1822
2300
  {
1823
- name: '_vaultAddr',
2301
+ name: '_undyVaultAddr',
1824
2302
  type: 'address',
1825
2303
  },
1826
2304
  {
@@ -1836,7 +2314,7 @@ export const abi = [
1836
2314
  name: 'setShouldAutoDeposit',
1837
2315
  inputs: [
1838
2316
  {
1839
- name: '_vaultAddr',
2317
+ name: '_undyVaultAddr',
1840
2318
  type: 'address',
1841
2319
  },
1842
2320
  {
@@ -1852,7 +2330,7 @@ export const abi = [
1852
2330
  name: 'setMinYieldWithdrawAmount',
1853
2331
  inputs: [
1854
2332
  {
1855
- name: '_vaultAddr',
2333
+ name: '_undyVaultAddr',
1856
2334
  type: 'address',
1857
2335
  },
1858
2336
  {
@@ -1865,39 +2343,74 @@ export const abi = [
1865
2343
  {
1866
2344
  stateMutability: 'nonpayable',
1867
2345
  type: 'function',
1868
- name: 'setApprovedVaultToken',
2346
+ name: 'setIsLeveragedVault',
1869
2347
  inputs: [
1870
2348
  {
1871
- name: '_vaultAddr',
2349
+ name: '_undyVaultAddr',
1872
2350
  type: 'address',
1873
2351
  },
1874
2352
  {
1875
- name: '_vaultToken',
2353
+ name: '_isLeveragedVault',
2354
+ type: 'bool',
2355
+ },
2356
+ ],
2357
+ outputs: [],
2358
+ },
2359
+ {
2360
+ stateMutability: 'nonpayable',
2361
+ type: 'function',
2362
+ name: 'setShouldEnforceAllowlist',
2363
+ inputs: [
2364
+ {
2365
+ name: '_undyVaultAddr',
1876
2366
  type: 'address',
1877
2367
  },
1878
2368
  {
1879
- name: '_isApproved',
2369
+ name: '_shouldEnforce',
1880
2370
  type: 'bool',
1881
2371
  },
1882
2372
  ],
1883
2373
  outputs: [],
1884
2374
  },
1885
2375
  {
1886
- stateMutability: 'view',
2376
+ stateMutability: 'nonpayable',
1887
2377
  type: 'function',
1888
- name: 'isValidVaultToken',
2378
+ name: 'setAllowed',
1889
2379
  inputs: [
1890
2380
  {
1891
- name: '_vaultToken',
2381
+ name: '_undyVaultAddr',
2382
+ type: 'address',
2383
+ },
2384
+ {
2385
+ name: '_user',
1892
2386
  type: 'address',
1893
2387
  },
2388
+ {
2389
+ name: '_isAllowed',
2390
+ type: 'bool',
2391
+ },
1894
2392
  ],
1895
- outputs: [
2393
+ outputs: [],
2394
+ },
2395
+ {
2396
+ stateMutability: 'nonpayable',
2397
+ type: 'function',
2398
+ name: 'setAllowedBatch',
2399
+ inputs: [
1896
2400
  {
1897
- name: '',
2401
+ name: '_undyVaultAddr',
2402
+ type: 'address',
2403
+ },
2404
+ {
2405
+ name: '_users',
2406
+ type: 'address[]',
2407
+ },
2408
+ {
2409
+ name: '_isAllowed',
1898
2410
  type: 'bool',
1899
2411
  },
1900
2412
  ],
2413
+ outputs: [],
1901
2414
  },
1902
2415
  {
1903
2416
  stateMutability: 'nonpayable',
@@ -1905,7 +2418,7 @@ export const abi = [
1905
2418
  name: 'setDefaultTargetVaultToken',
1906
2419
  inputs: [
1907
2420
  {
1908
- name: '_vaultAddr',
2421
+ name: '_undyVaultAddr',
1909
2422
  type: 'address',
1910
2423
  },
1911
2424
  {
@@ -1921,7 +2434,7 @@ export const abi = [
1921
2434
  name: 'isValidDefaultTargetVaultToken',
1922
2435
  inputs: [
1923
2436
  {
1924
- name: '_vaultAddr',
2437
+ name: '_undyVaultAddr',
1925
2438
  type: 'address',
1926
2439
  },
1927
2440
  {
@@ -1942,7 +2455,7 @@ export const abi = [
1942
2455
  name: 'setPerformanceFee',
1943
2456
  inputs: [
1944
2457
  {
1945
- name: '_vaultAddr',
2458
+ name: '_undyVaultAddr',
1946
2459
  type: 'address',
1947
2460
  },
1948
2461
  {
@@ -1975,7 +2488,7 @@ export const abi = [
1975
2488
  name: 'setRedemptionBuffer',
1976
2489
  inputs: [
1977
2490
  {
1978
- name: '_vaultAddr',
2491
+ name: '_undyVaultAddr',
1979
2492
  type: 'address',
1980
2493
  },
1981
2494
  {
@@ -2002,13 +2515,150 @@ export const abi = [
2002
2515
  },
2003
2516
  ],
2004
2517
  },
2518
+ {
2519
+ stateMutability: 'nonpayable',
2520
+ type: 'function',
2521
+ name: 'setApprovedVaultToken',
2522
+ inputs: [
2523
+ {
2524
+ name: '_undyVaultAddr',
2525
+ type: 'address',
2526
+ },
2527
+ {
2528
+ name: '_vaultToken',
2529
+ type: 'address',
2530
+ },
2531
+ {
2532
+ name: '_isApproved',
2533
+ type: 'bool',
2534
+ },
2535
+ {
2536
+ name: '_shouldMaxWithdraw',
2537
+ type: 'bool',
2538
+ },
2539
+ ],
2540
+ outputs: [],
2541
+ },
2542
+ {
2543
+ stateMutability: 'nonpayable',
2544
+ type: 'function',
2545
+ name: 'setApprovedVaultTokens',
2546
+ inputs: [
2547
+ {
2548
+ name: '_undyVaultAddr',
2549
+ type: 'address',
2550
+ },
2551
+ {
2552
+ name: '_vaultTokens',
2553
+ type: 'address[]',
2554
+ },
2555
+ {
2556
+ name: '_isApproved',
2557
+ type: 'bool',
2558
+ },
2559
+ {
2560
+ name: '_shouldMaxWithdraw',
2561
+ type: 'bool',
2562
+ },
2563
+ ],
2564
+ outputs: [],
2565
+ },
2566
+ {
2567
+ stateMutability: 'view',
2568
+ type: 'function',
2569
+ name: 'getApprovedVaultTokens',
2570
+ inputs: [
2571
+ {
2572
+ name: '_undyVaultAddr',
2573
+ type: 'address',
2574
+ },
2575
+ ],
2576
+ outputs: [
2577
+ {
2578
+ name: '',
2579
+ type: 'address[]',
2580
+ },
2581
+ ],
2582
+ },
2583
+ {
2584
+ stateMutability: 'view',
2585
+ type: 'function',
2586
+ name: 'getAssetVaultTokens',
2587
+ inputs: [
2588
+ {
2589
+ name: '_asset',
2590
+ type: 'address',
2591
+ },
2592
+ ],
2593
+ outputs: [
2594
+ {
2595
+ name: '',
2596
+ type: 'address[]',
2597
+ },
2598
+ ],
2599
+ },
2600
+ {
2601
+ stateMutability: 'view',
2602
+ type: 'function',
2603
+ name: 'getNumApprovedVaultTokens',
2604
+ inputs: [
2605
+ {
2606
+ name: '_undyVaultAddr',
2607
+ type: 'address',
2608
+ },
2609
+ ],
2610
+ outputs: [
2611
+ {
2612
+ name: '',
2613
+ type: 'uint256',
2614
+ },
2615
+ ],
2616
+ },
2617
+ {
2618
+ stateMutability: 'view',
2619
+ type: 'function',
2620
+ name: 'getNumAssetVaultTokens',
2621
+ inputs: [
2622
+ {
2623
+ name: '_asset',
2624
+ type: 'address',
2625
+ },
2626
+ ],
2627
+ outputs: [
2628
+ {
2629
+ name: '',
2630
+ type: 'uint256',
2631
+ },
2632
+ ],
2633
+ },
2634
+ {
2635
+ stateMutability: 'view',
2636
+ type: 'function',
2637
+ name: 'isApprovedVaultTokenForAsset',
2638
+ inputs: [
2639
+ {
2640
+ name: '_underlyingAsset',
2641
+ type: 'address',
2642
+ },
2643
+ {
2644
+ name: '_vaultToken',
2645
+ type: 'address',
2646
+ },
2647
+ ],
2648
+ outputs: [
2649
+ {
2650
+ name: '',
2651
+ type: 'bool',
2652
+ },
2653
+ ],
2654
+ },
2005
2655
  {
2006
2656
  stateMutability: 'view',
2007
2657
  type: 'function',
2008
2658
  name: 'canDeposit',
2009
2659
  inputs: [
2010
2660
  {
2011
- name: '_vaultAddr',
2661
+ name: '_undyVaultAddr',
2012
2662
  type: 'address',
2013
2663
  },
2014
2664
  ],
@@ -2025,7 +2675,7 @@ export const abi = [
2025
2675
  name: 'canWithdraw',
2026
2676
  inputs: [
2027
2677
  {
2028
- name: '_vaultAddr',
2678
+ name: '_undyVaultAddr',
2029
2679
  type: 'address',
2030
2680
  },
2031
2681
  ],
@@ -2042,7 +2692,7 @@ export const abi = [
2042
2692
  name: 'maxDepositAmount',
2043
2693
  inputs: [
2044
2694
  {
2045
- name: '_vaultAddr',
2695
+ name: '_undyVaultAddr',
2046
2696
  type: 'address',
2047
2697
  },
2048
2698
  ],
@@ -2059,7 +2709,7 @@ export const abi = [
2059
2709
  name: 'isVaultOpsFrozen',
2060
2710
  inputs: [
2061
2711
  {
2062
- name: '_vaultAddr',
2712
+ name: '_undyVaultAddr',
2063
2713
  type: 'address',
2064
2714
  },
2065
2715
  ],
@@ -2076,7 +2726,7 @@ export const abi = [
2076
2726
  name: 'redemptionBuffer',
2077
2727
  inputs: [
2078
2728
  {
2079
- name: '_vaultAddr',
2729
+ name: '_undyVaultAddr',
2080
2730
  type: 'address',
2081
2731
  },
2082
2732
  ],
@@ -2093,7 +2743,7 @@ export const abi = [
2093
2743
  name: 'minYieldWithdrawAmount',
2094
2744
  inputs: [
2095
2745
  {
2096
- name: '_vaultAddr',
2746
+ name: '_undyVaultAddr',
2097
2747
  type: 'address',
2098
2748
  },
2099
2749
  ],
@@ -2110,62 +2760,100 @@ export const abi = [
2110
2760
  name: 'redemptionConfig',
2111
2761
  inputs: [
2112
2762
  {
2113
- name: '_vaultAddr',
2763
+ name: '_undyVaultAddr',
2764
+ type: 'address',
2765
+ },
2766
+ ],
2767
+ outputs: [
2768
+ {
2769
+ name: '',
2770
+ type: 'uint256',
2771
+ },
2772
+ {
2773
+ name: '',
2774
+ type: 'uint256',
2775
+ },
2776
+ ],
2777
+ },
2778
+ {
2779
+ stateMutability: 'view',
2780
+ type: 'function',
2781
+ name: 'getPerformanceFee',
2782
+ inputs: [
2783
+ {
2784
+ name: '_undyVaultAddr',
2785
+ type: 'address',
2786
+ },
2787
+ ],
2788
+ outputs: [
2789
+ {
2790
+ name: '',
2791
+ type: 'uint256',
2792
+ },
2793
+ ],
2794
+ },
2795
+ {
2796
+ stateMutability: 'view',
2797
+ type: 'function',
2798
+ name: 'getDefaultTargetVaultToken',
2799
+ inputs: [
2800
+ {
2801
+ name: '_undyVaultAddr',
2114
2802
  type: 'address',
2115
2803
  },
2116
2804
  ],
2117
2805
  outputs: [
2118
2806
  {
2119
2807
  name: '',
2120
- type: 'uint256',
2121
- },
2122
- {
2123
- name: '',
2124
- type: 'uint256',
2808
+ type: 'address',
2125
2809
  },
2126
2810
  ],
2127
2811
  },
2128
2812
  {
2129
2813
  stateMutability: 'view',
2130
2814
  type: 'function',
2131
- name: 'getPerformanceFee',
2815
+ name: 'shouldAutoDeposit',
2132
2816
  inputs: [
2133
2817
  {
2134
- name: '_vaultAddr',
2818
+ name: '_undyVaultAddr',
2135
2819
  type: 'address',
2136
2820
  },
2137
2821
  ],
2138
2822
  outputs: [
2139
2823
  {
2140
2824
  name: '',
2141
- type: 'uint256',
2825
+ type: 'bool',
2142
2826
  },
2143
2827
  ],
2144
2828
  },
2145
2829
  {
2146
2830
  stateMutability: 'view',
2147
2831
  type: 'function',
2148
- name: 'getDefaultTargetVaultToken',
2832
+ name: 'shouldEnforceAllowlist',
2149
2833
  inputs: [
2150
2834
  {
2151
- name: '_vaultAddr',
2835
+ name: '_undyVaultAddr',
2152
2836
  type: 'address',
2153
2837
  },
2154
2838
  ],
2155
2839
  outputs: [
2156
2840
  {
2157
2841
  name: '',
2158
- type: 'address',
2842
+ type: 'bool',
2159
2843
  },
2160
2844
  ],
2161
2845
  },
2162
2846
  {
2163
2847
  stateMutability: 'view',
2164
2848
  type: 'function',
2165
- name: 'shouldAutoDeposit',
2849
+ name: 'isUserAllowed',
2166
2850
  inputs: [
2167
2851
  {
2168
- name: '_vaultAddr',
2852
+ name: '_undyVaultAddr',
2853
+ type: 'address',
2854
+ },
2855
+ {
2856
+ name: '_userAddr',
2169
2857
  type: 'address',
2170
2858
  },
2171
2859
  ],
@@ -2182,7 +2870,7 @@ export const abi = [
2182
2870
  name: 'isApprovedVaultTokenByAddr',
2183
2871
  inputs: [
2184
2872
  {
2185
- name: '_vaultAddr',
2873
+ name: '_undyVaultAddr',
2186
2874
  type: 'address',
2187
2875
  },
2188
2876
  {
@@ -2203,7 +2891,7 @@ export const abi = [
2203
2891
  name: 'checkVaultApprovals',
2204
2892
  inputs: [
2205
2893
  {
2206
- name: '_vaultAddr',
2894
+ name: '_undyVaultAddr',
2207
2895
  type: 'address',
2208
2896
  },
2209
2897
  {
@@ -2269,6 +2957,14 @@ export const abi = [
2269
2957
  name: 'defaultTargetVaultToken',
2270
2958
  type: 'address',
2271
2959
  },
2960
+ {
2961
+ name: 'isLeveragedVault',
2962
+ type: 'bool',
2963
+ },
2964
+ {
2965
+ name: 'shouldEnforceAllowlist',
2966
+ type: 'bool',
2967
+ },
2272
2968
  ],
2273
2969
  },
2274
2970
  ],
@@ -2279,7 +2975,7 @@ export const abi = [
2279
2975
  name: 'getVaultConfigByAddr',
2280
2976
  inputs: [
2281
2977
  {
2282
- name: '_vaultAddr',
2978
+ name: '_undyVaultAddr',
2283
2979
  type: 'address',
2284
2980
  },
2285
2981
  ],
@@ -2324,6 +3020,14 @@ export const abi = [
2324
3020
  name: 'defaultTargetVaultToken',
2325
3021
  type: 'address',
2326
3022
  },
3023
+ {
3024
+ name: 'isLeveragedVault',
3025
+ type: 'bool',
3026
+ },
3027
+ {
3028
+ name: 'shouldEnforceAllowlist',
3029
+ type: 'bool',
3030
+ },
2327
3031
  ],
2328
3032
  },
2329
3033
  ],
@@ -2401,7 +3105,7 @@ export const abi = [
2401
3105
  type: 'address',
2402
3106
  },
2403
3107
  {
2404
- name: '_vaultAddr',
3108
+ name: '_undyVaultAddr',
2405
3109
  type: 'address',
2406
3110
  },
2407
3111
  ],
@@ -2498,7 +3202,40 @@ export const abi = [
2498
3202
  name: 'getDepositConfig',
2499
3203
  inputs: [
2500
3204
  {
2501
- name: '_vaultAddr',
3205
+ name: '_undyVaultAddr',
3206
+ type: 'address',
3207
+ },
3208
+ ],
3209
+ outputs: [
3210
+ {
3211
+ name: '',
3212
+ type: 'bool',
3213
+ },
3214
+ {
3215
+ name: '',
3216
+ type: 'uint256',
3217
+ },
3218
+ {
3219
+ name: '',
3220
+ type: 'bool',
3221
+ },
3222
+ {
3223
+ name: '',
3224
+ type: 'address',
3225
+ },
3226
+ ],
3227
+ },
3228
+ {
3229
+ stateMutability: 'view',
3230
+ type: 'function',
3231
+ name: 'getDepositConfig',
3232
+ inputs: [
3233
+ {
3234
+ name: '_undyVaultAddr',
3235
+ type: 'address',
3236
+ },
3237
+ {
3238
+ name: '_user',
2502
3239
  type: 'address',
2503
3240
  },
2504
3241
  ],
@@ -2521,6 +3258,44 @@ export const abi = [
2521
3258
  },
2522
3259
  ],
2523
3260
  },
3261
+ {
3262
+ stateMutability: 'view',
3263
+ type: 'function',
3264
+ name: 'canUserDeposit',
3265
+ inputs: [
3266
+ {
3267
+ name: '_undyVaultAddr',
3268
+ type: 'address',
3269
+ },
3270
+ ],
3271
+ outputs: [
3272
+ {
3273
+ name: '',
3274
+ type: 'bool',
3275
+ },
3276
+ ],
3277
+ },
3278
+ {
3279
+ stateMutability: 'view',
3280
+ type: 'function',
3281
+ name: 'canUserDeposit',
3282
+ inputs: [
3283
+ {
3284
+ name: '_undyVaultAddr',
3285
+ type: 'address',
3286
+ },
3287
+ {
3288
+ name: '_user',
3289
+ type: 'address',
3290
+ },
3291
+ ],
3292
+ outputs: [
3293
+ {
3294
+ name: '',
3295
+ type: 'bool',
3296
+ },
3297
+ ],
3298
+ },
2524
3299
  {
2525
3300
  stateMutability: 'view',
2526
3301
  type: 'function',
@@ -2572,6 +3347,14 @@ export const abi = [
2572
3347
  name: 'defaultTargetVaultToken',
2573
3348
  type: 'address',
2574
3349
  },
3350
+ {
3351
+ name: 'isLeveragedVault',
3352
+ type: 'bool',
3353
+ },
3354
+ {
3355
+ name: 'shouldEnforceAllowlist',
3356
+ type: 'bool',
3357
+ },
2575
3358
  ],
2576
3359
  },
2577
3360
  ],
@@ -2597,6 +3380,166 @@ export const abi = [
2597
3380
  },
2598
3381
  ],
2599
3382
  },
3383
+ {
3384
+ stateMutability: 'view',
3385
+ type: 'function',
3386
+ name: 'approvedVaultTokens',
3387
+ inputs: [
3388
+ {
3389
+ name: 'arg0',
3390
+ type: 'address',
3391
+ },
3392
+ {
3393
+ name: 'arg1',
3394
+ type: 'uint256',
3395
+ },
3396
+ ],
3397
+ outputs: [
3398
+ {
3399
+ name: '',
3400
+ type: 'address',
3401
+ },
3402
+ ],
3403
+ },
3404
+ {
3405
+ stateMutability: 'view',
3406
+ type: 'function',
3407
+ name: 'indexOfApprovedVaultToken',
3408
+ inputs: [
3409
+ {
3410
+ name: 'arg0',
3411
+ type: 'address',
3412
+ },
3413
+ {
3414
+ name: 'arg1',
3415
+ type: 'address',
3416
+ },
3417
+ ],
3418
+ outputs: [
3419
+ {
3420
+ name: '',
3421
+ type: 'uint256',
3422
+ },
3423
+ ],
3424
+ },
3425
+ {
3426
+ stateMutability: 'view',
3427
+ type: 'function',
3428
+ name: 'numApprovedVaultTokens',
3429
+ inputs: [
3430
+ {
3431
+ name: 'arg0',
3432
+ type: 'address',
3433
+ },
3434
+ ],
3435
+ outputs: [
3436
+ {
3437
+ name: '',
3438
+ type: 'uint256',
3439
+ },
3440
+ ],
3441
+ },
3442
+ {
3443
+ stateMutability: 'view',
3444
+ type: 'function',
3445
+ name: 'assetVaultTokens',
3446
+ inputs: [
3447
+ {
3448
+ name: 'arg0',
3449
+ type: 'address',
3450
+ },
3451
+ {
3452
+ name: 'arg1',
3453
+ type: 'uint256',
3454
+ },
3455
+ ],
3456
+ outputs: [
3457
+ {
3458
+ name: '',
3459
+ type: 'address',
3460
+ },
3461
+ ],
3462
+ },
3463
+ {
3464
+ stateMutability: 'view',
3465
+ type: 'function',
3466
+ name: 'indexOfAssetVaultToken',
3467
+ inputs: [
3468
+ {
3469
+ name: 'arg0',
3470
+ type: 'address',
3471
+ },
3472
+ {
3473
+ name: 'arg1',
3474
+ type: 'address',
3475
+ },
3476
+ ],
3477
+ outputs: [
3478
+ {
3479
+ name: '',
3480
+ type: 'uint256',
3481
+ },
3482
+ ],
3483
+ },
3484
+ {
3485
+ stateMutability: 'view',
3486
+ type: 'function',
3487
+ name: 'numAssetVaultTokens',
3488
+ inputs: [
3489
+ {
3490
+ name: 'arg0',
3491
+ type: 'address',
3492
+ },
3493
+ ],
3494
+ outputs: [
3495
+ {
3496
+ name: '',
3497
+ type: 'uint256',
3498
+ },
3499
+ ],
3500
+ },
3501
+ {
3502
+ stateMutability: 'view',
3503
+ type: 'function',
3504
+ name: 'assetVaultTokenRefCount',
3505
+ inputs: [
3506
+ {
3507
+ name: 'arg0',
3508
+ type: 'address',
3509
+ },
3510
+ {
3511
+ name: 'arg1',
3512
+ type: 'address',
3513
+ },
3514
+ ],
3515
+ outputs: [
3516
+ {
3517
+ name: '',
3518
+ type: 'uint256',
3519
+ },
3520
+ ],
3521
+ },
3522
+ {
3523
+ stateMutability: 'view',
3524
+ type: 'function',
3525
+ name: 'isAllowed',
3526
+ inputs: [
3527
+ {
3528
+ name: 'arg0',
3529
+ type: 'address',
3530
+ },
3531
+ {
3532
+ name: 'arg1',
3533
+ type: 'address',
3534
+ },
3535
+ ],
3536
+ outputs: [
3537
+ {
3538
+ name: '',
3539
+ type: 'bool',
3540
+ },
3541
+ ],
3542
+ },
2600
3543
  {
2601
3544
  stateMutability: 'nonpayable',
2602
3545
  type: 'constructor',
@@ -2621,7 +3564,7 @@ export const abi = [
2621
3564
  outputs: [],
2622
3565
  },
2623
3566
  ];
2624
- export const deployAddress = '0x73388bD7f17CeCA0679604405A5d2C418Db2b702';
3567
+ export const deployAddress = '0x1C17ef5Ef2AefcEE958E7e3dC345e96aBfF4e3Cf';
2625
3568
  function getRequest(method, args, contractAddressOrOptions) {
2626
3569
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2627
3570
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2689,10 +3632,17 @@ export const call = {
2689
3632
  canMintUndy: (...args) => getRequest('canMintUndy', args),
2690
3633
  isPaused: (...args) => getRequest('isPaused', args),
2691
3634
  isEarnVault: (...args) => getRequest('isEarnVault', args),
2692
- isValidVaultToken: (...args) => getRequest('isValidVaultToken', args),
3635
+ isLeveragedVault: (...args) => getRequest('isLeveragedVault', args),
3636
+ isBasicEarnVault: (...args) => getRequest('isBasicEarnVault', args),
3637
+ hasConfig: (...args) => getRequest('hasConfig', args),
2693
3638
  isValidDefaultTargetVaultToken: (...args) => getRequest('isValidDefaultTargetVaultToken', args),
2694
3639
  isValidPerformanceFee: (...args) => getRequest('isValidPerformanceFee', args),
2695
3640
  isValidRedemptionBuffer: (...args) => getRequest('isValidRedemptionBuffer', args),
3641
+ getApprovedVaultTokens: (...args) => getRequest('getApprovedVaultTokens', args),
3642
+ getAssetVaultTokens: (...args) => getRequest('getAssetVaultTokens', args),
3643
+ getNumApprovedVaultTokens: (...args) => getRequest('getNumApprovedVaultTokens', args),
3644
+ getNumAssetVaultTokens: (...args) => getRequest('getNumAssetVaultTokens', args),
3645
+ isApprovedVaultTokenForAsset: (...args) => getRequest('isApprovedVaultTokenForAsset', args),
2696
3646
  canDeposit: (...args) => getRequest('canDeposit', args),
2697
3647
  canWithdraw: (...args) => getRequest('canWithdraw', args),
2698
3648
  maxDepositAmount: (...args) => getRequest('maxDepositAmount', args),
@@ -2703,6 +3653,8 @@ export const call = {
2703
3653
  getPerformanceFee: (...args) => getRequest('getPerformanceFee', args),
2704
3654
  getDefaultTargetVaultToken: (...args) => getRequest('getDefaultTargetVaultToken', args),
2705
3655
  shouldAutoDeposit: (...args) => getRequest('shouldAutoDeposit', args),
3656
+ shouldEnforceAllowlist: (...args) => getRequest('shouldEnforceAllowlist', args),
3657
+ isUserAllowed: (...args) => getRequest('isUserAllowed', args),
2706
3658
  isApprovedVaultTokenByAddr: (...args) => getRequest('isApprovedVaultTokenByAddr', args),
2707
3659
  checkVaultApprovals: (...args) => getRequest('checkVaultApprovals', args),
2708
3660
  getVaultConfig: (...args) => getRequest('getVaultConfig', args),
@@ -2712,8 +3664,17 @@ export const call = {
2712
3664
  getLegoDataFromVaultToken: (...args) => getRequest('getLegoDataFromVaultToken', args),
2713
3665
  getLegoAddrFromVaultToken: (...args) => getRequest('getLegoAddrFromVaultToken', args),
2714
3666
  getDepositConfig: (...args) => getRequest('getDepositConfig', args),
3667
+ canUserDeposit: (...args) => getRequest('canUserDeposit', args),
2715
3668
  vaultConfigs: (...args) => getRequest('vaultConfigs', args),
2716
3669
  isApprovedVaultToken: (...args) => getRequest('isApprovedVaultToken', args),
3670
+ approvedVaultTokens: (...args) => getRequest('approvedVaultTokens', args),
3671
+ indexOfApprovedVaultToken: (...args) => getRequest('indexOfApprovedVaultToken', args),
3672
+ numApprovedVaultTokens: (...args) => getRequest('numApprovedVaultTokens', args),
3673
+ assetVaultTokens: (...args) => getRequest('assetVaultTokens', args),
3674
+ indexOfAssetVaultToken: (...args) => getRequest('indexOfAssetVaultToken', args),
3675
+ numAssetVaultTokens: (...args) => getRequest('numAssetVaultTokens', args),
3676
+ assetVaultTokenRefCount: (...args) => getRequest('assetVaultTokenRefCount', args),
3677
+ isAllowed: (...args) => getRequest('isAllowed', args),
2717
3678
  };
2718
3679
  function getMutation(functionName) {
2719
3680
  return {
@@ -2739,16 +3700,24 @@ export const mutation = {
2739
3700
  startAddNewAddressToRegistry: getMutation('startAddNewAddressToRegistry'),
2740
3701
  confirmNewAddressToRegistry: getMutation('confirmNewAddressToRegistry'),
2741
3702
  cancelNewAddressToRegistry: getMutation('cancelNewAddressToRegistry'),
3703
+ startAddressDisableInRegistry: getMutation('startAddressDisableInRegistry'),
3704
+ confirmAddressDisableInRegistry: getMutation('confirmAddressDisableInRegistry'),
3705
+ cancelAddressDisableInRegistry: getMutation('cancelAddressDisableInRegistry'),
2742
3706
  setCanDeposit: getMutation('setCanDeposit'),
2743
3707
  setCanWithdraw: getMutation('setCanWithdraw'),
2744
3708
  setMaxDepositAmount: getMutation('setMaxDepositAmount'),
2745
3709
  setVaultOpsFrozen: getMutation('setVaultOpsFrozen'),
2746
3710
  setShouldAutoDeposit: getMutation('setShouldAutoDeposit'),
2747
3711
  setMinYieldWithdrawAmount: getMutation('setMinYieldWithdrawAmount'),
2748
- setApprovedVaultToken: getMutation('setApprovedVaultToken'),
3712
+ setIsLeveragedVault: getMutation('setIsLeveragedVault'),
3713
+ setShouldEnforceAllowlist: getMutation('setShouldEnforceAllowlist'),
3714
+ setAllowed: getMutation('setAllowed'),
3715
+ setAllowedBatch: getMutation('setAllowedBatch'),
2749
3716
  setDefaultTargetVaultToken: getMutation('setDefaultTargetVaultToken'),
2750
3717
  setPerformanceFee: getMutation('setPerformanceFee'),
2751
3718
  setRedemptionBuffer: getMutation('setRedemptionBuffer'),
3719
+ setApprovedVaultToken: getMutation('setApprovedVaultToken'),
3720
+ setApprovedVaultTokens: getMutation('setApprovedVaultTokens'),
2752
3721
  };
2753
3722
  export function toSdk(publicClient, walletClient) {
2754
3723
  return {
@@ -2794,10 +3763,17 @@ export function toSdk(publicClient, walletClient) {
2794
3763
  canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
2795
3764
  isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2796
3765
  isEarnVault: (...args) => singleQuery(publicClient, call.isEarnVault(...args)),
2797
- isValidVaultToken: (...args) => singleQuery(publicClient, call.isValidVaultToken(...args)),
3766
+ isLeveragedVault: (...args) => singleQuery(publicClient, call.isLeveragedVault(...args)),
3767
+ isBasicEarnVault: (...args) => singleQuery(publicClient, call.isBasicEarnVault(...args)),
3768
+ hasConfig: (...args) => singleQuery(publicClient, call.hasConfig(...args)),
2798
3769
  isValidDefaultTargetVaultToken: (...args) => singleQuery(publicClient, call.isValidDefaultTargetVaultToken(...args)),
2799
3770
  isValidPerformanceFee: (...args) => singleQuery(publicClient, call.isValidPerformanceFee(...args)),
2800
3771
  isValidRedemptionBuffer: (...args) => singleQuery(publicClient, call.isValidRedemptionBuffer(...args)),
3772
+ getApprovedVaultTokens: (...args) => singleQuery(publicClient, call.getApprovedVaultTokens(...args)),
3773
+ getAssetVaultTokens: (...args) => singleQuery(publicClient, call.getAssetVaultTokens(...args)),
3774
+ getNumApprovedVaultTokens: (...args) => singleQuery(publicClient, call.getNumApprovedVaultTokens(...args)),
3775
+ getNumAssetVaultTokens: (...args) => singleQuery(publicClient, call.getNumAssetVaultTokens(...args)),
3776
+ isApprovedVaultTokenForAsset: (...args) => singleQuery(publicClient, call.isApprovedVaultTokenForAsset(...args)),
2801
3777
  canDeposit: (...args) => singleQuery(publicClient, call.canDeposit(...args)),
2802
3778
  canWithdraw: (...args) => singleQuery(publicClient, call.canWithdraw(...args)),
2803
3779
  maxDepositAmount: (...args) => singleQuery(publicClient, call.maxDepositAmount(...args)),
@@ -2808,6 +3784,8 @@ export function toSdk(publicClient, walletClient) {
2808
3784
  getPerformanceFee: (...args) => singleQuery(publicClient, call.getPerformanceFee(...args)),
2809
3785
  getDefaultTargetVaultToken: (...args) => singleQuery(publicClient, call.getDefaultTargetVaultToken(...args)),
2810
3786
  shouldAutoDeposit: (...args) => singleQuery(publicClient, call.shouldAutoDeposit(...args)),
3787
+ shouldEnforceAllowlist: (...args) => singleQuery(publicClient, call.shouldEnforceAllowlist(...args)),
3788
+ isUserAllowed: (...args) => singleQuery(publicClient, call.isUserAllowed(...args)),
2811
3789
  isApprovedVaultTokenByAddr: (...args) => singleQuery(publicClient, call.isApprovedVaultTokenByAddr(...args)),
2812
3790
  checkVaultApprovals: (...args) => singleQuery(publicClient, call.checkVaultApprovals(...args)),
2813
3791
  getVaultConfig: (...args) => singleQuery(publicClient, call.getVaultConfig(...args)),
@@ -2817,8 +3795,17 @@ export function toSdk(publicClient, walletClient) {
2817
3795
  getLegoDataFromVaultToken: (...args) => singleQuery(publicClient, call.getLegoDataFromVaultToken(...args)),
2818
3796
  getLegoAddrFromVaultToken: (...args) => singleQuery(publicClient, call.getLegoAddrFromVaultToken(...args)),
2819
3797
  getDepositConfig: (...args) => singleQuery(publicClient, call.getDepositConfig(...args)),
3798
+ canUserDeposit: (...args) => singleQuery(publicClient, call.canUserDeposit(...args)),
2820
3799
  vaultConfigs: (...args) => singleQuery(publicClient, call.vaultConfigs(...args)),
2821
3800
  isApprovedVaultToken: (...args) => singleQuery(publicClient, call.isApprovedVaultToken(...args)),
3801
+ approvedVaultTokens: (...args) => singleQuery(publicClient, call.approvedVaultTokens(...args)),
3802
+ indexOfApprovedVaultToken: (...args) => singleQuery(publicClient, call.indexOfApprovedVaultToken(...args)),
3803
+ numApprovedVaultTokens: (...args) => singleQuery(publicClient, call.numApprovedVaultTokens(...args)),
3804
+ assetVaultTokens: (...args) => singleQuery(publicClient, call.assetVaultTokens(...args)),
3805
+ indexOfAssetVaultToken: (...args) => singleQuery(publicClient, call.indexOfAssetVaultToken(...args)),
3806
+ numAssetVaultTokens: (...args) => singleQuery(publicClient, call.numAssetVaultTokens(...args)),
3807
+ assetVaultTokenRefCount: (...args) => singleQuery(publicClient, call.assetVaultTokenRefCount(...args)),
3808
+ isAllowed: (...args) => singleQuery(publicClient, call.isAllowed(...args)),
2822
3809
  // Mutations
2823
3810
  startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
2824
3811
  confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
@@ -2834,15 +3821,23 @@ export function toSdk(publicClient, walletClient) {
2834
3821
  startAddNewAddressToRegistry: (...args) => mutate(walletClient, mutation.startAddNewAddressToRegistry)(...args),
2835
3822
  confirmNewAddressToRegistry: (...args) => mutate(walletClient, mutation.confirmNewAddressToRegistry)(...args),
2836
3823
  cancelNewAddressToRegistry: (...args) => mutate(walletClient, mutation.cancelNewAddressToRegistry)(...args),
3824
+ startAddressDisableInRegistry: (...args) => mutate(walletClient, mutation.startAddressDisableInRegistry)(...args),
3825
+ confirmAddressDisableInRegistry: (...args) => mutate(walletClient, mutation.confirmAddressDisableInRegistry)(...args),
3826
+ cancelAddressDisableInRegistry: (...args) => mutate(walletClient, mutation.cancelAddressDisableInRegistry)(...args),
2837
3827
  setCanDeposit: (...args) => mutate(walletClient, mutation.setCanDeposit)(...args),
2838
3828
  setCanWithdraw: (...args) => mutate(walletClient, mutation.setCanWithdraw)(...args),
2839
3829
  setMaxDepositAmount: (...args) => mutate(walletClient, mutation.setMaxDepositAmount)(...args),
2840
3830
  setVaultOpsFrozen: (...args) => mutate(walletClient, mutation.setVaultOpsFrozen)(...args),
2841
3831
  setShouldAutoDeposit: (...args) => mutate(walletClient, mutation.setShouldAutoDeposit)(...args),
2842
3832
  setMinYieldWithdrawAmount: (...args) => mutate(walletClient, mutation.setMinYieldWithdrawAmount)(...args),
2843
- setApprovedVaultToken: (...args) => mutate(walletClient, mutation.setApprovedVaultToken)(...args),
3833
+ setIsLeveragedVault: (...args) => mutate(walletClient, mutation.setIsLeveragedVault)(...args),
3834
+ setShouldEnforceAllowlist: (...args) => mutate(walletClient, mutation.setShouldEnforceAllowlist)(...args),
3835
+ setAllowed: (...args) => mutate(walletClient, mutation.setAllowed)(...args),
3836
+ setAllowedBatch: (...args) => mutate(walletClient, mutation.setAllowedBatch)(...args),
2844
3837
  setDefaultTargetVaultToken: (...args) => mutate(walletClient, mutation.setDefaultTargetVaultToken)(...args),
2845
3838
  setPerformanceFee: (...args) => mutate(walletClient, mutation.setPerformanceFee)(...args),
2846
3839
  setRedemptionBuffer: (...args) => mutate(walletClient, mutation.setRedemptionBuffer)(...args),
3840
+ setApprovedVaultToken: (...args) => mutate(walletClient, mutation.setApprovedVaultToken)(...args),
3841
+ setApprovedVaultTokens: (...args) => mutate(walletClient, mutation.setApprovedVaultTokens)(...args),
2847
3842
  };
2848
3843
  }