Skip to content

Commit

Permalink
genesis params
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jan 8, 2025
1 parent 553db65 commit 211da5d
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 39 deletions.
4 changes: 4 additions & 0 deletions proto/ojo/oracle/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ojo.oracle.v1;

import "gogoproto/gogo.proto";
import "ojo/oracle/v1/oracle.proto";
import "ojo/oracle/v1/elys.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/ojo-network/ojo/x/oracle/types";
Expand All @@ -26,6 +27,9 @@ message GenesisState {
repeated PriceStamp medians = 7 [ (gogoproto.nullable) = false ];
repeated PriceStamp historic_prices = 8 [ (gogoproto.nullable) = false ];
repeated PriceStamp median_deviations = 9 [ (gogoproto.nullable) = false ];
repeated AssetInfo asset_infos = 10 [ (gogoproto.nullable) = false ];
repeated Price prices = 11 [ (gogoproto.nullable) = false ];
repeated PriceFeeder price_feeders = 12 [ (gogoproto.nullable) = false ];
}

// FeederDelegation is the address for where oracle feeder authority are
Expand Down
2 changes: 2 additions & 0 deletions x/oracle/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ var (
ErrNonEqualInjVotesLen = errors.Register(ModuleName, 28, "number of exchange rate votes in vote extension and extended commit info are not equal") //nolint: lll
ErrNonEqualInjVotesRates = errors.Register(ModuleName, 29, "injected exchange rate votes and generated exchange votes are not equal") //nolint: lll
ErrNoCommitInfo = errors.Register(ModuleName, 30, "no commit info in process proposal request")
ErrNotAPriceFeeder = errors.Register(ModuleName, 31, "not a price feeder")
ErrPriceFeederNotActive = errors.Register(ModuleName, 32, "price feeder is not active")
)
244 changes: 207 additions & 37 deletions x/oracle/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions x/oracle/types/oracle.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 211da5d

Please sign in to comment.