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

Outport state changes. #320

Merged
merged 16 commits into from
Sep 18, 2024
Merged

Outport state changes. #320

merged 16 commits into from
Sep 18, 2024

Conversation

cristure
Copy link

@cristure cristure commented Sep 5, 2024

No description provided.

@cristure cristure changed the base branch from main to rc/v1.7.next1 September 9, 2024 14:41
bool OwnerAddress = 8 [(gogoproto.jsontag) = "ownerAddressChanged"];
bool UserName = 9 [(gogoproto.jsontag) = "userNameChanged"];
bool CodeMetadata = 10 [(gogoproto.jsontag) = "codeMetadataChanged"];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

add empty line at the end of the file

repeated uint64 SignersIndexes = 8 [(gogoproto.jsontag) = "signersIndexes,omitempty"];
uint64 HighestFinalBlockNonce = 9 [(gogoproto.jsontag) = "highestFinalBlockNonce"];
bytes HighestFinalBlockHash = 10 [(gogoproto.jsontag) = "highestFinalBlockHash,omitempty"];
map <string, StateChanges> StateChanges = 6 [(gogoproto.jsontag) = "stateChanges,omitempty"];
Copy link
Contributor

Choose a reason for hiding this comment

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

you should add your new field at the end of the structure to keep the backwards compatibility

miiu96
miiu96 previously approved these changes Sep 18, 2024
@cristure cristure changed the base branch from rc/v1.7.next1 to feat/state-changes September 18, 2024 07:48
@cristure cristure dismissed miiu96’s stale review September 18, 2024 07:48

The base branch was changed.


message StateChange {
string Type = 1 [(gogoproto.jsontag) = "type"];
int32 Index = 2 [(gogoproto.jsontag) = "-"];
Copy link
Contributor

Choose a reason for hiding this comment

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

can you also add some jsontags for the fields?

miiu96
miiu96 previously approved these changes Sep 18, 2024

message DataTrieChange {
string Type = 1 [(gogoproto.jsontag) = "type"];
bytes Key = 2 [(gogoproto.jsontag) = "type"];
Copy link
Contributor

Choose a reason for hiding this comment

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

update also the tags here

@cristure cristure merged commit 4fedce1 into feat/state-changes Sep 18, 2024
2 checks passed
@cristure cristure deleted the outport-state-changes branch September 18, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants