@iotexproject/kit 0.1.61 → 0.1.63
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/README.md +2 -0
- package/dist/index.d.ts +76 -8
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -6592,13 +6592,13 @@ declare class MSP {
|
|
|
6592
6592
|
}>;
|
|
6593
6593
|
dashboard(args: {
|
|
6594
6594
|
account?: `0x${string}`;
|
|
6595
|
-
}, ctx?: ConfigContext): Promise<{
|
|
6595
|
+
}, ctx?: ConfigContext): Promise<never[] | {
|
|
6596
6596
|
totalAmountUSD: number;
|
|
6597
6597
|
totalAmount: number;
|
|
6598
6598
|
} | null>;
|
|
6599
6599
|
totalMSPRewards(args: {
|
|
6600
6600
|
account?: `0x${string}`;
|
|
6601
|
-
}, ctx?: ConfigContext): Promise<{
|
|
6601
|
+
}, ctx?: ConfigContext): Promise<never[] | {
|
|
6602
6602
|
totalBucketRewards: {
|
|
6603
6603
|
rewards: number;
|
|
6604
6604
|
rewardsUSD: number;
|
|
@@ -6608,6 +6608,50 @@ declare class MSP {
|
|
|
6608
6608
|
rewardsUSD: number;
|
|
6609
6609
|
};
|
|
6610
6610
|
} | null>;
|
|
6611
|
+
myBucketList(args: {
|
|
6612
|
+
account?: `0x${string}`;
|
|
6613
|
+
}, ctx?: ConfigContext): Promise<{
|
|
6614
|
+
bucketId: number;
|
|
6615
|
+
owner: `0x${string}`;
|
|
6616
|
+
address: `0x${string}`;
|
|
6617
|
+
chainId: string;
|
|
6618
|
+
MockBucket: import("@dappworks/kit/aiem").QueryReturnType<MockBucketEntity, {
|
|
6619
|
+
name: true;
|
|
6620
|
+
}>;
|
|
6621
|
+
pendingRewards: {
|
|
6622
|
+
value: string;
|
|
6623
|
+
format: string;
|
|
6624
|
+
originFormat: string;
|
|
6625
|
+
decimals: string;
|
|
6626
|
+
};
|
|
6627
|
+
bucketAmount: {
|
|
6628
|
+
value: string;
|
|
6629
|
+
format: string;
|
|
6630
|
+
originFormat: string;
|
|
6631
|
+
decimals: string;
|
|
6632
|
+
};
|
|
6633
|
+
stakeStatus: any;
|
|
6634
|
+
totalAmount: () => Promise<any>;
|
|
6635
|
+
unstakeTime: any;
|
|
6636
|
+
bucketStaker: (_: string) => Promise<any>;
|
|
6637
|
+
withdrawTime: any;
|
|
6638
|
+
pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
|
|
6639
|
+
stakerBuckets: (staker: `0x${string}`) => Promise<any>;
|
|
6640
|
+
remainingReward: (_: `0x${string}`) => Promise<any>;
|
|
6641
|
+
strategyManager: () => Promise<any>;
|
|
6642
|
+
underlyingToken: () => Promise<any>;
|
|
6643
|
+
IOTX_REWARD_TOKEN: () => Promise<any>;
|
|
6644
|
+
accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
|
|
6645
|
+
calculateBucketRestakeAmount: (_duration: string, _amount: string) => Promise<any>;
|
|
6646
|
+
poke: (bucketId: string) => Promise<any>;
|
|
6647
|
+
stake: (bucketId: string) => Promise<any>;
|
|
6648
|
+
deposit: (bucketId: string) => Promise<any>;
|
|
6649
|
+
unstake: (bucketIds: any[]) => Promise<any>;
|
|
6650
|
+
withdraw: (bucketIds: any[], recipient: `0x${string}`) => Promise<any>;
|
|
6651
|
+
claimReward: () => Promise<any>;
|
|
6652
|
+
renounceOwnership: () => Promise<any>;
|
|
6653
|
+
transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
|
|
6654
|
+
}[]>;
|
|
6611
6655
|
myStakedBucketList(args: {
|
|
6612
6656
|
account?: `0x${string}`;
|
|
6613
6657
|
}, ctx?: ConfigContext): Promise<{
|
|
@@ -6686,6 +6730,20 @@ declare class MSP {
|
|
|
6686
6730
|
};
|
|
6687
6731
|
amountUSD: number;
|
|
6688
6732
|
};
|
|
6733
|
+
unstakingAmount: {
|
|
6734
|
+
value: string;
|
|
6735
|
+
format: string;
|
|
6736
|
+
originFormat: string;
|
|
6737
|
+
decimals: string;
|
|
6738
|
+
} | {
|
|
6739
|
+
unstakingAmount: {
|
|
6740
|
+
value: string;
|
|
6741
|
+
format: string;
|
|
6742
|
+
originFormat: string;
|
|
6743
|
+
decimals: string;
|
|
6744
|
+
};
|
|
6745
|
+
unstakingAmountUSD: number;
|
|
6746
|
+
};
|
|
6689
6747
|
totalAmount: {
|
|
6690
6748
|
totalAmount: {
|
|
6691
6749
|
value: string;
|
|
@@ -6701,7 +6759,6 @@ declare class MSP {
|
|
|
6701
6759
|
remainingReward: (_: `0x${string}`) => Promise<any>;
|
|
6702
6760
|
strategyManager: () => Promise<any>;
|
|
6703
6761
|
underlyingToken: () => Promise<any>;
|
|
6704
|
-
unstakingAmount: (_: `0x${string}`) => Promise<any>;
|
|
6705
6762
|
accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
|
|
6706
6763
|
stake: (_amount: string) => Promise<any>;
|
|
6707
6764
|
unstake: (_amount: string) => Promise<any>;
|
|
@@ -6714,10 +6771,9 @@ declare class MSP {
|
|
|
6714
6771
|
}[]>;
|
|
6715
6772
|
restakeBucket(args: {
|
|
6716
6773
|
bucketId: string;
|
|
6717
|
-
contractAddress: `0x${string}`;
|
|
6718
6774
|
}, ctx?: ConfigContext): Promise<{
|
|
6719
6775
|
data: any;
|
|
6720
|
-
address:
|
|
6776
|
+
address: string;
|
|
6721
6777
|
chainId: string;
|
|
6722
6778
|
type: string;
|
|
6723
6779
|
}[]>;
|
|
@@ -8820,7 +8876,8 @@ declare class MimoV3MiningManager {
|
|
|
8820
8876
|
fee: number;
|
|
8821
8877
|
tickLower: number;
|
|
8822
8878
|
tickUpper: number;
|
|
8823
|
-
tokenId:
|
|
8879
|
+
tokenId: number;
|
|
8880
|
+
isTransferred: boolean;
|
|
8824
8881
|
}[] | undefined>;
|
|
8825
8882
|
}
|
|
8826
8883
|
declare class LiquidityMiningV3 {
|
|
@@ -8865,8 +8922,18 @@ declare class LiquidityMiningV3 {
|
|
|
8865
8922
|
fee: number;
|
|
8866
8923
|
tickLower: number;
|
|
8867
8924
|
tickUpper: number;
|
|
8868
|
-
tokenId:
|
|
8869
|
-
|
|
8925
|
+
tokenId: number;
|
|
8926
|
+
isTransferred: boolean;
|
|
8927
|
+
}[];
|
|
8928
|
+
stakedPositions: {
|
|
8929
|
+
token0Address: `0x${string}`;
|
|
8930
|
+
token1Address: `0x${string}`;
|
|
8931
|
+
fee: number;
|
|
8932
|
+
tickLower: number;
|
|
8933
|
+
tickUpper: number;
|
|
8934
|
+
tokenId: number;
|
|
8935
|
+
isTransferred: boolean;
|
|
8936
|
+
}[];
|
|
8870
8937
|
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8871
8938
|
symbol: true;
|
|
8872
8939
|
name: true;
|
|
@@ -8878,6 +8945,7 @@ declare class LiquidityMiningV3 {
|
|
|
8878
8945
|
key: MimoV3MiningPoolKey;
|
|
8879
8946
|
v3PositionId: number;
|
|
8880
8947
|
account: `0x${string}`;
|
|
8948
|
+
isTransferred: boolean;
|
|
8881
8949
|
}, ctx?: ConfigContext): Promise<{
|
|
8882
8950
|
data: any;
|
|
8883
8951
|
address: string;
|