@iotexproject/kit 0.0.34 → 0.0.35

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.
package/dist/index.d.ts CHANGED
@@ -6985,6 +6985,34 @@ declare class utils {
6985
6985
  ];
6986
6986
  }>>;
6987
6987
  }
6988
+ export interface IoTexMarketData {
6989
+ id: string;
6990
+ symbol: string;
6991
+ name: string;
6992
+ image: string;
6993
+ current_price: number;
6994
+ market_cap: number;
6995
+ market_cap_rank: number;
6996
+ fully_diluted_valuation: number;
6997
+ total_volume: number;
6998
+ high_24h: number;
6999
+ low_24h: number;
7000
+ price_change_24h: number;
7001
+ price_change_percentage_24h: number;
7002
+ market_cap_change_24h: number;
7003
+ market_cap_change_percentage_24h: number;
7004
+ circulating_supply: number;
7005
+ total_supply: number;
7006
+ max_supply: number;
7007
+ ath: number;
7008
+ ath_change_percentage: number;
7009
+ ath_date: string;
7010
+ atl: number;
7011
+ atl_change_percentage: number;
7012
+ atl_date: string;
7013
+ roi?: any;
7014
+ last_updated: string;
7015
+ }
6988
7016
  export interface DappCategory {
6989
7017
  id: number;
6990
7018
  name: string;
@@ -7021,7 +7049,9 @@ declare class UseHub {
7021
7049
  stakingRewardHistory?: undefined;
7022
7050
  stakingRewardSum?: undefined;
7023
7051
  }>;
7024
- userDashboard(): Promise<void>;
7052
+ userDashboard(): Promise<{
7053
+ blogs: import("@tryghost/content-api").PostsOrPages;
7054
+ }>;
7025
7055
  assets(): Promise<any[] | {
7026
7056
  error: unknown;
7027
7057
  }>;
@@ -7040,6 +7070,7 @@ declare class UseHub {
7040
7070
  explore(): Promise<{
7041
7071
  dappList: Dapp[];
7042
7072
  dappCategory: DappCategory[];
7073
+ marketData: IoTexMarketData;
7043
7074
  } | {
7044
7075
  error: any;
7045
7076
  }>;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var D=({url:b="http://localhost:9527"}={})=>new Proxy({},{get(v,c,z){return new Proxy({},{get(B,j){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const q=`${b}/${String(c)}/${String(j)}?${new URLSearchParams(f).toString()}`;return(await fetch(q)).json()}}})}});export{D as createClient};
1
+ var q=({url:j="http://localhost:9527"}={})=>new Proxy({},{get(R,o,T){return new Proxy({},{get(b,x){return async(i)=>{for(let f in i)if(Array.isArray(i[f]))i[f]=JSON.stringify(i[f]);const M=`${j}/${String(o)}/${String(x)}?${new URLSearchParams(i).toString()}`;return(await fetch(M)).json()}}})}});export{q as createClient};
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.34",
5
+ "version": "v0.0.35",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@iotexproject/iotex-address-ts": "^1.0.4",
19
+ "@tryghost/content-api": "^1.11.21",
19
20
  "axios": "^1.7.2",
20
21
  "bech32": "^2.0.0",
21
22
  "bentocache": "^1.0.0-beta.9",
@@ -29,8 +30,9 @@
29
30
  "viem": "^2.17.5"
30
31
  },
31
32
  "devDependencies": {
32
- "@dappworks/kit": "0.4.138",
33
+ "@dappworks/kit": "0.4.139",
33
34
  "@types/bun": "latest",
35
+ "@types/tryghost__content-api": "^1.3.16",
34
36
  "bun-plugin-dts": "^0.2.3",
35
37
  "hono": "^4.4.11",
36
38
  "typescript": "^5.5.4"