@iotexproject/kit 0.0.66 → 0.0.68
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 +38 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7032,6 +7032,9 @@ declare class Staking {
|
|
|
7032
7032
|
voterAddress: `0x${string}`;
|
|
7033
7033
|
bucketIndex: string;
|
|
7034
7034
|
}): Promise<any>;
|
|
7035
|
+
migrateStake(args: {
|
|
7036
|
+
bucketIndex: string;
|
|
7037
|
+
}): Promise<any>;
|
|
7035
7038
|
getNFTV2BucketsByIndexes(args: {
|
|
7036
7039
|
token_ids: string[];
|
|
7037
7040
|
}): Promise<any[]>;
|
|
@@ -7259,15 +7262,16 @@ declare class ClickHouseSDK {
|
|
|
7259
7262
|
constructor(dbUrl: string);
|
|
7260
7263
|
query(sql: string): Promise<any>;
|
|
7261
7264
|
}
|
|
7262
|
-
declare class
|
|
7265
|
+
declare class BaseDBModule {
|
|
7263
7266
|
analyzer: ReturnType<typeof postgres>;
|
|
7264
7267
|
superbase: ReturnType<typeof postgres>;
|
|
7265
7268
|
iotexscan: ReturnType<typeof postgres>;
|
|
7266
7269
|
iopay: ReturnType<typeof postgres>;
|
|
7270
|
+
nftmarket: ReturnType<typeof postgres>;
|
|
7267
7271
|
ch: ClickHouseSDK;
|
|
7268
7272
|
constructor();
|
|
7269
7273
|
}
|
|
7270
|
-
declare class Account extends
|
|
7274
|
+
declare class Account extends BaseDBModule {
|
|
7271
7275
|
balanceChart({ address, mode }: {
|
|
7272
7276
|
address: string;
|
|
7273
7277
|
mode: "24hr" | "7day";
|
|
@@ -7280,7 +7284,7 @@ declare class Account extends BaseModule {
|
|
|
7280
7284
|
tokens: postgres.RowList<postgres.Row[]>;
|
|
7281
7285
|
}>;
|
|
7282
7286
|
}
|
|
7283
|
-
declare class Analyzer extends
|
|
7287
|
+
declare class Analyzer extends BaseDBModule {
|
|
7284
7288
|
tvl(): Promise<any>;
|
|
7285
7289
|
contractCount(): Promise<any>;
|
|
7286
7290
|
totalStakedIotx(): Promise<any>;
|
|
@@ -7308,9 +7312,40 @@ declare class Analyzer extends BaseModule {
|
|
|
7308
7312
|
dappsCount(): Promise<any>;
|
|
7309
7313
|
totalCrossChainTxCount(): Promise<number>;
|
|
7310
7314
|
}
|
|
7315
|
+
declare class Staking$1 extends BaseDBModule {
|
|
7316
|
+
delegatesByHeight({ height }?: {
|
|
7317
|
+
height?: number;
|
|
7318
|
+
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]>>;
|
|
7319
|
+
bucketByHash({ hash }: {
|
|
7320
|
+
hash: string;
|
|
7321
|
+
}): Promise<import("postgres").Row | null>;
|
|
7322
|
+
}
|
|
7323
|
+
declare class Transaction extends BaseDBModule {
|
|
7324
|
+
getTransactionsCountByAccount({ address }: {
|
|
7325
|
+
address: string;
|
|
7326
|
+
}): Promise<any>;
|
|
7327
|
+
getTransactionsByAccount({ address, pageSize, cursor }: {
|
|
7328
|
+
address: string;
|
|
7329
|
+
pageSize?: number;
|
|
7330
|
+
cursor?: number;
|
|
7331
|
+
}): Promise<{
|
|
7332
|
+
data: import("postgres").RowList<import("postgres").Row[]>;
|
|
7333
|
+
cursor: any;
|
|
7334
|
+
}>;
|
|
7335
|
+
}
|
|
7336
|
+
declare class NFT extends BaseDBModule {
|
|
7337
|
+
getNFTsByAccount({ address, page, pageSize }: {
|
|
7338
|
+
address: string;
|
|
7339
|
+
pageSize?: number;
|
|
7340
|
+
page?: number;
|
|
7341
|
+
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
7342
|
+
}
|
|
7311
7343
|
declare const modules$1: {
|
|
7312
7344
|
account: Account;
|
|
7313
7345
|
analyzer: Analyzer;
|
|
7346
|
+
staking: Staking$1;
|
|
7347
|
+
transaction: Transaction;
|
|
7348
|
+
nft: NFT;
|
|
7314
7349
|
};
|
|
7315
7350
|
export declare const createClient: ({ url }?: {
|
|
7316
7351
|
url?: string;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var G=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}}),H=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}});export{H as createClientWithDBServer,G as createClient};
|