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

fix!: fix third party proto files #1207

Merged
merged 6 commits into from
Aug 15, 2023
Merged

fix!: fix third party proto files #1207

merged 6 commits into from
Aug 15, 2023

Conversation

dadamu
Copy link
Contributor

@dadamu dadamu commented Aug 15, 2023

Description

This PR fixes the oracle proto files to be generated by proto builder applied by cosmos v0.47.x, in order to make sure packet unmarshaling work properly when receiving IBC packets from Band Protocol.

It also updates the third party ethscep256k1 proto to prevent from the potential issue about marshaling/unmarshaling.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@dadamu dadamu requested a review from a team as a code owner August 15, 2023 07:00
@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (0a3adf6) 80.49% compared to head (743569b) 80.49%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1207   +/-   ##
=======================================
  Coverage   80.49%   80.49%           
=======================================
  Files         218      218           
  Lines       18289    18289           
=======================================
  Hits        14722    14722           
  Misses       2955     2955           
  Partials      612      612           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added the kind/build Related to the build of the project label Aug 15, 2023
@@ -3,7 +3,7 @@
set -eo pipefail

cd proto
proto_dirs=$(find ./desmos -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
Copy link
Contributor Author

@dadamu dadamu Aug 15, 2023

Choose a reason for hiding this comment

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

Replace to . in order to make sure oracle and ethermint protos be generated.

@dadamu dadamu changed the title fix!: fix oracle proto files fix!: fix third party proto files Aug 15, 2023
CRYPTO_TYPES = types/crypto

update-deps-types:
@mkdir -p $(CRYPTO_TYPES)/ethsecp256k1
@curl -sSL $(EVMOS_URL)/ethsecp256k1/keys.pb.go > $(CRYPTO_TYPES)/ethsecp256k1/keys.pb.go
@curl -sSL $(EVMOS_URL)/ethsecp256k1/ethsecp256k1.go > $(CRYPTO_TYPES)/ethsecp256k1/ethsecp256k1.go
@curl -sSL $(EVMOS_URL)/proto/ethermint/crypto/v1/ethsecp256k1/keys.proto > proto/ethermint/crypto/v1/ethsecp256k1/keys.proto
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of copy pb.go file directly, it is better to download proto file then generate the pb.go file with the specified proto builder which cosmos sdk applies, in order to avoid from the marshaling/unmarshaling issue.

@RiccardoM RiccardoM merged commit 8830419 into master Aug 15, 2023
35 checks passed
@RiccardoM RiccardoM deleted the paul/fix-oracle-proto branch August 15, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/build Related to the build of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants