@defisaver/sdk 1.0.47 → 1.0.48
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.
- package/esm/src/addresses.d.ts +0 -192
- package/esm/src/addresses.js +0 -40
- package/esm/src/config.js +0 -8
- package/esm/src/index.d.ts +101 -869
- package/esm/src/types.d.ts +0 -1
- package/package.json +1 -1
- package/src/addresses.ts +0 -44
- package/src/config.ts +1 -9
- package/src/types.ts +0 -1
- package/umd/index.js +0 -52
package/esm/src/addresses.d.ts
CHANGED
|
@@ -513,177 +513,6 @@ export declare const actionAddresses: {
|
|
|
513
513
|
CurveUsdSelfLiquidate?: undefined;
|
|
514
514
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
515
515
|
AaveV3RatioTrigger?: undefined;
|
|
516
|
-
} | {
|
|
517
|
-
DFSSell: string;
|
|
518
|
-
WrapEth: string;
|
|
519
|
-
UnwrapEth: string;
|
|
520
|
-
SendToken: string;
|
|
521
|
-
PullToken: string;
|
|
522
|
-
FLAaveV3: string;
|
|
523
|
-
FLBalancer: string;
|
|
524
|
-
FLUniV3: string;
|
|
525
|
-
AaveV3Withdraw: string;
|
|
526
|
-
AaveV3SwapBorrowRateMode: string;
|
|
527
|
-
AaveV3Supply: string;
|
|
528
|
-
AaveV3SetEMode: string;
|
|
529
|
-
AaveV3Payback: string;
|
|
530
|
-
AaveV3CollateralSwitch: string;
|
|
531
|
-
AaveV3ClaimRewards: string;
|
|
532
|
-
AaveV3Borrow: string;
|
|
533
|
-
AaveV3ATokenPayback: string;
|
|
534
|
-
AaveV3View: string;
|
|
535
|
-
CompV3Allow: string;
|
|
536
|
-
CompV3Borrow: string;
|
|
537
|
-
CompV3Claim: string;
|
|
538
|
-
CompV3Payback: string;
|
|
539
|
-
CompV3Supply: string;
|
|
540
|
-
CompV3Transfer: string;
|
|
541
|
-
CompV3Withdraw: string;
|
|
542
|
-
SumInputs?: undefined;
|
|
543
|
-
SubInputs?: undefined;
|
|
544
|
-
ChangeProxyOwner?: undefined;
|
|
545
|
-
TokenBalance?: undefined;
|
|
546
|
-
AutomationV2Unsub?: undefined;
|
|
547
|
-
SendTokenAndUnwrap?: undefined;
|
|
548
|
-
ToggleSub?: undefined;
|
|
549
|
-
UpdateSub?: undefined;
|
|
550
|
-
TransferNFT?: undefined;
|
|
551
|
-
CreateSub?: undefined;
|
|
552
|
-
SDaiWrap?: undefined;
|
|
553
|
-
SDaiUnwrap?: undefined;
|
|
554
|
-
TokenizedVaultAdapter?: undefined;
|
|
555
|
-
McdGenerate?: undefined;
|
|
556
|
-
McdGive?: undefined;
|
|
557
|
-
McdMerge?: undefined;
|
|
558
|
-
McdOpen?: undefined;
|
|
559
|
-
McdPayback?: undefined;
|
|
560
|
-
McdSupply?: undefined;
|
|
561
|
-
McdWithdraw?: undefined;
|
|
562
|
-
McdClaim?: undefined;
|
|
563
|
-
McdDsrDeposit?: undefined;
|
|
564
|
-
McdDsrWithdraw?: undefined;
|
|
565
|
-
ReflexerSupply?: undefined;
|
|
566
|
-
ReflexerWithdraw?: undefined;
|
|
567
|
-
ReflexerPayback?: undefined;
|
|
568
|
-
ReflexerGenerate?: undefined;
|
|
569
|
-
ReflexerOpen?: undefined;
|
|
570
|
-
ReflexerNativeUniV2SaviourDeposit?: undefined;
|
|
571
|
-
ReflexerNativeUniV2SaviourGetReserves?: undefined;
|
|
572
|
-
ReflexerNativeUniV2SaviourWithdraw?: undefined;
|
|
573
|
-
AaveBorrow?: undefined;
|
|
574
|
-
AavePayback?: undefined;
|
|
575
|
-
AaveSupply?: undefined;
|
|
576
|
-
AaveWithdraw?: undefined;
|
|
577
|
-
AaveCollateralSwitch?: undefined;
|
|
578
|
-
AaveUnstake?: undefined;
|
|
579
|
-
AaveClaimAAVE?: undefined;
|
|
580
|
-
MorphoAaveV2Borrow?: undefined;
|
|
581
|
-
MorphoAaveV2Payback?: undefined;
|
|
582
|
-
MorphoAaveV2Supply?: undefined;
|
|
583
|
-
MorphoAaveV2Withdraw?: undefined;
|
|
584
|
-
MorphoClaim?: undefined;
|
|
585
|
-
MorphoAaveV3Borrow?: undefined;
|
|
586
|
-
MorphoAaveV3Payback?: undefined;
|
|
587
|
-
MorphoAaveV3Supply?: undefined;
|
|
588
|
-
MorphoAaveV3Withdraw?: undefined;
|
|
589
|
-
SparkBorrow?: undefined;
|
|
590
|
-
SparkClaimRewards?: undefined;
|
|
591
|
-
SparkCollateralSwitch?: undefined;
|
|
592
|
-
SparkPayback?: undefined;
|
|
593
|
-
SparkSetEMode?: undefined;
|
|
594
|
-
SparkSpTokenPayback?: undefined;
|
|
595
|
-
SparkSupply?: undefined;
|
|
596
|
-
SparkSwapBorrowRateMode?: undefined;
|
|
597
|
-
SparkWithdraw?: undefined;
|
|
598
|
-
CompBorrow?: undefined;
|
|
599
|
-
CompClaim?: undefined;
|
|
600
|
-
CompPayback?: undefined;
|
|
601
|
-
CompSupply?: undefined;
|
|
602
|
-
CompWithdraw?: undefined;
|
|
603
|
-
CompGetDebt?: undefined;
|
|
604
|
-
CompCollateralSwitch?: undefined;
|
|
605
|
-
FLAaveV2?: undefined;
|
|
606
|
-
FLAaveV3NoFee?: undefined;
|
|
607
|
-
FLDyDx?: undefined;
|
|
608
|
-
FLMaker?: undefined;
|
|
609
|
-
FLSpark?: undefined;
|
|
610
|
-
FLAction?: undefined;
|
|
611
|
-
FLGho?: undefined;
|
|
612
|
-
UniSupply?: undefined;
|
|
613
|
-
UniWithdraw?: undefined;
|
|
614
|
-
UniCollectV3?: undefined;
|
|
615
|
-
UniMintV3?: undefined;
|
|
616
|
-
UniSupplyV3?: undefined;
|
|
617
|
-
UniWithdrawV3?: undefined;
|
|
618
|
-
UniCreatePoolV3?: undefined;
|
|
619
|
-
DyDxWithdraw?: undefined;
|
|
620
|
-
YearnSupply?: undefined;
|
|
621
|
-
YearnWithdraw?: undefined;
|
|
622
|
-
LiquityClose?: undefined;
|
|
623
|
-
LiquityBorrow?: undefined;
|
|
624
|
-
LiquityOpen?: undefined;
|
|
625
|
-
LiquityPayback?: undefined;
|
|
626
|
-
LiquityWithdraw?: undefined;
|
|
627
|
-
LiquitySupply?: undefined;
|
|
628
|
-
LiquitySPDeposit?: undefined;
|
|
629
|
-
LiquitySPWithdraw?: undefined;
|
|
630
|
-
LiquityStake?: undefined;
|
|
631
|
-
LiquityUnstake?: undefined;
|
|
632
|
-
LiquityEthGainToTrove?: undefined;
|
|
633
|
-
LiquityClaim?: undefined;
|
|
634
|
-
LiquityRedeem?: undefined;
|
|
635
|
-
LiquityAdjust?: undefined;
|
|
636
|
-
BprotocolLiquitySPDeposit?: undefined;
|
|
637
|
-
BprotocolLiquitySPWithdraw?: undefined;
|
|
638
|
-
LidoStake?: undefined;
|
|
639
|
-
LidoWrap?: undefined;
|
|
640
|
-
LidoUnwrap?: undefined;
|
|
641
|
-
InstPullTokens?: undefined;
|
|
642
|
-
BalancerV2Supply?: undefined;
|
|
643
|
-
BalancerV2Withdraw?: undefined;
|
|
644
|
-
BalancerV2Claim?: undefined;
|
|
645
|
-
GUniWithdraw?: undefined;
|
|
646
|
-
GUniDeposit?: undefined;
|
|
647
|
-
RariDeposit?: undefined;
|
|
648
|
-
RariWithdraw?: undefined;
|
|
649
|
-
MStableDeposit?: undefined;
|
|
650
|
-
MStableWithdraw?: undefined;
|
|
651
|
-
MStableClaim?: undefined;
|
|
652
|
-
McdRatioCheck?: undefined;
|
|
653
|
-
GasFeeTaker?: undefined;
|
|
654
|
-
CurveStethPoolDeposit?: undefined;
|
|
655
|
-
CurveStethPoolWithdraw?: undefined;
|
|
656
|
-
CurveDeposit?: undefined;
|
|
657
|
-
CurveWithdraw?: undefined;
|
|
658
|
-
McdBoostComposite?: undefined;
|
|
659
|
-
McdRepayComposite?: undefined;
|
|
660
|
-
FLEuler?: undefined;
|
|
661
|
-
TrailingStopTrigger?: undefined;
|
|
662
|
-
CBRebondTrigger?: undefined;
|
|
663
|
-
CBUpdateRebondSub?: undefined;
|
|
664
|
-
LiquityRatioCheck?: undefined;
|
|
665
|
-
ConvexDeposit?: undefined;
|
|
666
|
-
ConvexWithdraw?: undefined;
|
|
667
|
-
ConvexClaim?: undefined;
|
|
668
|
-
CBCreate?: undefined;
|
|
669
|
-
CBRedeem?: undefined;
|
|
670
|
-
CBChickenIn?: undefined;
|
|
671
|
-
CBChickenOut?: undefined;
|
|
672
|
-
CBCreateRebondSub?: undefined;
|
|
673
|
-
FetchBondId?: undefined;
|
|
674
|
-
CurveUsdBorrow?: undefined;
|
|
675
|
-
CurveUsdCreate?: undefined;
|
|
676
|
-
CurveUsdPayback?: undefined;
|
|
677
|
-
CurveUsdSupply?: undefined;
|
|
678
|
-
CurveUsdWithdraw?: undefined;
|
|
679
|
-
CurveUsdLevCreate?: undefined;
|
|
680
|
-
CurveUsdRepay?: undefined;
|
|
681
|
-
CurveUsdSwapper?: undefined;
|
|
682
|
-
CurveUsdSelfLiquidate?: undefined;
|
|
683
|
-
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
684
|
-
AaveV3RatioTrigger?: undefined;
|
|
685
|
-
GasFeeTakerL2?: undefined;
|
|
686
|
-
AaveV3RatioCheck?: undefined;
|
|
687
516
|
};
|
|
688
517
|
};
|
|
689
518
|
export declare const otherAddresses: {
|
|
@@ -729,27 +558,6 @@ export declare const otherAddresses: {
|
|
|
729
558
|
GHO?: undefined;
|
|
730
559
|
LUSD?: undefined;
|
|
731
560
|
BLUSD?: undefined;
|
|
732
|
-
} | {
|
|
733
|
-
RecipeExecutor: string;
|
|
734
|
-
DFSRegistry: string;
|
|
735
|
-
ProxyRegistry: string;
|
|
736
|
-
DSGuardFactory: string;
|
|
737
|
-
AdminVault: string;
|
|
738
|
-
DefisaverLogger: string;
|
|
739
|
-
Empty: string;
|
|
740
|
-
DFSProxyRegistry?: undefined;
|
|
741
|
-
McdCdpManager?: undefined;
|
|
742
|
-
BCdpManager?: undefined;
|
|
743
|
-
AaveDefaultMarket?: undefined;
|
|
744
|
-
UniswapV3PositionManager?: undefined;
|
|
745
|
-
RaiWethUniV2LPToken?: undefined;
|
|
746
|
-
BalancerToken?: undefined;
|
|
747
|
-
CrvToken?: undefined;
|
|
748
|
-
CvxToken?: undefined;
|
|
749
|
-
DAI?: undefined;
|
|
750
|
-
GHO?: undefined;
|
|
751
|
-
LUSD?: undefined;
|
|
752
|
-
BLUSD?: undefined;
|
|
753
561
|
};
|
|
754
562
|
};
|
|
755
563
|
/**
|
package/esm/src/addresses.js
CHANGED
|
@@ -268,37 +268,6 @@ export const actionAddresses = {
|
|
|
268
268
|
UniWithdrawV3: '0xa004c22eFd0CD87847DE83Ce9ab92af5382c2efe',
|
|
269
269
|
UniCreatePoolV3: '0x334Ab3C12a4c0315566fd9308880Dad71F838Dc5',
|
|
270
270
|
},
|
|
271
|
-
[NETWORKS.base.chainId]: {
|
|
272
|
-
// Basic
|
|
273
|
-
DFSSell: '0xCc0f04e8c34B670a1D06f4978C843952F690d3f4',
|
|
274
|
-
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
275
|
-
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
276
|
-
SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
|
|
277
|
-
PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
|
|
278
|
-
// Flashloan
|
|
279
|
-
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
280
|
-
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
281
|
-
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
282
|
-
// AaveV3
|
|
283
|
-
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
284
|
-
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
285
|
-
AaveV3Supply: '0x741FcFC1D708CEA0d845Fd04de51022b6d00e060',
|
|
286
|
-
AaveV3SetEMode: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
|
|
287
|
-
AaveV3Payback: '0x1A8B4DF4DE4274630A5c5a8E42Fa5F0DdF654ec2',
|
|
288
|
-
AaveV3CollateralSwitch: '0xFdfeA6469c537b19A334726E01621810bc49B929',
|
|
289
|
-
AaveV3ClaimRewards: '0xCeB876C6A4dd76aFe645622db00D4E051D16dA66',
|
|
290
|
-
AaveV3Borrow: '0x8C6eC1A4869e2B307Ee1667e1c18D5776b61CCe3',
|
|
291
|
-
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
292
|
-
AaveV3View: '0x125b8b832BD7F2EBD77Eef148A6319AdE751C44b',
|
|
293
|
-
// CompV3
|
|
294
|
-
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
295
|
-
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
296
|
-
CompV3Claim: '0xD51F6C1c9bE837E5fd93e31214AeCaFde753E90e',
|
|
297
|
-
CompV3Payback: '0x73c627b48cb7c2b319E496fc55535Db6eD2c3445',
|
|
298
|
-
CompV3Supply: '0x94b63bf925C2Ab17F7df6914E110E969cC36A93e',
|
|
299
|
-
CompV3Transfer: '0xdCAF9C6Bccc062Bc1b8704AA37005897FeA257a0',
|
|
300
|
-
CompV3Withdraw: '0x8543133c3827D29b67D2b012101f463c870C1790',
|
|
301
|
-
},
|
|
302
271
|
};
|
|
303
272
|
export const otherAddresses = {
|
|
304
273
|
[NETWORKS.ethereum.chainId]: {
|
|
@@ -340,15 +309,6 @@ export const otherAddresses = {
|
|
|
340
309
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
341
310
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
342
311
|
},
|
|
343
|
-
[NETWORKS.base.chainId]: {
|
|
344
|
-
RecipeExecutor: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F',
|
|
345
|
-
DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
|
|
346
|
-
ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
347
|
-
DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
|
|
348
|
-
AdminVault: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
349
|
-
DefisaverLogger: '0xc9D6EfA6e08B66a5Cdc516Bcd5807c2fa69E0f2A',
|
|
350
|
-
Empty: '0x0000000000000000000000000000000000000000',
|
|
351
|
-
},
|
|
352
312
|
};
|
|
353
313
|
/**
|
|
354
314
|
*
|
package/esm/src/config.js
CHANGED
|
@@ -35,14 +35,6 @@ export const NETWORKS = {
|
|
|
35
35
|
rpcUrls: ['https://arb1.arbitrum.io/rpc'],
|
|
36
36
|
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
37
37
|
},
|
|
38
|
-
base: {
|
|
39
|
-
chainId: 8453,
|
|
40
|
-
chainName: 'Base',
|
|
41
|
-
blockExplorerUrls: ['https://basescan.io/'],
|
|
42
|
-
iconUrls: ['https://bridge.base.org/icons/base.svg'],
|
|
43
|
-
rpcUrls: [],
|
|
44
|
-
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
45
|
-
},
|
|
46
38
|
};
|
|
47
39
|
/**
|
|
48
40
|
*
|