@iotexproject/kit 0.0.33 → 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 +42 -5
- package/dist/index.js +1 -1
- package/package.json +4 -2
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;
|
|
@@ -7005,17 +7033,25 @@ export interface Dapp {
|
|
|
7005
7033
|
}
|
|
7006
7034
|
declare class UseHub {
|
|
7007
7035
|
constructor();
|
|
7008
|
-
|
|
7036
|
+
stakingReward(args: {
|
|
7009
7037
|
address: string;
|
|
7010
7038
|
start_date?: string;
|
|
7011
7039
|
end_date?: string;
|
|
7012
7040
|
}): Promise<{
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7041
|
+
stakingRewardHistory: {
|
|
7042
|
+
total_reward_delta: string;
|
|
7043
|
+
date: string;
|
|
7044
|
+
}[];
|
|
7045
|
+
stakingRewardSum: number;
|
|
7046
|
+
error?: undefined;
|
|
7047
|
+
} | {
|
|
7016
7048
|
error: unknown;
|
|
7049
|
+
stakingRewardHistory?: undefined;
|
|
7050
|
+
stakingRewardSum?: undefined;
|
|
7051
|
+
}>;
|
|
7052
|
+
userDashboard(): Promise<{
|
|
7053
|
+
blogs: import("@tryghost/content-api").PostsOrPages;
|
|
7017
7054
|
}>;
|
|
7018
|
-
userDashboard(): Promise<void>;
|
|
7019
7055
|
assets(): Promise<any[] | {
|
|
7020
7056
|
error: unknown;
|
|
7021
7057
|
}>;
|
|
@@ -7034,6 +7070,7 @@ declare class UseHub {
|
|
|
7034
7070
|
explore(): Promise<{
|
|
7035
7071
|
dappList: Dapp[];
|
|
7036
7072
|
dappCategory: DappCategory[];
|
|
7073
|
+
marketData: IoTexMarketData;
|
|
7037
7074
|
} | {
|
|
7038
7075
|
error: any;
|
|
7039
7076
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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.
|
|
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.
|
|
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"
|