github.com/Finschia/finschia-sdk@v0.48.1/x/foundation/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/foundation/v1/tx.proto
     3  
     4  package foundation
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types1 "github.com/Finschia/finschia-sdk/codec/types"
    10  	github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
    11  	types "github.com/Finschia/finschia-sdk/types"
    12  	_ "github.com/gogo/protobuf/gogoproto"
    13  	grpc1 "github.com/gogo/protobuf/grpc"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	_ "github.com/regen-network/cosmos-proto"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // Exec defines modes of execution of a proposal on creation or on new vote.
    36  type Exec int32
    37  
    38  const (
    39  	// An empty value means that there should be a separate
    40  	// MsgExec request for the proposal to execute.
    41  	Exec_EXEC_UNSPECIFIED Exec = 0
    42  	// Try to execute the proposal immediately.
    43  	// If the proposal is not allowed per the DecisionPolicy,
    44  	// the proposal will still be open and could
    45  	// be executed at a later point.
    46  	Exec_EXEC_TRY Exec = 1
    47  )
    48  
    49  var Exec_name = map[int32]string{
    50  	0: "EXEC_UNSPECIFIED",
    51  	1: "EXEC_TRY",
    52  }
    53  
    54  var Exec_value = map[string]int32{
    55  	"EXEC_UNSPECIFIED": 0,
    56  	"EXEC_TRY":         1,
    57  }
    58  
    59  func (x Exec) String() string {
    60  	return proto.EnumName(Exec_name, int32(x))
    61  }
    62  
    63  func (Exec) EnumDescriptor() ([]byte, []int) {
    64  	return fileDescriptor_5ec2105611cae3ff, []int{0}
    65  }
    66  
    67  // MsgFundTreasury is the Msg/FundTreasury request type.
    68  type MsgFundTreasury struct {
    69  	From   string                                       `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
    70  	Amount github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"amount"`
    71  }
    72  
    73  func (m *MsgFundTreasury) Reset()         { *m = MsgFundTreasury{} }
    74  func (m *MsgFundTreasury) String() string { return proto.CompactTextString(m) }
    75  func (*MsgFundTreasury) ProtoMessage()    {}
    76  func (*MsgFundTreasury) Descriptor() ([]byte, []int) {
    77  	return fileDescriptor_5ec2105611cae3ff, []int{0}
    78  }
    79  func (m *MsgFundTreasury) XXX_Unmarshal(b []byte) error {
    80  	return m.Unmarshal(b)
    81  }
    82  func (m *MsgFundTreasury) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    83  	if deterministic {
    84  		return xxx_messageInfo_MsgFundTreasury.Marshal(b, m, deterministic)
    85  	} else {
    86  		b = b[:cap(b)]
    87  		n, err := m.MarshalToSizedBuffer(b)
    88  		if err != nil {
    89  			return nil, err
    90  		}
    91  		return b[:n], nil
    92  	}
    93  }
    94  func (m *MsgFundTreasury) XXX_Merge(src proto.Message) {
    95  	xxx_messageInfo_MsgFundTreasury.Merge(m, src)
    96  }
    97  func (m *MsgFundTreasury) XXX_Size() int {
    98  	return m.Size()
    99  }
   100  func (m *MsgFundTreasury) XXX_DiscardUnknown() {
   101  	xxx_messageInfo_MsgFundTreasury.DiscardUnknown(m)
   102  }
   103  
   104  var xxx_messageInfo_MsgFundTreasury proto.InternalMessageInfo
   105  
   106  // MsgFundTreasuryResponse is the Msg/FundTreasury response type.
   107  type MsgFundTreasuryResponse struct {
   108  }
   109  
   110  func (m *MsgFundTreasuryResponse) Reset()         { *m = MsgFundTreasuryResponse{} }
   111  func (m *MsgFundTreasuryResponse) String() string { return proto.CompactTextString(m) }
   112  func (*MsgFundTreasuryResponse) ProtoMessage()    {}
   113  func (*MsgFundTreasuryResponse) Descriptor() ([]byte, []int) {
   114  	return fileDescriptor_5ec2105611cae3ff, []int{1}
   115  }
   116  func (m *MsgFundTreasuryResponse) XXX_Unmarshal(b []byte) error {
   117  	return m.Unmarshal(b)
   118  }
   119  func (m *MsgFundTreasuryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   120  	if deterministic {
   121  		return xxx_messageInfo_MsgFundTreasuryResponse.Marshal(b, m, deterministic)
   122  	} else {
   123  		b = b[:cap(b)]
   124  		n, err := m.MarshalToSizedBuffer(b)
   125  		if err != nil {
   126  			return nil, err
   127  		}
   128  		return b[:n], nil
   129  	}
   130  }
   131  func (m *MsgFundTreasuryResponse) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_MsgFundTreasuryResponse.Merge(m, src)
   133  }
   134  func (m *MsgFundTreasuryResponse) XXX_Size() int {
   135  	return m.Size()
   136  }
   137  func (m *MsgFundTreasuryResponse) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_MsgFundTreasuryResponse.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_MsgFundTreasuryResponse proto.InternalMessageInfo
   142  
   143  // MsgWithdrawFromTreasury is the Msg/WithdrawFromTreasury request type.
   144  type MsgWithdrawFromTreasury struct {
   145  	// authority is the address of the privileged account.
   146  	Authority string                                       `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   147  	To        string                                       `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
   148  	Amount    github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"amount"`
   149  }
   150  
   151  func (m *MsgWithdrawFromTreasury) Reset()         { *m = MsgWithdrawFromTreasury{} }
   152  func (m *MsgWithdrawFromTreasury) String() string { return proto.CompactTextString(m) }
   153  func (*MsgWithdrawFromTreasury) ProtoMessage()    {}
   154  func (*MsgWithdrawFromTreasury) Descriptor() ([]byte, []int) {
   155  	return fileDescriptor_5ec2105611cae3ff, []int{2}
   156  }
   157  func (m *MsgWithdrawFromTreasury) XXX_Unmarshal(b []byte) error {
   158  	return m.Unmarshal(b)
   159  }
   160  func (m *MsgWithdrawFromTreasury) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   161  	if deterministic {
   162  		return xxx_messageInfo_MsgWithdrawFromTreasury.Marshal(b, m, deterministic)
   163  	} else {
   164  		b = b[:cap(b)]
   165  		n, err := m.MarshalToSizedBuffer(b)
   166  		if err != nil {
   167  			return nil, err
   168  		}
   169  		return b[:n], nil
   170  	}
   171  }
   172  func (m *MsgWithdrawFromTreasury) XXX_Merge(src proto.Message) {
   173  	xxx_messageInfo_MsgWithdrawFromTreasury.Merge(m, src)
   174  }
   175  func (m *MsgWithdrawFromTreasury) XXX_Size() int {
   176  	return m.Size()
   177  }
   178  func (m *MsgWithdrawFromTreasury) XXX_DiscardUnknown() {
   179  	xxx_messageInfo_MsgWithdrawFromTreasury.DiscardUnknown(m)
   180  }
   181  
   182  var xxx_messageInfo_MsgWithdrawFromTreasury proto.InternalMessageInfo
   183  
   184  // MsgUpdateParams is the Msg/UpdateParams request type.
   185  // NOTE: This is not for tx
   186  type MsgUpdateParams struct {
   187  	// authority is the address of the privileged account.
   188  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   189  	// params defines the x/foundation parameters to update.
   190  	//
   191  	// NOTE: All parameters must be supplied.
   192  	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
   193  }
   194  
   195  func (m *MsgUpdateParams) Reset()         { *m = MsgUpdateParams{} }
   196  func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
   197  func (*MsgUpdateParams) ProtoMessage()    {}
   198  func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
   199  	return fileDescriptor_5ec2105611cae3ff, []int{3}
   200  }
   201  func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
   202  	return m.Unmarshal(b)
   203  }
   204  func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   205  	if deterministic {
   206  		return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
   207  	} else {
   208  		b = b[:cap(b)]
   209  		n, err := m.MarshalToSizedBuffer(b)
   210  		if err != nil {
   211  			return nil, err
   212  		}
   213  		return b[:n], nil
   214  	}
   215  }
   216  func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
   217  	xxx_messageInfo_MsgUpdateParams.Merge(m, src)
   218  }
   219  func (m *MsgUpdateParams) XXX_Size() int {
   220  	return m.Size()
   221  }
   222  func (m *MsgUpdateParams) XXX_DiscardUnknown() {
   223  	xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
   224  }
   225  
   226  var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
   227  
   228  // MsgUpdateParamsResponse is the Msg/UpdateParams response type.
   229  // NOTE: This is not for tx
   230  type MsgUpdateParamsResponse struct {
   231  }
   232  
   233  func (m *MsgUpdateParamsResponse) Reset()         { *m = MsgUpdateParamsResponse{} }
   234  func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
   235  func (*MsgUpdateParamsResponse) ProtoMessage()    {}
   236  func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
   237  	return fileDescriptor_5ec2105611cae3ff, []int{4}
   238  }
   239  func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
   240  	return m.Unmarshal(b)
   241  }
   242  func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   243  	if deterministic {
   244  		return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
   245  	} else {
   246  		b = b[:cap(b)]
   247  		n, err := m.MarshalToSizedBuffer(b)
   248  		if err != nil {
   249  			return nil, err
   250  		}
   251  		return b[:n], nil
   252  	}
   253  }
   254  func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
   255  	xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
   256  }
   257  func (m *MsgUpdateParamsResponse) XXX_Size() int {
   258  	return m.Size()
   259  }
   260  func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
   261  	xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
   262  }
   263  
   264  var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
   265  
   266  // MsgWithdrawFromTreasuryResponse is the Msg/WithdrawFromTreasury response type.
   267  type MsgWithdrawFromTreasuryResponse struct {
   268  }
   269  
   270  func (m *MsgWithdrawFromTreasuryResponse) Reset()         { *m = MsgWithdrawFromTreasuryResponse{} }
   271  func (m *MsgWithdrawFromTreasuryResponse) String() string { return proto.CompactTextString(m) }
   272  func (*MsgWithdrawFromTreasuryResponse) ProtoMessage()    {}
   273  func (*MsgWithdrawFromTreasuryResponse) Descriptor() ([]byte, []int) {
   274  	return fileDescriptor_5ec2105611cae3ff, []int{5}
   275  }
   276  func (m *MsgWithdrawFromTreasuryResponse) XXX_Unmarshal(b []byte) error {
   277  	return m.Unmarshal(b)
   278  }
   279  func (m *MsgWithdrawFromTreasuryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   280  	if deterministic {
   281  		return xxx_messageInfo_MsgWithdrawFromTreasuryResponse.Marshal(b, m, deterministic)
   282  	} else {
   283  		b = b[:cap(b)]
   284  		n, err := m.MarshalToSizedBuffer(b)
   285  		if err != nil {
   286  			return nil, err
   287  		}
   288  		return b[:n], nil
   289  	}
   290  }
   291  func (m *MsgWithdrawFromTreasuryResponse) XXX_Merge(src proto.Message) {
   292  	xxx_messageInfo_MsgWithdrawFromTreasuryResponse.Merge(m, src)
   293  }
   294  func (m *MsgWithdrawFromTreasuryResponse) XXX_Size() int {
   295  	return m.Size()
   296  }
   297  func (m *MsgWithdrawFromTreasuryResponse) XXX_DiscardUnknown() {
   298  	xxx_messageInfo_MsgWithdrawFromTreasuryResponse.DiscardUnknown(m)
   299  }
   300  
   301  var xxx_messageInfo_MsgWithdrawFromTreasuryResponse proto.InternalMessageInfo
   302  
   303  // MsgUpdateMembers is the Msg/UpdateMembers request type.
   304  type MsgUpdateMembers struct {
   305  	// authority is the address of the privileged account.
   306  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   307  	// member_updates is the list of members to update,
   308  	// set remove to true to remove a member.
   309  	MemberUpdates []MemberRequest `protobuf:"bytes,2,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates"`
   310  }
   311  
   312  func (m *MsgUpdateMembers) Reset()         { *m = MsgUpdateMembers{} }
   313  func (m *MsgUpdateMembers) String() string { return proto.CompactTextString(m) }
   314  func (*MsgUpdateMembers) ProtoMessage()    {}
   315  func (*MsgUpdateMembers) Descriptor() ([]byte, []int) {
   316  	return fileDescriptor_5ec2105611cae3ff, []int{6}
   317  }
   318  func (m *MsgUpdateMembers) XXX_Unmarshal(b []byte) error {
   319  	return m.Unmarshal(b)
   320  }
   321  func (m *MsgUpdateMembers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   322  	if deterministic {
   323  		return xxx_messageInfo_MsgUpdateMembers.Marshal(b, m, deterministic)
   324  	} else {
   325  		b = b[:cap(b)]
   326  		n, err := m.MarshalToSizedBuffer(b)
   327  		if err != nil {
   328  			return nil, err
   329  		}
   330  		return b[:n], nil
   331  	}
   332  }
   333  func (m *MsgUpdateMembers) XXX_Merge(src proto.Message) {
   334  	xxx_messageInfo_MsgUpdateMembers.Merge(m, src)
   335  }
   336  func (m *MsgUpdateMembers) XXX_Size() int {
   337  	return m.Size()
   338  }
   339  func (m *MsgUpdateMembers) XXX_DiscardUnknown() {
   340  	xxx_messageInfo_MsgUpdateMembers.DiscardUnknown(m)
   341  }
   342  
   343  var xxx_messageInfo_MsgUpdateMembers proto.InternalMessageInfo
   344  
   345  // MsgUpdateMembersResponse is the Msg/UpdateMembers response type.
   346  type MsgUpdateMembersResponse struct {
   347  }
   348  
   349  func (m *MsgUpdateMembersResponse) Reset()         { *m = MsgUpdateMembersResponse{} }
   350  func (m *MsgUpdateMembersResponse) String() string { return proto.CompactTextString(m) }
   351  func (*MsgUpdateMembersResponse) ProtoMessage()    {}
   352  func (*MsgUpdateMembersResponse) Descriptor() ([]byte, []int) {
   353  	return fileDescriptor_5ec2105611cae3ff, []int{7}
   354  }
   355  func (m *MsgUpdateMembersResponse) XXX_Unmarshal(b []byte) error {
   356  	return m.Unmarshal(b)
   357  }
   358  func (m *MsgUpdateMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   359  	if deterministic {
   360  		return xxx_messageInfo_MsgUpdateMembersResponse.Marshal(b, m, deterministic)
   361  	} else {
   362  		b = b[:cap(b)]
   363  		n, err := m.MarshalToSizedBuffer(b)
   364  		if err != nil {
   365  			return nil, err
   366  		}
   367  		return b[:n], nil
   368  	}
   369  }
   370  func (m *MsgUpdateMembersResponse) XXX_Merge(src proto.Message) {
   371  	xxx_messageInfo_MsgUpdateMembersResponse.Merge(m, src)
   372  }
   373  func (m *MsgUpdateMembersResponse) XXX_Size() int {
   374  	return m.Size()
   375  }
   376  func (m *MsgUpdateMembersResponse) XXX_DiscardUnknown() {
   377  	xxx_messageInfo_MsgUpdateMembersResponse.DiscardUnknown(m)
   378  }
   379  
   380  var xxx_messageInfo_MsgUpdateMembersResponse proto.InternalMessageInfo
   381  
   382  // MsgUpdateDecisionPolicy is the Msg/UpdateDecisionPolicy request type.
   383  type MsgUpdateDecisionPolicy struct {
   384  	// authority is the address of the privileged account.
   385  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   386  	// decision_policy is the updated decision policy.
   387  	DecisionPolicy *types1.Any `protobuf:"bytes,2,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
   388  }
   389  
   390  func (m *MsgUpdateDecisionPolicy) Reset()         { *m = MsgUpdateDecisionPolicy{} }
   391  func (m *MsgUpdateDecisionPolicy) String() string { return proto.CompactTextString(m) }
   392  func (*MsgUpdateDecisionPolicy) ProtoMessage()    {}
   393  func (*MsgUpdateDecisionPolicy) Descriptor() ([]byte, []int) {
   394  	return fileDescriptor_5ec2105611cae3ff, []int{8}
   395  }
   396  func (m *MsgUpdateDecisionPolicy) XXX_Unmarshal(b []byte) error {
   397  	return m.Unmarshal(b)
   398  }
   399  func (m *MsgUpdateDecisionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   400  	if deterministic {
   401  		return xxx_messageInfo_MsgUpdateDecisionPolicy.Marshal(b, m, deterministic)
   402  	} else {
   403  		b = b[:cap(b)]
   404  		n, err := m.MarshalToSizedBuffer(b)
   405  		if err != nil {
   406  			return nil, err
   407  		}
   408  		return b[:n], nil
   409  	}
   410  }
   411  func (m *MsgUpdateDecisionPolicy) XXX_Merge(src proto.Message) {
   412  	xxx_messageInfo_MsgUpdateDecisionPolicy.Merge(m, src)
   413  }
   414  func (m *MsgUpdateDecisionPolicy) XXX_Size() int {
   415  	return m.Size()
   416  }
   417  func (m *MsgUpdateDecisionPolicy) XXX_DiscardUnknown() {
   418  	xxx_messageInfo_MsgUpdateDecisionPolicy.DiscardUnknown(m)
   419  }
   420  
   421  var xxx_messageInfo_MsgUpdateDecisionPolicy proto.InternalMessageInfo
   422  
   423  // MsgUpdateDecisionPolicyResponse is the Msg/UpdateDecisionPolicy response type.
   424  type MsgUpdateDecisionPolicyResponse struct {
   425  }
   426  
   427  func (m *MsgUpdateDecisionPolicyResponse) Reset()         { *m = MsgUpdateDecisionPolicyResponse{} }
   428  func (m *MsgUpdateDecisionPolicyResponse) String() string { return proto.CompactTextString(m) }
   429  func (*MsgUpdateDecisionPolicyResponse) ProtoMessage()    {}
   430  func (*MsgUpdateDecisionPolicyResponse) Descriptor() ([]byte, []int) {
   431  	return fileDescriptor_5ec2105611cae3ff, []int{9}
   432  }
   433  func (m *MsgUpdateDecisionPolicyResponse) XXX_Unmarshal(b []byte) error {
   434  	return m.Unmarshal(b)
   435  }
   436  func (m *MsgUpdateDecisionPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   437  	if deterministic {
   438  		return xxx_messageInfo_MsgUpdateDecisionPolicyResponse.Marshal(b, m, deterministic)
   439  	} else {
   440  		b = b[:cap(b)]
   441  		n, err := m.MarshalToSizedBuffer(b)
   442  		if err != nil {
   443  			return nil, err
   444  		}
   445  		return b[:n], nil
   446  	}
   447  }
   448  func (m *MsgUpdateDecisionPolicyResponse) XXX_Merge(src proto.Message) {
   449  	xxx_messageInfo_MsgUpdateDecisionPolicyResponse.Merge(m, src)
   450  }
   451  func (m *MsgUpdateDecisionPolicyResponse) XXX_Size() int {
   452  	return m.Size()
   453  }
   454  func (m *MsgUpdateDecisionPolicyResponse) XXX_DiscardUnknown() {
   455  	xxx_messageInfo_MsgUpdateDecisionPolicyResponse.DiscardUnknown(m)
   456  }
   457  
   458  var xxx_messageInfo_MsgUpdateDecisionPolicyResponse proto.InternalMessageInfo
   459  
   460  // MsgSubmitProposal is the Msg/SubmitProposal request type.
   461  type MsgSubmitProposal struct {
   462  	// proposers are the account addresses of the proposers.
   463  	// Proposers signatures will be counted as yes votes.
   464  	Proposers []string `protobuf:"bytes,1,rep,name=proposers,proto3" json:"proposers,omitempty"`
   465  	// metadata is any arbitrary metadata to attached to the proposal.
   466  	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
   467  	// messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
   468  	Messages []*types1.Any `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
   469  	// exec defines the mode of execution of the proposal,
   470  	// whether it should be executed immediately on creation or not.
   471  	// If so, proposers signatures are considered as Yes votes.
   472  	Exec Exec `protobuf:"varint,4,opt,name=exec,proto3,enum=lbm.foundation.v1.Exec" json:"exec,omitempty"`
   473  }
   474  
   475  func (m *MsgSubmitProposal) Reset()         { *m = MsgSubmitProposal{} }
   476  func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) }
   477  func (*MsgSubmitProposal) ProtoMessage()    {}
   478  func (*MsgSubmitProposal) Descriptor() ([]byte, []int) {
   479  	return fileDescriptor_5ec2105611cae3ff, []int{10}
   480  }
   481  func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error {
   482  	return m.Unmarshal(b)
   483  }
   484  func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   485  	if deterministic {
   486  		return xxx_messageInfo_MsgSubmitProposal.Marshal(b, m, deterministic)
   487  	} else {
   488  		b = b[:cap(b)]
   489  		n, err := m.MarshalToSizedBuffer(b)
   490  		if err != nil {
   491  			return nil, err
   492  		}
   493  		return b[:n], nil
   494  	}
   495  }
   496  func (m *MsgSubmitProposal) XXX_Merge(src proto.Message) {
   497  	xxx_messageInfo_MsgSubmitProposal.Merge(m, src)
   498  }
   499  func (m *MsgSubmitProposal) XXX_Size() int {
   500  	return m.Size()
   501  }
   502  func (m *MsgSubmitProposal) XXX_DiscardUnknown() {
   503  	xxx_messageInfo_MsgSubmitProposal.DiscardUnknown(m)
   504  }
   505  
   506  var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo
   507  
   508  // MsgSubmitProposalResponse is the Msg/SubmitProposal response type.
   509  type MsgSubmitProposalResponse struct {
   510  	// proposal is the unique ID of the proposal.
   511  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   512  }
   513  
   514  func (m *MsgSubmitProposalResponse) Reset()         { *m = MsgSubmitProposalResponse{} }
   515  func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) }
   516  func (*MsgSubmitProposalResponse) ProtoMessage()    {}
   517  func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) {
   518  	return fileDescriptor_5ec2105611cae3ff, []int{11}
   519  }
   520  func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error {
   521  	return m.Unmarshal(b)
   522  }
   523  func (m *MsgSubmitProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   524  	if deterministic {
   525  		return xxx_messageInfo_MsgSubmitProposalResponse.Marshal(b, m, deterministic)
   526  	} else {
   527  		b = b[:cap(b)]
   528  		n, err := m.MarshalToSizedBuffer(b)
   529  		if err != nil {
   530  			return nil, err
   531  		}
   532  		return b[:n], nil
   533  	}
   534  }
   535  func (m *MsgSubmitProposalResponse) XXX_Merge(src proto.Message) {
   536  	xxx_messageInfo_MsgSubmitProposalResponse.Merge(m, src)
   537  }
   538  func (m *MsgSubmitProposalResponse) XXX_Size() int {
   539  	return m.Size()
   540  }
   541  func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() {
   542  	xxx_messageInfo_MsgSubmitProposalResponse.DiscardUnknown(m)
   543  }
   544  
   545  var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo
   546  
   547  // MsgWithdrawProposal is the Msg/WithdrawProposal request type.
   548  type MsgWithdrawProposal struct {
   549  	// proposal is the unique ID of the proposal.
   550  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   551  	// address of one of the proposer of the proposal.
   552  	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
   553  }
   554  
   555  func (m *MsgWithdrawProposal) Reset()         { *m = MsgWithdrawProposal{} }
   556  func (m *MsgWithdrawProposal) String() string { return proto.CompactTextString(m) }
   557  func (*MsgWithdrawProposal) ProtoMessage()    {}
   558  func (*MsgWithdrawProposal) Descriptor() ([]byte, []int) {
   559  	return fileDescriptor_5ec2105611cae3ff, []int{12}
   560  }
   561  func (m *MsgWithdrawProposal) XXX_Unmarshal(b []byte) error {
   562  	return m.Unmarshal(b)
   563  }
   564  func (m *MsgWithdrawProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   565  	if deterministic {
   566  		return xxx_messageInfo_MsgWithdrawProposal.Marshal(b, m, deterministic)
   567  	} else {
   568  		b = b[:cap(b)]
   569  		n, err := m.MarshalToSizedBuffer(b)
   570  		if err != nil {
   571  			return nil, err
   572  		}
   573  		return b[:n], nil
   574  	}
   575  }
   576  func (m *MsgWithdrawProposal) XXX_Merge(src proto.Message) {
   577  	xxx_messageInfo_MsgWithdrawProposal.Merge(m, src)
   578  }
   579  func (m *MsgWithdrawProposal) XXX_Size() int {
   580  	return m.Size()
   581  }
   582  func (m *MsgWithdrawProposal) XXX_DiscardUnknown() {
   583  	xxx_messageInfo_MsgWithdrawProposal.DiscardUnknown(m)
   584  }
   585  
   586  var xxx_messageInfo_MsgWithdrawProposal proto.InternalMessageInfo
   587  
   588  // MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.
   589  type MsgWithdrawProposalResponse struct {
   590  }
   591  
   592  func (m *MsgWithdrawProposalResponse) Reset()         { *m = MsgWithdrawProposalResponse{} }
   593  func (m *MsgWithdrawProposalResponse) String() string { return proto.CompactTextString(m) }
   594  func (*MsgWithdrawProposalResponse) ProtoMessage()    {}
   595  func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int) {
   596  	return fileDescriptor_5ec2105611cae3ff, []int{13}
   597  }
   598  func (m *MsgWithdrawProposalResponse) XXX_Unmarshal(b []byte) error {
   599  	return m.Unmarshal(b)
   600  }
   601  func (m *MsgWithdrawProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   602  	if deterministic {
   603  		return xxx_messageInfo_MsgWithdrawProposalResponse.Marshal(b, m, deterministic)
   604  	} else {
   605  		b = b[:cap(b)]
   606  		n, err := m.MarshalToSizedBuffer(b)
   607  		if err != nil {
   608  			return nil, err
   609  		}
   610  		return b[:n], nil
   611  	}
   612  }
   613  func (m *MsgWithdrawProposalResponse) XXX_Merge(src proto.Message) {
   614  	xxx_messageInfo_MsgWithdrawProposalResponse.Merge(m, src)
   615  }
   616  func (m *MsgWithdrawProposalResponse) XXX_Size() int {
   617  	return m.Size()
   618  }
   619  func (m *MsgWithdrawProposalResponse) XXX_DiscardUnknown() {
   620  	xxx_messageInfo_MsgWithdrawProposalResponse.DiscardUnknown(m)
   621  }
   622  
   623  var xxx_messageInfo_MsgWithdrawProposalResponse proto.InternalMessageInfo
   624  
   625  // MsgVote is the Msg/Vote request type.
   626  type MsgVote struct {
   627  	// proposal is the unique ID of the proposal.
   628  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   629  	// voter is the voter account address.
   630  	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
   631  	// option is the voter's choice on the proposal.
   632  	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=lbm.foundation.v1.VoteOption" json:"option,omitempty"`
   633  	// metadata is any arbitrary metadata to attached to the vote.
   634  	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
   635  	// exec defines whether the proposal should be executed
   636  	// immediately after voting or not.
   637  	Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=lbm.foundation.v1.Exec" json:"exec,omitempty"`
   638  }
   639  
   640  func (m *MsgVote) Reset()         { *m = MsgVote{} }
   641  func (m *MsgVote) String() string { return proto.CompactTextString(m) }
   642  func (*MsgVote) ProtoMessage()    {}
   643  func (*MsgVote) Descriptor() ([]byte, []int) {
   644  	return fileDescriptor_5ec2105611cae3ff, []int{14}
   645  }
   646  func (m *MsgVote) XXX_Unmarshal(b []byte) error {
   647  	return m.Unmarshal(b)
   648  }
   649  func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   650  	if deterministic {
   651  		return xxx_messageInfo_MsgVote.Marshal(b, m, deterministic)
   652  	} else {
   653  		b = b[:cap(b)]
   654  		n, err := m.MarshalToSizedBuffer(b)
   655  		if err != nil {
   656  			return nil, err
   657  		}
   658  		return b[:n], nil
   659  	}
   660  }
   661  func (m *MsgVote) XXX_Merge(src proto.Message) {
   662  	xxx_messageInfo_MsgVote.Merge(m, src)
   663  }
   664  func (m *MsgVote) XXX_Size() int {
   665  	return m.Size()
   666  }
   667  func (m *MsgVote) XXX_DiscardUnknown() {
   668  	xxx_messageInfo_MsgVote.DiscardUnknown(m)
   669  }
   670  
   671  var xxx_messageInfo_MsgVote proto.InternalMessageInfo
   672  
   673  // MsgVoteResponse is the Msg/Vote response type.
   674  type MsgVoteResponse struct {
   675  }
   676  
   677  func (m *MsgVoteResponse) Reset()         { *m = MsgVoteResponse{} }
   678  func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) }
   679  func (*MsgVoteResponse) ProtoMessage()    {}
   680  func (*MsgVoteResponse) Descriptor() ([]byte, []int) {
   681  	return fileDescriptor_5ec2105611cae3ff, []int{15}
   682  }
   683  func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error {
   684  	return m.Unmarshal(b)
   685  }
   686  func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   687  	if deterministic {
   688  		return xxx_messageInfo_MsgVoteResponse.Marshal(b, m, deterministic)
   689  	} else {
   690  		b = b[:cap(b)]
   691  		n, err := m.MarshalToSizedBuffer(b)
   692  		if err != nil {
   693  			return nil, err
   694  		}
   695  		return b[:n], nil
   696  	}
   697  }
   698  func (m *MsgVoteResponse) XXX_Merge(src proto.Message) {
   699  	xxx_messageInfo_MsgVoteResponse.Merge(m, src)
   700  }
   701  func (m *MsgVoteResponse) XXX_Size() int {
   702  	return m.Size()
   703  }
   704  func (m *MsgVoteResponse) XXX_DiscardUnknown() {
   705  	xxx_messageInfo_MsgVoteResponse.DiscardUnknown(m)
   706  }
   707  
   708  var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo
   709  
   710  // MsgExec is the Msg/Exec request type.
   711  type MsgExec struct {
   712  	// proposal is the unique ID of the proposal.
   713  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   714  	// signer is the account address used to execute the proposal.
   715  	Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
   716  }
   717  
   718  func (m *MsgExec) Reset()         { *m = MsgExec{} }
   719  func (m *MsgExec) String() string { return proto.CompactTextString(m) }
   720  func (*MsgExec) ProtoMessage()    {}
   721  func (*MsgExec) Descriptor() ([]byte, []int) {
   722  	return fileDescriptor_5ec2105611cae3ff, []int{16}
   723  }
   724  func (m *MsgExec) XXX_Unmarshal(b []byte) error {
   725  	return m.Unmarshal(b)
   726  }
   727  func (m *MsgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   728  	if deterministic {
   729  		return xxx_messageInfo_MsgExec.Marshal(b, m, deterministic)
   730  	} else {
   731  		b = b[:cap(b)]
   732  		n, err := m.MarshalToSizedBuffer(b)
   733  		if err != nil {
   734  			return nil, err
   735  		}
   736  		return b[:n], nil
   737  	}
   738  }
   739  func (m *MsgExec) XXX_Merge(src proto.Message) {
   740  	xxx_messageInfo_MsgExec.Merge(m, src)
   741  }
   742  func (m *MsgExec) XXX_Size() int {
   743  	return m.Size()
   744  }
   745  func (m *MsgExec) XXX_DiscardUnknown() {
   746  	xxx_messageInfo_MsgExec.DiscardUnknown(m)
   747  }
   748  
   749  var xxx_messageInfo_MsgExec proto.InternalMessageInfo
   750  
   751  // MsgExecResponse is the Msg/Exec request type.
   752  type MsgExecResponse struct {
   753  }
   754  
   755  func (m *MsgExecResponse) Reset()         { *m = MsgExecResponse{} }
   756  func (m *MsgExecResponse) String() string { return proto.CompactTextString(m) }
   757  func (*MsgExecResponse) ProtoMessage()    {}
   758  func (*MsgExecResponse) Descriptor() ([]byte, []int) {
   759  	return fileDescriptor_5ec2105611cae3ff, []int{17}
   760  }
   761  func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error {
   762  	return m.Unmarshal(b)
   763  }
   764  func (m *MsgExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   765  	if deterministic {
   766  		return xxx_messageInfo_MsgExecResponse.Marshal(b, m, deterministic)
   767  	} else {
   768  		b = b[:cap(b)]
   769  		n, err := m.MarshalToSizedBuffer(b)
   770  		if err != nil {
   771  			return nil, err
   772  		}
   773  		return b[:n], nil
   774  	}
   775  }
   776  func (m *MsgExecResponse) XXX_Merge(src proto.Message) {
   777  	xxx_messageInfo_MsgExecResponse.Merge(m, src)
   778  }
   779  func (m *MsgExecResponse) XXX_Size() int {
   780  	return m.Size()
   781  }
   782  func (m *MsgExecResponse) XXX_DiscardUnknown() {
   783  	xxx_messageInfo_MsgExecResponse.DiscardUnknown(m)
   784  }
   785  
   786  var xxx_messageInfo_MsgExecResponse proto.InternalMessageInfo
   787  
   788  // MsgLeaveFoundation is the Msg/LeaveFoundation request type.
   789  type MsgLeaveFoundation struct {
   790  	// address is the account address of the foundation member.
   791  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   792  }
   793  
   794  func (m *MsgLeaveFoundation) Reset()         { *m = MsgLeaveFoundation{} }
   795  func (m *MsgLeaveFoundation) String() string { return proto.CompactTextString(m) }
   796  func (*MsgLeaveFoundation) ProtoMessage()    {}
   797  func (*MsgLeaveFoundation) Descriptor() ([]byte, []int) {
   798  	return fileDescriptor_5ec2105611cae3ff, []int{18}
   799  }
   800  func (m *MsgLeaveFoundation) XXX_Unmarshal(b []byte) error {
   801  	return m.Unmarshal(b)
   802  }
   803  func (m *MsgLeaveFoundation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   804  	if deterministic {
   805  		return xxx_messageInfo_MsgLeaveFoundation.Marshal(b, m, deterministic)
   806  	} else {
   807  		b = b[:cap(b)]
   808  		n, err := m.MarshalToSizedBuffer(b)
   809  		if err != nil {
   810  			return nil, err
   811  		}
   812  		return b[:n], nil
   813  	}
   814  }
   815  func (m *MsgLeaveFoundation) XXX_Merge(src proto.Message) {
   816  	xxx_messageInfo_MsgLeaveFoundation.Merge(m, src)
   817  }
   818  func (m *MsgLeaveFoundation) XXX_Size() int {
   819  	return m.Size()
   820  }
   821  func (m *MsgLeaveFoundation) XXX_DiscardUnknown() {
   822  	xxx_messageInfo_MsgLeaveFoundation.DiscardUnknown(m)
   823  }
   824  
   825  var xxx_messageInfo_MsgLeaveFoundation proto.InternalMessageInfo
   826  
   827  // MsgLeaveFoundationResponse is the Msg/LeaveFoundation response type.
   828  type MsgLeaveFoundationResponse struct {
   829  }
   830  
   831  func (m *MsgLeaveFoundationResponse) Reset()         { *m = MsgLeaveFoundationResponse{} }
   832  func (m *MsgLeaveFoundationResponse) String() string { return proto.CompactTextString(m) }
   833  func (*MsgLeaveFoundationResponse) ProtoMessage()    {}
   834  func (*MsgLeaveFoundationResponse) Descriptor() ([]byte, []int) {
   835  	return fileDescriptor_5ec2105611cae3ff, []int{19}
   836  }
   837  func (m *MsgLeaveFoundationResponse) XXX_Unmarshal(b []byte) error {
   838  	return m.Unmarshal(b)
   839  }
   840  func (m *MsgLeaveFoundationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   841  	if deterministic {
   842  		return xxx_messageInfo_MsgLeaveFoundationResponse.Marshal(b, m, deterministic)
   843  	} else {
   844  		b = b[:cap(b)]
   845  		n, err := m.MarshalToSizedBuffer(b)
   846  		if err != nil {
   847  			return nil, err
   848  		}
   849  		return b[:n], nil
   850  	}
   851  }
   852  func (m *MsgLeaveFoundationResponse) XXX_Merge(src proto.Message) {
   853  	xxx_messageInfo_MsgLeaveFoundationResponse.Merge(m, src)
   854  }
   855  func (m *MsgLeaveFoundationResponse) XXX_Size() int {
   856  	return m.Size()
   857  }
   858  func (m *MsgLeaveFoundationResponse) XXX_DiscardUnknown() {
   859  	xxx_messageInfo_MsgLeaveFoundationResponse.DiscardUnknown(m)
   860  }
   861  
   862  var xxx_messageInfo_MsgLeaveFoundationResponse proto.InternalMessageInfo
   863  
   864  // MsgUpdateCensorship is the Msg/UpdateCensorship request type.
   865  type MsgUpdateCensorship struct {
   866  	// authority over the target censorship.
   867  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   868  	// new censorship information
   869  	Censorship Censorship `protobuf:"bytes,2,opt,name=censorship,proto3" json:"censorship"`
   870  }
   871  
   872  func (m *MsgUpdateCensorship) Reset()         { *m = MsgUpdateCensorship{} }
   873  func (m *MsgUpdateCensorship) String() string { return proto.CompactTextString(m) }
   874  func (*MsgUpdateCensorship) ProtoMessage()    {}
   875  func (*MsgUpdateCensorship) Descriptor() ([]byte, []int) {
   876  	return fileDescriptor_5ec2105611cae3ff, []int{20}
   877  }
   878  func (m *MsgUpdateCensorship) XXX_Unmarshal(b []byte) error {
   879  	return m.Unmarshal(b)
   880  }
   881  func (m *MsgUpdateCensorship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   882  	if deterministic {
   883  		return xxx_messageInfo_MsgUpdateCensorship.Marshal(b, m, deterministic)
   884  	} else {
   885  		b = b[:cap(b)]
   886  		n, err := m.MarshalToSizedBuffer(b)
   887  		if err != nil {
   888  			return nil, err
   889  		}
   890  		return b[:n], nil
   891  	}
   892  }
   893  func (m *MsgUpdateCensorship) XXX_Merge(src proto.Message) {
   894  	xxx_messageInfo_MsgUpdateCensorship.Merge(m, src)
   895  }
   896  func (m *MsgUpdateCensorship) XXX_Size() int {
   897  	return m.Size()
   898  }
   899  func (m *MsgUpdateCensorship) XXX_DiscardUnknown() {
   900  	xxx_messageInfo_MsgUpdateCensorship.DiscardUnknown(m)
   901  }
   902  
   903  var xxx_messageInfo_MsgUpdateCensorship proto.InternalMessageInfo
   904  
   905  // MsgUpdateCensorshipResponse is the Msg/UpdateCensorship response type.
   906  type MsgUpdateCensorshipResponse struct {
   907  }
   908  
   909  func (m *MsgUpdateCensorshipResponse) Reset()         { *m = MsgUpdateCensorshipResponse{} }
   910  func (m *MsgUpdateCensorshipResponse) String() string { return proto.CompactTextString(m) }
   911  func (*MsgUpdateCensorshipResponse) ProtoMessage()    {}
   912  func (*MsgUpdateCensorshipResponse) Descriptor() ([]byte, []int) {
   913  	return fileDescriptor_5ec2105611cae3ff, []int{21}
   914  }
   915  func (m *MsgUpdateCensorshipResponse) XXX_Unmarshal(b []byte) error {
   916  	return m.Unmarshal(b)
   917  }
   918  func (m *MsgUpdateCensorshipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   919  	if deterministic {
   920  		return xxx_messageInfo_MsgUpdateCensorshipResponse.Marshal(b, m, deterministic)
   921  	} else {
   922  		b = b[:cap(b)]
   923  		n, err := m.MarshalToSizedBuffer(b)
   924  		if err != nil {
   925  			return nil, err
   926  		}
   927  		return b[:n], nil
   928  	}
   929  }
   930  func (m *MsgUpdateCensorshipResponse) XXX_Merge(src proto.Message) {
   931  	xxx_messageInfo_MsgUpdateCensorshipResponse.Merge(m, src)
   932  }
   933  func (m *MsgUpdateCensorshipResponse) XXX_Size() int {
   934  	return m.Size()
   935  }
   936  func (m *MsgUpdateCensorshipResponse) XXX_DiscardUnknown() {
   937  	xxx_messageInfo_MsgUpdateCensorshipResponse.DiscardUnknown(m)
   938  }
   939  
   940  var xxx_messageInfo_MsgUpdateCensorshipResponse proto.InternalMessageInfo
   941  
   942  // MsgGrant is the Msg/Grant request type.
   943  // on behalf of the foundation.
   944  type MsgGrant struct {
   945  	// authority is the address of the privileged account.
   946  	Authority     string      `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   947  	Grantee       string      `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
   948  	Authorization *types1.Any `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
   949  }
   950  
   951  func (m *MsgGrant) Reset()         { *m = MsgGrant{} }
   952  func (m *MsgGrant) String() string { return proto.CompactTextString(m) }
   953  func (*MsgGrant) ProtoMessage()    {}
   954  func (*MsgGrant) Descriptor() ([]byte, []int) {
   955  	return fileDescriptor_5ec2105611cae3ff, []int{22}
   956  }
   957  func (m *MsgGrant) XXX_Unmarshal(b []byte) error {
   958  	return m.Unmarshal(b)
   959  }
   960  func (m *MsgGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   961  	if deterministic {
   962  		return xxx_messageInfo_MsgGrant.Marshal(b, m, deterministic)
   963  	} else {
   964  		b = b[:cap(b)]
   965  		n, err := m.MarshalToSizedBuffer(b)
   966  		if err != nil {
   967  			return nil, err
   968  		}
   969  		return b[:n], nil
   970  	}
   971  }
   972  func (m *MsgGrant) XXX_Merge(src proto.Message) {
   973  	xxx_messageInfo_MsgGrant.Merge(m, src)
   974  }
   975  func (m *MsgGrant) XXX_Size() int {
   976  	return m.Size()
   977  }
   978  func (m *MsgGrant) XXX_DiscardUnknown() {
   979  	xxx_messageInfo_MsgGrant.DiscardUnknown(m)
   980  }
   981  
   982  var xxx_messageInfo_MsgGrant proto.InternalMessageInfo
   983  
   984  // MsgGrantResponse is the Msg/MsgGrant response type.
   985  type MsgGrantResponse struct {
   986  }
   987  
   988  func (m *MsgGrantResponse) Reset()         { *m = MsgGrantResponse{} }
   989  func (m *MsgGrantResponse) String() string { return proto.CompactTextString(m) }
   990  func (*MsgGrantResponse) ProtoMessage()    {}
   991  func (*MsgGrantResponse) Descriptor() ([]byte, []int) {
   992  	return fileDescriptor_5ec2105611cae3ff, []int{23}
   993  }
   994  func (m *MsgGrantResponse) XXX_Unmarshal(b []byte) error {
   995  	return m.Unmarshal(b)
   996  }
   997  func (m *MsgGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   998  	if deterministic {
   999  		return xxx_messageInfo_MsgGrantResponse.Marshal(b, m, deterministic)
  1000  	} else {
  1001  		b = b[:cap(b)]
  1002  		n, err := m.MarshalToSizedBuffer(b)
  1003  		if err != nil {
  1004  			return nil, err
  1005  		}
  1006  		return b[:n], nil
  1007  	}
  1008  }
  1009  func (m *MsgGrantResponse) XXX_Merge(src proto.Message) {
  1010  	xxx_messageInfo_MsgGrantResponse.Merge(m, src)
  1011  }
  1012  func (m *MsgGrantResponse) XXX_Size() int {
  1013  	return m.Size()
  1014  }
  1015  func (m *MsgGrantResponse) XXX_DiscardUnknown() {
  1016  	xxx_messageInfo_MsgGrantResponse.DiscardUnknown(m)
  1017  }
  1018  
  1019  var xxx_messageInfo_MsgGrantResponse proto.InternalMessageInfo
  1020  
  1021  // MsgRevoke is the Msg/Revoke request type.
  1022  type MsgRevoke struct {
  1023  	// authority is the address of the privileged account.
  1024  	Authority  string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
  1025  	Grantee    string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
  1026  	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
  1027  }
  1028  
  1029  func (m *MsgRevoke) Reset()         { *m = MsgRevoke{} }
  1030  func (m *MsgRevoke) String() string { return proto.CompactTextString(m) }
  1031  func (*MsgRevoke) ProtoMessage()    {}
  1032  func (*MsgRevoke) Descriptor() ([]byte, []int) {
  1033  	return fileDescriptor_5ec2105611cae3ff, []int{24}
  1034  }
  1035  func (m *MsgRevoke) XXX_Unmarshal(b []byte) error {
  1036  	return m.Unmarshal(b)
  1037  }
  1038  func (m *MsgRevoke) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1039  	if deterministic {
  1040  		return xxx_messageInfo_MsgRevoke.Marshal(b, m, deterministic)
  1041  	} else {
  1042  		b = b[:cap(b)]
  1043  		n, err := m.MarshalToSizedBuffer(b)
  1044  		if err != nil {
  1045  			return nil, err
  1046  		}
  1047  		return b[:n], nil
  1048  	}
  1049  }
  1050  func (m *MsgRevoke) XXX_Merge(src proto.Message) {
  1051  	xxx_messageInfo_MsgRevoke.Merge(m, src)
  1052  }
  1053  func (m *MsgRevoke) XXX_Size() int {
  1054  	return m.Size()
  1055  }
  1056  func (m *MsgRevoke) XXX_DiscardUnknown() {
  1057  	xxx_messageInfo_MsgRevoke.DiscardUnknown(m)
  1058  }
  1059  
  1060  var xxx_messageInfo_MsgRevoke proto.InternalMessageInfo
  1061  
  1062  // MsgRevokeResponse is the Msg/MsgRevokeResponse response type.
  1063  type MsgRevokeResponse struct {
  1064  }
  1065  
  1066  func (m *MsgRevokeResponse) Reset()         { *m = MsgRevokeResponse{} }
  1067  func (m *MsgRevokeResponse) String() string { return proto.CompactTextString(m) }
  1068  func (*MsgRevokeResponse) ProtoMessage()    {}
  1069  func (*MsgRevokeResponse) Descriptor() ([]byte, []int) {
  1070  	return fileDescriptor_5ec2105611cae3ff, []int{25}
  1071  }
  1072  func (m *MsgRevokeResponse) XXX_Unmarshal(b []byte) error {
  1073  	return m.Unmarshal(b)
  1074  }
  1075  func (m *MsgRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1076  	if deterministic {
  1077  		return xxx_messageInfo_MsgRevokeResponse.Marshal(b, m, deterministic)
  1078  	} else {
  1079  		b = b[:cap(b)]
  1080  		n, err := m.MarshalToSizedBuffer(b)
  1081  		if err != nil {
  1082  			return nil, err
  1083  		}
  1084  		return b[:n], nil
  1085  	}
  1086  }
  1087  func (m *MsgRevokeResponse) XXX_Merge(src proto.Message) {
  1088  	xxx_messageInfo_MsgRevokeResponse.Merge(m, src)
  1089  }
  1090  func (m *MsgRevokeResponse) XXX_Size() int {
  1091  	return m.Size()
  1092  }
  1093  func (m *MsgRevokeResponse) XXX_DiscardUnknown() {
  1094  	xxx_messageInfo_MsgRevokeResponse.DiscardUnknown(m)
  1095  }
  1096  
  1097  var xxx_messageInfo_MsgRevokeResponse proto.InternalMessageInfo
  1098  
  1099  func init() {
  1100  	proto.RegisterEnum("lbm.foundation.v1.Exec", Exec_name, Exec_value)
  1101  	proto.RegisterType((*MsgFundTreasury)(nil), "lbm.foundation.v1.MsgFundTreasury")
  1102  	proto.RegisterType((*MsgFundTreasuryResponse)(nil), "lbm.foundation.v1.MsgFundTreasuryResponse")
  1103  	proto.RegisterType((*MsgWithdrawFromTreasury)(nil), "lbm.foundation.v1.MsgWithdrawFromTreasury")
  1104  	proto.RegisterType((*MsgUpdateParams)(nil), "lbm.foundation.v1.MsgUpdateParams")
  1105  	proto.RegisterType((*MsgUpdateParamsResponse)(nil), "lbm.foundation.v1.MsgUpdateParamsResponse")
  1106  	proto.RegisterType((*MsgWithdrawFromTreasuryResponse)(nil), "lbm.foundation.v1.MsgWithdrawFromTreasuryResponse")
  1107  	proto.RegisterType((*MsgUpdateMembers)(nil), "lbm.foundation.v1.MsgUpdateMembers")
  1108  	proto.RegisterType((*MsgUpdateMembersResponse)(nil), "lbm.foundation.v1.MsgUpdateMembersResponse")
  1109  	proto.RegisterType((*MsgUpdateDecisionPolicy)(nil), "lbm.foundation.v1.MsgUpdateDecisionPolicy")
  1110  	proto.RegisterType((*MsgUpdateDecisionPolicyResponse)(nil), "lbm.foundation.v1.MsgUpdateDecisionPolicyResponse")
  1111  	proto.RegisterType((*MsgSubmitProposal)(nil), "lbm.foundation.v1.MsgSubmitProposal")
  1112  	proto.RegisterType((*MsgSubmitProposalResponse)(nil), "lbm.foundation.v1.MsgSubmitProposalResponse")
  1113  	proto.RegisterType((*MsgWithdrawProposal)(nil), "lbm.foundation.v1.MsgWithdrawProposal")
  1114  	proto.RegisterType((*MsgWithdrawProposalResponse)(nil), "lbm.foundation.v1.MsgWithdrawProposalResponse")
  1115  	proto.RegisterType((*MsgVote)(nil), "lbm.foundation.v1.MsgVote")
  1116  	proto.RegisterType((*MsgVoteResponse)(nil), "lbm.foundation.v1.MsgVoteResponse")
  1117  	proto.RegisterType((*MsgExec)(nil), "lbm.foundation.v1.MsgExec")
  1118  	proto.RegisterType((*MsgExecResponse)(nil), "lbm.foundation.v1.MsgExecResponse")
  1119  	proto.RegisterType((*MsgLeaveFoundation)(nil), "lbm.foundation.v1.MsgLeaveFoundation")
  1120  	proto.RegisterType((*MsgLeaveFoundationResponse)(nil), "lbm.foundation.v1.MsgLeaveFoundationResponse")
  1121  	proto.RegisterType((*MsgUpdateCensorship)(nil), "lbm.foundation.v1.MsgUpdateCensorship")
  1122  	proto.RegisterType((*MsgUpdateCensorshipResponse)(nil), "lbm.foundation.v1.MsgUpdateCensorshipResponse")
  1123  	proto.RegisterType((*MsgGrant)(nil), "lbm.foundation.v1.MsgGrant")
  1124  	proto.RegisterType((*MsgGrantResponse)(nil), "lbm.foundation.v1.MsgGrantResponse")
  1125  	proto.RegisterType((*MsgRevoke)(nil), "lbm.foundation.v1.MsgRevoke")
  1126  	proto.RegisterType((*MsgRevokeResponse)(nil), "lbm.foundation.v1.MsgRevokeResponse")
  1127  }
  1128  
  1129  func init() { proto.RegisterFile("lbm/foundation/v1/tx.proto", fileDescriptor_5ec2105611cae3ff) }
  1130  
  1131  var fileDescriptor_5ec2105611cae3ff = []byte{
  1132  	// 1148 bytes of a gzipped FileDescriptorProto
  1133  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0xdb, 0x46,
  1134  	0x13, 0x16, 0x6d, 0x45, 0xb1, 0x27, 0xb6, 0x6c, 0x33, 0xc6, 0x1b, 0x99, 0x49, 0x64, 0xbd, 0x4c,
  1135  	0x1a, 0x18, 0x4e, 0x4c, 0xd6, 0x6e, 0x8b, 0x1e, 0x5a, 0xa0, 0x88, 0x1d, 0xab, 0x30, 0x10, 0x35,
  1136  	0x2e, 0x63, 0xf7, 0xeb, 0x50, 0x61, 0x25, 0xae, 0x29, 0x36, 0x22, 0x97, 0xe5, 0x92, 0xaa, 0xd5,
  1137  	0x1e, 0x7a, 0x2d, 0x7a, 0x28, 0xfa, 0x33, 0x8a, 0xa2, 0x87, 0x1e, 0x72, 0x6f, 0x8f, 0x46, 0x4e,
  1138  	0x39, 0xf6, 0xd4, 0x0f, 0xfb, 0x8f, 0x14, 0x5c, 0x2e, 0xd7, 0xa4, 0x44, 0x7d, 0xb4, 0x40, 0x6f,
  1139  	0xda, 0x9d, 0x67, 0x9e, 0x79, 0x66, 0x76, 0x38, 0x23, 0x50, 0xba, 0x2d, 0x47, 0x3f, 0x21, 0xa1,
  1140  	0x6b, 0xa2, 0xc0, 0x26, 0xae, 0xde, 0xdb, 0xd6, 0x83, 0x53, 0xcd, 0xf3, 0x49, 0x40, 0xe4, 0x95,
  1141  	0x6e, 0xcb, 0xd1, 0x2e, 0x6d, 0x5a, 0x6f, 0x5b, 0x59, 0xb5, 0x88, 0x45, 0x98, 0x55, 0x8f, 0x7e,
  1142  	0xc5, 0x40, 0x45, 0x1d, 0x26, 0x49, 0xb9, 0xc5, 0x98, 0x6a, 0x9b, 0x50, 0x87, 0x50, 0xbd, 0x85,
  1143  	0x28, 0xd6, 0x7b, 0xdb, 0x2d, 0x1c, 0xa0, 0x6d, 0xbd, 0x4d, 0xec, 0xc4, 0xbe, 0x66, 0x11, 0x62,
  1144  	0x75, 0xb1, 0xce, 0x4e, 0xad, 0xf0, 0x44, 0x47, 0x6e, 0x3f, 0x31, 0xc5, 0xae, 0xcd, 0x38, 0x6e,
  1145  	0x7c, 0x88, 0x4d, 0xea, 0x77, 0x12, 0x2c, 0x35, 0xa8, 0x55, 0x0f, 0x5d, 0xf3, 0xc8, 0xc7, 0x88,
  1146  	0x86, 0x7e, 0x5f, 0x96, 0xa1, 0x78, 0xe2, 0x13, 0xa7, 0x22, 0xd5, 0xa4, 0x8d, 0x79, 0x83, 0xfd,
  1147  	0x96, 0x2d, 0x28, 0x21, 0x87, 0x84, 0x6e, 0x50, 0x99, 0xa9, 0xcd, 0x6e, 0x5c, 0xdb, 0x59, 0xd3,
  1148  	0x38, 0x4d, 0x24, 0x47, 0xe3, 0x72, 0xb4, 0x3d, 0x62, 0xbb, 0xbb, 0xaf, 0x9f, 0xfd, 0xbe, 0x5e,
  1149  	0xf8, 0xf1, 0x8f, 0xf5, 0x07, 0x96, 0x1d, 0x74, 0xc2, 0x96, 0xd6, 0x26, 0x8e, 0x5e, 0xb7, 0x5d,
  1150  	0xda, 0xee, 0xd8, 0x48, 0x3f, 0xe1, 0x3f, 0xb6, 0xa8, 0xf9, 0x4c, 0x0f, 0xfa, 0x1e, 0xa6, 0xcc,
  1151  	0x89, 0x1a, 0x9c, 0x5e, 0x5d, 0x83, 0x1b, 0x03, 0x7a, 0x0c, 0x4c, 0x3d, 0xe2, 0x52, 0xac, 0xfe,
  1152  	0x2c, 0x31, 0xdb, 0x87, 0x76, 0xd0, 0x31, 0x7d, 0xf4, 0x45, 0xdd, 0x27, 0x8e, 0xd0, 0x7c, 0x0b,
  1153  	0xe6, 0x51, 0x18, 0x74, 0x88, 0x6f, 0x07, 0x7d, 0x2e, 0xfc, 0xf2, 0x42, 0x2e, 0xc3, 0x4c, 0x40,
  1154  	0x2a, 0x33, 0xec, 0x7a, 0x26, 0x20, 0xa9, 0x6c, 0x66, 0xff, 0xdb, 0x6c, 0x3a, 0xac, 0xba, 0xc7,
  1155  	0x9e, 0x89, 0x02, 0x7c, 0x88, 0x7c, 0xe4, 0xd0, 0x09, 0x4a, 0xdf, 0x84, 0x92, 0xc7, 0x70, 0x4c,
  1156  	0x6d, 0xa4, 0x6c, 0xa8, 0x87, 0xb4, 0x98, 0x68, 0xb7, 0x18, 0x29, 0x33, 0x38, 0x9c, 0xd7, 0x2d,
  1157  	0x1d, 0x49, 0xd4, 0xed, 0xff, 0xb0, 0x3e, 0xa2, 0x6c, 0x02, 0xf2, 0x35, 0x2c, 0x0b, 0xef, 0x06,
  1158  	0x76, 0x5a, 0xd8, 0x9f, 0x24, 0xb4, 0x01, 0x65, 0x87, 0x01, 0x9b, 0x21, 0xf3, 0xa2, 0xbc, 0x31,
  1159  	0x6a, 0x39, 0x82, 0x63, 0x46, 0x03, 0x7f, 0x1e, 0x62, 0x1a, 0x70, 0xdd, 0x8b, 0xb1, 0x77, 0x1c,
  1160  	0x92, 0xaa, 0x0a, 0x54, 0x06, 0x05, 0x08, 0x71, 0xdf, 0x4a, 0xa9, 0xdc, 0x1e, 0xe1, 0xb6, 0x4d,
  1161  	0x6d, 0xe2, 0x1e, 0x92, 0xae, 0xdd, 0x9e, 0xf4, 0xee, 0xef, 0xc3, 0x92, 0xc9, 0xf1, 0x4d, 0x8f,
  1162  	0x39, 0xf0, 0xb2, 0xae, 0x6a, 0xf1, 0xd7, 0xa2, 0x25, 0x5f, 0x8b, 0xf6, 0xd0, 0xed, 0xef, 0xca,
  1163  	0x2f, 0x9e, 0x6f, 0x95, 0xb3, 0x01, 0x8c, 0xb2, 0x99, 0x39, 0xf3, 0x62, 0xe6, 0x69, 0x11, 0x7a,
  1164  	0x7f, 0x92, 0x60, 0xa5, 0x41, 0xad, 0xa7, 0x61, 0xcb, 0xb1, 0x83, 0x43, 0x9f, 0x78, 0x84, 0xa2,
  1165  	0x6e, 0xa4, 0xd4, 0x63, 0xbf, 0xb1, 0x4f, 0x2b, 0x52, 0x6d, 0x36, 0x52, 0x2a, 0x2e, 0x64, 0x05,
  1166  	0xe6, 0x1c, 0x1c, 0x20, 0x13, 0x05, 0x88, 0xf7, 0xa9, 0x38, 0xcb, 0xaf, 0x46, 0x36, 0x4a, 0x91,
  1167  	0x85, 0x29, 0xef, 0xd7, 0x5c, 0xf9, 0x86, 0x40, 0xc9, 0xf7, 0xa1, 0x88, 0x4f, 0x71, 0xbb, 0x52,
  1168  	0xac, 0x49, 0x1b, 0xe5, 0x9d, 0x1b, 0x39, 0x4f, 0xb2, 0x7f, 0x8a, 0xdb, 0x06, 0x03, 0xa9, 0x6f,
  1169  	0xc3, 0xda, 0x90, 0xda, 0x24, 0x17, 0x79, 0x1d, 0xae, 0x79, 0xfc, 0xae, 0x69, 0x9b, 0xac, 0xc2,
  1170  	0x45, 0x03, 0x92, 0xab, 0x03, 0x53, 0x3d, 0x84, 0xeb, 0xa9, 0xe6, 0x12, 0xd9, 0x4e, 0xf2, 0x93,
  1171  	0x2b, 0x70, 0x15, 0x99, 0xa6, 0x8f, 0x29, 0xe5, 0xf9, 0x26, 0x47, 0xf5, 0x36, 0xdc, 0xcc, 0x61,
  1172  	0x14, 0xd5, 0xfd, 0x55, 0x82, 0xab, 0x0d, 0x6a, 0x7d, 0x40, 0x82, 0xc9, 0xea, 0xe4, 0x55, 0xb8,
  1173  	0xd2, 0x23, 0x01, 0xf6, 0x79, 0x8c, 0xf8, 0x20, 0xbf, 0x01, 0x25, 0xe2, 0x45, 0x95, 0xa8, 0xcc,
  1174  	0xb2, 0x02, 0xdd, 0xce, 0x29, 0x50, 0xc4, 0xff, 0x84, 0x81, 0x0c, 0x0e, 0xce, 0xbc, 0x51, 0x71,
  1175  	0xe0, 0x8d, 0x92, 0x8a, 0x5f, 0x99, 0xa6, 0xe2, 0x2b, 0x6c, 0x2a, 0x44, 0x11, 0x44, 0x56, 0xbb,
  1176  	0x2c, 0xa9, 0x08, 0x33, 0x39, 0xa9, 0xff, 0x41, 0x89, 0xda, 0x96, 0x2b, 0xb2, 0xe2, 0x27, 0x4e,
  1177  	0xcb, 0xe2, 0x24, 0xb4, 0x1a, 0xc8, 0x0d, 0x6a, 0x3d, 0xc6, 0xa8, 0x87, 0xeb, 0x42, 0x4d, 0xba,
  1178  	0xf6, 0x52, 0xb6, 0xf6, 0xb7, 0x40, 0x19, 0xc6, 0x0b, 0xb6, 0x53, 0xf6, 0xd6, 0x71, 0xef, 0xef,
  1179  	0x61, 0x97, 0x12, 0x9f, 0x76, 0x6c, 0x6f, 0xc2, 0x37, 0xb8, 0x07, 0xd0, 0x16, 0x58, 0xfe, 0xf9,
  1180  	0xe5, 0x15, 0xfc, 0x92, 0x90, 0x4f, 0x88, 0x94, 0x1b, 0xef, 0x89, 0xc1, 0xc8, 0x42, 0xd8, 0x2f,
  1181  	0x12, 0xcc, 0x35, 0xa8, 0xf5, 0xae, 0x8f, 0xdc, 0x60, 0x82, 0x9c, 0x0a, 0x5c, 0xb5, 0x22, 0x18,
  1182  	0xc6, 0x49, 0xdf, 0xf1, 0xa3, 0xfc, 0x15, 0x2c, 0x72, 0xd8, 0x97, 0x48, 0x34, 0xc7, 0xa8, 0x51,
  1183  	0xf1, 0xce, 0x8b, 0xe7, 0x5b, 0x6f, 0x4d, 0x5c, 0x09, 0xa7, 0xe9, 0x35, 0xfe, 0x30, 0x4d, 0x6e,
  1184  	0x64, 0x63, 0xa9, 0x32, 0x1b, 0xc0, 0x2c, 0x01, 0x91, 0x15, 0x86, 0xf9, 0x06, 0xb5, 0x0c, 0xdc,
  1185  	0x23, 0xcf, 0xf0, 0xbf, 0xce, 0xaa, 0x06, 0x0b, 0x0e, 0xb5, 0x9a, 0xd1, 0x72, 0x6a, 0x86, 0x7e,
  1186  	0x97, 0x25, 0x35, 0x6f, 0x80, 0x43, 0xad, 0xa3, 0xbe, 0x87, 0x8f, 0xfd, 0xae, 0x7a, 0x9d, 0x4d,
  1187  	0xab, 0x38, 0x4c, 0x12, 0x7b, 0x73, 0x13, 0x8a, 0xac, 0x19, 0x57, 0x61, 0x79, 0xff, 0xa3, 0xfd,
  1188  	0xbd, 0xe6, 0xf1, 0x7b, 0x4f, 0x0f, 0xf7, 0xf7, 0x0e, 0xea, 0x07, 0xfb, 0x8f, 0x96, 0x0b, 0xf2,
  1189  	0x02, 0xcc, 0xb1, 0xdb, 0x23, 0xe3, 0xe3, 0x65, 0x69, 0xe7, 0x9b, 0x79, 0x98, 0x6d, 0x50, 0x4b,
  1190  	0xfe, 0x14, 0x16, 0x32, 0xff, 0x23, 0xd4, 0xbc, 0x55, 0x90, 0xdd, 0xed, 0xca, 0xe6, 0x64, 0x8c,
  1191  	0x98, 0x45, 0x3d, 0x58, 0xcd, 0xdd, 0xfd, 0x23, 0x38, 0xf2, 0xb0, 0xca, 0xce, 0xf4, 0x58, 0x11,
  1192  	0x17, 0xc1, 0x62, 0x76, 0x33, 0xde, 0xc9, 0x27, 0xc9, 0x80, 0x94, 0xfb, 0x53, 0x80, 0xd2, 0xa9,
  1193  	0xe5, 0xae, 0xb7, 0xcd, 0x71, 0x24, 0x59, 0xec, 0xa8, 0xd4, 0xc6, 0xad, 0x2a, 0xd9, 0x84, 0xf2,
  1194  	0xc0, 0x9a, 0xba, 0x9b, 0xcf, 0x92, 0x45, 0x29, 0x0f, 0xa6, 0x41, 0x89, 0x28, 0x9f, 0xc1, 0xf2,
  1195  	0xd0, 0x82, 0xb8, 0x37, 0xfe, 0x21, 0x44, 0x24, 0x6d, 0x3a, 0x9c, 0x88, 0x55, 0x87, 0x22, 0x5b,
  1196  	0x0d, 0x4a, 0xbe, 0x5f, 0x64, 0x53, 0xd4, 0xd1, 0xb6, 0x34, 0x0f, 0xfb, 0x00, 0x46, 0xf0, 0x44,
  1197  	0xb6, 0x51, 0x3c, 0xe9, 0x09, 0x2c, 0x5b, 0xb0, 0x34, 0x38, 0x7e, 0x5f, 0xc9, 0x77, 0x1b, 0x80,
  1198  	0x29, 0x5b, 0x53, 0xc1, 0xd2, 0x45, 0x1e, 0x9a, 0xcc, 0xf7, 0xc6, 0xb5, 0xc4, 0x25, 0x6e, 0x54,
  1199  	0x91, 0x47, 0xcd, 0x5b, 0xf9, 0x00, 0xae, 0xc4, 0xb3, 0xf6, 0x66, 0xbe, 0x23, 0x33, 0x2a, 0x77,
  1200  	0xc6, 0x18, 0x05, 0xd5, 0x63, 0x28, 0x25, 0x13, 0x2e, 0x1f, 0x1e, 0x5b, 0x95, 0xbb, 0xe3, 0xac,
  1201  	0x09, 0xdb, 0xee, 0x93, 0xb3, 0xbf, 0xaa, 0x85, 0x1f, 0xce, 0xab, 0x85, 0xb3, 0xf3, 0xaa, 0xf4,
  1202  	0xf2, 0xbc, 0x2a, 0xfd, 0x79, 0x5e, 0x95, 0xbe, 0xbf, 0xa8, 0x16, 0x5e, 0x5e, 0x54, 0x0b, 0xbf,
  1203  	0x5d, 0x54, 0x0b, 0x9f, 0x6c, 0xfd, 0xa3, 0xa1, 0xdd, 0x2a, 0xb1, 0xa9, 0xff, 0xda, 0xdf, 0x01,
  1204  	0x00, 0x00, 0xff, 0xff, 0x0a, 0x94, 0xad, 0x73, 0xe7, 0x0d, 0x00, 0x00,
  1205  }
  1206  
  1207  // Reference imports to suppress errors if they are not otherwise used.
  1208  var _ context.Context
  1209  var _ grpc.ClientConn
  1210  
  1211  // This is a compile-time assertion to ensure that this generated file
  1212  // is compatible with the grpc package it is being compiled against.
  1213  const _ = grpc.SupportPackageIsVersion4
  1214  
  1215  // MsgClient is the client API for Msg service.
  1216  //
  1217  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1218  type MsgClient interface {
  1219  	// FundTreasury defines a method to fund the treasury.
  1220  	FundTreasury(ctx context.Context, in *MsgFundTreasury, opts ...grpc.CallOption) (*MsgFundTreasuryResponse, error)
  1221  	// WithdrawFromTreasury defines a method to withdraw coins from the treasury.
  1222  	WithdrawFromTreasury(ctx context.Context, in *MsgWithdrawFromTreasury, opts ...grpc.CallOption) (*MsgWithdrawFromTreasuryResponse, error)
  1223  	// UpdateMembers updates the foundation members.
  1224  	UpdateMembers(ctx context.Context, in *MsgUpdateMembers, opts ...grpc.CallOption) (*MsgUpdateMembersResponse, error)
  1225  	// UpdateDecisionPolicy allows a group policy's decision policy to be updated.
  1226  	UpdateDecisionPolicy(ctx context.Context, in *MsgUpdateDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateDecisionPolicyResponse, error)
  1227  	// SubmitProposal submits a new proposal.
  1228  	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
  1229  	// WithdrawProposal aborts a proposal.
  1230  	WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error)
  1231  	// Vote allows a voter to vote on a proposal.
  1232  	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
  1233  	// Exec executes a proposal.
  1234  	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error)
  1235  	// LeaveFoundation allows a member to leave the foundation.
  1236  	LeaveFoundation(ctx context.Context, in *MsgLeaveFoundation, opts ...grpc.CallOption) (*MsgLeaveFoundationResponse, error)
  1237  	// UpdateCensorship updates censorship information.
  1238  	UpdateCensorship(ctx context.Context, in *MsgUpdateCensorship, opts ...grpc.CallOption) (*MsgUpdateCensorshipResponse, error)
  1239  	// Grant grants the provided authorization to the grantee with authority of
  1240  	// the foundation. If there is already a grant for the given
  1241  	// (grantee, Authorization) tuple, then the grant will be overwritten.
  1242  	Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error)
  1243  	// Revoke revokes any authorization corresponding to the provided method name
  1244  	// that has been granted to the grantee.
  1245  	Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error)
  1246  }
  1247  
  1248  type msgClient struct {
  1249  	cc grpc1.ClientConn
  1250  }
  1251  
  1252  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
  1253  	return &msgClient{cc}
  1254  }
  1255  
  1256  func (c *msgClient) FundTreasury(ctx context.Context, in *MsgFundTreasury, opts ...grpc.CallOption) (*MsgFundTreasuryResponse, error) {
  1257  	out := new(MsgFundTreasuryResponse)
  1258  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/FundTreasury", in, out, opts...)
  1259  	if err != nil {
  1260  		return nil, err
  1261  	}
  1262  	return out, nil
  1263  }
  1264  
  1265  func (c *msgClient) WithdrawFromTreasury(ctx context.Context, in *MsgWithdrawFromTreasury, opts ...grpc.CallOption) (*MsgWithdrawFromTreasuryResponse, error) {
  1266  	out := new(MsgWithdrawFromTreasuryResponse)
  1267  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/WithdrawFromTreasury", in, out, opts...)
  1268  	if err != nil {
  1269  		return nil, err
  1270  	}
  1271  	return out, nil
  1272  }
  1273  
  1274  func (c *msgClient) UpdateMembers(ctx context.Context, in *MsgUpdateMembers, opts ...grpc.CallOption) (*MsgUpdateMembersResponse, error) {
  1275  	out := new(MsgUpdateMembersResponse)
  1276  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/UpdateMembers", in, out, opts...)
  1277  	if err != nil {
  1278  		return nil, err
  1279  	}
  1280  	return out, nil
  1281  }
  1282  
  1283  func (c *msgClient) UpdateDecisionPolicy(ctx context.Context, in *MsgUpdateDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateDecisionPolicyResponse, error) {
  1284  	out := new(MsgUpdateDecisionPolicyResponse)
  1285  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/UpdateDecisionPolicy", in, out, opts...)
  1286  	if err != nil {
  1287  		return nil, err
  1288  	}
  1289  	return out, nil
  1290  }
  1291  
  1292  func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) {
  1293  	out := new(MsgSubmitProposalResponse)
  1294  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/SubmitProposal", in, out, opts...)
  1295  	if err != nil {
  1296  		return nil, err
  1297  	}
  1298  	return out, nil
  1299  }
  1300  
  1301  func (c *msgClient) WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error) {
  1302  	out := new(MsgWithdrawProposalResponse)
  1303  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/WithdrawProposal", in, out, opts...)
  1304  	if err != nil {
  1305  		return nil, err
  1306  	}
  1307  	return out, nil
  1308  }
  1309  
  1310  func (c *msgClient) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) {
  1311  	out := new(MsgVoteResponse)
  1312  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/Vote", in, out, opts...)
  1313  	if err != nil {
  1314  		return nil, err
  1315  	}
  1316  	return out, nil
  1317  }
  1318  
  1319  func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) {
  1320  	out := new(MsgExecResponse)
  1321  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/Exec", in, out, opts...)
  1322  	if err != nil {
  1323  		return nil, err
  1324  	}
  1325  	return out, nil
  1326  }
  1327  
  1328  func (c *msgClient) LeaveFoundation(ctx context.Context, in *MsgLeaveFoundation, opts ...grpc.CallOption) (*MsgLeaveFoundationResponse, error) {
  1329  	out := new(MsgLeaveFoundationResponse)
  1330  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/LeaveFoundation", in, out, opts...)
  1331  	if err != nil {
  1332  		return nil, err
  1333  	}
  1334  	return out, nil
  1335  }
  1336  
  1337  func (c *msgClient) UpdateCensorship(ctx context.Context, in *MsgUpdateCensorship, opts ...grpc.CallOption) (*MsgUpdateCensorshipResponse, error) {
  1338  	out := new(MsgUpdateCensorshipResponse)
  1339  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/UpdateCensorship", in, out, opts...)
  1340  	if err != nil {
  1341  		return nil, err
  1342  	}
  1343  	return out, nil
  1344  }
  1345  
  1346  func (c *msgClient) Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error) {
  1347  	out := new(MsgGrantResponse)
  1348  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/Grant", in, out, opts...)
  1349  	if err != nil {
  1350  		return nil, err
  1351  	}
  1352  	return out, nil
  1353  }
  1354  
  1355  func (c *msgClient) Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error) {
  1356  	out := new(MsgRevokeResponse)
  1357  	err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/Revoke", in, out, opts...)
  1358  	if err != nil {
  1359  		return nil, err
  1360  	}
  1361  	return out, nil
  1362  }
  1363  
  1364  // MsgServer is the server API for Msg service.
  1365  type MsgServer interface {
  1366  	// FundTreasury defines a method to fund the treasury.
  1367  	FundTreasury(context.Context, *MsgFundTreasury) (*MsgFundTreasuryResponse, error)
  1368  	// WithdrawFromTreasury defines a method to withdraw coins from the treasury.
  1369  	WithdrawFromTreasury(context.Context, *MsgWithdrawFromTreasury) (*MsgWithdrawFromTreasuryResponse, error)
  1370  	// UpdateMembers updates the foundation members.
  1371  	UpdateMembers(context.Context, *MsgUpdateMembers) (*MsgUpdateMembersResponse, error)
  1372  	// UpdateDecisionPolicy allows a group policy's decision policy to be updated.
  1373  	UpdateDecisionPolicy(context.Context, *MsgUpdateDecisionPolicy) (*MsgUpdateDecisionPolicyResponse, error)
  1374  	// SubmitProposal submits a new proposal.
  1375  	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
  1376  	// WithdrawProposal aborts a proposal.
  1377  	WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error)
  1378  	// Vote allows a voter to vote on a proposal.
  1379  	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
  1380  	// Exec executes a proposal.
  1381  	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
  1382  	// LeaveFoundation allows a member to leave the foundation.
  1383  	LeaveFoundation(context.Context, *MsgLeaveFoundation) (*MsgLeaveFoundationResponse, error)
  1384  	// UpdateCensorship updates censorship information.
  1385  	UpdateCensorship(context.Context, *MsgUpdateCensorship) (*MsgUpdateCensorshipResponse, error)
  1386  	// Grant grants the provided authorization to the grantee with authority of
  1387  	// the foundation. If there is already a grant for the given
  1388  	// (grantee, Authorization) tuple, then the grant will be overwritten.
  1389  	Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error)
  1390  	// Revoke revokes any authorization corresponding to the provided method name
  1391  	// that has been granted to the grantee.
  1392  	Revoke(context.Context, *MsgRevoke) (*MsgRevokeResponse, error)
  1393  }
  1394  
  1395  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
  1396  type UnimplementedMsgServer struct {
  1397  }
  1398  
  1399  func (*UnimplementedMsgServer) FundTreasury(ctx context.Context, req *MsgFundTreasury) (*MsgFundTreasuryResponse, error) {
  1400  	return nil, status.Errorf(codes.Unimplemented, "method FundTreasury not implemented")
  1401  }
  1402  func (*UnimplementedMsgServer) WithdrawFromTreasury(ctx context.Context, req *MsgWithdrawFromTreasury) (*MsgWithdrawFromTreasuryResponse, error) {
  1403  	return nil, status.Errorf(codes.Unimplemented, "method WithdrawFromTreasury not implemented")
  1404  }
  1405  func (*UnimplementedMsgServer) UpdateMembers(ctx context.Context, req *MsgUpdateMembers) (*MsgUpdateMembersResponse, error) {
  1406  	return nil, status.Errorf(codes.Unimplemented, "method UpdateMembers not implemented")
  1407  }
  1408  func (*UnimplementedMsgServer) UpdateDecisionPolicy(ctx context.Context, req *MsgUpdateDecisionPolicy) (*MsgUpdateDecisionPolicyResponse, error) {
  1409  	return nil, status.Errorf(codes.Unimplemented, "method UpdateDecisionPolicy not implemented")
  1410  }
  1411  func (*UnimplementedMsgServer) SubmitProposal(ctx context.Context, req *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) {
  1412  	return nil, status.Errorf(codes.Unimplemented, "method SubmitProposal not implemented")
  1413  }
  1414  func (*UnimplementedMsgServer) WithdrawProposal(ctx context.Context, req *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error) {
  1415  	return nil, status.Errorf(codes.Unimplemented, "method WithdrawProposal not implemented")
  1416  }
  1417  func (*UnimplementedMsgServer) Vote(ctx context.Context, req *MsgVote) (*MsgVoteResponse, error) {
  1418  	return nil, status.Errorf(codes.Unimplemented, "method Vote not implemented")
  1419  }
  1420  func (*UnimplementedMsgServer) Exec(ctx context.Context, req *MsgExec) (*MsgExecResponse, error) {
  1421  	return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented")
  1422  }
  1423  func (*UnimplementedMsgServer) LeaveFoundation(ctx context.Context, req *MsgLeaveFoundation) (*MsgLeaveFoundationResponse, error) {
  1424  	return nil, status.Errorf(codes.Unimplemented, "method LeaveFoundation not implemented")
  1425  }
  1426  func (*UnimplementedMsgServer) UpdateCensorship(ctx context.Context, req *MsgUpdateCensorship) (*MsgUpdateCensorshipResponse, error) {
  1427  	return nil, status.Errorf(codes.Unimplemented, "method UpdateCensorship not implemented")
  1428  }
  1429  func (*UnimplementedMsgServer) Grant(ctx context.Context, req *MsgGrant) (*MsgGrantResponse, error) {
  1430  	return nil, status.Errorf(codes.Unimplemented, "method Grant not implemented")
  1431  }
  1432  func (*UnimplementedMsgServer) Revoke(ctx context.Context, req *MsgRevoke) (*MsgRevokeResponse, error) {
  1433  	return nil, status.Errorf(codes.Unimplemented, "method Revoke not implemented")
  1434  }
  1435  
  1436  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
  1437  	s.RegisterService(&_Msg_serviceDesc, srv)
  1438  }
  1439  
  1440  func _Msg_FundTreasury_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1441  	in := new(MsgFundTreasury)
  1442  	if err := dec(in); err != nil {
  1443  		return nil, err
  1444  	}
  1445  	if interceptor == nil {
  1446  		return srv.(MsgServer).FundTreasury(ctx, in)
  1447  	}
  1448  	info := &grpc.UnaryServerInfo{
  1449  		Server:     srv,
  1450  		FullMethod: "/lbm.foundation.v1.Msg/FundTreasury",
  1451  	}
  1452  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1453  		return srv.(MsgServer).FundTreasury(ctx, req.(*MsgFundTreasury))
  1454  	}
  1455  	return interceptor(ctx, in, info, handler)
  1456  }
  1457  
  1458  func _Msg_WithdrawFromTreasury_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1459  	in := new(MsgWithdrawFromTreasury)
  1460  	if err := dec(in); err != nil {
  1461  		return nil, err
  1462  	}
  1463  	if interceptor == nil {
  1464  		return srv.(MsgServer).WithdrawFromTreasury(ctx, in)
  1465  	}
  1466  	info := &grpc.UnaryServerInfo{
  1467  		Server:     srv,
  1468  		FullMethod: "/lbm.foundation.v1.Msg/WithdrawFromTreasury",
  1469  	}
  1470  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1471  		return srv.(MsgServer).WithdrawFromTreasury(ctx, req.(*MsgWithdrawFromTreasury))
  1472  	}
  1473  	return interceptor(ctx, in, info, handler)
  1474  }
  1475  
  1476  func _Msg_UpdateMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1477  	in := new(MsgUpdateMembers)
  1478  	if err := dec(in); err != nil {
  1479  		return nil, err
  1480  	}
  1481  	if interceptor == nil {
  1482  		return srv.(MsgServer).UpdateMembers(ctx, in)
  1483  	}
  1484  	info := &grpc.UnaryServerInfo{
  1485  		Server:     srv,
  1486  		FullMethod: "/lbm.foundation.v1.Msg/UpdateMembers",
  1487  	}
  1488  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1489  		return srv.(MsgServer).UpdateMembers(ctx, req.(*MsgUpdateMembers))
  1490  	}
  1491  	return interceptor(ctx, in, info, handler)
  1492  }
  1493  
  1494  func _Msg_UpdateDecisionPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1495  	in := new(MsgUpdateDecisionPolicy)
  1496  	if err := dec(in); err != nil {
  1497  		return nil, err
  1498  	}
  1499  	if interceptor == nil {
  1500  		return srv.(MsgServer).UpdateDecisionPolicy(ctx, in)
  1501  	}
  1502  	info := &grpc.UnaryServerInfo{
  1503  		Server:     srv,
  1504  		FullMethod: "/lbm.foundation.v1.Msg/UpdateDecisionPolicy",
  1505  	}
  1506  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1507  		return srv.(MsgServer).UpdateDecisionPolicy(ctx, req.(*MsgUpdateDecisionPolicy))
  1508  	}
  1509  	return interceptor(ctx, in, info, handler)
  1510  }
  1511  
  1512  func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1513  	in := new(MsgSubmitProposal)
  1514  	if err := dec(in); err != nil {
  1515  		return nil, err
  1516  	}
  1517  	if interceptor == nil {
  1518  		return srv.(MsgServer).SubmitProposal(ctx, in)
  1519  	}
  1520  	info := &grpc.UnaryServerInfo{
  1521  		Server:     srv,
  1522  		FullMethod: "/lbm.foundation.v1.Msg/SubmitProposal",
  1523  	}
  1524  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1525  		return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal))
  1526  	}
  1527  	return interceptor(ctx, in, info, handler)
  1528  }
  1529  
  1530  func _Msg_WithdrawProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1531  	in := new(MsgWithdrawProposal)
  1532  	if err := dec(in); err != nil {
  1533  		return nil, err
  1534  	}
  1535  	if interceptor == nil {
  1536  		return srv.(MsgServer).WithdrawProposal(ctx, in)
  1537  	}
  1538  	info := &grpc.UnaryServerInfo{
  1539  		Server:     srv,
  1540  		FullMethod: "/lbm.foundation.v1.Msg/WithdrawProposal",
  1541  	}
  1542  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1543  		return srv.(MsgServer).WithdrawProposal(ctx, req.(*MsgWithdrawProposal))
  1544  	}
  1545  	return interceptor(ctx, in, info, handler)
  1546  }
  1547  
  1548  func _Msg_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1549  	in := new(MsgVote)
  1550  	if err := dec(in); err != nil {
  1551  		return nil, err
  1552  	}
  1553  	if interceptor == nil {
  1554  		return srv.(MsgServer).Vote(ctx, in)
  1555  	}
  1556  	info := &grpc.UnaryServerInfo{
  1557  		Server:     srv,
  1558  		FullMethod: "/lbm.foundation.v1.Msg/Vote",
  1559  	}
  1560  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1561  		return srv.(MsgServer).Vote(ctx, req.(*MsgVote))
  1562  	}
  1563  	return interceptor(ctx, in, info, handler)
  1564  }
  1565  
  1566  func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1567  	in := new(MsgExec)
  1568  	if err := dec(in); err != nil {
  1569  		return nil, err
  1570  	}
  1571  	if interceptor == nil {
  1572  		return srv.(MsgServer).Exec(ctx, in)
  1573  	}
  1574  	info := &grpc.UnaryServerInfo{
  1575  		Server:     srv,
  1576  		FullMethod: "/lbm.foundation.v1.Msg/Exec",
  1577  	}
  1578  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1579  		return srv.(MsgServer).Exec(ctx, req.(*MsgExec))
  1580  	}
  1581  	return interceptor(ctx, in, info, handler)
  1582  }
  1583  
  1584  func _Msg_LeaveFoundation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1585  	in := new(MsgLeaveFoundation)
  1586  	if err := dec(in); err != nil {
  1587  		return nil, err
  1588  	}
  1589  	if interceptor == nil {
  1590  		return srv.(MsgServer).LeaveFoundation(ctx, in)
  1591  	}
  1592  	info := &grpc.UnaryServerInfo{
  1593  		Server:     srv,
  1594  		FullMethod: "/lbm.foundation.v1.Msg/LeaveFoundation",
  1595  	}
  1596  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1597  		return srv.(MsgServer).LeaveFoundation(ctx, req.(*MsgLeaveFoundation))
  1598  	}
  1599  	return interceptor(ctx, in, info, handler)
  1600  }
  1601  
  1602  func _Msg_UpdateCensorship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1603  	in := new(MsgUpdateCensorship)
  1604  	if err := dec(in); err != nil {
  1605  		return nil, err
  1606  	}
  1607  	if interceptor == nil {
  1608  		return srv.(MsgServer).UpdateCensorship(ctx, in)
  1609  	}
  1610  	info := &grpc.UnaryServerInfo{
  1611  		Server:     srv,
  1612  		FullMethod: "/lbm.foundation.v1.Msg/UpdateCensorship",
  1613  	}
  1614  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1615  		return srv.(MsgServer).UpdateCensorship(ctx, req.(*MsgUpdateCensorship))
  1616  	}
  1617  	return interceptor(ctx, in, info, handler)
  1618  }
  1619  
  1620  func _Msg_Grant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1621  	in := new(MsgGrant)
  1622  	if err := dec(in); err != nil {
  1623  		return nil, err
  1624  	}
  1625  	if interceptor == nil {
  1626  		return srv.(MsgServer).Grant(ctx, in)
  1627  	}
  1628  	info := &grpc.UnaryServerInfo{
  1629  		Server:     srv,
  1630  		FullMethod: "/lbm.foundation.v1.Msg/Grant",
  1631  	}
  1632  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1633  		return srv.(MsgServer).Grant(ctx, req.(*MsgGrant))
  1634  	}
  1635  	return interceptor(ctx, in, info, handler)
  1636  }
  1637  
  1638  func _Msg_Revoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1639  	in := new(MsgRevoke)
  1640  	if err := dec(in); err != nil {
  1641  		return nil, err
  1642  	}
  1643  	if interceptor == nil {
  1644  		return srv.(MsgServer).Revoke(ctx, in)
  1645  	}
  1646  	info := &grpc.UnaryServerInfo{
  1647  		Server:     srv,
  1648  		FullMethod: "/lbm.foundation.v1.Msg/Revoke",
  1649  	}
  1650  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1651  		return srv.(MsgServer).Revoke(ctx, req.(*MsgRevoke))
  1652  	}
  1653  	return interceptor(ctx, in, info, handler)
  1654  }
  1655  
  1656  var _Msg_serviceDesc = grpc.ServiceDesc{
  1657  	ServiceName: "lbm.foundation.v1.Msg",
  1658  	HandlerType: (*MsgServer)(nil),
  1659  	Methods: []grpc.MethodDesc{
  1660  		{
  1661  			MethodName: "FundTreasury",
  1662  			Handler:    _Msg_FundTreasury_Handler,
  1663  		},
  1664  		{
  1665  			MethodName: "WithdrawFromTreasury",
  1666  			Handler:    _Msg_WithdrawFromTreasury_Handler,
  1667  		},
  1668  		{
  1669  			MethodName: "UpdateMembers",
  1670  			Handler:    _Msg_UpdateMembers_Handler,
  1671  		},
  1672  		{
  1673  			MethodName: "UpdateDecisionPolicy",
  1674  			Handler:    _Msg_UpdateDecisionPolicy_Handler,
  1675  		},
  1676  		{
  1677  			MethodName: "SubmitProposal",
  1678  			Handler:    _Msg_SubmitProposal_Handler,
  1679  		},
  1680  		{
  1681  			MethodName: "WithdrawProposal",
  1682  			Handler:    _Msg_WithdrawProposal_Handler,
  1683  		},
  1684  		{
  1685  			MethodName: "Vote",
  1686  			Handler:    _Msg_Vote_Handler,
  1687  		},
  1688  		{
  1689  			MethodName: "Exec",
  1690  			Handler:    _Msg_Exec_Handler,
  1691  		},
  1692  		{
  1693  			MethodName: "LeaveFoundation",
  1694  			Handler:    _Msg_LeaveFoundation_Handler,
  1695  		},
  1696  		{
  1697  			MethodName: "UpdateCensorship",
  1698  			Handler:    _Msg_UpdateCensorship_Handler,
  1699  		},
  1700  		{
  1701  			MethodName: "Grant",
  1702  			Handler:    _Msg_Grant_Handler,
  1703  		},
  1704  		{
  1705  			MethodName: "Revoke",
  1706  			Handler:    _Msg_Revoke_Handler,
  1707  		},
  1708  	},
  1709  	Streams:  []grpc.StreamDesc{},
  1710  	Metadata: "lbm/foundation/v1/tx.proto",
  1711  }
  1712  
  1713  func (m *MsgFundTreasury) Marshal() (dAtA []byte, err error) {
  1714  	size := m.Size()
  1715  	dAtA = make([]byte, size)
  1716  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1717  	if err != nil {
  1718  		return nil, err
  1719  	}
  1720  	return dAtA[:n], nil
  1721  }
  1722  
  1723  func (m *MsgFundTreasury) MarshalTo(dAtA []byte) (int, error) {
  1724  	size := m.Size()
  1725  	return m.MarshalToSizedBuffer(dAtA[:size])
  1726  }
  1727  
  1728  func (m *MsgFundTreasury) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1729  	i := len(dAtA)
  1730  	_ = i
  1731  	var l int
  1732  	_ = l
  1733  	if len(m.Amount) > 0 {
  1734  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1735  			{
  1736  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1737  				if err != nil {
  1738  					return 0, err
  1739  				}
  1740  				i -= size
  1741  				i = encodeVarintTx(dAtA, i, uint64(size))
  1742  			}
  1743  			i--
  1744  			dAtA[i] = 0x12
  1745  		}
  1746  	}
  1747  	if len(m.From) > 0 {
  1748  		i -= len(m.From)
  1749  		copy(dAtA[i:], m.From)
  1750  		i = encodeVarintTx(dAtA, i, uint64(len(m.From)))
  1751  		i--
  1752  		dAtA[i] = 0xa
  1753  	}
  1754  	return len(dAtA) - i, nil
  1755  }
  1756  
  1757  func (m *MsgFundTreasuryResponse) Marshal() (dAtA []byte, err error) {
  1758  	size := m.Size()
  1759  	dAtA = make([]byte, size)
  1760  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1761  	if err != nil {
  1762  		return nil, err
  1763  	}
  1764  	return dAtA[:n], nil
  1765  }
  1766  
  1767  func (m *MsgFundTreasuryResponse) MarshalTo(dAtA []byte) (int, error) {
  1768  	size := m.Size()
  1769  	return m.MarshalToSizedBuffer(dAtA[:size])
  1770  }
  1771  
  1772  func (m *MsgFundTreasuryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1773  	i := len(dAtA)
  1774  	_ = i
  1775  	var l int
  1776  	_ = l
  1777  	return len(dAtA) - i, nil
  1778  }
  1779  
  1780  func (m *MsgWithdrawFromTreasury) Marshal() (dAtA []byte, err error) {
  1781  	size := m.Size()
  1782  	dAtA = make([]byte, size)
  1783  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1784  	if err != nil {
  1785  		return nil, err
  1786  	}
  1787  	return dAtA[:n], nil
  1788  }
  1789  
  1790  func (m *MsgWithdrawFromTreasury) MarshalTo(dAtA []byte) (int, error) {
  1791  	size := m.Size()
  1792  	return m.MarshalToSizedBuffer(dAtA[:size])
  1793  }
  1794  
  1795  func (m *MsgWithdrawFromTreasury) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1796  	i := len(dAtA)
  1797  	_ = i
  1798  	var l int
  1799  	_ = l
  1800  	if len(m.Amount) > 0 {
  1801  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1802  			{
  1803  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1804  				if err != nil {
  1805  					return 0, err
  1806  				}
  1807  				i -= size
  1808  				i = encodeVarintTx(dAtA, i, uint64(size))
  1809  			}
  1810  			i--
  1811  			dAtA[i] = 0x1a
  1812  		}
  1813  	}
  1814  	if len(m.To) > 0 {
  1815  		i -= len(m.To)
  1816  		copy(dAtA[i:], m.To)
  1817  		i = encodeVarintTx(dAtA, i, uint64(len(m.To)))
  1818  		i--
  1819  		dAtA[i] = 0x12
  1820  	}
  1821  	if len(m.Authority) > 0 {
  1822  		i -= len(m.Authority)
  1823  		copy(dAtA[i:], m.Authority)
  1824  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  1825  		i--
  1826  		dAtA[i] = 0xa
  1827  	}
  1828  	return len(dAtA) - i, nil
  1829  }
  1830  
  1831  func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
  1832  	size := m.Size()
  1833  	dAtA = make([]byte, size)
  1834  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1835  	if err != nil {
  1836  		return nil, err
  1837  	}
  1838  	return dAtA[:n], nil
  1839  }
  1840  
  1841  func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
  1842  	size := m.Size()
  1843  	return m.MarshalToSizedBuffer(dAtA[:size])
  1844  }
  1845  
  1846  func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1847  	i := len(dAtA)
  1848  	_ = i
  1849  	var l int
  1850  	_ = l
  1851  	{
  1852  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1853  		if err != nil {
  1854  			return 0, err
  1855  		}
  1856  		i -= size
  1857  		i = encodeVarintTx(dAtA, i, uint64(size))
  1858  	}
  1859  	i--
  1860  	dAtA[i] = 0x12
  1861  	if len(m.Authority) > 0 {
  1862  		i -= len(m.Authority)
  1863  		copy(dAtA[i:], m.Authority)
  1864  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  1865  		i--
  1866  		dAtA[i] = 0xa
  1867  	}
  1868  	return len(dAtA) - i, nil
  1869  }
  1870  
  1871  func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
  1872  	size := m.Size()
  1873  	dAtA = make([]byte, size)
  1874  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1875  	if err != nil {
  1876  		return nil, err
  1877  	}
  1878  	return dAtA[:n], nil
  1879  }
  1880  
  1881  func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1882  	size := m.Size()
  1883  	return m.MarshalToSizedBuffer(dAtA[:size])
  1884  }
  1885  
  1886  func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1887  	i := len(dAtA)
  1888  	_ = i
  1889  	var l int
  1890  	_ = l
  1891  	return len(dAtA) - i, nil
  1892  }
  1893  
  1894  func (m *MsgWithdrawFromTreasuryResponse) Marshal() (dAtA []byte, err error) {
  1895  	size := m.Size()
  1896  	dAtA = make([]byte, size)
  1897  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1898  	if err != nil {
  1899  		return nil, err
  1900  	}
  1901  	return dAtA[:n], nil
  1902  }
  1903  
  1904  func (m *MsgWithdrawFromTreasuryResponse) MarshalTo(dAtA []byte) (int, error) {
  1905  	size := m.Size()
  1906  	return m.MarshalToSizedBuffer(dAtA[:size])
  1907  }
  1908  
  1909  func (m *MsgWithdrawFromTreasuryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1910  	i := len(dAtA)
  1911  	_ = i
  1912  	var l int
  1913  	_ = l
  1914  	return len(dAtA) - i, nil
  1915  }
  1916  
  1917  func (m *MsgUpdateMembers) Marshal() (dAtA []byte, err error) {
  1918  	size := m.Size()
  1919  	dAtA = make([]byte, size)
  1920  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1921  	if err != nil {
  1922  		return nil, err
  1923  	}
  1924  	return dAtA[:n], nil
  1925  }
  1926  
  1927  func (m *MsgUpdateMembers) MarshalTo(dAtA []byte) (int, error) {
  1928  	size := m.Size()
  1929  	return m.MarshalToSizedBuffer(dAtA[:size])
  1930  }
  1931  
  1932  func (m *MsgUpdateMembers) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1933  	i := len(dAtA)
  1934  	_ = i
  1935  	var l int
  1936  	_ = l
  1937  	if len(m.MemberUpdates) > 0 {
  1938  		for iNdEx := len(m.MemberUpdates) - 1; iNdEx >= 0; iNdEx-- {
  1939  			{
  1940  				size, err := m.MemberUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1941  				if err != nil {
  1942  					return 0, err
  1943  				}
  1944  				i -= size
  1945  				i = encodeVarintTx(dAtA, i, uint64(size))
  1946  			}
  1947  			i--
  1948  			dAtA[i] = 0x12
  1949  		}
  1950  	}
  1951  	if len(m.Authority) > 0 {
  1952  		i -= len(m.Authority)
  1953  		copy(dAtA[i:], m.Authority)
  1954  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  1955  		i--
  1956  		dAtA[i] = 0xa
  1957  	}
  1958  	return len(dAtA) - i, nil
  1959  }
  1960  
  1961  func (m *MsgUpdateMembersResponse) Marshal() (dAtA []byte, err error) {
  1962  	size := m.Size()
  1963  	dAtA = make([]byte, size)
  1964  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1965  	if err != nil {
  1966  		return nil, err
  1967  	}
  1968  	return dAtA[:n], nil
  1969  }
  1970  
  1971  func (m *MsgUpdateMembersResponse) MarshalTo(dAtA []byte) (int, error) {
  1972  	size := m.Size()
  1973  	return m.MarshalToSizedBuffer(dAtA[:size])
  1974  }
  1975  
  1976  func (m *MsgUpdateMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1977  	i := len(dAtA)
  1978  	_ = i
  1979  	var l int
  1980  	_ = l
  1981  	return len(dAtA) - i, nil
  1982  }
  1983  
  1984  func (m *MsgUpdateDecisionPolicy) Marshal() (dAtA []byte, err error) {
  1985  	size := m.Size()
  1986  	dAtA = make([]byte, size)
  1987  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1988  	if err != nil {
  1989  		return nil, err
  1990  	}
  1991  	return dAtA[:n], nil
  1992  }
  1993  
  1994  func (m *MsgUpdateDecisionPolicy) MarshalTo(dAtA []byte) (int, error) {
  1995  	size := m.Size()
  1996  	return m.MarshalToSizedBuffer(dAtA[:size])
  1997  }
  1998  
  1999  func (m *MsgUpdateDecisionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2000  	i := len(dAtA)
  2001  	_ = i
  2002  	var l int
  2003  	_ = l
  2004  	if m.DecisionPolicy != nil {
  2005  		{
  2006  			size, err := m.DecisionPolicy.MarshalToSizedBuffer(dAtA[:i])
  2007  			if err != nil {
  2008  				return 0, err
  2009  			}
  2010  			i -= size
  2011  			i = encodeVarintTx(dAtA, i, uint64(size))
  2012  		}
  2013  		i--
  2014  		dAtA[i] = 0x12
  2015  	}
  2016  	if len(m.Authority) > 0 {
  2017  		i -= len(m.Authority)
  2018  		copy(dAtA[i:], m.Authority)
  2019  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  2020  		i--
  2021  		dAtA[i] = 0xa
  2022  	}
  2023  	return len(dAtA) - i, nil
  2024  }
  2025  
  2026  func (m *MsgUpdateDecisionPolicyResponse) Marshal() (dAtA []byte, err error) {
  2027  	size := m.Size()
  2028  	dAtA = make([]byte, size)
  2029  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2030  	if err != nil {
  2031  		return nil, err
  2032  	}
  2033  	return dAtA[:n], nil
  2034  }
  2035  
  2036  func (m *MsgUpdateDecisionPolicyResponse) MarshalTo(dAtA []byte) (int, error) {
  2037  	size := m.Size()
  2038  	return m.MarshalToSizedBuffer(dAtA[:size])
  2039  }
  2040  
  2041  func (m *MsgUpdateDecisionPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2042  	i := len(dAtA)
  2043  	_ = i
  2044  	var l int
  2045  	_ = l
  2046  	return len(dAtA) - i, nil
  2047  }
  2048  
  2049  func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) {
  2050  	size := m.Size()
  2051  	dAtA = make([]byte, size)
  2052  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2053  	if err != nil {
  2054  		return nil, err
  2055  	}
  2056  	return dAtA[:n], nil
  2057  }
  2058  
  2059  func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) {
  2060  	size := m.Size()
  2061  	return m.MarshalToSizedBuffer(dAtA[:size])
  2062  }
  2063  
  2064  func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2065  	i := len(dAtA)
  2066  	_ = i
  2067  	var l int
  2068  	_ = l
  2069  	if m.Exec != 0 {
  2070  		i = encodeVarintTx(dAtA, i, uint64(m.Exec))
  2071  		i--
  2072  		dAtA[i] = 0x20
  2073  	}
  2074  	if len(m.Messages) > 0 {
  2075  		for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- {
  2076  			{
  2077  				size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2078  				if err != nil {
  2079  					return 0, err
  2080  				}
  2081  				i -= size
  2082  				i = encodeVarintTx(dAtA, i, uint64(size))
  2083  			}
  2084  			i--
  2085  			dAtA[i] = 0x1a
  2086  		}
  2087  	}
  2088  	if len(m.Metadata) > 0 {
  2089  		i -= len(m.Metadata)
  2090  		copy(dAtA[i:], m.Metadata)
  2091  		i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata)))
  2092  		i--
  2093  		dAtA[i] = 0x12
  2094  	}
  2095  	if len(m.Proposers) > 0 {
  2096  		for iNdEx := len(m.Proposers) - 1; iNdEx >= 0; iNdEx-- {
  2097  			i -= len(m.Proposers[iNdEx])
  2098  			copy(dAtA[i:], m.Proposers[iNdEx])
  2099  			i = encodeVarintTx(dAtA, i, uint64(len(m.Proposers[iNdEx])))
  2100  			i--
  2101  			dAtA[i] = 0xa
  2102  		}
  2103  	}
  2104  	return len(dAtA) - i, nil
  2105  }
  2106  
  2107  func (m *MsgSubmitProposalResponse) Marshal() (dAtA []byte, err error) {
  2108  	size := m.Size()
  2109  	dAtA = make([]byte, size)
  2110  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2111  	if err != nil {
  2112  		return nil, err
  2113  	}
  2114  	return dAtA[:n], nil
  2115  }
  2116  
  2117  func (m *MsgSubmitProposalResponse) MarshalTo(dAtA []byte) (int, error) {
  2118  	size := m.Size()
  2119  	return m.MarshalToSizedBuffer(dAtA[:size])
  2120  }
  2121  
  2122  func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2123  	i := len(dAtA)
  2124  	_ = i
  2125  	var l int
  2126  	_ = l
  2127  	if m.ProposalId != 0 {
  2128  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
  2129  		i--
  2130  		dAtA[i] = 0x8
  2131  	}
  2132  	return len(dAtA) - i, nil
  2133  }
  2134  
  2135  func (m *MsgWithdrawProposal) Marshal() (dAtA []byte, err error) {
  2136  	size := m.Size()
  2137  	dAtA = make([]byte, size)
  2138  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2139  	if err != nil {
  2140  		return nil, err
  2141  	}
  2142  	return dAtA[:n], nil
  2143  }
  2144  
  2145  func (m *MsgWithdrawProposal) MarshalTo(dAtA []byte) (int, error) {
  2146  	size := m.Size()
  2147  	return m.MarshalToSizedBuffer(dAtA[:size])
  2148  }
  2149  
  2150  func (m *MsgWithdrawProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2151  	i := len(dAtA)
  2152  	_ = i
  2153  	var l int
  2154  	_ = l
  2155  	if len(m.Address) > 0 {
  2156  		i -= len(m.Address)
  2157  		copy(dAtA[i:], m.Address)
  2158  		i = encodeVarintTx(dAtA, i, uint64(len(m.Address)))
  2159  		i--
  2160  		dAtA[i] = 0x12
  2161  	}
  2162  	if m.ProposalId != 0 {
  2163  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
  2164  		i--
  2165  		dAtA[i] = 0x8
  2166  	}
  2167  	return len(dAtA) - i, nil
  2168  }
  2169  
  2170  func (m *MsgWithdrawProposalResponse) Marshal() (dAtA []byte, err error) {
  2171  	size := m.Size()
  2172  	dAtA = make([]byte, size)
  2173  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2174  	if err != nil {
  2175  		return nil, err
  2176  	}
  2177  	return dAtA[:n], nil
  2178  }
  2179  
  2180  func (m *MsgWithdrawProposalResponse) MarshalTo(dAtA []byte) (int, error) {
  2181  	size := m.Size()
  2182  	return m.MarshalToSizedBuffer(dAtA[:size])
  2183  }
  2184  
  2185  func (m *MsgWithdrawProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2186  	i := len(dAtA)
  2187  	_ = i
  2188  	var l int
  2189  	_ = l
  2190  	return len(dAtA) - i, nil
  2191  }
  2192  
  2193  func (m *MsgVote) Marshal() (dAtA []byte, err error) {
  2194  	size := m.Size()
  2195  	dAtA = make([]byte, size)
  2196  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2197  	if err != nil {
  2198  		return nil, err
  2199  	}
  2200  	return dAtA[:n], nil
  2201  }
  2202  
  2203  func (m *MsgVote) MarshalTo(dAtA []byte) (int, error) {
  2204  	size := m.Size()
  2205  	return m.MarshalToSizedBuffer(dAtA[:size])
  2206  }
  2207  
  2208  func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2209  	i := len(dAtA)
  2210  	_ = i
  2211  	var l int
  2212  	_ = l
  2213  	if m.Exec != 0 {
  2214  		i = encodeVarintTx(dAtA, i, uint64(m.Exec))
  2215  		i--
  2216  		dAtA[i] = 0x28
  2217  	}
  2218  	if len(m.Metadata) > 0 {
  2219  		i -= len(m.Metadata)
  2220  		copy(dAtA[i:], m.Metadata)
  2221  		i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata)))
  2222  		i--
  2223  		dAtA[i] = 0x22
  2224  	}
  2225  	if m.Option != 0 {
  2226  		i = encodeVarintTx(dAtA, i, uint64(m.Option))
  2227  		i--
  2228  		dAtA[i] = 0x18
  2229  	}
  2230  	if len(m.Voter) > 0 {
  2231  		i -= len(m.Voter)
  2232  		copy(dAtA[i:], m.Voter)
  2233  		i = encodeVarintTx(dAtA, i, uint64(len(m.Voter)))
  2234  		i--
  2235  		dAtA[i] = 0x12
  2236  	}
  2237  	if m.ProposalId != 0 {
  2238  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
  2239  		i--
  2240  		dAtA[i] = 0x8
  2241  	}
  2242  	return len(dAtA) - i, nil
  2243  }
  2244  
  2245  func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error) {
  2246  	size := m.Size()
  2247  	dAtA = make([]byte, size)
  2248  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2249  	if err != nil {
  2250  		return nil, err
  2251  	}
  2252  	return dAtA[:n], nil
  2253  }
  2254  
  2255  func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error) {
  2256  	size := m.Size()
  2257  	return m.MarshalToSizedBuffer(dAtA[:size])
  2258  }
  2259  
  2260  func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2261  	i := len(dAtA)
  2262  	_ = i
  2263  	var l int
  2264  	_ = l
  2265  	return len(dAtA) - i, nil
  2266  }
  2267  
  2268  func (m *MsgExec) Marshal() (dAtA []byte, err error) {
  2269  	size := m.Size()
  2270  	dAtA = make([]byte, size)
  2271  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2272  	if err != nil {
  2273  		return nil, err
  2274  	}
  2275  	return dAtA[:n], nil
  2276  }
  2277  
  2278  func (m *MsgExec) MarshalTo(dAtA []byte) (int, error) {
  2279  	size := m.Size()
  2280  	return m.MarshalToSizedBuffer(dAtA[:size])
  2281  }
  2282  
  2283  func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2284  	i := len(dAtA)
  2285  	_ = i
  2286  	var l int
  2287  	_ = l
  2288  	if len(m.Signer) > 0 {
  2289  		i -= len(m.Signer)
  2290  		copy(dAtA[i:], m.Signer)
  2291  		i = encodeVarintTx(dAtA, i, uint64(len(m.Signer)))
  2292  		i--
  2293  		dAtA[i] = 0x12
  2294  	}
  2295  	if m.ProposalId != 0 {
  2296  		i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
  2297  		i--
  2298  		dAtA[i] = 0x8
  2299  	}
  2300  	return len(dAtA) - i, nil
  2301  }
  2302  
  2303  func (m *MsgExecResponse) Marshal() (dAtA []byte, err error) {
  2304  	size := m.Size()
  2305  	dAtA = make([]byte, size)
  2306  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2307  	if err != nil {
  2308  		return nil, err
  2309  	}
  2310  	return dAtA[:n], nil
  2311  }
  2312  
  2313  func (m *MsgExecResponse) MarshalTo(dAtA []byte) (int, error) {
  2314  	size := m.Size()
  2315  	return m.MarshalToSizedBuffer(dAtA[:size])
  2316  }
  2317  
  2318  func (m *MsgExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2319  	i := len(dAtA)
  2320  	_ = i
  2321  	var l int
  2322  	_ = l
  2323  	return len(dAtA) - i, nil
  2324  }
  2325  
  2326  func (m *MsgLeaveFoundation) Marshal() (dAtA []byte, err error) {
  2327  	size := m.Size()
  2328  	dAtA = make([]byte, size)
  2329  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2330  	if err != nil {
  2331  		return nil, err
  2332  	}
  2333  	return dAtA[:n], nil
  2334  }
  2335  
  2336  func (m *MsgLeaveFoundation) MarshalTo(dAtA []byte) (int, error) {
  2337  	size := m.Size()
  2338  	return m.MarshalToSizedBuffer(dAtA[:size])
  2339  }
  2340  
  2341  func (m *MsgLeaveFoundation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2342  	i := len(dAtA)
  2343  	_ = i
  2344  	var l int
  2345  	_ = l
  2346  	if len(m.Address) > 0 {
  2347  		i -= len(m.Address)
  2348  		copy(dAtA[i:], m.Address)
  2349  		i = encodeVarintTx(dAtA, i, uint64(len(m.Address)))
  2350  		i--
  2351  		dAtA[i] = 0xa
  2352  	}
  2353  	return len(dAtA) - i, nil
  2354  }
  2355  
  2356  func (m *MsgLeaveFoundationResponse) Marshal() (dAtA []byte, err error) {
  2357  	size := m.Size()
  2358  	dAtA = make([]byte, size)
  2359  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2360  	if err != nil {
  2361  		return nil, err
  2362  	}
  2363  	return dAtA[:n], nil
  2364  }
  2365  
  2366  func (m *MsgLeaveFoundationResponse) MarshalTo(dAtA []byte) (int, error) {
  2367  	size := m.Size()
  2368  	return m.MarshalToSizedBuffer(dAtA[:size])
  2369  }
  2370  
  2371  func (m *MsgLeaveFoundationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2372  	i := len(dAtA)
  2373  	_ = i
  2374  	var l int
  2375  	_ = l
  2376  	return len(dAtA) - i, nil
  2377  }
  2378  
  2379  func (m *MsgUpdateCensorship) Marshal() (dAtA []byte, err error) {
  2380  	size := m.Size()
  2381  	dAtA = make([]byte, size)
  2382  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2383  	if err != nil {
  2384  		return nil, err
  2385  	}
  2386  	return dAtA[:n], nil
  2387  }
  2388  
  2389  func (m *MsgUpdateCensorship) MarshalTo(dAtA []byte) (int, error) {
  2390  	size := m.Size()
  2391  	return m.MarshalToSizedBuffer(dAtA[:size])
  2392  }
  2393  
  2394  func (m *MsgUpdateCensorship) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2395  	i := len(dAtA)
  2396  	_ = i
  2397  	var l int
  2398  	_ = l
  2399  	{
  2400  		size, err := m.Censorship.MarshalToSizedBuffer(dAtA[:i])
  2401  		if err != nil {
  2402  			return 0, err
  2403  		}
  2404  		i -= size
  2405  		i = encodeVarintTx(dAtA, i, uint64(size))
  2406  	}
  2407  	i--
  2408  	dAtA[i] = 0x12
  2409  	if len(m.Authority) > 0 {
  2410  		i -= len(m.Authority)
  2411  		copy(dAtA[i:], m.Authority)
  2412  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  2413  		i--
  2414  		dAtA[i] = 0xa
  2415  	}
  2416  	return len(dAtA) - i, nil
  2417  }
  2418  
  2419  func (m *MsgUpdateCensorshipResponse) Marshal() (dAtA []byte, err error) {
  2420  	size := m.Size()
  2421  	dAtA = make([]byte, size)
  2422  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2423  	if err != nil {
  2424  		return nil, err
  2425  	}
  2426  	return dAtA[:n], nil
  2427  }
  2428  
  2429  func (m *MsgUpdateCensorshipResponse) MarshalTo(dAtA []byte) (int, error) {
  2430  	size := m.Size()
  2431  	return m.MarshalToSizedBuffer(dAtA[:size])
  2432  }
  2433  
  2434  func (m *MsgUpdateCensorshipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2435  	i := len(dAtA)
  2436  	_ = i
  2437  	var l int
  2438  	_ = l
  2439  	return len(dAtA) - i, nil
  2440  }
  2441  
  2442  func (m *MsgGrant) Marshal() (dAtA []byte, err error) {
  2443  	size := m.Size()
  2444  	dAtA = make([]byte, size)
  2445  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2446  	if err != nil {
  2447  		return nil, err
  2448  	}
  2449  	return dAtA[:n], nil
  2450  }
  2451  
  2452  func (m *MsgGrant) MarshalTo(dAtA []byte) (int, error) {
  2453  	size := m.Size()
  2454  	return m.MarshalToSizedBuffer(dAtA[:size])
  2455  }
  2456  
  2457  func (m *MsgGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2458  	i := len(dAtA)
  2459  	_ = i
  2460  	var l int
  2461  	_ = l
  2462  	if m.Authorization != nil {
  2463  		{
  2464  			size, err := m.Authorization.MarshalToSizedBuffer(dAtA[:i])
  2465  			if err != nil {
  2466  				return 0, err
  2467  			}
  2468  			i -= size
  2469  			i = encodeVarintTx(dAtA, i, uint64(size))
  2470  		}
  2471  		i--
  2472  		dAtA[i] = 0x1a
  2473  	}
  2474  	if len(m.Grantee) > 0 {
  2475  		i -= len(m.Grantee)
  2476  		copy(dAtA[i:], m.Grantee)
  2477  		i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee)))
  2478  		i--
  2479  		dAtA[i] = 0x12
  2480  	}
  2481  	if len(m.Authority) > 0 {
  2482  		i -= len(m.Authority)
  2483  		copy(dAtA[i:], m.Authority)
  2484  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  2485  		i--
  2486  		dAtA[i] = 0xa
  2487  	}
  2488  	return len(dAtA) - i, nil
  2489  }
  2490  
  2491  func (m *MsgGrantResponse) Marshal() (dAtA []byte, err error) {
  2492  	size := m.Size()
  2493  	dAtA = make([]byte, size)
  2494  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2495  	if err != nil {
  2496  		return nil, err
  2497  	}
  2498  	return dAtA[:n], nil
  2499  }
  2500  
  2501  func (m *MsgGrantResponse) MarshalTo(dAtA []byte) (int, error) {
  2502  	size := m.Size()
  2503  	return m.MarshalToSizedBuffer(dAtA[:size])
  2504  }
  2505  
  2506  func (m *MsgGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2507  	i := len(dAtA)
  2508  	_ = i
  2509  	var l int
  2510  	_ = l
  2511  	return len(dAtA) - i, nil
  2512  }
  2513  
  2514  func (m *MsgRevoke) Marshal() (dAtA []byte, err error) {
  2515  	size := m.Size()
  2516  	dAtA = make([]byte, size)
  2517  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2518  	if err != nil {
  2519  		return nil, err
  2520  	}
  2521  	return dAtA[:n], nil
  2522  }
  2523  
  2524  func (m *MsgRevoke) MarshalTo(dAtA []byte) (int, error) {
  2525  	size := m.Size()
  2526  	return m.MarshalToSizedBuffer(dAtA[:size])
  2527  }
  2528  
  2529  func (m *MsgRevoke) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2530  	i := len(dAtA)
  2531  	_ = i
  2532  	var l int
  2533  	_ = l
  2534  	if len(m.MsgTypeUrl) > 0 {
  2535  		i -= len(m.MsgTypeUrl)
  2536  		copy(dAtA[i:], m.MsgTypeUrl)
  2537  		i = encodeVarintTx(dAtA, i, uint64(len(m.MsgTypeUrl)))
  2538  		i--
  2539  		dAtA[i] = 0x1a
  2540  	}
  2541  	if len(m.Grantee) > 0 {
  2542  		i -= len(m.Grantee)
  2543  		copy(dAtA[i:], m.Grantee)
  2544  		i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee)))
  2545  		i--
  2546  		dAtA[i] = 0x12
  2547  	}
  2548  	if len(m.Authority) > 0 {
  2549  		i -= len(m.Authority)
  2550  		copy(dAtA[i:], m.Authority)
  2551  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  2552  		i--
  2553  		dAtA[i] = 0xa
  2554  	}
  2555  	return len(dAtA) - i, nil
  2556  }
  2557  
  2558  func (m *MsgRevokeResponse) Marshal() (dAtA []byte, err error) {
  2559  	size := m.Size()
  2560  	dAtA = make([]byte, size)
  2561  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2562  	if err != nil {
  2563  		return nil, err
  2564  	}
  2565  	return dAtA[:n], nil
  2566  }
  2567  
  2568  func (m *MsgRevokeResponse) MarshalTo(dAtA []byte) (int, error) {
  2569  	size := m.Size()
  2570  	return m.MarshalToSizedBuffer(dAtA[:size])
  2571  }
  2572  
  2573  func (m *MsgRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2574  	i := len(dAtA)
  2575  	_ = i
  2576  	var l int
  2577  	_ = l
  2578  	return len(dAtA) - i, nil
  2579  }
  2580  
  2581  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
  2582  	offset -= sovTx(v)
  2583  	base := offset
  2584  	for v >= 1<<7 {
  2585  		dAtA[offset] = uint8(v&0x7f | 0x80)
  2586  		v >>= 7
  2587  		offset++
  2588  	}
  2589  	dAtA[offset] = uint8(v)
  2590  	return base
  2591  }
  2592  func (m *MsgFundTreasury) Size() (n int) {
  2593  	if m == nil {
  2594  		return 0
  2595  	}
  2596  	var l int
  2597  	_ = l
  2598  	l = len(m.From)
  2599  	if l > 0 {
  2600  		n += 1 + l + sovTx(uint64(l))
  2601  	}
  2602  	if len(m.Amount) > 0 {
  2603  		for _, e := range m.Amount {
  2604  			l = e.Size()
  2605  			n += 1 + l + sovTx(uint64(l))
  2606  		}
  2607  	}
  2608  	return n
  2609  }
  2610  
  2611  func (m *MsgFundTreasuryResponse) Size() (n int) {
  2612  	if m == nil {
  2613  		return 0
  2614  	}
  2615  	var l int
  2616  	_ = l
  2617  	return n
  2618  }
  2619  
  2620  func (m *MsgWithdrawFromTreasury) Size() (n int) {
  2621  	if m == nil {
  2622  		return 0
  2623  	}
  2624  	var l int
  2625  	_ = l
  2626  	l = len(m.Authority)
  2627  	if l > 0 {
  2628  		n += 1 + l + sovTx(uint64(l))
  2629  	}
  2630  	l = len(m.To)
  2631  	if l > 0 {
  2632  		n += 1 + l + sovTx(uint64(l))
  2633  	}
  2634  	if len(m.Amount) > 0 {
  2635  		for _, e := range m.Amount {
  2636  			l = e.Size()
  2637  			n += 1 + l + sovTx(uint64(l))
  2638  		}
  2639  	}
  2640  	return n
  2641  }
  2642  
  2643  func (m *MsgUpdateParams) Size() (n int) {
  2644  	if m == nil {
  2645  		return 0
  2646  	}
  2647  	var l int
  2648  	_ = l
  2649  	l = len(m.Authority)
  2650  	if l > 0 {
  2651  		n += 1 + l + sovTx(uint64(l))
  2652  	}
  2653  	l = m.Params.Size()
  2654  	n += 1 + l + sovTx(uint64(l))
  2655  	return n
  2656  }
  2657  
  2658  func (m *MsgUpdateParamsResponse) Size() (n int) {
  2659  	if m == nil {
  2660  		return 0
  2661  	}
  2662  	var l int
  2663  	_ = l
  2664  	return n
  2665  }
  2666  
  2667  func (m *MsgWithdrawFromTreasuryResponse) Size() (n int) {
  2668  	if m == nil {
  2669  		return 0
  2670  	}
  2671  	var l int
  2672  	_ = l
  2673  	return n
  2674  }
  2675  
  2676  func (m *MsgUpdateMembers) Size() (n int) {
  2677  	if m == nil {
  2678  		return 0
  2679  	}
  2680  	var l int
  2681  	_ = l
  2682  	l = len(m.Authority)
  2683  	if l > 0 {
  2684  		n += 1 + l + sovTx(uint64(l))
  2685  	}
  2686  	if len(m.MemberUpdates) > 0 {
  2687  		for _, e := range m.MemberUpdates {
  2688  			l = e.Size()
  2689  			n += 1 + l + sovTx(uint64(l))
  2690  		}
  2691  	}
  2692  	return n
  2693  }
  2694  
  2695  func (m *MsgUpdateMembersResponse) Size() (n int) {
  2696  	if m == nil {
  2697  		return 0
  2698  	}
  2699  	var l int
  2700  	_ = l
  2701  	return n
  2702  }
  2703  
  2704  func (m *MsgUpdateDecisionPolicy) Size() (n int) {
  2705  	if m == nil {
  2706  		return 0
  2707  	}
  2708  	var l int
  2709  	_ = l
  2710  	l = len(m.Authority)
  2711  	if l > 0 {
  2712  		n += 1 + l + sovTx(uint64(l))
  2713  	}
  2714  	if m.DecisionPolicy != nil {
  2715  		l = m.DecisionPolicy.Size()
  2716  		n += 1 + l + sovTx(uint64(l))
  2717  	}
  2718  	return n
  2719  }
  2720  
  2721  func (m *MsgUpdateDecisionPolicyResponse) Size() (n int) {
  2722  	if m == nil {
  2723  		return 0
  2724  	}
  2725  	var l int
  2726  	_ = l
  2727  	return n
  2728  }
  2729  
  2730  func (m *MsgSubmitProposal) Size() (n int) {
  2731  	if m == nil {
  2732  		return 0
  2733  	}
  2734  	var l int
  2735  	_ = l
  2736  	if len(m.Proposers) > 0 {
  2737  		for _, s := range m.Proposers {
  2738  			l = len(s)
  2739  			n += 1 + l + sovTx(uint64(l))
  2740  		}
  2741  	}
  2742  	l = len(m.Metadata)
  2743  	if l > 0 {
  2744  		n += 1 + l + sovTx(uint64(l))
  2745  	}
  2746  	if len(m.Messages) > 0 {
  2747  		for _, e := range m.Messages {
  2748  			l = e.Size()
  2749  			n += 1 + l + sovTx(uint64(l))
  2750  		}
  2751  	}
  2752  	if m.Exec != 0 {
  2753  		n += 1 + sovTx(uint64(m.Exec))
  2754  	}
  2755  	return n
  2756  }
  2757  
  2758  func (m *MsgSubmitProposalResponse) Size() (n int) {
  2759  	if m == nil {
  2760  		return 0
  2761  	}
  2762  	var l int
  2763  	_ = l
  2764  	if m.ProposalId != 0 {
  2765  		n += 1 + sovTx(uint64(m.ProposalId))
  2766  	}
  2767  	return n
  2768  }
  2769  
  2770  func (m *MsgWithdrawProposal) Size() (n int) {
  2771  	if m == nil {
  2772  		return 0
  2773  	}
  2774  	var l int
  2775  	_ = l
  2776  	if m.ProposalId != 0 {
  2777  		n += 1 + sovTx(uint64(m.ProposalId))
  2778  	}
  2779  	l = len(m.Address)
  2780  	if l > 0 {
  2781  		n += 1 + l + sovTx(uint64(l))
  2782  	}
  2783  	return n
  2784  }
  2785  
  2786  func (m *MsgWithdrawProposalResponse) Size() (n int) {
  2787  	if m == nil {
  2788  		return 0
  2789  	}
  2790  	var l int
  2791  	_ = l
  2792  	return n
  2793  }
  2794  
  2795  func (m *MsgVote) Size() (n int) {
  2796  	if m == nil {
  2797  		return 0
  2798  	}
  2799  	var l int
  2800  	_ = l
  2801  	if m.ProposalId != 0 {
  2802  		n += 1 + sovTx(uint64(m.ProposalId))
  2803  	}
  2804  	l = len(m.Voter)
  2805  	if l > 0 {
  2806  		n += 1 + l + sovTx(uint64(l))
  2807  	}
  2808  	if m.Option != 0 {
  2809  		n += 1 + sovTx(uint64(m.Option))
  2810  	}
  2811  	l = len(m.Metadata)
  2812  	if l > 0 {
  2813  		n += 1 + l + sovTx(uint64(l))
  2814  	}
  2815  	if m.Exec != 0 {
  2816  		n += 1 + sovTx(uint64(m.Exec))
  2817  	}
  2818  	return n
  2819  }
  2820  
  2821  func (m *MsgVoteResponse) Size() (n int) {
  2822  	if m == nil {
  2823  		return 0
  2824  	}
  2825  	var l int
  2826  	_ = l
  2827  	return n
  2828  }
  2829  
  2830  func (m *MsgExec) Size() (n int) {
  2831  	if m == nil {
  2832  		return 0
  2833  	}
  2834  	var l int
  2835  	_ = l
  2836  	if m.ProposalId != 0 {
  2837  		n += 1 + sovTx(uint64(m.ProposalId))
  2838  	}
  2839  	l = len(m.Signer)
  2840  	if l > 0 {
  2841  		n += 1 + l + sovTx(uint64(l))
  2842  	}
  2843  	return n
  2844  }
  2845  
  2846  func (m *MsgExecResponse) Size() (n int) {
  2847  	if m == nil {
  2848  		return 0
  2849  	}
  2850  	var l int
  2851  	_ = l
  2852  	return n
  2853  }
  2854  
  2855  func (m *MsgLeaveFoundation) Size() (n int) {
  2856  	if m == nil {
  2857  		return 0
  2858  	}
  2859  	var l int
  2860  	_ = l
  2861  	l = len(m.Address)
  2862  	if l > 0 {
  2863  		n += 1 + l + sovTx(uint64(l))
  2864  	}
  2865  	return n
  2866  }
  2867  
  2868  func (m *MsgLeaveFoundationResponse) Size() (n int) {
  2869  	if m == nil {
  2870  		return 0
  2871  	}
  2872  	var l int
  2873  	_ = l
  2874  	return n
  2875  }
  2876  
  2877  func (m *MsgUpdateCensorship) Size() (n int) {
  2878  	if m == nil {
  2879  		return 0
  2880  	}
  2881  	var l int
  2882  	_ = l
  2883  	l = len(m.Authority)
  2884  	if l > 0 {
  2885  		n += 1 + l + sovTx(uint64(l))
  2886  	}
  2887  	l = m.Censorship.Size()
  2888  	n += 1 + l + sovTx(uint64(l))
  2889  	return n
  2890  }
  2891  
  2892  func (m *MsgUpdateCensorshipResponse) Size() (n int) {
  2893  	if m == nil {
  2894  		return 0
  2895  	}
  2896  	var l int
  2897  	_ = l
  2898  	return n
  2899  }
  2900  
  2901  func (m *MsgGrant) Size() (n int) {
  2902  	if m == nil {
  2903  		return 0
  2904  	}
  2905  	var l int
  2906  	_ = l
  2907  	l = len(m.Authority)
  2908  	if l > 0 {
  2909  		n += 1 + l + sovTx(uint64(l))
  2910  	}
  2911  	l = len(m.Grantee)
  2912  	if l > 0 {
  2913  		n += 1 + l + sovTx(uint64(l))
  2914  	}
  2915  	if m.Authorization != nil {
  2916  		l = m.Authorization.Size()
  2917  		n += 1 + l + sovTx(uint64(l))
  2918  	}
  2919  	return n
  2920  }
  2921  
  2922  func (m *MsgGrantResponse) Size() (n int) {
  2923  	if m == nil {
  2924  		return 0
  2925  	}
  2926  	var l int
  2927  	_ = l
  2928  	return n
  2929  }
  2930  
  2931  func (m *MsgRevoke) Size() (n int) {
  2932  	if m == nil {
  2933  		return 0
  2934  	}
  2935  	var l int
  2936  	_ = l
  2937  	l = len(m.Authority)
  2938  	if l > 0 {
  2939  		n += 1 + l + sovTx(uint64(l))
  2940  	}
  2941  	l = len(m.Grantee)
  2942  	if l > 0 {
  2943  		n += 1 + l + sovTx(uint64(l))
  2944  	}
  2945  	l = len(m.MsgTypeUrl)
  2946  	if l > 0 {
  2947  		n += 1 + l + sovTx(uint64(l))
  2948  	}
  2949  	return n
  2950  }
  2951  
  2952  func (m *MsgRevokeResponse) Size() (n int) {
  2953  	if m == nil {
  2954  		return 0
  2955  	}
  2956  	var l int
  2957  	_ = l
  2958  	return n
  2959  }
  2960  
  2961  func sovTx(x uint64) (n int) {
  2962  	return (math_bits.Len64(x|1) + 6) / 7
  2963  }
  2964  func sozTx(x uint64) (n int) {
  2965  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2966  }
  2967  func (m *MsgFundTreasury) Unmarshal(dAtA []byte) error {
  2968  	l := len(dAtA)
  2969  	iNdEx := 0
  2970  	for iNdEx < l {
  2971  		preIndex := iNdEx
  2972  		var wire uint64
  2973  		for shift := uint(0); ; shift += 7 {
  2974  			if shift >= 64 {
  2975  				return ErrIntOverflowTx
  2976  			}
  2977  			if iNdEx >= l {
  2978  				return io.ErrUnexpectedEOF
  2979  			}
  2980  			b := dAtA[iNdEx]
  2981  			iNdEx++
  2982  			wire |= uint64(b&0x7F) << shift
  2983  			if b < 0x80 {
  2984  				break
  2985  			}
  2986  		}
  2987  		fieldNum := int32(wire >> 3)
  2988  		wireType := int(wire & 0x7)
  2989  		if wireType == 4 {
  2990  			return fmt.Errorf("proto: MsgFundTreasury: wiretype end group for non-group")
  2991  		}
  2992  		if fieldNum <= 0 {
  2993  			return fmt.Errorf("proto: MsgFundTreasury: illegal tag %d (wire type %d)", fieldNum, wire)
  2994  		}
  2995  		switch fieldNum {
  2996  		case 1:
  2997  			if wireType != 2 {
  2998  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  2999  			}
  3000  			var stringLen uint64
  3001  			for shift := uint(0); ; shift += 7 {
  3002  				if shift >= 64 {
  3003  					return ErrIntOverflowTx
  3004  				}
  3005  				if iNdEx >= l {
  3006  					return io.ErrUnexpectedEOF
  3007  				}
  3008  				b := dAtA[iNdEx]
  3009  				iNdEx++
  3010  				stringLen |= uint64(b&0x7F) << shift
  3011  				if b < 0x80 {
  3012  					break
  3013  				}
  3014  			}
  3015  			intStringLen := int(stringLen)
  3016  			if intStringLen < 0 {
  3017  				return ErrInvalidLengthTx
  3018  			}
  3019  			postIndex := iNdEx + intStringLen
  3020  			if postIndex < 0 {
  3021  				return ErrInvalidLengthTx
  3022  			}
  3023  			if postIndex > l {
  3024  				return io.ErrUnexpectedEOF
  3025  			}
  3026  			m.From = string(dAtA[iNdEx:postIndex])
  3027  			iNdEx = postIndex
  3028  		case 2:
  3029  			if wireType != 2 {
  3030  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3031  			}
  3032  			var msglen int
  3033  			for shift := uint(0); ; shift += 7 {
  3034  				if shift >= 64 {
  3035  					return ErrIntOverflowTx
  3036  				}
  3037  				if iNdEx >= l {
  3038  					return io.ErrUnexpectedEOF
  3039  				}
  3040  				b := dAtA[iNdEx]
  3041  				iNdEx++
  3042  				msglen |= int(b&0x7F) << shift
  3043  				if b < 0x80 {
  3044  					break
  3045  				}
  3046  			}
  3047  			if msglen < 0 {
  3048  				return ErrInvalidLengthTx
  3049  			}
  3050  			postIndex := iNdEx + msglen
  3051  			if postIndex < 0 {
  3052  				return ErrInvalidLengthTx
  3053  			}
  3054  			if postIndex > l {
  3055  				return io.ErrUnexpectedEOF
  3056  			}
  3057  			m.Amount = append(m.Amount, types.Coin{})
  3058  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3059  				return err
  3060  			}
  3061  			iNdEx = postIndex
  3062  		default:
  3063  			iNdEx = preIndex
  3064  			skippy, err := skipTx(dAtA[iNdEx:])
  3065  			if err != nil {
  3066  				return err
  3067  			}
  3068  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3069  				return ErrInvalidLengthTx
  3070  			}
  3071  			if (iNdEx + skippy) > l {
  3072  				return io.ErrUnexpectedEOF
  3073  			}
  3074  			iNdEx += skippy
  3075  		}
  3076  	}
  3077  
  3078  	if iNdEx > l {
  3079  		return io.ErrUnexpectedEOF
  3080  	}
  3081  	return nil
  3082  }
  3083  func (m *MsgFundTreasuryResponse) Unmarshal(dAtA []byte) error {
  3084  	l := len(dAtA)
  3085  	iNdEx := 0
  3086  	for iNdEx < l {
  3087  		preIndex := iNdEx
  3088  		var wire uint64
  3089  		for shift := uint(0); ; shift += 7 {
  3090  			if shift >= 64 {
  3091  				return ErrIntOverflowTx
  3092  			}
  3093  			if iNdEx >= l {
  3094  				return io.ErrUnexpectedEOF
  3095  			}
  3096  			b := dAtA[iNdEx]
  3097  			iNdEx++
  3098  			wire |= uint64(b&0x7F) << shift
  3099  			if b < 0x80 {
  3100  				break
  3101  			}
  3102  		}
  3103  		fieldNum := int32(wire >> 3)
  3104  		wireType := int(wire & 0x7)
  3105  		if wireType == 4 {
  3106  			return fmt.Errorf("proto: MsgFundTreasuryResponse: wiretype end group for non-group")
  3107  		}
  3108  		if fieldNum <= 0 {
  3109  			return fmt.Errorf("proto: MsgFundTreasuryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3110  		}
  3111  		switch fieldNum {
  3112  		default:
  3113  			iNdEx = preIndex
  3114  			skippy, err := skipTx(dAtA[iNdEx:])
  3115  			if err != nil {
  3116  				return err
  3117  			}
  3118  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3119  				return ErrInvalidLengthTx
  3120  			}
  3121  			if (iNdEx + skippy) > l {
  3122  				return io.ErrUnexpectedEOF
  3123  			}
  3124  			iNdEx += skippy
  3125  		}
  3126  	}
  3127  
  3128  	if iNdEx > l {
  3129  		return io.ErrUnexpectedEOF
  3130  	}
  3131  	return nil
  3132  }
  3133  func (m *MsgWithdrawFromTreasury) Unmarshal(dAtA []byte) error {
  3134  	l := len(dAtA)
  3135  	iNdEx := 0
  3136  	for iNdEx < l {
  3137  		preIndex := iNdEx
  3138  		var wire uint64
  3139  		for shift := uint(0); ; shift += 7 {
  3140  			if shift >= 64 {
  3141  				return ErrIntOverflowTx
  3142  			}
  3143  			if iNdEx >= l {
  3144  				return io.ErrUnexpectedEOF
  3145  			}
  3146  			b := dAtA[iNdEx]
  3147  			iNdEx++
  3148  			wire |= uint64(b&0x7F) << shift
  3149  			if b < 0x80 {
  3150  				break
  3151  			}
  3152  		}
  3153  		fieldNum := int32(wire >> 3)
  3154  		wireType := int(wire & 0x7)
  3155  		if wireType == 4 {
  3156  			return fmt.Errorf("proto: MsgWithdrawFromTreasury: wiretype end group for non-group")
  3157  		}
  3158  		if fieldNum <= 0 {
  3159  			return fmt.Errorf("proto: MsgWithdrawFromTreasury: illegal tag %d (wire type %d)", fieldNum, wire)
  3160  		}
  3161  		switch fieldNum {
  3162  		case 1:
  3163  			if wireType != 2 {
  3164  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  3165  			}
  3166  			var stringLen uint64
  3167  			for shift := uint(0); ; shift += 7 {
  3168  				if shift >= 64 {
  3169  					return ErrIntOverflowTx
  3170  				}
  3171  				if iNdEx >= l {
  3172  					return io.ErrUnexpectedEOF
  3173  				}
  3174  				b := dAtA[iNdEx]
  3175  				iNdEx++
  3176  				stringLen |= uint64(b&0x7F) << shift
  3177  				if b < 0x80 {
  3178  					break
  3179  				}
  3180  			}
  3181  			intStringLen := int(stringLen)
  3182  			if intStringLen < 0 {
  3183  				return ErrInvalidLengthTx
  3184  			}
  3185  			postIndex := iNdEx + intStringLen
  3186  			if postIndex < 0 {
  3187  				return ErrInvalidLengthTx
  3188  			}
  3189  			if postIndex > l {
  3190  				return io.ErrUnexpectedEOF
  3191  			}
  3192  			m.Authority = string(dAtA[iNdEx:postIndex])
  3193  			iNdEx = postIndex
  3194  		case 2:
  3195  			if wireType != 2 {
  3196  				return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
  3197  			}
  3198  			var stringLen uint64
  3199  			for shift := uint(0); ; shift += 7 {
  3200  				if shift >= 64 {
  3201  					return ErrIntOverflowTx
  3202  				}
  3203  				if iNdEx >= l {
  3204  					return io.ErrUnexpectedEOF
  3205  				}
  3206  				b := dAtA[iNdEx]
  3207  				iNdEx++
  3208  				stringLen |= uint64(b&0x7F) << shift
  3209  				if b < 0x80 {
  3210  					break
  3211  				}
  3212  			}
  3213  			intStringLen := int(stringLen)
  3214  			if intStringLen < 0 {
  3215  				return ErrInvalidLengthTx
  3216  			}
  3217  			postIndex := iNdEx + intStringLen
  3218  			if postIndex < 0 {
  3219  				return ErrInvalidLengthTx
  3220  			}
  3221  			if postIndex > l {
  3222  				return io.ErrUnexpectedEOF
  3223  			}
  3224  			m.To = string(dAtA[iNdEx:postIndex])
  3225  			iNdEx = postIndex
  3226  		case 3:
  3227  			if wireType != 2 {
  3228  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  3229  			}
  3230  			var msglen int
  3231  			for shift := uint(0); ; shift += 7 {
  3232  				if shift >= 64 {
  3233  					return ErrIntOverflowTx
  3234  				}
  3235  				if iNdEx >= l {
  3236  					return io.ErrUnexpectedEOF
  3237  				}
  3238  				b := dAtA[iNdEx]
  3239  				iNdEx++
  3240  				msglen |= int(b&0x7F) << shift
  3241  				if b < 0x80 {
  3242  					break
  3243  				}
  3244  			}
  3245  			if msglen < 0 {
  3246  				return ErrInvalidLengthTx
  3247  			}
  3248  			postIndex := iNdEx + msglen
  3249  			if postIndex < 0 {
  3250  				return ErrInvalidLengthTx
  3251  			}
  3252  			if postIndex > l {
  3253  				return io.ErrUnexpectedEOF
  3254  			}
  3255  			m.Amount = append(m.Amount, types.Coin{})
  3256  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3257  				return err
  3258  			}
  3259  			iNdEx = postIndex
  3260  		default:
  3261  			iNdEx = preIndex
  3262  			skippy, err := skipTx(dAtA[iNdEx:])
  3263  			if err != nil {
  3264  				return err
  3265  			}
  3266  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3267  				return ErrInvalidLengthTx
  3268  			}
  3269  			if (iNdEx + skippy) > l {
  3270  				return io.ErrUnexpectedEOF
  3271  			}
  3272  			iNdEx += skippy
  3273  		}
  3274  	}
  3275  
  3276  	if iNdEx > l {
  3277  		return io.ErrUnexpectedEOF
  3278  	}
  3279  	return nil
  3280  }
  3281  func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
  3282  	l := len(dAtA)
  3283  	iNdEx := 0
  3284  	for iNdEx < l {
  3285  		preIndex := iNdEx
  3286  		var wire uint64
  3287  		for shift := uint(0); ; shift += 7 {
  3288  			if shift >= 64 {
  3289  				return ErrIntOverflowTx
  3290  			}
  3291  			if iNdEx >= l {
  3292  				return io.ErrUnexpectedEOF
  3293  			}
  3294  			b := dAtA[iNdEx]
  3295  			iNdEx++
  3296  			wire |= uint64(b&0x7F) << shift
  3297  			if b < 0x80 {
  3298  				break
  3299  			}
  3300  		}
  3301  		fieldNum := int32(wire >> 3)
  3302  		wireType := int(wire & 0x7)
  3303  		if wireType == 4 {
  3304  			return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
  3305  		}
  3306  		if fieldNum <= 0 {
  3307  			return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
  3308  		}
  3309  		switch fieldNum {
  3310  		case 1:
  3311  			if wireType != 2 {
  3312  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  3313  			}
  3314  			var stringLen uint64
  3315  			for shift := uint(0); ; shift += 7 {
  3316  				if shift >= 64 {
  3317  					return ErrIntOverflowTx
  3318  				}
  3319  				if iNdEx >= l {
  3320  					return io.ErrUnexpectedEOF
  3321  				}
  3322  				b := dAtA[iNdEx]
  3323  				iNdEx++
  3324  				stringLen |= uint64(b&0x7F) << shift
  3325  				if b < 0x80 {
  3326  					break
  3327  				}
  3328  			}
  3329  			intStringLen := int(stringLen)
  3330  			if intStringLen < 0 {
  3331  				return ErrInvalidLengthTx
  3332  			}
  3333  			postIndex := iNdEx + intStringLen
  3334  			if postIndex < 0 {
  3335  				return ErrInvalidLengthTx
  3336  			}
  3337  			if postIndex > l {
  3338  				return io.ErrUnexpectedEOF
  3339  			}
  3340  			m.Authority = string(dAtA[iNdEx:postIndex])
  3341  			iNdEx = postIndex
  3342  		case 2:
  3343  			if wireType != 2 {
  3344  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  3345  			}
  3346  			var msglen int
  3347  			for shift := uint(0); ; shift += 7 {
  3348  				if shift >= 64 {
  3349  					return ErrIntOverflowTx
  3350  				}
  3351  				if iNdEx >= l {
  3352  					return io.ErrUnexpectedEOF
  3353  				}
  3354  				b := dAtA[iNdEx]
  3355  				iNdEx++
  3356  				msglen |= int(b&0x7F) << shift
  3357  				if b < 0x80 {
  3358  					break
  3359  				}
  3360  			}
  3361  			if msglen < 0 {
  3362  				return ErrInvalidLengthTx
  3363  			}
  3364  			postIndex := iNdEx + msglen
  3365  			if postIndex < 0 {
  3366  				return ErrInvalidLengthTx
  3367  			}
  3368  			if postIndex > l {
  3369  				return io.ErrUnexpectedEOF
  3370  			}
  3371  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3372  				return err
  3373  			}
  3374  			iNdEx = postIndex
  3375  		default:
  3376  			iNdEx = preIndex
  3377  			skippy, err := skipTx(dAtA[iNdEx:])
  3378  			if err != nil {
  3379  				return err
  3380  			}
  3381  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3382  				return ErrInvalidLengthTx
  3383  			}
  3384  			if (iNdEx + skippy) > l {
  3385  				return io.ErrUnexpectedEOF
  3386  			}
  3387  			iNdEx += skippy
  3388  		}
  3389  	}
  3390  
  3391  	if iNdEx > l {
  3392  		return io.ErrUnexpectedEOF
  3393  	}
  3394  	return nil
  3395  }
  3396  func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
  3397  	l := len(dAtA)
  3398  	iNdEx := 0
  3399  	for iNdEx < l {
  3400  		preIndex := iNdEx
  3401  		var wire uint64
  3402  		for shift := uint(0); ; shift += 7 {
  3403  			if shift >= 64 {
  3404  				return ErrIntOverflowTx
  3405  			}
  3406  			if iNdEx >= l {
  3407  				return io.ErrUnexpectedEOF
  3408  			}
  3409  			b := dAtA[iNdEx]
  3410  			iNdEx++
  3411  			wire |= uint64(b&0x7F) << shift
  3412  			if b < 0x80 {
  3413  				break
  3414  			}
  3415  		}
  3416  		fieldNum := int32(wire >> 3)
  3417  		wireType := int(wire & 0x7)
  3418  		if wireType == 4 {
  3419  			return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
  3420  		}
  3421  		if fieldNum <= 0 {
  3422  			return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3423  		}
  3424  		switch fieldNum {
  3425  		default:
  3426  			iNdEx = preIndex
  3427  			skippy, err := skipTx(dAtA[iNdEx:])
  3428  			if err != nil {
  3429  				return err
  3430  			}
  3431  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3432  				return ErrInvalidLengthTx
  3433  			}
  3434  			if (iNdEx + skippy) > l {
  3435  				return io.ErrUnexpectedEOF
  3436  			}
  3437  			iNdEx += skippy
  3438  		}
  3439  	}
  3440  
  3441  	if iNdEx > l {
  3442  		return io.ErrUnexpectedEOF
  3443  	}
  3444  	return nil
  3445  }
  3446  func (m *MsgWithdrawFromTreasuryResponse) Unmarshal(dAtA []byte) error {
  3447  	l := len(dAtA)
  3448  	iNdEx := 0
  3449  	for iNdEx < l {
  3450  		preIndex := iNdEx
  3451  		var wire uint64
  3452  		for shift := uint(0); ; shift += 7 {
  3453  			if shift >= 64 {
  3454  				return ErrIntOverflowTx
  3455  			}
  3456  			if iNdEx >= l {
  3457  				return io.ErrUnexpectedEOF
  3458  			}
  3459  			b := dAtA[iNdEx]
  3460  			iNdEx++
  3461  			wire |= uint64(b&0x7F) << shift
  3462  			if b < 0x80 {
  3463  				break
  3464  			}
  3465  		}
  3466  		fieldNum := int32(wire >> 3)
  3467  		wireType := int(wire & 0x7)
  3468  		if wireType == 4 {
  3469  			return fmt.Errorf("proto: MsgWithdrawFromTreasuryResponse: wiretype end group for non-group")
  3470  		}
  3471  		if fieldNum <= 0 {
  3472  			return fmt.Errorf("proto: MsgWithdrawFromTreasuryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3473  		}
  3474  		switch fieldNum {
  3475  		default:
  3476  			iNdEx = preIndex
  3477  			skippy, err := skipTx(dAtA[iNdEx:])
  3478  			if err != nil {
  3479  				return err
  3480  			}
  3481  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3482  				return ErrInvalidLengthTx
  3483  			}
  3484  			if (iNdEx + skippy) > l {
  3485  				return io.ErrUnexpectedEOF
  3486  			}
  3487  			iNdEx += skippy
  3488  		}
  3489  	}
  3490  
  3491  	if iNdEx > l {
  3492  		return io.ErrUnexpectedEOF
  3493  	}
  3494  	return nil
  3495  }
  3496  func (m *MsgUpdateMembers) Unmarshal(dAtA []byte) error {
  3497  	l := len(dAtA)
  3498  	iNdEx := 0
  3499  	for iNdEx < l {
  3500  		preIndex := iNdEx
  3501  		var wire uint64
  3502  		for shift := uint(0); ; shift += 7 {
  3503  			if shift >= 64 {
  3504  				return ErrIntOverflowTx
  3505  			}
  3506  			if iNdEx >= l {
  3507  				return io.ErrUnexpectedEOF
  3508  			}
  3509  			b := dAtA[iNdEx]
  3510  			iNdEx++
  3511  			wire |= uint64(b&0x7F) << shift
  3512  			if b < 0x80 {
  3513  				break
  3514  			}
  3515  		}
  3516  		fieldNum := int32(wire >> 3)
  3517  		wireType := int(wire & 0x7)
  3518  		if wireType == 4 {
  3519  			return fmt.Errorf("proto: MsgUpdateMembers: wiretype end group for non-group")
  3520  		}
  3521  		if fieldNum <= 0 {
  3522  			return fmt.Errorf("proto: MsgUpdateMembers: illegal tag %d (wire type %d)", fieldNum, wire)
  3523  		}
  3524  		switch fieldNum {
  3525  		case 1:
  3526  			if wireType != 2 {
  3527  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  3528  			}
  3529  			var stringLen uint64
  3530  			for shift := uint(0); ; shift += 7 {
  3531  				if shift >= 64 {
  3532  					return ErrIntOverflowTx
  3533  				}
  3534  				if iNdEx >= l {
  3535  					return io.ErrUnexpectedEOF
  3536  				}
  3537  				b := dAtA[iNdEx]
  3538  				iNdEx++
  3539  				stringLen |= uint64(b&0x7F) << shift
  3540  				if b < 0x80 {
  3541  					break
  3542  				}
  3543  			}
  3544  			intStringLen := int(stringLen)
  3545  			if intStringLen < 0 {
  3546  				return ErrInvalidLengthTx
  3547  			}
  3548  			postIndex := iNdEx + intStringLen
  3549  			if postIndex < 0 {
  3550  				return ErrInvalidLengthTx
  3551  			}
  3552  			if postIndex > l {
  3553  				return io.ErrUnexpectedEOF
  3554  			}
  3555  			m.Authority = string(dAtA[iNdEx:postIndex])
  3556  			iNdEx = postIndex
  3557  		case 2:
  3558  			if wireType != 2 {
  3559  				return fmt.Errorf("proto: wrong wireType = %d for field MemberUpdates", wireType)
  3560  			}
  3561  			var msglen int
  3562  			for shift := uint(0); ; shift += 7 {
  3563  				if shift >= 64 {
  3564  					return ErrIntOverflowTx
  3565  				}
  3566  				if iNdEx >= l {
  3567  					return io.ErrUnexpectedEOF
  3568  				}
  3569  				b := dAtA[iNdEx]
  3570  				iNdEx++
  3571  				msglen |= int(b&0x7F) << shift
  3572  				if b < 0x80 {
  3573  					break
  3574  				}
  3575  			}
  3576  			if msglen < 0 {
  3577  				return ErrInvalidLengthTx
  3578  			}
  3579  			postIndex := iNdEx + msglen
  3580  			if postIndex < 0 {
  3581  				return ErrInvalidLengthTx
  3582  			}
  3583  			if postIndex > l {
  3584  				return io.ErrUnexpectedEOF
  3585  			}
  3586  			m.MemberUpdates = append(m.MemberUpdates, MemberRequest{})
  3587  			if err := m.MemberUpdates[len(m.MemberUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3588  				return err
  3589  			}
  3590  			iNdEx = postIndex
  3591  		default:
  3592  			iNdEx = preIndex
  3593  			skippy, err := skipTx(dAtA[iNdEx:])
  3594  			if err != nil {
  3595  				return err
  3596  			}
  3597  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3598  				return ErrInvalidLengthTx
  3599  			}
  3600  			if (iNdEx + skippy) > l {
  3601  				return io.ErrUnexpectedEOF
  3602  			}
  3603  			iNdEx += skippy
  3604  		}
  3605  	}
  3606  
  3607  	if iNdEx > l {
  3608  		return io.ErrUnexpectedEOF
  3609  	}
  3610  	return nil
  3611  }
  3612  func (m *MsgUpdateMembersResponse) Unmarshal(dAtA []byte) error {
  3613  	l := len(dAtA)
  3614  	iNdEx := 0
  3615  	for iNdEx < l {
  3616  		preIndex := iNdEx
  3617  		var wire uint64
  3618  		for shift := uint(0); ; shift += 7 {
  3619  			if shift >= 64 {
  3620  				return ErrIntOverflowTx
  3621  			}
  3622  			if iNdEx >= l {
  3623  				return io.ErrUnexpectedEOF
  3624  			}
  3625  			b := dAtA[iNdEx]
  3626  			iNdEx++
  3627  			wire |= uint64(b&0x7F) << shift
  3628  			if b < 0x80 {
  3629  				break
  3630  			}
  3631  		}
  3632  		fieldNum := int32(wire >> 3)
  3633  		wireType := int(wire & 0x7)
  3634  		if wireType == 4 {
  3635  			return fmt.Errorf("proto: MsgUpdateMembersResponse: wiretype end group for non-group")
  3636  		}
  3637  		if fieldNum <= 0 {
  3638  			return fmt.Errorf("proto: MsgUpdateMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3639  		}
  3640  		switch fieldNum {
  3641  		default:
  3642  			iNdEx = preIndex
  3643  			skippy, err := skipTx(dAtA[iNdEx:])
  3644  			if err != nil {
  3645  				return err
  3646  			}
  3647  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3648  				return ErrInvalidLengthTx
  3649  			}
  3650  			if (iNdEx + skippy) > l {
  3651  				return io.ErrUnexpectedEOF
  3652  			}
  3653  			iNdEx += skippy
  3654  		}
  3655  	}
  3656  
  3657  	if iNdEx > l {
  3658  		return io.ErrUnexpectedEOF
  3659  	}
  3660  	return nil
  3661  }
  3662  func (m *MsgUpdateDecisionPolicy) Unmarshal(dAtA []byte) error {
  3663  	l := len(dAtA)
  3664  	iNdEx := 0
  3665  	for iNdEx < l {
  3666  		preIndex := iNdEx
  3667  		var wire uint64
  3668  		for shift := uint(0); ; shift += 7 {
  3669  			if shift >= 64 {
  3670  				return ErrIntOverflowTx
  3671  			}
  3672  			if iNdEx >= l {
  3673  				return io.ErrUnexpectedEOF
  3674  			}
  3675  			b := dAtA[iNdEx]
  3676  			iNdEx++
  3677  			wire |= uint64(b&0x7F) << shift
  3678  			if b < 0x80 {
  3679  				break
  3680  			}
  3681  		}
  3682  		fieldNum := int32(wire >> 3)
  3683  		wireType := int(wire & 0x7)
  3684  		if wireType == 4 {
  3685  			return fmt.Errorf("proto: MsgUpdateDecisionPolicy: wiretype end group for non-group")
  3686  		}
  3687  		if fieldNum <= 0 {
  3688  			return fmt.Errorf("proto: MsgUpdateDecisionPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
  3689  		}
  3690  		switch fieldNum {
  3691  		case 1:
  3692  			if wireType != 2 {
  3693  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  3694  			}
  3695  			var stringLen uint64
  3696  			for shift := uint(0); ; shift += 7 {
  3697  				if shift >= 64 {
  3698  					return ErrIntOverflowTx
  3699  				}
  3700  				if iNdEx >= l {
  3701  					return io.ErrUnexpectedEOF
  3702  				}
  3703  				b := dAtA[iNdEx]
  3704  				iNdEx++
  3705  				stringLen |= uint64(b&0x7F) << shift
  3706  				if b < 0x80 {
  3707  					break
  3708  				}
  3709  			}
  3710  			intStringLen := int(stringLen)
  3711  			if intStringLen < 0 {
  3712  				return ErrInvalidLengthTx
  3713  			}
  3714  			postIndex := iNdEx + intStringLen
  3715  			if postIndex < 0 {
  3716  				return ErrInvalidLengthTx
  3717  			}
  3718  			if postIndex > l {
  3719  				return io.ErrUnexpectedEOF
  3720  			}
  3721  			m.Authority = string(dAtA[iNdEx:postIndex])
  3722  			iNdEx = postIndex
  3723  		case 2:
  3724  			if wireType != 2 {
  3725  				return fmt.Errorf("proto: wrong wireType = %d for field DecisionPolicy", wireType)
  3726  			}
  3727  			var msglen int
  3728  			for shift := uint(0); ; shift += 7 {
  3729  				if shift >= 64 {
  3730  					return ErrIntOverflowTx
  3731  				}
  3732  				if iNdEx >= l {
  3733  					return io.ErrUnexpectedEOF
  3734  				}
  3735  				b := dAtA[iNdEx]
  3736  				iNdEx++
  3737  				msglen |= int(b&0x7F) << shift
  3738  				if b < 0x80 {
  3739  					break
  3740  				}
  3741  			}
  3742  			if msglen < 0 {
  3743  				return ErrInvalidLengthTx
  3744  			}
  3745  			postIndex := iNdEx + msglen
  3746  			if postIndex < 0 {
  3747  				return ErrInvalidLengthTx
  3748  			}
  3749  			if postIndex > l {
  3750  				return io.ErrUnexpectedEOF
  3751  			}
  3752  			if m.DecisionPolicy == nil {
  3753  				m.DecisionPolicy = &types1.Any{}
  3754  			}
  3755  			if err := m.DecisionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3756  				return err
  3757  			}
  3758  			iNdEx = postIndex
  3759  		default:
  3760  			iNdEx = preIndex
  3761  			skippy, err := skipTx(dAtA[iNdEx:])
  3762  			if err != nil {
  3763  				return err
  3764  			}
  3765  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3766  				return ErrInvalidLengthTx
  3767  			}
  3768  			if (iNdEx + skippy) > l {
  3769  				return io.ErrUnexpectedEOF
  3770  			}
  3771  			iNdEx += skippy
  3772  		}
  3773  	}
  3774  
  3775  	if iNdEx > l {
  3776  		return io.ErrUnexpectedEOF
  3777  	}
  3778  	return nil
  3779  }
  3780  func (m *MsgUpdateDecisionPolicyResponse) Unmarshal(dAtA []byte) error {
  3781  	l := len(dAtA)
  3782  	iNdEx := 0
  3783  	for iNdEx < l {
  3784  		preIndex := iNdEx
  3785  		var wire uint64
  3786  		for shift := uint(0); ; shift += 7 {
  3787  			if shift >= 64 {
  3788  				return ErrIntOverflowTx
  3789  			}
  3790  			if iNdEx >= l {
  3791  				return io.ErrUnexpectedEOF
  3792  			}
  3793  			b := dAtA[iNdEx]
  3794  			iNdEx++
  3795  			wire |= uint64(b&0x7F) << shift
  3796  			if b < 0x80 {
  3797  				break
  3798  			}
  3799  		}
  3800  		fieldNum := int32(wire >> 3)
  3801  		wireType := int(wire & 0x7)
  3802  		if wireType == 4 {
  3803  			return fmt.Errorf("proto: MsgUpdateDecisionPolicyResponse: wiretype end group for non-group")
  3804  		}
  3805  		if fieldNum <= 0 {
  3806  			return fmt.Errorf("proto: MsgUpdateDecisionPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3807  		}
  3808  		switch fieldNum {
  3809  		default:
  3810  			iNdEx = preIndex
  3811  			skippy, err := skipTx(dAtA[iNdEx:])
  3812  			if err != nil {
  3813  				return err
  3814  			}
  3815  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3816  				return ErrInvalidLengthTx
  3817  			}
  3818  			if (iNdEx + skippy) > l {
  3819  				return io.ErrUnexpectedEOF
  3820  			}
  3821  			iNdEx += skippy
  3822  		}
  3823  	}
  3824  
  3825  	if iNdEx > l {
  3826  		return io.ErrUnexpectedEOF
  3827  	}
  3828  	return nil
  3829  }
  3830  func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error {
  3831  	l := len(dAtA)
  3832  	iNdEx := 0
  3833  	for iNdEx < l {
  3834  		preIndex := iNdEx
  3835  		var wire uint64
  3836  		for shift := uint(0); ; shift += 7 {
  3837  			if shift >= 64 {
  3838  				return ErrIntOverflowTx
  3839  			}
  3840  			if iNdEx >= l {
  3841  				return io.ErrUnexpectedEOF
  3842  			}
  3843  			b := dAtA[iNdEx]
  3844  			iNdEx++
  3845  			wire |= uint64(b&0x7F) << shift
  3846  			if b < 0x80 {
  3847  				break
  3848  			}
  3849  		}
  3850  		fieldNum := int32(wire >> 3)
  3851  		wireType := int(wire & 0x7)
  3852  		if wireType == 4 {
  3853  			return fmt.Errorf("proto: MsgSubmitProposal: wiretype end group for non-group")
  3854  		}
  3855  		if fieldNum <= 0 {
  3856  			return fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  3857  		}
  3858  		switch fieldNum {
  3859  		case 1:
  3860  			if wireType != 2 {
  3861  				return fmt.Errorf("proto: wrong wireType = %d for field Proposers", wireType)
  3862  			}
  3863  			var stringLen uint64
  3864  			for shift := uint(0); ; shift += 7 {
  3865  				if shift >= 64 {
  3866  					return ErrIntOverflowTx
  3867  				}
  3868  				if iNdEx >= l {
  3869  					return io.ErrUnexpectedEOF
  3870  				}
  3871  				b := dAtA[iNdEx]
  3872  				iNdEx++
  3873  				stringLen |= uint64(b&0x7F) << shift
  3874  				if b < 0x80 {
  3875  					break
  3876  				}
  3877  			}
  3878  			intStringLen := int(stringLen)
  3879  			if intStringLen < 0 {
  3880  				return ErrInvalidLengthTx
  3881  			}
  3882  			postIndex := iNdEx + intStringLen
  3883  			if postIndex < 0 {
  3884  				return ErrInvalidLengthTx
  3885  			}
  3886  			if postIndex > l {
  3887  				return io.ErrUnexpectedEOF
  3888  			}
  3889  			m.Proposers = append(m.Proposers, string(dAtA[iNdEx:postIndex]))
  3890  			iNdEx = postIndex
  3891  		case 2:
  3892  			if wireType != 2 {
  3893  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  3894  			}
  3895  			var stringLen uint64
  3896  			for shift := uint(0); ; shift += 7 {
  3897  				if shift >= 64 {
  3898  					return ErrIntOverflowTx
  3899  				}
  3900  				if iNdEx >= l {
  3901  					return io.ErrUnexpectedEOF
  3902  				}
  3903  				b := dAtA[iNdEx]
  3904  				iNdEx++
  3905  				stringLen |= uint64(b&0x7F) << shift
  3906  				if b < 0x80 {
  3907  					break
  3908  				}
  3909  			}
  3910  			intStringLen := int(stringLen)
  3911  			if intStringLen < 0 {
  3912  				return ErrInvalidLengthTx
  3913  			}
  3914  			postIndex := iNdEx + intStringLen
  3915  			if postIndex < 0 {
  3916  				return ErrInvalidLengthTx
  3917  			}
  3918  			if postIndex > l {
  3919  				return io.ErrUnexpectedEOF
  3920  			}
  3921  			m.Metadata = string(dAtA[iNdEx:postIndex])
  3922  			iNdEx = postIndex
  3923  		case 3:
  3924  			if wireType != 2 {
  3925  				return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
  3926  			}
  3927  			var msglen int
  3928  			for shift := uint(0); ; shift += 7 {
  3929  				if shift >= 64 {
  3930  					return ErrIntOverflowTx
  3931  				}
  3932  				if iNdEx >= l {
  3933  					return io.ErrUnexpectedEOF
  3934  				}
  3935  				b := dAtA[iNdEx]
  3936  				iNdEx++
  3937  				msglen |= int(b&0x7F) << shift
  3938  				if b < 0x80 {
  3939  					break
  3940  				}
  3941  			}
  3942  			if msglen < 0 {
  3943  				return ErrInvalidLengthTx
  3944  			}
  3945  			postIndex := iNdEx + msglen
  3946  			if postIndex < 0 {
  3947  				return ErrInvalidLengthTx
  3948  			}
  3949  			if postIndex > l {
  3950  				return io.ErrUnexpectedEOF
  3951  			}
  3952  			m.Messages = append(m.Messages, &types1.Any{})
  3953  			if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3954  				return err
  3955  			}
  3956  			iNdEx = postIndex
  3957  		case 4:
  3958  			if wireType != 0 {
  3959  				return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType)
  3960  			}
  3961  			m.Exec = 0
  3962  			for shift := uint(0); ; shift += 7 {
  3963  				if shift >= 64 {
  3964  					return ErrIntOverflowTx
  3965  				}
  3966  				if iNdEx >= l {
  3967  					return io.ErrUnexpectedEOF
  3968  				}
  3969  				b := dAtA[iNdEx]
  3970  				iNdEx++
  3971  				m.Exec |= Exec(b&0x7F) << shift
  3972  				if b < 0x80 {
  3973  					break
  3974  				}
  3975  			}
  3976  		default:
  3977  			iNdEx = preIndex
  3978  			skippy, err := skipTx(dAtA[iNdEx:])
  3979  			if err != nil {
  3980  				return err
  3981  			}
  3982  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3983  				return ErrInvalidLengthTx
  3984  			}
  3985  			if (iNdEx + skippy) > l {
  3986  				return io.ErrUnexpectedEOF
  3987  			}
  3988  			iNdEx += skippy
  3989  		}
  3990  	}
  3991  
  3992  	if iNdEx > l {
  3993  		return io.ErrUnexpectedEOF
  3994  	}
  3995  	return nil
  3996  }
  3997  func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error {
  3998  	l := len(dAtA)
  3999  	iNdEx := 0
  4000  	for iNdEx < l {
  4001  		preIndex := iNdEx
  4002  		var wire uint64
  4003  		for shift := uint(0); ; shift += 7 {
  4004  			if shift >= 64 {
  4005  				return ErrIntOverflowTx
  4006  			}
  4007  			if iNdEx >= l {
  4008  				return io.ErrUnexpectedEOF
  4009  			}
  4010  			b := dAtA[iNdEx]
  4011  			iNdEx++
  4012  			wire |= uint64(b&0x7F) << shift
  4013  			if b < 0x80 {
  4014  				break
  4015  			}
  4016  		}
  4017  		fieldNum := int32(wire >> 3)
  4018  		wireType := int(wire & 0x7)
  4019  		if wireType == 4 {
  4020  			return fmt.Errorf("proto: MsgSubmitProposalResponse: wiretype end group for non-group")
  4021  		}
  4022  		if fieldNum <= 0 {
  4023  			return fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4024  		}
  4025  		switch fieldNum {
  4026  		case 1:
  4027  			if wireType != 0 {
  4028  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4029  			}
  4030  			m.ProposalId = 0
  4031  			for shift := uint(0); ; shift += 7 {
  4032  				if shift >= 64 {
  4033  					return ErrIntOverflowTx
  4034  				}
  4035  				if iNdEx >= l {
  4036  					return io.ErrUnexpectedEOF
  4037  				}
  4038  				b := dAtA[iNdEx]
  4039  				iNdEx++
  4040  				m.ProposalId |= uint64(b&0x7F) << shift
  4041  				if b < 0x80 {
  4042  					break
  4043  				}
  4044  			}
  4045  		default:
  4046  			iNdEx = preIndex
  4047  			skippy, err := skipTx(dAtA[iNdEx:])
  4048  			if err != nil {
  4049  				return err
  4050  			}
  4051  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4052  				return ErrInvalidLengthTx
  4053  			}
  4054  			if (iNdEx + skippy) > l {
  4055  				return io.ErrUnexpectedEOF
  4056  			}
  4057  			iNdEx += skippy
  4058  		}
  4059  	}
  4060  
  4061  	if iNdEx > l {
  4062  		return io.ErrUnexpectedEOF
  4063  	}
  4064  	return nil
  4065  }
  4066  func (m *MsgWithdrawProposal) Unmarshal(dAtA []byte) error {
  4067  	l := len(dAtA)
  4068  	iNdEx := 0
  4069  	for iNdEx < l {
  4070  		preIndex := iNdEx
  4071  		var wire uint64
  4072  		for shift := uint(0); ; shift += 7 {
  4073  			if shift >= 64 {
  4074  				return ErrIntOverflowTx
  4075  			}
  4076  			if iNdEx >= l {
  4077  				return io.ErrUnexpectedEOF
  4078  			}
  4079  			b := dAtA[iNdEx]
  4080  			iNdEx++
  4081  			wire |= uint64(b&0x7F) << shift
  4082  			if b < 0x80 {
  4083  				break
  4084  			}
  4085  		}
  4086  		fieldNum := int32(wire >> 3)
  4087  		wireType := int(wire & 0x7)
  4088  		if wireType == 4 {
  4089  			return fmt.Errorf("proto: MsgWithdrawProposal: wiretype end group for non-group")
  4090  		}
  4091  		if fieldNum <= 0 {
  4092  			return fmt.Errorf("proto: MsgWithdrawProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  4093  		}
  4094  		switch fieldNum {
  4095  		case 1:
  4096  			if wireType != 0 {
  4097  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4098  			}
  4099  			m.ProposalId = 0
  4100  			for shift := uint(0); ; shift += 7 {
  4101  				if shift >= 64 {
  4102  					return ErrIntOverflowTx
  4103  				}
  4104  				if iNdEx >= l {
  4105  					return io.ErrUnexpectedEOF
  4106  				}
  4107  				b := dAtA[iNdEx]
  4108  				iNdEx++
  4109  				m.ProposalId |= uint64(b&0x7F) << shift
  4110  				if b < 0x80 {
  4111  					break
  4112  				}
  4113  			}
  4114  		case 2:
  4115  			if wireType != 2 {
  4116  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  4117  			}
  4118  			var stringLen uint64
  4119  			for shift := uint(0); ; shift += 7 {
  4120  				if shift >= 64 {
  4121  					return ErrIntOverflowTx
  4122  				}
  4123  				if iNdEx >= l {
  4124  					return io.ErrUnexpectedEOF
  4125  				}
  4126  				b := dAtA[iNdEx]
  4127  				iNdEx++
  4128  				stringLen |= uint64(b&0x7F) << shift
  4129  				if b < 0x80 {
  4130  					break
  4131  				}
  4132  			}
  4133  			intStringLen := int(stringLen)
  4134  			if intStringLen < 0 {
  4135  				return ErrInvalidLengthTx
  4136  			}
  4137  			postIndex := iNdEx + intStringLen
  4138  			if postIndex < 0 {
  4139  				return ErrInvalidLengthTx
  4140  			}
  4141  			if postIndex > l {
  4142  				return io.ErrUnexpectedEOF
  4143  			}
  4144  			m.Address = string(dAtA[iNdEx:postIndex])
  4145  			iNdEx = postIndex
  4146  		default:
  4147  			iNdEx = preIndex
  4148  			skippy, err := skipTx(dAtA[iNdEx:])
  4149  			if err != nil {
  4150  				return err
  4151  			}
  4152  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4153  				return ErrInvalidLengthTx
  4154  			}
  4155  			if (iNdEx + skippy) > l {
  4156  				return io.ErrUnexpectedEOF
  4157  			}
  4158  			iNdEx += skippy
  4159  		}
  4160  	}
  4161  
  4162  	if iNdEx > l {
  4163  		return io.ErrUnexpectedEOF
  4164  	}
  4165  	return nil
  4166  }
  4167  func (m *MsgWithdrawProposalResponse) Unmarshal(dAtA []byte) error {
  4168  	l := len(dAtA)
  4169  	iNdEx := 0
  4170  	for iNdEx < l {
  4171  		preIndex := iNdEx
  4172  		var wire uint64
  4173  		for shift := uint(0); ; shift += 7 {
  4174  			if shift >= 64 {
  4175  				return ErrIntOverflowTx
  4176  			}
  4177  			if iNdEx >= l {
  4178  				return io.ErrUnexpectedEOF
  4179  			}
  4180  			b := dAtA[iNdEx]
  4181  			iNdEx++
  4182  			wire |= uint64(b&0x7F) << shift
  4183  			if b < 0x80 {
  4184  				break
  4185  			}
  4186  		}
  4187  		fieldNum := int32(wire >> 3)
  4188  		wireType := int(wire & 0x7)
  4189  		if wireType == 4 {
  4190  			return fmt.Errorf("proto: MsgWithdrawProposalResponse: wiretype end group for non-group")
  4191  		}
  4192  		if fieldNum <= 0 {
  4193  			return fmt.Errorf("proto: MsgWithdrawProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4194  		}
  4195  		switch fieldNum {
  4196  		default:
  4197  			iNdEx = preIndex
  4198  			skippy, err := skipTx(dAtA[iNdEx:])
  4199  			if err != nil {
  4200  				return err
  4201  			}
  4202  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4203  				return ErrInvalidLengthTx
  4204  			}
  4205  			if (iNdEx + skippy) > l {
  4206  				return io.ErrUnexpectedEOF
  4207  			}
  4208  			iNdEx += skippy
  4209  		}
  4210  	}
  4211  
  4212  	if iNdEx > l {
  4213  		return io.ErrUnexpectedEOF
  4214  	}
  4215  	return nil
  4216  }
  4217  func (m *MsgVote) Unmarshal(dAtA []byte) error {
  4218  	l := len(dAtA)
  4219  	iNdEx := 0
  4220  	for iNdEx < l {
  4221  		preIndex := iNdEx
  4222  		var wire uint64
  4223  		for shift := uint(0); ; shift += 7 {
  4224  			if shift >= 64 {
  4225  				return ErrIntOverflowTx
  4226  			}
  4227  			if iNdEx >= l {
  4228  				return io.ErrUnexpectedEOF
  4229  			}
  4230  			b := dAtA[iNdEx]
  4231  			iNdEx++
  4232  			wire |= uint64(b&0x7F) << shift
  4233  			if b < 0x80 {
  4234  				break
  4235  			}
  4236  		}
  4237  		fieldNum := int32(wire >> 3)
  4238  		wireType := int(wire & 0x7)
  4239  		if wireType == 4 {
  4240  			return fmt.Errorf("proto: MsgVote: wiretype end group for non-group")
  4241  		}
  4242  		if fieldNum <= 0 {
  4243  			return fmt.Errorf("proto: MsgVote: illegal tag %d (wire type %d)", fieldNum, wire)
  4244  		}
  4245  		switch fieldNum {
  4246  		case 1:
  4247  			if wireType != 0 {
  4248  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4249  			}
  4250  			m.ProposalId = 0
  4251  			for shift := uint(0); ; shift += 7 {
  4252  				if shift >= 64 {
  4253  					return ErrIntOverflowTx
  4254  				}
  4255  				if iNdEx >= l {
  4256  					return io.ErrUnexpectedEOF
  4257  				}
  4258  				b := dAtA[iNdEx]
  4259  				iNdEx++
  4260  				m.ProposalId |= uint64(b&0x7F) << shift
  4261  				if b < 0x80 {
  4262  					break
  4263  				}
  4264  			}
  4265  		case 2:
  4266  			if wireType != 2 {
  4267  				return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType)
  4268  			}
  4269  			var stringLen uint64
  4270  			for shift := uint(0); ; shift += 7 {
  4271  				if shift >= 64 {
  4272  					return ErrIntOverflowTx
  4273  				}
  4274  				if iNdEx >= l {
  4275  					return io.ErrUnexpectedEOF
  4276  				}
  4277  				b := dAtA[iNdEx]
  4278  				iNdEx++
  4279  				stringLen |= uint64(b&0x7F) << shift
  4280  				if b < 0x80 {
  4281  					break
  4282  				}
  4283  			}
  4284  			intStringLen := int(stringLen)
  4285  			if intStringLen < 0 {
  4286  				return ErrInvalidLengthTx
  4287  			}
  4288  			postIndex := iNdEx + intStringLen
  4289  			if postIndex < 0 {
  4290  				return ErrInvalidLengthTx
  4291  			}
  4292  			if postIndex > l {
  4293  				return io.ErrUnexpectedEOF
  4294  			}
  4295  			m.Voter = string(dAtA[iNdEx:postIndex])
  4296  			iNdEx = postIndex
  4297  		case 3:
  4298  			if wireType != 0 {
  4299  				return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType)
  4300  			}
  4301  			m.Option = 0
  4302  			for shift := uint(0); ; shift += 7 {
  4303  				if shift >= 64 {
  4304  					return ErrIntOverflowTx
  4305  				}
  4306  				if iNdEx >= l {
  4307  					return io.ErrUnexpectedEOF
  4308  				}
  4309  				b := dAtA[iNdEx]
  4310  				iNdEx++
  4311  				m.Option |= VoteOption(b&0x7F) << shift
  4312  				if b < 0x80 {
  4313  					break
  4314  				}
  4315  			}
  4316  		case 4:
  4317  			if wireType != 2 {
  4318  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  4319  			}
  4320  			var stringLen uint64
  4321  			for shift := uint(0); ; shift += 7 {
  4322  				if shift >= 64 {
  4323  					return ErrIntOverflowTx
  4324  				}
  4325  				if iNdEx >= l {
  4326  					return io.ErrUnexpectedEOF
  4327  				}
  4328  				b := dAtA[iNdEx]
  4329  				iNdEx++
  4330  				stringLen |= uint64(b&0x7F) << shift
  4331  				if b < 0x80 {
  4332  					break
  4333  				}
  4334  			}
  4335  			intStringLen := int(stringLen)
  4336  			if intStringLen < 0 {
  4337  				return ErrInvalidLengthTx
  4338  			}
  4339  			postIndex := iNdEx + intStringLen
  4340  			if postIndex < 0 {
  4341  				return ErrInvalidLengthTx
  4342  			}
  4343  			if postIndex > l {
  4344  				return io.ErrUnexpectedEOF
  4345  			}
  4346  			m.Metadata = string(dAtA[iNdEx:postIndex])
  4347  			iNdEx = postIndex
  4348  		case 5:
  4349  			if wireType != 0 {
  4350  				return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType)
  4351  			}
  4352  			m.Exec = 0
  4353  			for shift := uint(0); ; shift += 7 {
  4354  				if shift >= 64 {
  4355  					return ErrIntOverflowTx
  4356  				}
  4357  				if iNdEx >= l {
  4358  					return io.ErrUnexpectedEOF
  4359  				}
  4360  				b := dAtA[iNdEx]
  4361  				iNdEx++
  4362  				m.Exec |= Exec(b&0x7F) << shift
  4363  				if b < 0x80 {
  4364  					break
  4365  				}
  4366  			}
  4367  		default:
  4368  			iNdEx = preIndex
  4369  			skippy, err := skipTx(dAtA[iNdEx:])
  4370  			if err != nil {
  4371  				return err
  4372  			}
  4373  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4374  				return ErrInvalidLengthTx
  4375  			}
  4376  			if (iNdEx + skippy) > l {
  4377  				return io.ErrUnexpectedEOF
  4378  			}
  4379  			iNdEx += skippy
  4380  		}
  4381  	}
  4382  
  4383  	if iNdEx > l {
  4384  		return io.ErrUnexpectedEOF
  4385  	}
  4386  	return nil
  4387  }
  4388  func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error {
  4389  	l := len(dAtA)
  4390  	iNdEx := 0
  4391  	for iNdEx < l {
  4392  		preIndex := iNdEx
  4393  		var wire uint64
  4394  		for shift := uint(0); ; shift += 7 {
  4395  			if shift >= 64 {
  4396  				return ErrIntOverflowTx
  4397  			}
  4398  			if iNdEx >= l {
  4399  				return io.ErrUnexpectedEOF
  4400  			}
  4401  			b := dAtA[iNdEx]
  4402  			iNdEx++
  4403  			wire |= uint64(b&0x7F) << shift
  4404  			if b < 0x80 {
  4405  				break
  4406  			}
  4407  		}
  4408  		fieldNum := int32(wire >> 3)
  4409  		wireType := int(wire & 0x7)
  4410  		if wireType == 4 {
  4411  			return fmt.Errorf("proto: MsgVoteResponse: wiretype end group for non-group")
  4412  		}
  4413  		if fieldNum <= 0 {
  4414  			return fmt.Errorf("proto: MsgVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4415  		}
  4416  		switch fieldNum {
  4417  		default:
  4418  			iNdEx = preIndex
  4419  			skippy, err := skipTx(dAtA[iNdEx:])
  4420  			if err != nil {
  4421  				return err
  4422  			}
  4423  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4424  				return ErrInvalidLengthTx
  4425  			}
  4426  			if (iNdEx + skippy) > l {
  4427  				return io.ErrUnexpectedEOF
  4428  			}
  4429  			iNdEx += skippy
  4430  		}
  4431  	}
  4432  
  4433  	if iNdEx > l {
  4434  		return io.ErrUnexpectedEOF
  4435  	}
  4436  	return nil
  4437  }
  4438  func (m *MsgExec) Unmarshal(dAtA []byte) error {
  4439  	l := len(dAtA)
  4440  	iNdEx := 0
  4441  	for iNdEx < l {
  4442  		preIndex := iNdEx
  4443  		var wire uint64
  4444  		for shift := uint(0); ; shift += 7 {
  4445  			if shift >= 64 {
  4446  				return ErrIntOverflowTx
  4447  			}
  4448  			if iNdEx >= l {
  4449  				return io.ErrUnexpectedEOF
  4450  			}
  4451  			b := dAtA[iNdEx]
  4452  			iNdEx++
  4453  			wire |= uint64(b&0x7F) << shift
  4454  			if b < 0x80 {
  4455  				break
  4456  			}
  4457  		}
  4458  		fieldNum := int32(wire >> 3)
  4459  		wireType := int(wire & 0x7)
  4460  		if wireType == 4 {
  4461  			return fmt.Errorf("proto: MsgExec: wiretype end group for non-group")
  4462  		}
  4463  		if fieldNum <= 0 {
  4464  			return fmt.Errorf("proto: MsgExec: illegal tag %d (wire type %d)", fieldNum, wire)
  4465  		}
  4466  		switch fieldNum {
  4467  		case 1:
  4468  			if wireType != 0 {
  4469  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  4470  			}
  4471  			m.ProposalId = 0
  4472  			for shift := uint(0); ; shift += 7 {
  4473  				if shift >= 64 {
  4474  					return ErrIntOverflowTx
  4475  				}
  4476  				if iNdEx >= l {
  4477  					return io.ErrUnexpectedEOF
  4478  				}
  4479  				b := dAtA[iNdEx]
  4480  				iNdEx++
  4481  				m.ProposalId |= uint64(b&0x7F) << shift
  4482  				if b < 0x80 {
  4483  					break
  4484  				}
  4485  			}
  4486  		case 2:
  4487  			if wireType != 2 {
  4488  				return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
  4489  			}
  4490  			var stringLen uint64
  4491  			for shift := uint(0); ; shift += 7 {
  4492  				if shift >= 64 {
  4493  					return ErrIntOverflowTx
  4494  				}
  4495  				if iNdEx >= l {
  4496  					return io.ErrUnexpectedEOF
  4497  				}
  4498  				b := dAtA[iNdEx]
  4499  				iNdEx++
  4500  				stringLen |= uint64(b&0x7F) << shift
  4501  				if b < 0x80 {
  4502  					break
  4503  				}
  4504  			}
  4505  			intStringLen := int(stringLen)
  4506  			if intStringLen < 0 {
  4507  				return ErrInvalidLengthTx
  4508  			}
  4509  			postIndex := iNdEx + intStringLen
  4510  			if postIndex < 0 {
  4511  				return ErrInvalidLengthTx
  4512  			}
  4513  			if postIndex > l {
  4514  				return io.ErrUnexpectedEOF
  4515  			}
  4516  			m.Signer = string(dAtA[iNdEx:postIndex])
  4517  			iNdEx = postIndex
  4518  		default:
  4519  			iNdEx = preIndex
  4520  			skippy, err := skipTx(dAtA[iNdEx:])
  4521  			if err != nil {
  4522  				return err
  4523  			}
  4524  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4525  				return ErrInvalidLengthTx
  4526  			}
  4527  			if (iNdEx + skippy) > l {
  4528  				return io.ErrUnexpectedEOF
  4529  			}
  4530  			iNdEx += skippy
  4531  		}
  4532  	}
  4533  
  4534  	if iNdEx > l {
  4535  		return io.ErrUnexpectedEOF
  4536  	}
  4537  	return nil
  4538  }
  4539  func (m *MsgExecResponse) Unmarshal(dAtA []byte) error {
  4540  	l := len(dAtA)
  4541  	iNdEx := 0
  4542  	for iNdEx < l {
  4543  		preIndex := iNdEx
  4544  		var wire uint64
  4545  		for shift := uint(0); ; shift += 7 {
  4546  			if shift >= 64 {
  4547  				return ErrIntOverflowTx
  4548  			}
  4549  			if iNdEx >= l {
  4550  				return io.ErrUnexpectedEOF
  4551  			}
  4552  			b := dAtA[iNdEx]
  4553  			iNdEx++
  4554  			wire |= uint64(b&0x7F) << shift
  4555  			if b < 0x80 {
  4556  				break
  4557  			}
  4558  		}
  4559  		fieldNum := int32(wire >> 3)
  4560  		wireType := int(wire & 0x7)
  4561  		if wireType == 4 {
  4562  			return fmt.Errorf("proto: MsgExecResponse: wiretype end group for non-group")
  4563  		}
  4564  		if fieldNum <= 0 {
  4565  			return fmt.Errorf("proto: MsgExecResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4566  		}
  4567  		switch fieldNum {
  4568  		default:
  4569  			iNdEx = preIndex
  4570  			skippy, err := skipTx(dAtA[iNdEx:])
  4571  			if err != nil {
  4572  				return err
  4573  			}
  4574  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4575  				return ErrInvalidLengthTx
  4576  			}
  4577  			if (iNdEx + skippy) > l {
  4578  				return io.ErrUnexpectedEOF
  4579  			}
  4580  			iNdEx += skippy
  4581  		}
  4582  	}
  4583  
  4584  	if iNdEx > l {
  4585  		return io.ErrUnexpectedEOF
  4586  	}
  4587  	return nil
  4588  }
  4589  func (m *MsgLeaveFoundation) Unmarshal(dAtA []byte) error {
  4590  	l := len(dAtA)
  4591  	iNdEx := 0
  4592  	for iNdEx < l {
  4593  		preIndex := iNdEx
  4594  		var wire uint64
  4595  		for shift := uint(0); ; shift += 7 {
  4596  			if shift >= 64 {
  4597  				return ErrIntOverflowTx
  4598  			}
  4599  			if iNdEx >= l {
  4600  				return io.ErrUnexpectedEOF
  4601  			}
  4602  			b := dAtA[iNdEx]
  4603  			iNdEx++
  4604  			wire |= uint64(b&0x7F) << shift
  4605  			if b < 0x80 {
  4606  				break
  4607  			}
  4608  		}
  4609  		fieldNum := int32(wire >> 3)
  4610  		wireType := int(wire & 0x7)
  4611  		if wireType == 4 {
  4612  			return fmt.Errorf("proto: MsgLeaveFoundation: wiretype end group for non-group")
  4613  		}
  4614  		if fieldNum <= 0 {
  4615  			return fmt.Errorf("proto: MsgLeaveFoundation: illegal tag %d (wire type %d)", fieldNum, wire)
  4616  		}
  4617  		switch fieldNum {
  4618  		case 1:
  4619  			if wireType != 2 {
  4620  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  4621  			}
  4622  			var stringLen uint64
  4623  			for shift := uint(0); ; shift += 7 {
  4624  				if shift >= 64 {
  4625  					return ErrIntOverflowTx
  4626  				}
  4627  				if iNdEx >= l {
  4628  					return io.ErrUnexpectedEOF
  4629  				}
  4630  				b := dAtA[iNdEx]
  4631  				iNdEx++
  4632  				stringLen |= uint64(b&0x7F) << shift
  4633  				if b < 0x80 {
  4634  					break
  4635  				}
  4636  			}
  4637  			intStringLen := int(stringLen)
  4638  			if intStringLen < 0 {
  4639  				return ErrInvalidLengthTx
  4640  			}
  4641  			postIndex := iNdEx + intStringLen
  4642  			if postIndex < 0 {
  4643  				return ErrInvalidLengthTx
  4644  			}
  4645  			if postIndex > l {
  4646  				return io.ErrUnexpectedEOF
  4647  			}
  4648  			m.Address = string(dAtA[iNdEx:postIndex])
  4649  			iNdEx = postIndex
  4650  		default:
  4651  			iNdEx = preIndex
  4652  			skippy, err := skipTx(dAtA[iNdEx:])
  4653  			if err != nil {
  4654  				return err
  4655  			}
  4656  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4657  				return ErrInvalidLengthTx
  4658  			}
  4659  			if (iNdEx + skippy) > l {
  4660  				return io.ErrUnexpectedEOF
  4661  			}
  4662  			iNdEx += skippy
  4663  		}
  4664  	}
  4665  
  4666  	if iNdEx > l {
  4667  		return io.ErrUnexpectedEOF
  4668  	}
  4669  	return nil
  4670  }
  4671  func (m *MsgLeaveFoundationResponse) Unmarshal(dAtA []byte) error {
  4672  	l := len(dAtA)
  4673  	iNdEx := 0
  4674  	for iNdEx < l {
  4675  		preIndex := iNdEx
  4676  		var wire uint64
  4677  		for shift := uint(0); ; shift += 7 {
  4678  			if shift >= 64 {
  4679  				return ErrIntOverflowTx
  4680  			}
  4681  			if iNdEx >= l {
  4682  				return io.ErrUnexpectedEOF
  4683  			}
  4684  			b := dAtA[iNdEx]
  4685  			iNdEx++
  4686  			wire |= uint64(b&0x7F) << shift
  4687  			if b < 0x80 {
  4688  				break
  4689  			}
  4690  		}
  4691  		fieldNum := int32(wire >> 3)
  4692  		wireType := int(wire & 0x7)
  4693  		if wireType == 4 {
  4694  			return fmt.Errorf("proto: MsgLeaveFoundationResponse: wiretype end group for non-group")
  4695  		}
  4696  		if fieldNum <= 0 {
  4697  			return fmt.Errorf("proto: MsgLeaveFoundationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4698  		}
  4699  		switch fieldNum {
  4700  		default:
  4701  			iNdEx = preIndex
  4702  			skippy, err := skipTx(dAtA[iNdEx:])
  4703  			if err != nil {
  4704  				return err
  4705  			}
  4706  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4707  				return ErrInvalidLengthTx
  4708  			}
  4709  			if (iNdEx + skippy) > l {
  4710  				return io.ErrUnexpectedEOF
  4711  			}
  4712  			iNdEx += skippy
  4713  		}
  4714  	}
  4715  
  4716  	if iNdEx > l {
  4717  		return io.ErrUnexpectedEOF
  4718  	}
  4719  	return nil
  4720  }
  4721  func (m *MsgUpdateCensorship) Unmarshal(dAtA []byte) error {
  4722  	l := len(dAtA)
  4723  	iNdEx := 0
  4724  	for iNdEx < l {
  4725  		preIndex := iNdEx
  4726  		var wire uint64
  4727  		for shift := uint(0); ; shift += 7 {
  4728  			if shift >= 64 {
  4729  				return ErrIntOverflowTx
  4730  			}
  4731  			if iNdEx >= l {
  4732  				return io.ErrUnexpectedEOF
  4733  			}
  4734  			b := dAtA[iNdEx]
  4735  			iNdEx++
  4736  			wire |= uint64(b&0x7F) << shift
  4737  			if b < 0x80 {
  4738  				break
  4739  			}
  4740  		}
  4741  		fieldNum := int32(wire >> 3)
  4742  		wireType := int(wire & 0x7)
  4743  		if wireType == 4 {
  4744  			return fmt.Errorf("proto: MsgUpdateCensorship: wiretype end group for non-group")
  4745  		}
  4746  		if fieldNum <= 0 {
  4747  			return fmt.Errorf("proto: MsgUpdateCensorship: illegal tag %d (wire type %d)", fieldNum, wire)
  4748  		}
  4749  		switch fieldNum {
  4750  		case 1:
  4751  			if wireType != 2 {
  4752  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  4753  			}
  4754  			var stringLen uint64
  4755  			for shift := uint(0); ; shift += 7 {
  4756  				if shift >= 64 {
  4757  					return ErrIntOverflowTx
  4758  				}
  4759  				if iNdEx >= l {
  4760  					return io.ErrUnexpectedEOF
  4761  				}
  4762  				b := dAtA[iNdEx]
  4763  				iNdEx++
  4764  				stringLen |= uint64(b&0x7F) << shift
  4765  				if b < 0x80 {
  4766  					break
  4767  				}
  4768  			}
  4769  			intStringLen := int(stringLen)
  4770  			if intStringLen < 0 {
  4771  				return ErrInvalidLengthTx
  4772  			}
  4773  			postIndex := iNdEx + intStringLen
  4774  			if postIndex < 0 {
  4775  				return ErrInvalidLengthTx
  4776  			}
  4777  			if postIndex > l {
  4778  				return io.ErrUnexpectedEOF
  4779  			}
  4780  			m.Authority = string(dAtA[iNdEx:postIndex])
  4781  			iNdEx = postIndex
  4782  		case 2:
  4783  			if wireType != 2 {
  4784  				return fmt.Errorf("proto: wrong wireType = %d for field Censorship", wireType)
  4785  			}
  4786  			var msglen int
  4787  			for shift := uint(0); ; shift += 7 {
  4788  				if shift >= 64 {
  4789  					return ErrIntOverflowTx
  4790  				}
  4791  				if iNdEx >= l {
  4792  					return io.ErrUnexpectedEOF
  4793  				}
  4794  				b := dAtA[iNdEx]
  4795  				iNdEx++
  4796  				msglen |= int(b&0x7F) << shift
  4797  				if b < 0x80 {
  4798  					break
  4799  				}
  4800  			}
  4801  			if msglen < 0 {
  4802  				return ErrInvalidLengthTx
  4803  			}
  4804  			postIndex := iNdEx + msglen
  4805  			if postIndex < 0 {
  4806  				return ErrInvalidLengthTx
  4807  			}
  4808  			if postIndex > l {
  4809  				return io.ErrUnexpectedEOF
  4810  			}
  4811  			if err := m.Censorship.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4812  				return err
  4813  			}
  4814  			iNdEx = postIndex
  4815  		default:
  4816  			iNdEx = preIndex
  4817  			skippy, err := skipTx(dAtA[iNdEx:])
  4818  			if err != nil {
  4819  				return err
  4820  			}
  4821  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4822  				return ErrInvalidLengthTx
  4823  			}
  4824  			if (iNdEx + skippy) > l {
  4825  				return io.ErrUnexpectedEOF
  4826  			}
  4827  			iNdEx += skippy
  4828  		}
  4829  	}
  4830  
  4831  	if iNdEx > l {
  4832  		return io.ErrUnexpectedEOF
  4833  	}
  4834  	return nil
  4835  }
  4836  func (m *MsgUpdateCensorshipResponse) Unmarshal(dAtA []byte) error {
  4837  	l := len(dAtA)
  4838  	iNdEx := 0
  4839  	for iNdEx < l {
  4840  		preIndex := iNdEx
  4841  		var wire uint64
  4842  		for shift := uint(0); ; shift += 7 {
  4843  			if shift >= 64 {
  4844  				return ErrIntOverflowTx
  4845  			}
  4846  			if iNdEx >= l {
  4847  				return io.ErrUnexpectedEOF
  4848  			}
  4849  			b := dAtA[iNdEx]
  4850  			iNdEx++
  4851  			wire |= uint64(b&0x7F) << shift
  4852  			if b < 0x80 {
  4853  				break
  4854  			}
  4855  		}
  4856  		fieldNum := int32(wire >> 3)
  4857  		wireType := int(wire & 0x7)
  4858  		if wireType == 4 {
  4859  			return fmt.Errorf("proto: MsgUpdateCensorshipResponse: wiretype end group for non-group")
  4860  		}
  4861  		if fieldNum <= 0 {
  4862  			return fmt.Errorf("proto: MsgUpdateCensorshipResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4863  		}
  4864  		switch fieldNum {
  4865  		default:
  4866  			iNdEx = preIndex
  4867  			skippy, err := skipTx(dAtA[iNdEx:])
  4868  			if err != nil {
  4869  				return err
  4870  			}
  4871  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4872  				return ErrInvalidLengthTx
  4873  			}
  4874  			if (iNdEx + skippy) > l {
  4875  				return io.ErrUnexpectedEOF
  4876  			}
  4877  			iNdEx += skippy
  4878  		}
  4879  	}
  4880  
  4881  	if iNdEx > l {
  4882  		return io.ErrUnexpectedEOF
  4883  	}
  4884  	return nil
  4885  }
  4886  func (m *MsgGrant) Unmarshal(dAtA []byte) error {
  4887  	l := len(dAtA)
  4888  	iNdEx := 0
  4889  	for iNdEx < l {
  4890  		preIndex := iNdEx
  4891  		var wire uint64
  4892  		for shift := uint(0); ; shift += 7 {
  4893  			if shift >= 64 {
  4894  				return ErrIntOverflowTx
  4895  			}
  4896  			if iNdEx >= l {
  4897  				return io.ErrUnexpectedEOF
  4898  			}
  4899  			b := dAtA[iNdEx]
  4900  			iNdEx++
  4901  			wire |= uint64(b&0x7F) << shift
  4902  			if b < 0x80 {
  4903  				break
  4904  			}
  4905  		}
  4906  		fieldNum := int32(wire >> 3)
  4907  		wireType := int(wire & 0x7)
  4908  		if wireType == 4 {
  4909  			return fmt.Errorf("proto: MsgGrant: wiretype end group for non-group")
  4910  		}
  4911  		if fieldNum <= 0 {
  4912  			return fmt.Errorf("proto: MsgGrant: illegal tag %d (wire type %d)", fieldNum, wire)
  4913  		}
  4914  		switch fieldNum {
  4915  		case 1:
  4916  			if wireType != 2 {
  4917  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  4918  			}
  4919  			var stringLen uint64
  4920  			for shift := uint(0); ; shift += 7 {
  4921  				if shift >= 64 {
  4922  					return ErrIntOverflowTx
  4923  				}
  4924  				if iNdEx >= l {
  4925  					return io.ErrUnexpectedEOF
  4926  				}
  4927  				b := dAtA[iNdEx]
  4928  				iNdEx++
  4929  				stringLen |= uint64(b&0x7F) << shift
  4930  				if b < 0x80 {
  4931  					break
  4932  				}
  4933  			}
  4934  			intStringLen := int(stringLen)
  4935  			if intStringLen < 0 {
  4936  				return ErrInvalidLengthTx
  4937  			}
  4938  			postIndex := iNdEx + intStringLen
  4939  			if postIndex < 0 {
  4940  				return ErrInvalidLengthTx
  4941  			}
  4942  			if postIndex > l {
  4943  				return io.ErrUnexpectedEOF
  4944  			}
  4945  			m.Authority = string(dAtA[iNdEx:postIndex])
  4946  			iNdEx = postIndex
  4947  		case 2:
  4948  			if wireType != 2 {
  4949  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  4950  			}
  4951  			var stringLen uint64
  4952  			for shift := uint(0); ; shift += 7 {
  4953  				if shift >= 64 {
  4954  					return ErrIntOverflowTx
  4955  				}
  4956  				if iNdEx >= l {
  4957  					return io.ErrUnexpectedEOF
  4958  				}
  4959  				b := dAtA[iNdEx]
  4960  				iNdEx++
  4961  				stringLen |= uint64(b&0x7F) << shift
  4962  				if b < 0x80 {
  4963  					break
  4964  				}
  4965  			}
  4966  			intStringLen := int(stringLen)
  4967  			if intStringLen < 0 {
  4968  				return ErrInvalidLengthTx
  4969  			}
  4970  			postIndex := iNdEx + intStringLen
  4971  			if postIndex < 0 {
  4972  				return ErrInvalidLengthTx
  4973  			}
  4974  			if postIndex > l {
  4975  				return io.ErrUnexpectedEOF
  4976  			}
  4977  			m.Grantee = string(dAtA[iNdEx:postIndex])
  4978  			iNdEx = postIndex
  4979  		case 3:
  4980  			if wireType != 2 {
  4981  				return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType)
  4982  			}
  4983  			var msglen int
  4984  			for shift := uint(0); ; shift += 7 {
  4985  				if shift >= 64 {
  4986  					return ErrIntOverflowTx
  4987  				}
  4988  				if iNdEx >= l {
  4989  					return io.ErrUnexpectedEOF
  4990  				}
  4991  				b := dAtA[iNdEx]
  4992  				iNdEx++
  4993  				msglen |= int(b&0x7F) << shift
  4994  				if b < 0x80 {
  4995  					break
  4996  				}
  4997  			}
  4998  			if msglen < 0 {
  4999  				return ErrInvalidLengthTx
  5000  			}
  5001  			postIndex := iNdEx + msglen
  5002  			if postIndex < 0 {
  5003  				return ErrInvalidLengthTx
  5004  			}
  5005  			if postIndex > l {
  5006  				return io.ErrUnexpectedEOF
  5007  			}
  5008  			if m.Authorization == nil {
  5009  				m.Authorization = &types1.Any{}
  5010  			}
  5011  			if err := m.Authorization.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5012  				return err
  5013  			}
  5014  			iNdEx = postIndex
  5015  		default:
  5016  			iNdEx = preIndex
  5017  			skippy, err := skipTx(dAtA[iNdEx:])
  5018  			if err != nil {
  5019  				return err
  5020  			}
  5021  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5022  				return ErrInvalidLengthTx
  5023  			}
  5024  			if (iNdEx + skippy) > l {
  5025  				return io.ErrUnexpectedEOF
  5026  			}
  5027  			iNdEx += skippy
  5028  		}
  5029  	}
  5030  
  5031  	if iNdEx > l {
  5032  		return io.ErrUnexpectedEOF
  5033  	}
  5034  	return nil
  5035  }
  5036  func (m *MsgGrantResponse) Unmarshal(dAtA []byte) error {
  5037  	l := len(dAtA)
  5038  	iNdEx := 0
  5039  	for iNdEx < l {
  5040  		preIndex := iNdEx
  5041  		var wire uint64
  5042  		for shift := uint(0); ; shift += 7 {
  5043  			if shift >= 64 {
  5044  				return ErrIntOverflowTx
  5045  			}
  5046  			if iNdEx >= l {
  5047  				return io.ErrUnexpectedEOF
  5048  			}
  5049  			b := dAtA[iNdEx]
  5050  			iNdEx++
  5051  			wire |= uint64(b&0x7F) << shift
  5052  			if b < 0x80 {
  5053  				break
  5054  			}
  5055  		}
  5056  		fieldNum := int32(wire >> 3)
  5057  		wireType := int(wire & 0x7)
  5058  		if wireType == 4 {
  5059  			return fmt.Errorf("proto: MsgGrantResponse: wiretype end group for non-group")
  5060  		}
  5061  		if fieldNum <= 0 {
  5062  			return fmt.Errorf("proto: MsgGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5063  		}
  5064  		switch fieldNum {
  5065  		default:
  5066  			iNdEx = preIndex
  5067  			skippy, err := skipTx(dAtA[iNdEx:])
  5068  			if err != nil {
  5069  				return err
  5070  			}
  5071  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5072  				return ErrInvalidLengthTx
  5073  			}
  5074  			if (iNdEx + skippy) > l {
  5075  				return io.ErrUnexpectedEOF
  5076  			}
  5077  			iNdEx += skippy
  5078  		}
  5079  	}
  5080  
  5081  	if iNdEx > l {
  5082  		return io.ErrUnexpectedEOF
  5083  	}
  5084  	return nil
  5085  }
  5086  func (m *MsgRevoke) Unmarshal(dAtA []byte) error {
  5087  	l := len(dAtA)
  5088  	iNdEx := 0
  5089  	for iNdEx < l {
  5090  		preIndex := iNdEx
  5091  		var wire uint64
  5092  		for shift := uint(0); ; shift += 7 {
  5093  			if shift >= 64 {
  5094  				return ErrIntOverflowTx
  5095  			}
  5096  			if iNdEx >= l {
  5097  				return io.ErrUnexpectedEOF
  5098  			}
  5099  			b := dAtA[iNdEx]
  5100  			iNdEx++
  5101  			wire |= uint64(b&0x7F) << shift
  5102  			if b < 0x80 {
  5103  				break
  5104  			}
  5105  		}
  5106  		fieldNum := int32(wire >> 3)
  5107  		wireType := int(wire & 0x7)
  5108  		if wireType == 4 {
  5109  			return fmt.Errorf("proto: MsgRevoke: wiretype end group for non-group")
  5110  		}
  5111  		if fieldNum <= 0 {
  5112  			return fmt.Errorf("proto: MsgRevoke: illegal tag %d (wire type %d)", fieldNum, wire)
  5113  		}
  5114  		switch fieldNum {
  5115  		case 1:
  5116  			if wireType != 2 {
  5117  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  5118  			}
  5119  			var stringLen uint64
  5120  			for shift := uint(0); ; shift += 7 {
  5121  				if shift >= 64 {
  5122  					return ErrIntOverflowTx
  5123  				}
  5124  				if iNdEx >= l {
  5125  					return io.ErrUnexpectedEOF
  5126  				}
  5127  				b := dAtA[iNdEx]
  5128  				iNdEx++
  5129  				stringLen |= uint64(b&0x7F) << shift
  5130  				if b < 0x80 {
  5131  					break
  5132  				}
  5133  			}
  5134  			intStringLen := int(stringLen)
  5135  			if intStringLen < 0 {
  5136  				return ErrInvalidLengthTx
  5137  			}
  5138  			postIndex := iNdEx + intStringLen
  5139  			if postIndex < 0 {
  5140  				return ErrInvalidLengthTx
  5141  			}
  5142  			if postIndex > l {
  5143  				return io.ErrUnexpectedEOF
  5144  			}
  5145  			m.Authority = string(dAtA[iNdEx:postIndex])
  5146  			iNdEx = postIndex
  5147  		case 2:
  5148  			if wireType != 2 {
  5149  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  5150  			}
  5151  			var stringLen uint64
  5152  			for shift := uint(0); ; shift += 7 {
  5153  				if shift >= 64 {
  5154  					return ErrIntOverflowTx
  5155  				}
  5156  				if iNdEx >= l {
  5157  					return io.ErrUnexpectedEOF
  5158  				}
  5159  				b := dAtA[iNdEx]
  5160  				iNdEx++
  5161  				stringLen |= uint64(b&0x7F) << shift
  5162  				if b < 0x80 {
  5163  					break
  5164  				}
  5165  			}
  5166  			intStringLen := int(stringLen)
  5167  			if intStringLen < 0 {
  5168  				return ErrInvalidLengthTx
  5169  			}
  5170  			postIndex := iNdEx + intStringLen
  5171  			if postIndex < 0 {
  5172  				return ErrInvalidLengthTx
  5173  			}
  5174  			if postIndex > l {
  5175  				return io.ErrUnexpectedEOF
  5176  			}
  5177  			m.Grantee = string(dAtA[iNdEx:postIndex])
  5178  			iNdEx = postIndex
  5179  		case 3:
  5180  			if wireType != 2 {
  5181  				return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType)
  5182  			}
  5183  			var stringLen uint64
  5184  			for shift := uint(0); ; shift += 7 {
  5185  				if shift >= 64 {
  5186  					return ErrIntOverflowTx
  5187  				}
  5188  				if iNdEx >= l {
  5189  					return io.ErrUnexpectedEOF
  5190  				}
  5191  				b := dAtA[iNdEx]
  5192  				iNdEx++
  5193  				stringLen |= uint64(b&0x7F) << shift
  5194  				if b < 0x80 {
  5195  					break
  5196  				}
  5197  			}
  5198  			intStringLen := int(stringLen)
  5199  			if intStringLen < 0 {
  5200  				return ErrInvalidLengthTx
  5201  			}
  5202  			postIndex := iNdEx + intStringLen
  5203  			if postIndex < 0 {
  5204  				return ErrInvalidLengthTx
  5205  			}
  5206  			if postIndex > l {
  5207  				return io.ErrUnexpectedEOF
  5208  			}
  5209  			m.MsgTypeUrl = string(dAtA[iNdEx:postIndex])
  5210  			iNdEx = postIndex
  5211  		default:
  5212  			iNdEx = preIndex
  5213  			skippy, err := skipTx(dAtA[iNdEx:])
  5214  			if err != nil {
  5215  				return err
  5216  			}
  5217  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5218  				return ErrInvalidLengthTx
  5219  			}
  5220  			if (iNdEx + skippy) > l {
  5221  				return io.ErrUnexpectedEOF
  5222  			}
  5223  			iNdEx += skippy
  5224  		}
  5225  	}
  5226  
  5227  	if iNdEx > l {
  5228  		return io.ErrUnexpectedEOF
  5229  	}
  5230  	return nil
  5231  }
  5232  func (m *MsgRevokeResponse) Unmarshal(dAtA []byte) error {
  5233  	l := len(dAtA)
  5234  	iNdEx := 0
  5235  	for iNdEx < l {
  5236  		preIndex := iNdEx
  5237  		var wire uint64
  5238  		for shift := uint(0); ; shift += 7 {
  5239  			if shift >= 64 {
  5240  				return ErrIntOverflowTx
  5241  			}
  5242  			if iNdEx >= l {
  5243  				return io.ErrUnexpectedEOF
  5244  			}
  5245  			b := dAtA[iNdEx]
  5246  			iNdEx++
  5247  			wire |= uint64(b&0x7F) << shift
  5248  			if b < 0x80 {
  5249  				break
  5250  			}
  5251  		}
  5252  		fieldNum := int32(wire >> 3)
  5253  		wireType := int(wire & 0x7)
  5254  		if wireType == 4 {
  5255  			return fmt.Errorf("proto: MsgRevokeResponse: wiretype end group for non-group")
  5256  		}
  5257  		if fieldNum <= 0 {
  5258  			return fmt.Errorf("proto: MsgRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5259  		}
  5260  		switch fieldNum {
  5261  		default:
  5262  			iNdEx = preIndex
  5263  			skippy, err := skipTx(dAtA[iNdEx:])
  5264  			if err != nil {
  5265  				return err
  5266  			}
  5267  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5268  				return ErrInvalidLengthTx
  5269  			}
  5270  			if (iNdEx + skippy) > l {
  5271  				return io.ErrUnexpectedEOF
  5272  			}
  5273  			iNdEx += skippy
  5274  		}
  5275  	}
  5276  
  5277  	if iNdEx > l {
  5278  		return io.ErrUnexpectedEOF
  5279  	}
  5280  	return nil
  5281  }
  5282  func skipTx(dAtA []byte) (n int, err error) {
  5283  	l := len(dAtA)
  5284  	iNdEx := 0
  5285  	depth := 0
  5286  	for iNdEx < l {
  5287  		var wire uint64
  5288  		for shift := uint(0); ; shift += 7 {
  5289  			if shift >= 64 {
  5290  				return 0, ErrIntOverflowTx
  5291  			}
  5292  			if iNdEx >= l {
  5293  				return 0, io.ErrUnexpectedEOF
  5294  			}
  5295  			b := dAtA[iNdEx]
  5296  			iNdEx++
  5297  			wire |= (uint64(b) & 0x7F) << shift
  5298  			if b < 0x80 {
  5299  				break
  5300  			}
  5301  		}
  5302  		wireType := int(wire & 0x7)
  5303  		switch wireType {
  5304  		case 0:
  5305  			for shift := uint(0); ; shift += 7 {
  5306  				if shift >= 64 {
  5307  					return 0, ErrIntOverflowTx
  5308  				}
  5309  				if iNdEx >= l {
  5310  					return 0, io.ErrUnexpectedEOF
  5311  				}
  5312  				iNdEx++
  5313  				if dAtA[iNdEx-1] < 0x80 {
  5314  					break
  5315  				}
  5316  			}
  5317  		case 1:
  5318  			iNdEx += 8
  5319  		case 2:
  5320  			var length int
  5321  			for shift := uint(0); ; shift += 7 {
  5322  				if shift >= 64 {
  5323  					return 0, ErrIntOverflowTx
  5324  				}
  5325  				if iNdEx >= l {
  5326  					return 0, io.ErrUnexpectedEOF
  5327  				}
  5328  				b := dAtA[iNdEx]
  5329  				iNdEx++
  5330  				length |= (int(b) & 0x7F) << shift
  5331  				if b < 0x80 {
  5332  					break
  5333  				}
  5334  			}
  5335  			if length < 0 {
  5336  				return 0, ErrInvalidLengthTx
  5337  			}
  5338  			iNdEx += length
  5339  		case 3:
  5340  			depth++
  5341  		case 4:
  5342  			if depth == 0 {
  5343  				return 0, ErrUnexpectedEndOfGroupTx
  5344  			}
  5345  			depth--
  5346  		case 5:
  5347  			iNdEx += 4
  5348  		default:
  5349  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5350  		}
  5351  		if iNdEx < 0 {
  5352  			return 0, ErrInvalidLengthTx
  5353  		}
  5354  		if depth == 0 {
  5355  			return iNdEx, nil
  5356  		}
  5357  	}
  5358  	return 0, io.ErrUnexpectedEOF
  5359  }
  5360  
  5361  var (
  5362  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  5363  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  5364  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  5365  )