@iotexproject/kit 0.0.47 → 0.0.48

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
@@ -7152,8 +7152,6 @@ declare class UseHub {
7152
7152
  }): Promise<{
7153
7153
  RewardRecord: {
7154
7154
  total_reward_delta: number;
7155
- burndrop_reward_delta: number;
7156
- hermes_reward_delta: number;
7157
7155
  date: string;
7158
7156
  }[];
7159
7157
  }>;
@@ -7209,8 +7207,30 @@ declare const modules: {
7209
7207
  hub: UseHub;
7210
7208
  };
7211
7209
  export type ModuleType = typeof modules;
7210
+ declare class Account {
7211
+ private readonly ch;
7212
+ private readonly analyser;
7213
+ constructor();
7214
+ balanceChart({ address, mode }: {
7215
+ address: string;
7216
+ mode: "24hr" | "7day";
7217
+ }): Promise<{
7218
+ list: any;
7219
+ }>;
7220
+ getXrc20Tokens({ address }: {
7221
+ address: string;
7222
+ }): Promise<{
7223
+ tokens: any;
7224
+ }>;
7225
+ }
7226
+ declare const modules$1: {
7227
+ account: Account;
7228
+ };
7212
7229
  export declare const createClient: ({ url }?: {
7213
7230
  url?: string;
7214
7231
  }) => ModuleType;
7232
+ export declare const createClientWithDBServer: ({ url }?: {
7233
+ url?: string;
7234
+ }) => typeof modules$1;
7215
7235
 
7216
7236
  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.48",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {