@iotexproject/kit 0.1.54 → 0.1.56

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 +9 -6
  2. package/package.json +2 -6
package/dist/index.d.ts CHANGED
@@ -6664,6 +6664,7 @@ declare class MSP {
6664
6664
  balanceOf: false | [
6665
6665
  `0x${string}`
6666
6666
  ];
6667
+ tokenUrl: true;
6667
6668
  }>;
6668
6669
  pendingRewards: {
6669
6670
  value: string;
@@ -6685,7 +6686,7 @@ declare class MSP {
6685
6686
  };
6686
6687
  amountUSD: number;
6687
6688
  };
6688
- totalAmount: () => Promise<{
6689
+ totalAmount: {
6689
6690
  totalAmount: {
6690
6691
  value: string;
6691
6692
  format: string;
@@ -6693,7 +6694,7 @@ declare class MSP {
6693
6694
  decimals: string;
6694
6695
  };
6695
6696
  totalAmountUSD: number;
6696
- }>;
6697
+ };
6697
6698
  owner: () => Promise<any>;
6698
6699
  unstakeTime: (_: `0x${string}`) => Promise<any>;
6699
6700
  withdrawTime: (staker: `0x${string}`) => Promise<any>;
@@ -6716,11 +6717,10 @@ declare class MSP {
6716
6717
  contractAddress: `0x${string}`;
6717
6718
  }, ctx?: ConfigContext): Promise<{
6718
6719
  data: any;
6719
- address: `0x${string}`;
6720
- approve: any;
6721
- approveAddress: string;
6720
+ address: string;
6722
6721
  chainId: string;
6723
- }>;
6722
+ type: string;
6723
+ }[]>;
6724
6724
  unStakeBucket(args: {
6725
6725
  bucketIds: string[];
6726
6726
  }, ctx?: ConfigContext): Promise<{
@@ -8564,6 +8564,9 @@ declare class IoPay extends BaseDBModule {
8564
8564
  get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
8565
8565
  pushRegister(args: PushRegisterProps): Promise<any>;
8566
8566
  topicNewsletterRegister(args: TopicNewsletterRegisterProps): Promise<any>;
8567
+ updateNewsletterTopic({ deviceToken, news_push }: any): void;
8568
+ registerNewsletterTopic(deviceToken: string): void;
8569
+ unregisterNewsletterTopic(deviceToken: string): void;
8567
8570
  }
8568
8571
  declare class Mimo$1 extends BaseDBModule {
8569
8572
  metrics(): Promise<{
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.1.54",
5
+ "version": "v0.1.56",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -13,9 +13,7 @@
13
13
  "test": "bun --hot run tests/test-marshalldao.ts",
14
14
  "build": "bun run build.mjs",
15
15
  "prepublishOnly": "bun run build",
16
- "gen:grpc": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --ts_out=grpc_js:./lib/grpc/generated -I ./lib/grpc/protos ./lib/grpc/protos/*.proto",
17
- "generate-prisma": "prisma generate --schema=./prisma/schema.prisma",
18
- "dev-db-with-prisma": "bun generate-prisma && bun server-db.ts"
16
+ "gen:grpc": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --ts_out=grpc_js:./lib/grpc/generated -I ./lib/grpc/protos ./lib/grpc/protos/*.proto"
19
17
  },
20
18
  "files": [
21
19
  "dist"
@@ -27,7 +25,6 @@
27
25
  "@grpc/proto-loader": "^0.7.13",
28
26
  "@iotexproject/iotex-address-ts": "^1.0.4",
29
27
  "@noble/curves": "^1.6.0",
30
- "@prisma/client": "^5.21.1",
31
28
  "@tryghost/content-api": "^1.11.21",
32
29
  "@types/bn.js": "^5.1.6",
33
30
  "@types/utf8": "^3.0.3",
@@ -74,7 +71,6 @@
74
71
  "grpc-tools": "^1.12.4",
75
72
  "grpc_tools_node_protoc_ts": "^5.3.3",
76
73
  "hono": "^4.4.11",
77
- "prisma": "^5.21.1",
78
74
  "protoc-gen-ts": "^0.8.7",
79
75
  "typescript": "^5.5.4"
80
76
  },