@iotexproject/kit 0.0.66 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -3
  2. 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,7 +7262,7 @@ declare class ClickHouseSDK {
7259
7262
  constructor(dbUrl: string);
7260
7263
  query(sql: string): Promise<any>;
7261
7264
  }
7262
- declare class BaseModule {
7265
+ declare class BaseDBModule {
7263
7266
  analyzer: ReturnType<typeof postgres>;
7264
7267
  superbase: ReturnType<typeof postgres>;
7265
7268
  iotexscan: ReturnType<typeof postgres>;
@@ -7267,7 +7270,7 @@ declare class BaseModule {
7267
7270
  ch: ClickHouseSDK;
7268
7271
  constructor();
7269
7272
  }
7270
- declare class Account extends BaseModule {
7273
+ declare class Account extends BaseDBModule {
7271
7274
  balanceChart({ address, mode }: {
7272
7275
  address: string;
7273
7276
  mode: "24hr" | "7day";
@@ -7280,7 +7283,7 @@ declare class Account extends BaseModule {
7280
7283
  tokens: postgres.RowList<postgres.Row[]>;
7281
7284
  }>;
7282
7285
  }
7283
- declare class Analyzer extends BaseModule {
7286
+ declare class Analyzer extends BaseDBModule {
7284
7287
  tvl(): Promise<any>;
7285
7288
  contractCount(): Promise<any>;
7286
7289
  totalStakedIotx(): Promise<any>;
@@ -7308,9 +7311,18 @@ declare class Analyzer extends BaseModule {
7308
7311
  dappsCount(): Promise<any>;
7309
7312
  totalCrossChainTxCount(): Promise<number>;
7310
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
+ }
7311
7322
  declare const modules$1: {
7312
7323
  account: Account;
7313
7324
  analyzer: Analyzer;
7325
+ staking: Staking$1;
7314
7326
  };
7315
7327
  export declare const createClient: ({ url }?: {
7316
7328
  url?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.66",
5
+ "version": "v0.0.67",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {