github.com/cosmos/cosmos-sdk@v0.50.10/x/gov/types/v1beta1/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/gov/v1beta1/tx.proto
     3  
     4  package v1beta1
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	types "github.com/cosmos/cosmos-sdk/codec/types"
    11  	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
    12  	types1 "github.com/cosmos/cosmos-sdk/types"
    13  	_ "github.com/cosmos/cosmos-sdk/types/msgservice"
    14  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    15  	_ "github.com/cosmos/gogoproto/gogoproto"
    16  	grpc1 "github.com/cosmos/gogoproto/grpc"
    17  	proto "github.com/cosmos/gogoproto/proto"
    18  	grpc "google.golang.org/grpc"
    19  	codes "google.golang.org/grpc/codes"
    20  	status "google.golang.org/grpc/status"
    21  	io "io"
    22  	math "math"
    23  	math_bits "math/bits"
    24  )
    25  
    26  // Reference imports to suppress errors if they are not otherwise used.
    27  var _ = proto.Marshal
    28  var _ = fmt.Errorf
    29  var _ = math.Inf
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the proto package it is being compiled against.
    33  // A compilation error at this line likely means your copy of the
    34  // proto package needs to be updated.
    35  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    36  
    37  // MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
    38  // proposal Content.
    39  type MsgSubmitProposal struct {
    40  	// content is the proposal's content.
    41  	Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
    42  	// initial_deposit is the deposit value that must be paid at proposal submission.
    43  	InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"initial_deposit"`
    44  	// proposer is the account address of the proposer.
    45  	Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
    46  }
    47  
    48  func (m *MsgSubmitProposal) Reset()         { *m = MsgSubmitProposal{} }
    49  func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) }
    50  func (*MsgSubmitProposal) ProtoMessage()    {}
    51  func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
    52  	return fileDescriptor_3c053992595e3dce, []int{0}
    53  }
    54  func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
    55  	return m.Unmarshal(b)
    56  }
    57  func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    58  	if deterministic {
    59  		return xxx_messageInfo_MsgSubmitProposal.Marshal(b, m, deterministic)
    60  	} else {
    61  		b = b[:cap(b)]
    62  		n, err := m.MarshalToSizedBuffer(b)
    63  		if err != nil {
    64  			return nil, err
    65  		}
    66  		return b[:n], nil
    67  	}
    68  }
    69  func (m *MsgSubmitProposal) XXX_Merge(src proto.Message) {
    70  	xxx_messageInfo_MsgSubmitProposal.Merge(m, src)
    71  }
    72  func (m *MsgSubmitProposal) XXX_Size() int {
    73  	return m.Size()
    74  }
    75  func (m *MsgSubmitProposal) XXX_DiscardUnknown() {
    76  	xxx_messageInfo_MsgSubmitProposal.DiscardUnknown(m)
    77  }
    78  
    79  var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo
    80  
    81  // MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
    82  type MsgSubmitProposalResponse struct {
    83  	// proposal_id defines the unique id of the proposal.
    84  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
    85  }
    86  
    87  func (m *MsgSubmitProposalResponse) Reset()         { *m = MsgSubmitProposalResponse{} }
    88  func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) }
    89  func (*MsgSubmitProposalResponse) ProtoMessage()    {}
    90  func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_3c053992595e3dce, []int{1}
    92  }
    93  func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error {
    94  	return m.Unmarshal(b)
    95  }
    96  func (m *MsgSubmitProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    97  	if deterministic {
    98  		return xxx_messageInfo_MsgSubmitProposalResponse.Marshal(b, m, deterministic)
    99  	} else {
   100  		b = b[:cap(b)]
   101  		n, err := m.MarshalToSizedBuffer(b)
   102  		if err != nil {
   103  			return nil, err
   104  		}
   105  		return b[:n], nil
   106  	}
   107  }
   108  func (m *MsgSubmitProposalResponse) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_MsgSubmitProposalResponse.Merge(m, src)
   110  }
   111  func (m *MsgSubmitProposalResponse) XXX_Size() int {
   112  	return m.Size()
   113  }
   114  func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_MsgSubmitProposalResponse.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo
   119  
   120  func (m *MsgSubmitProposalResponse) GetProposalId() uint64 {
   121  	if m != nil {
   122  		return m.ProposalId
   123  	}
   124  	return 0
   125  }
   126  
   127  // MsgVote defines a message to cast a vote.
   128  type MsgVote struct {
   129  	// proposal_id defines the unique id of the proposal.
   130  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   131  	// voter is the voter address for the proposal.
   132  	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
   133  	// option defines the vote option.
   134  	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
   135  }
   136  
   137  func (m *MsgVote) Reset()         { *m = MsgVote{} }
   138  func (m *MsgVote) String() string { return proto.CompactTextString(m) }
   139  func (*MsgVote) ProtoMessage()    {}
   140  func (*MsgVote) Descriptor() ([]byte, []int) {
   141  	return fileDescriptor_3c053992595e3dce, []int{2}
   142  }
   143  func (m *MsgVote) XXX_Unmarshal(b []byte) error {
   144  	return m.Unmarshal(b)
   145  }
   146  func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   147  	if deterministic {
   148  		return xxx_messageInfo_MsgVote.Marshal(b, m, deterministic)
   149  	} else {
   150  		b = b[:cap(b)]
   151  		n, err := m.MarshalToSizedBuffer(b)
   152  		if err != nil {
   153  			return nil, err
   154  		}
   155  		return b[:n], nil
   156  	}
   157  }
   158  func (m *MsgVote) XXX_Merge(src proto.Message) {
   159  	xxx_messageInfo_MsgVote.Merge(m, src)
   160  }
   161  func (m *MsgVote) XXX_Size() int {
   162  	return m.Size()
   163  }
   164  func (m *MsgVote) XXX_DiscardUnknown() {
   165  	xxx_messageInfo_MsgVote.DiscardUnknown(m)
   166  }
   167  
   168  var xxx_messageInfo_MsgVote proto.InternalMessageInfo
   169  
   170  // MsgVoteResponse defines the Msg/Vote response type.
   171  type MsgVoteResponse struct {
   172  }
   173  
   174  func (m *MsgVoteResponse) Reset()         { *m = MsgVoteResponse{} }
   175  func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) }
   176  func (*MsgVoteResponse) ProtoMessage()    {}
   177  func (*MsgVoteResponse) Descriptor() ([]byte, []int) {
   178  	return fileDescriptor_3c053992595e3dce, []int{3}
   179  }
   180  func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error {
   181  	return m.Unmarshal(b)
   182  }
   183  func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   184  	if deterministic {
   185  		return xxx_messageInfo_MsgVoteResponse.Marshal(b, m, deterministic)
   186  	} else {
   187  		b = b[:cap(b)]
   188  		n, err := m.MarshalToSizedBuffer(b)
   189  		if err != nil {
   190  			return nil, err
   191  		}
   192  		return b[:n], nil
   193  	}
   194  }
   195  func (m *MsgVoteResponse) XXX_Merge(src proto.Message) {
   196  	xxx_messageInfo_MsgVoteResponse.Merge(m, src)
   197  }
   198  func (m *MsgVoteResponse) XXX_Size() int {
   199  	return m.Size()
   200  }
   201  func (m *MsgVoteResponse) XXX_DiscardUnknown() {
   202  	xxx_messageInfo_MsgVoteResponse.DiscardUnknown(m)
   203  }
   204  
   205  var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo
   206  
   207  // MsgVoteWeighted defines a message to cast a vote.
   208  //
   209  // Since: cosmos-sdk 0.43
   210  type MsgVoteWeighted struct {
   211  	// proposal_id defines the unique id of the proposal.
   212  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
   213  	// voter is the voter address for the proposal.
   214  	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
   215  	// options defines the weighted vote options.
   216  	Options []WeightedVoteOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options"`
   217  }
   218  
   219  func (m *MsgVoteWeighted) Reset()         { *m = MsgVoteWeighted{} }
   220  func (m *MsgVoteWeighted) String() string { return proto.CompactTextString(m) }
   221  func (*MsgVoteWeighted) ProtoMessage()    {}
   222  func (*MsgVoteWeighted) Descriptor() ([]byte, []int) {
   223  	return fileDescriptor_3c053992595e3dce, []int{4}
   224  }
   225  func (m *MsgVoteWeighted) XXX_Unmarshal(b []byte) error {
   226  	return m.Unmarshal(b)
   227  }
   228  func (m *MsgVoteWeighted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   229  	if deterministic {
   230  		return xxx_messageInfo_MsgVoteWeighted.Marshal(b, m, deterministic)
   231  	} else {
   232  		b = b[:cap(b)]
   233  		n, err := m.MarshalToSizedBuffer(b)
   234  		if err != nil {
   235  			return nil, err
   236  		}
   237  		return b[:n], nil
   238  	}
   239  }
   240  func (m *MsgVoteWeighted) XXX_Merge(src proto.Message) {
   241  	xxx_messageInfo_MsgVoteWeighted.Merge(m, src)
   242  }
   243  func (m *MsgVoteWeighted) XXX_Size() int {
   244  	return m.Size()
   245  }
   246  func (m *MsgVoteWeighted) XXX_DiscardUnknown() {
   247  	xxx_messageInfo_MsgVoteWeighted.DiscardUnknown(m)
   248  }
   249  
   250  var xxx_messageInfo_MsgVoteWeighted proto.InternalMessageInfo
   251  
   252  // MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
   253  //
   254  // Since: cosmos-sdk 0.43
   255  type MsgVoteWeightedResponse struct {
   256  }
   257  
   258  func (m *MsgVoteWeightedResponse) Reset()         { *m = MsgVoteWeightedResponse{} }
   259  func (m *MsgVoteWeightedResponse) String() string { return proto.CompactTextString(m) }
   260  func (*MsgVoteWeightedResponse) ProtoMessage()    {}
   261  func (*MsgVoteWeightedResponse) Descriptor() ([]byte, []int) {
   262  	return fileDescriptor_3c053992595e3dce, []int{5}
   263  }
   264  func (m *MsgVoteWeightedResponse) XXX_Unmarshal(b []byte) error {
   265  	return m.Unmarshal(b)
   266  }
   267  func (m *MsgVoteWeightedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   268  	if deterministic {
   269  		return xxx_messageInfo_MsgVoteWeightedResponse.Marshal(b, m, deterministic)
   270  	} else {
   271  		b = b[:cap(b)]
   272  		n, err := m.MarshalToSizedBuffer(b)
   273  		if err != nil {
   274  			return nil, err
   275  		}
   276  		return b[:n], nil
   277  	}
   278  }
   279  func (m *MsgVoteWeightedResponse) XXX_Merge(src proto.Message) {
   280  	xxx_messageInfo_MsgVoteWeightedResponse.Merge(m, src)
   281  }
   282  func (m *MsgVoteWeightedResponse) XXX_Size() int {
   283  	return m.Size()
   284  }
   285  func (m *MsgVoteWeightedResponse) XXX_DiscardUnknown() {
   286  	xxx_messageInfo_MsgVoteWeightedResponse.DiscardUnknown(m)
   287  }
   288  
   289  var xxx_messageInfo_MsgVoteWeightedResponse proto.InternalMessageInfo
   290  
   291  // MsgDeposit defines a message to submit a deposit to an existing proposal.
   292  type MsgDeposit struct {
   293  	// proposal_id defines the unique id of the proposal.
   294  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
   295  	// depositor defines the deposit addresses from the proposals.
   296  	Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
   297  	// amount to be deposited by depositor.
   298  	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
   299  }
   300  
   301  func (m *MsgDeposit) Reset()         { *m = MsgDeposit{} }
   302  func (m *MsgDeposit) String() string { return proto.CompactTextString(m) }
   303  func (*MsgDeposit) ProtoMessage()    {}
   304  func (*MsgDeposit) Descriptor() ([]byte, []int) {
   305  	return fileDescriptor_3c053992595e3dce, []int{6}
   306  }
   307  func (m *MsgDeposit) XXX_Unmarshal(b []byte) error {
   308  	return m.Unmarshal(b)
   309  }
   310  func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   311  	if deterministic {
   312  		return xxx_messageInfo_MsgDeposit.Marshal(b, m, deterministic)
   313  	} else {
   314  		b = b[:cap(b)]
   315  		n, err := m.MarshalToSizedBuffer(b)
   316  		if err != nil {
   317  			return nil, err
   318  		}
   319  		return b[:n], nil
   320  	}
   321  }
   322  func (m *MsgDeposit) XXX_Merge(src proto.Message) {
   323  	xxx_messageInfo_MsgDeposit.Merge(m, src)
   324  }
   325  func (m *MsgDeposit) XXX_Size() int {
   326  	return m.Size()
   327  }
   328  func (m *MsgDeposit) XXX_DiscardUnknown() {
   329  	xxx_messageInfo_MsgDeposit.DiscardUnknown(m)
   330  }
   331  
   332  var xxx_messageInfo_MsgDeposit proto.InternalMessageInfo
   333  
   334  // MsgDepositResponse defines the Msg/Deposit response type.
   335  type MsgDepositResponse struct {
   336  }
   337  
   338  func (m *MsgDepositResponse) Reset()         { *m = MsgDepositResponse{} }
   339  func (m *MsgDepositResponse) String() string { return proto.CompactTextString(m) }
   340  func (*MsgDepositResponse) ProtoMessage()    {}
   341  func (*MsgDepositResponse) Descriptor() ([]byte, []int) {
   342  	return fileDescriptor_3c053992595e3dce, []int{7}
   343  }
   344  func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error {
   345  	return m.Unmarshal(b)
   346  }
   347  func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   348  	if deterministic {
   349  		return xxx_messageInfo_MsgDepositResponse.Marshal(b, m, deterministic)
   350  	} else {
   351  		b = b[:cap(b)]
   352  		n, err := m.MarshalToSizedBuffer(b)
   353  		if err != nil {
   354  			return nil, err
   355  		}
   356  		return b[:n], nil
   357  	}
   358  }
   359  func (m *MsgDepositResponse) XXX_Merge(src proto.Message) {
   360  	xxx_messageInfo_MsgDepositResponse.Merge(m, src)
   361  }
   362  func (m *MsgDepositResponse) XXX_Size() int {
   363  	return m.Size()
   364  }
   365  func (m *MsgDepositResponse) XXX_DiscardUnknown() {
   366  	xxx_messageInfo_MsgDepositResponse.DiscardUnknown(m)
   367  }
   368  
   369  var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo
   370  
   371  func init() {
   372  	proto.RegisterType((*MsgSubmitProposal)(nil), "cosmos.gov.v1beta1.MsgSubmitProposal")
   373  	proto.RegisterType((*MsgSubmitProposalResponse)(nil), "cosmos.gov.v1beta1.MsgSubmitProposalResponse")
   374  	proto.RegisterType((*MsgVote)(nil), "cosmos.gov.v1beta1.MsgVote")
   375  	proto.RegisterType((*MsgVoteResponse)(nil), "cosmos.gov.v1beta1.MsgVoteResponse")
   376  	proto.RegisterType((*MsgVoteWeighted)(nil), "cosmos.gov.v1beta1.MsgVoteWeighted")
   377  	proto.RegisterType((*MsgVoteWeightedResponse)(nil), "cosmos.gov.v1beta1.MsgVoteWeightedResponse")
   378  	proto.RegisterType((*MsgDeposit)(nil), "cosmos.gov.v1beta1.MsgDeposit")
   379  	proto.RegisterType((*MsgDepositResponse)(nil), "cosmos.gov.v1beta1.MsgDepositResponse")
   380  }
   381  
   382  func init() { proto.RegisterFile("cosmos/gov/v1beta1/tx.proto", fileDescriptor_3c053992595e3dce) }
   383  
   384  var fileDescriptor_3c053992595e3dce = []byte{
   385  	// 750 bytes of a gzipped FileDescriptorProto
   386  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x3d, 0x6c, 0xd3, 0x40,
   387  	0x14, 0xc7, 0xe3, 0xa4, 0x6d, 0xe8, 0xb5, 0x6a, 0x55, 0x2b, 0xa8, 0x89, 0x5b, 0x39, 0x51, 0x10,
   388  	0x55, 0x08, 0x8a, 0x4d, 0x42, 0xe9, 0x90, 0xad, 0x01, 0x21, 0x3e, 0x14, 0x3e, 0x52, 0x09, 0x24,
   389  	0x96, 0xe0, 0xc4, 0xd7, 0xab, 0x45, 0xe2, 0xb3, 0x72, 0x97, 0xa8, 0xd9, 0x2a, 0x26, 0xd4, 0x89,
   390  	0x99, 0xa9, 0x23, 0x42, 0x0c, 0x19, 0xba, 0xb2, 0x57, 0x4c, 0x15, 0x13, 0x03, 0x2a, 0xa8, 0x1d,
   391  	0x82, 0x58, 0x59, 0x18, 0x91, 0x7d, 0x77, 0x4e, 0xda, 0xa4, 0x69, 0xe9, 0xc0, 0x12, 0xdb, 0xef,
   392  	0xbd, 0xff, 0x7b, 0xf7, 0x7e, 0x7e, 0x2f, 0x06, 0x0b, 0x55, 0x4c, 0xea, 0x98, 0xe8, 0x08, 0xb7,
   393  	0xf4, 0x56, 0xb6, 0x02, 0xa9, 0x91, 0xd5, 0xe9, 0xa6, 0xe6, 0x34, 0x30, 0xc5, 0xb2, 0xcc, 0x9c,
   394  	0x1a, 0xc2, 0x2d, 0x8d, 0x3b, 0x15, 0x95, 0x0b, 0x2a, 0x06, 0x81, 0xbe, 0xa2, 0x8a, 0x2d, 0x9b,
   395  	0x69, 0x94, 0xc5, 0x21, 0x09, 0x5d, 0x3d, 0xf3, 0xc6, 0x98, 0xb7, 0xec, 0x3d, 0xe9, 0x3c, 0x3d,
   396  	0x73, 0x45, 0x10, 0x46, 0x98, 0xd9, 0xdd, 0x3b, 0x21, 0x40, 0x18, 0xa3, 0x1a, 0xd4, 0xbd, 0xa7,
   397  	0x4a, 0x73, 0x5d, 0x37, 0xec, 0x36, 0x77, 0xcd, 0xf3, 0x4a, 0x75, 0x82, 0xf4, 0x56, 0xd6, 0xbd,
   398  	0x70, 0xc7, 0x9c, 0x51, 0xb7, 0x6c, 0xac, 0x7b, 0xbf, 0xcc, 0x94, 0x3c, 0x08, 0x82, 0xb9, 0x22,
   399  	0x41, 0x6b, 0xcd, 0x4a, 0xdd, 0xa2, 0x4f, 0x1a, 0xd8, 0xc1, 0xc4, 0xa8, 0xc9, 0x8f, 0x40, 0xb8,
   400  	0x8a, 0x6d, 0x0a, 0x6d, 0x1a, 0x95, 0x12, 0x52, 0x6a, 0x2a, 0x17, 0xd1, 0x58, 0x39, 0x4d, 0x94,
   401  	0xd3, 0x56, 0xed, 0x76, 0x41, 0xfd, 0xbc, 0x9b, 0x51, 0x06, 0x51, 0x68, 0xb7, 0x99, 0xb6, 0x24,
   402  	0x92, 0xc8, 0xdb, 0x12, 0x98, 0xb5, 0x6c, 0x8b, 0x5a, 0x46, 0xad, 0x6c, 0x42, 0x07, 0x13, 0x8b,
   403  	0x46, 0x83, 0x89, 0x50, 0x6a, 0x2a, 0x17, 0xd3, 0xb8, 0xde, 0xc5, 0xd6, 0x97, 0xc0, 0xb2, 0x0b,
   404  	0x77, 0xf7, 0x0e, 0xe2, 0x81, 0x0f, 0xdf, 0xe3, 0x29, 0x64, 0xd1, 0x8d, 0x66, 0x45, 0xab, 0xe2,
   405  	0x3a, 0x07, 0xc3, 0x2f, 0x19, 0x62, 0xbe, 0xd2, 0x69, 0xdb, 0x81, 0xc4, 0x13, 0x90, 0x77, 0xdd,
   406  	0x4e, 0x7a, 0xba, 0x06, 0x91, 0x51, 0x6d, 0x97, 0x5d, 0xf0, 0xe4, 0x7d, 0xb7, 0x93, 0x96, 0x4a,
   407  	0x33, 0xbc, 0xf2, 0x1d, 0x56, 0x58, 0x5e, 0x06, 0x97, 0x1c, 0xaf, 0x51, 0xd8, 0x88, 0x86, 0x12,
   408  	0x52, 0x6a, 0xb2, 0x10, 0xfd, 0xb2, 0x9b, 0x89, 0xf0, 0x73, 0xac, 0x9a, 0x66, 0x03, 0x12, 0xb2,
   409  	0x46, 0x1b, 0x96, 0x8d, 0x4a, 0x7e, 0x64, 0x7e, 0xe5, 0xcd, 0x4e, 0x3c, 0xf0, 0x73, 0x27, 0x1e,
   410  	0x78, 0xdd, 0xed, 0xa4, 0x7d, 0xf3, 0x76, 0xb7, 0x93, 0x5e, 0xec, 0x3b, 0xcd, 0x00, 0xca, 0x64,
   411  	0x09, 0xc4, 0x06, 0x8c, 0x25, 0x48, 0x1c, 0x6c, 0x13, 0x28, 0xdf, 0x02, 0x53, 0x0e, 0xb7, 0x95,
   412  	0x2d, 0xd3, 0x63, 0x3d, 0x56, 0x88, 0xfc, 0x3a, 0x88, 0xf7, 0x9b, 0x59, 0x17, 0x40, 0x58, 0xee,
   413  	0x9b, 0xc9, 0x4f, 0x12, 0x08, 0x17, 0x09, 0x7a, 0x86, 0x29, 0x94, 0xe3, 0x43, 0x52, 0xf4, 0x07,
   414  	0xcb, 0x1a, 0x18, 0x6f, 0x61, 0x0a, 0x1b, 0xd1, 0xe0, 0x19, 0xbd, 0xb2, 0x30, 0x79, 0x05, 0x4c,
   415  	0x60, 0x87, 0x5a, 0xd8, 0xf6, 0xe0, 0xcc, 0xe4, 0x54, 0x6d, 0xc8, 0x1b, 0x76, 0x4b, 0x3f, 0xf6,
   416  	0xa2, 0x4a, 0x3c, 0x3a, 0x7f, 0xad, 0x1f, 0x10, 0xcb, 0xe5, 0xd2, 0x91, 0x8f, 0xd3, 0x71, 0x85,
   417  	0xc9, 0x39, 0x30, 0xcb, 0x6f, 0x05, 0x89, 0xe4, 0x1f, 0xc9, 0xb7, 0x3d, 0x87, 0x16, 0xda, 0xa0,
   418  	0xd0, 0xbc, 0x20, 0x9d, 0x7f, 0x6e, 0xf8, 0x21, 0x08, 0xb3, 0x16, 0x48, 0x34, 0xe4, 0xcd, 0xe4,
   419  	0xd2, 0xb0, 0x8e, 0xc5, 0xa9, 0x7a, 0x9d, 0x17, 0x26, 0xdd, 0x01, 0x65, 0xf5, 0x45, 0x86, 0x7c,
   420  	0x76, 0x38, 0x05, 0x65, 0x90, 0x82, 0x48, 0x98, 0x8c, 0x81, 0xf9, 0x13, 0x26, 0x9f, 0xca, 0xc7,
   421  	0x20, 0x00, 0x45, 0x82, 0xc4, 0xe4, 0x5e, 0x10, 0xc8, 0x0a, 0x98, 0xe4, 0x4b, 0x87, 0xcf, 0x86,
   422  	0xd2, 0x0b, 0x95, 0xdb, 0x60, 0xc2, 0xa8, 0xe3, 0xa6, 0x4d, 0x39, 0x97, 0xff, 0xb0, 0xab, 0xbc,
   423  	0x60, 0x7e, 0x59, 0x60, 0xdc, 0xfa, 0x96, 0xf0, 0x50, 0xf6, 0x8e, 0xe5, 0xe2, 0xbc, 0x7c, 0x1c,
   424  	0x27, 0xe7, 0x93, 0x8c, 0x00, 0xb9, 0xf7, 0x24, 0x20, 0xe6, 0x7e, 0x07, 0x41, 0xa8, 0x48, 0x90,
   425  	0xbc, 0x0e, 0x66, 0x4e, 0xfc, 0xcd, 0x5d, 0x1d, 0xf6, 0xa2, 0x07, 0xb6, 0x55, 0xc9, 0x9c, 0x2b,
   426  	0xcc, 0x5f, 0xea, 0x7b, 0x60, 0xcc, 0xdb, 0xcc, 0x85, 0x53, 0x64, 0xae, 0x53, 0xb9, 0x32, 0xc2,
   427  	0xe9, 0x67, 0x7a, 0x09, 0xa6, 0x8f, 0x2d, 0xc4, 0x28, 0x91, 0x08, 0x52, 0xae, 0x9f, 0x23, 0xc8,
   428  	0xaf, 0xf0, 0x14, 0x84, 0xc5, 0x70, 0xa9, 0xa7, 0xe8, 0xb8, 0x5f, 0x59, 0x1a, 0xed, 0x17, 0x29,
   429  	0x95, 0xf1, 0x2d, 0xf7, 0x4d, 0x16, 0x1e, 0xec, 0x1d, 0xaa, 0xd2, 0xfe, 0xa1, 0x2a, 0xfd, 0x38,
   430  	0x54, 0xa5, 0xb7, 0x47, 0x6a, 0x60, 0xff, 0x48, 0x0d, 0x7c, 0x3d, 0x52, 0x03, 0x2f, 0x6e, 0x8c,
   431  	0x9c, 0x91, 0x4d, 0xef, 0x03, 0xe9, 0x4d, 0x8a, 0xf8, 0x4c, 0x56, 0x26, 0xbc, 0xaf, 0xce, 0xcd,
   432  	0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x84, 0xd3, 0xd2, 0xa1, 0x94, 0x07, 0x00, 0x00,
   433  }
   434  
   435  // Reference imports to suppress errors if they are not otherwise used.
   436  var _ context.Context
   437  var _ grpc.ClientConn
   438  
   439  // This is a compile-time assertion to ensure that this generated file
   440  // is compatible with the grpc package it is being compiled against.
   441  const _ = grpc.SupportPackageIsVersion4
   442  
   443  // MsgClient is the client API for Msg service.
   444  //
   445  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   446  type MsgClient interface {
   447  	// SubmitProposal defines a method to create new proposal given a content.
   448  	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
   449  	// Vote defines a method to add a vote on a specific proposal.
   450  	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
   451  	// VoteWeighted defines a method to add a weighted vote on a specific proposal.
   452  	//
   453  	// Since: cosmos-sdk 0.43
   454  	VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error)
   455  	// Deposit defines a method to add deposit on a specific proposal.
   456  	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
   457  }
   458  
   459  type msgClient struct {
   460  	cc grpc1.ClientConn
   461  }
   462  
   463  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   464  	return &msgClient{cc}
   465  }
   466  
   467  func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) {
   468  	out := new(MsgSubmitProposalResponse)
   469  	err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta1.Msg/SubmitProposal", in, out, opts...)
   470  	if err != nil {
   471  		return nil, err
   472  	}
   473  	return out, nil
   474  }
   475  
   476  func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) {
   477  	out := new(MsgVoteResponse)
   478  	err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta1.Msg/Vote", in, out, opts...)
   479  	if err != nil {
   480  		return nil, err
   481  	}
   482  	return out, nil
   483  }
   484  
   485  func (c *msgClient) VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error) {
   486  	out := new(MsgVoteWeightedResponse)
   487  	err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta1.Msg/VoteWeighted", in, out, opts...)
   488  	if err != nil {
   489  		return nil, err
   490  	}
   491  	return out, nil
   492  }
   493  
   494  func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) {
   495  	out := new(MsgDepositResponse)
   496  	err := c.cc.Invoke(ctx, "/cosmos.gov.v1beta1.Msg/Deposit", in, out, opts...)
   497  	if err != nil {
   498  		return nil, err
   499  	}
   500  	return out, nil
   501  }
   502  
   503  // MsgServer is the server API for Msg service.
   504  type MsgServer interface {
   505  	// SubmitProposal defines a method to create new proposal given a content.
   506  	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
   507  	// Vote defines a method to add a vote on a specific proposal.
   508  	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
   509  	// VoteWeighted defines a method to add a weighted vote on a specific proposal.
   510  	//
   511  	// Since: cosmos-sdk 0.43
   512  	VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
   513  	// Deposit defines a method to add deposit on a specific proposal.
   514  	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
   515  }
   516  
   517  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   518  type UnimplementedMsgServer struct {
   519  }
   520  
   521  func (*UnimplementedMsgServer) SubmitProposal(ctx context.Context, req *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) {
   522  	return nil, status.Errorf(codes.Unimplemented, "method SubmitProposal not implemented")
   523  }
   524  func (*UnimplementedMsgServer) Vote(ctx context.Context, req *MsgVote) (*MsgVoteResponse, error) {
   525  	return nil, status.Errorf(codes.Unimplemented, "method Vote not implemented")
   526  }
   527  func (*UnimplementedMsgServer) VoteWeighted(ctx context.Context, req *MsgVoteWeighted) (*MsgVoteWeightedResponse, error) {
   528  	return nil, status.Errorf(codes.Unimplemented, "method VoteWeighted not implemented")
   529  }
   530  func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) {
   531  	return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented")
   532  }
   533  
   534  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   535  	s.RegisterService(&_Msg_serviceDesc, srv)
   536  }
   537  
   538  func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   539  	in := new(MsgSubmitProposal)
   540  	if err := dec(in); err != nil {
   541  		return nil, err
   542  	}
   543  	if interceptor == nil {
   544  		return srv.(MsgServer).SubmitProposal(ctx, in)
   545  	}
   546  	info := &grpc.UnaryServerInfo{
   547  		Server:     srv,
   548  		FullMethod: "/cosmos.gov.v1beta1.Msg/SubmitProposal",
   549  	}
   550  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   551  		return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal))
   552  	}
   553  	return interceptor(ctx, in, info, handler)
   554  }
   555  
   556  func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   557  	in := new(MsgVote)
   558  	if err := dec(in); err != nil {
   559  		return nil, err
   560  	}
   561  	if interceptor == nil {
   562  		return srv.(MsgServer).Vote(ctx, in)
   563  	}
   564  	info := &grpc.UnaryServerInfo{
   565  		Server:     srv,
   566  		FullMethod: "/cosmos.gov.v1beta1.Msg/Vote",
   567  	}
   568  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   569  		return srv.(MsgServer).Vote(ctx, req.(*MsgVote))
   570  	}
   571  	return interceptor(ctx, in, info, handler)
   572  }
   573  
   574  func _Msg_VoteWeighted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   575  	in := new(MsgVoteWeighted)
   576  	if err := dec(in); err != nil {
   577  		return nil, err
   578  	}
   579  	if interceptor == nil {
   580  		return srv.(MsgServer).VoteWeighted(ctx, in)
   581  	}
   582  	info := &grpc.UnaryServerInfo{
   583  		Server:     srv,
   584  		FullMethod: "/cosmos.gov.v1beta1.Msg/VoteWeighted",
   585  	}
   586  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   587  		return srv.(MsgServer).VoteWeighted(ctx, req.(*MsgVoteWeighted))
   588  	}
   589  	return interceptor(ctx, in, info, handler)
   590  }
   591  
   592  func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   593  	in := new(MsgDeposit)
   594  	if err := dec(in); err != nil {
   595  		return nil, err
   596  	}
   597  	if interceptor == nil {
   598  		return srv.(MsgServer).Deposit(ctx, in)
   599  	}
   600  	info := &grpc.UnaryServerInfo{
   601  		Server:     srv,
   602  		FullMethod: "/cosmos.gov.v1beta1.Msg/Deposit",
   603  	}
   604  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   605  		return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit))
   606  	}
   607  	return interceptor(ctx, in, info, handler)
   608  }
   609  
   610  var _Msg_serviceDesc = grpc.ServiceDesc{
   611  	ServiceName: "cosmos.gov.v1beta1.Msg",
   612  	HandlerType: (*MsgServer)(nil),
   613  	Methods: []grpc.MethodDesc{
   614  		{
   615  			MethodName: "SubmitProposal",
   616  			Handler:    _Msg_SubmitProposal_Handler,
   617  		},
   618  		{
   619  			MethodName: "Vote",
   620  			Handler:    _Msg_Vote_Handler,
   621  		},
   622  		{
   623  			MethodName: "VoteWeighted",
   624  			Handler:    _Msg_VoteWeighted_Handler,
   625  		},
   626  		{
   627  			MethodName: "Deposit",
   628  			Handler:    _Msg_Deposit_Handler,
   629  		},
   630  	},
   631  	Streams:  []grpc.StreamDesc{},
   632  	Metadata: "cosmos/gov/v1beta1/tx.proto",
   633  }
   634  
   635  func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) {
   636  	size := m.Size()
   637  	dAtA = make([]byte, size)
   638  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   639  	if err != nil {
   640  		return nil, err
   641  	}
   642  	return dAtA[:n], nil
   643  }
   644  
   645  func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) {
   646  	size := m.Size()
   647  	return m.MarshalToSizedBuffer(dAtA[:size])
   648  }
   649  
   650  func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   651  	i := len(dAtA)
   652  	_ = i
   653  	var l int
   654  	_ = l
   655  	if len(m.Proposer) > 0 {
   656  		i -= len(m.Proposer)
   657  		copy(dAtA[i:], m.Proposer)
   658  		i = encodeVarintTx(dAtA, i, uint64(len(m.Proposer)))
   659  		i--
   660  		dAtA[i] = 0x1a
   661  	}
   662  	if len(m.InitialDeposit) > 0 {
   663  		for iNdEx := len(m.InitialDeposit) - 1; iNdEx >= 0; iNdEx-- {
   664  			{
   665  				size, err := m.InitialDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   666  				if err != nil {
   667  					return 0, err
   668  				}
   669  				i -= size
   670  				i = encodeVarintTx(dAtA, i, uint64(size))
   671  			}
   672  			i--
   673  			dAtA[i] = 0x12
   674  		}
   675  	}
   676  	if m.Content != nil {
   677  		{
   678  			size, err := m.Content.MarshalToSizedBuffer(dAtA[:i])
   679  			if err != nil {
   680  				return 0, err
   681  			}
   682  			i -= size
   683  			i = encodeVarintTx(dAtA, i, uint64(size))
   684  		}
   685  		i--
   686  		dAtA[i] = 0xa
   687  	}
   688  	return len(dAtA) - i, nil
   689  }
   690  
   691  func (m *MsgSubmitProposalResponse) Marshal() (dAtA []byte, err error) {
   692  	size := m.Size()
   693  	dAtA = make([]byte, size)
   694  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   695  	if err != nil {
   696  		return nil, err
   697  	}
   698  	return dAtA[:n], nil
   699  }
   700  
   701  func (m *MsgSubmitProposalResponse) MarshalTo(dAtA []byte) (int, error) {
   702  	size := m.Size()
   703  	return m.MarshalToSizedBuffer(dAtA[:size])
   704  }
   705  
   706  func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   707  	i := len(dAtA)
   708  	_ = i
   709  	var l int
   710  	_ = l
   711  	if m.ProposalId != 0 {
   712  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
   713  		i--
   714  		dAtA[i] = 0x8
   715  	}
   716  	return len(dAtA) - i, nil
   717  }
   718  
   719  func (m *MsgVote) Marshal() (dAtA []byte, err error) {
   720  	size := m.Size()
   721  	dAtA = make([]byte, size)
   722  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   723  	if err != nil {
   724  		return nil, err
   725  	}
   726  	return dAtA[:n], nil
   727  }
   728  
   729  func (m *MsgVote) MarshalTo(dAtA []byte) (int, error) {
   730  	size := m.Size()
   731  	return m.MarshalToSizedBuffer(dAtA[:size])
   732  }
   733  
   734  func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   735  	i := len(dAtA)
   736  	_ = i
   737  	var l int
   738  	_ = l
   739  	if m.Option != 0 {
   740  		i = encodeVarintTx(dAtA, i, uint64(m.Option))
   741  		i--
   742  		dAtA[i] = 0x18
   743  	}
   744  	if len(m.Voter) > 0 {
   745  		i -= len(m.Voter)
   746  		copy(dAtA[i:], m.Voter)
   747  		i = encodeVarintTx(dAtA, i, uint64(len(m.Voter)))
   748  		i--
   749  		dAtA[i] = 0x12
   750  	}
   751  	if m.ProposalId != 0 {
   752  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
   753  		i--
   754  		dAtA[i] = 0x8
   755  	}
   756  	return len(dAtA) - i, nil
   757  }
   758  
   759  func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error) {
   760  	size := m.Size()
   761  	dAtA = make([]byte, size)
   762  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   763  	if err != nil {
   764  		return nil, err
   765  	}
   766  	return dAtA[:n], nil
   767  }
   768  
   769  func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error) {
   770  	size := m.Size()
   771  	return m.MarshalToSizedBuffer(dAtA[:size])
   772  }
   773  
   774  func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   775  	i := len(dAtA)
   776  	_ = i
   777  	var l int
   778  	_ = l
   779  	return len(dAtA) - i, nil
   780  }
   781  
   782  func (m *MsgVoteWeighted) Marshal() (dAtA []byte, err error) {
   783  	size := m.Size()
   784  	dAtA = make([]byte, size)
   785  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   786  	if err != nil {
   787  		return nil, err
   788  	}
   789  	return dAtA[:n], nil
   790  }
   791  
   792  func (m *MsgVoteWeighted) MarshalTo(dAtA []byte) (int, error) {
   793  	size := m.Size()
   794  	return m.MarshalToSizedBuffer(dAtA[:size])
   795  }
   796  
   797  func (m *MsgVoteWeighted) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   798  	i := len(dAtA)
   799  	_ = i
   800  	var l int
   801  	_ = l
   802  	if len(m.Options) > 0 {
   803  		for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- {
   804  			{
   805  				size, err := m.Options[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   806  				if err != nil {
   807  					return 0, err
   808  				}
   809  				i -= size
   810  				i = encodeVarintTx(dAtA, i, uint64(size))
   811  			}
   812  			i--
   813  			dAtA[i] = 0x1a
   814  		}
   815  	}
   816  	if len(m.Voter) > 0 {
   817  		i -= len(m.Voter)
   818  		copy(dAtA[i:], m.Voter)
   819  		i = encodeVarintTx(dAtA, i, uint64(len(m.Voter)))
   820  		i--
   821  		dAtA[i] = 0x12
   822  	}
   823  	if m.ProposalId != 0 {
   824  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
   825  		i--
   826  		dAtA[i] = 0x8
   827  	}
   828  	return len(dAtA) - i, nil
   829  }
   830  
   831  func (m *MsgVoteWeightedResponse) Marshal() (dAtA []byte, err error) {
   832  	size := m.Size()
   833  	dAtA = make([]byte, size)
   834  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   835  	if err != nil {
   836  		return nil, err
   837  	}
   838  	return dAtA[:n], nil
   839  }
   840  
   841  func (m *MsgVoteWeightedResponse) MarshalTo(dAtA []byte) (int, error) {
   842  	size := m.Size()
   843  	return m.MarshalToSizedBuffer(dAtA[:size])
   844  }
   845  
   846  func (m *MsgVoteWeightedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   847  	i := len(dAtA)
   848  	_ = i
   849  	var l int
   850  	_ = l
   851  	return len(dAtA) - i, nil
   852  }
   853  
   854  func (m *MsgDeposit) Marshal() (dAtA []byte, err error) {
   855  	size := m.Size()
   856  	dAtA = make([]byte, size)
   857  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   858  	if err != nil {
   859  		return nil, err
   860  	}
   861  	return dAtA[:n], nil
   862  }
   863  
   864  func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error) {
   865  	size := m.Size()
   866  	return m.MarshalToSizedBuffer(dAtA[:size])
   867  }
   868  
   869  func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   870  	i := len(dAtA)
   871  	_ = i
   872  	var l int
   873  	_ = l
   874  	if len(m.Amount) > 0 {
   875  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
   876  			{
   877  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   878  				if err != nil {
   879  					return 0, err
   880  				}
   881  				i -= size
   882  				i = encodeVarintTx(dAtA, i, uint64(size))
   883  			}
   884  			i--
   885  			dAtA[i] = 0x1a
   886  		}
   887  	}
   888  	if len(m.Depositor) > 0 {
   889  		i -= len(m.Depositor)
   890  		copy(dAtA[i:], m.Depositor)
   891  		i = encodeVarintTx(dAtA, i, uint64(len(m.Depositor)))
   892  		i--
   893  		dAtA[i] = 0x12
   894  	}
   895  	if m.ProposalId != 0 {
   896  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
   897  		i--
   898  		dAtA[i] = 0x8
   899  	}
   900  	return len(dAtA) - i, nil
   901  }
   902  
   903  func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error) {
   904  	size := m.Size()
   905  	dAtA = make([]byte, size)
   906  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   907  	if err != nil {
   908  		return nil, err
   909  	}
   910  	return dAtA[:n], nil
   911  }
   912  
   913  func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) {
   914  	size := m.Size()
   915  	return m.MarshalToSizedBuffer(dAtA[:size])
   916  }
   917  
   918  func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   919  	i := len(dAtA)
   920  	_ = i
   921  	var l int
   922  	_ = l
   923  	return len(dAtA) - i, nil
   924  }
   925  
   926  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
   927  	offset -= sovTx(v)
   928  	base := offset
   929  	for v >= 1<<7 {
   930  		dAtA[offset] = uint8(v&0x7f | 0x80)
   931  		v >>= 7
   932  		offset++
   933  	}
   934  	dAtA[offset] = uint8(v)
   935  	return base
   936  }
   937  func (m *MsgSubmitProposal) Size() (n int) {
   938  	if m == nil {
   939  		return 0
   940  	}
   941  	var l int
   942  	_ = l
   943  	if m.Content != nil {
   944  		l = m.Content.Size()
   945  		n += 1 + l + sovTx(uint64(l))
   946  	}
   947  	if len(m.InitialDeposit) > 0 {
   948  		for _, e := range m.InitialDeposit {
   949  			l = e.Size()
   950  			n += 1 + l + sovTx(uint64(l))
   951  		}
   952  	}
   953  	l = len(m.Proposer)
   954  	if l > 0 {
   955  		n += 1 + l + sovTx(uint64(l))
   956  	}
   957  	return n
   958  }
   959  
   960  func (m *MsgSubmitProposalResponse) Size() (n int) {
   961  	if m == nil {
   962  		return 0
   963  	}
   964  	var l int
   965  	_ = l
   966  	if m.ProposalId != 0 {
   967  		n += 1 + sovTx(uint64(m.ProposalId))
   968  	}
   969  	return n
   970  }
   971  
   972  func (m *MsgVote) Size() (n int) {
   973  	if m == nil {
   974  		return 0
   975  	}
   976  	var l int
   977  	_ = l
   978  	if m.ProposalId != 0 {
   979  		n += 1 + sovTx(uint64(m.ProposalId))
   980  	}
   981  	l = len(m.Voter)
   982  	if l > 0 {
   983  		n += 1 + l + sovTx(uint64(l))
   984  	}
   985  	if m.Option != 0 {
   986  		n += 1 + sovTx(uint64(m.Option))
   987  	}
   988  	return n
   989  }
   990  
   991  func (m *MsgVoteResponse) Size() (n int) {
   992  	if m == nil {
   993  		return 0
   994  	}
   995  	var l int
   996  	_ = l
   997  	return n
   998  }
   999  
  1000  func (m *MsgVoteWeighted) Size() (n int) {
  1001  	if m == nil {
  1002  		return 0
  1003  	}
  1004  	var l int
  1005  	_ = l
  1006  	if m.ProposalId != 0 {
  1007  		n += 1 + sovTx(uint64(m.ProposalId))
  1008  	}
  1009  	l = len(m.Voter)
  1010  	if l > 0 {
  1011  		n += 1 + l + sovTx(uint64(l))
  1012  	}
  1013  	if len(m.Options) > 0 {
  1014  		for _, e := range m.Options {
  1015  			l = e.Size()
  1016  			n += 1 + l + sovTx(uint64(l))
  1017  		}
  1018  	}
  1019  	return n
  1020  }
  1021  
  1022  func (m *MsgVoteWeightedResponse) Size() (n int) {
  1023  	if m == nil {
  1024  		return 0
  1025  	}
  1026  	var l int
  1027  	_ = l
  1028  	return n
  1029  }
  1030  
  1031  func (m *MsgDeposit) Size() (n int) {
  1032  	if m == nil {
  1033  		return 0
  1034  	}
  1035  	var l int
  1036  	_ = l
  1037  	if m.ProposalId != 0 {
  1038  		n += 1 + sovTx(uint64(m.ProposalId))
  1039  	}
  1040  	l = len(m.Depositor)
  1041  	if l > 0 {
  1042  		n += 1 + l + sovTx(uint64(l))
  1043  	}
  1044  	if len(m.Amount) > 0 {
  1045  		for _, e := range m.Amount {
  1046  			l = e.Size()
  1047  			n += 1 + l + sovTx(uint64(l))
  1048  		}
  1049  	}
  1050  	return n
  1051  }
  1052  
  1053  func (m *MsgDepositResponse) Size() (n int) {
  1054  	if m == nil {
  1055  		return 0
  1056  	}
  1057  	var l int
  1058  	_ = l
  1059  	return n
  1060  }
  1061  
  1062  func sovTx(x uint64) (n int) {
  1063  	return (math_bits.Len64(x|1) + 6) / 7
  1064  }
  1065  func sozTx(x uint64) (n int) {
  1066  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1067  }
  1068  func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error {
  1069  	l := len(dAtA)
  1070  	iNdEx := 0
  1071  	for iNdEx < l {
  1072  		preIndex := iNdEx
  1073  		var wire uint64
  1074  		for shift := uint(0); ; shift += 7 {
  1075  			if shift >= 64 {
  1076  				return ErrIntOverflowTx
  1077  			}
  1078  			if iNdEx >= l {
  1079  				return io.ErrUnexpectedEOF
  1080  			}
  1081  			b := dAtA[iNdEx]
  1082  			iNdEx++
  1083  			wire |= uint64(b&0x7F) << shift
  1084  			if b < 0x80 {
  1085  				break
  1086  			}
  1087  		}
  1088  		fieldNum := int32(wire >> 3)
  1089  		wireType := int(wire & 0x7)
  1090  		if wireType == 4 {
  1091  			return fmt.Errorf("proto: MsgSubmitProposal: wiretype end group for non-group")
  1092  		}
  1093  		if fieldNum <= 0 {
  1094  			return fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  1095  		}
  1096  		switch fieldNum {
  1097  		case 1:
  1098  			if wireType != 2 {
  1099  				return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  1100  			}
  1101  			var msglen int
  1102  			for shift := uint(0); ; shift += 7 {
  1103  				if shift >= 64 {
  1104  					return ErrIntOverflowTx
  1105  				}
  1106  				if iNdEx >= l {
  1107  					return io.ErrUnexpectedEOF
  1108  				}
  1109  				b := dAtA[iNdEx]
  1110  				iNdEx++
  1111  				msglen |= int(b&0x7F) << shift
  1112  				if b < 0x80 {
  1113  					break
  1114  				}
  1115  			}
  1116  			if msglen < 0 {
  1117  				return ErrInvalidLengthTx
  1118  			}
  1119  			postIndex := iNdEx + msglen
  1120  			if postIndex < 0 {
  1121  				return ErrInvalidLengthTx
  1122  			}
  1123  			if postIndex > l {
  1124  				return io.ErrUnexpectedEOF
  1125  			}
  1126  			if m.Content == nil {
  1127  				m.Content = &types.Any{}
  1128  			}
  1129  			if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1130  				return err
  1131  			}
  1132  			iNdEx = postIndex
  1133  		case 2:
  1134  			if wireType != 2 {
  1135  				return fmt.Errorf("proto: wrong wireType = %d for field InitialDeposit", wireType)
  1136  			}
  1137  			var msglen int
  1138  			for shift := uint(0); ; shift += 7 {
  1139  				if shift >= 64 {
  1140  					return ErrIntOverflowTx
  1141  				}
  1142  				if iNdEx >= l {
  1143  					return io.ErrUnexpectedEOF
  1144  				}
  1145  				b := dAtA[iNdEx]
  1146  				iNdEx++
  1147  				msglen |= int(b&0x7F) << shift
  1148  				if b < 0x80 {
  1149  					break
  1150  				}
  1151  			}
  1152  			if msglen < 0 {
  1153  				return ErrInvalidLengthTx
  1154  			}
  1155  			postIndex := iNdEx + msglen
  1156  			if postIndex < 0 {
  1157  				return ErrInvalidLengthTx
  1158  			}
  1159  			if postIndex > l {
  1160  				return io.ErrUnexpectedEOF
  1161  			}
  1162  			m.InitialDeposit = append(m.InitialDeposit, types1.Coin{})
  1163  			if err := m.InitialDeposit[len(m.InitialDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1164  				return err
  1165  			}
  1166  			iNdEx = postIndex
  1167  		case 3:
  1168  			if wireType != 2 {
  1169  				return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType)
  1170  			}
  1171  			var stringLen uint64
  1172  			for shift := uint(0); ; shift += 7 {
  1173  				if shift >= 64 {
  1174  					return ErrIntOverflowTx
  1175  				}
  1176  				if iNdEx >= l {
  1177  					return io.ErrUnexpectedEOF
  1178  				}
  1179  				b := dAtA[iNdEx]
  1180  				iNdEx++
  1181  				stringLen |= uint64(b&0x7F) << shift
  1182  				if b < 0x80 {
  1183  					break
  1184  				}
  1185  			}
  1186  			intStringLen := int(stringLen)
  1187  			if intStringLen < 0 {
  1188  				return ErrInvalidLengthTx
  1189  			}
  1190  			postIndex := iNdEx + intStringLen
  1191  			if postIndex < 0 {
  1192  				return ErrInvalidLengthTx
  1193  			}
  1194  			if postIndex > l {
  1195  				return io.ErrUnexpectedEOF
  1196  			}
  1197  			m.Proposer = string(dAtA[iNdEx:postIndex])
  1198  			iNdEx = postIndex
  1199  		default:
  1200  			iNdEx = preIndex
  1201  			skippy, err := skipTx(dAtA[iNdEx:])
  1202  			if err != nil {
  1203  				return err
  1204  			}
  1205  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1206  				return ErrInvalidLengthTx
  1207  			}
  1208  			if (iNdEx + skippy) > l {
  1209  				return io.ErrUnexpectedEOF
  1210  			}
  1211  			iNdEx += skippy
  1212  		}
  1213  	}
  1214  
  1215  	if iNdEx > l {
  1216  		return io.ErrUnexpectedEOF
  1217  	}
  1218  	return nil
  1219  }
  1220  func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error {
  1221  	l := len(dAtA)
  1222  	iNdEx := 0
  1223  	for iNdEx < l {
  1224  		preIndex := iNdEx
  1225  		var wire uint64
  1226  		for shift := uint(0); ; shift += 7 {
  1227  			if shift >= 64 {
  1228  				return ErrIntOverflowTx
  1229  			}
  1230  			if iNdEx >= l {
  1231  				return io.ErrUnexpectedEOF
  1232  			}
  1233  			b := dAtA[iNdEx]
  1234  			iNdEx++
  1235  			wire |= uint64(b&0x7F) << shift
  1236  			if b < 0x80 {
  1237  				break
  1238  			}
  1239  		}
  1240  		fieldNum := int32(wire >> 3)
  1241  		wireType := int(wire & 0x7)
  1242  		if wireType == 4 {
  1243  			return fmt.Errorf("proto: MsgSubmitProposalResponse: wiretype end group for non-group")
  1244  		}
  1245  		if fieldNum <= 0 {
  1246  			return fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1247  		}
  1248  		switch fieldNum {
  1249  		case 1:
  1250  			if wireType != 0 {
  1251  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  1252  			}
  1253  			m.ProposalId = 0
  1254  			for shift := uint(0); ; shift += 7 {
  1255  				if shift >= 64 {
  1256  					return ErrIntOverflowTx
  1257  				}
  1258  				if iNdEx >= l {
  1259  					return io.ErrUnexpectedEOF
  1260  				}
  1261  				b := dAtA[iNdEx]
  1262  				iNdEx++
  1263  				m.ProposalId |= uint64(b&0x7F) << shift
  1264  				if b < 0x80 {
  1265  					break
  1266  				}
  1267  			}
  1268  		default:
  1269  			iNdEx = preIndex
  1270  			skippy, err := skipTx(dAtA[iNdEx:])
  1271  			if err != nil {
  1272  				return err
  1273  			}
  1274  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1275  				return ErrInvalidLengthTx
  1276  			}
  1277  			if (iNdEx + skippy) > l {
  1278  				return io.ErrUnexpectedEOF
  1279  			}
  1280  			iNdEx += skippy
  1281  		}
  1282  	}
  1283  
  1284  	if iNdEx > l {
  1285  		return io.ErrUnexpectedEOF
  1286  	}
  1287  	return nil
  1288  }
  1289  func (m *MsgVote) Unmarshal(dAtA []byte) error {
  1290  	l := len(dAtA)
  1291  	iNdEx := 0
  1292  	for iNdEx < l {
  1293  		preIndex := iNdEx
  1294  		var wire uint64
  1295  		for shift := uint(0); ; shift += 7 {
  1296  			if shift >= 64 {
  1297  				return ErrIntOverflowTx
  1298  			}
  1299  			if iNdEx >= l {
  1300  				return io.ErrUnexpectedEOF
  1301  			}
  1302  			b := dAtA[iNdEx]
  1303  			iNdEx++
  1304  			wire |= uint64(b&0x7F) << shift
  1305  			if b < 0x80 {
  1306  				break
  1307  			}
  1308  		}
  1309  		fieldNum := int32(wire >> 3)
  1310  		wireType := int(wire & 0x7)
  1311  		if wireType == 4 {
  1312  			return fmt.Errorf("proto: MsgVote: wiretype end group for non-group")
  1313  		}
  1314  		if fieldNum <= 0 {
  1315  			return fmt.Errorf("proto: MsgVote: illegal tag %d (wire type %d)", fieldNum, wire)
  1316  		}
  1317  		switch fieldNum {
  1318  		case 1:
  1319  			if wireType != 0 {
  1320  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  1321  			}
  1322  			m.ProposalId = 0
  1323  			for shift := uint(0); ; shift += 7 {
  1324  				if shift >= 64 {
  1325  					return ErrIntOverflowTx
  1326  				}
  1327  				if iNdEx >= l {
  1328  					return io.ErrUnexpectedEOF
  1329  				}
  1330  				b := dAtA[iNdEx]
  1331  				iNdEx++
  1332  				m.ProposalId |= uint64(b&0x7F) << shift
  1333  				if b < 0x80 {
  1334  					break
  1335  				}
  1336  			}
  1337  		case 2:
  1338  			if wireType != 2 {
  1339  				return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType)
  1340  			}
  1341  			var stringLen uint64
  1342  			for shift := uint(0); ; shift += 7 {
  1343  				if shift >= 64 {
  1344  					return ErrIntOverflowTx
  1345  				}
  1346  				if iNdEx >= l {
  1347  					return io.ErrUnexpectedEOF
  1348  				}
  1349  				b := dAtA[iNdEx]
  1350  				iNdEx++
  1351  				stringLen |= uint64(b&0x7F) << shift
  1352  				if b < 0x80 {
  1353  					break
  1354  				}
  1355  			}
  1356  			intStringLen := int(stringLen)
  1357  			if intStringLen < 0 {
  1358  				return ErrInvalidLengthTx
  1359  			}
  1360  			postIndex := iNdEx + intStringLen
  1361  			if postIndex < 0 {
  1362  				return ErrInvalidLengthTx
  1363  			}
  1364  			if postIndex > l {
  1365  				return io.ErrUnexpectedEOF
  1366  			}
  1367  			m.Voter = string(dAtA[iNdEx:postIndex])
  1368  			iNdEx = postIndex
  1369  		case 3:
  1370  			if wireType != 0 {
  1371  				return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType)
  1372  			}
  1373  			m.Option = 0
  1374  			for shift := uint(0); ; shift += 7 {
  1375  				if shift >= 64 {
  1376  					return ErrIntOverflowTx
  1377  				}
  1378  				if iNdEx >= l {
  1379  					return io.ErrUnexpectedEOF
  1380  				}
  1381  				b := dAtA[iNdEx]
  1382  				iNdEx++
  1383  				m.Option |= VoteOption(b&0x7F) << shift
  1384  				if b < 0x80 {
  1385  					break
  1386  				}
  1387  			}
  1388  		default:
  1389  			iNdEx = preIndex
  1390  			skippy, err := skipTx(dAtA[iNdEx:])
  1391  			if err != nil {
  1392  				return err
  1393  			}
  1394  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1395  				return ErrInvalidLengthTx
  1396  			}
  1397  			if (iNdEx + skippy) > l {
  1398  				return io.ErrUnexpectedEOF
  1399  			}
  1400  			iNdEx += skippy
  1401  		}
  1402  	}
  1403  
  1404  	if iNdEx > l {
  1405  		return io.ErrUnexpectedEOF
  1406  	}
  1407  	return nil
  1408  }
  1409  func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error {
  1410  	l := len(dAtA)
  1411  	iNdEx := 0
  1412  	for iNdEx < l {
  1413  		preIndex := iNdEx
  1414  		var wire uint64
  1415  		for shift := uint(0); ; shift += 7 {
  1416  			if shift >= 64 {
  1417  				return ErrIntOverflowTx
  1418  			}
  1419  			if iNdEx >= l {
  1420  				return io.ErrUnexpectedEOF
  1421  			}
  1422  			b := dAtA[iNdEx]
  1423  			iNdEx++
  1424  			wire |= uint64(b&0x7F) << shift
  1425  			if b < 0x80 {
  1426  				break
  1427  			}
  1428  		}
  1429  		fieldNum := int32(wire >> 3)
  1430  		wireType := int(wire & 0x7)
  1431  		if wireType == 4 {
  1432  			return fmt.Errorf("proto: MsgVoteResponse: wiretype end group for non-group")
  1433  		}
  1434  		if fieldNum <= 0 {
  1435  			return fmt.Errorf("proto: MsgVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1436  		}
  1437  		switch fieldNum {
  1438  		default:
  1439  			iNdEx = preIndex
  1440  			skippy, err := skipTx(dAtA[iNdEx:])
  1441  			if err != nil {
  1442  				return err
  1443  			}
  1444  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1445  				return ErrInvalidLengthTx
  1446  			}
  1447  			if (iNdEx + skippy) > l {
  1448  				return io.ErrUnexpectedEOF
  1449  			}
  1450  			iNdEx += skippy
  1451  		}
  1452  	}
  1453  
  1454  	if iNdEx > l {
  1455  		return io.ErrUnexpectedEOF
  1456  	}
  1457  	return nil
  1458  }
  1459  func (m *MsgVoteWeighted) Unmarshal(dAtA []byte) error {
  1460  	l := len(dAtA)
  1461  	iNdEx := 0
  1462  	for iNdEx < l {
  1463  		preIndex := iNdEx
  1464  		var wire uint64
  1465  		for shift := uint(0); ; shift += 7 {
  1466  			if shift >= 64 {
  1467  				return ErrIntOverflowTx
  1468  			}
  1469  			if iNdEx >= l {
  1470  				return io.ErrUnexpectedEOF
  1471  			}
  1472  			b := dAtA[iNdEx]
  1473  			iNdEx++
  1474  			wire |= uint64(b&0x7F) << shift
  1475  			if b < 0x80 {
  1476  				break
  1477  			}
  1478  		}
  1479  		fieldNum := int32(wire >> 3)
  1480  		wireType := int(wire & 0x7)
  1481  		if wireType == 4 {
  1482  			return fmt.Errorf("proto: MsgVoteWeighted: wiretype end group for non-group")
  1483  		}
  1484  		if fieldNum <= 0 {
  1485  			return fmt.Errorf("proto: MsgVoteWeighted: illegal tag %d (wire type %d)", fieldNum, wire)
  1486  		}
  1487  		switch fieldNum {
  1488  		case 1:
  1489  			if wireType != 0 {
  1490  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  1491  			}
  1492  			m.ProposalId = 0
  1493  			for shift := uint(0); ; shift += 7 {
  1494  				if shift >= 64 {
  1495  					return ErrIntOverflowTx
  1496  				}
  1497  				if iNdEx >= l {
  1498  					return io.ErrUnexpectedEOF
  1499  				}
  1500  				b := dAtA[iNdEx]
  1501  				iNdEx++
  1502  				m.ProposalId |= uint64(b&0x7F) << shift
  1503  				if b < 0x80 {
  1504  					break
  1505  				}
  1506  			}
  1507  		case 2:
  1508  			if wireType != 2 {
  1509  				return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType)
  1510  			}
  1511  			var stringLen uint64
  1512  			for shift := uint(0); ; shift += 7 {
  1513  				if shift >= 64 {
  1514  					return ErrIntOverflowTx
  1515  				}
  1516  				if iNdEx >= l {
  1517  					return io.ErrUnexpectedEOF
  1518  				}
  1519  				b := dAtA[iNdEx]
  1520  				iNdEx++
  1521  				stringLen |= uint64(b&0x7F) << shift
  1522  				if b < 0x80 {
  1523  					break
  1524  				}
  1525  			}
  1526  			intStringLen := int(stringLen)
  1527  			if intStringLen < 0 {
  1528  				return ErrInvalidLengthTx
  1529  			}
  1530  			postIndex := iNdEx + intStringLen
  1531  			if postIndex < 0 {
  1532  				return ErrInvalidLengthTx
  1533  			}
  1534  			if postIndex > l {
  1535  				return io.ErrUnexpectedEOF
  1536  			}
  1537  			m.Voter = string(dAtA[iNdEx:postIndex])
  1538  			iNdEx = postIndex
  1539  		case 3:
  1540  			if wireType != 2 {
  1541  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  1542  			}
  1543  			var msglen int
  1544  			for shift := uint(0); ; shift += 7 {
  1545  				if shift >= 64 {
  1546  					return ErrIntOverflowTx
  1547  				}
  1548  				if iNdEx >= l {
  1549  					return io.ErrUnexpectedEOF
  1550  				}
  1551  				b := dAtA[iNdEx]
  1552  				iNdEx++
  1553  				msglen |= int(b&0x7F) << shift
  1554  				if b < 0x80 {
  1555  					break
  1556  				}
  1557  			}
  1558  			if msglen < 0 {
  1559  				return ErrInvalidLengthTx
  1560  			}
  1561  			postIndex := iNdEx + msglen
  1562  			if postIndex < 0 {
  1563  				return ErrInvalidLengthTx
  1564  			}
  1565  			if postIndex > l {
  1566  				return io.ErrUnexpectedEOF
  1567  			}
  1568  			m.Options = append(m.Options, WeightedVoteOption{})
  1569  			if err := m.Options[len(m.Options)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1570  				return err
  1571  			}
  1572  			iNdEx = postIndex
  1573  		default:
  1574  			iNdEx = preIndex
  1575  			skippy, err := skipTx(dAtA[iNdEx:])
  1576  			if err != nil {
  1577  				return err
  1578  			}
  1579  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1580  				return ErrInvalidLengthTx
  1581  			}
  1582  			if (iNdEx + skippy) > l {
  1583  				return io.ErrUnexpectedEOF
  1584  			}
  1585  			iNdEx += skippy
  1586  		}
  1587  	}
  1588  
  1589  	if iNdEx > l {
  1590  		return io.ErrUnexpectedEOF
  1591  	}
  1592  	return nil
  1593  }
  1594  func (m *MsgVoteWeightedResponse) Unmarshal(dAtA []byte) error {
  1595  	l := len(dAtA)
  1596  	iNdEx := 0
  1597  	for iNdEx < l {
  1598  		preIndex := iNdEx
  1599  		var wire uint64
  1600  		for shift := uint(0); ; shift += 7 {
  1601  			if shift >= 64 {
  1602  				return ErrIntOverflowTx
  1603  			}
  1604  			if iNdEx >= l {
  1605  				return io.ErrUnexpectedEOF
  1606  			}
  1607  			b := dAtA[iNdEx]
  1608  			iNdEx++
  1609  			wire |= uint64(b&0x7F) << shift
  1610  			if b < 0x80 {
  1611  				break
  1612  			}
  1613  		}
  1614  		fieldNum := int32(wire >> 3)
  1615  		wireType := int(wire & 0x7)
  1616  		if wireType == 4 {
  1617  			return fmt.Errorf("proto: MsgVoteWeightedResponse: wiretype end group for non-group")
  1618  		}
  1619  		if fieldNum <= 0 {
  1620  			return fmt.Errorf("proto: MsgVoteWeightedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1621  		}
  1622  		switch fieldNum {
  1623  		default:
  1624  			iNdEx = preIndex
  1625  			skippy, err := skipTx(dAtA[iNdEx:])
  1626  			if err != nil {
  1627  				return err
  1628  			}
  1629  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1630  				return ErrInvalidLengthTx
  1631  			}
  1632  			if (iNdEx + skippy) > l {
  1633  				return io.ErrUnexpectedEOF
  1634  			}
  1635  			iNdEx += skippy
  1636  		}
  1637  	}
  1638  
  1639  	if iNdEx > l {
  1640  		return io.ErrUnexpectedEOF
  1641  	}
  1642  	return nil
  1643  }
  1644  func (m *MsgDeposit) Unmarshal(dAtA []byte) error {
  1645  	l := len(dAtA)
  1646  	iNdEx := 0
  1647  	for iNdEx < l {
  1648  		preIndex := iNdEx
  1649  		var wire uint64
  1650  		for shift := uint(0); ; shift += 7 {
  1651  			if shift >= 64 {
  1652  				return ErrIntOverflowTx
  1653  			}
  1654  			if iNdEx >= l {
  1655  				return io.ErrUnexpectedEOF
  1656  			}
  1657  			b := dAtA[iNdEx]
  1658  			iNdEx++
  1659  			wire |= uint64(b&0x7F) << shift
  1660  			if b < 0x80 {
  1661  				break
  1662  			}
  1663  		}
  1664  		fieldNum := int32(wire >> 3)
  1665  		wireType := int(wire & 0x7)
  1666  		if wireType == 4 {
  1667  			return fmt.Errorf("proto: MsgDeposit: wiretype end group for non-group")
  1668  		}
  1669  		if fieldNum <= 0 {
  1670  			return fmt.Errorf("proto: MsgDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
  1671  		}
  1672  		switch fieldNum {
  1673  		case 1:
  1674  			if wireType != 0 {
  1675  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  1676  			}
  1677  			m.ProposalId = 0
  1678  			for shift := uint(0); ; shift += 7 {
  1679  				if shift >= 64 {
  1680  					return ErrIntOverflowTx
  1681  				}
  1682  				if iNdEx >= l {
  1683  					return io.ErrUnexpectedEOF
  1684  				}
  1685  				b := dAtA[iNdEx]
  1686  				iNdEx++
  1687  				m.ProposalId |= uint64(b&0x7F) << shift
  1688  				if b < 0x80 {
  1689  					break
  1690  				}
  1691  			}
  1692  		case 2:
  1693  			if wireType != 2 {
  1694  				return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType)
  1695  			}
  1696  			var stringLen uint64
  1697  			for shift := uint(0); ; shift += 7 {
  1698  				if shift >= 64 {
  1699  					return ErrIntOverflowTx
  1700  				}
  1701  				if iNdEx >= l {
  1702  					return io.ErrUnexpectedEOF
  1703  				}
  1704  				b := dAtA[iNdEx]
  1705  				iNdEx++
  1706  				stringLen |= uint64(b&0x7F) << shift
  1707  				if b < 0x80 {
  1708  					break
  1709  				}
  1710  			}
  1711  			intStringLen := int(stringLen)
  1712  			if intStringLen < 0 {
  1713  				return ErrInvalidLengthTx
  1714  			}
  1715  			postIndex := iNdEx + intStringLen
  1716  			if postIndex < 0 {
  1717  				return ErrInvalidLengthTx
  1718  			}
  1719  			if postIndex > l {
  1720  				return io.ErrUnexpectedEOF
  1721  			}
  1722  			m.Depositor = string(dAtA[iNdEx:postIndex])
  1723  			iNdEx = postIndex
  1724  		case 3:
  1725  			if wireType != 2 {
  1726  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  1727  			}
  1728  			var msglen int
  1729  			for shift := uint(0); ; shift += 7 {
  1730  				if shift >= 64 {
  1731  					return ErrIntOverflowTx
  1732  				}
  1733  				if iNdEx >= l {
  1734  					return io.ErrUnexpectedEOF
  1735  				}
  1736  				b := dAtA[iNdEx]
  1737  				iNdEx++
  1738  				msglen |= int(b&0x7F) << shift
  1739  				if b < 0x80 {
  1740  					break
  1741  				}
  1742  			}
  1743  			if msglen < 0 {
  1744  				return ErrInvalidLengthTx
  1745  			}
  1746  			postIndex := iNdEx + msglen
  1747  			if postIndex < 0 {
  1748  				return ErrInvalidLengthTx
  1749  			}
  1750  			if postIndex > l {
  1751  				return io.ErrUnexpectedEOF
  1752  			}
  1753  			m.Amount = append(m.Amount, types1.Coin{})
  1754  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1755  				return err
  1756  			}
  1757  			iNdEx = postIndex
  1758  		default:
  1759  			iNdEx = preIndex
  1760  			skippy, err := skipTx(dAtA[iNdEx:])
  1761  			if err != nil {
  1762  				return err
  1763  			}
  1764  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1765  				return ErrInvalidLengthTx
  1766  			}
  1767  			if (iNdEx + skippy) > l {
  1768  				return io.ErrUnexpectedEOF
  1769  			}
  1770  			iNdEx += skippy
  1771  		}
  1772  	}
  1773  
  1774  	if iNdEx > l {
  1775  		return io.ErrUnexpectedEOF
  1776  	}
  1777  	return nil
  1778  }
  1779  func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error {
  1780  	l := len(dAtA)
  1781  	iNdEx := 0
  1782  	for iNdEx < l {
  1783  		preIndex := iNdEx
  1784  		var wire uint64
  1785  		for shift := uint(0); ; shift += 7 {
  1786  			if shift >= 64 {
  1787  				return ErrIntOverflowTx
  1788  			}
  1789  			if iNdEx >= l {
  1790  				return io.ErrUnexpectedEOF
  1791  			}
  1792  			b := dAtA[iNdEx]
  1793  			iNdEx++
  1794  			wire |= uint64(b&0x7F) << shift
  1795  			if b < 0x80 {
  1796  				break
  1797  			}
  1798  		}
  1799  		fieldNum := int32(wire >> 3)
  1800  		wireType := int(wire & 0x7)
  1801  		if wireType == 4 {
  1802  			return fmt.Errorf("proto: MsgDepositResponse: wiretype end group for non-group")
  1803  		}
  1804  		if fieldNum <= 0 {
  1805  			return fmt.Errorf("proto: MsgDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1806  		}
  1807  		switch fieldNum {
  1808  		default:
  1809  			iNdEx = preIndex
  1810  			skippy, err := skipTx(dAtA[iNdEx:])
  1811  			if err != nil {
  1812  				return err
  1813  			}
  1814  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1815  				return ErrInvalidLengthTx
  1816  			}
  1817  			if (iNdEx + skippy) > l {
  1818  				return io.ErrUnexpectedEOF
  1819  			}
  1820  			iNdEx += skippy
  1821  		}
  1822  	}
  1823  
  1824  	if iNdEx > l {
  1825  		return io.ErrUnexpectedEOF
  1826  	}
  1827  	return nil
  1828  }
  1829  func skipTx(dAtA []byte) (n int, err error) {
  1830  	l := len(dAtA)
  1831  	iNdEx := 0
  1832  	depth := 0
  1833  	for iNdEx < l {
  1834  		var wire uint64
  1835  		for shift := uint(0); ; shift += 7 {
  1836  			if shift >= 64 {
  1837  				return 0, ErrIntOverflowTx
  1838  			}
  1839  			if iNdEx >= l {
  1840  				return 0, io.ErrUnexpectedEOF
  1841  			}
  1842  			b := dAtA[iNdEx]
  1843  			iNdEx++
  1844  			wire |= (uint64(b) & 0x7F) << shift
  1845  			if b < 0x80 {
  1846  				break
  1847  			}
  1848  		}
  1849  		wireType := int(wire & 0x7)
  1850  		switch wireType {
  1851  		case 0:
  1852  			for shift := uint(0); ; shift += 7 {
  1853  				if shift >= 64 {
  1854  					return 0, ErrIntOverflowTx
  1855  				}
  1856  				if iNdEx >= l {
  1857  					return 0, io.ErrUnexpectedEOF
  1858  				}
  1859  				iNdEx++
  1860  				if dAtA[iNdEx-1] < 0x80 {
  1861  					break
  1862  				}
  1863  			}
  1864  		case 1:
  1865  			iNdEx += 8
  1866  		case 2:
  1867  			var length int
  1868  			for shift := uint(0); ; shift += 7 {
  1869  				if shift >= 64 {
  1870  					return 0, ErrIntOverflowTx
  1871  				}
  1872  				if iNdEx >= l {
  1873  					return 0, io.ErrUnexpectedEOF
  1874  				}
  1875  				b := dAtA[iNdEx]
  1876  				iNdEx++
  1877  				length |= (int(b) & 0x7F) << shift
  1878  				if b < 0x80 {
  1879  					break
  1880  				}
  1881  			}
  1882  			if length < 0 {
  1883  				return 0, ErrInvalidLengthTx
  1884  			}
  1885  			iNdEx += length
  1886  		case 3:
  1887  			depth++
  1888  		case 4:
  1889  			if depth == 0 {
  1890  				return 0, ErrUnexpectedEndOfGroupTx
  1891  			}
  1892  			depth--
  1893  		case 5:
  1894  			iNdEx += 4
  1895  		default:
  1896  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1897  		}
  1898  		if iNdEx < 0 {
  1899  			return 0, ErrInvalidLengthTx
  1900  		}
  1901  		if depth == 0 {
  1902  			return iNdEx, nil
  1903  		}
  1904  	}
  1905  	return 0, io.ErrUnexpectedEOF
  1906  }
  1907  
  1908  var (
  1909  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  1910  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  1911  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  1912  )