-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat: observer rewards #855
Merged
Merged
Changes from 56 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
27f981b
add proto file for crosschain events
kingpinXD 6a18920
add proto file for observer and emission events
kingpinXD 6aa735f
remove unnecessary print lines
kingpinXD 21c97ed
Merge branch 'develop' into refactor/typed-events
kingpinXD ea1123f
move node account from x/crosschain to x/observer
kingpinXD afd5d69
cli tests for observer module
kingpinXD 945b468
resolve conflicts for status.go
kingpinXD 7437fbe
add ignore annotations for gosec
kingpinXD 4560925
add ignore annotations for gosec
kingpinXD 6939020
move permission flags to observer module
kingpinXD 4b631c5
add cli tests for permission_flags
kingpinXD 2cd7092
add last block count
kingpinXD 469bae5
move keygen to observer module
kingpinXD b29814e
remove extra proto files
kingpinXD 09ee703
modify makefile to remove old types
kingpinXD 054cc1b
fix unit tests for keygen
kingpinXD 253175b
add modifying keygen to Begin Block
kingpinXD 262f65e
add modifying keygen to Begin Block
kingpinXD b1d03f1
add migrator for node accounts in v6.0.0
kingpinXD a9f7641
add migrator for keygen and permission flags in v6.0.0
kingpinXD 2a69338
modify consensus version in version map to trigger migration function
kingpinXD e5b3ce9
add log lines to explain migration
kingpinXD 9782bf1
Set value for last block height count
kingpinXD c0d104d
add early return if LastBlockHeight count is not found
kingpinXD 1cf887d
reset lasBlock observer count on on change in value
kingpinXD 967e8dd
reset lasBlock observer count on on change in value
kingpinXD a04ae76
Add grpc query for last observer count
kingpinXD 6e2c6df
rebase develop to merge changes for typed events
kingpinXD 452206c
fix errors due to types in inbound voter
kingpinXD 5c4637e
increment to version 7
kingpinXD 7eadeaf
rebase develop to add blame logic to observer module
kingpinXD c2c4dab
add emissions test structure
kingpinXD 0eda7fa
add new query for emissions
kingpinXD db38fc5
add new query for emissions
kingpinXD 70ab971
add withdrawble_emisions.proto
kingpinXD 67b0abe
observer emissions cli test
kingpinXD 9d4de8e
remove test table
kingpinXD 9841742
reduce test to use 20 randomized ballots
kingpinXD 8499d8c
rebased develop
kingpinXD a136a0e
enable slashing even if all finalized ballots were fake
kingpinXD 425418f
Add comments to explain logic
kingpinXD 13813f0
Merge branch 'develop' into feature/observer-rewards
kingpinXD e476632
Merge branch 'develop' into feature/observer-rewards
kingpinXD 9dae8c6
generate specs
kingpinXD 8c4fc8a
rebase develop
kingpinXD ad32324
add creation height to ballot
kingpinXD 6f7159e
modify identifiers to more meaningful names
kingpinXD 3a1a4c3
include code suggestions
kingpinXD 637584c
rebase develop
kingpinXD aef6b96
Merge branch 'develop' into feature/observer-rewards
lumtis d0015e4
modify protobuf styles
kingpinXD 0d2dce7
add proto format
kingpinXD 55c3930
update specs to match changes in proto files
kingpinXD 8d11f40
Add proto-format back to the the makefile
kingpinXD 90d9450
rebase develop
kingpinXD 371a017
generate api specs
kingpinXD 6d1dbcb
Merge branch 'develop' into feature/observer-rewards
kingpinXD 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ message InTxHashToCctx { | |
string in_tx_hash = 1; | ||
repeated string cctx_index = 2; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
syntax = "proto3"; | ||
package zetachain.zetacore.emissions; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/zeta-chain/zetacore/x/emissions/types"; | ||
|
||
message WithdrawableEmissions { | ||
string address = 1; | ||
string amount = 2 [ | ||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", | ||
(gogoproto.nullable) = false | ||
]; | ||
} |
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.
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.
put snake case on this field as well?