@iotexproject/kit 0.0.32 → 0.0.34

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
@@ -7005,15 +7005,21 @@ export interface Dapp {
7005
7005
  }
7006
7006
  declare class UseHub {
7007
7007
  constructor();
7008
- stakingRewardHistory(args: {
7008
+ stakingReward(args: {
7009
7009
  address: string;
7010
7010
  start_date?: string;
7011
7011
  end_date?: string;
7012
7012
  }): Promise<{
7013
- total_reward_delta: string;
7014
- date: string;
7015
- }[] | {
7013
+ stakingRewardHistory: {
7014
+ total_reward_delta: string;
7015
+ date: string;
7016
+ }[];
7017
+ stakingRewardSum: number;
7018
+ error?: undefined;
7019
+ } | {
7016
7020
  error: unknown;
7021
+ stakingRewardHistory?: undefined;
7022
+ stakingRewardSum?: undefined;
7017
7023
  }>;
7018
7024
  userDashboard(): Promise<void>;
7019
7025
  assets(): Promise<any[] | {
package/dist/index.js CHANGED
@@ -1 +1 @@
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};
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};
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.32",
5
+ "version": "v0.0.34",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {