-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add async support to wasm hooks (#5072)
* added initial async ack support for wasm hooks * added initial working implementation of async acks * removed debug prints * cleanner acks * Update x/ibc-hooks/README.md Co-authored-by: Dev Ojha <[email protected]> * added use case to readme * clippy * clippy * updated hooks to latest * added changelog * updated deps * added proto fix and todo * added initial implementation of ack errors * make protos * better readme * cleanup rust structs * initial params * fixed test * updated async acks based on feedback. Safer this way * add error ack test * added missing types * updated ibc-hooks * tidy * updated osmoutils * updated osmoutils and ibc-hooks after merge * merge main * regen proto * update osmoutils * update ibc hooks * run go get * rl bytecode --------- Co-authored-by: Dev Ojha <[email protected]> Co-authored-by: Adam Tucker <[email protected]>
- Loading branch information
1 parent
6240cab
commit f94e6e1
Showing
40 changed files
with
2,620 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
syntax = "proto3"; | ||
package osmosis.ibchooks; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
import "osmosis/ibc-hooks/params.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/osmosis/v17/x/ibc-hooks/types"; | ||
|
||
message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
package osmosis.ibchooks; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
import "google/protobuf/duration.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/osmosis/v17/x/ibc-hooks/types"; | ||
|
||
message Params { | ||
repeated string allowed_async_ack_contracts = 1 | ||
[ (gogoproto.moretags) = "yaml:\"allowed_async_ack_contracts\"" ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
syntax = "proto3"; | ||
package osmosis.ibchooks; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/osmosis/v17/x/ibc-hooks/types"; | ||
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
// EmitIBCAck checks the sender can emit the ack and writes the IBC | ||
// acknowledgement | ||
rpc EmitIBCAck(MsgEmitIBCAck) returns (MsgEmitIBCAckResponse); | ||
} | ||
|
||
message MsgEmitIBCAck { | ||
string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; | ||
uint64 packet_sequence = 2 | ||
[ (gogoproto.moretags) = "yaml:\"packet_sequence\"" ]; | ||
string channel = 3 [ (gogoproto.moretags) = "yaml:\"channel\"" ]; | ||
} | ||
message MsgEmitIBCAckResponse { | ||
string contract_result = 1 | ||
[ (gogoproto.moretags) = "yaml:\"contract_result\"" ]; | ||
string ibc_ack = 2 [ (gogoproto.moretags) = "yaml:\"ibc_ack\"" ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.