@defisaver/sdk 1.3.23 → 1.3.24-dev
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/actions/aaveV3/AaveV3DelegateCredit.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.js +1 -1
- package/esm/src/actions/basic/LimitSellAction.js +1 -1
- package/esm/src/actions/basic/LimitSellActionL2.d.ts +25 -0
- package/esm/src/actions/basic/LimitSellActionL2.js +65 -0
- package/esm/src/actions/basic/index.d.ts +1 -0
- package/esm/src/actions/basic/index.js +1 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.d.ts +2 -4
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.js +6 -12
- package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.js +1 -1
- package/esm/src/actions/flashloan/BalancerV3FlashLoanAction.d.ts +18 -0
- package/esm/src/actions/flashloan/BalancerV3FlashLoanAction.js +35 -0
- package/esm/src/actions/flashloan/SparkFlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/SparkFlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/index.d.ts +1 -0
- package/esm/src/actions/flashloan/index.js +1 -0
- package/esm/src/addresses.d.ts +8 -8
- package/esm/src/addresses.js +18 -10
- package/esm/src/index.d.ts +32 -32
- package/package.json +1 -1
- package/src/actions/aaveV3/AaveV3DelegateCredit.ts +1 -1
- package/src/actions/basic/LimitSellAction.ts +1 -1
- package/src/actions/basic/LimitSellActionL2.ts +65 -0
- package/src/actions/basic/index.ts +1 -0
- package/src/actions/flashloan/AaveV3FlashLoanAction.ts +1 -1
- package/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.ts +7 -13
- package/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.ts +1 -1
- package/src/actions/flashloan/BalancerV3FlashLoanAction.ts +49 -0
- package/src/actions/flashloan/SparkFlashLoanAction.ts +1 -1
- package/src/actions/flashloan/index.ts +1 -0
- package/src/addresses.ts +18 -10
- package/umd/index.js +937 -817
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { EthAddress, uint256, bytes } from '../../types';
|
|
4
|
+
import { FlashLoanId } from './FlashLoanId';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Gets a flashloan from BalancerV3
|
|
8
|
+
*
|
|
9
|
+
* @category Flashloans
|
|
10
|
+
*/
|
|
11
|
+
export class BalancerV3FlashLoanAction extends Action implements FlashLoanId {
|
|
12
|
+
public flashLoanId = 10;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param tokens
|
|
16
|
+
* @param loanAmounts
|
|
17
|
+
* @param flParamGetterAddr
|
|
18
|
+
* @param flParamGetterData
|
|
19
|
+
*/
|
|
20
|
+
constructor(
|
|
21
|
+
tokens: Array<EthAddress>,
|
|
22
|
+
loanAmounts: Array<uint256>,
|
|
23
|
+
flParamGetterAddr: EthAddress = getAddr('Empty'),
|
|
24
|
+
flParamGetterData: bytes = [],
|
|
25
|
+
) {
|
|
26
|
+
super(
|
|
27
|
+
'FLAction',
|
|
28
|
+
getAddr('FLAction'),
|
|
29
|
+
[
|
|
30
|
+
'address[]',
|
|
31
|
+
'uint256[]',
|
|
32
|
+
'uint256[]',
|
|
33
|
+
'address',
|
|
34
|
+
'address',
|
|
35
|
+
'bytes',
|
|
36
|
+
'bytes',
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
tokens,
|
|
40
|
+
loanAmounts,
|
|
41
|
+
[],
|
|
42
|
+
getAddr('Empty'),
|
|
43
|
+
flParamGetterAddr,
|
|
44
|
+
flParamGetterData,
|
|
45
|
+
[],
|
|
46
|
+
],
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/addresses.ts
CHANGED
|
@@ -95,6 +95,7 @@ export const actionAddresses = {
|
|
|
95
95
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
96
96
|
AaveV3View: '0x0CB0170F3413e54405F64d3C23BA3A1D8Bb96D99',
|
|
97
97
|
AaveV3DelegateWithSig: '0x9253E22Ce4f0AeE541301CF8cC29843f9083a1F4',
|
|
98
|
+
AaveV3DelegateCredit: '0xa7ab39edCb0a1b742DCd908EC6CFe178d8322580',
|
|
98
99
|
GhoClaimAAVE: '0xA53060d822cB31AFd5B26D899130a14E8Efc5917',
|
|
99
100
|
GhoUnstake: '0x3fD02e65B4fb12381946D03815Ff3FF8Ebe2fC63',
|
|
100
101
|
GhoStake: '0x6cfBFd04702f3b7d4fc52D457eDf91D6E4A081bb',
|
|
@@ -147,7 +148,7 @@ export const actionAddresses = {
|
|
|
147
148
|
// flashloan
|
|
148
149
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
149
150
|
FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
150
|
-
FLAaveV3CarryDebt: '
|
|
151
|
+
FLAaveV3CarryDebt: '0x8225D3833D88BD1420E7d25e69A00F1A27aB9143',
|
|
151
152
|
FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
|
|
152
153
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
153
154
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
@@ -438,13 +439,14 @@ export const actionAddresses = {
|
|
|
438
439
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
439
440
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
440
441
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
441
|
-
AaveV3DelegateCredit: '
|
|
442
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
442
443
|
|
|
443
444
|
// flashloan
|
|
444
445
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
445
446
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
446
447
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
447
448
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
449
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
448
450
|
|
|
449
451
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
450
452
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
@@ -508,6 +510,7 @@ export const actionAddresses = {
|
|
|
508
510
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
509
511
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
510
512
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
513
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
511
514
|
|
|
512
515
|
// CompV3
|
|
513
516
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
@@ -525,6 +528,7 @@ export const actionAddresses = {
|
|
|
525
528
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3', // @DEV - incorrect, same as FLAction
|
|
526
529
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
527
530
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
531
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
528
532
|
|
|
529
533
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
530
534
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
@@ -616,6 +620,7 @@ export const actionAddresses = {
|
|
|
616
620
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
617
621
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52', // fix temp
|
|
618
622
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
623
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
619
624
|
|
|
620
625
|
// AaveV3
|
|
621
626
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
@@ -630,6 +635,7 @@ export const actionAddresses = {
|
|
|
630
635
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
631
636
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
632
637
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
638
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
633
639
|
|
|
634
640
|
// CompV3
|
|
635
641
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
@@ -698,8 +704,9 @@ export const actionAddresses = {
|
|
|
698
704
|
TokenizedVaultAdapter: '0x1155BF929D78F1DeF999ACedE1867f79A7C66066',
|
|
699
705
|
|
|
700
706
|
// Flashloan
|
|
701
|
-
FLAction: '
|
|
702
|
-
FLAaveV3: '
|
|
707
|
+
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD', // fix temp
|
|
708
|
+
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
709
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
703
710
|
|
|
704
711
|
// AaveV3
|
|
705
712
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
@@ -712,7 +719,7 @@ export const actionAddresses = {
|
|
|
712
719
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
713
720
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
714
721
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
715
|
-
AaveV3DelegateCredit: '
|
|
722
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
716
723
|
},
|
|
717
724
|
[NETWORKS.plasma.chainId]: {
|
|
718
725
|
// Basic
|
|
@@ -734,8 +741,9 @@ export const actionAddresses = {
|
|
|
734
741
|
TokenizedVaultAdapter: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
|
|
735
742
|
|
|
736
743
|
// Flashloan
|
|
737
|
-
FLAction: '
|
|
738
|
-
FLAaveV3: '
|
|
744
|
+
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7', // fix temp
|
|
745
|
+
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
746
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
739
747
|
|
|
740
748
|
// AaveV3
|
|
741
749
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
@@ -748,7 +756,7 @@ export const actionAddresses = {
|
|
|
748
756
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
749
757
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
750
758
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
751
|
-
AaveV3DelegateCredit: '
|
|
759
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
752
760
|
|
|
753
761
|
// Fluid
|
|
754
762
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
@@ -829,7 +837,7 @@ export const otherAddresses = {
|
|
|
829
837
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
830
838
|
},
|
|
831
839
|
[NETWORKS.linea.chainId]: {
|
|
832
|
-
RecipeExecutor: '
|
|
840
|
+
RecipeExecutor: '0x903F7C93FFC4AAbaBB096a7A722F1f057816B399',
|
|
833
841
|
DFSRegistry: '0x09fBeC68D216667C3262211D2E5609578951dCE0',
|
|
834
842
|
DSGuardFactory: '0x02a516861f41262f22617511d00b6fccab65f762',
|
|
835
843
|
AdminVault: '0x71a9ef13c960c2f1dd17962d3592a5bcdfad6de0',
|
|
@@ -837,7 +845,7 @@ export const otherAddresses = {
|
|
|
837
845
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
838
846
|
},
|
|
839
847
|
[NETWORKS.plasma.chainId]: {
|
|
840
|
-
RecipeExecutor: '
|
|
848
|
+
RecipeExecutor: '0xe1315EE74E2A3057c0ede9E0E2cf30b3ee3ad121',
|
|
841
849
|
DFSRegistry: '0x44e98bB58d725F2eF93a195F518b335dCB784c78',
|
|
842
850
|
AdminVault: '0x6AB90ff536f0E2a880DbCdef1bB665C2acC0eDdC',
|
|
843
851
|
DefisaverLogger: '0x02a516861f41262F22617511d00B6FCcAb65f762',
|