@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 +22 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
|
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};
|