@iotexproject/kit 0.0.26 → 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 +37 -9
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -6826,10 +6826,6 @@ declare class MSP {
6826
6826
  amount: false | [
6827
6827
  `0x${string}`
6828
6828
  ];
6829
- MockLST: {
6830
- name: true;
6831
- symbol: true;
6832
- };
6833
6829
  }>[];
6834
6830
  }>;
6835
6831
  stakeBucket(args: {
@@ -6970,6 +6966,11 @@ declare class utils {
6970
6966
  ];
6971
6967
  }>>;
6972
6968
  }
6969
+ export interface DappCategory {
6970
+ id: number;
6971
+ name: string;
6972
+ order: number;
6973
+ }
6973
6974
  export interface Dapp {
6974
6975
  id: string;
6975
6976
  chains: string;
@@ -6983,12 +6984,40 @@ export interface Dapp {
6983
6984
  url: string;
6984
6985
  weight: number;
6985
6986
  }
6986
- declare class Explore {
6987
- dapps(): Promise<Dapp[] | any>;
6988
- dappCategorys(): Promise<any>;
6989
- }
6990
6987
  declare class UseHub {
6988
+ constructor();
6991
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
+ }>;
6992
7021
  }
6993
7022
  declare const modules: {
6994
7023
  mimo: Mimo;
@@ -6997,7 +7026,6 @@ declare const modules: {
6997
7026
  ioid: IoID;
6998
7027
  msp: MSP;
6999
7028
  utils: utils;
7000
- explore: Explore;
7001
7029
  hub: UseHub;
7002
7030
  };
7003
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.26",
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",