@iotexproject/kit 0.0.44 → 0.0.46

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
@@ -7108,6 +7108,44 @@ declare class UseHub {
7108
7108
  };
7109
7109
  };
7110
7110
  };
7111
+ KV: [
7112
+ {
7113
+ value: string;
7114
+ }
7115
+ ];
7116
+ }>;
7117
+ rewardSummary(args: {
7118
+ address: string;
7119
+ start_date?: string;
7120
+ end_date?: string;
7121
+ }): Promise<{
7122
+ RewardRecord_aggregate: {
7123
+ aggregate: {
7124
+ sum: {
7125
+ total_reward_delta: number;
7126
+ burndrop_reward_delta: number;
7127
+ hermes_reward_delta: number;
7128
+ apy: number;
7129
+ };
7130
+ };
7131
+ };
7132
+ KV: [
7133
+ {
7134
+ value: string;
7135
+ }
7136
+ ];
7137
+ }>;
7138
+ rewardDistribute(args: {
7139
+ address: string;
7140
+ start_date?: string;
7141
+ end_date?: string;
7142
+ }): Promise<{
7143
+ RewardRecord: {
7144
+ total_reward_delta: number;
7145
+ burndrop_reward_delta: number;
7146
+ hermes_reward_delta: number;
7147
+ date: string;
7148
+ }[];
7111
7149
  }>;
7112
7150
  stakingReward(args: {
7113
7151
  address: 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.44",
5
+ "version": "v0.0.46",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {