Skip to content

Commit

Permalink
use 'SendCosmosMsgs' API from cw-ica-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Jan 30, 2024
1 parent 798c225 commit feedd5e
Show file tree
Hide file tree
Showing 16 changed files with 6,646 additions and 184 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,20 @@ optimize = """docker run --rm -v "$(pwd)":/code \

[dependencies]
cosmwasm-schema = "1.4.0"
cosmwasm-std = { version = "1.5.0", features = ["ibc3"] }
cosmwasm-std = { version = "1.5.0", features = [
"cosmwasm_1_2",
# Enable this if you only deploy to chains that have CosmWasm 1.4 or higher
# "cosmwasm_1_4",
"stargate",
"ibc3",
] }
cw-storage-plus = "1.1.0"
cw2 = "1.1.0"
schemars = "0.8.10"
serde = { version = "1.0.145", default-features = false, features = ["derive"] }
serde-json-wasm = "0.5.1"
thiserror = { version = "1.0.31" }
cosmos-sdk-proto = { version = "0.20.0", default-features = false }
cosmos-sdk-proto = { version = "0.20.0", default-features = false, features = ["cosmwasm"] }
semver = "1.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1599c9f1caa8ff0ef192a725f296592b5c0e20db57c844d2615cb31cef237d2b cw_ica_controller.wasm
f6ab12707b3bf577767abfb61f0414168b9d3a07481ecab45e507e19c72d4e72 storage_outpost.wasm
00a751167b2395c2cdcb6dac6a80c5d6a013e96873798c1f4c935c871686edea storage_outpost.wasm
2 changes: 1 addition & 1 deletion artifacts/checksums_intermediate.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0da4de988ce76f3ccb193c15edfbfe0ff1869f87d419777db1069c16d307a991 /target/wasm32-unknown-unknown/release/storage_outpost.wasm
7487987e28289a4698bb367272272d32068c0b52f2ee2c2689846147d8abc637 /target/wasm32-unknown-unknown/release/storage_outpost.wasm
Binary file modified artifacts/storage_outpost.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions e2e/interchaintest/filetree_post_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

logger "github.com/JackalLabs/storage-outpost/e2e/interchaintest/logger"

filetreetypes "github.com/jackalLabs/canine-chain/v3/x/filetree/types"
filetreetypes "github.com/JackalLabs/storage-outpost/e2e/interchaintest/filetreetypes"
)

// WARNING: strangelove's test package builds chains running ibc-go/v7
Expand Down Expand Up @@ -38,13 +38,13 @@ func (s *ContractTestSuite) TestIcaContractExecutionTestWithFiletree() {
time.Sleep(time.Duration(30) * time.Second)

s.Run(fmt.Sprintf("TestSendCustomIcaMesssagesSuccess-%s", encoding), func() {
filetreeMsg := filetreetypes.MsgPostkey{
filetreeMsg := filetreetypes.MsgPostKey{
Creator: wasmdUser.FormattedAddress(), // This will soon be the contract address
Key: "Hey it's Bi from the outpost on another chain. We reached filetree!!! <3",
}

// Execute the contract:
err := s.Contract.ExecCustomIcaMessages(ctx, wasmdUser.KeyName(), []proto.Message{&filetreeMsg}, encoding, nil, nil)
err := s.Contract.ExecSendStargateMsgs(ctx, wasmdUser.KeyName(), []proto.Message{&filetreeMsg}, nil, nil)
s.Require().NoError(err)

// We haven't implemented call backs so at this point we could just start a shell session in the container to
Expand Down
Loading

0 comments on commit feedd5e

Please sign in to comment.