@iotexproject/kit 0.1.94 → 0.1.95

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 +13 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import { RouteConfig } from '@asteasolutions/zod-to-openapi';
4
4
  import { BentoCache, bentostore } from 'bentocache';
5
5
  import DataLoader from 'dataloader';
6
6
  import postgres from 'postgres';
7
- import { Sql } from 'postgres';
8
7
  import { PickByValue } from 'utility-types';
9
8
  import { z } from 'zod';
10
9
 
@@ -6936,6 +6935,9 @@ declare class Staking {
6936
6935
  migrateStake(args: {
6937
6936
  bucketIndex: string;
6938
6937
  }, ctx?: ConfigContext): Promise<any>;
6938
+ migrateLegacyBucket(args: {
6939
+ bucketIndex: string;
6940
+ }, ctx?: ConfigContext): Promise<any>;
6939
6941
  getNFTV2BucketsByIndexes(args: {
6940
6942
  token_ids: string[];
6941
6943
  }, ctx?: ConfigContext): Promise<any[]>;
@@ -10368,13 +10370,19 @@ declare class Point {
10368
10370
  }>;
10369
10371
  }
10370
10372
  declare class IoPay$1 {
10371
- sql: postgres.Sql;
10372
- constructor();
10373
- queryTokenPrice({ token, start, end }: {
10374
- token: string;
10373
+ private queryTokenId;
10374
+ queryKlineData(args: {
10375
+ symbol: string;
10375
10376
  start: string;
10376
10377
  end: string;
10377
10378
  }): Promise<any>;
10379
+ queryTokenPrice(args: {
10380
+ symbol: string;
10381
+ }): Promise<any>;
10382
+ queryQuestions({ symbol, lang }: {
10383
+ symbol: string;
10384
+ lang?: string;
10385
+ }): Promise<string[]>;
10378
10386
  }
10379
10387
  declare const modules$4: {
10380
10388
  point: Point;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.1.94",
5
+ "version": "0.1.95",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {