@iotexproject/kit 0.1.94 → 0.1.96

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 +22 -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,18 @@ declare class Staking {
6936
6935
  migrateStake(args: {
6937
6936
  bucketIndex: string;
6938
6937
  }, ctx?: ConfigContext): Promise<any>;
6938
+ /**
6939
+ * Approve the nftV3StakingContractAddress to transfer the bucket
6940
+ * @param args
6941
+ * @param ctx
6942
+ * @returns approve
6943
+ */
6944
+ migrateLegacyBucketApprove(args: {
6945
+ bucketIndex: string;
6946
+ }, ctx?: ConfigContext): Promise<any>;
6947
+ migrateLegacyBucket(args: {
6948
+ bucketIndex: string;
6949
+ }, ctx?: ConfigContext): Promise<any>;
6939
6950
  getNFTV2BucketsByIndexes(args: {
6940
6951
  token_ids: string[];
6941
6952
  }, ctx?: ConfigContext): Promise<any[]>;
@@ -10368,13 +10379,19 @@ declare class Point {
10368
10379
  }>;
10369
10380
  }
10370
10381
  declare class IoPay$1 {
10371
- sql: postgres.Sql;
10372
- constructor();
10373
- queryTokenPrice({ token, start, end }: {
10374
- token: string;
10382
+ private queryTokenId;
10383
+ queryKlineData(args: {
10384
+ symbol: string;
10375
10385
  start: string;
10376
10386
  end: string;
10377
10387
  }): Promise<any>;
10388
+ queryTokenPrice(args: {
10389
+ symbol: string;
10390
+ }): Promise<any>;
10391
+ queryQuestions({ symbol, lang }: {
10392
+ symbol: string;
10393
+ lang?: string;
10394
+ }): Promise<string[]>;
10378
10395
  }
10379
10396
  declare const modules$4: {
10380
10397
  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.96",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {