Skip to content

Commit

Permalink
Rename and rebuild proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Nov 2, 2022
1 parent 747bef4 commit a1c47bf
Show file tree
Hide file tree
Showing 8 changed files with 1,810 additions and 323 deletions.
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ message ConsumerState {
// UnbondingOpsIndex defines the unbonding operations on the consumer chain
repeated UnbondingOpIndex unbonding_ops_index = 9
[ (gogoproto.nullable) = false ];
KeyAssignment key_map = 10;
KeyAssignment key_assignment = 10;
}

// UnbondingOpIndex defines the genesis information for each unbonding
Expand Down
14 changes: 7 additions & 7 deletions proto/interchain_security/ccv/provider/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ service Query {
}

// TODO:
rpc QueryConsumerChainValidatorKeyAssignmentping(
QueryConsumerChainValidatorKeyAssignmentpingRequest)
returns (QueryConsumerChainValidatorKeyAssignmentpingResponse) {
rpc QueryConsumerChainValidatorKeyAssignment(
QueryConsumerChainValidatorKeyAssignmentRequest)
returns (QueryConsumerChainValidatorKeyAssignmentResponse) {
// TODO: make sure path up to date
option (google.api.http).get = "/interchain_security/ccv/provider/"
"consumer_chain_validator_key_mapping";
"consumer_chain_validator_key_assignment";
}
}

Expand Down Expand Up @@ -79,15 +79,15 @@ message Chain {
string client_id = 2;
}

message QueryConsumerChainValidatorKeyAssignmentpingRequest {
message QueryConsumerChainValidatorKeyAssignmentRequest {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
string chain_id = 1;
string provider_validator_address = 2
[ (gogoproto.moretags) = "yaml:\"address\"" ];
}

message QueryConsumerChainValidatorKeyAssignmentpingResponse {
google.protobuf.Any consumer_validator_pub_key = 1
message QueryConsumerChainValidatorKeyAssignmentResponse {
google.protobuf.Any consumer_consensus_pub_key = 1
[ (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey" ];
}
17 changes: 6 additions & 11 deletions proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
syntax = "proto3";
package interchain_security.ccv.provider.v1;

// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/cosmos/interchain-security/x/ccv/provider/types";

import "google/api/annotations.proto";
Expand All @@ -13,22 +11,19 @@ import "google/protobuf/any.proto";

// Msg defines the Msg service.
service Msg {
rpc DesignateConsensusKeyForConsumerChain(
MsgDesignateConsensusKeyForConsumerChain)
returns (MsgDesignateConsensusKeyForConsumerChainResponse);
// this line is used by starport scaffolding # proto/tx/rpc
rpc AssignConsensusPublicKeyToConsumerChain(
MsgAssignConsensusPublicKeyToConsumerChain)
returns (MsgAssignConsensusPublicKeyToConsumerChainResponse);
}

message MsgDesignateConsensusKeyForConsumerChain {
message MsgAssignConsensusPublicKeyToConsumerChain {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
string chain_id = 1;
string provider_validator_address = 2
[ (gogoproto.moretags) = "yaml:\"address\"" ];
google.protobuf.Any consumer_validator_pub_key = 3
google.protobuf.Any consumer_consensus_pub_key = 3
[ (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey" ];
}

message MsgDesignateConsensusKeyForConsumerChainResponse {}

// this line is used by starport scaffolding # proto/tx/message
message MsgAssignConsensusPublicKeyToConsumerChainResponse {}
131 changes: 66 additions & 65 deletions x/ccv/provider/types/genesis.pb.go

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

Loading

0 comments on commit a1c47bf

Please sign in to comment.