2020-08-11 04:49:45 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
package cosmos.gov.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "cosmos/gov/v1beta1/gov.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types";
|
|
|
|
option (gogoproto.goproto_stringer_all) = false;
|
|
|
|
option (gogoproto.stringer_all) = false;
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
|
|
|
|
// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
|
|
// proposal Content.
|
|
|
|
message MsgSubmitProposal {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-09-08 15:06:54 -07:00
|
|
|
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
|
2020-08-11 04:49:45 -07:00
|
|
|
repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
|
|
|
(gogoproto.moretags) = "yaml:\"initial_deposit\""
|
|
|
|
];
|
|
|
|
bytes proposer = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
}
|
|
|
|
|
2020-08-19 00:36:41 -07:00
|
|
|
// MsgVote defines a message to cast a vote.
|
2020-08-11 04:49:45 -07:00
|
|
|
message MsgVote {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-09-08 15:06:54 -07:00
|
|
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""];
|
|
|
|
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
VoteOption option = 3;
|
2020-08-11 04:49:45 -07:00
|
|
|
}
|
|
|
|
|
2020-08-19 00:36:41 -07:00
|
|
|
// MsgDeposit defines a message to submit a deposit to an existing proposal.
|
2020-08-11 04:49:45 -07:00
|
|
|
message MsgDeposit {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-09-08 15:06:54 -07:00
|
|
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""];
|
|
|
|
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
2020-08-11 04:49:45 -07:00
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 3
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
|
|
|
}
|