@iotexproject/kit 0.0.54 → 0.0.57
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 -26
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7041,6 +7041,21 @@ declare class Staking {
|
|
|
7041
7041
|
duration: string;
|
|
7042
7042
|
autoStake: boolean;
|
|
7043
7043
|
}): Promise<any>;
|
|
7044
|
+
candidateEndorsement(args: {
|
|
7045
|
+
bucketIndex: string;
|
|
7046
|
+
endorse: boolean;
|
|
7047
|
+
}): Promise<any>;
|
|
7048
|
+
nftV2StakingConfig(): Promise<{
|
|
7049
|
+
min_amount: any;
|
|
7050
|
+
max_duration: any;
|
|
7051
|
+
one_day: any;
|
|
7052
|
+
error?: undefined;
|
|
7053
|
+
} | {
|
|
7054
|
+
error: unknown;
|
|
7055
|
+
min_amount?: undefined;
|
|
7056
|
+
max_duration?: undefined;
|
|
7057
|
+
one_day?: undefined;
|
|
7058
|
+
}>;
|
|
7044
7059
|
}
|
|
7045
7060
|
declare class utils {
|
|
7046
7061
|
erc20(args: {
|
|
@@ -7119,32 +7134,6 @@ export interface Dapp {
|
|
|
7119
7134
|
}
|
|
7120
7135
|
declare class UseHub {
|
|
7121
7136
|
constructor();
|
|
7122
|
-
myRewards(args: {
|
|
7123
|
-
address: string;
|
|
7124
|
-
start_date?: string;
|
|
7125
|
-
end_date?: string;
|
|
7126
|
-
}): Promise<{
|
|
7127
|
-
RewardRecord: {
|
|
7128
|
-
total_reward_delta: number;
|
|
7129
|
-
burndrop_reward_delta: number;
|
|
7130
|
-
hermes_reward_delta: number;
|
|
7131
|
-
date: string;
|
|
7132
|
-
}[];
|
|
7133
|
-
RewardRecord_aggregate: {
|
|
7134
|
-
aggregate: {
|
|
7135
|
-
sum: {
|
|
7136
|
-
total_reward_delta: number;
|
|
7137
|
-
burndrop_reward_delta: number;
|
|
7138
|
-
hermes_reward_delta: number;
|
|
7139
|
-
};
|
|
7140
|
-
};
|
|
7141
|
-
};
|
|
7142
|
-
KV: [
|
|
7143
|
-
{
|
|
7144
|
-
value: string;
|
|
7145
|
-
}
|
|
7146
|
-
];
|
|
7147
|
-
}>;
|
|
7148
7137
|
rewardSummary(args: {
|
|
7149
7138
|
address: string;
|
|
7150
7139
|
start_date?: string;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var z=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}}),A=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}});export{A as createClientWithDBServer,z as createClient};
|