@iotexproject/kit 0.0.65 → 0.0.67
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 +16 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7000,6 +7000,7 @@ export interface Bucket {
|
|
|
7000
7000
|
createBlockHeight: bigint;
|
|
7001
7001
|
stakeStartBlockHeight: bigint;
|
|
7002
7002
|
unstakeStartBlockHeight: bigint;
|
|
7003
|
+
isSelfStakingBucket: boolean;
|
|
7003
7004
|
}
|
|
7004
7005
|
declare class Staking {
|
|
7005
7006
|
compositeBucketsByVoter(args: {
|
|
@@ -7031,6 +7032,9 @@ declare class Staking {
|
|
|
7031
7032
|
voterAddress: `0x${string}`;
|
|
7032
7033
|
bucketIndex: string;
|
|
7033
7034
|
}): Promise<any>;
|
|
7035
|
+
migrateStake(args: {
|
|
7036
|
+
bucketIndex: string;
|
|
7037
|
+
}): Promise<any>;
|
|
7034
7038
|
getNFTV2BucketsByIndexes(args: {
|
|
7035
7039
|
token_ids: string[];
|
|
7036
7040
|
}): Promise<any[]>;
|
|
@@ -7258,7 +7262,7 @@ declare class ClickHouseSDK {
|
|
|
7258
7262
|
constructor(dbUrl: string);
|
|
7259
7263
|
query(sql: string): Promise<any>;
|
|
7260
7264
|
}
|
|
7261
|
-
declare class
|
|
7265
|
+
declare class BaseDBModule {
|
|
7262
7266
|
analyzer: ReturnType<typeof postgres>;
|
|
7263
7267
|
superbase: ReturnType<typeof postgres>;
|
|
7264
7268
|
iotexscan: ReturnType<typeof postgres>;
|
|
@@ -7266,7 +7270,7 @@ declare class BaseModule {
|
|
|
7266
7270
|
ch: ClickHouseSDK;
|
|
7267
7271
|
constructor();
|
|
7268
7272
|
}
|
|
7269
|
-
declare class Account extends
|
|
7273
|
+
declare class Account extends BaseDBModule {
|
|
7270
7274
|
balanceChart({ address, mode }: {
|
|
7271
7275
|
address: string;
|
|
7272
7276
|
mode: "24hr" | "7day";
|
|
@@ -7279,7 +7283,7 @@ declare class Account extends BaseModule {
|
|
|
7279
7283
|
tokens: postgres.RowList<postgres.Row[]>;
|
|
7280
7284
|
}>;
|
|
7281
7285
|
}
|
|
7282
|
-
declare class Analyzer extends
|
|
7286
|
+
declare class Analyzer extends BaseDBModule {
|
|
7283
7287
|
tvl(): Promise<any>;
|
|
7284
7288
|
contractCount(): Promise<any>;
|
|
7285
7289
|
totalStakedIotx(): Promise<any>;
|
|
@@ -7307,9 +7311,18 @@ declare class Analyzer extends BaseModule {
|
|
|
7307
7311
|
dappsCount(): Promise<any>;
|
|
7308
7312
|
totalCrossChainTxCount(): Promise<number>;
|
|
7309
7313
|
}
|
|
7314
|
+
declare class Staking$1 extends BaseDBModule {
|
|
7315
|
+
delegatesByHeight({ height }?: {
|
|
7316
|
+
height?: number;
|
|
7317
|
+
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]>>;
|
|
7318
|
+
bucketByHash({ hash }: {
|
|
7319
|
+
hash: string;
|
|
7320
|
+
}): Promise<import("postgres").Row | null>;
|
|
7321
|
+
}
|
|
7310
7322
|
declare const modules$1: {
|
|
7311
7323
|
account: Account;
|
|
7312
7324
|
analyzer: Analyzer;
|
|
7325
|
+
staking: Staking$1;
|
|
7313
7326
|
};
|
|
7314
7327
|
export declare const createClient: ({ url }?: {
|
|
7315
7328
|
url?: string;
|