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

32 lines
738 B
Protocol Buffer
Raw Normal View History

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