-
Notifications
You must be signed in to change notification settings - Fork 993
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
Use eth-bridge-integration
branch for tendermint-rs/ibc-rs/tower-abci dependencies
#531
Use eth-bridge-integration
branch for tendermint-rs/ibc-rs/tower-abci dependencies
#531
Conversation
eth-bridge-integration
for tendermint-rs/ibc-rs/tower-abci dependencieseth-bridge-integration
branch for tendermint-rs/ibc-rs/tower-abci dependencies
db28db7
to
c1f2e52
Compare
c1f2e52
to
1116073
Compare
pls update wasm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested this PR. seems to work fine!
# patched to a commit on the `eth-bridge-integration` branch of our fork | ||
tendermint = {git = "https://github.com/heliaxdev/tendermint-rs.git", rev = "bc0b6ac47b3bfc1ee8b944341b654b867b3b5d0b"} | ||
tendermint-proto = {git = "https://github.com/heliaxdev/tendermint-rs.git", rev = "bc0b6ac47b3bfc1ee8b944341b654b867b3b5d0b"} | ||
tendermint-testgen = {git = "https://github.com/heliaxdev/tendermint-rs.git", rev = "bc0b6ac47b3bfc1ee8b944341b654b867b3b5d0b"} | ||
tendermint-light-client-verifier = {git = "https://github.com/heliaxdev/tendermint-rs.git", rev = "bc0b6ac47b3bfc1ee8b944341b654b867b3b5d0b"} | ||
|
||
# patched to a commit on the `eth-bridge-integration` branch of our fork | ||
ibc = {git = "https://github.com/heliaxdev/ibc-rs.git", rev = "451ff75591d9de48b7147a651858c3daeb5e2436"} | ||
ibc-proto = {git = "https://github.com/heliaxdev/ibc-rs.git", rev = "451ff75591d9de48b7147a651858c3daeb5e2436"} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't have to patch these things in our wasm crates before, as the namada crates were pulling in the forks for us indirectly. Now, because the namada crates are patched at the workspace level, we have to also patch anywhere we use the individual namada crates.
In some sense, it would make sense for individual namada crates to pull in the forks directly rather than via workspace-level Cargo.toml
patching, but it's not possible to patch individual crates in a workspace - also, we are then unable to patch tendermint-rs and the like whenever we are using those crates outside of the workspace due to rust-lang/cargo#5478 :(
eth-bridge-integration
branches are set up on our tendermint-rs, ibc-rs and tower-abci forks, and this PR switches namadaeth-bridge-integration
branch to start using them. This PR also makes it so that we can patch to a different version oftendermint-rs
just via changingCargo.toml
s in this repo, rather than also in the ibc-rs/tower-abci forks. (Relates to #527).eth-bridge-integration
is based off the currentbat/abciplus
branch, the only difference being we start using[patch.crates-io]
there and specify the original tendermint version requirements (Explicitly patch with our tendermint-rs fork foreth-bridge-integration
heliaxdev/tower-abci#3)eth-bridge-integration
branch is based off of the ibc-rs rev that was currently being used (9fcc1c8c19), the only difference being we start using[patch.crates-io]
and specify the original tendermint version requirements there as well (Explicitly patch tendermint-rs foreth-bridge-integration
heliaxdev/ibc-rs#4)eth-bridge-integration
branch was the same as the currentbat/abciplus
branch, except it was cleanly rebased ontov0.23.6
(bat/abciplus
was based onv0.23.5
) and then I made and merged this PR into it - Pemit an empty app_state in a Tendermint genesis.json heliaxdev/tendermint-rs#6 - to fix an issue withv0.23.6
The change of tendermint-rs from v0.23.5 to v0.23.6 is because ibc v0.14.0, which we based our ibc-rs fork off, depends explicitly on tendermint-rs v0.23.6 (it specifies
version = "=0.23.6"
for tendermint-rs in some of itsCargo.toml
). This meant our v0.23.5-based tendermint-rs fork couldn't be straightforwardly patched onto our ibc-rs fork, as it didn't match the semver requirements specified by ibc-rs. Going forwards:main
looks to be tracking Tendermint v0.37 (though not 100% confirmed), so we probably want to try catching up our tendermint-rs fork branchabcipp
dependencies and the like remain unchanged, runningmake test-abcipp
locally still passes. I tested running the ledger locally, using this prebuilt.anoma
directory - anoma-ethbridge-2022-09-30.tar.gz