Skip to content

Commit

Permalink
filetree msg sent from wasmd to canined
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Feb 9, 2024
1 parent bdf3688 commit e40bc28
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ A topology diagram of a file's trip starting with our javascript SDK, through th

[Storage Outpost Topology Diagram](https://www.figma.com/community/file/1335344086198579221/storage-outpost-right-to-left)

Complete road map to mainnet and Dapp integration documentation incoming.
A filetree msg has been successfully sent from wasmd to canined in the e2e environment.

A Complete road map to mainnet and Dapp integration documentation incoming soon.

## Contributors

Expand Down
12 changes: 7 additions & 5 deletions e2e/interchaintest/filetree_post_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *ContractTestSuite) TestIcaContractExecutionTestWithFiletree() {
// This has to be the jkl address that's created by the controller (this contract)
// When the channel is opened. If it's not this address, the transaction should error
// Because the controller account should only be allowed to execute msgs for its host pair
Key: "Hey it's Bi from the outpost on another chain. We reached filetree!!! <3",
Key: "Wow it really works <3",
}

// func NewAnyWithValue(v proto.Message) (*Any, error) {} inside ica_msg.go is not returning the type URL of the filetree msg
Expand All @@ -61,10 +61,12 @@ func (s *ContractTestSuite) TestIcaContractExecutionTestWithFiletree() {

fmt.Println("filetree msg as string is", filetreeMsg.String())

// Currently doesn't work, the error message we get is:
// no concrete type registered for type URL canine_chain.filetree.MsgPostKey against interface *types.Msg.
// We also got same error when trying to change the typeURL to 'filetree/PostKey'
// We need to sandbox the 'Any' type better
// Filetree msg sent!
// FOR TEAM: start a shell session within canined's container and run:
// canined q filetree list-pubkeys
// to see the posted public key

// TO DO: Call backs to confirm success

sendStargateMsg := testtypes.NewExecuteMsg_SendCosmosMsgs_FromProto(
[]proto.Message{filetreeMsg}, nil, nil,
Expand Down
28 changes: 14 additions & 14 deletions e2e/interchaintest/logs/test.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
INFO: 2024/02/06 11:37:03 Wasmd First light client is
INFO: 2024/02/06 11:37:03 [
INFO: 2024/02/06 15:17:12 Wasmd First light client is
INFO: 2024/02/06 15:17:12 [
{
"client_id": "07-tendermint-0",
"client_state": {
Expand All @@ -13,20 +13,20 @@ INFO: 2024/02/06 11:37:03 [
}
}
]
INFO: 2024/02/06 11:37:03 Wasmd Second light client is
INFO: 2024/02/06 11:37:03 null
INFO: 2024/02/06 11:37:03 jackal first light client is
INFO: 2024/02/06 11:37:03 [
INFO: 2024/02/06 15:17:12 Wasmd Second light client is
INFO: 2024/02/06 15:17:12 null
INFO: 2024/02/06 15:17:12 jackal first light client is
INFO: 2024/02/06 15:17:12 [
{
"client_id": "07-tendermint-0",
"client_state": {
"chain_id": "wasmd-1"
}
}
]
INFO: 2024/02/06 11:37:03 jackal second light client is
INFO: 2024/02/06 11:37:03 null
INFO: 2024/02/06 11:37:31 {
INFO: 2024/02/06 15:17:12 jackal second light client is
INFO: 2024/02/06 15:17:12 null
INFO: 2024/02/06 15:17:37 {
"id": "connection-0",
"client_id": "07-tendermint-0",
"versions": [
Expand All @@ -48,7 +48,7 @@ INFO: 2024/02/06 11:37:31 {
},
"delay_period": "0"
}
INFO: 2024/02/06 11:37:31 {
INFO: 2024/02/06 15:17:37 {
"id": "connection-localhost",
"client_id": "09-localhost",
"versions": [
Expand All @@ -70,8 +70,8 @@ INFO: 2024/02/06 11:37:31 {
},
"delay_period": "0"
}
INFO: 2024/02/06 11:37:32 The first canined connections are:
INFO: 2024/02/06 11:37:32 {
INFO: 2024/02/06 15:17:37 The first canined connections are:
INFO: 2024/02/06 15:17:37 {
"id": "connection-0",
"client_id": "07-tendermint-0",
"versions": [
Expand All @@ -93,5 +93,5 @@ INFO: 2024/02/06 11:37:32 {
},
"delay_period": "0"
}
INFO: 2024/02/06 11:38:07 [0x1400161db00]
INFO: 2024/02/06 11:38:45 /
INFO: 2024/02/06 15:18:12 [0x14001620e00]
INFO: 2024/02/06 15:18:50 /

0 comments on commit e40bc28

Please sign in to comment.