Skip to content

Commit

Permalink
Scaffold packet relaying methods (#154)
Browse files Browse the repository at this point in the history
* Update Hermes SDK

* Implement packet field readers for Cosmos chain

* Implement packet field readers for StarknetChain

* Checks that CosmosChain implements packet payload builders

* Scaffold packet commitment querier

* Scaffold ack packet querier

* Scaffold packet receipt querier

* Implement payload builders for StarknetChain

* Scaffold Starknet packet message builders

* Scaffold HasWriteAckEvent

* Implement packet filters

* Add packet mutex field

* Implement CanRelayPacket for relay contexts

* Fix Nix use of rust-toolchain.toml

* Use back main branch

* Fix clippy
  • Loading branch information
soareschen authored Dec 19, 2024
1 parent afa487b commit 0c5556d
Show file tree
Hide file tree
Showing 29 changed files with 540 additions and 55 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ target/
# vscode
.vscode/

result*
result*

rust-toolchain.toml
rustc-ice-*.txt
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

cosmos-nix = inputs.cosmos-nix.packages.${system};

rust = nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
rust = nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain-stable.toml;

rust-wasm = nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain-wasm.toml;

Expand Down
2 changes: 1 addition & 1 deletion light-client/ibc-client-starknet-cw/src/client_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use ibc_client_starknet::{ClientState, ConsensusState};

pub struct StarknetClient;

impl<'a> ClientType<'a> for StarknetClient {
impl ClientType<'_> for StarknetClient {
type ClientState = ClientState;
type ConsensusState = ConsensusState;
}
61 changes: 31 additions & 30 deletions relayer/Cargo.lock

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

1 change: 1 addition & 0 deletions relayer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ tracing = { version = "0.1.40" }
tracing-subscriber = { version = "0.3.18" }
flate2 = { version = "1.0" }
http = { version = "1.0.0" }
futures = { version = "0.3.30", default-features = false }

ibc = { version = "0.56.0" }
ibc-proto = { version = "0.51.1" }
Expand Down
Loading

0 comments on commit 0c5556d

Please sign in to comment.