@iotexproject/kit 0.0.62 → 0.0.63
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 +51 -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,12 @@ 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>;
|
|
7074
7082
|
}
|
|
7075
7083
|
declare class utils {
|
|
7076
7084
|
erc20(args: {
|
|
@@ -7236,10 +7244,20 @@ declare const modules: {
|
|
|
7236
7244
|
hub: UseHub;
|
|
7237
7245
|
};
|
|
7238
7246
|
export type ModuleType = typeof modules;
|
|
7239
|
-
declare class
|
|
7240
|
-
private
|
|
7241
|
-
|
|
7247
|
+
declare class ClickHouseSDK {
|
|
7248
|
+
private client;
|
|
7249
|
+
constructor(dbUrl: string);
|
|
7250
|
+
query(sql: string): Promise<any>;
|
|
7251
|
+
}
|
|
7252
|
+
declare class BaseModule {
|
|
7253
|
+
analyzer: ReturnType<typeof postgres>;
|
|
7254
|
+
superbase: ReturnType<typeof postgres>;
|
|
7255
|
+
iotexscan: ReturnType<typeof postgres>;
|
|
7256
|
+
iopay: ReturnType<typeof postgres>;
|
|
7257
|
+
ch: ClickHouseSDK;
|
|
7242
7258
|
constructor();
|
|
7259
|
+
}
|
|
7260
|
+
declare class Account extends BaseModule {
|
|
7243
7261
|
balanceChart({ address, mode }: {
|
|
7244
7262
|
address: string;
|
|
7245
7263
|
mode: "24hr" | "7day";
|
|
@@ -7249,11 +7267,40 @@ declare class Account {
|
|
|
7249
7267
|
getXrc20Tokens({ address }: {
|
|
7250
7268
|
address: string;
|
|
7251
7269
|
}): Promise<{
|
|
7252
|
-
tokens:
|
|
7270
|
+
tokens: postgres.RowList<postgres.Row[]>;
|
|
7253
7271
|
}>;
|
|
7254
7272
|
}
|
|
7273
|
+
declare class Analyzer extends BaseModule {
|
|
7274
|
+
tvl(): Promise<any>;
|
|
7275
|
+
contractCount(): Promise<any>;
|
|
7276
|
+
totalStakedIotx(): Promise<any>;
|
|
7277
|
+
activeWalletCount({ start_date, end_date }?: {
|
|
7278
|
+
start_date?: string;
|
|
7279
|
+
end_date?: string;
|
|
7280
|
+
}): Promise<any>;
|
|
7281
|
+
dailyTxCount({ start_date, end_date }?: {
|
|
7282
|
+
start_date?: string;
|
|
7283
|
+
end_date?: string;
|
|
7284
|
+
}): Promise<postgres.RowList<postgres.Row[]>>;
|
|
7285
|
+
avgDailyTxVolume({ start_date, end_date }?: {
|
|
7286
|
+
start_date?: string;
|
|
7287
|
+
end_date?: string;
|
|
7288
|
+
}): Promise<any>;
|
|
7289
|
+
sumGasFee({ start_date, end_date }?: {
|
|
7290
|
+
start_date?: string;
|
|
7291
|
+
end_date?: string;
|
|
7292
|
+
}): Promise<any>;
|
|
7293
|
+
avgGasFee({ start_date, end_date }?: {
|
|
7294
|
+
start_date?: string;
|
|
7295
|
+
end_date?: string;
|
|
7296
|
+
}): Promise<any>;
|
|
7297
|
+
nodesCount(): Promise<any>;
|
|
7298
|
+
dappsCount(): Promise<any>;
|
|
7299
|
+
totalCrossChainTxCount(): Promise<number>;
|
|
7300
|
+
}
|
|
7255
7301
|
declare const modules$1: {
|
|
7256
7302
|
account: Account;
|
|
7303
|
+
analyzer: Analyzer;
|
|
7257
7304
|
};
|
|
7258
7305
|
export declare const createClient: ({ url }?: {
|
|
7259
7306
|
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};
|