@iotexproject/kit 0.0.49 → 0.0.51

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +19 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6755,12 +6755,9 @@ declare class LSTStrategyEntity {
6755
6755
  transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6756
6756
  }
6757
6757
  declare class MSP {
6758
- mockBucket(args: {
6759
- amount: string;
6760
- }): Promise<{
6758
+ mockBucket(): Promise<{
6761
6759
  data: any;
6762
6760
  address: string;
6763
- value: string;
6764
6761
  }>;
6765
6762
  mockLST(args: {
6766
6763
  lstTokenAddress: string;
@@ -6971,6 +6968,15 @@ declare class MSP {
6971
6968
  address: string;
6972
6969
  }[] | null>;
6973
6970
  }
6971
+ export interface Candidate {
6972
+ ownerAddress: string;
6973
+ operatorAddress: string;
6974
+ rewardAddress: string;
6975
+ name: string;
6976
+ totalWeightedVotes: bigint;
6977
+ selfStakeBucketIdx: bigint;
6978
+ selfStakingTokens: bigint;
6979
+ }
6974
6980
  export interface Bucket {
6975
6981
  index: bigint;
6976
6982
  candidateAddress: string;
@@ -7023,6 +7029,15 @@ declare class Staking {
7023
7029
  getNFTV2BucketByIndex(args: {
7024
7030
  token_id: string;
7025
7031
  }): Promise<any>;
7032
+ createNativeBucket(args: {
7033
+ candName: string;
7034
+ amount: string;
7035
+ duration: string;
7036
+ autoStake: boolean;
7037
+ }): Promise<any>;
7038
+ selfStakingBuckets(): Promise<Candidate[] | {
7039
+ error: any;
7040
+ }>;
7026
7041
  }
7027
7042
  declare class utils {
7028
7043
  erc20(args: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.49",
5
+ "version": "v0.0.51",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {