@iotexproject/kit 0.0.42 → 0.0.43

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
@@ -7088,6 +7088,27 @@ export interface Dapp {
7088
7088
  }
7089
7089
  declare class UseHub {
7090
7090
  constructor();
7091
+ myRewards(args: {
7092
+ address: string;
7093
+ start_date?: string;
7094
+ end_date?: string;
7095
+ }): Promise<{
7096
+ RewardRecord: {
7097
+ total_reward_delta: number;
7098
+ burndrop_reward_delta: number;
7099
+ hermes_reward_delta: number;
7100
+ date: string;
7101
+ }[];
7102
+ RewardRecord_aggregate: {
7103
+ aggregate: {
7104
+ sum: {
7105
+ total_reward_delta: number;
7106
+ burndrop_reward_delta: number;
7107
+ hermes_reward_delta: number;
7108
+ };
7109
+ };
7110
+ };
7111
+ }>;
7091
7112
  stakingReward(args: {
7092
7113
  address: string;
7093
7114
  start_date?: string;
package/dist/index.js CHANGED
@@ -1 +1 @@
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};
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.42",
5
+ "version": "v0.0.43",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {