@iotexproject/kit 0.0.47 → 0.0.49

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;
@@ -7152,8 +7155,6 @@ declare class UseHub {
7152
7155
  }): Promise<{
7153
7156
  RewardRecord: {
7154
7157
  total_reward_delta: number;
7155
- burndrop_reward_delta: number;
7156
- hermes_reward_delta: number;
7157
7158
  date: string;
7158
7159
  }[];
7159
7160
  }>;
@@ -7209,8 +7210,30 @@ declare const modules: {
7209
7210
  hub: UseHub;
7210
7211
  };
7211
7212
  export type ModuleType = typeof modules;
7213
+ declare class Account {
7214
+ private readonly ch;
7215
+ private readonly analyser;
7216
+ constructor();
7217
+ balanceChart({ address, mode }: {
7218
+ address: string;
7219
+ mode: "24hr" | "7day";
7220
+ }): Promise<{
7221
+ list: any;
7222
+ }>;
7223
+ getXrc20Tokens({ address }: {
7224
+ address: string;
7225
+ }): Promise<{
7226
+ tokens: any;
7227
+ }>;
7228
+ }
7229
+ declare const modules$1: {
7230
+ account: Account;
7231
+ };
7212
7232
  export declare const createClient: ({ url }?: {
7213
7233
  url?: string;
7214
7234
  }) => ModuleType;
7235
+ export declare const createClientWithDBServer: ({ url }?: {
7236
+ url?: string;
7237
+ }) => typeof modules$1;
7215
7238
 
7216
7239
  export {};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var q=({url:j="http://localhost:9527"}={})=>new Proxy({},{get(R,o,T){return new Proxy({},{get(b,x){return async(i)=>{for(let f in i)if(Array.isArray(i[f]))i[f]=JSON.stringify(i[f]);const M=`${j}/${String(o)}/${String(x)}?${new URLSearchParams(i).toString()}`;return(await fetch(M)).json()}}})}});export{q as createClient};
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};
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.47",
5
+ "version": "v0.0.49",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {