@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
@@ -92,6 +92,10 @@ export const abi = [
92
92
  name: 'billing',
93
93
  type: 'address',
94
94
  },
95
+ {
96
+ name: 'vaultRegistry',
97
+ type: 'address',
98
+ },
95
99
  ],
96
100
  },
97
101
  ],
@@ -193,14 +197,6 @@ export const abi = [
193
197
  name: 'configTemplate',
194
198
  type: 'address',
195
199
  },
196
- {
197
- name: 'trialAsset',
198
- type: 'address',
199
- },
200
- {
201
- name: 'trialAmount',
202
- type: 'uint256',
203
- },
204
200
  {
205
201
  name: 'numUserWalletsAllowed',
206
202
  type: 'uint256',
@@ -217,14 +213,14 @@ export const abi = [
217
213
  name: 'maxKeyActionTimeLock',
218
214
  type: 'uint256',
219
215
  },
220
- {
221
- name: 'defaultStaleBlocks',
222
- type: 'uint256',
223
- },
224
216
  {
225
217
  name: 'depositRewardsAsset',
226
218
  type: 'address',
227
219
  },
220
+ {
221
+ name: 'lootClaimCoolOffPeriod',
222
+ type: 'uint256',
223
+ },
228
224
  {
229
225
  name: 'txFees',
230
226
  type: 'tuple',
@@ -262,28 +258,30 @@ export const abi = [
262
258
  ],
263
259
  },
264
260
  {
265
- name: 'defaultYieldMaxIncrease',
266
- type: 'uint256',
267
- },
268
- {
269
- name: 'defaultYieldPerformanceFee',
270
- type: 'uint256',
271
- },
272
- {
273
- name: 'defaultYieldAmbassadorBonusRatio',
274
- type: 'uint256',
275
- },
276
- {
277
- name: 'defaultYieldBonusRatio',
278
- type: 'uint256',
279
- },
280
- {
281
- name: 'defaultYieldAltBonusAsset',
282
- type: 'address',
283
- },
284
- {
285
- name: 'lootClaimCoolOffPeriod',
286
- type: 'uint256',
261
+ name: 'yieldConfig',
262
+ type: 'tuple',
263
+ components: [
264
+ {
265
+ name: 'maxYieldIncrease',
266
+ type: 'uint256',
267
+ },
268
+ {
269
+ name: 'performanceFee',
270
+ type: 'uint256',
271
+ },
272
+ {
273
+ name: 'ambassadorBonusRatio',
274
+ type: 'uint256',
275
+ },
276
+ {
277
+ name: 'bonusRatio',
278
+ type: 'uint256',
279
+ },
280
+ {
281
+ name: 'bonusAsset',
282
+ type: 'address',
283
+ },
284
+ ],
287
285
  },
288
286
  ],
289
287
  },
@@ -307,6 +305,22 @@ export const abi = [
307
305
  name: 'managerActivationLength',
308
306
  type: 'uint256',
309
307
  },
308
+ {
309
+ name: 'mustHaveUsdValueOnSwaps',
310
+ type: 'bool',
311
+ },
312
+ {
313
+ name: 'maxNumSwapsPerPeriod',
314
+ type: 'uint256',
315
+ },
316
+ {
317
+ name: 'maxSlippageOnSwaps',
318
+ type: 'uint256',
319
+ },
320
+ {
321
+ name: 'onlyApprovedYieldOpps',
322
+ type: 'bool',
323
+ },
310
324
  ],
311
325
  },
312
326
  ],
@@ -416,118 +430,57 @@ export const abi = [
416
430
  type: 'uint256',
417
431
  },
418
432
  {
419
- name: 'payeePeriod',
420
- type: 'uint256',
421
- },
422
- {
423
- name: 'payeeActivationLength',
424
- type: 'uint256',
433
+ name: 'mustHaveUsdValueOnSwaps',
434
+ type: 'bool',
425
435
  },
426
436
  {
427
- name: 'chequeMaxNumActiveCheques',
437
+ name: 'maxNumSwapsPerPeriod',
428
438
  type: 'uint256',
429
439
  },
430
440
  {
431
- name: 'chequeInstantUsdThreshold',
441
+ name: 'maxSlippageOnSwaps',
432
442
  type: 'uint256',
433
443
  },
434
444
  {
435
- name: 'chequePeriodLength',
436
- type: 'uint256',
445
+ name: 'onlyApprovedYieldOpps',
446
+ type: 'bool',
437
447
  },
438
448
  {
439
- name: 'chequeExpensiveDelayBlocks',
449
+ name: 'payeePeriod',
440
450
  type: 'uint256',
441
451
  },
442
452
  {
443
- name: 'chequeDefaultExpiryBlocks',
453
+ name: 'payeeActivationLength',
444
454
  type: 'uint256',
445
455
  },
446
456
  {
447
- name: 'trialAsset',
448
- type: 'address',
449
- },
450
- {
451
- name: 'trialAmount',
457
+ name: 'chequeMaxNumActiveCheques',
452
458
  type: 'uint256',
453
459
  },
454
460
  {
455
- name: 'minKeyActionTimeLock',
461
+ name: 'chequeInstantUsdThreshold',
456
462
  type: 'uint256',
457
463
  },
458
464
  {
459
- name: 'maxKeyActionTimeLock',
465
+ name: 'chequePeriodLength',
460
466
  type: 'uint256',
461
467
  },
462
- ],
463
- },
464
- ],
465
- },
466
- {
467
- stateMutability: 'view',
468
- type: 'function',
469
- name: 'getLootDistroConfig',
470
- inputs: [
471
- {
472
- name: '_asset',
473
- type: 'address',
474
- },
475
- ],
476
- outputs: [
477
- {
478
- name: '',
479
- type: 'tuple',
480
- components: [
481
468
  {
482
- name: 'ambassador',
483
- type: 'address',
484
- },
485
- {
486
- name: 'ambassadorRevShare',
487
- type: 'tuple',
488
- components: [
489
- {
490
- name: 'swapRatio',
491
- type: 'uint256',
492
- },
493
- {
494
- name: 'rewardsRatio',
495
- type: 'uint256',
496
- },
497
- {
498
- name: 'yieldRatio',
499
- type: 'uint256',
500
- },
501
- ],
502
- },
503
- {
504
- name: 'ambassadorBonusRatio',
469
+ name: 'chequeExpensiveDelayBlocks',
505
470
  type: 'uint256',
506
471
  },
507
472
  {
508
- name: 'bonusRatio',
473
+ name: 'chequeDefaultExpiryBlocks',
509
474
  type: 'uint256',
510
475
  },
511
476
  {
512
- name: 'altBonusAsset',
513
- type: 'address',
514
- },
515
- {
516
- name: 'underlyingAsset',
517
- type: 'address',
518
- },
519
- {
520
- name: 'decimals',
477
+ name: 'minKeyActionTimeLock',
521
478
  type: 'uint256',
522
479
  },
523
480
  {
524
- name: 'legoId',
481
+ name: 'maxKeyActionTimeLock',
525
482
  type: 'uint256',
526
483
  },
527
- {
528
- name: 'legoAddr',
529
- type: 'address',
530
- },
531
484
  ],
532
485
  },
533
486
  ],
@@ -565,18 +518,6 @@ export const abi = [
565
518
  name: '_config',
566
519
  type: 'tuple',
567
520
  components: [
568
- {
569
- name: 'agentTemplate',
570
- type: 'address',
571
- },
572
- {
573
- name: 'numAgentsAllowed',
574
- type: 'uint256',
575
- },
576
- {
577
- name: 'enforceCreatorWhitelist',
578
- type: 'bool',
579
- },
580
521
  {
581
522
  name: 'startingAgent',
582
523
  type: 'address',
@@ -602,45 +543,6 @@ export const abi = [
602
543
  ],
603
544
  outputs: [],
604
545
  },
605
- {
606
- stateMutability: 'view',
607
- type: 'function',
608
- name: 'getAgentCreationConfig',
609
- inputs: [
610
- {
611
- name: '_creator',
612
- type: 'address',
613
- },
614
- ],
615
- outputs: [
616
- {
617
- name: '',
618
- type: 'tuple',
619
- components: [
620
- {
621
- name: 'agentTemplate',
622
- type: 'address',
623
- },
624
- {
625
- name: 'numAgentsAllowed',
626
- type: 'uint256',
627
- },
628
- {
629
- name: 'isCreatorAllowed',
630
- type: 'bool',
631
- },
632
- {
633
- name: 'minTimeLock',
634
- type: 'uint256',
635
- },
636
- {
637
- name: 'maxTimeLock',
638
- type: 'uint256',
639
- },
640
- ],
641
- },
642
- ],
643
- },
644
546
  {
645
547
  stateMutability: 'nonpayable',
646
548
  type: 'function',
@@ -655,16 +557,8 @@ export const abi = [
655
557
  type: 'tuple',
656
558
  components: [
657
559
  {
658
- name: 'legoId',
659
- type: 'uint256',
660
- },
661
- {
662
- name: 'decimals',
663
- type: 'uint256',
664
- },
665
- {
666
- name: 'staleBlocks',
667
- type: 'uint256',
560
+ name: 'hasConfig',
561
+ type: 'bool',
668
562
  },
669
563
  {
670
564
  name: 'txFees',
@@ -706,18 +600,6 @@ export const abi = [
706
600
  name: 'yieldConfig',
707
601
  type: 'tuple',
708
602
  components: [
709
- {
710
- name: 'isYieldAsset',
711
- type: 'bool',
712
- },
713
- {
714
- name: 'isRebasing',
715
- type: 'bool',
716
- },
717
- {
718
- name: 'underlyingAsset',
719
- type: 'address',
720
- },
721
603
  {
722
604
  name: 'maxYieldIncrease',
723
605
  type: 'uint256',
@@ -735,7 +617,7 @@ export const abi = [
735
617
  type: 'uint256',
736
618
  },
737
619
  {
738
- name: 'altBonusAsset',
620
+ name: 'bonusAsset',
739
621
  type: 'address',
740
622
  },
741
623
  ],
@@ -761,6 +643,44 @@ export const abi = [
761
643
  ],
762
644
  outputs: [],
763
645
  },
646
+ {
647
+ stateMutability: 'view',
648
+ type: 'function',
649
+ name: 'getSwapFee',
650
+ inputs: [
651
+ {
652
+ name: '_tokenIn',
653
+ type: 'address',
654
+ },
655
+ {
656
+ name: '_tokenOut',
657
+ type: 'address',
658
+ },
659
+ ],
660
+ outputs: [
661
+ {
662
+ name: '',
663
+ type: 'uint256',
664
+ },
665
+ ],
666
+ },
667
+ {
668
+ stateMutability: 'view',
669
+ type: 'function',
670
+ name: 'getRewardsFee',
671
+ inputs: [
672
+ {
673
+ name: '_asset',
674
+ type: 'address',
675
+ },
676
+ ],
677
+ outputs: [
678
+ {
679
+ name: '',
680
+ type: 'uint256',
681
+ },
682
+ ],
683
+ },
764
684
  {
765
685
  stateMutability: 'view',
766
686
  type: 'function',
@@ -784,22 +704,10 @@ export const abi = [
784
704
  name: 'legoAddr',
785
705
  type: 'address',
786
706
  },
787
- {
788
- name: 'decimals',
789
- type: 'uint256',
790
- },
791
- {
792
- name: 'staleBlocks',
793
- type: 'uint256',
794
- },
795
707
  {
796
708
  name: 'isYieldAsset',
797
709
  type: 'bool',
798
710
  },
799
- {
800
- name: 'isRebasing',
801
- type: 'bool',
802
- },
803
711
  {
804
712
  name: 'underlyingAsset',
805
713
  type: 'address',
@@ -812,6 +720,14 @@ export const abi = [
812
720
  name: 'performanceFee',
813
721
  type: 'uint256',
814
722
  },
723
+ {
724
+ name: 'isRebasing',
725
+ type: 'bool',
726
+ },
727
+ {
728
+ name: 'decimals',
729
+ type: 'uint256',
730
+ },
815
731
  ],
816
732
  },
817
733
  ],
@@ -839,14 +755,6 @@ export const abi = [
839
755
  name: 'legoAddr',
840
756
  type: 'address',
841
757
  },
842
- {
843
- name: 'decimals',
844
- type: 'uint256',
845
- },
846
- {
847
- name: 'staleBlocks',
848
- type: 'uint256',
849
- },
850
758
  {
851
759
  name: 'isYieldAsset',
852
760
  type: 'bool',
@@ -862,28 +770,7 @@ export const abi = [
862
770
  {
863
771
  stateMutability: 'view',
864
772
  type: 'function',
865
- name: 'getSwapFee',
866
- inputs: [
867
- {
868
- name: '_tokenIn',
869
- type: 'address',
870
- },
871
- {
872
- name: '_tokenOut',
873
- type: 'address',
874
- },
875
- ],
876
- outputs: [
877
- {
878
- name: '',
879
- type: 'uint256',
880
- },
881
- ],
882
- },
883
- {
884
- stateMutability: 'view',
885
- type: 'function',
886
- name: 'getRewardsFee',
773
+ name: 'getLootDistroConfig',
887
774
  inputs: [
888
775
  {
889
776
  name: '_asset',
@@ -893,7 +780,55 @@ export const abi = [
893
780
  outputs: [
894
781
  {
895
782
  name: '',
896
- type: 'uint256',
783
+ type: 'tuple',
784
+ components: [
785
+ {
786
+ name: 'legoId',
787
+ type: 'uint256',
788
+ },
789
+ {
790
+ name: 'legoAddr',
791
+ type: 'address',
792
+ },
793
+ {
794
+ name: 'underlyingAsset',
795
+ type: 'address',
796
+ },
797
+ {
798
+ name: 'ambassador',
799
+ type: 'address',
800
+ },
801
+ {
802
+ name: 'ambassadorRevShare',
803
+ type: 'tuple',
804
+ components: [
805
+ {
806
+ name: 'swapRatio',
807
+ type: 'uint256',
808
+ },
809
+ {
810
+ name: 'rewardsRatio',
811
+ type: 'uint256',
812
+ },
813
+ {
814
+ name: 'yieldRatio',
815
+ type: 'uint256',
816
+ },
817
+ ],
818
+ },
819
+ {
820
+ name: 'ambassadorBonusRatio',
821
+ type: 'uint256',
822
+ },
823
+ {
824
+ name: 'bonusRatio',
825
+ type: 'uint256',
826
+ },
827
+ {
828
+ name: 'bonusAsset',
829
+ type: 'address',
830
+ },
831
+ ],
897
832
  },
898
833
  ],
899
834
  },
@@ -963,14 +898,6 @@ export const abi = [
963
898
  name: 'configTemplate',
964
899
  type: 'address',
965
900
  },
966
- {
967
- name: 'trialAsset',
968
- type: 'address',
969
- },
970
- {
971
- name: 'trialAmount',
972
- type: 'uint256',
973
- },
974
901
  {
975
902
  name: 'numUserWalletsAllowed',
976
903
  type: 'uint256',
@@ -987,14 +914,14 @@ export const abi = [
987
914
  name: 'maxKeyActionTimeLock',
988
915
  type: 'uint256',
989
916
  },
990
- {
991
- name: 'defaultStaleBlocks',
992
- type: 'uint256',
993
- },
994
917
  {
995
918
  name: 'depositRewardsAsset',
996
919
  type: 'address',
997
920
  },
921
+ {
922
+ name: 'lootClaimCoolOffPeriod',
923
+ type: 'uint256',
924
+ },
998
925
  {
999
926
  name: 'txFees',
1000
927
  type: 'tuple',
@@ -1032,28 +959,30 @@ export const abi = [
1032
959
  ],
1033
960
  },
1034
961
  {
1035
- name: 'defaultYieldMaxIncrease',
1036
- type: 'uint256',
1037
- },
1038
- {
1039
- name: 'defaultYieldPerformanceFee',
1040
- type: 'uint256',
1041
- },
1042
- {
1043
- name: 'defaultYieldAmbassadorBonusRatio',
1044
- type: 'uint256',
1045
- },
1046
- {
1047
- name: 'defaultYieldBonusRatio',
1048
- type: 'uint256',
1049
- },
1050
- {
1051
- name: 'defaultYieldAltBonusAsset',
1052
- type: 'address',
1053
- },
1054
- {
1055
- name: 'lootClaimCoolOffPeriod',
1056
- type: 'uint256',
962
+ name: 'yieldConfig',
963
+ type: 'tuple',
964
+ components: [
965
+ {
966
+ name: 'maxYieldIncrease',
967
+ type: 'uint256',
968
+ },
969
+ {
970
+ name: 'performanceFee',
971
+ type: 'uint256',
972
+ },
973
+ {
974
+ name: 'ambassadorBonusRatio',
975
+ type: 'uint256',
976
+ },
977
+ {
978
+ name: 'bonusRatio',
979
+ type: 'uint256',
980
+ },
981
+ {
982
+ name: 'bonusAsset',
983
+ type: 'address',
984
+ },
985
+ ],
1057
986
  },
1058
987
  ],
1059
988
  },
@@ -1069,18 +998,6 @@ export const abi = [
1069
998
  name: '',
1070
999
  type: 'tuple',
1071
1000
  components: [
1072
- {
1073
- name: 'agentTemplate',
1074
- type: 'address',
1075
- },
1076
- {
1077
- name: 'numAgentsAllowed',
1078
- type: 'uint256',
1079
- },
1080
- {
1081
- name: 'enforceCreatorWhitelist',
1082
- type: 'bool',
1083
- },
1084
1001
  {
1085
1002
  name: 'startingAgent',
1086
1003
  type: 'address',
@@ -1111,6 +1028,22 @@ export const abi = [
1111
1028
  name: 'managerActivationLength',
1112
1029
  type: 'uint256',
1113
1030
  },
1031
+ {
1032
+ name: 'mustHaveUsdValueOnSwaps',
1033
+ type: 'bool',
1034
+ },
1035
+ {
1036
+ name: 'maxNumSwapsPerPeriod',
1037
+ type: 'uint256',
1038
+ },
1039
+ {
1040
+ name: 'maxSlippageOnSwaps',
1041
+ type: 'uint256',
1042
+ },
1043
+ {
1044
+ name: 'onlyApprovedYieldOpps',
1045
+ type: 'bool',
1046
+ },
1114
1047
  ],
1115
1048
  },
1116
1049
  ],
@@ -1187,16 +1120,8 @@ export const abi = [
1187
1120
  type: 'tuple',
1188
1121
  components: [
1189
1122
  {
1190
- name: 'legoId',
1191
- type: 'uint256',
1192
- },
1193
- {
1194
- name: 'decimals',
1195
- type: 'uint256',
1196
- },
1197
- {
1198
- name: 'staleBlocks',
1199
- type: 'uint256',
1123
+ name: 'hasConfig',
1124
+ type: 'bool',
1200
1125
  },
1201
1126
  {
1202
1127
  name: 'txFees',
@@ -1238,18 +1163,6 @@ export const abi = [
1238
1163
  name: 'yieldConfig',
1239
1164
  type: 'tuple',
1240
1165
  components: [
1241
- {
1242
- name: 'isYieldAsset',
1243
- type: 'bool',
1244
- },
1245
- {
1246
- name: 'isRebasing',
1247
- type: 'bool',
1248
- },
1249
- {
1250
- name: 'underlyingAsset',
1251
- type: 'address',
1252
- },
1253
1166
  {
1254
1167
  name: 'maxYieldIncrease',
1255
1168
  type: 'uint256',
@@ -1267,7 +1180,7 @@ export const abi = [
1267
1180
  type: 'uint256',
1268
1181
  },
1269
1182
  {
1270
- name: 'altBonusAsset',
1183
+ name: 'bonusAsset',
1271
1184
  type: 'address',
1272
1185
  },
1273
1186
  ],
@@ -1360,7 +1273,7 @@ export const abi = [
1360
1273
  outputs: [],
1361
1274
  },
1362
1275
  ];
1363
- export const deployAddress = '0x910FE9484540fa21B092eE04a478A30A6B342006';
1276
+ export const deployAddress = '0x89c8A842CD9428024294cB6a52c28D5EB23e2cBE';
1364
1277
  function getRequest(method, args, contractAddressOrOptions) {
1365
1278
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1366
1279
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -1394,14 +1307,13 @@ export const call = {
1394
1307
  canMintUndy: (...args) => getRequest('canMintUndy', args),
1395
1308
  isPaused: (...args) => getRequest('isPaused', args),
1396
1309
  getUserWalletCreationConfig: (...args) => getRequest('getUserWalletCreationConfig', args),
1397
- getLootDistroConfig: (...args) => getRequest('getLootDistroConfig', args),
1398
1310
  getDepositRewardsAsset: (...args) => getRequest('getDepositRewardsAsset', args),
1399
1311
  getLootClaimCoolOffPeriod: (...args) => getRequest('getLootClaimCoolOffPeriod', args),
1400
- getAgentCreationConfig: (...args) => getRequest('getAgentCreationConfig', args),
1401
- getProfitCalcConfig: (...args) => getRequest('getProfitCalcConfig', args),
1402
- getAssetUsdValueConfig: (...args) => getRequest('getAssetUsdValueConfig', args),
1403
1312
  getSwapFee: (...args) => getRequest('getSwapFee', args),
1404
1313
  getRewardsFee: (...args) => getRequest('getRewardsFee', args),
1314
+ getProfitCalcConfig: (...args) => getRequest('getProfitCalcConfig', args),
1315
+ getAssetUsdValueConfig: (...args) => getRequest('getAssetUsdValueConfig', args),
1316
+ getLootDistroConfig: (...args) => getRequest('getLootDistroConfig', args),
1405
1317
  userWalletConfig: (...args) => getRequest('userWalletConfig', args),
1406
1318
  agentConfig: (...args) => getRequest('agentConfig', args),
1407
1319
  managerConfig: (...args) => getRequest('managerConfig', args),
@@ -1448,14 +1360,13 @@ export function toSdk(publicClient, walletClient) {
1448
1360
  canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
1449
1361
  isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1450
1362
  getUserWalletCreationConfig: (...args) => singleQuery(publicClient, call.getUserWalletCreationConfig(...args)),
1451
- getLootDistroConfig: (...args) => singleQuery(publicClient, call.getLootDistroConfig(...args)),
1452
1363
  getDepositRewardsAsset: (...args) => singleQuery(publicClient, call.getDepositRewardsAsset(...args)),
1453
1364
  getLootClaimCoolOffPeriod: (...args) => singleQuery(publicClient, call.getLootClaimCoolOffPeriod(...args)),
1454
- getAgentCreationConfig: (...args) => singleQuery(publicClient, call.getAgentCreationConfig(...args)),
1455
- getProfitCalcConfig: (...args) => singleQuery(publicClient, call.getProfitCalcConfig(...args)),
1456
- getAssetUsdValueConfig: (...args) => singleQuery(publicClient, call.getAssetUsdValueConfig(...args)),
1457
1365
  getSwapFee: (...args) => singleQuery(publicClient, call.getSwapFee(...args)),
1458
1366
  getRewardsFee: (...args) => singleQuery(publicClient, call.getRewardsFee(...args)),
1367
+ getProfitCalcConfig: (...args) => singleQuery(publicClient, call.getProfitCalcConfig(...args)),
1368
+ getAssetUsdValueConfig: (...args) => singleQuery(publicClient, call.getAssetUsdValueConfig(...args)),
1369
+ getLootDistroConfig: (...args) => singleQuery(publicClient, call.getLootDistroConfig(...args)),
1459
1370
  userWalletConfig: (...args) => singleQuery(publicClient, call.userWalletConfig(...args)),
1460
1371
  agentConfig: (...args) => singleQuery(publicClient, call.agentConfig(...args)),
1461
1372
  managerConfig: (...args) => singleQuery(publicClient, call.managerConfig(...args)),