Skip to content
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

Regen Network/Slashing protobuf #5627

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
76757e0
Add protobuf def
anilcse Feb 7, 2020
a0eaa7a
Add proto msg type for MsgUnJail
anilcse Feb 7, 2020
0c6ca19
gofmt
anilcse Feb 7, 2020
ab7fc9e
Merge pull request #21 from regen-network/vw/slashing_protobuf_migration
anilcse Feb 7, 2020
fbf33e8
Merge branch 'master' of github.com:cosmos/cosmos-sdk into vw/slashin…
anilcse Feb 7, 2020
e8617dc
Remove ModuleCodec
anilcse Feb 7, 2020
3b7110b
Merge branch 'regen-network/slashing_protobuf' of github.com:regen-ne…
anilcse Feb 7, 2020
89b5834
Add changelog
anilcse Feb 11, 2020
1cb8cc8
Fix naming
anilcse Feb 11, 2020
2909f11
Fix undefined errors
anilcse Feb 11, 2020
c9ddfbd
Add ValidatorSigningInfo protobuf implementation
anilcse Feb 11, 2020
d286da4
Revert unnecessary codec migration
anilcse Feb 11, 2020
c601f08
Add protobuf def
anilcse Feb 7, 2020
af6b876
Add proto msg type for MsgUnJail
anilcse Feb 7, 2020
5fb7442
gofmt
anilcse Feb 7, 2020
25f7f97
Remove ModuleCodec
anilcse Feb 7, 2020
12111ae
Add changelog
anilcse Feb 11, 2020
af95b29
Fix naming
anilcse Feb 11, 2020
ba3ee92
Fix undefined errors
anilcse Feb 11, 2020
d90bb3e
Add ValidatorSigningInfo protobuf implementation
anilcse Feb 11, 2020
2ca862f
Revert unnecessary codec migration
anilcse Feb 11, 2020
5395ce8
Merge branch 'regen-network/slashing_protobuf' of github.com:regen-ne…
anilcse Feb 11, 2020
21b9cba
Add ValidatorSigningInfo proto codec
anilcse Feb 11, 2020
5a5fd73
Fix keeper init in tests
anilcse Feb 11, 2020
bdd9368
Add TODO
anilcse Feb 11, 2020
525ad52
Fix signing-info migration
anilcse Feb 11, 2020
c6bb9ae
Change query to use protobuf codec
anilcse Feb 11, 2020
486e7a1
Fix unjail testscript
anilcse Feb 11, 2020
d035a18
Fix go-imports
anilcse Feb 11, 2020
5130ecd
Merge branch 'master' of github.com:cosmos/cosmos-sdk into regen-netw…
anilcse Feb 11, 2020
bb6d8c8
Migrate all slashing queries to use protobuf
anilcse Feb 11, 2020
3dac3b6
Fix typecast
anilcse Feb 11, 2020
6d62019
Fix gofmt
anilcse Feb 11, 2020
ef7cb62
Gofmt
anilcse Feb 11, 2020
9ce0db2
Use protobuf types
anilcse Feb 12, 2020
ae47cb7
Revert
anilcse Feb 12, 2020
30673c0
Revert query params
anilcse Feb 12, 2020
1480c46
Revert query, tx
anilcse Feb 12, 2020
606dd29
Fix lint issue
anilcse Feb 12, 2020
07815e1
Update changelog
anilcse Feb 12, 2020
247af97
Fix lint issues
anilcse Feb 12, 2020
4628a98
Fix lint issues
anilcse Feb 12, 2020
24addfa
Merge pull request #24 from regen-network/regen-network/slashing_prot…
anilcse Feb 12, 2020
b111389
Removed new line
sahith-narahari Feb 12, 2020
e870c7b
Merge pull request #25 from regen-network/anil/fix_slashing_simulatio…
anilcse Feb 12, 2020
e3897cf
Fix golint
anilcse Feb 12, 2020
8fbc455
Fix use json and yaml tags the same as before
anilcse Feb 12, 2020
32aa41b
Merge branch 'regen-network/slashing_protobuf' of github.com:regen-ne…
anilcse Feb 12, 2020
cd0b99d
Merge pull request #26 from regen-network/regen-network/slashing_prot…
anilcse Feb 12, 2020
fb1a0da
Merge branch 'master' of github.com:cosmos/cosmos-sdk into regen-netw…
anilcse Feb 12, 2020
33bc104
Merge branch 'regen-network/slashing_protobuf' of github.com:regen-ne…
anilcse Feb 12, 2020
750e613
Fix gofmt
anilcse Feb 12, 2020
53b45e0
Merge branch 'master' of github.com:cosmos/cosmos-sdk into regen-netw…
anilcse Feb 16, 2020
5b9cc9f
Gofmt
anilcse Feb 16, 2020
ae52ace
Fix test-sim-import-export issue
anilcse Feb 16, 2020
28e2556
Fix gofmt
anilcse Feb 16, 2020
7e34c0c
Merge branch 'master' into regen-network/slashing_protobuf
anilcse Feb 16, 2020
e68f3f0
- Rebase to cosmos:master
anilcse Feb 18, 2020
4360aee
Fix typo
anilcse Feb 18, 2020
04ff0b5
Merge branch 'master' of github.com:cosmos/cosmos-sdk into regen-netw…
anilcse Feb 18, 2020
85b3a20
Revert str conv
anilcse Feb 18, 2020
47c5fb5
Fix gofmt
anilcse Feb 18, 2020
65b5622
Merge branch 'master' into regen-network/slashing_protobuf
anilcse Feb 18, 2020
9e7b6ed
Fix review changes
anilcse Feb 19, 2020
a836c0e
Merge branch 'master' of github.com:cosmos/cosmos-sdk into regen-netw…
anilcse Feb 19, 2020
db992df
Remove unused codec alias
anilcse Feb 19, 2020
73271ff
Merge branch 'regen-network/slashing_protobuf' of github.com:regen-ne…
anilcse Feb 19, 2020
e5f10e1
Revert
anilcse Feb 19, 2020
4c5e070
fix import
anilcse Feb 19, 2020
44559dd
Merge branch 'master' of github.com:cosmos/cosmos-sdk into regen-netw…
anilcse Feb 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix unjail testscript
  • Loading branch information
anilcse committed Feb 11, 2020
commit 486e7a14d3ac804d8877088b0b527e661c689e8b
2 changes: 1 addition & 1 deletion x/slashing/internal/types/msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestMsgUnjailGetSignBytes(t *testing.T) {
bytes := msg.GetSignBytes()
require.Equal(
t,
`{"type":"cosmos-sdk/MsgUnjail","value":{"address":"cosmosvaloper1v93xxeqhg9nn6"}}`,
`{"type":"cosmos-sdk/MsgUnjail","value":{"validator_addr":"cosmosvaloper1v93xxeqhg9nn6"}}`,
string(bytes),
)
}
66 changes: 33 additions & 33 deletions x/slashing/internal/types/types.pb.go

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

2 changes: 1 addition & 1 deletion x/slashing/internal/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "google/protobuf/timestamp.proto";
message MsgUnjail {
bytes validator_addr = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"address\""
(gogoproto.moretags) = "yaml:\"validator_address\""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(gogoproto.moretags) = "yaml:\"validator_address\""
(gogoproto.moretags) = "yaml:\"address\"",
(gogoproto.jsontag) = "address"

should try to keep the json and yaml tags the same as before

];
}

Expand Down