@defisaver/sdk 1.3.6-dev.3 → 1.3.7
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/checkers/AaveV3OpenRatioCheckAction.d.ts +2 -3
- package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.js +7 -5
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +2 -4
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +2 -6
- package/esm/src/actions/checkers/index.d.ts +0 -1
- package/esm/src/actions/checkers/index.js +0 -1
- package/esm/src/actions/fluid/index.d.ts +0 -9
- package/esm/src/actions/fluid/index.js +0 -9
- package/esm/src/actions/index.d.ts +1 -3
- package/esm/src/actions/index.js +1 -3
- package/esm/src/actions/sky/SkyClaimRewardsAction.d.ts +2 -2
- package/esm/src/actions/sky/SkyClaimRewardsAction.js +2 -2
- package/esm/src/actions/sky/SkyUnstakeAction.d.ts +1 -1
- package/esm/src/actions/sky/SkyUnstakeAction.js +1 -1
- package/esm/src/actions/sky/index.d.ts +0 -5
- package/esm/src/actions/sky/index.js +0 -6
- package/esm/src/actions/spark/index.d.ts +0 -1
- package/esm/src/actions/spark/index.js +0 -1
- package/esm/src/actions/stkgho/index.d.ts +0 -1
- package/esm/src/actions/stkgho/index.js +0 -1
- package/esm/src/addresses.d.ts +6 -392
- package/esm/src/addresses.js +10 -125
- package/esm/src/config.js +0 -16
- package/esm/src/index.d.ts +427 -1971
- package/esm/src/triggers/index.d.ts +0 -4
- package/esm/src/triggers/index.js +0 -4
- package/esm/src/types.d.ts +0 -2
- package/package.json +1 -1
- package/src/actions/checkers/AaveV3OpenRatioCheckAction.ts +8 -10
- package/src/actions/checkers/AaveV3RatioCheckAction.ts +4 -18
- package/src/addresses.ts +4 -2
- package/src/config.ts +6 -6
- package/src/triggers/index.ts +0 -1
- package/umd/index.js +560 -1582
- package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.d.ts +0 -15
- package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.js +0 -22
- package/esm/src/actions/fluid/FluidDexOpenAction.d.ts +0 -20
- package/esm/src/actions/fluid/FluidDexOpenAction.js +0 -45
- package/esm/src/actions/fluid/FluidDexRegularBorrowAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexRegularBorrowAction.js +0 -36
- package/esm/src/actions/fluid/FluidDexRegularPaybackAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexRegularPaybackAction.js +0 -34
- package/esm/src/actions/fluid/FluidDexRegularSupplyAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexRegularSupplyAction.js +0 -33
- package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.js +0 -37
- package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.js +0 -33
- package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.js +0 -37
- package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.js +0 -36
- package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.js +0 -34
- package/esm/src/actions/sky/SkyStakingEngineClaimRewards.d.ts +0 -16
- package/esm/src/actions/sky/SkyStakingEngineClaimRewards.js +0 -24
- package/esm/src/actions/sky/SkyStakingEngineOpen.d.ts +0 -13
- package/esm/src/actions/sky/SkyStakingEngineOpen.js +0 -18
- package/esm/src/actions/sky/SkyStakingEngineSelectFarm.d.ts +0 -15
- package/esm/src/actions/sky/SkyStakingEngineSelectFarm.js +0 -22
- package/esm/src/actions/sky/SkyStakingEngineStake.d.ts +0 -16
- package/esm/src/actions/sky/SkyStakingEngineStake.js +0 -24
- package/esm/src/actions/sky/SkyStakingEngineUnstake.d.ts +0 -16
- package/esm/src/actions/sky/SkyStakingEngineUnstake.js +0 -24
- package/esm/src/actions/spark/SparkSPKClaimAction.d.ts +0 -20
- package/esm/src/actions/spark/SparkSPKClaimAction.js +0 -25
- package/esm/src/actions/stkgho/GhoStakeAction.d.ts +0 -15
- package/esm/src/actions/stkgho/GhoStakeAction.js +0 -25
- package/esm/src/actions/summerfi/SFApproveTokensAction.d.ts +0 -14
- package/esm/src/actions/summerfi/SFApproveTokensAction.js +0 -17
- package/esm/src/actions/summerfi/index.d.ts +0 -1
- package/esm/src/actions/summerfi/index.js +0 -1
- package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.d.ts +0 -16
- package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.js +0 -22
- package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.d.ts +0 -18
- package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.js +0 -31
- package/esm/src/actions/umbrella/UmbrellaStakeAction.d.ts +0 -19
- package/esm/src/actions/umbrella/UmbrellaStakeAction.js +0 -29
- package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.d.ts +0 -13
- package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.js +0 -18
- package/esm/src/actions/umbrella/index.d.ts +0 -4
- package/esm/src/actions/umbrella/index.js +0 -4
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.d.ts +0 -13
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.js +0 -15
- package/esm/src/triggers/CompV3PriceRangeTrigger.d.ts +0 -10
- package/esm/src/triggers/CompV3PriceRangeTrigger.js +0 -12
- package/esm/src/triggers/CompV3PriceTrigger.d.ts +0 -10
- package/esm/src/triggers/CompV3PriceTrigger.js +0 -12
- package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.d.ts +0 -8
- package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.js +0 -10
- package/src/triggers/AaveV3QuotePriceRangeTrigger.ts +0 -27
|
@@ -25,7 +25,3 @@ export * from './LiquityV2RatioTrigger';
|
|
|
25
25
|
export * from './ClosePriceTrigger';
|
|
26
26
|
export * from './LiquityV2QuotePriceTrigger';
|
|
27
27
|
export * from './FluidRatioTrigger';
|
|
28
|
-
export * from './CompV3PriceTrigger';
|
|
29
|
-
export * from './CompV3PriceRangeTrigger';
|
|
30
|
-
export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
31
|
-
export * from './AaveV3QuotePriceRangeTrigger';
|
|
@@ -25,7 +25,3 @@ export * from './LiquityV2RatioTrigger';
|
|
|
25
25
|
export * from './ClosePriceTrigger';
|
|
26
26
|
export * from './LiquityV2QuotePriceTrigger';
|
|
27
27
|
export * from './FluidRatioTrigger';
|
|
28
|
-
export * from './CompV3PriceTrigger';
|
|
29
|
-
export * from './CompV3PriceRangeTrigger';
|
|
30
|
-
export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
31
|
-
export * from './AaveV3QuotePriceRangeTrigger';
|
package/esm/src/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { getAddr } from '../../addresses';
|
|
|
3
3
|
import { EthAddress, uint256 } from '../../types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
6
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
|
|
7
7
|
*
|
|
8
8
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
9
9
|
*
|
|
@@ -13,20 +13,18 @@ export class AaveV3OpenRatioCheckAction extends Action {
|
|
|
13
13
|
/**
|
|
14
14
|
* @param targetRatio The ratio user want to be at
|
|
15
15
|
* @param market Address provider for specific market
|
|
16
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
17
16
|
*/
|
|
18
|
-
constructor(
|
|
19
|
-
targetRatio: uint256,
|
|
20
|
-
market: EthAddress,
|
|
21
|
-
user: EthAddress = getAddr('Empty'),
|
|
22
|
-
) {
|
|
17
|
+
constructor(targetRatio:uint256, market:EthAddress) {
|
|
23
18
|
super(
|
|
24
19
|
'AaveV3OpenRatioCheck',
|
|
25
20
|
getAddr('Empty'),
|
|
26
|
-
['uint256', 'address'
|
|
27
|
-
[targetRatio, market
|
|
21
|
+
['uint256', 'address'],
|
|
22
|
+
[targetRatio, market],
|
|
28
23
|
);
|
|
29
24
|
|
|
30
|
-
this.mappableArgs = [
|
|
25
|
+
this.mappableArgs = [
|
|
26
|
+
this.args[0],
|
|
27
|
+
this.args[1],
|
|
28
|
+
];
|
|
31
29
|
}
|
|
32
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
|
-
import { uint8, uint256
|
|
3
|
+
import { uint8, uint256 } from '../../types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
|
|
@@ -11,27 +11,13 @@ export class AaveV3RatioCheckAction extends Action {
|
|
|
11
11
|
/**
|
|
12
12
|
* @param ratioState If it should lower/higher
|
|
13
13
|
* @param targetRatio The ratio user want to be at
|
|
14
|
-
* @param market Address provider for specific market. This param was added later
|
|
15
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
16
14
|
*/
|
|
17
|
-
constructor(
|
|
18
|
-
|
|
19
|
-
targetRatio: uint256,
|
|
20
|
-
market: EthAddress = getAddr('Empty'),
|
|
21
|
-
user: EthAddress = getAddr('Empty'),
|
|
22
|
-
) {
|
|
23
|
-
super(
|
|
24
|
-
'AaveV3RatioCheck',
|
|
25
|
-
getAddr('Empty'),
|
|
26
|
-
['uint8', 'uint256', 'address', 'address'],
|
|
27
|
-
[ratioState, targetRatio, market, user],
|
|
28
|
-
);
|
|
15
|
+
constructor(ratioState:uint8, targetRatio:uint256) {
|
|
16
|
+
super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
|
|
29
17
|
|
|
30
18
|
this.mappableArgs = [
|
|
31
19
|
this.args[0],
|
|
32
20
|
this.args[1],
|
|
33
|
-
this.args[2],
|
|
34
|
-
this.args[3],
|
|
35
21
|
];
|
|
36
22
|
}
|
|
37
|
-
}
|
|
23
|
+
}
|
package/src/addresses.ts
CHANGED
|
@@ -379,7 +379,6 @@ export const actionAddresses = {
|
|
|
379
379
|
ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
|
|
380
380
|
SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
|
|
381
381
|
ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
|
|
382
|
-
UpdateSub: '0xAe6ea1d13dF2bE60dC7933DB56067Cb89d6A2cDe',
|
|
383
382
|
CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
|
|
384
383
|
TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
|
|
385
384
|
TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
|
|
@@ -642,7 +641,7 @@ export const actionAddresses = {
|
|
|
642
641
|
[NETWORKS.plasma.chainId]: {
|
|
643
642
|
// Basic
|
|
644
643
|
DFSSell: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
|
|
645
|
-
DFSSellNoFee: '
|
|
644
|
+
DFSSellNoFee: '0x45314C4265a378427f204483b3eFb89981129085',
|
|
646
645
|
WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
|
|
647
646
|
UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
|
|
648
647
|
SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
|
|
@@ -674,6 +673,9 @@ export const actionAddresses = {
|
|
|
674
673
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
675
674
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
676
675
|
AaveV3DelegateCredit: '0x0a9b2080C14DaF008AE87C977dFDf5f5D6D0937F',
|
|
676
|
+
|
|
677
|
+
// Pendle
|
|
678
|
+
PendleTokenRedeem: '0xB4c5f33bb5791D0174Df1879b809Bf57eE540B62',
|
|
677
679
|
},
|
|
678
680
|
};
|
|
679
681
|
|
package/src/config.ts
CHANGED
|
@@ -34,7 +34,7 @@ export const NETWORKS : Networks = {
|
|
|
34
34
|
chainId: 42161,
|
|
35
35
|
chainName: 'Arbitrum One',
|
|
36
36
|
blockExplorerUrls: ['https://arbiscan.io/'],
|
|
37
|
-
iconUrls: ['https://
|
|
37
|
+
iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_arbitrum.jpg'],
|
|
38
38
|
rpcUrls: ['https://arb1.arbitrum.io/rpc'],
|
|
39
39
|
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
40
40
|
},
|
|
@@ -42,7 +42,7 @@ export const NETWORKS : Networks = {
|
|
|
42
42
|
chainId: 8453,
|
|
43
43
|
chainName: 'Base',
|
|
44
44
|
blockExplorerUrls: ['https://basescan.io/'],
|
|
45
|
-
iconUrls: ['https://
|
|
45
|
+
iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_base.jpg'],
|
|
46
46
|
rpcUrls: [],
|
|
47
47
|
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
48
48
|
},
|
|
@@ -50,16 +50,16 @@ export const NETWORKS : Networks = {
|
|
|
50
50
|
chainId: 59144,
|
|
51
51
|
chainName: 'Linea',
|
|
52
52
|
blockExplorerUrls: ['https://lineascan.build/'],
|
|
53
|
-
iconUrls: ['https://
|
|
54
|
-
rpcUrls: [],
|
|
53
|
+
iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_linea.jpg'],
|
|
54
|
+
rpcUrls: ['https://rpc.linea.build'],
|
|
55
55
|
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
56
56
|
},
|
|
57
57
|
plasma: {
|
|
58
58
|
chainId: 9745,
|
|
59
59
|
chainName: 'Plasma',
|
|
60
60
|
blockExplorerUrls: ['https://plasmascan.to/'],
|
|
61
|
-
iconUrls: ['https://
|
|
62
|
-
rpcUrls: [],
|
|
61
|
+
iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_plasma.jpg'],
|
|
62
|
+
rpcUrls: ['https://rpc.plasma.to'],
|
|
63
63
|
nativeCurrency: { name: 'XPL', decimals: 18, symbol: 'XPL' },
|
|
64
64
|
},
|
|
65
65
|
};
|
package/src/triggers/index.ts
CHANGED