Skip to content

Commit

Permalink
remove old client messages (cosmos#7218)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner authored Sep 1, 2020
1 parent 5560a12 commit d7175e1
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 2,055 deletions.
23 changes: 0 additions & 23 deletions proto/ibc/lightclients/solomachine/v1/solomachine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,4 @@ message TimestampedSignature {
bytes signature = 1;
uint64 timestamp = 2;
}
// MsgCreateClient defines a message to create an IBC client
message MsgCreateClient {
option (gogoproto.goproto_getters) = false;
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
ConsensusState consensus_state = 2
[(gogoproto.moretags) = "yaml:\"consensus_state\""];
}

// MsgUpdateClient defines a message to update an IBC client
message MsgUpdateClient {
option (gogoproto.goproto_getters) = false;
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
Header header = 2;
}

// MsgSubmitClientMisbehaviour defines an sdk.Msg type that supports submitting
// arbitrary Misbehaviour.
message MsgSubmitClientMisbehaviour {
option (gogoproto.goproto_getters) = false;
bytes signer = 1
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
Misbehaviour misbehaviour = 2;
}

16 changes: 2 additions & 14 deletions proto/ibc/localhost/localhost.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,14 @@ import "ibc/client/client.proto";

option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/09-localhost/types";

// MsgCreateClient defines a message to create a localhost client state
message MsgCreateClient {
option (gogoproto.goproto_getters) = false;

bytes signer = 1
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
}

// ClientState defines a loopback (localhost) client. It requires (read-only)
// access to keys outside the client prefix.
message ClientState {
option (gogoproto.goproto_getters) = false;
// client id
string id = 1;
// self chain ID
string chain_id = 2 [
(gogoproto.moretags) = "yaml:\"chain_id\""
];
string chain_id = 2 [(gogoproto.moretags) = "yaml:\"chain_id\""];
// self latest block height
ibc.client.Height height = 3 [
(gogoproto.nullable) = false
];
ibc.client.Height height = 3 [(gogoproto.nullable) = false];
}
57 changes: 2 additions & 55 deletions proto/ibc/tendermint/tendermint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ message ConsensusState {
// commitment root (i.e app hash)
ibc.commitment.MerkleRoot root = 2 [(gogoproto.nullable) = false];
// height at which the consensus state was stored.
ibc.client.Height height = 3 [
(gogoproto.nullable) = false
];
bytes next_validators_hash = 4 [
ibc.client.Height height = 3 [(gogoproto.nullable) = false];
bytes next_validators_hash = 4 [
(gogoproto.casttype) =
"github.com/tendermint/tendermint/libs/bytes.HexBytes",
(gogoproto.moretags) = "yaml:\"next_validators_hash\""
Expand Down Expand Up @@ -129,54 +127,3 @@ message Fraction {
int64 denominator = 2;
}

// MsgCreateClient defines a message to create a tendermint client.
message MsgCreateClient {
option (gogoproto.goproto_getters) = false;

string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
Header header = 2;
Fraction trust_level = 3 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"trust_level\""
];
google.protobuf.Duration trusting_period = 4 [
(gogoproto.nullable) = false,
(gogoproto.stdduration) = true,
(gogoproto.moretags) = "yaml:\"trusting_period\""
];
google.protobuf.Duration unbonding_period = 5 [
(gogoproto.nullable) = false,
(gogoproto.stdduration) = true,
(gogoproto.moretags) = "yaml:\"unbonding_period\""
];
google.protobuf.Duration max_clock_drift = 6 [
(gogoproto.nullable) = false,
(gogoproto.stdduration) = true,
(gogoproto.moretags) = "yaml:\"max_clock_drift\""
];
repeated ics23.ProofSpec proof_specs = 7
[(gogoproto.moretags) = "yaml:\"proof_specs\""];
bytes signer = 8
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
}

// MsgCreateClient defines an sdk.Msg to update a tendermint client state to
// the given header.
message MsgUpdateClient {
option (gogoproto.goproto_getters) = false;

string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
Header header = 2;
bytes signer = 3
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
}

// MsgSubmitClientMisbehaviour defines an sdk.Msg type that submits Evidence for
// light client misbehaviour.
message MsgSubmitClientMisbehaviour {
option (gogoproto.goproto_getters) = false;

Misbehaviour misbehaviour = 1;
bytes signer = 2
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
}
Loading

0 comments on commit d7175e1

Please sign in to comment.