Skip to content

Commit

Permalink
Merge pull request #23 from Farhad-Shabani/farhad/use-ibc-client-cw
Browse files Browse the repository at this point in the history
feat: use `ibc-client-cw` crate for CosmWasm contract implementation
  • Loading branch information
Carlos Rodriguez authored Apr 23, 2024
2 parents 8bdbb71 + b0005e5 commit 215b18c
Showing 21 changed files with 150 additions and 1,420 deletions.
232 changes: 129 additions & 103 deletions Cargo.lock

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -37,20 +37,15 @@ optimize = """docker run --rm -v "$(pwd)":/code \

[dependencies]
base64 = "0.22.0"
cosmwasm-schema = "2.0.1"
cosmwasm-std = "2.0.1"
cw-storage-plus = "2.0.0"
cw2 = "2.0.0"
derive_more = "0.99.17"
ibc-core = { version = "0.51.0", default-features = false, features = ["schema"] }
ibc-clients = { version = "0.51.0", default-features = false, features = ["schema"] }
cosmwasm-schema = "1.5.2"
cosmwasm-std = "1.5.2"
ibc-core = { git = "https://github.com/cosmos/ibc-rs.git", rev = "80b8084", default-features = false, features = ["schema"] }
ibc-client-tendermint = { git = "https://github.com/cosmos/ibc-rs.git", rev = "80b8084", default-features = false, features = ["schema"] }
ibc-client-cw = {git = "https://github.com/cosmos/ibc-rs.git", rev = "80b8084", default-features = false }
ibc-proto = { version = "0.42.2", default-features = false }
prost = "0.12.3"
schemars = "0.8.15"
serde = { version = "1.0", features = ["derive", "rc"] }
tendermint = "0.34.1"
tendermint-light-client-verifier = "0.34.1"
thiserror = { version = "1.0.49" }

[patch.crates-io]
ibc-proto = { git = "https://github.com/cosmos/ibc-proto-rs.git", rev = "6cbe4c7ace5a688bc98831fa9c1cc2dabf3b2976", default-features = false } # "0.42.2"
4 changes: 2 additions & 2 deletions src/bin/schema.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use cosmwasm_schema::write_api;

use rollkit_ibc::msg::{InstantiateMsg, QueryMsg, SudoMsg};
use ibc_client_cw::types::{InstantiateMsg, SudoMsg};

fn main() {
write_api! {
instantiate: InstantiateMsg,
sudo: SudoMsg,
query: QueryMsg,
//query: QueryMsg, // TODO: should be able to renable after https://github.com/cosmos/ibc-rs/pull/1187 is merged
}
}
68 changes: 0 additions & 68 deletions src/context/ctx.rs

This file was deleted.

246 changes: 0 additions & 246 deletions src/context/custom_ctx.rs

This file was deleted.

Loading

0 comments on commit 215b18c

Please sign in to comment.