@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 +21 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
|
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};
|