@defisaver/sdk 1.0.35 → 1.0.37

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 (112) hide show
  1. package/esm/src/actions/basic/SDaiUnwrapAction.d.ts +15 -0
  2. package/esm/src/actions/basic/SDaiUnwrapAction.js +24 -0
  3. package/esm/src/actions/basic/SDaiWrapAction.d.ts +15 -0
  4. package/esm/src/actions/basic/SDaiWrapAction.js +24 -0
  5. package/esm/src/actions/basic/index.d.ts +2 -0
  6. package/esm/src/actions/basic/index.js +2 -0
  7. package/esm/src/actions/checkers/SparkRatioCheckAction.d.ts +14 -0
  8. package/esm/src/actions/checkers/SparkRatioCheckAction.js +20 -0
  9. package/esm/src/actions/checkers/index.d.ts +1 -0
  10. package/esm/src/actions/checkers/index.js +1 -0
  11. package/esm/src/actions/curveusd/CurveUsdBorrowAction.d.ts +15 -0
  12. package/esm/src/actions/curveusd/CurveUsdBorrowAction.js +22 -0
  13. package/esm/src/actions/curveusd/CurveUsdCreateAction.d.ts +22 -0
  14. package/esm/src/actions/curveusd/CurveUsdCreateAction.js +44 -0
  15. package/esm/src/actions/curveusd/CurveUsdLevCreateAction.d.ts +9 -0
  16. package/esm/src/actions/curveusd/CurveUsdLevCreateAction.js +16 -0
  17. package/esm/src/actions/curveusd/CurveUsdPaybackAction.d.ts +22 -0
  18. package/esm/src/actions/curveusd/CurveUsdPaybackAction.js +43 -0
  19. package/esm/src/actions/curveusd/CurveUsdRepayAction.d.ts +9 -0
  20. package/esm/src/actions/curveusd/CurveUsdRepayAction.js +14 -0
  21. package/esm/src/actions/curveusd/CurveUsdSelfLiquidateAction.d.ts +19 -0
  22. package/esm/src/actions/curveusd/CurveUsdSelfLiquidateAction.js +38 -0
  23. package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.d.ts +9 -0
  24. package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.js +16 -0
  25. package/esm/src/actions/curveusd/CurveUsdSupplyAction.d.ts +20 -0
  26. package/esm/src/actions/curveusd/CurveUsdSupplyAction.js +40 -0
  27. package/esm/src/actions/curveusd/CurveUsdWithdrawAction.d.ts +15 -0
  28. package/esm/src/actions/curveusd/CurveUsdWithdrawAction.js +22 -0
  29. package/esm/src/actions/curveusd/index.d.ts +9 -0
  30. package/esm/src/actions/curveusd/index.js +9 -0
  31. package/esm/src/actions/flashloan/FLAction.js +8 -2
  32. package/esm/src/actions/flashloan/SparkFlashLoanAction.d.ts +18 -0
  33. package/esm/src/actions/flashloan/SparkFlashLoanAction.js +20 -0
  34. package/esm/src/actions/flashloan/SparkFlashLoanPaybackAction.d.ts +14 -0
  35. package/esm/src/actions/flashloan/SparkFlashLoanPaybackAction.js +16 -0
  36. package/esm/src/actions/flashloan/index.d.ts +2 -0
  37. package/esm/src/actions/flashloan/index.js +2 -0
  38. package/esm/src/actions/index.d.ts +3 -1
  39. package/esm/src/actions/index.js +3 -1
  40. package/esm/src/actions/spark/SparkBorrowAction.d.ts +21 -0
  41. package/esm/src/actions/spark/SparkBorrowAction.js +59 -0
  42. package/esm/src/actions/spark/SparkClaimRewardsAction.d.ts +18 -0
  43. package/esm/src/actions/spark/SparkClaimRewardsAction.js +40 -0
  44. package/esm/src/actions/spark/SparkCollateralSwitchAction.d.ts +18 -0
  45. package/esm/src/actions/spark/SparkCollateralSwitchAction.js +39 -0
  46. package/esm/src/actions/spark/SparkPaybackAction.d.ts +27 -0
  47. package/esm/src/actions/spark/SparkPaybackAction.js +77 -0
  48. package/esm/src/actions/spark/SparkSetEModeAction.d.ts +16 -0
  49. package/esm/src/actions/spark/SparkSetEModeAction.js +33 -0
  50. package/esm/src/actions/spark/SparkSpTokenPaybackAction.d.ts +25 -0
  51. package/esm/src/actions/spark/SparkSpTokenPaybackAction.js +64 -0
  52. package/esm/src/actions/spark/SparkSupplyAction.d.ts +27 -0
  53. package/esm/src/actions/spark/SparkSupplyAction.js +77 -0
  54. package/esm/src/actions/spark/SparkSwapBorrowRateModeAction.d.ts +18 -0
  55. package/esm/src/actions/spark/SparkSwapBorrowRateModeAction.js +38 -0
  56. package/esm/src/actions/spark/SparkWithdrawAction.d.ts +18 -0
  57. package/esm/src/actions/spark/SparkWithdrawAction.js +45 -0
  58. package/esm/src/actions/spark/index.d.ts +9 -0
  59. package/esm/src/actions/spark/index.js +9 -0
  60. package/esm/src/addresses.d.ts +66 -0
  61. package/esm/src/addresses.js +24 -0
  62. package/esm/src/index.d.ts +264 -0
  63. package/esm/src/triggers/SparkQuotePriceTrigger.d.ts +10 -0
  64. package/esm/src/triggers/SparkQuotePriceTrigger.js +12 -0
  65. package/esm/src/triggers/SparkRatioTrigger.d.ts +10 -0
  66. package/esm/src/triggers/SparkRatioTrigger.js +12 -0
  67. package/esm/src/triggers/index.d.ts +2 -0
  68. package/esm/src/triggers/index.js +2 -0
  69. package/esm/src/types.d.ts +3 -1
  70. package/esm/src/utils/curveusd-utils.d.ts +20 -0
  71. package/esm/src/utils/curveusd-utils.js +12 -0
  72. package/esm/src/utils/index.d.ts +2 -1
  73. package/esm/src/utils/index.js +2 -1
  74. package/package.json +1 -1
  75. package/src/actions/basic/SDaiUnwrapAction.ts +32 -0
  76. package/src/actions/basic/SDaiWrapAction.ts +32 -0
  77. package/src/actions/basic/index.ts +2 -0
  78. package/src/actions/checkers/SparkRatioCheckAction.ts +23 -0
  79. package/src/actions/checkers/index.ts +2 -1
  80. package/src/actions/curveusd/CurveUsdBorrowAction.ts +34 -0
  81. package/src/actions/curveusd/CurveUsdCreateAction.ts +49 -0
  82. package/src/actions/curveusd/CurveUsdLevCreateAction.ts +40 -0
  83. package/src/actions/curveusd/CurveUsdPaybackAction.ts +48 -0
  84. package/src/actions/curveusd/CurveUsdRepayAction.ts +36 -0
  85. package/src/actions/curveusd/CurveUsdSelfLiquidateAction.ts +41 -0
  86. package/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.ts +40 -0
  87. package/src/actions/curveusd/CurveUsdSupplyAction.ts +44 -0
  88. package/src/actions/curveusd/CurveUsdWithdrawAction.ts +34 -0
  89. package/src/actions/curveusd/index.ts +10 -0
  90. package/src/actions/flashloan/FLAction.ts +8 -2
  91. package/src/actions/flashloan/SparkFlashLoanAction.ts +27 -0
  92. package/src/actions/flashloan/SparkFlashLoanPaybackAction.ts +18 -0
  93. package/src/actions/flashloan/index.ts +2 -0
  94. package/src/actions/index.ts +4 -0
  95. package/src/actions/spark/SparkBorrowAction.ts +68 -0
  96. package/src/actions/spark/SparkClaimRewardsAction.ts +50 -0
  97. package/src/actions/spark/SparkCollateralSwitchAction.ts +47 -0
  98. package/src/actions/spark/SparkPaybackAction.ts +77 -0
  99. package/src/actions/spark/SparkSetEModeAction.ts +40 -0
  100. package/src/actions/spark/SparkSpTokenPaybackAction.ts +64 -0
  101. package/src/actions/spark/SparkSupplyAction.ts +75 -0
  102. package/src/actions/spark/SparkSwapBorrowRateModeAction.ts +46 -0
  103. package/src/actions/spark/SparkWithdrawAction.ts +53 -0
  104. package/src/actions/spark/index.ts +9 -0
  105. package/src/addresses.ts +27 -0
  106. package/src/triggers/SparkQuotePriceTrigger.ts +14 -0
  107. package/src/triggers/SparkRatioTrigger.ts +14 -0
  108. package/src/triggers/index.ts +2 -0
  109. package/src/types.ts +3 -1
  110. package/src/utils/curveusd-utils.ts +15 -0
  111. package/src/utils/index.ts +2 -0
  112. package/umd/index.js +1625 -392
@@ -26,6 +26,8 @@ declare const actionAddressesAllChains: {
26
26
  UpdateSub: string;
27
27
  TransferNFT: string;
28
28
  CreateSub: string;
29
+ SDaiWrap: string;
30
+ SDaiUnwrap: string;
29
31
  DFSSell: string;
30
32
  McdGenerate: string;
31
33
  McdGive: string;
@@ -70,6 +72,15 @@ declare const actionAddressesAllChains: {
70
72
  MorphoAaveV3Payback: string;
71
73
  MorphoAaveV3Supply: string;
72
74
  MorphoAaveV3Withdraw: string;
75
+ SparkBorrow: string;
76
+ SparkClaimRewards: string;
77
+ SparkCollateralSwitch: string;
78
+ SparkPayback: string;
79
+ SparkSetEMode: string;
80
+ SparkSpTokenPayback: string;
81
+ SparkSupply: string;
82
+ SparkSwapBorrowRateMode: string;
83
+ SparkWithdraw: string;
73
84
  CompBorrow: string;
74
85
  CompClaim: string;
75
86
  CompPayback: string;
@@ -83,6 +94,7 @@ declare const actionAddressesAllChains: {
83
94
  FLDyDx: string;
84
95
  FLMaker: string;
85
96
  FLBalancer: string;
97
+ FLSpark: string;
86
98
  FLAction: string;
87
99
  FLUniV3: string;
88
100
  FLGho: string;
@@ -155,6 +167,16 @@ declare const actionAddressesAllChains: {
155
167
  CompV3Supply: string;
156
168
  CompV3Transfer: string;
157
169
  CompV3Withdraw: string;
170
+ CurveUsdBorrow: string;
171
+ CurveUsdCreate: string;
172
+ CurveUsdPayback: string;
173
+ CurveUsdSupply: string;
174
+ CurveUsdWithdraw: string;
175
+ CurveUsdLevCreate: string;
176
+ CurveUsdRepay: string;
177
+ CurveUsdSwapper: string;
178
+ CurveUsdSelfLiquidate: string;
179
+ CurveUsdSelfLiquidateWithColl: string;
158
180
  AaveV3RatioTrigger?: undefined;
159
181
  GasFeeTakerL2?: undefined;
160
182
  AaveV3RatioCheck?: undefined;
@@ -195,6 +217,8 @@ declare const actionAddressesAllChains: {
195
217
  UpdateSub?: undefined;
196
218
  TransferNFT?: undefined;
197
219
  CreateSub?: undefined;
220
+ SDaiWrap?: undefined;
221
+ SDaiUnwrap?: undefined;
198
222
  McdGenerate?: undefined;
199
223
  McdGive?: undefined;
200
224
  McdMerge?: undefined;
@@ -229,6 +253,15 @@ declare const actionAddressesAllChains: {
229
253
  MorphoAaveV3Payback?: undefined;
230
254
  MorphoAaveV3Supply?: undefined;
231
255
  MorphoAaveV3Withdraw?: undefined;
256
+ SparkBorrow?: undefined;
257
+ SparkClaimRewards?: undefined;
258
+ SparkCollateralSwitch?: undefined;
259
+ SparkPayback?: undefined;
260
+ SparkSetEMode?: undefined;
261
+ SparkSpTokenPayback?: undefined;
262
+ SparkSupply?: undefined;
263
+ SparkSwapBorrowRateMode?: undefined;
264
+ SparkWithdraw?: undefined;
232
265
  CompBorrow?: undefined;
233
266
  CompClaim?: undefined;
234
267
  CompPayback?: undefined;
@@ -239,6 +272,7 @@ declare const actionAddressesAllChains: {
239
272
  FLAaveV2?: undefined;
240
273
  FLDyDx?: undefined;
241
274
  FLMaker?: undefined;
275
+ FLSpark?: undefined;
242
276
  FLUniV3?: undefined;
243
277
  FLGho?: undefined;
244
278
  UniSupply?: undefined;
@@ -305,6 +339,16 @@ declare const actionAddressesAllChains: {
305
339
  CompV3Supply?: undefined;
306
340
  CompV3Transfer?: undefined;
307
341
  CompV3Withdraw?: undefined;
342
+ CurveUsdBorrow?: undefined;
343
+ CurveUsdCreate?: undefined;
344
+ CurveUsdPayback?: undefined;
345
+ CurveUsdSupply?: undefined;
346
+ CurveUsdWithdraw?: undefined;
347
+ CurveUsdLevCreate?: undefined;
348
+ CurveUsdRepay?: undefined;
349
+ CurveUsdSwapper?: undefined;
350
+ CurveUsdSelfLiquidate?: undefined;
351
+ CurveUsdSelfLiquidateWithColl?: undefined;
308
352
  } | {
309
353
  DFSSell: string;
310
354
  WrapEth: string;
@@ -340,6 +384,8 @@ declare const actionAddressesAllChains: {
340
384
  UpdateSub?: undefined;
341
385
  TransferNFT?: undefined;
342
386
  CreateSub?: undefined;
387
+ SDaiWrap?: undefined;
388
+ SDaiUnwrap?: undefined;
343
389
  McdGenerate?: undefined;
344
390
  McdGive?: undefined;
345
391
  McdMerge?: undefined;
@@ -375,6 +421,15 @@ declare const actionAddressesAllChains: {
375
421
  MorphoAaveV3Payback?: undefined;
376
422
  MorphoAaveV3Supply?: undefined;
377
423
  MorphoAaveV3Withdraw?: undefined;
424
+ SparkBorrow?: undefined;
425
+ SparkClaimRewards?: undefined;
426
+ SparkCollateralSwitch?: undefined;
427
+ SparkPayback?: undefined;
428
+ SparkSetEMode?: undefined;
429
+ SparkSpTokenPayback?: undefined;
430
+ SparkSupply?: undefined;
431
+ SparkSwapBorrowRateMode?: undefined;
432
+ SparkWithdraw?: undefined;
378
433
  CompBorrow?: undefined;
379
434
  CompClaim?: undefined;
380
435
  CompPayback?: undefined;
@@ -385,6 +440,7 @@ declare const actionAddressesAllChains: {
385
440
  FLAaveV2?: undefined;
386
441
  FLDyDx?: undefined;
387
442
  FLMaker?: undefined;
443
+ FLSpark?: undefined;
388
444
  FLUniV3?: undefined;
389
445
  FLGho?: undefined;
390
446
  UniSupply?: undefined;
@@ -451,6 +507,16 @@ declare const actionAddressesAllChains: {
451
507
  CompV3Supply?: undefined;
452
508
  CompV3Transfer?: undefined;
453
509
  CompV3Withdraw?: undefined;
510
+ CurveUsdBorrow?: undefined;
511
+ CurveUsdCreate?: undefined;
512
+ CurveUsdPayback?: undefined;
513
+ CurveUsdSupply?: undefined;
514
+ CurveUsdWithdraw?: undefined;
515
+ CurveUsdLevCreate?: undefined;
516
+ CurveUsdRepay?: undefined;
517
+ CurveUsdSwapper?: undefined;
518
+ CurveUsdSelfLiquidate?: undefined;
519
+ CurveUsdSelfLiquidateWithColl?: undefined;
454
520
  AaveV3RatioTrigger?: undefined;
455
521
  };
456
522
  };
@@ -469,6 +535,8 @@ declare const actionAddresses: (chainId?: null) => {
469
535
  UpdateSub: string;
470
536
  TransferNFT: string;
471
537
  CreateSub: string;
538
+ SDaiWrap: string;
539
+ SDaiUnwrap: string;
472
540
  DFSSell: string;
473
541
  McdGenerate: string;
474
542
  McdGive: string;
@@ -513,6 +581,15 @@ declare const actionAddresses: (chainId?: null) => {
513
581
  MorphoAaveV3Payback: string;
514
582
  MorphoAaveV3Supply: string;
515
583
  MorphoAaveV3Withdraw: string;
584
+ SparkBorrow: string;
585
+ SparkClaimRewards: string;
586
+ SparkCollateralSwitch: string;
587
+ SparkPayback: string;
588
+ SparkSetEMode: string;
589
+ SparkSpTokenPayback: string;
590
+ SparkSupply: string;
591
+ SparkSwapBorrowRateMode: string;
592
+ SparkWithdraw: string;
516
593
  CompBorrow: string;
517
594
  CompClaim: string;
518
595
  CompPayback: string;
@@ -526,6 +603,7 @@ declare const actionAddresses: (chainId?: null) => {
526
603
  FLDyDx: string;
527
604
  FLMaker: string;
528
605
  FLBalancer: string;
606
+ FLSpark: string;
529
607
  FLAction: string;
530
608
  FLUniV3: string;
531
609
  FLGho: string;
@@ -598,6 +676,16 @@ declare const actionAddresses: (chainId?: null) => {
598
676
  CompV3Supply: string;
599
677
  CompV3Transfer: string;
600
678
  CompV3Withdraw: string;
679
+ CurveUsdBorrow: string;
680
+ CurveUsdCreate: string;
681
+ CurveUsdPayback: string;
682
+ CurveUsdSupply: string;
683
+ CurveUsdWithdraw: string;
684
+ CurveUsdLevCreate: string;
685
+ CurveUsdRepay: string;
686
+ CurveUsdSwapper: string;
687
+ CurveUsdSelfLiquidate: string;
688
+ CurveUsdSelfLiquidateWithColl: string;
601
689
  AaveV3RatioTrigger?: undefined;
602
690
  GasFeeTakerL2?: undefined;
603
691
  AaveV3RatioCheck?: undefined;
@@ -638,6 +726,8 @@ declare const actionAddresses: (chainId?: null) => {
638
726
  UpdateSub?: undefined;
639
727
  TransferNFT?: undefined;
640
728
  CreateSub?: undefined;
729
+ SDaiWrap?: undefined;
730
+ SDaiUnwrap?: undefined;
641
731
  McdGenerate?: undefined;
642
732
  McdGive?: undefined;
643
733
  McdMerge?: undefined;
@@ -672,6 +762,15 @@ declare const actionAddresses: (chainId?: null) => {
672
762
  MorphoAaveV3Payback?: undefined;
673
763
  MorphoAaveV3Supply?: undefined;
674
764
  MorphoAaveV3Withdraw?: undefined;
765
+ SparkBorrow?: undefined;
766
+ SparkClaimRewards?: undefined;
767
+ SparkCollateralSwitch?: undefined;
768
+ SparkPayback?: undefined;
769
+ SparkSetEMode?: undefined;
770
+ SparkSpTokenPayback?: undefined;
771
+ SparkSupply?: undefined;
772
+ SparkSwapBorrowRateMode?: undefined;
773
+ SparkWithdraw?: undefined;
675
774
  CompBorrow?: undefined;
676
775
  CompClaim?: undefined;
677
776
  CompPayback?: undefined;
@@ -682,6 +781,7 @@ declare const actionAddresses: (chainId?: null) => {
682
781
  FLAaveV2?: undefined;
683
782
  FLDyDx?: undefined;
684
783
  FLMaker?: undefined;
784
+ FLSpark?: undefined;
685
785
  FLUniV3?: undefined;
686
786
  FLGho?: undefined;
687
787
  UniSupply?: undefined;
@@ -748,6 +848,16 @@ declare const actionAddresses: (chainId?: null) => {
748
848
  CompV3Supply?: undefined;
749
849
  CompV3Transfer?: undefined;
750
850
  CompV3Withdraw?: undefined;
851
+ CurveUsdBorrow?: undefined;
852
+ CurveUsdCreate?: undefined;
853
+ CurveUsdPayback?: undefined;
854
+ CurveUsdSupply?: undefined;
855
+ CurveUsdWithdraw?: undefined;
856
+ CurveUsdLevCreate?: undefined;
857
+ CurveUsdRepay?: undefined;
858
+ CurveUsdSwapper?: undefined;
859
+ CurveUsdSelfLiquidate?: undefined;
860
+ CurveUsdSelfLiquidateWithColl?: undefined;
751
861
  } | {
752
862
  DFSSell: string;
753
863
  WrapEth: string;
@@ -783,6 +893,8 @@ declare const actionAddresses: (chainId?: null) => {
783
893
  UpdateSub?: undefined;
784
894
  TransferNFT?: undefined;
785
895
  CreateSub?: undefined;
896
+ SDaiWrap?: undefined;
897
+ SDaiUnwrap?: undefined;
786
898
  McdGenerate?: undefined;
787
899
  McdGive?: undefined;
788
900
  McdMerge?: undefined;
@@ -818,6 +930,15 @@ declare const actionAddresses: (chainId?: null) => {
818
930
  MorphoAaveV3Payback?: undefined;
819
931
  MorphoAaveV3Supply?: undefined;
820
932
  MorphoAaveV3Withdraw?: undefined;
933
+ SparkBorrow?: undefined;
934
+ SparkClaimRewards?: undefined;
935
+ SparkCollateralSwitch?: undefined;
936
+ SparkPayback?: undefined;
937
+ SparkSetEMode?: undefined;
938
+ SparkSpTokenPayback?: undefined;
939
+ SparkSupply?: undefined;
940
+ SparkSwapBorrowRateMode?: undefined;
941
+ SparkWithdraw?: undefined;
821
942
  CompBorrow?: undefined;
822
943
  CompClaim?: undefined;
823
944
  CompPayback?: undefined;
@@ -828,6 +949,7 @@ declare const actionAddresses: (chainId?: null) => {
828
949
  FLAaveV2?: undefined;
829
950
  FLDyDx?: undefined;
830
951
  FLMaker?: undefined;
952
+ FLSpark?: undefined;
831
953
  FLUniV3?: undefined;
832
954
  FLGho?: undefined;
833
955
  UniSupply?: undefined;
@@ -894,6 +1016,16 @@ declare const actionAddresses: (chainId?: null) => {
894
1016
  CompV3Supply?: undefined;
895
1017
  CompV3Transfer?: undefined;
896
1018
  CompV3Withdraw?: undefined;
1019
+ CurveUsdBorrow?: undefined;
1020
+ CurveUsdCreate?: undefined;
1021
+ CurveUsdPayback?: undefined;
1022
+ CurveUsdSupply?: undefined;
1023
+ CurveUsdWithdraw?: undefined;
1024
+ CurveUsdLevCreate?: undefined;
1025
+ CurveUsdRepay?: undefined;
1026
+ CurveUsdSwapper?: undefined;
1027
+ CurveUsdSelfLiquidate?: undefined;
1028
+ CurveUsdSelfLiquidateWithColl?: undefined;
897
1029
  AaveV3RatioTrigger?: undefined;
898
1030
  };
899
1031
  declare const otherAddressesAllChains: {
@@ -1013,6 +1145,8 @@ declare const _default: {
1013
1145
  UpdateSub: string;
1014
1146
  TransferNFT: string;
1015
1147
  CreateSub: string;
1148
+ SDaiWrap: string;
1149
+ SDaiUnwrap: string;
1016
1150
  DFSSell: string;
1017
1151
  McdGenerate: string;
1018
1152
  McdGive: string;
@@ -1057,6 +1191,15 @@ declare const _default: {
1057
1191
  MorphoAaveV3Payback: string;
1058
1192
  MorphoAaveV3Supply: string;
1059
1193
  MorphoAaveV3Withdraw: string;
1194
+ SparkBorrow: string;
1195
+ SparkClaimRewards: string;
1196
+ SparkCollateralSwitch: string;
1197
+ SparkPayback: string;
1198
+ SparkSetEMode: string;
1199
+ SparkSpTokenPayback: string;
1200
+ SparkSupply: string;
1201
+ SparkSwapBorrowRateMode: string;
1202
+ SparkWithdraw: string;
1060
1203
  CompBorrow: string;
1061
1204
  CompClaim: string;
1062
1205
  CompPayback: string;
@@ -1070,6 +1213,7 @@ declare const _default: {
1070
1213
  FLDyDx: string;
1071
1214
  FLMaker: string;
1072
1215
  FLBalancer: string;
1216
+ FLSpark: string;
1073
1217
  FLAction: string;
1074
1218
  FLUniV3: string;
1075
1219
  FLGho: string;
@@ -1142,6 +1286,16 @@ declare const _default: {
1142
1286
  CompV3Supply: string;
1143
1287
  CompV3Transfer: string;
1144
1288
  CompV3Withdraw: string;
1289
+ CurveUsdBorrow: string;
1290
+ CurveUsdCreate: string;
1291
+ CurveUsdPayback: string;
1292
+ CurveUsdSupply: string;
1293
+ CurveUsdWithdraw: string;
1294
+ CurveUsdLevCreate: string;
1295
+ CurveUsdRepay: string;
1296
+ CurveUsdSwapper: string;
1297
+ CurveUsdSelfLiquidate: string;
1298
+ CurveUsdSelfLiquidateWithColl: string;
1145
1299
  AaveV3RatioTrigger?: undefined;
1146
1300
  GasFeeTakerL2?: undefined;
1147
1301
  AaveV3RatioCheck?: undefined;
@@ -1182,6 +1336,8 @@ declare const _default: {
1182
1336
  UpdateSub?: undefined;
1183
1337
  TransferNFT?: undefined;
1184
1338
  CreateSub?: undefined;
1339
+ SDaiWrap?: undefined;
1340
+ SDaiUnwrap?: undefined;
1185
1341
  McdGenerate?: undefined;
1186
1342
  McdGive?: undefined;
1187
1343
  McdMerge?: undefined;
@@ -1216,6 +1372,15 @@ declare const _default: {
1216
1372
  MorphoAaveV3Payback?: undefined;
1217
1373
  MorphoAaveV3Supply?: undefined;
1218
1374
  MorphoAaveV3Withdraw?: undefined;
1375
+ SparkBorrow?: undefined;
1376
+ SparkClaimRewards?: undefined;
1377
+ SparkCollateralSwitch?: undefined;
1378
+ SparkPayback?: undefined;
1379
+ SparkSetEMode?: undefined;
1380
+ SparkSpTokenPayback?: undefined;
1381
+ SparkSupply?: undefined;
1382
+ SparkSwapBorrowRateMode?: undefined;
1383
+ SparkWithdraw?: undefined;
1219
1384
  CompBorrow?: undefined;
1220
1385
  CompClaim?: undefined;
1221
1386
  CompPayback?: undefined;
@@ -1226,6 +1391,7 @@ declare const _default: {
1226
1391
  FLAaveV2?: undefined;
1227
1392
  FLDyDx?: undefined;
1228
1393
  FLMaker?: undefined;
1394
+ FLSpark?: undefined;
1229
1395
  FLUniV3?: undefined;
1230
1396
  FLGho?: undefined;
1231
1397
  UniSupply?: undefined;
@@ -1292,6 +1458,16 @@ declare const _default: {
1292
1458
  CompV3Supply?: undefined;
1293
1459
  CompV3Transfer?: undefined;
1294
1460
  CompV3Withdraw?: undefined;
1461
+ CurveUsdBorrow?: undefined;
1462
+ CurveUsdCreate?: undefined;
1463
+ CurveUsdPayback?: undefined;
1464
+ CurveUsdSupply?: undefined;
1465
+ CurveUsdWithdraw?: undefined;
1466
+ CurveUsdLevCreate?: undefined;
1467
+ CurveUsdRepay?: undefined;
1468
+ CurveUsdSwapper?: undefined;
1469
+ CurveUsdSelfLiquidate?: undefined;
1470
+ CurveUsdSelfLiquidateWithColl?: undefined;
1295
1471
  } | {
1296
1472
  DFSSell: string;
1297
1473
  WrapEth: string;
@@ -1327,6 +1503,8 @@ declare const _default: {
1327
1503
  UpdateSub?: undefined;
1328
1504
  TransferNFT?: undefined;
1329
1505
  CreateSub?: undefined;
1506
+ SDaiWrap?: undefined;
1507
+ SDaiUnwrap?: undefined;
1330
1508
  McdGenerate?: undefined;
1331
1509
  McdGive?: undefined;
1332
1510
  McdMerge?: undefined;
@@ -1362,6 +1540,15 @@ declare const _default: {
1362
1540
  MorphoAaveV3Payback?: undefined;
1363
1541
  MorphoAaveV3Supply?: undefined;
1364
1542
  MorphoAaveV3Withdraw?: undefined;
1543
+ SparkBorrow?: undefined;
1544
+ SparkClaimRewards?: undefined;
1545
+ SparkCollateralSwitch?: undefined;
1546
+ SparkPayback?: undefined;
1547
+ SparkSetEMode?: undefined;
1548
+ SparkSpTokenPayback?: undefined;
1549
+ SparkSupply?: undefined;
1550
+ SparkSwapBorrowRateMode?: undefined;
1551
+ SparkWithdraw?: undefined;
1365
1552
  CompBorrow?: undefined;
1366
1553
  CompClaim?: undefined;
1367
1554
  CompPayback?: undefined;
@@ -1372,6 +1559,7 @@ declare const _default: {
1372
1559
  FLAaveV2?: undefined;
1373
1560
  FLDyDx?: undefined;
1374
1561
  FLMaker?: undefined;
1562
+ FLSpark?: undefined;
1375
1563
  FLUniV3?: undefined;
1376
1564
  FLGho?: undefined;
1377
1565
  UniSupply?: undefined;
@@ -1438,6 +1626,16 @@ declare const _default: {
1438
1626
  CompV3Supply?: undefined;
1439
1627
  CompV3Transfer?: undefined;
1440
1628
  CompV3Withdraw?: undefined;
1629
+ CurveUsdBorrow?: undefined;
1630
+ CurveUsdCreate?: undefined;
1631
+ CurveUsdPayback?: undefined;
1632
+ CurveUsdSupply?: undefined;
1633
+ CurveUsdWithdraw?: undefined;
1634
+ CurveUsdLevCreate?: undefined;
1635
+ CurveUsdRepay?: undefined;
1636
+ CurveUsdSwapper?: undefined;
1637
+ CurveUsdSelfLiquidate?: undefined;
1638
+ CurveUsdSelfLiquidateWithColl?: undefined;
1441
1639
  AaveV3RatioTrigger?: undefined;
1442
1640
  };
1443
1641
  actionAddressesAllChains: {
@@ -1456,6 +1654,8 @@ declare const _default: {
1456
1654
  UpdateSub: string;
1457
1655
  TransferNFT: string;
1458
1656
  CreateSub: string;
1657
+ SDaiWrap: string;
1658
+ SDaiUnwrap: string;
1459
1659
  DFSSell: string;
1460
1660
  McdGenerate: string;
1461
1661
  McdGive: string;
@@ -1500,6 +1700,15 @@ declare const _default: {
1500
1700
  MorphoAaveV3Payback: string;
1501
1701
  MorphoAaveV3Supply: string;
1502
1702
  MorphoAaveV3Withdraw: string;
1703
+ SparkBorrow: string;
1704
+ SparkClaimRewards: string;
1705
+ SparkCollateralSwitch: string;
1706
+ SparkPayback: string;
1707
+ SparkSetEMode: string;
1708
+ SparkSpTokenPayback: string;
1709
+ SparkSupply: string;
1710
+ SparkSwapBorrowRateMode: string;
1711
+ SparkWithdraw: string;
1503
1712
  CompBorrow: string;
1504
1713
  CompClaim: string;
1505
1714
  CompPayback: string;
@@ -1513,6 +1722,7 @@ declare const _default: {
1513
1722
  FLDyDx: string;
1514
1723
  FLMaker: string;
1515
1724
  FLBalancer: string;
1725
+ FLSpark: string;
1516
1726
  FLAction: string;
1517
1727
  FLUniV3: string;
1518
1728
  FLGho: string;
@@ -1585,6 +1795,16 @@ declare const _default: {
1585
1795
  CompV3Supply: string;
1586
1796
  CompV3Transfer: string;
1587
1797
  CompV3Withdraw: string;
1798
+ CurveUsdBorrow: string;
1799
+ CurveUsdCreate: string;
1800
+ CurveUsdPayback: string;
1801
+ CurveUsdSupply: string;
1802
+ CurveUsdWithdraw: string;
1803
+ CurveUsdLevCreate: string;
1804
+ CurveUsdRepay: string;
1805
+ CurveUsdSwapper: string;
1806
+ CurveUsdSelfLiquidate: string;
1807
+ CurveUsdSelfLiquidateWithColl: string;
1588
1808
  AaveV3RatioTrigger?: undefined;
1589
1809
  GasFeeTakerL2?: undefined;
1590
1810
  AaveV3RatioCheck?: undefined;
@@ -1625,6 +1845,8 @@ declare const _default: {
1625
1845
  UpdateSub?: undefined;
1626
1846
  TransferNFT?: undefined;
1627
1847
  CreateSub?: undefined;
1848
+ SDaiWrap?: undefined;
1849
+ SDaiUnwrap?: undefined;
1628
1850
  McdGenerate?: undefined;
1629
1851
  McdGive?: undefined;
1630
1852
  McdMerge?: undefined;
@@ -1659,6 +1881,15 @@ declare const _default: {
1659
1881
  MorphoAaveV3Payback?: undefined;
1660
1882
  MorphoAaveV3Supply?: undefined;
1661
1883
  MorphoAaveV3Withdraw?: undefined;
1884
+ SparkBorrow?: undefined;
1885
+ SparkClaimRewards?: undefined;
1886
+ SparkCollateralSwitch?: undefined;
1887
+ SparkPayback?: undefined;
1888
+ SparkSetEMode?: undefined;
1889
+ SparkSpTokenPayback?: undefined;
1890
+ SparkSupply?: undefined;
1891
+ SparkSwapBorrowRateMode?: undefined;
1892
+ SparkWithdraw?: undefined;
1662
1893
  CompBorrow?: undefined;
1663
1894
  CompClaim?: undefined;
1664
1895
  CompPayback?: undefined;
@@ -1669,6 +1900,7 @@ declare const _default: {
1669
1900
  FLAaveV2?: undefined;
1670
1901
  FLDyDx?: undefined;
1671
1902
  FLMaker?: undefined;
1903
+ FLSpark?: undefined;
1672
1904
  FLUniV3?: undefined;
1673
1905
  FLGho?: undefined;
1674
1906
  UniSupply?: undefined;
@@ -1735,6 +1967,16 @@ declare const _default: {
1735
1967
  CompV3Supply?: undefined;
1736
1968
  CompV3Transfer?: undefined;
1737
1969
  CompV3Withdraw?: undefined;
1970
+ CurveUsdBorrow?: undefined;
1971
+ CurveUsdCreate?: undefined;
1972
+ CurveUsdPayback?: undefined;
1973
+ CurveUsdSupply?: undefined;
1974
+ CurveUsdWithdraw?: undefined;
1975
+ CurveUsdLevCreate?: undefined;
1976
+ CurveUsdRepay?: undefined;
1977
+ CurveUsdSwapper?: undefined;
1978
+ CurveUsdSelfLiquidate?: undefined;
1979
+ CurveUsdSelfLiquidateWithColl?: undefined;
1738
1980
  } | {
1739
1981
  DFSSell: string;
1740
1982
  WrapEth: string;
@@ -1770,6 +2012,8 @@ declare const _default: {
1770
2012
  UpdateSub?: undefined;
1771
2013
  TransferNFT?: undefined;
1772
2014
  CreateSub?: undefined;
2015
+ SDaiWrap?: undefined;
2016
+ SDaiUnwrap?: undefined;
1773
2017
  McdGenerate?: undefined;
1774
2018
  McdGive?: undefined;
1775
2019
  McdMerge?: undefined;
@@ -1805,6 +2049,15 @@ declare const _default: {
1805
2049
  MorphoAaveV3Payback?: undefined;
1806
2050
  MorphoAaveV3Supply?: undefined;
1807
2051
  MorphoAaveV3Withdraw?: undefined;
2052
+ SparkBorrow?: undefined;
2053
+ SparkClaimRewards?: undefined;
2054
+ SparkCollateralSwitch?: undefined;
2055
+ SparkPayback?: undefined;
2056
+ SparkSetEMode?: undefined;
2057
+ SparkSpTokenPayback?: undefined;
2058
+ SparkSupply?: undefined;
2059
+ SparkSwapBorrowRateMode?: undefined;
2060
+ SparkWithdraw?: undefined;
1808
2061
  CompBorrow?: undefined;
1809
2062
  CompClaim?: undefined;
1810
2063
  CompPayback?: undefined;
@@ -1815,6 +2068,7 @@ declare const _default: {
1815
2068
  FLAaveV2?: undefined;
1816
2069
  FLDyDx?: undefined;
1817
2070
  FLMaker?: undefined;
2071
+ FLSpark?: undefined;
1818
2072
  FLUniV3?: undefined;
1819
2073
  FLGho?: undefined;
1820
2074
  UniSupply?: undefined;
@@ -1881,6 +2135,16 @@ declare const _default: {
1881
2135
  CompV3Supply?: undefined;
1882
2136
  CompV3Transfer?: undefined;
1883
2137
  CompV3Withdraw?: undefined;
2138
+ CurveUsdBorrow?: undefined;
2139
+ CurveUsdCreate?: undefined;
2140
+ CurveUsdPayback?: undefined;
2141
+ CurveUsdSupply?: undefined;
2142
+ CurveUsdWithdraw?: undefined;
2143
+ CurveUsdLevCreate?: undefined;
2144
+ CurveUsdRepay?: undefined;
2145
+ CurveUsdSwapper?: undefined;
2146
+ CurveUsdSelfLiquidate?: undefined;
2147
+ CurveUsdSelfLiquidateWithColl?: undefined;
1884
2148
  AaveV3RatioTrigger?: undefined;
1885
2149
  };
1886
2150
  };
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256, uint8 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class SparkQuotePriceTrigger extends Action {
9
+ constructor(baseTokenAddr: EthAddress, quoteTokenAddr: EthAddress, price: uint256, state: uint8);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class SparkQuotePriceTrigger extends Action {
9
+ constructor(baseTokenAddr, quoteTokenAddr, price, state) {
10
+ super('SparkQuotePriceTrigger', getAddr('SparkQuotePriceTrigger'), [['address', 'address', 'uint256', 'uint8']], [[baseTokenAddr, quoteTokenAddr, price, state]]);
11
+ }
12
+ }
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256, uint8 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class SparkRatioTrigger extends Action {
9
+ constructor(user: EthAddress, market: EthAddress, ratio: uint256, state: uint8);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class SparkRatioTrigger extends Action {
9
+ constructor(user, market, ratio, state) {
10
+ super('SparkRatioTrigger', getAddr('SparkRatioTrigger'), [['address', 'address', 'uint256', 'uint8']], [[user, market, ratio, state]]);
11
+ }
12
+ }
@@ -11,3 +11,5 @@ export * from './CompV3RatioTrigger';
11
11
  export * from './TrailingStopTrigger';
12
12
  export * from './CBRebondTrigger';
13
13
  export * from './AaveV3QuotePriceTrigger';
14
+ export * from './SparkRatioTrigger';
15
+ export * from './SparkQuotePriceTrigger';
@@ -11,3 +11,5 @@ export * from './CompV3RatioTrigger';
11
11
  export * from './TrailingStopTrigger';
12
12
  export * from './CBRebondTrigger';
13
13
  export * from './AaveV3QuotePriceTrigger';
14
+ export * from './SparkRatioTrigger';
15
+ export * from './SparkQuotePriceTrigger';
@@ -32,6 +32,7 @@ type EthAddress = string;
32
32
  type bytes32 = string;
33
33
  type bytes = string | Array<any>;
34
34
  type uint256 = string;
35
+ type uint32 = string;
35
36
  type uint160 = string;
36
37
  type uint128 = string;
37
38
  type uint80 = string;
@@ -39,5 +40,6 @@ type uint64 = string;
39
40
  type uint24 = string;
40
41
  type uint16 = string;
41
42
  type uint8 = string;
43
+ type int256 = string;
42
44
  type int24 = string;
43
- export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint128, uint80, uint64, uint24, uint16, uint8, int24, };
45
+ export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint32, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24, };
@@ -0,0 +1,20 @@
1
+ export declare const curveusdMarkets: {
2
+ wstETH: {
3
+ controllerAddress: string;
4
+ debtAvailableBlock: number;
5
+ };
6
+ WBTC: {
7
+ controllerAddress: string;
8
+ debtAvailableBlock: number;
9
+ };
10
+ WETH: {
11
+ controllerAddress: string;
12
+ debtAvailableBlock: number;
13
+ };
14
+ };
15
+ export declare const controllerToAssetMap: {
16
+ '0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE': string;
17
+ '0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67': string;
18
+ '0xa920de414ea4ab66b97da1bfe9e6eca7d4219635': string;
19
+ };
20
+ export declare const controllerFactoryAddress = "0xC9332fdCB1C491Dcc683bAe86Fe3cb70360738BC";
@@ -0,0 +1,12 @@
1
+ /// @dev debtAvailableBlock is only used in v3-contracts repo
2
+ export const curveusdMarkets = {
3
+ wstETH: { controllerAddress: '0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE', debtAvailableBlock: 17487165 },
4
+ WBTC: { controllerAddress: '0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67', debtAvailableBlock: 17563176 },
5
+ WETH: { controllerAddress: '0xa920de414ea4ab66b97da1bfe9e6eca7d4219635', debtAvailableBlock: 17563176 },
6
+ };
7
+ export const controllerToAssetMap = {
8
+ '0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE': '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
9
+ '0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67': '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
10
+ '0xa920de414ea4ab66b97da1bfe9e6eca7d4219635': '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
11
+ };
12
+ export const controllerFactoryAddress = '0xC9332fdCB1C491Dcc683bAe86Fe3cb70360738BC';