forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ibc: client params allowlist (cosmos#7855)
* ibc: client params allowlist * genesis and gRPC * client * lint * spec * fixes * validate localhost client * move client types back to exported * update genesis * sort clients by id
- Loading branch information
Showing
72 changed files
with
4,453 additions
and
3,230 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
syntax = "proto3"; | ||
package ibc.core.client.v1; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/any.proto"; | ||
import "ibc/core/client/v1/client.proto"; | ||
|
||
// Msg defines the ibc/client Msg service. | ||
service Msg { | ||
// CreateClient defines a rpc handler method for MsgCreateClient. | ||
rpc CreateClient(MsgCreateClient) returns (MsgCreateClientResponse); | ||
|
||
// UpdateClient defines a rpc handler method for MsgUpdateClient. | ||
rpc UpdateClient(MsgUpdateClient) returns (MsgUpdateClientResponse); | ||
|
||
// UpgradeClient defines a rpc handler method for MsgUpgradeClient. | ||
rpc UpgradeClient(MsgUpgradeClient) returns (MsgUpgradeClientResponse); | ||
|
||
// SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. | ||
rpc SubmitMisbehaviour(MsgSubmitMisbehaviour) returns (MsgSubmitMisbehaviourResponse); | ||
} | ||
|
||
// MsgCreateClient defines a message to create an IBC client | ||
message MsgCreateClient { | ||
option (gogoproto.equal) = false; | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
// client unique identifier | ||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; | ||
// light client state | ||
google.protobuf.Any client_state = 2 [(gogoproto.moretags) = "yaml:\"client_state\""]; | ||
// consensus state associated with the client that corresponds to a given | ||
// height. | ||
google.protobuf.Any consensus_state = 3 [(gogoproto.moretags) = "yaml:\"consensus_state\""]; | ||
// signer address | ||
string signer = 4; | ||
} | ||
|
||
// MsgCreateClientResponse defines the Msg/CreateClient response type. | ||
message MsgCreateClientResponse { } | ||
|
||
// MsgUpdateClient defines an sdk.Msg to update a IBC client state using | ||
// the given header. | ||
message MsgUpdateClient { | ||
option (gogoproto.equal) = false; | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
// client unique identifier | ||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; | ||
// header to update the light client | ||
google.protobuf.Any header = 2; | ||
// signer address | ||
string signer = 3; | ||
} | ||
|
||
// MsgUpdateClientResponse defines the Msg/UpdateClient response type. | ||
message MsgUpdateClientResponse { } | ||
|
||
// MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client state | ||
message MsgUpgradeClient { | ||
// client unique identifier | ||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; | ||
// upgraded client state | ||
google.protobuf.Any client_state = 2 [(gogoproto.moretags) = "yaml:\"client_state\""]; | ||
// height at which old chain halts and upgrades (i.e last block executed) | ||
Height upgrade_height = 3 [(gogoproto.moretags) = "yaml:\"upgrade_height\""]; | ||
// proof that old chain committed to new client | ||
bytes proof_upgrade = 4 [(gogoproto.moretags) = "yaml:\"proof_upgrade\""]; | ||
// signer address | ||
string signer = 5; | ||
} | ||
|
||
// MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. | ||
message MsgUpgradeClientResponse { } | ||
|
||
// MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for | ||
// light client misbehaviour. | ||
message MsgSubmitMisbehaviour { | ||
option (gogoproto.equal) = false; | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
// client unique identifier | ||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; | ||
// misbehaviour used for freezing the light client | ||
google.protobuf.Any misbehaviour = 2; | ||
// signer address | ||
string signer = 3; | ||
} | ||
|
||
// MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type. | ||
message MsgSubmitMisbehaviourResponse { } |
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
Oops, something went wrong.