@iotexproject/kit 0.1.53 → 0.1.55

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 +15 -78
  2. package/package.json +2 -6
package/dist/index.d.ts CHANGED
@@ -6603,84 +6603,11 @@ declare class MSP {
6603
6603
  rewards: number;
6604
6604
  rewardsUSD: number;
6605
6605
  };
6606
- totalLstRewards: {
6606
+ totalErc20Rewards: {
6607
6607
  rewards: number;
6608
6608
  rewardsUSD: number;
6609
6609
  };
6610
6610
  } | null>;
6611
- myBucketList(args: {
6612
- account?: `0x${string}`;
6613
- }, ctx?: ConfigContext): Promise<{
6614
- bucketId: number;
6615
- owner: `0x${string}`;
6616
- address: `0x${string}`;
6617
- chainId: string;
6618
- MockBucket: import("@dappworks/kit/aiem").QueryReturnType<MockBucketEntity, {
6619
- name: true;
6620
- }>;
6621
- pendingRewards: {
6622
- value: string;
6623
- format: string;
6624
- originFormat: string;
6625
- decimals: string;
6626
- };
6627
- bucketAmount: {
6628
- value: string;
6629
- format: string;
6630
- originFormat: string;
6631
- decimals: string;
6632
- };
6633
- stakeStatus: any;
6634
- totalAmount: () => Promise<any>;
6635
- unstakeTime: any;
6636
- bucketStaker: (_: string) => Promise<any>;
6637
- withdrawTime: any;
6638
- pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
6639
- stakerBuckets: (staker: `0x${string}`) => Promise<any>;
6640
- remainingReward: (_: `0x${string}`) => Promise<any>;
6641
- strategyManager: () => Promise<any>;
6642
- underlyingToken: () => Promise<any>;
6643
- IOTX_REWARD_TOKEN: () => Promise<any>;
6644
- accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
6645
- calculateBucketRestakeAmount: (_duration: string, _amount: string) => Promise<any>;
6646
- poke: (bucketId: string) => Promise<any>;
6647
- stake: (bucketId: string) => Promise<any>;
6648
- deposit: (bucketId: string) => Promise<any>;
6649
- unstake: (bucketIds: any[]) => Promise<any>;
6650
- withdraw: (bucketIds: any[], recipient: `0x${string}`) => Promise<any>;
6651
- claimReward: () => Promise<any>;
6652
- renounceOwnership: () => Promise<any>;
6653
- transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6654
- }[]>;
6655
- myRestakeERC20List(args: {
6656
- account?: `0x${string}`;
6657
- }, ctx?: ConfigContext): Promise<{
6658
- ERC20StrategyAddress: `0x${string}`;
6659
- address: `0x${string}`;
6660
- chainId: string;
6661
- isEther: boolean;
6662
- type: () => Promise<string>;
6663
- totalSupply: number;
6664
- name: string;
6665
- symbol: string;
6666
- decimals: () => Promise<number | undefined>;
6667
- balanceOf: {
6668
- value: string;
6669
- format: string;
6670
- originFormat: string;
6671
- decimals: string;
6672
- };
6673
- balanceUSD: (account?: `0x${string}`) => Promise<string | {
6674
- value: string;
6675
- format: string;
6676
- originFormat: string;
6677
- decimals: string;
6678
- }>;
6679
- allowance: (owner: string, spender: string) => Promise<any>;
6680
- approve: (spender: `0x${string}`, amount: string, owner: `0x${string}`) => Promise<`0x${string}` | null>;
6681
- priceUSD: () => Promise<any>;
6682
- tokenUrl: () => Promise<any>;
6683
- }[]>;
6684
6611
  myStakedBucketList(args: {
6685
6612
  account?: `0x${string}`;
6686
6613
  }, ctx?: ConfigContext): Promise<{
@@ -6725,13 +6652,19 @@ declare class MSP {
6725
6652
  renounceOwnership: () => Promise<any>;
6726
6653
  transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6727
6654
  }[]>;
6728
- RestakeERC20List(args: {
6655
+ restakeERC20List(args: {
6729
6656
  account?: `0x${string}`;
6730
6657
  }, ctx?: ConfigContext): Promise<{
6731
6658
  ERC20StrategyAddress: `0x${string}`;
6732
6659
  address: `0x${string}`;
6733
6660
  chainId: string;
6734
- Token: ERC20Entity;
6661
+ Token: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
6662
+ name: true;
6663
+ symbol: true;
6664
+ balanceOf: false | [
6665
+ `0x${string}`
6666
+ ];
6667
+ }>;
6735
6668
  pendingRewards: {
6736
6669
  value: string;
6737
6670
  format: string;
@@ -6752,7 +6685,7 @@ declare class MSP {
6752
6685
  };
6753
6686
  amountUSD: number;
6754
6687
  };
6755
- totalAmount: () => Promise<{
6688
+ totalAmount: {
6756
6689
  totalAmount: {
6757
6690
  value: string;
6758
6691
  format: string;
@@ -6760,7 +6693,7 @@ declare class MSP {
6760
6693
  decimals: string;
6761
6694
  };
6762
6695
  totalAmountUSD: number;
6763
- }>;
6696
+ };
6764
6697
  owner: () => Promise<any>;
6765
6698
  unstakeTime: (_: `0x${string}`) => Promise<any>;
6766
6699
  withdrawTime: (staker: `0x${string}`) => Promise<any>;
@@ -6780,6 +6713,7 @@ declare class MSP {
6780
6713
  }[]>;
6781
6714
  restakeBucket(args: {
6782
6715
  bucketId: string;
6716
+ contractAddress: `0x${string}`;
6783
6717
  }, ctx?: ConfigContext): Promise<{
6784
6718
  data: any;
6785
6719
  address: `0x${string}`;
@@ -8630,6 +8564,9 @@ declare class IoPay extends BaseDBModule {
8630
8564
  get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
8631
8565
  pushRegister(args: PushRegisterProps): Promise<any>;
8632
8566
  topicNewsletterRegister(args: TopicNewsletterRegisterProps): Promise<any>;
8567
+ updateNewsletterTopic({ deviceToken, news_push }: any): void;
8568
+ registerNewsletterTopic(deviceToken: string): void;
8569
+ unregisterNewsletterTopic(deviceToken: string): void;
8633
8570
  }
8634
8571
  declare class Mimo$1 extends BaseDBModule {
8635
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.53",
5
+ "version": "v0.1.55",
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
  },