-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create and test AddOracleProposal. (#615)
* feat(pricefeed): Create and test AddOracleProposal * test(common): TestAssetPairs_Contains * refactor: filter for unique oracles in NewGenesisState * Make proposal work for multiple oracles * test(pricefeed): TestMarshalAddOracleProposal * small import fix * refactor: Improve query variable names and remove unnecessary token0, token1 attributes on market
- Loading branch information
1 parent
4b68e2c
commit 98a2316
Showing
23 changed files
with
1,413 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/NibiruChain/nibiru | ||
|
||
go 1.18 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/cosmos/cosmos-sdk v0.45.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
package nibiru.pricefeed.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/NibiruChain/nibiru/x/pricefeed/types"; | ||
|
||
message AddOracleProposal { | ||
string title = 1; | ||
string description = 2; | ||
repeated string oracles = 3 [(gogoproto.moretags) = "yaml:\"oracles\""]; | ||
repeated string pairs = 4 [(gogoproto.moretags) = "yaml:\"pairs\""]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.