@iotexproject/kit 0.0.31 → 0.0.33
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 +10 -0
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -7005,6 +7005,16 @@ export interface Dapp {
|
|
|
7005
7005
|
}
|
|
7006
7006
|
declare class UseHub {
|
|
7007
7007
|
constructor();
|
|
7008
|
+
stakingRewardHistory(args: {
|
|
7009
|
+
address: string;
|
|
7010
|
+
start_date?: string;
|
|
7011
|
+
end_date?: string;
|
|
7012
|
+
}): Promise<{
|
|
7013
|
+
total_reward_delta: string;
|
|
7014
|
+
date: string;
|
|
7015
|
+
}[] | {
|
|
7016
|
+
error: unknown;
|
|
7017
|
+
}>;
|
|
7008
7018
|
userDashboard(): Promise<void>;
|
|
7009
7019
|
assets(): Promise<any[] | {
|
|
7010
7020
|
error: unknown;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p=({url:t="http://localhost:9527"}={})=>new Proxy({},{get(s,n,y){return new Proxy({},{get(c,o){return async(e)=>{for(let r in e)if(Array.isArray(e[r]))e[r]=JSON.stringify(e[r]);const i=`${t}/${String(n)}/${String(o)}?${new URLSearchParams(e).toString()}`;return(await fetch(i)).json()}}})}});export{p 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.33",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"dataloader": "^2.2.2",
|
|
24
24
|
"dayjs": "^1.11.12",
|
|
25
25
|
"graphql-request": "^7.1.0",
|
|
26
|
+
"ioredis": "^5.4.1",
|
|
26
27
|
"lru-cache": "^11.0.0",
|
|
27
28
|
"reflect-metadata": "^0.2.2",
|
|
28
29
|
"viem": "^2.17.5"
|