From 5f42df584ac7e0e4416059d06ae13d4e36cc0ac0 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 6 Oct 2022 09:56:14 +0800 Subject: [PATCH] add slashes --- src/libs/fetch.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index 381c352b..08bf901f 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -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)) }