Skip to content

Commit

Permalink
switched type and operations to enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristure committed Sep 24, 2024
1 parent 4fedce1 commit 796e5e3
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 72 deletions.
196 changes: 125 additions & 71 deletions data/stateChange/stateChange.pb.go

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

14 changes: 13 additions & 1 deletion data/stateChange/stateChange.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,20 @@ message StateChanges {
repeated StateChange StateChanges = 1 [(gogoproto.jsontag) = "stateChanges"];
}

enum Type {
Read = 0;
Write = 1;
}

enum Operation {
GetCode = 0;
SaveAccount = 1;
WriteCode = 2;
RemoveDataTrie = 3;
}

message StateChange {
string Type = 1 [(gogoproto.jsontag) = "type"];
Type Type = 1 [(gogoproto.jsontag) = "type"];
int32 Index = 2 [(gogoproto.jsontag) = "index"];
bytes TxHash = 3 [(gogoproto.jsontag) = "txHash"];
bytes MainTrieKey = 4 [(gogoproto.jsontag) = "mainTrieKey"];
Expand Down

0 comments on commit 796e5e3

Please sign in to comment.