mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
32 lines
750 B
Protocol Buffer
32 lines
750 B
Protocol Buffer
syntax = "proto3";
|
|
package zgc.committee.v1;
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "google/protobuf/any.proto";
|
|
import "zgc/committee/v1/genesis.proto";
|
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/committee/v1/types";
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
// Msg defines the committee Msg service
|
|
service Msg {
|
|
rpc Register(MsgRegister) returns (MsgRegisterResponse);
|
|
rpc Vote(MsgVote) returns (MsgVoteResponse);
|
|
}
|
|
|
|
message MsgRegister {
|
|
string voter = 1;
|
|
bytes key = 2;
|
|
}
|
|
|
|
message MsgRegisterResponse {}
|
|
|
|
message MsgVote {
|
|
uint64 committee_id = 1 [(gogoproto.customname) = "CommitteeID"];
|
|
string voter = 2;
|
|
repeated Ballot ballots = 3;
|
|
}
|
|
|
|
message MsgVoteResponse {}
|