Merged
Conversation
sergio-mena
commented
Dec 7, 2023
Comment on lines
+123
to
+156
| (".cometbft.libs.bits.BitArray", SERIALIZED),//TODO Revisit | ||
| (".cometbft.types.BlockIDFlag", PRIMITIVE_ENUM), | ||
| (".cometbft.types.Block", SERIALIZED), | ||
| (".cometbft.types.Data", SERIALIZED), | ||
| (".cometbft.types.EvidenceParams", SERIALIZED), | ||
| (".cometbft.types.Evidence.sum", SERIALIZED), | ||
| (".cometbft.types.Evidence.sum", TYPE_TAG), | ||
| (".cometbft.types.EvidenceList", SERIALIZED), | ||
| (".cometbft.types.DuplicateVoteEvidence", SERIALIZED), | ||
| (".cometbft.types.Vote", SERIALIZED), | ||
| (".cometbft.types.BlockID", SERIALIZED), | ||
| (".cometbft.types.PartSetHeader", SERIALIZED), | ||
| (".cometbft.types.LightClientAttackEvidence", SERIALIZED), | ||
| ( | ||
| ".cometbft.types.LightClientAttackEvidence", | ||
| RENAME_ALL_PASCALCASE, | ||
| ), | ||
| (".cometbft.types.LightBlock", SERIALIZED), | ||
| (".cometbft.types.SignedHeader", SERIALIZED), | ||
| (".cometbft.types.Header", SERIALIZED), | ||
| (".cometbft.version.Consensus", SERIALIZED), | ||
| (".cometbft.types.Commit", SERIALIZED), | ||
| (".cometbft.types.CommitSig", SERIALIZED), | ||
| (".cometbft.types.ValidatorSet", SERIALIZED), | ||
| (".cometbft.crypto.PublicKey.sum", SERIALIZED), | ||
| (".cometbft.crypto.PublicKey.sum", TYPE_TAG), | ||
| (".cometbft.abci.ResponseInfo", SERIALIZED), | ||
| (".cometbft.types.CanonicalBlockID", SERIALIZED), | ||
| (".cometbft.types.CanonicalPartSetHeader", SERIALIZED), | ||
| (".cometbft.types.Validator", SERIALIZED), | ||
| (".cometbft.types.CanonicalVote", SERIALIZED), | ||
| (".cometbft.types.BlockMeta", SERIALIZED), | ||
| (".cometbft.types.TxProof", SERIALIZED), | ||
| (".cometbft.crypto.Proof", SERIALIZED), |
Collaborator
Author
There was a problem hiding this comment.
Please ignore these changes: review them in Commit 4
sergio-mena
commented
Dec 7, 2023
Comment on lines
+279
to
+392
| ( | ||
| ".cometbft.types.EvidenceParams.max_bytes", | ||
| QUOTED_WITH_DEFAULT, | ||
| ), //TODO Revisit | ||
| ( | ||
| ".cometbft.types.EvidenceParams.max_age_num_blocks", | ||
| QUOTED_WITH_DEFAULT, | ||
| ), | ||
| (".cometbft.version.Consensus.block", QUOTED), | ||
| (".cometbft.version.Consensus.app", QUOTED_WITH_DEFAULT), | ||
| (".cometbft.abci.ResponseInfo.data", DEFAULT), | ||
| (".cometbft.abci.ResponseInfo.version", DEFAULT), | ||
| ( | ||
| ".cometbft.abci.ResponseInfo.app_version", | ||
| QUOTED_WITH_DEFAULT, | ||
| ), | ||
| ( | ||
| ".cometbft.abci.ResponseInfo.last_block_height", | ||
| QUOTED_WITH_DEFAULT, | ||
| ), | ||
| (".cometbft.abci.ResponseInfo.last_block_app_hash", DEFAULT), | ||
| ( | ||
| ".cometbft.abci.ResponseInfo.last_block_app_hash", | ||
| BYTES_SKIP_IF_EMPTY, | ||
| ), | ||
| (".cometbft.types.BlockID.hash", HEXSTRING), | ||
| (".cometbft.types.BlockID.part_set_header", RENAME_PARTS), | ||
| ( | ||
| ".cometbft.types.PartSetHeader.total", | ||
| PART_SET_HEADER_TOTAL, | ||
| ), | ||
| (".cometbft.types.PartSetHeader.hash", HEXSTRING), | ||
| (".cometbft.types.Header.height", QUOTED), | ||
| (".cometbft.types.Header.time", OPTIONAL), | ||
| (".cometbft.types.Header.last_commit_hash", HEXSTRING), | ||
| (".cometbft.types.Header.data_hash", HEXSTRING), | ||
| (".cometbft.types.Header.validators_hash", HEXSTRING), | ||
| (".cometbft.types.Header.next_validators_hash", HEXSTRING), | ||
| (".cometbft.types.Header.consensus_hash", HEXSTRING), | ||
| (".cometbft.types.Header.app_hash", HEXSTRING), | ||
| (".cometbft.types.Header.last_results_hash", HEXSTRING), | ||
| (".cometbft.types.Header.evidence_hash", HEXSTRING), | ||
| (".cometbft.types.Header.proposer_address", HEXSTRING), | ||
| (".cometbft.types.Data.txs", NULLABLEVECARRAY), | ||
| (".cometbft.types.EvidenceList.evidence", NULLABLE), | ||
| (".cometbft.types.Commit.height", QUOTED), | ||
| (".cometbft.types.Commit.signatures", NULLABLE), | ||
| (".cometbft.types.CommitSig.validator_address", HEXSTRING), | ||
| (".cometbft.types.CommitSig.timestamp", OPTIONAL), | ||
| (".cometbft.types.CommitSig.signature", BASE64STRING), | ||
| ( | ||
| ".cometbft.types.DuplicateVoteEvidence.total_voting_power", | ||
| RENAME_TOTAL_VOTING_POWER_QUOTED, | ||
| ), | ||
| ( | ||
| ".cometbft.types.DuplicateVoteEvidence.validator_power", | ||
| RENAME_VALIDATOR_POWER_QUOTED, | ||
| ), | ||
| ( | ||
| ".cometbft.types.DuplicateVoteEvidence.timestamp", | ||
| RENAME_TIMESTAMP, | ||
| ), | ||
| ( | ||
| ".cometbft.types.LightClientAttackEvidence.common_height", | ||
| QUOTED, | ||
| ), | ||
| ( | ||
| ".cometbft.types.LightClientAttackEvidence.total_voting_power", | ||
| QUOTED, | ||
| ), | ||
| (".cometbft.types.Vote.height", QUOTED), | ||
| (".cometbft.types.Vote.validator_address", HEXSTRING), | ||
| (".cometbft.types.Vote.signature", BASE64STRING), | ||
| (".cometbft.types.Vote.timestamp", OPTIONAL), | ||
| (".cometbft.types.Validator.address", HEXSTRING), | ||
| ( | ||
| ".cometbft.types.Validator.voting_power", | ||
| ALIAS_POWER_QUOTED, | ||
| ), // https://github.com/tendermint/tendermint/issues/5549 | ||
| ( | ||
| ".cometbft.types.Validator.proposer_priority", | ||
| QUOTED_ALLOW_NULL, | ||
| ), // null occurs in some LightBlock data | ||
| (".cometbft.types.Validator.proposer_priority", DEFAULT), // Default is for /genesis deserialization | ||
| ( | ||
| ".cometbft.types.ValidatorSet.total_voting_power", | ||
| QUOTED_WITH_DEFAULT, | ||
| ), | ||
| ( | ||
| ".cometbft.types.ValidatorSet.total_voting_power", | ||
| SKIP_SERIALIZING, | ||
| ), | ||
| (".cometbft.types.BlockMeta.block_size", QUOTED), | ||
| (".cometbft.types.BlockMeta.num_txs", QUOTED), | ||
| (".cometbft.crypto.PublicKey.sum.ed25519", RENAME_EDPUBKEY), | ||
| ( | ||
| ".cometbft.crypto.PublicKey.sum.secp256k1", | ||
| RENAME_SECPPUBKEY, | ||
| ), | ||
| (".cometbft.crypto.PublicKey.sum.sr25519", RENAME_SRPUBKEY), | ||
| ( | ||
| ".cometbft.types.Evidence.sum.duplicate_vote_evidence", | ||
| RENAME_DUPLICATEVOTE, | ||
| ), | ||
| ( | ||
| ".cometbft.types.Evidence.sum.light_client_attack_evidence", | ||
| RENAME_LIGHTCLIENTATTACK, | ||
| ), | ||
| (".cometbft.types.TxProof.data", BASE64STRING), | ||
| (".cometbft.types.TxProof.root_hash", HEXSTRING), | ||
| (".cometbft.crypto.Proof.index", QUOTED), | ||
| (".cometbft.crypto.Proof.total", QUOTED), | ||
| (".cometbft.crypto.Proof.aunts", VEC_BASE64STRING), | ||
| (".cometbft.crypto.Proof.leaf_hash", BASE64STRING), |
Collaborator
Author
There was a problem hiding this comment.
Please ignore these changes: review them in Commit 4
5 tasks
5 tasks
mzabaluev
approved these changes
Dec 18, 2023
Contributor
mzabaluev
left a comment
There was a problem hiding this comment.
As we agreed on a call with @sergio-mena, I'm approving this to merge now and I can apply further changes in a separate PR.
5 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Was cometbft/tendermint-rs#1381
Contributes to cometbft/cometbft#1834
This PR is the first to providing support for CometBFT
v1.0.The PR appears to be massive but the reason is the tons of newly auto-generated code it introduces. For this reason, please don't review it in one shot; rather use the following description of commits:
Note: even if this PR is likely to be ready for review, I decided to leave it a draft PR because we need to discuss whether we should be forking tendermint-rs into cometbft-rs and move this PR there.
.changelog/