add slashes

This commit is contained in:
liangping 2022-10-06 09:56:14 +08:00
parent 2fca7644bf
commit 5f42df584a

View File

@ -392,6 +392,10 @@ export default class ChainFetch {
return this.get(`/cosmos/distribution/v1beta1/delegators/${address}/rewards`, config).then(data => commonProcess(data))
}
async getValidatorSlashs(address, config = null) {
return this.get(`/cosmos/distribution/v1beta1/validators//${address}/slashes`, config).then(data => commonProcess(data))
}
async getStakingValidators(address) {
return this.get(`/cosmos/distribution/v1beta1/delegators/${address}/validators?pagination.size=200`).then(data => commonProcess(data.validators))
}