@iotexproject/kit 0.0.30 → 0.0.32
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 +15 -3
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -3135,8 +3135,8 @@ declare class GaugeEntity {
|
|
|
3135
3135
|
name: true;
|
|
3136
3136
|
symbol: true;
|
|
3137
3137
|
tokenUrl: true;
|
|
3138
|
-
balanceOf: [
|
|
3139
|
-
`0x${string}`
|
|
3138
|
+
balanceOf: true | [
|
|
3139
|
+
`0x${string}`
|
|
3140
3140
|
];
|
|
3141
3141
|
}> | import("@dappworks/kit/aiem").QueryReturnType<ERC721Entity, {
|
|
3142
3142
|
name: true;
|
|
@@ -4446,7 +4446,9 @@ declare class MarshallDao {
|
|
|
4446
4446
|
];
|
|
4447
4447
|
totalVote: true;
|
|
4448
4448
|
votingApr: true;
|
|
4449
|
-
stakingTokenInfo:
|
|
4449
|
+
stakingTokenInfo: false | [
|
|
4450
|
+
`0x${string}`
|
|
4451
|
+
];
|
|
4450
4452
|
Incentive: {
|
|
4451
4453
|
allRewards: false | [
|
|
4452
4454
|
`0x${string}`
|
|
@@ -7003,6 +7005,16 @@ export interface Dapp {
|
|
|
7003
7005
|
}
|
|
7004
7006
|
declare class UseHub {
|
|
7005
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
|
+
}>;
|
|
7006
7018
|
userDashboard(): Promise<void>;
|
|
7007
7019
|
assets(): Promise<any[] | {
|
|
7008
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.32",
|
|
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"
|