@defisaver/sdk 1.2.17-dev-fluid-5 → 1.2.19

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.
@@ -0,0 +1,16 @@
1
+ import { Action } from '../../Action';
2
+ import { bytes32, EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * Action to Claim KING token as EtherFi reward on behalf of smart wallet
5
+ *
6
+ * @category BasicActions
7
+ */
8
+ export declare class KingClaimAction extends Action {
9
+ /**
10
+ * @param to
11
+ * @param amount
12
+ * @param merkleRoot
13
+ * @param merkleProof
14
+ */
15
+ constructor(to: EthAddress, amount: uint256, merkleRoot: bytes32, merkleProof: Array<bytes32>);
16
+ }
@@ -0,0 +1,25 @@
1
+ import { requireAddress } from '../../utils/general';
2
+ import { Action } from '../../Action';
3
+ import { getAddr } from '../../addresses';
4
+ /**
5
+ * Action to Claim KING token as EtherFi reward on behalf of smart wallet
6
+ *
7
+ * @category BasicActions
8
+ */
9
+ export class KingClaimAction extends Action {
10
+ /**
11
+ * @param to
12
+ * @param amount
13
+ * @param merkleRoot
14
+ * @param merkleProof
15
+ */
16
+ constructor(to, amount, merkleRoot, merkleProof) {
17
+ requireAddress(to);
18
+ super('KingClaim', getAddr('KingClaim'), [
19
+ 'address',
20
+ 'uint256',
21
+ 'bytes32',
22
+ 'bytes32[]',
23
+ ], [to, amount, merkleRoot, merkleProof]);
24
+ }
25
+ }
@@ -31,3 +31,4 @@ export * from './PermitTokenAction';
31
31
  export * from './StarknetClaimAction';
32
32
  export * from './HandleAuthAction';
33
33
  export * from './SendTokensAndUnwrapAction';
34
+ export * from './KingClaimAction';
@@ -31,3 +31,4 @@ export * from './PermitTokenAction';
31
31
  export * from './StarknetClaimAction';
32
32
  export * from './HandleAuthAction';
33
33
  export * from './SendTokensAndUnwrapAction';
34
+ export * from './KingClaimAction';
@@ -245,6 +245,7 @@ export declare const actionAddresses: {
245
245
  EtherFiStake: string;
246
246
  EtherFiWrap: string;
247
247
  EtherFiUnwrap: string;
248
+ KingClaim: string;
248
249
  FluidVaultT1Open: string;
249
250
  FluidVaultT1Adjust: string;
250
251
  FluidVaultT1Borrow: string;
@@ -506,6 +507,7 @@ export declare const actionAddresses: {
506
507
  EtherFiStake?: undefined;
507
508
  EtherFiWrap?: undefined;
508
509
  EtherFiUnwrap?: undefined;
510
+ KingClaim?: undefined;
509
511
  FluidVaultT1Open?: undefined;
510
512
  FluidVaultT1Adjust?: undefined;
511
513
  FluidVaultT1Borrow?: undefined;
@@ -768,6 +770,7 @@ export declare const actionAddresses: {
768
770
  EtherFiStake?: undefined;
769
771
  EtherFiWrap?: undefined;
770
772
  EtherFiUnwrap?: undefined;
773
+ KingClaim?: undefined;
771
774
  AaveV3DelegateCredit?: undefined;
772
775
  AaveV3RatioTrigger?: undefined;
773
776
  MorphoBlueView?: undefined;
@@ -1025,6 +1028,7 @@ export declare const actionAddresses: {
1025
1028
  EtherFiStake?: undefined;
1026
1029
  EtherFiWrap?: undefined;
1027
1030
  EtherFiUnwrap?: undefined;
1031
+ KingClaim?: undefined;
1028
1032
  AaveV3DelegateCredit?: undefined;
1029
1033
  AaveV3RatioTrigger?: undefined;
1030
1034
  AaveV3RatioCheck?: undefined;
@@ -280,6 +280,7 @@ export const actionAddresses = {
280
280
  EtherFiStake: '0xcadB650B6a60C89f7847Cba555A7eeCC220EA2e8',
281
281
  EtherFiWrap: '0x086464be5c73f66cfbe6b64ec23aa5a86749ef58',
282
282
  EtherFiUnwrap: '0x6Eb09948DDf9332d628d156950b9B1C0c091e8D8',
283
+ KingClaim: '0x483816678e2348bf87f88b0f4eb6a923017de0d6',
283
284
  // fluid
284
285
  FluidVaultT1Open: '0x372404335C05C2493Ff156Ef60cC0B286f6f2971',
285
286
  FluidVaultT1Adjust: '0x792D40CAE821905A2B57522BF8a77347e7BB0c0a',
@@ -256,6 +256,7 @@ declare const actionAddressesAllChains: {
256
256
  EtherFiStake: string;
257
257
  EtherFiWrap: string;
258
258
  EtherFiUnwrap: string;
259
+ KingClaim: string;
259
260
  FluidVaultT1Open: string;
260
261
  FluidVaultT1Adjust: string;
261
262
  FluidVaultT1Borrow: string;
@@ -517,6 +518,7 @@ declare const actionAddressesAllChains: {
517
518
  EtherFiStake?: undefined;
518
519
  EtherFiWrap?: undefined;
519
520
  EtherFiUnwrap?: undefined;
521
+ KingClaim?: undefined;
520
522
  FluidVaultT1Open?: undefined;
521
523
  FluidVaultT1Adjust?: undefined;
522
524
  FluidVaultT1Borrow?: undefined;
@@ -779,6 +781,7 @@ declare const actionAddressesAllChains: {
779
781
  EtherFiStake?: undefined;
780
782
  EtherFiWrap?: undefined;
781
783
  EtherFiUnwrap?: undefined;
784
+ KingClaim?: undefined;
782
785
  AaveV3DelegateCredit?: undefined;
783
786
  AaveV3RatioTrigger?: undefined;
784
787
  MorphoBlueView?: undefined;
@@ -1036,6 +1039,7 @@ declare const actionAddressesAllChains: {
1036
1039
  EtherFiStake?: undefined;
1037
1040
  EtherFiWrap?: undefined;
1038
1041
  EtherFiUnwrap?: undefined;
1042
+ KingClaim?: undefined;
1039
1043
  AaveV3DelegateCredit?: undefined;
1040
1044
  AaveV3RatioTrigger?: undefined;
1041
1045
  AaveV3RatioCheck?: undefined;
@@ -1286,6 +1290,7 @@ declare const actionAddresses: (chainId?: null) => {
1286
1290
  EtherFiStake: string;
1287
1291
  EtherFiWrap: string;
1288
1292
  EtherFiUnwrap: string;
1293
+ KingClaim: string;
1289
1294
  FluidVaultT1Open: string;
1290
1295
  FluidVaultT1Adjust: string;
1291
1296
  FluidVaultT1Borrow: string;
@@ -1547,6 +1552,7 @@ declare const actionAddresses: (chainId?: null) => {
1547
1552
  EtherFiStake?: undefined;
1548
1553
  EtherFiWrap?: undefined;
1549
1554
  EtherFiUnwrap?: undefined;
1555
+ KingClaim?: undefined;
1550
1556
  FluidVaultT1Open?: undefined;
1551
1557
  FluidVaultT1Adjust?: undefined;
1552
1558
  FluidVaultT1Borrow?: undefined;
@@ -1809,6 +1815,7 @@ declare const actionAddresses: (chainId?: null) => {
1809
1815
  EtherFiStake?: undefined;
1810
1816
  EtherFiWrap?: undefined;
1811
1817
  EtherFiUnwrap?: undefined;
1818
+ KingClaim?: undefined;
1812
1819
  AaveV3DelegateCredit?: undefined;
1813
1820
  AaveV3RatioTrigger?: undefined;
1814
1821
  MorphoBlueView?: undefined;
@@ -2066,6 +2073,7 @@ declare const actionAddresses: (chainId?: null) => {
2066
2073
  EtherFiStake?: undefined;
2067
2074
  EtherFiWrap?: undefined;
2068
2075
  EtherFiUnwrap?: undefined;
2076
+ KingClaim?: undefined;
2069
2077
  AaveV3DelegateCredit?: undefined;
2070
2078
  AaveV3RatioTrigger?: undefined;
2071
2079
  AaveV3RatioCheck?: undefined;
@@ -2459,6 +2467,7 @@ declare const _default: {
2459
2467
  EtherFiStake: string;
2460
2468
  EtherFiWrap: string;
2461
2469
  EtherFiUnwrap: string;
2470
+ KingClaim: string;
2462
2471
  FluidVaultT1Open: string;
2463
2472
  FluidVaultT1Adjust: string;
2464
2473
  FluidVaultT1Borrow: string;
@@ -2720,6 +2729,7 @@ declare const _default: {
2720
2729
  EtherFiStake?: undefined;
2721
2730
  EtherFiWrap?: undefined;
2722
2731
  EtherFiUnwrap?: undefined;
2732
+ KingClaim?: undefined;
2723
2733
  FluidVaultT1Open?: undefined;
2724
2734
  FluidVaultT1Adjust?: undefined;
2725
2735
  FluidVaultT1Borrow?: undefined;
@@ -2982,6 +2992,7 @@ declare const _default: {
2982
2992
  EtherFiStake?: undefined;
2983
2993
  EtherFiWrap?: undefined;
2984
2994
  EtherFiUnwrap?: undefined;
2995
+ KingClaim?: undefined;
2985
2996
  AaveV3DelegateCredit?: undefined;
2986
2997
  AaveV3RatioTrigger?: undefined;
2987
2998
  MorphoBlueView?: undefined;
@@ -3239,6 +3250,7 @@ declare const _default: {
3239
3250
  EtherFiStake?: undefined;
3240
3251
  EtherFiWrap?: undefined;
3241
3252
  EtherFiUnwrap?: undefined;
3253
+ KingClaim?: undefined;
3242
3254
  AaveV3DelegateCredit?: undefined;
3243
3255
  AaveV3RatioTrigger?: undefined;
3244
3256
  AaveV3RatioCheck?: undefined;
@@ -3489,6 +3501,7 @@ declare const _default: {
3489
3501
  EtherFiStake: string;
3490
3502
  EtherFiWrap: string;
3491
3503
  EtherFiUnwrap: string;
3504
+ KingClaim: string;
3492
3505
  FluidVaultT1Open: string;
3493
3506
  FluidVaultT1Adjust: string;
3494
3507
  FluidVaultT1Borrow: string;
@@ -3750,6 +3763,7 @@ declare const _default: {
3750
3763
  EtherFiStake?: undefined;
3751
3764
  EtherFiWrap?: undefined;
3752
3765
  EtherFiUnwrap?: undefined;
3766
+ KingClaim?: undefined;
3753
3767
  FluidVaultT1Open?: undefined;
3754
3768
  FluidVaultT1Adjust?: undefined;
3755
3769
  FluidVaultT1Borrow?: undefined;
@@ -4012,6 +4026,7 @@ declare const _default: {
4012
4026
  EtherFiStake?: undefined;
4013
4027
  EtherFiWrap?: undefined;
4014
4028
  EtherFiUnwrap?: undefined;
4029
+ KingClaim?: undefined;
4015
4030
  AaveV3DelegateCredit?: undefined;
4016
4031
  AaveV3RatioTrigger?: undefined;
4017
4032
  MorphoBlueView?: undefined;
@@ -4269,6 +4284,7 @@ declare const _default: {
4269
4284
  EtherFiStake?: undefined;
4270
4285
  EtherFiWrap?: undefined;
4271
4286
  EtherFiUnwrap?: undefined;
4287
+ KingClaim?: undefined;
4272
4288
  AaveV3DelegateCredit?: undefined;
4273
4289
  AaveV3RatioTrigger?: undefined;
4274
4290
  AaveV3RatioCheck?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.2.17-dev-fluid-5",
3
+ "version": "1.2.19",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -0,0 +1,32 @@
1
+ import { requireAddress } from '../../utils/general';
2
+ import { Action } from '../../Action';
3
+ import { getAddr } from '../../addresses';
4
+ import { bytes32, EthAddress, uint256 } from '../../types';
5
+
6
+ /**
7
+ * Action to Claim KING token as EtherFi reward on behalf of smart wallet
8
+ *
9
+ * @category BasicActions
10
+ */
11
+ export class KingClaimAction extends Action {
12
+ /**
13
+ * @param to
14
+ * @param amount
15
+ * @param merkleRoot
16
+ * @param merkleProof
17
+ */
18
+ constructor(to:EthAddress, amount:uint256, merkleRoot:bytes32, merkleProof: Array<bytes32>) {
19
+ requireAddress(to);
20
+ super(
21
+ 'KingClaim',
22
+ getAddr('KingClaim'),
23
+ [
24
+ 'address',
25
+ 'uint256',
26
+ 'bytes32',
27
+ 'bytes32[]',
28
+ ],
29
+ [to, amount, merkleRoot, merkleProof],
30
+ );
31
+ }
32
+ }
@@ -30,4 +30,5 @@ export * from './RemoveTokenApprovalAction';
30
30
  export * from './PermitTokenAction';
31
31
  export * from './StarknetClaimAction';
32
32
  export * from './HandleAuthAction';
33
- export * from './SendTokensAndUnwrapAction';
33
+ export * from './SendTokensAndUnwrapAction';
34
+ export * from './KingClaimAction';
package/src/addresses.ts CHANGED
@@ -324,6 +324,8 @@ export const actionAddresses = {
324
324
  EtherFiWrap: '0x086464be5c73f66cfbe6b64ec23aa5a86749ef58',
325
325
  EtherFiUnwrap: '0x6Eb09948DDf9332d628d156950b9B1C0c091e8D8',
326
326
 
327
+ KingClaim: '0x483816678e2348bf87f88b0f4eb6a923017de0d6',
328
+
327
329
  // fluid
328
330
  FluidVaultT1Open: '0x372404335C05C2493Ff156Ef60cC0B286f6f2971',
329
331
  FluidVaultT1Adjust: '0x792D40CAE821905A2B57522BF8a77347e7BB0c0a',