forked from LaconicNetwork/cosmos-explorer
add 24h changes
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user