0g-chain/proto/zgc/council/v1/tx.proto

32 lines
724 B
Protocol Buffer
Raw Normal View History

2024-05-01 06:08:58 +00:00
syntax = "proto3";
package zgc.council.v1;
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "zgc/council/v1/genesis.proto";
option go_package = "github.com/0glabs/0g-chain/x/council/v1/types";
option (gogoproto.goproto_getters_all) = false;
// Msg defines the council Msg service
service Msg {
2024-05-09 18:54:47 +00:00
rpc Register(MsgRegister) returns (MsgRegisterResponse);
rpc Vote(MsgVote) returns (MsgVoteResponse);
2024-05-01 06:08:58 +00:00
}
message MsgRegister {
2024-05-09 18:54:47 +00:00
string voter = 1;
bytes key = 2;
2024-05-01 06:08:58 +00:00
}
message MsgRegisterResponse {}
message MsgVote {
2024-05-09 18:54:47 +00:00
uint64 council_id = 1 [(gogoproto.customname) = "CouncilID"];
string voter = 2;
repeated Ballot ballots = 3;
2024-05-01 06:08:58 +00:00
}
message MsgVoteResponse {}