add 24h changes

This commit is contained in:
liangping
2023-05-10 20:04:23 +08:00
parent d2c82499c0
commit ee89e438c0
4 changed files with 59 additions and 30 deletions
+2 -2
View File
@@ -56,10 +56,10 @@ export const useBaseStore = defineStore('baseStore', {
},
async fetchValidatorByHeight(height?: number, offset = 0) {
return this.blockchain.rpc.getBaseValidatorsetAt(String(height));
return this.blockchain.rpc.getBaseValidatorsetAt(String(height), offset);
},
async fetchLatestValidators(offset = 0) {
return this.blockchain.rpc.getBaseValidatorsetLatest();
return this.blockchain.rpc.getBaseValidatorsetLatest(offset);
},
async fetchBlock(height?: number) {
return this.blockchain.rpc.getBaseBlockAt(String(height));
+1
View File
@@ -167,6 +167,7 @@ export const useFormatter = defineStore('formatter', {
);
return validator?.description?.moniker;
},
// find validator by operator address
validatorFromBech32(address: string) {
if (!address) return address;
const validator = this.staking.validators.find(