-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oracle vote extensions #47
Merged
Merged
Changes from 18 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
e19b1c0
bootstrap code for oracle vote extensions
antstalepresh f80aa19
update voteExtHandler bApp config
antstalepresh 75fec8d
Resolve nil memory pointer issue
antstalepresh 75783d2
cli commands addition
antstalepresh e7de75a
SetOraclePrices function update to set the price on correct key
antstalepresh 367ab82
oracle extension price change working
antstalepresh 4af9e04
remove unused store service
antstalepresh d1ca02c
simplification for not required fields
antstalepresh 3fe0966
Merge branch 'sdk-50' of github.com:Team-Kujira/core into oracle-vote…
antstalepresh 9e5bdd3
Update PrepareProposal, ProcessProposal, PreBlocker to handle both de…
antstalepresh dcff75b
Add oracle endpoint on app.toml for custom configuration
antstalepresh 23d3032
Remove supportedPairs logic and let all the pairs to be submitted
antstalepresh 7dbc33c
Remove unused app/abci.go - legacy implementation of vote extension
antstalepresh e519d9f
add miss counter using original median and miss counter logic
antstalepresh ece3b8a
add consensus addr and validator mapping for GetBallotByDenom
antstalepresh 4e5969f
Implement body for compareOraclePrices and compareMissMap
antstalepresh 0bf5027
Add DeleteExchangeRate on PreBlocker & Remove unused code
antstalepresh 44119dd
Add SlashAndResetMissCounters on PreBlocker
antstalepresh 1dcab55
update comments and logging
antstalepresh 1f5a482
simplify PrepareProposal and ProcessProposal to reuse sdk default han…
antstalepresh fc67377
lint fixes
antstalepresh d274b90
add unit test for ComputeStakeWeightedPricesAndMissMap and GetBallotB…
antstalepresh 6e2d4fa
set required denoms on unit test
antstalepresh 6af59b5
Write unit test for CompareOraclePrices & CompareMissMap
antstalepresh f299ca4
add unit test for PrepareProposal
antstalepresh d5ef346
add unit test for ProcessProposal
antstalepresh f6c76af
add unit test for PreBlocker
antstalepresh 718bc47
add utility function SetupTest and use it on oracle abci
antstalepresh 8dc920b
fix panic when empty txs pass
antstalepresh a95cf87
Add unit test for ExtendVoteHandler and VerifyVoteExtensionHandler
antstalepresh 560148b
Threshold check for oracle vote extension
antstalepresh 32f3d9f
Recover unit test for OracleTally
antstalepresh d160af4
remove abci test
antstalepresh bf19ff5
resolve sync issue on a new validator when oracle server's off
antstalepresh 2b807f9
simplification
antstalepresh 12b515c
vote extension enable check on PrepareProposal
antstalepresh a56653f
update prepareProposal for better readability
antstalepresh c29d16a
return default empty extension when http request fails
antstalepresh feb2535
Merge branch 'sdk-50' into oracle-vote-extensions
codehans 0fa65a9
Merge branch 'oracle-vote-extensions' of github.com:Team-Kujira/core …
codehans c63affd
optimistic exec
codehans b5777ec
ibc-tm
codehans 9f8c7a4
Merge branch 'sdk-50' of github.com:Team-Kujira/core into oracle-vote…
antstalepresh 03985a2
Merge branch 'sdk-50' into oracle-vote-extensions
codehans 7e9f70b
lint
antstalepresh ffcd41c
lint
antstalepresh 819b141
lint
antstalepresh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should retain the same indexes for the same properties? Make an old genesis export compatible with the new module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Genesis encoding/decoding's done in JSON and proto index won't be affected I believe.