mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 03:55:19 +00:00
ffef832d45
- Upgrade cosmos-sdk to v0.44.5 from v0.39.2 - Add Legacy Tx Endpoint for backwards compatibility - Add IBC v1.2.3 Support Co-authored-by: DracoLi <draco@dracoli.com> Co-authored-by: drklee3 <derrick@dlee.dev> Co-authored-by: denalimarsh <denalimarsh@gmail.com> Co-authored-by: Draco Li <draco@kava.io> Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com> Co-authored-by: Kevin Davis <karzak@users.noreply.github.com> Co-authored-by: Denali Marsh <denali@kava.io>
42 lines
1.4 KiB
Protocol Buffer
42 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package kava.committee.v1beta1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "google/protobuf/any.proto";
|
|
import "kava/committee/v1beta1/genesis.proto";
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/committee/types";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
// Msg defines the committee Msg service
|
|
service Msg {
|
|
// SubmitProposal defines a method for submitting a committee proposal
|
|
rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse);
|
|
// Vote defines a method for voting on a proposal
|
|
rpc Vote(MsgVote) returns (MsgVoteResponse);
|
|
}
|
|
|
|
// MsgSubmitProposal is used by committee members to create a new proposal that they can vote on.
|
|
message MsgSubmitProposal {
|
|
google.protobuf.Any pub_proposal = 1 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"];
|
|
string proposer = 2;
|
|
uint64 committee_id = 3 [(gogoproto.customname) = "CommitteeID"];
|
|
}
|
|
|
|
// MsgSubmitProposalResponse defines the SubmitProposal response type
|
|
message MsgSubmitProposalResponse {
|
|
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"];
|
|
}
|
|
|
|
// MsgVote is submitted by committee members to vote on proposals.
|
|
message MsgVote {
|
|
uint64 proposal_id = 1 [(gogoproto.customname) = "ProposalID"];
|
|
string voter = 2;
|
|
VoteType vote_type = 3;
|
|
}
|
|
|
|
// MsgVoteResponse defines the Vote response type
|
|
message MsgVoteResponse {}
|