Skip to content

Commit

Permalink
Define proto query and tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 28, 2022
1 parent 1cfe0d6 commit 14a0ec4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
19 changes: 16 additions & 3 deletions proto/interchain_security/ccv/provider/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "gogoproto/gogo.proto";
import "interchain_security/ccv/consumer/v1/genesis.proto";
import "interchain_security/ccv/provider/v1/provider.proto";


service Query {
// ConsumerGenesis queries the genesis state needed to start a consumer chain
// whose proposal has been accepted
Expand Down Expand Up @@ -39,6 +38,14 @@ service Query {
option (google.api.http).get =
"/interchain_security/ccv/provider/consumer_chain_stop_proposals";
}

// TODO:
rpc QueryConsumerChainValidatorKeyMapping(
QueryConsumerChainValidatorKeyMappingRequest)
returns (QueryConsumerChainValidatorKeyMappingResponse) {
option (google.api.http).get = "/interchain_security/ccv/provider/"
"consumer_chain_validator_key_mapping";
}
}

message QueryConsumerGenesisRequest { string chain_id = 1; }
Expand All @@ -54,17 +61,23 @@ message QueryConsumerChainsResponse { repeated Chain chains = 1; }

message QueryConsumerChainStartProposalsRequest {}

message QueryConsumerChainStartProposalsResponse {
message QueryConsumerChainStartProposalsResponse {
ConsumerAdditionProposals proposals = 1;
}

message QueryConsumerChainStopProposalsRequest {}

message QueryConsumerChainStopProposalsResponse {
message QueryConsumerChainStopProposalsResponse {
ConsumerRemovalProposals proposals = 1;
}

message Chain {
string chain_id = 1;
string client_id = 2;
}

message QueryConsumerChainValidatorKeyMappingRequest { string placeholder = 1; }

message QueryConsumerChainValidatorKeyMappingResponse {
string placeholder = 1;
}
26 changes: 26 additions & 0 deletions proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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";
import "gogoproto/gogo.proto";
import "interchain_security/ccv/provider/v1/keymap.proto";

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

message MsgDesignateConsensusKeyForConsumerChain { string placeholder = 1; }

message MsgDesignateConsensusKeyForConsumerChainResponse {
string placeholder = 1;
}

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

0 comments on commit 14a0ec4

Please sign in to comment.