@iotexproject/kit 0.2.15 → 0.2.16

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 +30 -37
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7115,6 +7115,34 @@ declare class UseHub {
7115
7115
  assets(): Promise<any[] | {
7116
7116
  error: unknown;
7117
7117
  }>;
7118
+ forwardService(args: {
7119
+ owner: `0x${string}`;
7120
+ }): Promise<{
7121
+ nonce: string;
7122
+ destination: string;
7123
+ startEpoch: string;
7124
+ error?: undefined;
7125
+ } | {
7126
+ error: unknown;
7127
+ nonce?: undefined;
7128
+ destination?: undefined;
7129
+ startEpoch?: undefined;
7130
+ }>;
7131
+ registerForwardService(args: {
7132
+ owner: `0x${string}`;
7133
+ nonce: string;
7134
+ startEpoch: string;
7135
+ signature: `0x${string}`;
7136
+ }): Promise<`0x${string}` | {
7137
+ error: unknown;
7138
+ }>;
7139
+ deregisterForwardService(args: {
7140
+ owner: `0x${string}`;
7141
+ nonce: string;
7142
+ signature: `0x${string}`;
7143
+ }): Promise<`0x${string}` | {
7144
+ error: unknown;
7145
+ }>;
7118
7146
  tokenBalance(args: {
7119
7147
  address: `0x${string}`;
7120
7148
  tokenAddress: `0x${string}`;
@@ -7127,12 +7155,6 @@ declare class UseHub {
7127
7155
  error: unknown;
7128
7156
  }>;
7129
7157
  }
7130
- declare class Health {
7131
- check(): {
7132
- status: boolean;
7133
- message: string;
7134
- };
7135
- }
7136
7158
  declare class PointsPlatform {
7137
7159
  userPoints(args: {
7138
7160
  user: string;
@@ -8589,7 +8611,6 @@ declare const modules: {
8589
8611
  msp: MSP;
8590
8612
  utils: utils;
8591
8613
  hub: UseHub;
8592
- health: Health;
8593
8614
  points: PointsPlatform;
8594
8615
  bondingcurve: BondingCurve;
8595
8616
  liquidityMining: LiquidityMining;
@@ -8875,28 +8896,6 @@ declare class Resource {
8875
8896
  id: ComponentType;
8876
8897
  }): Promise<ComponentData>;
8877
8898
  }
8878
- export type PushRegisterProps = {
8879
- address: string;
8880
- deviceToken?: string;
8881
- name?: string;
8882
- registerPushNotification: boolean;
8883
- platform: string;
8884
- deviceId?: string;
8885
- };
8886
- export type TopicNewsletterRegisterProps = {
8887
- deviceToken: string;
8888
- news_push: boolean;
8889
- platform?: string;
8890
- };
8891
- declare class IoPay extends BaseDBModule {
8892
- get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
8893
- get_point_task_tg(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
8894
- pushRegister(args: PushRegisterProps): Promise<any>;
8895
- topicNewsletterRegister(args: TopicNewsletterRegisterProps): Promise<any>;
8896
- updateNewsletterTopic({ deviceToken, news_push }: any): void;
8897
- registerNewsletterTopic(deviceToken: string): void;
8898
- unregisterNewsletterTopic(deviceToken: string): void;
8899
- }
8900
8899
  declare class Mimo$1 extends BaseDBModule {
8901
8900
  metrics(): Promise<{
8902
8901
  totalVolumeUSD: any;
@@ -9159,9 +9158,6 @@ export type ProposalListItemV2 = {
9159
9158
  title: string | null;
9160
9159
  creator?: string | null;
9161
9160
  status: string | null;
9162
- repo_status: string | null;
9163
- created_at: string;
9164
- updated_at: string;
9165
9161
  end_time?: string | null;
9166
9162
  start_time?: string | null;
9167
9163
  slug: string;
@@ -9738,10 +9734,8 @@ declare const modules$1: {
9738
9734
  staking: Staking$1;
9739
9735
  transaction: Transaction;
9740
9736
  nft: NFT;
9741
- health: Health;
9742
9737
  contract: Contract;
9743
9738
  resource: Resource;
9744
- iopay: IoPay;
9745
9739
  mimo: Mimo$1;
9746
9740
  "mimo-swap-bridge": MimoSwapBridge;
9747
9741
  galxe: Galxe;
@@ -10966,7 +10960,7 @@ export type UserFeedBackParams = {
10966
10960
  version: string;
10967
10961
  platform: string;
10968
10962
  };
10969
- declare class IoPay$1 extends Auth {
10963
+ declare class IoPay extends Auth {
10970
10964
  private queryTokenFromDB;
10971
10965
  queryKlineData(args: {
10972
10966
  id: string;
@@ -11025,8 +11019,7 @@ declare class IoPay$1 extends Auth {
11025
11019
  }
11026
11020
  declare const modules$4: {
11027
11021
  point: Point;
11028
- health: Health;
11029
- iopay: IoPay$1;
11022
+ iopay: IoPay;
11030
11023
  };
11031
11024
  export type IoPayModuleType = typeof modules$4;
11032
11025
  export type IotexscanAdapterType<T extends Record<string, Record<string, any>>> = {
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.2.15",
5
+ "version": "0.2.16",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {