Skip to content

Commit

Permalink
Merge pull request #1013 from alleslabs/fix/remove-unused
Browse files Browse the repository at this point in the history
fix: remove unused delegators, Sentry
  • Loading branch information
evilpeach committed Jul 8, 2024
2 parents a06ca1a + af207e3 commit ae40782
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#1013](https://github.com/alleslabs/celatone-frontend/pull/1013) Remove unused validator's delegator count, disable Sentry
- [#1012](https://github.com/alleslabs/celatone-frontend/pull/1012) Move modules, balances query to LCD

### Bug fixes
Expand Down
1 change: 1 addition & 0 deletions sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Sentry.init({
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
integrations: [new CaptureConsole({ levels: ["error"] })],
enabled: false,
});
1 change: 1 addition & 0 deletions sentry.edge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Sentry.init({
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
integrations: [new CaptureConsole({ levels: ["error"] })],
enabled: false,
});
1 change: 1 addition & 0 deletions sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Sentry.init({
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
integrations: [new CaptureConsole({ levels: ["error"] })],
enabled: false,
});
9 changes: 0 additions & 9 deletions src/lib/services/validator/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
zStakingProvisionsResponse,
zValidatorDataResponse,
zValidatorDelegationRelatedTxsResponse,
zValidatorDelegatorsResponse,
zValidatorsResponse,
zValidatorUptimeResponse,
zValidatorVotedProposalsResponse,
Expand Down Expand Up @@ -50,14 +49,6 @@ export const getValidatorStakingProvisions = async (endpoint: string) =>
.get(`${endpoint}/staking-provisions`)
.then(({ data }) => parseWithError(zStakingProvisionsResponse, data));

export const getValidatorDelegators = async (
endpoint: string,
validatorAddress: ValidatorAddr
) =>
axios
.get(`${endpoint}/${encodeURIComponent(validatorAddress)}/delegators`)
.then(({ data }) => parseWithError(zValidatorDelegatorsResponse, data));

export const getValidatorVotedProposalsAnswerCounts = async (
endpoint: string,
validatorAddress: ValidatorAddr
Expand Down

0 comments on commit ae40782

Please sign in to comment.