@defisaver/sdk 1.3.8 → 1.3.9-dev-plasma

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.
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
4
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
5
5
  *
6
6
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
7
7
  *
@@ -11,6 +11,7 @@ export declare class AaveV3OpenRatioCheckAction extends Action {
11
11
  /**
12
12
  * @param targetRatio The ratio user want to be at
13
13
  * @param market Address provider for specific market
14
+ * @param user Address of the user (EOA/SW). This param was added later
14
15
  */
15
- constructor(targetRatio: uint256, market: EthAddress);
16
+ constructor(targetRatio: uint256, market: EthAddress, user?: EthAddress);
16
17
  }
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
4
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
5
5
  *
6
6
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
7
7
  *
@@ -11,12 +11,10 @@ export class AaveV3OpenRatioCheckAction extends Action {
11
11
  /**
12
12
  * @param targetRatio The ratio user want to be at
13
13
  * @param market Address provider for specific market
14
+ * @param user Address of the user (EOA/SW). This param was added later
14
15
  */
15
- constructor(targetRatio, market) {
16
- super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
17
- this.mappableArgs = [
18
- this.args[0],
19
- this.args[1],
20
- ];
16
+ constructor(targetRatio, market, user = getAddr('Empty')) {
17
+ super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
18
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
21
19
  }
22
20
  }
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../../Action';
2
- import { uint8, uint256 } from '../../types';
2
+ import { uint8, uint256, EthAddress } from '../../types';
3
3
  /**
4
4
  * AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
5
5
  *
@@ -9,6 +9,8 @@ export declare class AaveV3RatioCheckAction extends Action {
9
9
  /**
10
10
  * @param ratioState If it should lower/higher
11
11
  * @param targetRatio The ratio user want to be at
12
+ * @param market Address provider for specific market. This param was added later
13
+ * @param user Address of the user (EOA/SW). This param was added later
12
14
  */
13
- constructor(ratioState: uint8, targetRatio: uint256);
15
+ constructor(ratioState: uint8, targetRatio: uint256, market?: EthAddress, user?: EthAddress);
14
16
  }
@@ -9,12 +9,16 @@ export class AaveV3RatioCheckAction extends Action {
9
9
  /**
10
10
  * @param ratioState If it should lower/higher
11
11
  * @param targetRatio The ratio user want to be at
12
+ * @param market Address provider for specific market. This param was added later
13
+ * @param user Address of the user (EOA/SW). This param was added later
12
14
  */
13
- constructor(ratioState, targetRatio) {
14
- super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
15
+ constructor(ratioState, targetRatio, market = getAddr('Empty'), user = getAddr('Empty')) {
16
+ super('AaveV3RatioCheck', getAddr('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
15
17
  this.mappableArgs = [
16
18
  this.args[0],
17
19
  this.args[1],
20
+ this.args[2],
21
+ this.args[3],
18
22
  ];
19
23
  }
20
24
  }
@@ -293,6 +293,7 @@ export declare const actionAddresses: {
293
293
  ApproveToken: string;
294
294
  SendTokenAndUnwrap: string;
295
295
  ToggleSub: string;
296
+ UpdateSub: string;
296
297
  CreateSub: string;
297
298
  TokenBalance: string;
298
299
  TokenizedVaultAdapter: string;
@@ -332,7 +333,6 @@ export declare const actionAddresses: {
332
333
  CompV3Withdraw: string;
333
334
  SFApproveTokens: string;
334
335
  AutomationV2Unsub?: undefined;
335
- UpdateSub?: undefined;
336
336
  TransferNFT?: undefined;
337
337
  SDaiWrap?: undefined;
338
338
  SDaiUnwrap?: undefined;
@@ -902,6 +902,11 @@ export declare const actionAddresses: {
902
902
  FluidVaultT1Withdraw: string;
903
903
  FluidVaultT1Supply: string;
904
904
  FluidView: string;
905
+ FluidDexOpen: string;
906
+ FluidDexSupply: string;
907
+ FluidDexBorrow: string;
908
+ FluidDexPayback: string;
909
+ FluidDexWithdraw: string;
905
910
  TokenizedVaultAdapter: string;
906
911
  SFApproveTokens: string;
907
912
  AutomationV2Unsub?: undefined;
@@ -1108,11 +1113,6 @@ export declare const actionAddresses: {
1108
1113
  EtherFiUnwrap?: undefined;
1109
1114
  KingClaim?: undefined;
1110
1115
  FluidClaim?: undefined;
1111
- FluidDexOpen?: undefined;
1112
- FluidDexSupply?: undefined;
1113
- FluidDexBorrow?: undefined;
1114
- FluidDexPayback?: undefined;
1115
- FluidDexWithdraw?: undefined;
1116
1116
  PendleTokenRedeem?: undefined;
1117
1117
  UmbrellaClaimRewards?: undefined;
1118
1118
  UmbrellaStake?: undefined;
@@ -1430,6 +1430,18 @@ export declare const actionAddresses: {
1430
1430
  AaveV3View: string;
1431
1431
  AaveV3DelegateWithSig: string;
1432
1432
  AaveV3DelegateCredit: string;
1433
+ FluidVaultT1Open: string;
1434
+ FluidVaultT1Adjust: string;
1435
+ FluidVaultT1Borrow: string;
1436
+ FluidVaultT1Payback: string;
1437
+ FluidVaultT1Withdraw: string;
1438
+ FluidVaultT1Supply: string;
1439
+ FluidView: string;
1440
+ FluidDexOpen: string;
1441
+ FluidDexSupply: string;
1442
+ FluidDexBorrow: string;
1443
+ FluidDexPayback: string;
1444
+ FluidDexWithdraw: string;
1433
1445
  PendleTokenRedeem: string;
1434
1446
  ChangeProxyOwner?: undefined;
1435
1447
  AutomationV2Unsub?: undefined;
@@ -1659,19 +1671,7 @@ export declare const actionAddresses: {
1659
1671
  EtherFiWrap?: undefined;
1660
1672
  EtherFiUnwrap?: undefined;
1661
1673
  KingClaim?: undefined;
1662
- FluidVaultT1Open?: undefined;
1663
- FluidVaultT1Adjust?: undefined;
1664
- FluidVaultT1Borrow?: undefined;
1665
- FluidVaultT1Payback?: undefined;
1666
- FluidVaultT1Withdraw?: undefined;
1667
- FluidVaultT1Supply?: undefined;
1668
- FluidView?: undefined;
1669
1674
  FluidClaim?: undefined;
1670
- FluidDexOpen?: undefined;
1671
- FluidDexSupply?: undefined;
1672
- FluidDexBorrow?: undefined;
1673
- FluidDexPayback?: undefined;
1674
- FluidDexWithdraw?: undefined;
1675
1675
  UmbrellaClaimRewards?: undefined;
1676
1676
  UmbrellaStake?: undefined;
1677
1677
  UmbrellaUnstake?: undefined;
@@ -331,6 +331,7 @@ export const actionAddresses = {
331
331
  ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
332
332
  SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
333
333
  ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
334
+ UpdateSub: '0xAe6ea1d13dF2bE60dC7933DB56067Cb89d6A2cDe',
334
335
  CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
335
336
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
336
337
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
@@ -527,6 +528,11 @@ export const actionAddresses = {
527
528
  FluidVaultT1Withdraw: '0x26bE6a2EdE97aE826ed9DA8Fb79428037fe55cEB',
528
529
  FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
529
530
  FluidView: '0x6cd4D6af4F292817eA2A2311F099dF26cd015028',
531
+ FluidDexOpen: '0x5eA8Da9679145D51F5eAEC8Bf2f42f47003A8799',
532
+ FluidDexSupply: '0x2fCb7db80d3Be5C1B0049dF074b1AcFbcA93A867',
533
+ FluidDexBorrow: '0x9D40776a876fA67C6757DA386434844cB6616C5F',
534
+ FluidDexPayback: '0xc177c885872592EDA598276bD3FAe5B6d27F80Bf',
535
+ FluidDexWithdraw: '0xEaBA867c49FE8e53F5716fFF8857F239bd7202e1',
530
536
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
531
537
  // summer.fi
532
538
  SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
@@ -598,6 +604,19 @@ export const actionAddresses = {
598
604
  AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
599
605
  AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
600
606
  AaveV3DelegateCredit: '0x0a9b2080C14DaF008AE87C977dFDf5f5D6D0937F',
607
+ // Fluid
608
+ FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
609
+ FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
610
+ FluidVaultT1Borrow: '0x95a8665Ba58aa13A58c60B0803572772cda153dB',
611
+ FluidVaultT1Payback: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
612
+ FluidVaultT1Withdraw: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
613
+ FluidVaultT1Supply: '0x54D1b51d2d68CD0Dc877296527780CA6aff68a39',
614
+ FluidView: '0x27C0BAe2338cE28097122393faF90375B9395dd1',
615
+ FluidDexOpen: '0xF32d5d8D81f2662A02955CE537537088DF29daf5',
616
+ FluidDexSupply: '0x903F7C93FFC4AAbaBB096a7A722F1f057816B399',
617
+ FluidDexBorrow: '0xa2A878a09639D1ab3AF544566c0CA4D0FeAEE65E',
618
+ FluidDexPayback: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
619
+ FluidDexWithdraw: '0x17B4ecd173b3Df2F5cB02c53Df8AA34e23Bcb92E',
601
620
  // Pendle
602
621
  PendleTokenRedeem: '0xB4c5f33bb5791D0174Df1879b809Bf57eE540B62',
603
622
  },
@@ -304,6 +304,7 @@ declare const actionAddressesAllChains: {
304
304
  ApproveToken: string;
305
305
  SendTokenAndUnwrap: string;
306
306
  ToggleSub: string;
307
+ UpdateSub: string;
307
308
  CreateSub: string;
308
309
  TokenBalance: string;
309
310
  TokenizedVaultAdapter: string;
@@ -343,7 +344,6 @@ declare const actionAddressesAllChains: {
343
344
  CompV3Withdraw: string;
344
345
  SFApproveTokens: string;
345
346
  AutomationV2Unsub?: undefined;
346
- UpdateSub?: undefined;
347
347
  TransferNFT?: undefined;
348
348
  SDaiWrap?: undefined;
349
349
  SDaiUnwrap?: undefined;
@@ -913,6 +913,11 @@ declare const actionAddressesAllChains: {
913
913
  FluidVaultT1Withdraw: string;
914
914
  FluidVaultT1Supply: string;
915
915
  FluidView: string;
916
+ FluidDexOpen: string;
917
+ FluidDexSupply: string;
918
+ FluidDexBorrow: string;
919
+ FluidDexPayback: string;
920
+ FluidDexWithdraw: string;
916
921
  TokenizedVaultAdapter: string;
917
922
  SFApproveTokens: string;
918
923
  AutomationV2Unsub?: undefined;
@@ -1119,11 +1124,6 @@ declare const actionAddressesAllChains: {
1119
1124
  EtherFiUnwrap?: undefined;
1120
1125
  KingClaim?: undefined;
1121
1126
  FluidClaim?: undefined;
1122
- FluidDexOpen?: undefined;
1123
- FluidDexSupply?: undefined;
1124
- FluidDexBorrow?: undefined;
1125
- FluidDexPayback?: undefined;
1126
- FluidDexWithdraw?: undefined;
1127
1127
  PendleTokenRedeem?: undefined;
1128
1128
  UmbrellaClaimRewards?: undefined;
1129
1129
  UmbrellaStake?: undefined;
@@ -1441,6 +1441,18 @@ declare const actionAddressesAllChains: {
1441
1441
  AaveV3View: string;
1442
1442
  AaveV3DelegateWithSig: string;
1443
1443
  AaveV3DelegateCredit: string;
1444
+ FluidVaultT1Open: string;
1445
+ FluidVaultT1Adjust: string;
1446
+ FluidVaultT1Borrow: string;
1447
+ FluidVaultT1Payback: string;
1448
+ FluidVaultT1Withdraw: string;
1449
+ FluidVaultT1Supply: string;
1450
+ FluidView: string;
1451
+ FluidDexOpen: string;
1452
+ FluidDexSupply: string;
1453
+ FluidDexBorrow: string;
1454
+ FluidDexPayback: string;
1455
+ FluidDexWithdraw: string;
1444
1456
  PendleTokenRedeem: string;
1445
1457
  ChangeProxyOwner?: undefined;
1446
1458
  AutomationV2Unsub?: undefined;
@@ -1670,19 +1682,7 @@ declare const actionAddressesAllChains: {
1670
1682
  EtherFiWrap?: undefined;
1671
1683
  EtherFiUnwrap?: undefined;
1672
1684
  KingClaim?: undefined;
1673
- FluidVaultT1Open?: undefined;
1674
- FluidVaultT1Adjust?: undefined;
1675
- FluidVaultT1Borrow?: undefined;
1676
- FluidVaultT1Payback?: undefined;
1677
- FluidVaultT1Withdraw?: undefined;
1678
- FluidVaultT1Supply?: undefined;
1679
- FluidView?: undefined;
1680
1685
  FluidClaim?: undefined;
1681
- FluidDexOpen?: undefined;
1682
- FluidDexSupply?: undefined;
1683
- FluidDexBorrow?: undefined;
1684
- FluidDexPayback?: undefined;
1685
- FluidDexWithdraw?: undefined;
1686
1686
  UmbrellaClaimRewards?: undefined;
1687
1687
  UmbrellaStake?: undefined;
1688
1688
  UmbrellaUnstake?: undefined;
@@ -1986,6 +1986,7 @@ declare const actionAddresses: (chainId?: null) => {
1986
1986
  ApproveToken: string;
1987
1987
  SendTokenAndUnwrap: string;
1988
1988
  ToggleSub: string;
1989
+ UpdateSub: string;
1989
1990
  CreateSub: string;
1990
1991
  TokenBalance: string;
1991
1992
  TokenizedVaultAdapter: string;
@@ -2025,7 +2026,6 @@ declare const actionAddresses: (chainId?: null) => {
2025
2026
  CompV3Withdraw: string;
2026
2027
  SFApproveTokens: string;
2027
2028
  AutomationV2Unsub?: undefined;
2028
- UpdateSub?: undefined;
2029
2029
  TransferNFT?: undefined;
2030
2030
  SDaiWrap?: undefined;
2031
2031
  SDaiUnwrap?: undefined;
@@ -2595,6 +2595,11 @@ declare const actionAddresses: (chainId?: null) => {
2595
2595
  FluidVaultT1Withdraw: string;
2596
2596
  FluidVaultT1Supply: string;
2597
2597
  FluidView: string;
2598
+ FluidDexOpen: string;
2599
+ FluidDexSupply: string;
2600
+ FluidDexBorrow: string;
2601
+ FluidDexPayback: string;
2602
+ FluidDexWithdraw: string;
2598
2603
  TokenizedVaultAdapter: string;
2599
2604
  SFApproveTokens: string;
2600
2605
  AutomationV2Unsub?: undefined;
@@ -2801,11 +2806,6 @@ declare const actionAddresses: (chainId?: null) => {
2801
2806
  EtherFiUnwrap?: undefined;
2802
2807
  KingClaim?: undefined;
2803
2808
  FluidClaim?: undefined;
2804
- FluidDexOpen?: undefined;
2805
- FluidDexSupply?: undefined;
2806
- FluidDexBorrow?: undefined;
2807
- FluidDexPayback?: undefined;
2808
- FluidDexWithdraw?: undefined;
2809
2809
  PendleTokenRedeem?: undefined;
2810
2810
  UmbrellaClaimRewards?: undefined;
2811
2811
  UmbrellaStake?: undefined;
@@ -3123,6 +3123,18 @@ declare const actionAddresses: (chainId?: null) => {
3123
3123
  AaveV3View: string;
3124
3124
  AaveV3DelegateWithSig: string;
3125
3125
  AaveV3DelegateCredit: string;
3126
+ FluidVaultT1Open: string;
3127
+ FluidVaultT1Adjust: string;
3128
+ FluidVaultT1Borrow: string;
3129
+ FluidVaultT1Payback: string;
3130
+ FluidVaultT1Withdraw: string;
3131
+ FluidVaultT1Supply: string;
3132
+ FluidView: string;
3133
+ FluidDexOpen: string;
3134
+ FluidDexSupply: string;
3135
+ FluidDexBorrow: string;
3136
+ FluidDexPayback: string;
3137
+ FluidDexWithdraw: string;
3126
3138
  PendleTokenRedeem: string;
3127
3139
  ChangeProxyOwner?: undefined;
3128
3140
  AutomationV2Unsub?: undefined;
@@ -3352,19 +3364,7 @@ declare const actionAddresses: (chainId?: null) => {
3352
3364
  EtherFiWrap?: undefined;
3353
3365
  EtherFiUnwrap?: undefined;
3354
3366
  KingClaim?: undefined;
3355
- FluidVaultT1Open?: undefined;
3356
- FluidVaultT1Adjust?: undefined;
3357
- FluidVaultT1Borrow?: undefined;
3358
- FluidVaultT1Payback?: undefined;
3359
- FluidVaultT1Withdraw?: undefined;
3360
- FluidVaultT1Supply?: undefined;
3361
- FluidView?: undefined;
3362
3367
  FluidClaim?: undefined;
3363
- FluidDexOpen?: undefined;
3364
- FluidDexSupply?: undefined;
3365
- FluidDexBorrow?: undefined;
3366
- FluidDexPayback?: undefined;
3367
- FluidDexWithdraw?: undefined;
3368
3368
  UmbrellaClaimRewards?: undefined;
3369
3369
  UmbrellaStake?: undefined;
3370
3370
  UmbrellaUnstake?: undefined;
@@ -3895,6 +3895,7 @@ declare const _default: {
3895
3895
  ApproveToken: string;
3896
3896
  SendTokenAndUnwrap: string;
3897
3897
  ToggleSub: string;
3898
+ UpdateSub: string;
3898
3899
  CreateSub: string;
3899
3900
  TokenBalance: string;
3900
3901
  TokenizedVaultAdapter: string;
@@ -3934,7 +3935,6 @@ declare const _default: {
3934
3935
  CompV3Withdraw: string;
3935
3936
  SFApproveTokens: string;
3936
3937
  AutomationV2Unsub?: undefined;
3937
- UpdateSub?: undefined;
3938
3938
  TransferNFT?: undefined;
3939
3939
  SDaiWrap?: undefined;
3940
3940
  SDaiUnwrap?: undefined;
@@ -4504,6 +4504,11 @@ declare const _default: {
4504
4504
  FluidVaultT1Withdraw: string;
4505
4505
  FluidVaultT1Supply: string;
4506
4506
  FluidView: string;
4507
+ FluidDexOpen: string;
4508
+ FluidDexSupply: string;
4509
+ FluidDexBorrow: string;
4510
+ FluidDexPayback: string;
4511
+ FluidDexWithdraw: string;
4507
4512
  TokenizedVaultAdapter: string;
4508
4513
  SFApproveTokens: string;
4509
4514
  AutomationV2Unsub?: undefined;
@@ -4710,11 +4715,6 @@ declare const _default: {
4710
4715
  EtherFiUnwrap?: undefined;
4711
4716
  KingClaim?: undefined;
4712
4717
  FluidClaim?: undefined;
4713
- FluidDexOpen?: undefined;
4714
- FluidDexSupply?: undefined;
4715
- FluidDexBorrow?: undefined;
4716
- FluidDexPayback?: undefined;
4717
- FluidDexWithdraw?: undefined;
4718
4718
  PendleTokenRedeem?: undefined;
4719
4719
  UmbrellaClaimRewards?: undefined;
4720
4720
  UmbrellaStake?: undefined;
@@ -5032,6 +5032,18 @@ declare const _default: {
5032
5032
  AaveV3View: string;
5033
5033
  AaveV3DelegateWithSig: string;
5034
5034
  AaveV3DelegateCredit: string;
5035
+ FluidVaultT1Open: string;
5036
+ FluidVaultT1Adjust: string;
5037
+ FluidVaultT1Borrow: string;
5038
+ FluidVaultT1Payback: string;
5039
+ FluidVaultT1Withdraw: string;
5040
+ FluidVaultT1Supply: string;
5041
+ FluidView: string;
5042
+ FluidDexOpen: string;
5043
+ FluidDexSupply: string;
5044
+ FluidDexBorrow: string;
5045
+ FluidDexPayback: string;
5046
+ FluidDexWithdraw: string;
5035
5047
  PendleTokenRedeem: string;
5036
5048
  ChangeProxyOwner?: undefined;
5037
5049
  AutomationV2Unsub?: undefined;
@@ -5261,19 +5273,7 @@ declare const _default: {
5261
5273
  EtherFiWrap?: undefined;
5262
5274
  EtherFiUnwrap?: undefined;
5263
5275
  KingClaim?: undefined;
5264
- FluidVaultT1Open?: undefined;
5265
- FluidVaultT1Adjust?: undefined;
5266
- FluidVaultT1Borrow?: undefined;
5267
- FluidVaultT1Payback?: undefined;
5268
- FluidVaultT1Withdraw?: undefined;
5269
- FluidVaultT1Supply?: undefined;
5270
- FluidView?: undefined;
5271
5276
  FluidClaim?: undefined;
5272
- FluidDexOpen?: undefined;
5273
- FluidDexSupply?: undefined;
5274
- FluidDexBorrow?: undefined;
5275
- FluidDexPayback?: undefined;
5276
- FluidDexWithdraw?: undefined;
5277
5277
  UmbrellaClaimRewards?: undefined;
5278
5278
  UmbrellaStake?: undefined;
5279
5279
  UmbrellaUnstake?: undefined;
@@ -5577,6 +5577,7 @@ declare const _default: {
5577
5577
  ApproveToken: string;
5578
5578
  SendTokenAndUnwrap: string;
5579
5579
  ToggleSub: string;
5580
+ UpdateSub: string;
5580
5581
  CreateSub: string;
5581
5582
  TokenBalance: string;
5582
5583
  TokenizedVaultAdapter: string;
@@ -5616,7 +5617,6 @@ declare const _default: {
5616
5617
  CompV3Withdraw: string;
5617
5618
  SFApproveTokens: string;
5618
5619
  AutomationV2Unsub?: undefined;
5619
- UpdateSub?: undefined;
5620
5620
  TransferNFT?: undefined;
5621
5621
  SDaiWrap?: undefined;
5622
5622
  SDaiUnwrap?: undefined;
@@ -6186,6 +6186,11 @@ declare const _default: {
6186
6186
  FluidVaultT1Withdraw: string;
6187
6187
  FluidVaultT1Supply: string;
6188
6188
  FluidView: string;
6189
+ FluidDexOpen: string;
6190
+ FluidDexSupply: string;
6191
+ FluidDexBorrow: string;
6192
+ FluidDexPayback: string;
6193
+ FluidDexWithdraw: string;
6189
6194
  TokenizedVaultAdapter: string;
6190
6195
  SFApproveTokens: string;
6191
6196
  AutomationV2Unsub?: undefined;
@@ -6392,11 +6397,6 @@ declare const _default: {
6392
6397
  EtherFiUnwrap?: undefined;
6393
6398
  KingClaim?: undefined;
6394
6399
  FluidClaim?: undefined;
6395
- FluidDexOpen?: undefined;
6396
- FluidDexSupply?: undefined;
6397
- FluidDexBorrow?: undefined;
6398
- FluidDexPayback?: undefined;
6399
- FluidDexWithdraw?: undefined;
6400
6400
  PendleTokenRedeem?: undefined;
6401
6401
  UmbrellaClaimRewards?: undefined;
6402
6402
  UmbrellaStake?: undefined;
@@ -6714,6 +6714,18 @@ declare const _default: {
6714
6714
  AaveV3View: string;
6715
6715
  AaveV3DelegateWithSig: string;
6716
6716
  AaveV3DelegateCredit: string;
6717
+ FluidVaultT1Open: string;
6718
+ FluidVaultT1Adjust: string;
6719
+ FluidVaultT1Borrow: string;
6720
+ FluidVaultT1Payback: string;
6721
+ FluidVaultT1Withdraw: string;
6722
+ FluidVaultT1Supply: string;
6723
+ FluidView: string;
6724
+ FluidDexOpen: string;
6725
+ FluidDexSupply: string;
6726
+ FluidDexBorrow: string;
6727
+ FluidDexPayback: string;
6728
+ FluidDexWithdraw: string;
6717
6729
  PendleTokenRedeem: string;
6718
6730
  ChangeProxyOwner?: undefined;
6719
6731
  AutomationV2Unsub?: undefined;
@@ -6943,19 +6955,7 @@ declare const _default: {
6943
6955
  EtherFiWrap?: undefined;
6944
6956
  EtherFiUnwrap?: undefined;
6945
6957
  KingClaim?: undefined;
6946
- FluidVaultT1Open?: undefined;
6947
- FluidVaultT1Adjust?: undefined;
6948
- FluidVaultT1Borrow?: undefined;
6949
- FluidVaultT1Payback?: undefined;
6950
- FluidVaultT1Withdraw?: undefined;
6951
- FluidVaultT1Supply?: undefined;
6952
- FluidView?: undefined;
6953
6958
  FluidClaim?: undefined;
6954
- FluidDexOpen?: undefined;
6955
- FluidDexSupply?: undefined;
6956
- FluidDexBorrow?: undefined;
6957
- FluidDexPayback?: undefined;
6958
- FluidDexWithdraw?: undefined;
6959
6959
  UmbrellaClaimRewards?: undefined;
6960
6960
  UmbrellaStake?: undefined;
6961
6961
  UmbrellaUnstake?: undefined;
@@ -0,0 +1,13 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256 } from '../types';
3
+ /**
4
+ * AaveV3QuotePriceRangeTrigger
5
+ * @param baseTokenAddr - The address of the base token
6
+ * @param quoteTokenAddr - The address of the quote token
7
+ * @param lowerPrice - The lower price of the range
8
+ * @param upperPrice - The upper price of the range
9
+ * @category Triggers
10
+ */
11
+ export declare class AaveV3QuotePriceRangeTrigger extends Action {
12
+ constructor(baseTokenAddr: EthAddress, quoteTokenAddr: EthAddress, lowerPrice: uint256, upperPrice: uint256);
13
+ }
@@ -0,0 +1,15 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ * AaveV3QuotePriceRangeTrigger
5
+ * @param baseTokenAddr - The address of the base token
6
+ * @param quoteTokenAddr - The address of the quote token
7
+ * @param lowerPrice - The lower price of the range
8
+ * @param upperPrice - The upper price of the range
9
+ * @category Triggers
10
+ */
11
+ export class AaveV3QuotePriceRangeTrigger extends Action {
12
+ constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
13
+ super('AaveV3QuotePriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
14
+ }
15
+ }
@@ -28,3 +28,4 @@ export * from './FluidRatioTrigger';
28
28
  export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
+ export * from './AaveV3QuotePriceRangeTrigger';
@@ -28,3 +28,4 @@ export * from './FluidRatioTrigger';
28
28
  export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
+ export * from './AaveV3QuotePriceRangeTrigger';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.8",
3
+ "version": "1.3.9-dev-plasma",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -23,7 +23,7 @@
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
25
  "@defisaver/eslint-config": "^1.0.0",
26
- "@defisaver/tokens": "^1.7.5",
26
+ "@defisaver/tokens": "^1.7.6",
27
27
  "@ethersproject/address": "^5.0.10",
28
28
  "@ethersproject/solidity": "^5.0.9",
29
29
  "@types/web3-eth-abi": "^1.2.2",
@@ -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 users proxy position and reverts if faulty.
6
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` 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,18 +13,20 @@ 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
16
17
  */
17
- constructor(targetRatio:uint256, market:EthAddress) {
18
+ constructor(
19
+ targetRatio: uint256,
20
+ market: EthAddress,
21
+ user: EthAddress = getAddr('Empty'),
22
+ ) {
18
23
  super(
19
24
  'AaveV3OpenRatioCheck',
20
25
  getAddr('Empty'),
21
- ['uint256', 'address'],
22
- [targetRatio, market],
26
+ ['uint256', 'address', 'address'],
27
+ [targetRatio, market, user],
23
28
  );
24
29
 
25
- this.mappableArgs = [
26
- this.args[0],
27
- this.args[1],
28
- ];
30
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
29
31
  }
30
32
  }
@@ -1,6 +1,6 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
- import { uint8, uint256 } from '../../types';
3
+ import { uint8, uint256, EthAddress } from '../../types';
4
4
 
5
5
  /**
6
6
  * AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
@@ -11,13 +11,27 @@ 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
14
16
  */
15
- constructor(ratioState:uint8, targetRatio:uint256) {
16
- super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
17
+ constructor(
18
+ ratioState: uint8,
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
+ );
17
29
 
18
30
  this.mappableArgs = [
19
31
  this.args[0],
20
32
  this.args[1],
33
+ this.args[2],
34
+ this.args[3],
21
35
  ];
22
36
  }
23
- }
37
+ }