@iotexproject/kit 0.0.53 → 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>;
@@ -7158,6 +7173,8 @@ declare class UseHub {
7158
7173
  }): Promise<{
7159
7174
  RewardRecord: {
7160
7175
  total_reward_delta: number;
7176
+ burndrop_reward_delta: number;
7177
+ hermes_reward_delta: number;
7161
7178
  date: string;
7162
7179
  }[];
7163
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.53",
5
+ "version": "v0.0.54",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {