github.com/Finschia/finschia-sdk@v0.48.1/proto/cosmos/gov/v1beta1/tx.proto (about)

     1  syntax = "proto3";
     2  package cosmos.gov.v1beta1;
     3  
     4  import "cosmos/base/v1beta1/coin.proto";
     5  import "cosmos/gov/v1beta1/gov.proto";
     6  import "cosmos_proto/cosmos.proto";
     7  import "gogoproto/gogo.proto";
     8  import "google/protobuf/any.proto";
     9  
    10  option go_package = "github.com/Finschia/finschia-sdk/x/gov/types";
    11  
    12  // Msg defines the bank Msg service.
    13  service Msg {
    14    // SubmitProposal defines a method to create new proposal given a content.
    15    rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse);
    16  
    17    // Vote defines a method to add a vote on a specific proposal.
    18    rpc Vote(MsgVote) returns (MsgVoteResponse);
    19  
    20    // VoteWeighted defines a method to add a weighted vote on a specific proposal.
    21    //
    22    // Since: cosmos-sdk 0.43
    23    rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse);
    24  
    25    // Deposit defines a method to add deposit on a specific proposal.
    26    rpc Deposit(MsgDeposit) returns (MsgDepositResponse);
    27  }
    28  
    29  // MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
    30  // proposal Content.
    31  message MsgSubmitProposal {
    32    option (gogoproto.equal)            = false;
    33    option (gogoproto.goproto_stringer) = false;
    34    option (gogoproto.stringer)         = false;
    35    option (gogoproto.goproto_getters)  = false;
    36  
    37    google.protobuf.Any content                       = 1 [(cosmos_proto.accepts_interface) = "Content"];
    38    repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [
    39      (gogoproto.nullable)     = false,
    40      (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coins",
    41      (gogoproto.moretags)     = "yaml:\"initial_deposit\""
    42    ];
    43    string proposer = 3;
    44  }
    45  
    46  // MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
    47  message MsgSubmitProposalResponse {
    48    uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""];
    49  }
    50  
    51  // MsgVote defines a message to cast a vote.
    52  message MsgVote {
    53    option (gogoproto.equal)            = false;
    54    option (gogoproto.goproto_stringer) = false;
    55    option (gogoproto.stringer)         = false;
    56    option (gogoproto.goproto_getters)  = false;
    57  
    58    uint64     proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""];
    59    string     voter       = 2;
    60    VoteOption option      = 3;
    61  }
    62  
    63  // MsgVoteResponse defines the Msg/Vote response type.
    64  message MsgVoteResponse {}
    65  
    66  // MsgVoteWeighted defines a message to cast a vote.
    67  //
    68  // Since: cosmos-sdk 0.43
    69  message MsgVoteWeighted {
    70    option (gogoproto.equal)            = false;
    71    option (gogoproto.goproto_stringer) = false;
    72    option (gogoproto.stringer)         = false;
    73    option (gogoproto.goproto_getters)  = false;
    74  
    75    uint64                      proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""];
    76    string                      voter       = 2;
    77    repeated WeightedVoteOption options     = 3 [(gogoproto.nullable) = false];
    78  }
    79  
    80  // MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
    81  //
    82  // Since: cosmos-sdk 0.43
    83  message MsgVoteWeightedResponse {}
    84  
    85  // MsgDeposit defines a message to submit a deposit to an existing proposal.
    86  message MsgDeposit {
    87    option (gogoproto.equal)            = false;
    88    option (gogoproto.goproto_stringer) = false;
    89    option (gogoproto.stringer)         = false;
    90    option (gogoproto.goproto_getters)  = false;
    91  
    92    uint64   proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""];
    93    string   depositor   = 2;
    94    repeated cosmos.base.v1beta1.Coin amount = 3
    95        [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coins"];
    96  }
    97  
    98  // MsgDepositResponse defines the Msg/Deposit response type.
    99  message MsgDepositResponse {}