@iotexproject/kit 0.0.62 → 0.0.64
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 +55 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import postgres from 'postgres';
|
|
4
|
+
|
|
3
5
|
declare class IoID {
|
|
4
6
|
create(args: {
|
|
5
7
|
_type: string;
|
|
@@ -7071,6 +7073,16 @@ declare class Staking {
|
|
|
7071
7073
|
version: "v1" | "v2";
|
|
7072
7074
|
newAmount?: string;
|
|
7073
7075
|
}): Promise<any>;
|
|
7076
|
+
NFTBucketStakeLock(args: {
|
|
7077
|
+
bucketIndex: string;
|
|
7078
|
+
autoStake: boolean;
|
|
7079
|
+
version: "v1" | "v2";
|
|
7080
|
+
duration?: string;
|
|
7081
|
+
}): Promise<any>;
|
|
7082
|
+
NFTBucketUnstake(args: {
|
|
7083
|
+
bucketIndex: string;
|
|
7084
|
+
version: "v1" | "v2";
|
|
7085
|
+
}): Promise<any>;
|
|
7074
7086
|
}
|
|
7075
7087
|
declare class utils {
|
|
7076
7088
|
erc20(args: {
|
|
@@ -7236,10 +7248,20 @@ declare const modules: {
|
|
|
7236
7248
|
hub: UseHub;
|
|
7237
7249
|
};
|
|
7238
7250
|
export type ModuleType = typeof modules;
|
|
7239
|
-
declare class
|
|
7240
|
-
private
|
|
7241
|
-
|
|
7251
|
+
declare class ClickHouseSDK {
|
|
7252
|
+
private client;
|
|
7253
|
+
constructor(dbUrl: string);
|
|
7254
|
+
query(sql: string): Promise<any>;
|
|
7255
|
+
}
|
|
7256
|
+
declare class BaseModule {
|
|
7257
|
+
analyzer: ReturnType<typeof postgres>;
|
|
7258
|
+
superbase: ReturnType<typeof postgres>;
|
|
7259
|
+
iotexscan: ReturnType<typeof postgres>;
|
|
7260
|
+
iopay: ReturnType<typeof postgres>;
|
|
7261
|
+
ch: ClickHouseSDK;
|
|
7242
7262
|
constructor();
|
|
7263
|
+
}
|
|
7264
|
+
declare class Account extends BaseModule {
|
|
7243
7265
|
balanceChart({ address, mode }: {
|
|
7244
7266
|
address: string;
|
|
7245
7267
|
mode: "24hr" | "7day";
|
|
@@ -7249,11 +7271,40 @@ declare class Account {
|
|
|
7249
7271
|
getXrc20Tokens({ address }: {
|
|
7250
7272
|
address: string;
|
|
7251
7273
|
}): Promise<{
|
|
7252
|
-
tokens:
|
|
7274
|
+
tokens: postgres.RowList<postgres.Row[]>;
|
|
7253
7275
|
}>;
|
|
7254
7276
|
}
|
|
7277
|
+
declare class Analyzer extends BaseModule {
|
|
7278
|
+
tvl(): Promise<any>;
|
|
7279
|
+
contractCount(): Promise<any>;
|
|
7280
|
+
totalStakedIotx(): Promise<any>;
|
|
7281
|
+
activeWalletCount({ start_date, end_date }?: {
|
|
7282
|
+
start_date?: string;
|
|
7283
|
+
end_date?: string;
|
|
7284
|
+
}): Promise<any>;
|
|
7285
|
+
dailyTxCount({ start_date, end_date }?: {
|
|
7286
|
+
start_date?: string;
|
|
7287
|
+
end_date?: string;
|
|
7288
|
+
}): Promise<postgres.RowList<postgres.Row[]>>;
|
|
7289
|
+
avgDailyTxVolume({ start_date, end_date }?: {
|
|
7290
|
+
start_date?: string;
|
|
7291
|
+
end_date?: string;
|
|
7292
|
+
}): Promise<any>;
|
|
7293
|
+
sumGasFee({ start_date, end_date }?: {
|
|
7294
|
+
start_date?: string;
|
|
7295
|
+
end_date?: string;
|
|
7296
|
+
}): Promise<any>;
|
|
7297
|
+
avgGasFee({ start_date, end_date }?: {
|
|
7298
|
+
start_date?: string;
|
|
7299
|
+
end_date?: string;
|
|
7300
|
+
}): Promise<any>;
|
|
7301
|
+
nodesCount(): Promise<any>;
|
|
7302
|
+
dappsCount(): Promise<any>;
|
|
7303
|
+
totalCrossChainTxCount(): Promise<number>;
|
|
7304
|
+
}
|
|
7255
7305
|
declare const modules$1: {
|
|
7256
7306
|
account: Account;
|
|
7307
|
+
analyzer: Analyzer;
|
|
7257
7308
|
};
|
|
7258
7309
|
export declare const createClient: ({ url }?: {
|
|
7259
7310
|
url?: string;
|
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};
|