@iotexproject/kit 0.0.27 → 0.0.28

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 +39 -17
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -6723,17 +6723,11 @@ declare class LSTStrategyEntity {
6723
6723
  transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6724
6724
  }
6725
6725
  declare class MSP {
6726
- mockBucket(): Promise<{
6727
- data: any;
6728
- address: string;
6729
- }>;
6726
+ mockBucket(): Promise<any>;
6730
6727
  mockLST(args: {
6731
6728
  lstTokenAddress: string;
6732
6729
  account: `0x${string}`;
6733
- }): Promise<{
6734
- data: any;
6735
- address: string;
6736
- }>;
6730
+ }): Promise<any>;
6737
6731
  myBucketsAndLSTs(args: {
6738
6732
  account: `0x${string}`;
6739
6733
  }): Promise<{
@@ -6832,10 +6826,6 @@ declare class MSP {
6832
6826
  amount: false | [
6833
6827
  `0x${string}`
6834
6828
  ];
6835
- MockLST: {
6836
- name: true;
6837
- symbol: true;
6838
- };
6839
6829
  }>[];
6840
6830
  }>;
6841
6831
  stakeBucket(args: {
@@ -6976,6 +6966,11 @@ declare class utils {
6976
6966
  ];
6977
6967
  }>>;
6978
6968
  }
6969
+ export interface DappCategory {
6970
+ id: number;
6971
+ name: string;
6972
+ order: number;
6973
+ }
6979
6974
  export interface Dapp {
6980
6975
  id: string;
6981
6976
  chains: string;
@@ -6989,12 +6984,40 @@ export interface Dapp {
6989
6984
  url: string;
6990
6985
  weight: number;
6991
6986
  }
6992
- declare class Explore {
6993
- dapps(): Promise<Dapp[] | any>;
6994
- dappCategorys(): Promise<any>;
6995
- }
6996
6987
  declare class UseHub {
6988
+ constructor();
6997
6989
  userDashboard(): Promise<void>;
6990
+ assets(args: {
6991
+ address: `0x${string}`;
6992
+ }): Promise<{
6993
+ tokens: any[];
6994
+ totalValueOrigin: any;
6995
+ totalValueFormat: string;
6996
+ error?: undefined;
6997
+ } | {
6998
+ error: unknown;
6999
+ tokens?: undefined;
7000
+ totalValueOrigin?: undefined;
7001
+ totalValueFormat?: undefined;
7002
+ }>;
7003
+ tokenBalance(args: {
7004
+ address: `0x${string}`;
7005
+ tokenAddress: `0x${string}`;
7006
+ }): Promise<{
7007
+ value: string;
7008
+ format: string;
7009
+ originFormat: string;
7010
+ decimals: string;
7011
+ isZero: boolean;
7012
+ } | {
7013
+ error: unknown;
7014
+ }>;
7015
+ explore(): Promise<{
7016
+ dappList: Dapp[];
7017
+ dappCategory: DappCategory[];
7018
+ } | {
7019
+ error: any;
7020
+ }>;
6998
7021
  }
6999
7022
  declare const modules: {
7000
7023
  mimo: Mimo;
@@ -7003,7 +7026,6 @@ declare const modules: {
7003
7026
  ioid: IoID;
7004
7027
  msp: MSP;
7005
7028
  utils: utils;
7006
- explore: Explore;
7007
7029
  hub: UseHub;
7008
7030
  };
7009
7031
  export type ModuleType = typeof modules;
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.0.27",
5
+ "version": "v0.0.28",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "viem": "^2.17.5"
29
29
  },
30
30
  "devDependencies": {
31
- "@dappworks/kit": "0.4.137",
31
+ "@dappworks/kit": "0.4.138",
32
32
  "@types/bun": "latest",
33
33
  "bun-plugin-dts": "^0.2.3",
34
34
  "hono": "^4.4.11",