@iotexproject/kit 0.2.14 → 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 +54 -43
  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;
@@ -9121,11 +9120,16 @@ export type ProposalV2 = {
9121
9120
  iip_number: number | null;
9122
9121
  title: string | null;
9123
9122
  slug: string;
9123
+ creator?: string | null;
9124
9124
  content: string;
9125
+ status: string | null;
9125
9126
  repo_status: string | null;
9126
9127
  governance_status: string | null;
9127
9128
  created_at: string;
9128
9129
  updated_at: string;
9130
+ start_time?: string | null;
9131
+ end_time?: string | null;
9132
+ is_draft?: boolean;
9129
9133
  created_date: string | null;
9130
9134
  synced_at: string;
9131
9135
  authors: string | null;
@@ -9142,13 +9146,25 @@ export type ProposalV2 = {
9142
9146
  no_vote_weight?: number | null;
9143
9147
  abstain_vote_count?: number | null;
9144
9148
  abstain_vote_weight?: number | null;
9145
- start_time?: string | null;
9146
- end_time?: string | null;
9147
9149
  votes?: Vote[];
9148
9150
  currentUser?: CurrentUser;
9149
9151
  vote_count?: string | null;
9150
9152
  vote_result?: "passed" | "rejected" | "closed" | null;
9151
9153
  };
9154
+ export type ProposalListItemV2 = {
9155
+ id: number | null;
9156
+ iip_number: number | null;
9157
+ iip_key: string;
9158
+ title: string | null;
9159
+ creator?: string | null;
9160
+ status: string | null;
9161
+ end_time?: string | null;
9162
+ start_time?: string | null;
9163
+ slug: string;
9164
+ vote_count?: string | null;
9165
+ proposal_id?: number | null;
9166
+ vote_result?: "passed" | "rejected" | "closed" | null;
9167
+ };
9152
9168
  export type IipProposalForVote = {
9153
9169
  id: number;
9154
9170
  iip_number: number;
@@ -9210,13 +9226,14 @@ declare class Dao extends BaseDBModule {
9210
9226
  proposal_title?: string;
9211
9227
  }): Promise<import("postgres").RowList<import("postgres").Row[]>>;
9212
9228
  createProposal(args: {
9229
+ iip_number: number;
9213
9230
  title: string;
9214
9231
  content: string;
9215
9232
  message: string;
9216
9233
  signature: string;
9217
9234
  start_time: string;
9218
9235
  end_time: string;
9219
- }): Promise<import("postgres").RowList<import("postgres").Row[]>>;
9236
+ }): Promise<import("postgres").Row>;
9220
9237
  syncProposal(args?: {
9221
9238
  payload?: Record<string, any>;
9222
9239
  deliveryId?: string;
@@ -9268,18 +9285,15 @@ declare class Dao extends BaseDBModule {
9268
9285
  page: number;
9269
9286
  pageSize: number;
9270
9287
  }): Promise<{
9271
- data: ProposalV2[] & Iterable<ProposalV2> & import("postgres").ResultQueryMeta<number, keyof ProposalV2>;
9288
+ data: ProposalListItemV2[] & Iterable<ProposalListItemV2> & import("postgres").ResultQueryMeta<number, keyof ProposalListItemV2>;
9272
9289
  total: number;
9273
9290
  }>;
9274
9291
  getProposalListV2(args: {
9275
- governanceStatus?: string;
9276
- repoStatus?: string;
9277
- orderBy?: string;
9278
- order?: string;
9292
+ status?: string;
9279
9293
  page?: number;
9280
9294
  pageSize?: number;
9281
9295
  }): Promise<{
9282
- data: ProposalV2[] & Iterable<ProposalV2> & import("postgres").ResultQueryMeta<number, keyof ProposalV2>;
9296
+ data: ProposalListItemV2[] & Iterable<ProposalListItemV2> & import("postgres").ResultQueryMeta<number, keyof ProposalListItemV2>;
9283
9297
  total: number;
9284
9298
  }>;
9285
9299
  getVotesByProposalIdV2({ proposal_id, iip_number, }: {
@@ -9720,10 +9734,8 @@ declare const modules$1: {
9720
9734
  staking: Staking$1;
9721
9735
  transaction: Transaction;
9722
9736
  nft: NFT;
9723
- health: Health;
9724
9737
  contract: Contract;
9725
9738
  resource: Resource;
9726
- iopay: IoPay;
9727
9739
  mimo: Mimo$1;
9728
9740
  "mimo-swap-bridge": MimoSwapBridge;
9729
9741
  galxe: Galxe;
@@ -10948,7 +10960,7 @@ export type UserFeedBackParams = {
10948
10960
  version: string;
10949
10961
  platform: string;
10950
10962
  };
10951
- declare class IoPay$1 extends Auth {
10963
+ declare class IoPay extends Auth {
10952
10964
  private queryTokenFromDB;
10953
10965
  queryKlineData(args: {
10954
10966
  id: string;
@@ -11007,8 +11019,7 @@ declare class IoPay$1 extends Auth {
11007
11019
  }
11008
11020
  declare const modules$4: {
11009
11021
  point: Point;
11010
- health: Health;
11011
- iopay: IoPay$1;
11022
+ iopay: IoPay;
11012
11023
  };
11013
11024
  export type IoPayModuleType = typeof modules$4;
11014
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.14",
5
+ "version": "0.2.16",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {