Skip to content

Commit

Permalink
feat: removed soft opt-out metrics (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno authored Sep 18, 2024
1 parent bae771d commit 5e72ba8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 504 deletions.
2 changes: 0 additions & 2 deletions pkg/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func NewApp(configPath string, filesystem fs.FS, version string) *App {

fetchers := []fetchersPkg.Fetcher{
fetchersPkg.NewSlashingParamsFetcher(logger, appConfig.Chains, rpcs, tracer),
fetchersPkg.NewSoftOptOutThresholdFetcher(logger, appConfig.Chains, rpcs, tracer),
fetchersPkg.NewCommissionFetcher(logger, appConfig.Chains, rpcs, tracer),
fetchersPkg.NewDelegationsFetcher(logger, appConfig.Chains, rpcs, tracer),
fetchersPkg.NewUnbondsFetcher(logger, appConfig.Chains, rpcs, tracer),
Expand All @@ -99,7 +98,6 @@ func NewApp(configPath string, filesystem fs.FS, version string) *App {

generators := []generatorsPkg.Generator{
generatorsPkg.NewSlashingParamsGenerator(),
generatorsPkg.NewSoftOptOutThresholdGenerator(),
generatorsPkg.NewIsConsumerGenerator(appConfig.Chains),
generatorsPkg.NewUptimeGenerator(),
generatorsPkg.NewCommissionGenerator(appConfig.Chains),
Expand Down
11 changes: 5 additions & 6 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ type FetcherName string
type PriceFetcherName string

const (
FetcherNameSlashingParams FetcherName = "slashing-params"
FetcherNameSoftOptOutThreshold FetcherName = "soft-opt-out-threshold"
FetcherNameCommission FetcherName = "commission"
FetcherNameDelegations FetcherName = "delegations"
FetcherNameValidatorConsumers FetcherName = "validator-consumers"
FetcherNameConsumerCommission FetcherName = "consumer-commission"
FetcherNameSlashingParams FetcherName = "slashing-params"
FetcherNameCommission FetcherName = "commission"
FetcherNameDelegations FetcherName = "delegations"
FetcherNameValidatorConsumers FetcherName = "validator-consumers"
FetcherNameConsumerCommission FetcherName = "consumer-commission"

FetcherNameUnbonds FetcherName = "unbonds"
FetcherNameSigningInfo FetcherName = "signing-info"
Expand Down
92 changes: 0 additions & 92 deletions pkg/fetchers/soft_opt_out_threshold.go

This file was deleted.

Loading

0 comments on commit 5e72ba8

Please sign in to comment.