@iotexproject/kit 0.0.52 → 0.0.54

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/dist/index.d.ts CHANGED
@@ -6755,9 +6755,12 @@ declare class LSTStrategyEntity {
6755
6755
  transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6756
6756
  }
6757
6757
  declare class MSP {
6758
- mockBucket(): Promise<{
6758
+ mockBucket(args: {
6759
+ amount: string;
6760
+ }): Promise<{
6759
6761
  data: any;
6760
6762
  address: string;
6763
+ value: string;
6761
6764
  }>;
6762
6765
  mockLST(args: {
6763
6766
  lstTokenAddress: string;
@@ -6796,10 +6799,16 @@ declare class MSP {
6796
6799
  decimals: string;
6797
6800
  isZero: boolean;
6798
6801
  };
6802
+ bucketAmount: {
6803
+ value: string;
6804
+ format: string;
6805
+ originFormat: string;
6806
+ decimals: string;
6807
+ isZero: boolean;
6808
+ };
6799
6809
  stakeStatus: any;
6800
6810
  totalAmount: () => Promise<any>;
6801
6811
  unstakeTime: any;
6802
- bucketAmount: any;
6803
6812
  bucketStaker: (_: string) => Promise<any>;
6804
6813
  withdrawTime: any;
6805
6814
  pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
@@ -6865,11 +6874,17 @@ declare class MSP {
6865
6874
  decimals: string;
6866
6875
  isZero: boolean;
6867
6876
  };
6877
+ bucketAmount: {
6878
+ value: string;
6879
+ format: string;
6880
+ originFormat: string;
6881
+ decimals: string;
6882
+ isZero: boolean;
6883
+ };
6868
6884
  owner: () => Promise<any>;
6869
6885
  stakeStatus: any;
6870
6886
  totalAmount: () => Promise<any>;
6871
6887
  unstakeTime: any;
6872
- bucketAmount: any;
6873
6888
  bucketStaker: (_: string) => Promise<any>;
6874
6889
  withdrawTime: any;
6875
6890
  pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
@@ -6968,15 +6983,6 @@ declare class MSP {
6968
6983
  address: string;
6969
6984
  }[] | null>;
6970
6985
  }
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
- }
6980
6986
  export interface Bucket {
6981
6987
  index: bigint;
6982
6988
  candidateAddress: string;
@@ -7035,9 +7041,6 @@ declare class Staking {
7035
7041
  duration: string;
7036
7042
  autoStake: boolean;
7037
7043
  }): Promise<any>;
7038
- candidates(): Promise<Candidate[] | {
7039
- error: any;
7040
- }>;
7041
7044
  }
7042
7045
  declare class utils {
7043
7046
  erc20(args: {
@@ -7170,6 +7173,8 @@ declare class UseHub {
7170
7173
  }): Promise<{
7171
7174
  RewardRecord: {
7172
7175
  total_reward_delta: number;
7176
+ burndrop_reward_delta: number;
7177
+ hermes_reward_delta: number;
7173
7178
  date: string;
7174
7179
  }[];
7175
7180
  }>;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var z=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}}),A=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}});export{A as createClientWithDBServer,z as createClient};
1
+ var G=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}}),H=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}});export{H as createClientWithDBServer,G as createClient};
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.52",
5
+ "version": "v0.0.54",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {