github.com/InjectiveLabs/sdk-go@v1.53.0/chain/wasmx/types/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/wasmx/v1/tx.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	_ "github.com/cosmos/cosmos-sdk/codec/types"
    11  	_ "github.com/cosmos/cosmos-sdk/types/msgservice"
    12  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    13  	_ "github.com/cosmos/gogoproto/gogoproto"
    14  	grpc1 "github.com/cosmos/gogoproto/grpc"
    15  	proto "github.com/cosmos/gogoproto/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  // MsgExecuteContractCompat submits the given message data to a smart contract,
    36  // compatible with EIP712
    37  type MsgExecuteContractCompat struct {
    38  	// Sender is the that actor that signed the messages
    39  	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
    40  	// Contract is the address of the smart contract
    41  	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
    42  	// Msg json encoded message to be passed to the contract
    43  	Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
    44  	// Funds coins that are transferred to the contract on execution
    45  	Funds string `protobuf:"bytes,4,opt,name=funds,proto3" json:"funds,omitempty"`
    46  }
    47  
    48  func (m *MsgExecuteContractCompat) Reset()         { *m = MsgExecuteContractCompat{} }
    49  func (m *MsgExecuteContractCompat) String() string { return proto.CompactTextString(m) }
    50  func (*MsgExecuteContractCompat) ProtoMessage()    {}
    51  func (*MsgExecuteContractCompat) Descriptor() ([]byte, []int) {
    52  	return fileDescriptor_f7afe23baa925f70, []int{0}
    53  }
    54  func (m *MsgExecuteContractCompat) XXX_Unmarshal(b []byte) error {
    55  	return m.Unmarshal(b)
    56  }
    57  func (m *MsgExecuteContractCompat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    58  	if deterministic {
    59  		return xxx_messageInfo_MsgExecuteContractCompat.Marshal(b, m, deterministic)
    60  	} else {
    61  		b = b[:cap(b)]
    62  		n, err := m.MarshalToSizedBuffer(b)
    63  		if err != nil {
    64  			return nil, err
    65  		}
    66  		return b[:n], nil
    67  	}
    68  }
    69  func (m *MsgExecuteContractCompat) XXX_Merge(src proto.Message) {
    70  	xxx_messageInfo_MsgExecuteContractCompat.Merge(m, src)
    71  }
    72  func (m *MsgExecuteContractCompat) XXX_Size() int {
    73  	return m.Size()
    74  }
    75  func (m *MsgExecuteContractCompat) XXX_DiscardUnknown() {
    76  	xxx_messageInfo_MsgExecuteContractCompat.DiscardUnknown(m)
    77  }
    78  
    79  var xxx_messageInfo_MsgExecuteContractCompat proto.InternalMessageInfo
    80  
    81  func (m *MsgExecuteContractCompat) GetSender() string {
    82  	if m != nil {
    83  		return m.Sender
    84  	}
    85  	return ""
    86  }
    87  
    88  func (m *MsgExecuteContractCompat) GetContract() string {
    89  	if m != nil {
    90  		return m.Contract
    91  	}
    92  	return ""
    93  }
    94  
    95  func (m *MsgExecuteContractCompat) GetMsg() string {
    96  	if m != nil {
    97  		return m.Msg
    98  	}
    99  	return ""
   100  }
   101  
   102  func (m *MsgExecuteContractCompat) GetFunds() string {
   103  	if m != nil {
   104  		return m.Funds
   105  	}
   106  	return ""
   107  }
   108  
   109  // MsgExecuteContractCompatResponse returns execution result data.
   110  type MsgExecuteContractCompatResponse struct {
   111  	// Data contains bytes to returned from the contract
   112  	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
   113  }
   114  
   115  func (m *MsgExecuteContractCompatResponse) Reset()         { *m = MsgExecuteContractCompatResponse{} }
   116  func (m *MsgExecuteContractCompatResponse) String() string { return proto.CompactTextString(m) }
   117  func (*MsgExecuteContractCompatResponse) ProtoMessage()    {}
   118  func (*MsgExecuteContractCompatResponse) Descriptor() ([]byte, []int) {
   119  	return fileDescriptor_f7afe23baa925f70, []int{1}
   120  }
   121  func (m *MsgExecuteContractCompatResponse) XXX_Unmarshal(b []byte) error {
   122  	return m.Unmarshal(b)
   123  }
   124  func (m *MsgExecuteContractCompatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   125  	if deterministic {
   126  		return xxx_messageInfo_MsgExecuteContractCompatResponse.Marshal(b, m, deterministic)
   127  	} else {
   128  		b = b[:cap(b)]
   129  		n, err := m.MarshalToSizedBuffer(b)
   130  		if err != nil {
   131  			return nil, err
   132  		}
   133  		return b[:n], nil
   134  	}
   135  }
   136  func (m *MsgExecuteContractCompatResponse) XXX_Merge(src proto.Message) {
   137  	xxx_messageInfo_MsgExecuteContractCompatResponse.Merge(m, src)
   138  }
   139  func (m *MsgExecuteContractCompatResponse) XXX_Size() int {
   140  	return m.Size()
   141  }
   142  func (m *MsgExecuteContractCompatResponse) XXX_DiscardUnknown() {
   143  	xxx_messageInfo_MsgExecuteContractCompatResponse.DiscardUnknown(m)
   144  }
   145  
   146  var xxx_messageInfo_MsgExecuteContractCompatResponse proto.InternalMessageInfo
   147  
   148  func (m *MsgExecuteContractCompatResponse) GetData() []byte {
   149  	if m != nil {
   150  		return m.Data
   151  	}
   152  	return nil
   153  }
   154  
   155  type MsgUpdateContract struct {
   156  	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
   157  	// Unique Identifier for contract instance to be registered.
   158  	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
   159  	// Maximum gas to be used for the smart contract execution.
   160  	GasLimit uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
   161  	// gas price to be used for the smart contract execution.
   162  	GasPrice uint64 `protobuf:"varint,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
   163  	// optional - admin account that will be allowed to perform any changes
   164  	AdminAddress string `protobuf:"bytes,5,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
   165  }
   166  
   167  func (m *MsgUpdateContract) Reset()         { *m = MsgUpdateContract{} }
   168  func (m *MsgUpdateContract) String() string { return proto.CompactTextString(m) }
   169  func (*MsgUpdateContract) ProtoMessage()    {}
   170  func (*MsgUpdateContract) Descriptor() ([]byte, []int) {
   171  	return fileDescriptor_f7afe23baa925f70, []int{2}
   172  }
   173  func (m *MsgUpdateContract) XXX_Unmarshal(b []byte) error {
   174  	return m.Unmarshal(b)
   175  }
   176  func (m *MsgUpdateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   177  	if deterministic {
   178  		return xxx_messageInfo_MsgUpdateContract.Marshal(b, m, deterministic)
   179  	} else {
   180  		b = b[:cap(b)]
   181  		n, err := m.MarshalToSizedBuffer(b)
   182  		if err != nil {
   183  			return nil, err
   184  		}
   185  		return b[:n], nil
   186  	}
   187  }
   188  func (m *MsgUpdateContract) XXX_Merge(src proto.Message) {
   189  	xxx_messageInfo_MsgUpdateContract.Merge(m, src)
   190  }
   191  func (m *MsgUpdateContract) XXX_Size() int {
   192  	return m.Size()
   193  }
   194  func (m *MsgUpdateContract) XXX_DiscardUnknown() {
   195  	xxx_messageInfo_MsgUpdateContract.DiscardUnknown(m)
   196  }
   197  
   198  var xxx_messageInfo_MsgUpdateContract proto.InternalMessageInfo
   199  
   200  func (m *MsgUpdateContract) GetSender() string {
   201  	if m != nil {
   202  		return m.Sender
   203  	}
   204  	return ""
   205  }
   206  
   207  func (m *MsgUpdateContract) GetContractAddress() string {
   208  	if m != nil {
   209  		return m.ContractAddress
   210  	}
   211  	return ""
   212  }
   213  
   214  func (m *MsgUpdateContract) GetGasLimit() uint64 {
   215  	if m != nil {
   216  		return m.GasLimit
   217  	}
   218  	return 0
   219  }
   220  
   221  func (m *MsgUpdateContract) GetGasPrice() uint64 {
   222  	if m != nil {
   223  		return m.GasPrice
   224  	}
   225  	return 0
   226  }
   227  
   228  func (m *MsgUpdateContract) GetAdminAddress() string {
   229  	if m != nil {
   230  		return m.AdminAddress
   231  	}
   232  	return ""
   233  }
   234  
   235  type MsgUpdateContractResponse struct {
   236  }
   237  
   238  func (m *MsgUpdateContractResponse) Reset()         { *m = MsgUpdateContractResponse{} }
   239  func (m *MsgUpdateContractResponse) String() string { return proto.CompactTextString(m) }
   240  func (*MsgUpdateContractResponse) ProtoMessage()    {}
   241  func (*MsgUpdateContractResponse) Descriptor() ([]byte, []int) {
   242  	return fileDescriptor_f7afe23baa925f70, []int{3}
   243  }
   244  func (m *MsgUpdateContractResponse) XXX_Unmarshal(b []byte) error {
   245  	return m.Unmarshal(b)
   246  }
   247  func (m *MsgUpdateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   248  	if deterministic {
   249  		return xxx_messageInfo_MsgUpdateContractResponse.Marshal(b, m, deterministic)
   250  	} else {
   251  		b = b[:cap(b)]
   252  		n, err := m.MarshalToSizedBuffer(b)
   253  		if err != nil {
   254  			return nil, err
   255  		}
   256  		return b[:n], nil
   257  	}
   258  }
   259  func (m *MsgUpdateContractResponse) XXX_Merge(src proto.Message) {
   260  	xxx_messageInfo_MsgUpdateContractResponse.Merge(m, src)
   261  }
   262  func (m *MsgUpdateContractResponse) XXX_Size() int {
   263  	return m.Size()
   264  }
   265  func (m *MsgUpdateContractResponse) XXX_DiscardUnknown() {
   266  	xxx_messageInfo_MsgUpdateContractResponse.DiscardUnknown(m)
   267  }
   268  
   269  var xxx_messageInfo_MsgUpdateContractResponse proto.InternalMessageInfo
   270  
   271  type MsgActivateContract struct {
   272  	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
   273  	// Unique Identifier for contract instance to be activated.
   274  	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
   275  }
   276  
   277  func (m *MsgActivateContract) Reset()         { *m = MsgActivateContract{} }
   278  func (m *MsgActivateContract) String() string { return proto.CompactTextString(m) }
   279  func (*MsgActivateContract) ProtoMessage()    {}
   280  func (*MsgActivateContract) Descriptor() ([]byte, []int) {
   281  	return fileDescriptor_f7afe23baa925f70, []int{4}
   282  }
   283  func (m *MsgActivateContract) XXX_Unmarshal(b []byte) error {
   284  	return m.Unmarshal(b)
   285  }
   286  func (m *MsgActivateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   287  	if deterministic {
   288  		return xxx_messageInfo_MsgActivateContract.Marshal(b, m, deterministic)
   289  	} else {
   290  		b = b[:cap(b)]
   291  		n, err := m.MarshalToSizedBuffer(b)
   292  		if err != nil {
   293  			return nil, err
   294  		}
   295  		return b[:n], nil
   296  	}
   297  }
   298  func (m *MsgActivateContract) XXX_Merge(src proto.Message) {
   299  	xxx_messageInfo_MsgActivateContract.Merge(m, src)
   300  }
   301  func (m *MsgActivateContract) XXX_Size() int {
   302  	return m.Size()
   303  }
   304  func (m *MsgActivateContract) XXX_DiscardUnknown() {
   305  	xxx_messageInfo_MsgActivateContract.DiscardUnknown(m)
   306  }
   307  
   308  var xxx_messageInfo_MsgActivateContract proto.InternalMessageInfo
   309  
   310  func (m *MsgActivateContract) GetSender() string {
   311  	if m != nil {
   312  		return m.Sender
   313  	}
   314  	return ""
   315  }
   316  
   317  func (m *MsgActivateContract) GetContractAddress() string {
   318  	if m != nil {
   319  		return m.ContractAddress
   320  	}
   321  	return ""
   322  }
   323  
   324  type MsgActivateContractResponse struct {
   325  }
   326  
   327  func (m *MsgActivateContractResponse) Reset()         { *m = MsgActivateContractResponse{} }
   328  func (m *MsgActivateContractResponse) String() string { return proto.CompactTextString(m) }
   329  func (*MsgActivateContractResponse) ProtoMessage()    {}
   330  func (*MsgActivateContractResponse) Descriptor() ([]byte, []int) {
   331  	return fileDescriptor_f7afe23baa925f70, []int{5}
   332  }
   333  func (m *MsgActivateContractResponse) XXX_Unmarshal(b []byte) error {
   334  	return m.Unmarshal(b)
   335  }
   336  func (m *MsgActivateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   337  	if deterministic {
   338  		return xxx_messageInfo_MsgActivateContractResponse.Marshal(b, m, deterministic)
   339  	} else {
   340  		b = b[:cap(b)]
   341  		n, err := m.MarshalToSizedBuffer(b)
   342  		if err != nil {
   343  			return nil, err
   344  		}
   345  		return b[:n], nil
   346  	}
   347  }
   348  func (m *MsgActivateContractResponse) XXX_Merge(src proto.Message) {
   349  	xxx_messageInfo_MsgActivateContractResponse.Merge(m, src)
   350  }
   351  func (m *MsgActivateContractResponse) XXX_Size() int {
   352  	return m.Size()
   353  }
   354  func (m *MsgActivateContractResponse) XXX_DiscardUnknown() {
   355  	xxx_messageInfo_MsgActivateContractResponse.DiscardUnknown(m)
   356  }
   357  
   358  var xxx_messageInfo_MsgActivateContractResponse proto.InternalMessageInfo
   359  
   360  type MsgDeactivateContract struct {
   361  	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
   362  	// Unique Identifier for contract instance to be deactivated.
   363  	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
   364  }
   365  
   366  func (m *MsgDeactivateContract) Reset()         { *m = MsgDeactivateContract{} }
   367  func (m *MsgDeactivateContract) String() string { return proto.CompactTextString(m) }
   368  func (*MsgDeactivateContract) ProtoMessage()    {}
   369  func (*MsgDeactivateContract) Descriptor() ([]byte, []int) {
   370  	return fileDescriptor_f7afe23baa925f70, []int{6}
   371  }
   372  func (m *MsgDeactivateContract) XXX_Unmarshal(b []byte) error {
   373  	return m.Unmarshal(b)
   374  }
   375  func (m *MsgDeactivateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   376  	if deterministic {
   377  		return xxx_messageInfo_MsgDeactivateContract.Marshal(b, m, deterministic)
   378  	} else {
   379  		b = b[:cap(b)]
   380  		n, err := m.MarshalToSizedBuffer(b)
   381  		if err != nil {
   382  			return nil, err
   383  		}
   384  		return b[:n], nil
   385  	}
   386  }
   387  func (m *MsgDeactivateContract) XXX_Merge(src proto.Message) {
   388  	xxx_messageInfo_MsgDeactivateContract.Merge(m, src)
   389  }
   390  func (m *MsgDeactivateContract) XXX_Size() int {
   391  	return m.Size()
   392  }
   393  func (m *MsgDeactivateContract) XXX_DiscardUnknown() {
   394  	xxx_messageInfo_MsgDeactivateContract.DiscardUnknown(m)
   395  }
   396  
   397  var xxx_messageInfo_MsgDeactivateContract proto.InternalMessageInfo
   398  
   399  func (m *MsgDeactivateContract) GetSender() string {
   400  	if m != nil {
   401  		return m.Sender
   402  	}
   403  	return ""
   404  }
   405  
   406  func (m *MsgDeactivateContract) GetContractAddress() string {
   407  	if m != nil {
   408  		return m.ContractAddress
   409  	}
   410  	return ""
   411  }
   412  
   413  type MsgDeactivateContractResponse struct {
   414  }
   415  
   416  func (m *MsgDeactivateContractResponse) Reset()         { *m = MsgDeactivateContractResponse{} }
   417  func (m *MsgDeactivateContractResponse) String() string { return proto.CompactTextString(m) }
   418  func (*MsgDeactivateContractResponse) ProtoMessage()    {}
   419  func (*MsgDeactivateContractResponse) Descriptor() ([]byte, []int) {
   420  	return fileDescriptor_f7afe23baa925f70, []int{7}
   421  }
   422  func (m *MsgDeactivateContractResponse) XXX_Unmarshal(b []byte) error {
   423  	return m.Unmarshal(b)
   424  }
   425  func (m *MsgDeactivateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   426  	if deterministic {
   427  		return xxx_messageInfo_MsgDeactivateContractResponse.Marshal(b, m, deterministic)
   428  	} else {
   429  		b = b[:cap(b)]
   430  		n, err := m.MarshalToSizedBuffer(b)
   431  		if err != nil {
   432  			return nil, err
   433  		}
   434  		return b[:n], nil
   435  	}
   436  }
   437  func (m *MsgDeactivateContractResponse) XXX_Merge(src proto.Message) {
   438  	xxx_messageInfo_MsgDeactivateContractResponse.Merge(m, src)
   439  }
   440  func (m *MsgDeactivateContractResponse) XXX_Size() int {
   441  	return m.Size()
   442  }
   443  func (m *MsgDeactivateContractResponse) XXX_DiscardUnknown() {
   444  	xxx_messageInfo_MsgDeactivateContractResponse.DiscardUnknown(m)
   445  }
   446  
   447  var xxx_messageInfo_MsgDeactivateContractResponse proto.InternalMessageInfo
   448  
   449  type MsgUpdateParams struct {
   450  	// authority is the address of the governance account.
   451  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   452  	// params defines the wasmx parameters to update.
   453  	//
   454  	// NOTE: All parameters must be supplied.
   455  	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
   456  }
   457  
   458  func (m *MsgUpdateParams) Reset()         { *m = MsgUpdateParams{} }
   459  func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
   460  func (*MsgUpdateParams) ProtoMessage()    {}
   461  func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
   462  	return fileDescriptor_f7afe23baa925f70, []int{8}
   463  }
   464  func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
   465  	return m.Unmarshal(b)
   466  }
   467  func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   468  	if deterministic {
   469  		return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
   470  	} else {
   471  		b = b[:cap(b)]
   472  		n, err := m.MarshalToSizedBuffer(b)
   473  		if err != nil {
   474  			return nil, err
   475  		}
   476  		return b[:n], nil
   477  	}
   478  }
   479  func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
   480  	xxx_messageInfo_MsgUpdateParams.Merge(m, src)
   481  }
   482  func (m *MsgUpdateParams) XXX_Size() int {
   483  	return m.Size()
   484  }
   485  func (m *MsgUpdateParams) XXX_DiscardUnknown() {
   486  	xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
   487  }
   488  
   489  var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
   490  
   491  func (m *MsgUpdateParams) GetAuthority() string {
   492  	if m != nil {
   493  		return m.Authority
   494  	}
   495  	return ""
   496  }
   497  
   498  func (m *MsgUpdateParams) GetParams() Params {
   499  	if m != nil {
   500  		return m.Params
   501  	}
   502  	return Params{}
   503  }
   504  
   505  type MsgUpdateParamsResponse struct {
   506  }
   507  
   508  func (m *MsgUpdateParamsResponse) Reset()         { *m = MsgUpdateParamsResponse{} }
   509  func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
   510  func (*MsgUpdateParamsResponse) ProtoMessage()    {}
   511  func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
   512  	return fileDescriptor_f7afe23baa925f70, []int{9}
   513  }
   514  func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
   515  	return m.Unmarshal(b)
   516  }
   517  func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   518  	if deterministic {
   519  		return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
   520  	} else {
   521  		b = b[:cap(b)]
   522  		n, err := m.MarshalToSizedBuffer(b)
   523  		if err != nil {
   524  			return nil, err
   525  		}
   526  		return b[:n], nil
   527  	}
   528  }
   529  func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
   530  	xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
   531  }
   532  func (m *MsgUpdateParamsResponse) XXX_Size() int {
   533  	return m.Size()
   534  }
   535  func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
   536  	xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
   537  }
   538  
   539  var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
   540  
   541  type MsgRegisterContract struct {
   542  	Sender                      string                      `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
   543  	ContractRegistrationRequest ContractRegistrationRequest `protobuf:"bytes,2,opt,name=contract_registration_request,json=contractRegistrationRequest,proto3" json:"contract_registration_request"`
   544  }
   545  
   546  func (m *MsgRegisterContract) Reset()         { *m = MsgRegisterContract{} }
   547  func (m *MsgRegisterContract) String() string { return proto.CompactTextString(m) }
   548  func (*MsgRegisterContract) ProtoMessage()    {}
   549  func (*MsgRegisterContract) Descriptor() ([]byte, []int) {
   550  	return fileDescriptor_f7afe23baa925f70, []int{10}
   551  }
   552  func (m *MsgRegisterContract) XXX_Unmarshal(b []byte) error {
   553  	return m.Unmarshal(b)
   554  }
   555  func (m *MsgRegisterContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   556  	if deterministic {
   557  		return xxx_messageInfo_MsgRegisterContract.Marshal(b, m, deterministic)
   558  	} else {
   559  		b = b[:cap(b)]
   560  		n, err := m.MarshalToSizedBuffer(b)
   561  		if err != nil {
   562  			return nil, err
   563  		}
   564  		return b[:n], nil
   565  	}
   566  }
   567  func (m *MsgRegisterContract) XXX_Merge(src proto.Message) {
   568  	xxx_messageInfo_MsgRegisterContract.Merge(m, src)
   569  }
   570  func (m *MsgRegisterContract) XXX_Size() int {
   571  	return m.Size()
   572  }
   573  func (m *MsgRegisterContract) XXX_DiscardUnknown() {
   574  	xxx_messageInfo_MsgRegisterContract.DiscardUnknown(m)
   575  }
   576  
   577  var xxx_messageInfo_MsgRegisterContract proto.InternalMessageInfo
   578  
   579  func (m *MsgRegisterContract) GetSender() string {
   580  	if m != nil {
   581  		return m.Sender
   582  	}
   583  	return ""
   584  }
   585  
   586  func (m *MsgRegisterContract) GetContractRegistrationRequest() ContractRegistrationRequest {
   587  	if m != nil {
   588  		return m.ContractRegistrationRequest
   589  	}
   590  	return ContractRegistrationRequest{}
   591  }
   592  
   593  type MsgRegisterContractResponse struct {
   594  }
   595  
   596  func (m *MsgRegisterContractResponse) Reset()         { *m = MsgRegisterContractResponse{} }
   597  func (m *MsgRegisterContractResponse) String() string { return proto.CompactTextString(m) }
   598  func (*MsgRegisterContractResponse) ProtoMessage()    {}
   599  func (*MsgRegisterContractResponse) Descriptor() ([]byte, []int) {
   600  	return fileDescriptor_f7afe23baa925f70, []int{11}
   601  }
   602  func (m *MsgRegisterContractResponse) XXX_Unmarshal(b []byte) error {
   603  	return m.Unmarshal(b)
   604  }
   605  func (m *MsgRegisterContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   606  	if deterministic {
   607  		return xxx_messageInfo_MsgRegisterContractResponse.Marshal(b, m, deterministic)
   608  	} else {
   609  		b = b[:cap(b)]
   610  		n, err := m.MarshalToSizedBuffer(b)
   611  		if err != nil {
   612  			return nil, err
   613  		}
   614  		return b[:n], nil
   615  	}
   616  }
   617  func (m *MsgRegisterContractResponse) XXX_Merge(src proto.Message) {
   618  	xxx_messageInfo_MsgRegisterContractResponse.Merge(m, src)
   619  }
   620  func (m *MsgRegisterContractResponse) XXX_Size() int {
   621  	return m.Size()
   622  }
   623  func (m *MsgRegisterContractResponse) XXX_DiscardUnknown() {
   624  	xxx_messageInfo_MsgRegisterContractResponse.DiscardUnknown(m)
   625  }
   626  
   627  var xxx_messageInfo_MsgRegisterContractResponse proto.InternalMessageInfo
   628  
   629  func init() {
   630  	proto.RegisterType((*MsgExecuteContractCompat)(nil), "injective.wasmx.v1.MsgExecuteContractCompat")
   631  	proto.RegisterType((*MsgExecuteContractCompatResponse)(nil), "injective.wasmx.v1.MsgExecuteContractCompatResponse")
   632  	proto.RegisterType((*MsgUpdateContract)(nil), "injective.wasmx.v1.MsgUpdateContract")
   633  	proto.RegisterType((*MsgUpdateContractResponse)(nil), "injective.wasmx.v1.MsgUpdateContractResponse")
   634  	proto.RegisterType((*MsgActivateContract)(nil), "injective.wasmx.v1.MsgActivateContract")
   635  	proto.RegisterType((*MsgActivateContractResponse)(nil), "injective.wasmx.v1.MsgActivateContractResponse")
   636  	proto.RegisterType((*MsgDeactivateContract)(nil), "injective.wasmx.v1.MsgDeactivateContract")
   637  	proto.RegisterType((*MsgDeactivateContractResponse)(nil), "injective.wasmx.v1.MsgDeactivateContractResponse")
   638  	proto.RegisterType((*MsgUpdateParams)(nil), "injective.wasmx.v1.MsgUpdateParams")
   639  	proto.RegisterType((*MsgUpdateParamsResponse)(nil), "injective.wasmx.v1.MsgUpdateParamsResponse")
   640  	proto.RegisterType((*MsgRegisterContract)(nil), "injective.wasmx.v1.MsgRegisterContract")
   641  	proto.RegisterType((*MsgRegisterContractResponse)(nil), "injective.wasmx.v1.MsgRegisterContractResponse")
   642  }
   643  
   644  func init() { proto.RegisterFile("injective/wasmx/v1/tx.proto", fileDescriptor_f7afe23baa925f70) }
   645  
   646  var fileDescriptor_f7afe23baa925f70 = []byte{
   647  	// 808 bytes of a gzipped FileDescriptorProto
   648  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x4f, 0xdc, 0x46,
   649  	0x14, 0x5e, 0x97, 0x5d, 0x04, 0x53, 0x2a, 0xc0, 0x85, 0xb2, 0xeb, 0x2d, 0x86, 0xba, 0xaa, 0x60,
   650  	0xa1, 0xac, 0x05, 0xad, 0x50, 0xb5, 0x37, 0xa0, 0x3d, 0x54, 0x65, 0x25, 0xe4, 0xaa, 0x97, 0x5e,
   651  	0xb6, 0xb3, 0xf6, 0x30, 0xb8, 0x5a, 0x7b, 0x5c, 0xcf, 0x2c, 0x65, 0xdb, 0x4b, 0xd5, 0x1c, 0x22,
   652  	0xe5, 0x94, 0x5f, 0x91, 0x5b, 0x24, 0x0e, 0xf9, 0x03, 0xb9, 0x71, 0x44, 0xc9, 0x25, 0xa7, 0x28,
   653  	0x82, 0x48, 0xfc, 0x8d, 0xc8, 0x33, 0xe3, 0xd9, 0xe0, 0xb5, 0xc9, 0x46, 0x4a, 0x2e, 0x2b, 0xbf,
   654  	0xf7, 0xbe, 0x99, 0xef, 0xfb, 0xde, 0xbc, 0xf1, 0x1a, 0xd4, 0xfd, 0xf0, 0x4f, 0xe4, 0x32, 0xff,
   655  	0x14, 0xd9, 0x7f, 0x43, 0x1a, 0x9c, 0xd9, 0xa7, 0xdb, 0x36, 0x3b, 0x6b, 0x46, 0x31, 0x61, 0x44,
   656  	0xd7, 0x55, 0xb1, 0xc9, 0x8b, 0xcd, 0xd3, 0x6d, 0x63, 0x01, 0x13, 0x4c, 0x78, 0xd9, 0x4e, 0x9e,
   657  	0x04, 0xd2, 0xa8, 0x61, 0x42, 0x70, 0x0f, 0xd9, 0x3c, 0xea, 0xf6, 0x8f, 0x6d, 0x18, 0x0e, 0xd2,
   658  	0x92, 0x4b, 0x68, 0x40, 0x68, 0x47, 0xac, 0x11, 0x81, 0x2c, 0x2d, 0x89, 0xc8, 0x0e, 0x28, 0x4e,
   659  	0x78, 0x03, 0x8a, 0x65, 0xc1, 0xcc, 0x51, 0x25, 0x14, 0x88, 0xfa, 0x57, 0x39, 0xf5, 0x28, 0x26,
   660  	0x11, 0xa1, 0xb0, 0x27, 0x21, 0xf3, 0x30, 0xf0, 0x43, 0x62, 0xf3, 0x5f, 0x91, 0xb2, 0x1e, 0x69,
   661  	0xa0, 0xda, 0xa6, 0xf8, 0xa7, 0x33, 0xe4, 0xf6, 0x19, 0x3a, 0x20, 0x21, 0x8b, 0xa1, 0xcb, 0x0e,
   662  	0x48, 0x10, 0x41, 0xa6, 0x7f, 0x01, 0x26, 0x29, 0x0a, 0x3d, 0x14, 0x57, 0xb5, 0x55, 0x6d, 0x7d,
   663  	0xda, 0x91, 0x91, 0x6e, 0x80, 0x29, 0x57, 0x22, 0xab, 0x9f, 0xf0, 0x8a, 0x8a, 0xf5, 0x39, 0x30,
   664  	0x11, 0x50, 0x5c, 0x9d, 0xe0, 0xe9, 0xe4, 0x51, 0x5f, 0x00, 0x95, 0xe3, 0x7e, 0xe8, 0xd1, 0x6a,
   665  	0x99, 0xe7, 0x44, 0xd0, 0x6a, 0xfe, 0x7f, 0x73, 0xbe, 0x21, 0x37, 0x7c, 0x70, 0x73, 0xbe, 0x61,
   666  	0x0a, 0xd1, 0x45, 0x5a, 0xac, 0x5d, 0xb0, 0x5a, 0x54, 0x73, 0x10, 0x8d, 0x48, 0x48, 0x91, 0xae,
   667  	0x83, 0xb2, 0x07, 0x19, 0xe4, 0x6a, 0x67, 0x1c, 0xfe, 0x6c, 0xbd, 0xd6, 0xc0, 0x7c, 0x9b, 0xe2,
   668  	0xdf, 0x22, 0x0f, 0x0e, 0xd7, 0x15, 0x3a, 0x6b, 0x80, 0xb9, 0xd4, 0x49, 0x07, 0x7a, 0x5e, 0x8c,
   669  	0x28, 0x95, 0x0e, 0x67, 0xd3, 0xfc, 0x9e, 0x48, 0xeb, 0x75, 0x30, 0x8d, 0x21, 0xed, 0xf4, 0xfc,
   670  	0xc0, 0x67, 0xdc, 0x6e, 0xd9, 0x99, 0xc2, 0x90, 0x1e, 0x26, 0x71, 0x5a, 0x8c, 0x62, 0xdf, 0x45,
   671  	0xdc, 0xb7, 0x28, 0x1e, 0x25, 0xb1, 0xde, 0x00, 0x9f, 0x41, 0x2f, 0xf0, 0x43, 0xc5, 0x50, 0x49,
   672  	0x18, 0xf6, 0xcb, 0x17, 0x2f, 0x57, 0x34, 0x67, 0x86, 0x97, 0x24, 0x49, 0x6b, 0x2d, 0xd3, 0xa5,
   673  	0x25, 0xd5, 0xa5, 0xdb, 0x86, 0xac, 0x3a, 0xa8, 0x8d, 0x24, 0xd3, 0xbe, 0x58, 0xf7, 0x34, 0xf0,
   674  	0x79, 0x9b, 0xe2, 0xbd, 0x64, 0x3a, 0x3e, 0x6c, 0x17, 0x5a, 0x8d, 0x8c, 0xc0, 0x9a, 0x12, 0x98,
   675  	0x65, 0xb3, 0x96, 0x41, 0x3d, 0x27, 0xad, 0x44, 0xde, 0xd7, 0xc0, 0x62, 0x9b, 0xe2, 0x1f, 0x11,
   676  	0xfc, 0x08, 0x32, 0x37, 0x33, 0x32, 0xeb, 0x4a, 0xe6, 0x28, 0x9f, 0xb5, 0x02, 0x96, 0x73, 0x0b,
   677  	0x4a, 0xea, 0x63, 0x0d, 0xcc, 0xaa, 0x6e, 0x1f, 0xc1, 0x18, 0x06, 0x54, 0xdf, 0x05, 0xd3, 0xb0,
   678  	0xcf, 0x4e, 0x48, 0xec, 0xb3, 0x81, 0xd0, 0xb9, 0x5f, 0x7d, 0xf6, 0x64, 0x6b, 0x41, 0x5e, 0x6e,
   679  	0x29, 0xe4, 0x57, 0x16, 0xfb, 0x21, 0x76, 0x86, 0x50, 0xfd, 0x07, 0x30, 0x19, 0xf1, 0x1d, 0xb8,
   680  	0xf4, 0x4f, 0x77, 0x8c, 0xe6, 0xe8, 0x0b, 0xa6, 0x29, 0x38, 0xf8, 0x84, 0x94, 0x1c, 0x89, 0x6f,
   681  	0xad, 0x27, 0x9e, 0x86, 0x3b, 0x25, 0xb6, 0x16, 0x33, 0xe3, 0x21, 0xd6, 0x59, 0x35, 0xb0, 0x94,
   682  	0x49, 0x29, 0x2b, 0xcf, 0xc5, 0x68, 0x38, 0x08, 0xfb, 0x94, 0xa1, 0xf8, 0x9d, 0x3d, 0x1f, 0x80,
   683  	0x65, 0xd5, 0xf3, 0x98, 0x2f, 0x8a, 0x21, 0xf3, 0x49, 0xd8, 0x89, 0xd1, 0x5f, 0x7d, 0x44, 0x99,
   684  	0x74, 0x61, 0xe7, 0xb9, 0x18, 0xf6, 0x71, 0xb8, 0xce, 0x11, 0xcb, 0xa4, 0xb5, 0xba, 0x5b, 0x0c,
   685  	0xb9, 0x63, 0xd4, 0xb2, 0xea, 0xe5, 0xa8, 0x65, 0xd3, 0xa9, 0xe9, 0x9d, 0xa7, 0x15, 0x30, 0xd1,
   686  	0xa6, 0x58, 0x67, 0xe0, 0x4b, 0xd1, 0x14, 0x49, 0x37, 0x48, 0x91, 0xf2, 0x4c, 0xbf, 0xc9, 0x73,
   687  	0x31, 0x72, 0xcd, 0x8c, 0xad, 0xb1, 0x60, 0xea, 0x2d, 0xc5, 0x40, 0x35, 0xbd, 0x04, 0x59, 0x5e,
   688  	0x7d, 0xad, 0x60, 0xab, 0xec, 0xad, 0x31, 0xec, 0x31, 0x81, 0x8a, 0xf5, 0x1f, 0x60, 0x0c, 0x27,
   689  	0x7a, 0x84, 0xb7, 0x51, 0xb0, 0xdd, 0xe8, 0x25, 0x30, 0xb6, 0xc7, 0x86, 0x2a, 0xee, 0x7f, 0xc1,
   690  	0x62, 0xfe, 0x1f, 0xcc, 0xb7, 0x05, 0x7b, 0xe5, 0xa2, 0x8d, 0xef, 0xdf, 0x07, 0xad, 0xc8, 0xff,
   691  	0x00, 0x33, 0xb7, 0x2e, 0xea, 0xd7, 0x77, 0x9e, 0x96, 0x00, 0x19, 0x9b, 0x63, 0x80, 0x14, 0x43,
   692  	0x0f, 0xcc, 0x8d, 0xdc, 0x9f, 0xa2, 0x83, 0xcc, 0x02, 0x0b, 0x0f, 0xb2, 0x68, 0x78, 0x8d, 0xca,
   693  	0x7f, 0x37, 0xe7, 0x1b, 0xda, 0x3e, 0xba, 0xb8, 0x32, 0xb5, 0xcb, 0x2b, 0x53, 0x7b, 0x75, 0x65,
   694  	0x6a, 0x0f, 0xaf, 0xcd, 0xd2, 0xe5, 0xb5, 0x59, 0x7a, 0x71, 0x6d, 0x96, 0x7e, 0xff, 0x05, 0xfb,
   695  	0xec, 0xa4, 0xdf, 0x6d, 0xba, 0x24, 0xb0, 0x7f, 0x4e, 0xf7, 0x3e, 0x84, 0x5d, 0x6a, 0x2b, 0xa6,
   696  	0x2d, 0x97, 0xc4, 0xe8, 0xed, 0xf0, 0x04, 0xfa, 0xa1, 0x1d, 0x10, 0xaf, 0xdf, 0x43, 0x54, 0x7e,
   697  	0x3e, 0xb0, 0x41, 0x84, 0x68, 0x77, 0x92, 0x7f, 0x26, 0x7c, 0xf7, 0x26, 0x00, 0x00, 0xff, 0xff,
   698  	0x2d, 0xeb, 0x38, 0x54, 0x14, 0x09, 0x00, 0x00,
   699  }
   700  
   701  // Reference imports to suppress errors if they are not otherwise used.
   702  var _ context.Context
   703  var _ grpc.ClientConn
   704  
   705  // This is a compile-time assertion to ensure that this generated file
   706  // is compatible with the grpc package it is being compiled against.
   707  const _ = grpc.SupportPackageIsVersion4
   708  
   709  // MsgClient is the client API for Msg service.
   710  //
   711  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   712  type MsgClient interface {
   713  	UpdateRegistryContractParams(ctx context.Context, in *MsgUpdateContract, opts ...grpc.CallOption) (*MsgUpdateContractResponse, error)
   714  	ActivateRegistryContract(ctx context.Context, in *MsgActivateContract, opts ...grpc.CallOption) (*MsgActivateContractResponse, error)
   715  	DeactivateRegistryContract(ctx context.Context, in *MsgDeactivateContract, opts ...grpc.CallOption) (*MsgDeactivateContractResponse, error)
   716  	ExecuteContractCompat(ctx context.Context, in *MsgExecuteContractCompat, opts ...grpc.CallOption) (*MsgExecuteContractCompatResponse, error)
   717  	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
   718  	RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error)
   719  }
   720  
   721  type msgClient struct {
   722  	cc grpc1.ClientConn
   723  }
   724  
   725  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   726  	return &msgClient{cc}
   727  }
   728  
   729  func (c *msgClient) UpdateRegistryContractParams(ctx context.Context, in *MsgUpdateContract, opts ...grpc.CallOption) (*MsgUpdateContractResponse, error) {
   730  	out := new(MsgUpdateContractResponse)
   731  	err := c.cc.Invoke(ctx, "/injective.wasmx.v1.Msg/UpdateRegistryContractParams", in, out, opts...)
   732  	if err != nil {
   733  		return nil, err
   734  	}
   735  	return out, nil
   736  }
   737  
   738  func (c *msgClient) ActivateRegistryContract(ctx context.Context, in *MsgActivateContract, opts ...grpc.CallOption) (*MsgActivateContractResponse, error) {
   739  	out := new(MsgActivateContractResponse)
   740  	err := c.cc.Invoke(ctx, "/injective.wasmx.v1.Msg/ActivateRegistryContract", in, out, opts...)
   741  	if err != nil {
   742  		return nil, err
   743  	}
   744  	return out, nil
   745  }
   746  
   747  func (c *msgClient) DeactivateRegistryContract(ctx context.Context, in *MsgDeactivateContract, opts ...grpc.CallOption) (*MsgDeactivateContractResponse, error) {
   748  	out := new(MsgDeactivateContractResponse)
   749  	err := c.cc.Invoke(ctx, "/injective.wasmx.v1.Msg/DeactivateRegistryContract", in, out, opts...)
   750  	if err != nil {
   751  		return nil, err
   752  	}
   753  	return out, nil
   754  }
   755  
   756  func (c *msgClient) ExecuteContractCompat(ctx context.Context, in *MsgExecuteContractCompat, opts ...grpc.CallOption) (*MsgExecuteContractCompatResponse, error) {
   757  	out := new(MsgExecuteContractCompatResponse)
   758  	err := c.cc.Invoke(ctx, "/injective.wasmx.v1.Msg/ExecuteContractCompat", in, out, opts...)
   759  	if err != nil {
   760  		return nil, err
   761  	}
   762  	return out, nil
   763  }
   764  
   765  func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
   766  	out := new(MsgUpdateParamsResponse)
   767  	err := c.cc.Invoke(ctx, "/injective.wasmx.v1.Msg/UpdateParams", in, out, opts...)
   768  	if err != nil {
   769  		return nil, err
   770  	}
   771  	return out, nil
   772  }
   773  
   774  func (c *msgClient) RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) {
   775  	out := new(MsgRegisterContractResponse)
   776  	err := c.cc.Invoke(ctx, "/injective.wasmx.v1.Msg/RegisterContract", in, out, opts...)
   777  	if err != nil {
   778  		return nil, err
   779  	}
   780  	return out, nil
   781  }
   782  
   783  // MsgServer is the server API for Msg service.
   784  type MsgServer interface {
   785  	UpdateRegistryContractParams(context.Context, *MsgUpdateContract) (*MsgUpdateContractResponse, error)
   786  	ActivateRegistryContract(context.Context, *MsgActivateContract) (*MsgActivateContractResponse, error)
   787  	DeactivateRegistryContract(context.Context, *MsgDeactivateContract) (*MsgDeactivateContractResponse, error)
   788  	ExecuteContractCompat(context.Context, *MsgExecuteContractCompat) (*MsgExecuteContractCompatResponse, error)
   789  	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
   790  	RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error)
   791  }
   792  
   793  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   794  type UnimplementedMsgServer struct {
   795  }
   796  
   797  func (*UnimplementedMsgServer) UpdateRegistryContractParams(ctx context.Context, req *MsgUpdateContract) (*MsgUpdateContractResponse, error) {
   798  	return nil, status.Errorf(codes.Unimplemented, "method UpdateRegistryContractParams not implemented")
   799  }
   800  func (*UnimplementedMsgServer) ActivateRegistryContract(ctx context.Context, req *MsgActivateContract) (*MsgActivateContractResponse, error) {
   801  	return nil, status.Errorf(codes.Unimplemented, "method ActivateRegistryContract not implemented")
   802  }
   803  func (*UnimplementedMsgServer) DeactivateRegistryContract(ctx context.Context, req *MsgDeactivateContract) (*MsgDeactivateContractResponse, error) {
   804  	return nil, status.Errorf(codes.Unimplemented, "method DeactivateRegistryContract not implemented")
   805  }
   806  func (*UnimplementedMsgServer) ExecuteContractCompat(ctx context.Context, req *MsgExecuteContractCompat) (*MsgExecuteContractCompatResponse, error) {
   807  	return nil, status.Errorf(codes.Unimplemented, "method ExecuteContractCompat not implemented")
   808  }
   809  func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
   810  	return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
   811  }
   812  func (*UnimplementedMsgServer) RegisterContract(ctx context.Context, req *MsgRegisterContract) (*MsgRegisterContractResponse, error) {
   813  	return nil, status.Errorf(codes.Unimplemented, "method RegisterContract not implemented")
   814  }
   815  
   816  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   817  	s.RegisterService(&_Msg_serviceDesc, srv)
   818  }
   819  
   820  func _Msg_UpdateRegistryContractParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   821  	in := new(MsgUpdateContract)
   822  	if err := dec(in); err != nil {
   823  		return nil, err
   824  	}
   825  	if interceptor == nil {
   826  		return srv.(MsgServer).UpdateRegistryContractParams(ctx, in)
   827  	}
   828  	info := &grpc.UnaryServerInfo{
   829  		Server:     srv,
   830  		FullMethod: "/injective.wasmx.v1.Msg/UpdateRegistryContractParams",
   831  	}
   832  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   833  		return srv.(MsgServer).UpdateRegistryContractParams(ctx, req.(*MsgUpdateContract))
   834  	}
   835  	return interceptor(ctx, in, info, handler)
   836  }
   837  
   838  func _Msg_ActivateRegistryContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   839  	in := new(MsgActivateContract)
   840  	if err := dec(in); err != nil {
   841  		return nil, err
   842  	}
   843  	if interceptor == nil {
   844  		return srv.(MsgServer).ActivateRegistryContract(ctx, in)
   845  	}
   846  	info := &grpc.UnaryServerInfo{
   847  		Server:     srv,
   848  		FullMethod: "/injective.wasmx.v1.Msg/ActivateRegistryContract",
   849  	}
   850  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   851  		return srv.(MsgServer).ActivateRegistryContract(ctx, req.(*MsgActivateContract))
   852  	}
   853  	return interceptor(ctx, in, info, handler)
   854  }
   855  
   856  func _Msg_DeactivateRegistryContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   857  	in := new(MsgDeactivateContract)
   858  	if err := dec(in); err != nil {
   859  		return nil, err
   860  	}
   861  	if interceptor == nil {
   862  		return srv.(MsgServer).DeactivateRegistryContract(ctx, in)
   863  	}
   864  	info := &grpc.UnaryServerInfo{
   865  		Server:     srv,
   866  		FullMethod: "/injective.wasmx.v1.Msg/DeactivateRegistryContract",
   867  	}
   868  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   869  		return srv.(MsgServer).DeactivateRegistryContract(ctx, req.(*MsgDeactivateContract))
   870  	}
   871  	return interceptor(ctx, in, info, handler)
   872  }
   873  
   874  func _Msg_ExecuteContractCompat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   875  	in := new(MsgExecuteContractCompat)
   876  	if err := dec(in); err != nil {
   877  		return nil, err
   878  	}
   879  	if interceptor == nil {
   880  		return srv.(MsgServer).ExecuteContractCompat(ctx, in)
   881  	}
   882  	info := &grpc.UnaryServerInfo{
   883  		Server:     srv,
   884  		FullMethod: "/injective.wasmx.v1.Msg/ExecuteContractCompat",
   885  	}
   886  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   887  		return srv.(MsgServer).ExecuteContractCompat(ctx, req.(*MsgExecuteContractCompat))
   888  	}
   889  	return interceptor(ctx, in, info, handler)
   890  }
   891  
   892  func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   893  	in := new(MsgUpdateParams)
   894  	if err := dec(in); err != nil {
   895  		return nil, err
   896  	}
   897  	if interceptor == nil {
   898  		return srv.(MsgServer).UpdateParams(ctx, in)
   899  	}
   900  	info := &grpc.UnaryServerInfo{
   901  		Server:     srv,
   902  		FullMethod: "/injective.wasmx.v1.Msg/UpdateParams",
   903  	}
   904  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   905  		return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
   906  	}
   907  	return interceptor(ctx, in, info, handler)
   908  }
   909  
   910  func _Msg_RegisterContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   911  	in := new(MsgRegisterContract)
   912  	if err := dec(in); err != nil {
   913  		return nil, err
   914  	}
   915  	if interceptor == nil {
   916  		return srv.(MsgServer).RegisterContract(ctx, in)
   917  	}
   918  	info := &grpc.UnaryServerInfo{
   919  		Server:     srv,
   920  		FullMethod: "/injective.wasmx.v1.Msg/RegisterContract",
   921  	}
   922  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   923  		return srv.(MsgServer).RegisterContract(ctx, req.(*MsgRegisterContract))
   924  	}
   925  	return interceptor(ctx, in, info, handler)
   926  }
   927  
   928  var _Msg_serviceDesc = grpc.ServiceDesc{
   929  	ServiceName: "injective.wasmx.v1.Msg",
   930  	HandlerType: (*MsgServer)(nil),
   931  	Methods: []grpc.MethodDesc{
   932  		{
   933  			MethodName: "UpdateRegistryContractParams",
   934  			Handler:    _Msg_UpdateRegistryContractParams_Handler,
   935  		},
   936  		{
   937  			MethodName: "ActivateRegistryContract",
   938  			Handler:    _Msg_ActivateRegistryContract_Handler,
   939  		},
   940  		{
   941  			MethodName: "DeactivateRegistryContract",
   942  			Handler:    _Msg_DeactivateRegistryContract_Handler,
   943  		},
   944  		{
   945  			MethodName: "ExecuteContractCompat",
   946  			Handler:    _Msg_ExecuteContractCompat_Handler,
   947  		},
   948  		{
   949  			MethodName: "UpdateParams",
   950  			Handler:    _Msg_UpdateParams_Handler,
   951  		},
   952  		{
   953  			MethodName: "RegisterContract",
   954  			Handler:    _Msg_RegisterContract_Handler,
   955  		},
   956  	},
   957  	Streams:  []grpc.StreamDesc{},
   958  	Metadata: "injective/wasmx/v1/tx.proto",
   959  }
   960  
   961  func (m *MsgExecuteContractCompat) Marshal() (dAtA []byte, err error) {
   962  	size := m.Size()
   963  	dAtA = make([]byte, size)
   964  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   965  	if err != nil {
   966  		return nil, err
   967  	}
   968  	return dAtA[:n], nil
   969  }
   970  
   971  func (m *MsgExecuteContractCompat) MarshalTo(dAtA []byte) (int, error) {
   972  	size := m.Size()
   973  	return m.MarshalToSizedBuffer(dAtA[:size])
   974  }
   975  
   976  func (m *MsgExecuteContractCompat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   977  	i := len(dAtA)
   978  	_ = i
   979  	var l int
   980  	_ = l
   981  	if len(m.Funds) > 0 {
   982  		i -= len(m.Funds)
   983  		copy(dAtA[i:], m.Funds)
   984  		i = encodeVarintTx(dAtA, i, uint64(len(m.Funds)))
   985  		i--
   986  		dAtA[i] = 0x22
   987  	}
   988  	if len(m.Msg) > 0 {
   989  		i -= len(m.Msg)
   990  		copy(dAtA[i:], m.Msg)
   991  		i = encodeVarintTx(dAtA, i, uint64(len(m.Msg)))
   992  		i--
   993  		dAtA[i] = 0x1a
   994  	}
   995  	if len(m.Contract) > 0 {
   996  		i -= len(m.Contract)
   997  		copy(dAtA[i:], m.Contract)
   998  		i = encodeVarintTx(dAtA, i, uint64(len(m.Contract)))
   999  		i--
  1000  		dAtA[i] = 0x12
  1001  	}
  1002  	if len(m.Sender) > 0 {
  1003  		i -= len(m.Sender)
  1004  		copy(dAtA[i:], m.Sender)
  1005  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
  1006  		i--
  1007  		dAtA[i] = 0xa
  1008  	}
  1009  	return len(dAtA) - i, nil
  1010  }
  1011  
  1012  func (m *MsgExecuteContractCompatResponse) Marshal() (dAtA []byte, err error) {
  1013  	size := m.Size()
  1014  	dAtA = make([]byte, size)
  1015  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1016  	if err != nil {
  1017  		return nil, err
  1018  	}
  1019  	return dAtA[:n], nil
  1020  }
  1021  
  1022  func (m *MsgExecuteContractCompatResponse) MarshalTo(dAtA []byte) (int, error) {
  1023  	size := m.Size()
  1024  	return m.MarshalToSizedBuffer(dAtA[:size])
  1025  }
  1026  
  1027  func (m *MsgExecuteContractCompatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1028  	i := len(dAtA)
  1029  	_ = i
  1030  	var l int
  1031  	_ = l
  1032  	if len(m.Data) > 0 {
  1033  		i -= len(m.Data)
  1034  		copy(dAtA[i:], m.Data)
  1035  		i = encodeVarintTx(dAtA, i, uint64(len(m.Data)))
  1036  		i--
  1037  		dAtA[i] = 0xa
  1038  	}
  1039  	return len(dAtA) - i, nil
  1040  }
  1041  
  1042  func (m *MsgUpdateContract) Marshal() (dAtA []byte, err error) {
  1043  	size := m.Size()
  1044  	dAtA = make([]byte, size)
  1045  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1046  	if err != nil {
  1047  		return nil, err
  1048  	}
  1049  	return dAtA[:n], nil
  1050  }
  1051  
  1052  func (m *MsgUpdateContract) MarshalTo(dAtA []byte) (int, error) {
  1053  	size := m.Size()
  1054  	return m.MarshalToSizedBuffer(dAtA[:size])
  1055  }
  1056  
  1057  func (m *MsgUpdateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1058  	i := len(dAtA)
  1059  	_ = i
  1060  	var l int
  1061  	_ = l
  1062  	if len(m.AdminAddress) > 0 {
  1063  		i -= len(m.AdminAddress)
  1064  		copy(dAtA[i:], m.AdminAddress)
  1065  		i = encodeVarintTx(dAtA, i, uint64(len(m.AdminAddress)))
  1066  		i--
  1067  		dAtA[i] = 0x2a
  1068  	}
  1069  	if m.GasPrice != 0 {
  1070  		i = encodeVarintTx(dAtA, i, uint64(m.GasPrice))
  1071  		i--
  1072  		dAtA[i] = 0x20
  1073  	}
  1074  	if m.GasLimit != 0 {
  1075  		i = encodeVarintTx(dAtA, i, uint64(m.GasLimit))
  1076  		i--
  1077  		dAtA[i] = 0x18
  1078  	}
  1079  	if len(m.ContractAddress) > 0 {
  1080  		i -= len(m.ContractAddress)
  1081  		copy(dAtA[i:], m.ContractAddress)
  1082  		i = encodeVarintTx(dAtA, i, uint64(len(m.ContractAddress)))
  1083  		i--
  1084  		dAtA[i] = 0x12
  1085  	}
  1086  	if len(m.Sender) > 0 {
  1087  		i -= len(m.Sender)
  1088  		copy(dAtA[i:], m.Sender)
  1089  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
  1090  		i--
  1091  		dAtA[i] = 0xa
  1092  	}
  1093  	return len(dAtA) - i, nil
  1094  }
  1095  
  1096  func (m *MsgUpdateContractResponse) Marshal() (dAtA []byte, err error) {
  1097  	size := m.Size()
  1098  	dAtA = make([]byte, size)
  1099  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1100  	if err != nil {
  1101  		return nil, err
  1102  	}
  1103  	return dAtA[:n], nil
  1104  }
  1105  
  1106  func (m *MsgUpdateContractResponse) MarshalTo(dAtA []byte) (int, error) {
  1107  	size := m.Size()
  1108  	return m.MarshalToSizedBuffer(dAtA[:size])
  1109  }
  1110  
  1111  func (m *MsgUpdateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1112  	i := len(dAtA)
  1113  	_ = i
  1114  	var l int
  1115  	_ = l
  1116  	return len(dAtA) - i, nil
  1117  }
  1118  
  1119  func (m *MsgActivateContract) Marshal() (dAtA []byte, err error) {
  1120  	size := m.Size()
  1121  	dAtA = make([]byte, size)
  1122  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1123  	if err != nil {
  1124  		return nil, err
  1125  	}
  1126  	return dAtA[:n], nil
  1127  }
  1128  
  1129  func (m *MsgActivateContract) MarshalTo(dAtA []byte) (int, error) {
  1130  	size := m.Size()
  1131  	return m.MarshalToSizedBuffer(dAtA[:size])
  1132  }
  1133  
  1134  func (m *MsgActivateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1135  	i := len(dAtA)
  1136  	_ = i
  1137  	var l int
  1138  	_ = l
  1139  	if len(m.ContractAddress) > 0 {
  1140  		i -= len(m.ContractAddress)
  1141  		copy(dAtA[i:], m.ContractAddress)
  1142  		i = encodeVarintTx(dAtA, i, uint64(len(m.ContractAddress)))
  1143  		i--
  1144  		dAtA[i] = 0x12
  1145  	}
  1146  	if len(m.Sender) > 0 {
  1147  		i -= len(m.Sender)
  1148  		copy(dAtA[i:], m.Sender)
  1149  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
  1150  		i--
  1151  		dAtA[i] = 0xa
  1152  	}
  1153  	return len(dAtA) - i, nil
  1154  }
  1155  
  1156  func (m *MsgActivateContractResponse) Marshal() (dAtA []byte, err error) {
  1157  	size := m.Size()
  1158  	dAtA = make([]byte, size)
  1159  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1160  	if err != nil {
  1161  		return nil, err
  1162  	}
  1163  	return dAtA[:n], nil
  1164  }
  1165  
  1166  func (m *MsgActivateContractResponse) MarshalTo(dAtA []byte) (int, error) {
  1167  	size := m.Size()
  1168  	return m.MarshalToSizedBuffer(dAtA[:size])
  1169  }
  1170  
  1171  func (m *MsgActivateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1172  	i := len(dAtA)
  1173  	_ = i
  1174  	var l int
  1175  	_ = l
  1176  	return len(dAtA) - i, nil
  1177  }
  1178  
  1179  func (m *MsgDeactivateContract) Marshal() (dAtA []byte, err error) {
  1180  	size := m.Size()
  1181  	dAtA = make([]byte, size)
  1182  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1183  	if err != nil {
  1184  		return nil, err
  1185  	}
  1186  	return dAtA[:n], nil
  1187  }
  1188  
  1189  func (m *MsgDeactivateContract) MarshalTo(dAtA []byte) (int, error) {
  1190  	size := m.Size()
  1191  	return m.MarshalToSizedBuffer(dAtA[:size])
  1192  }
  1193  
  1194  func (m *MsgDeactivateContract) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1195  	i := len(dAtA)
  1196  	_ = i
  1197  	var l int
  1198  	_ = l
  1199  	if len(m.ContractAddress) > 0 {
  1200  		i -= len(m.ContractAddress)
  1201  		copy(dAtA[i:], m.ContractAddress)
  1202  		i = encodeVarintTx(dAtA, i, uint64(len(m.ContractAddress)))
  1203  		i--
  1204  		dAtA[i] = 0x12
  1205  	}
  1206  	if len(m.Sender) > 0 {
  1207  		i -= len(m.Sender)
  1208  		copy(dAtA[i:], m.Sender)
  1209  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
  1210  		i--
  1211  		dAtA[i] = 0xa
  1212  	}
  1213  	return len(dAtA) - i, nil
  1214  }
  1215  
  1216  func (m *MsgDeactivateContractResponse) Marshal() (dAtA []byte, err error) {
  1217  	size := m.Size()
  1218  	dAtA = make([]byte, size)
  1219  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1220  	if err != nil {
  1221  		return nil, err
  1222  	}
  1223  	return dAtA[:n], nil
  1224  }
  1225  
  1226  func (m *MsgDeactivateContractResponse) MarshalTo(dAtA []byte) (int, error) {
  1227  	size := m.Size()
  1228  	return m.MarshalToSizedBuffer(dAtA[:size])
  1229  }
  1230  
  1231  func (m *MsgDeactivateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1232  	i := len(dAtA)
  1233  	_ = i
  1234  	var l int
  1235  	_ = l
  1236  	return len(dAtA) - i, nil
  1237  }
  1238  
  1239  func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
  1240  	size := m.Size()
  1241  	dAtA = make([]byte, size)
  1242  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1243  	if err != nil {
  1244  		return nil, err
  1245  	}
  1246  	return dAtA[:n], nil
  1247  }
  1248  
  1249  func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
  1250  	size := m.Size()
  1251  	return m.MarshalToSizedBuffer(dAtA[:size])
  1252  }
  1253  
  1254  func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1255  	i := len(dAtA)
  1256  	_ = i
  1257  	var l int
  1258  	_ = l
  1259  	{
  1260  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1261  		if err != nil {
  1262  			return 0, err
  1263  		}
  1264  		i -= size
  1265  		i = encodeVarintTx(dAtA, i, uint64(size))
  1266  	}
  1267  	i--
  1268  	dAtA[i] = 0x12
  1269  	if len(m.Authority) > 0 {
  1270  		i -= len(m.Authority)
  1271  		copy(dAtA[i:], m.Authority)
  1272  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
  1273  		i--
  1274  		dAtA[i] = 0xa
  1275  	}
  1276  	return len(dAtA) - i, nil
  1277  }
  1278  
  1279  func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
  1280  	size := m.Size()
  1281  	dAtA = make([]byte, size)
  1282  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1283  	if err != nil {
  1284  		return nil, err
  1285  	}
  1286  	return dAtA[:n], nil
  1287  }
  1288  
  1289  func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1290  	size := m.Size()
  1291  	return m.MarshalToSizedBuffer(dAtA[:size])
  1292  }
  1293  
  1294  func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1295  	i := len(dAtA)
  1296  	_ = i
  1297  	var l int
  1298  	_ = l
  1299  	return len(dAtA) - i, nil
  1300  }
  1301  
  1302  func (m *MsgRegisterContract) Marshal() (dAtA []byte, err error) {
  1303  	size := m.Size()
  1304  	dAtA = make([]byte, size)
  1305  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1306  	if err != nil {
  1307  		return nil, err
  1308  	}
  1309  	return dAtA[:n], nil
  1310  }
  1311  
  1312  func (m *MsgRegisterContract) MarshalTo(dAtA []byte) (int, error) {
  1313  	size := m.Size()
  1314  	return m.MarshalToSizedBuffer(dAtA[:size])
  1315  }
  1316  
  1317  func (m *MsgRegisterContract) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1318  	i := len(dAtA)
  1319  	_ = i
  1320  	var l int
  1321  	_ = l
  1322  	{
  1323  		size, err := m.ContractRegistrationRequest.MarshalToSizedBuffer(dAtA[:i])
  1324  		if err != nil {
  1325  			return 0, err
  1326  		}
  1327  		i -= size
  1328  		i = encodeVarintTx(dAtA, i, uint64(size))
  1329  	}
  1330  	i--
  1331  	dAtA[i] = 0x12
  1332  	if len(m.Sender) > 0 {
  1333  		i -= len(m.Sender)
  1334  		copy(dAtA[i:], m.Sender)
  1335  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
  1336  		i--
  1337  		dAtA[i] = 0xa
  1338  	}
  1339  	return len(dAtA) - i, nil
  1340  }
  1341  
  1342  func (m *MsgRegisterContractResponse) Marshal() (dAtA []byte, err error) {
  1343  	size := m.Size()
  1344  	dAtA = make([]byte, size)
  1345  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1346  	if err != nil {
  1347  		return nil, err
  1348  	}
  1349  	return dAtA[:n], nil
  1350  }
  1351  
  1352  func (m *MsgRegisterContractResponse) MarshalTo(dAtA []byte) (int, error) {
  1353  	size := m.Size()
  1354  	return m.MarshalToSizedBuffer(dAtA[:size])
  1355  }
  1356  
  1357  func (m *MsgRegisterContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1358  	i := len(dAtA)
  1359  	_ = i
  1360  	var l int
  1361  	_ = l
  1362  	return len(dAtA) - i, nil
  1363  }
  1364  
  1365  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
  1366  	offset -= sovTx(v)
  1367  	base := offset
  1368  	for v >= 1<<7 {
  1369  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1370  		v >>= 7
  1371  		offset++
  1372  	}
  1373  	dAtA[offset] = uint8(v)
  1374  	return base
  1375  }
  1376  func (m *MsgExecuteContractCompat) Size() (n int) {
  1377  	if m == nil {
  1378  		return 0
  1379  	}
  1380  	var l int
  1381  	_ = l
  1382  	l = len(m.Sender)
  1383  	if l > 0 {
  1384  		n += 1 + l + sovTx(uint64(l))
  1385  	}
  1386  	l = len(m.Contract)
  1387  	if l > 0 {
  1388  		n += 1 + l + sovTx(uint64(l))
  1389  	}
  1390  	l = len(m.Msg)
  1391  	if l > 0 {
  1392  		n += 1 + l + sovTx(uint64(l))
  1393  	}
  1394  	l = len(m.Funds)
  1395  	if l > 0 {
  1396  		n += 1 + l + sovTx(uint64(l))
  1397  	}
  1398  	return n
  1399  }
  1400  
  1401  func (m *MsgExecuteContractCompatResponse) Size() (n int) {
  1402  	if m == nil {
  1403  		return 0
  1404  	}
  1405  	var l int
  1406  	_ = l
  1407  	l = len(m.Data)
  1408  	if l > 0 {
  1409  		n += 1 + l + sovTx(uint64(l))
  1410  	}
  1411  	return n
  1412  }
  1413  
  1414  func (m *MsgUpdateContract) Size() (n int) {
  1415  	if m == nil {
  1416  		return 0
  1417  	}
  1418  	var l int
  1419  	_ = l
  1420  	l = len(m.Sender)
  1421  	if l > 0 {
  1422  		n += 1 + l + sovTx(uint64(l))
  1423  	}
  1424  	l = len(m.ContractAddress)
  1425  	if l > 0 {
  1426  		n += 1 + l + sovTx(uint64(l))
  1427  	}
  1428  	if m.GasLimit != 0 {
  1429  		n += 1 + sovTx(uint64(m.GasLimit))
  1430  	}
  1431  	if m.GasPrice != 0 {
  1432  		n += 1 + sovTx(uint64(m.GasPrice))
  1433  	}
  1434  	l = len(m.AdminAddress)
  1435  	if l > 0 {
  1436  		n += 1 + l + sovTx(uint64(l))
  1437  	}
  1438  	return n
  1439  }
  1440  
  1441  func (m *MsgUpdateContractResponse) Size() (n int) {
  1442  	if m == nil {
  1443  		return 0
  1444  	}
  1445  	var l int
  1446  	_ = l
  1447  	return n
  1448  }
  1449  
  1450  func (m *MsgActivateContract) Size() (n int) {
  1451  	if m == nil {
  1452  		return 0
  1453  	}
  1454  	var l int
  1455  	_ = l
  1456  	l = len(m.Sender)
  1457  	if l > 0 {
  1458  		n += 1 + l + sovTx(uint64(l))
  1459  	}
  1460  	l = len(m.ContractAddress)
  1461  	if l > 0 {
  1462  		n += 1 + l + sovTx(uint64(l))
  1463  	}
  1464  	return n
  1465  }
  1466  
  1467  func (m *MsgActivateContractResponse) Size() (n int) {
  1468  	if m == nil {
  1469  		return 0
  1470  	}
  1471  	var l int
  1472  	_ = l
  1473  	return n
  1474  }
  1475  
  1476  func (m *MsgDeactivateContract) Size() (n int) {
  1477  	if m == nil {
  1478  		return 0
  1479  	}
  1480  	var l int
  1481  	_ = l
  1482  	l = len(m.Sender)
  1483  	if l > 0 {
  1484  		n += 1 + l + sovTx(uint64(l))
  1485  	}
  1486  	l = len(m.ContractAddress)
  1487  	if l > 0 {
  1488  		n += 1 + l + sovTx(uint64(l))
  1489  	}
  1490  	return n
  1491  }
  1492  
  1493  func (m *MsgDeactivateContractResponse) Size() (n int) {
  1494  	if m == nil {
  1495  		return 0
  1496  	}
  1497  	var l int
  1498  	_ = l
  1499  	return n
  1500  }
  1501  
  1502  func (m *MsgUpdateParams) Size() (n int) {
  1503  	if m == nil {
  1504  		return 0
  1505  	}
  1506  	var l int
  1507  	_ = l
  1508  	l = len(m.Authority)
  1509  	if l > 0 {
  1510  		n += 1 + l + sovTx(uint64(l))
  1511  	}
  1512  	l = m.Params.Size()
  1513  	n += 1 + l + sovTx(uint64(l))
  1514  	return n
  1515  }
  1516  
  1517  func (m *MsgUpdateParamsResponse) Size() (n int) {
  1518  	if m == nil {
  1519  		return 0
  1520  	}
  1521  	var l int
  1522  	_ = l
  1523  	return n
  1524  }
  1525  
  1526  func (m *MsgRegisterContract) Size() (n int) {
  1527  	if m == nil {
  1528  		return 0
  1529  	}
  1530  	var l int
  1531  	_ = l
  1532  	l = len(m.Sender)
  1533  	if l > 0 {
  1534  		n += 1 + l + sovTx(uint64(l))
  1535  	}
  1536  	l = m.ContractRegistrationRequest.Size()
  1537  	n += 1 + l + sovTx(uint64(l))
  1538  	return n
  1539  }
  1540  
  1541  func (m *MsgRegisterContractResponse) Size() (n int) {
  1542  	if m == nil {
  1543  		return 0
  1544  	}
  1545  	var l int
  1546  	_ = l
  1547  	return n
  1548  }
  1549  
  1550  func sovTx(x uint64) (n int) {
  1551  	return (math_bits.Len64(x|1) + 6) / 7
  1552  }
  1553  func sozTx(x uint64) (n int) {
  1554  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1555  }
  1556  func (m *MsgExecuteContractCompat) Unmarshal(dAtA []byte) error {
  1557  	l := len(dAtA)
  1558  	iNdEx := 0
  1559  	for iNdEx < l {
  1560  		preIndex := iNdEx
  1561  		var wire uint64
  1562  		for shift := uint(0); ; shift += 7 {
  1563  			if shift >= 64 {
  1564  				return ErrIntOverflowTx
  1565  			}
  1566  			if iNdEx >= l {
  1567  				return io.ErrUnexpectedEOF
  1568  			}
  1569  			b := dAtA[iNdEx]
  1570  			iNdEx++
  1571  			wire |= uint64(b&0x7F) << shift
  1572  			if b < 0x80 {
  1573  				break
  1574  			}
  1575  		}
  1576  		fieldNum := int32(wire >> 3)
  1577  		wireType := int(wire & 0x7)
  1578  		if wireType == 4 {
  1579  			return fmt.Errorf("proto: MsgExecuteContractCompat: wiretype end group for non-group")
  1580  		}
  1581  		if fieldNum <= 0 {
  1582  			return fmt.Errorf("proto: MsgExecuteContractCompat: illegal tag %d (wire type %d)", fieldNum, wire)
  1583  		}
  1584  		switch fieldNum {
  1585  		case 1:
  1586  			if wireType != 2 {
  1587  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
  1588  			}
  1589  			var stringLen uint64
  1590  			for shift := uint(0); ; shift += 7 {
  1591  				if shift >= 64 {
  1592  					return ErrIntOverflowTx
  1593  				}
  1594  				if iNdEx >= l {
  1595  					return io.ErrUnexpectedEOF
  1596  				}
  1597  				b := dAtA[iNdEx]
  1598  				iNdEx++
  1599  				stringLen |= uint64(b&0x7F) << shift
  1600  				if b < 0x80 {
  1601  					break
  1602  				}
  1603  			}
  1604  			intStringLen := int(stringLen)
  1605  			if intStringLen < 0 {
  1606  				return ErrInvalidLengthTx
  1607  			}
  1608  			postIndex := iNdEx + intStringLen
  1609  			if postIndex < 0 {
  1610  				return ErrInvalidLengthTx
  1611  			}
  1612  			if postIndex > l {
  1613  				return io.ErrUnexpectedEOF
  1614  			}
  1615  			m.Sender = string(dAtA[iNdEx:postIndex])
  1616  			iNdEx = postIndex
  1617  		case 2:
  1618  			if wireType != 2 {
  1619  				return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType)
  1620  			}
  1621  			var stringLen uint64
  1622  			for shift := uint(0); ; shift += 7 {
  1623  				if shift >= 64 {
  1624  					return ErrIntOverflowTx
  1625  				}
  1626  				if iNdEx >= l {
  1627  					return io.ErrUnexpectedEOF
  1628  				}
  1629  				b := dAtA[iNdEx]
  1630  				iNdEx++
  1631  				stringLen |= uint64(b&0x7F) << shift
  1632  				if b < 0x80 {
  1633  					break
  1634  				}
  1635  			}
  1636  			intStringLen := int(stringLen)
  1637  			if intStringLen < 0 {
  1638  				return ErrInvalidLengthTx
  1639  			}
  1640  			postIndex := iNdEx + intStringLen
  1641  			if postIndex < 0 {
  1642  				return ErrInvalidLengthTx
  1643  			}
  1644  			if postIndex > l {
  1645  				return io.ErrUnexpectedEOF
  1646  			}
  1647  			m.Contract = string(dAtA[iNdEx:postIndex])
  1648  			iNdEx = postIndex
  1649  		case 3:
  1650  			if wireType != 2 {
  1651  				return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1652  			}
  1653  			var stringLen uint64
  1654  			for shift := uint(0); ; shift += 7 {
  1655  				if shift >= 64 {
  1656  					return ErrIntOverflowTx
  1657  				}
  1658  				if iNdEx >= l {
  1659  					return io.ErrUnexpectedEOF
  1660  				}
  1661  				b := dAtA[iNdEx]
  1662  				iNdEx++
  1663  				stringLen |= uint64(b&0x7F) << shift
  1664  				if b < 0x80 {
  1665  					break
  1666  				}
  1667  			}
  1668  			intStringLen := int(stringLen)
  1669  			if intStringLen < 0 {
  1670  				return ErrInvalidLengthTx
  1671  			}
  1672  			postIndex := iNdEx + intStringLen
  1673  			if postIndex < 0 {
  1674  				return ErrInvalidLengthTx
  1675  			}
  1676  			if postIndex > l {
  1677  				return io.ErrUnexpectedEOF
  1678  			}
  1679  			m.Msg = string(dAtA[iNdEx:postIndex])
  1680  			iNdEx = postIndex
  1681  		case 4:
  1682  			if wireType != 2 {
  1683  				return fmt.Errorf("proto: wrong wireType = %d for field Funds", wireType)
  1684  			}
  1685  			var stringLen uint64
  1686  			for shift := uint(0); ; shift += 7 {
  1687  				if shift >= 64 {
  1688  					return ErrIntOverflowTx
  1689  				}
  1690  				if iNdEx >= l {
  1691  					return io.ErrUnexpectedEOF
  1692  				}
  1693  				b := dAtA[iNdEx]
  1694  				iNdEx++
  1695  				stringLen |= uint64(b&0x7F) << shift
  1696  				if b < 0x80 {
  1697  					break
  1698  				}
  1699  			}
  1700  			intStringLen := int(stringLen)
  1701  			if intStringLen < 0 {
  1702  				return ErrInvalidLengthTx
  1703  			}
  1704  			postIndex := iNdEx + intStringLen
  1705  			if postIndex < 0 {
  1706  				return ErrInvalidLengthTx
  1707  			}
  1708  			if postIndex > l {
  1709  				return io.ErrUnexpectedEOF
  1710  			}
  1711  			m.Funds = string(dAtA[iNdEx:postIndex])
  1712  			iNdEx = postIndex
  1713  		default:
  1714  			iNdEx = preIndex
  1715  			skippy, err := skipTx(dAtA[iNdEx:])
  1716  			if err != nil {
  1717  				return err
  1718  			}
  1719  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1720  				return ErrInvalidLengthTx
  1721  			}
  1722  			if (iNdEx + skippy) > l {
  1723  				return io.ErrUnexpectedEOF
  1724  			}
  1725  			iNdEx += skippy
  1726  		}
  1727  	}
  1728  
  1729  	if iNdEx > l {
  1730  		return io.ErrUnexpectedEOF
  1731  	}
  1732  	return nil
  1733  }
  1734  func (m *MsgExecuteContractCompatResponse) Unmarshal(dAtA []byte) error {
  1735  	l := len(dAtA)
  1736  	iNdEx := 0
  1737  	for iNdEx < l {
  1738  		preIndex := iNdEx
  1739  		var wire uint64
  1740  		for shift := uint(0); ; shift += 7 {
  1741  			if shift >= 64 {
  1742  				return ErrIntOverflowTx
  1743  			}
  1744  			if iNdEx >= l {
  1745  				return io.ErrUnexpectedEOF
  1746  			}
  1747  			b := dAtA[iNdEx]
  1748  			iNdEx++
  1749  			wire |= uint64(b&0x7F) << shift
  1750  			if b < 0x80 {
  1751  				break
  1752  			}
  1753  		}
  1754  		fieldNum := int32(wire >> 3)
  1755  		wireType := int(wire & 0x7)
  1756  		if wireType == 4 {
  1757  			return fmt.Errorf("proto: MsgExecuteContractCompatResponse: wiretype end group for non-group")
  1758  		}
  1759  		if fieldNum <= 0 {
  1760  			return fmt.Errorf("proto: MsgExecuteContractCompatResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1761  		}
  1762  		switch fieldNum {
  1763  		case 1:
  1764  			if wireType != 2 {
  1765  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1766  			}
  1767  			var byteLen int
  1768  			for shift := uint(0); ; shift += 7 {
  1769  				if shift >= 64 {
  1770  					return ErrIntOverflowTx
  1771  				}
  1772  				if iNdEx >= l {
  1773  					return io.ErrUnexpectedEOF
  1774  				}
  1775  				b := dAtA[iNdEx]
  1776  				iNdEx++
  1777  				byteLen |= int(b&0x7F) << shift
  1778  				if b < 0x80 {
  1779  					break
  1780  				}
  1781  			}
  1782  			if byteLen < 0 {
  1783  				return ErrInvalidLengthTx
  1784  			}
  1785  			postIndex := iNdEx + byteLen
  1786  			if postIndex < 0 {
  1787  				return ErrInvalidLengthTx
  1788  			}
  1789  			if postIndex > l {
  1790  				return io.ErrUnexpectedEOF
  1791  			}
  1792  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  1793  			if m.Data == nil {
  1794  				m.Data = []byte{}
  1795  			}
  1796  			iNdEx = postIndex
  1797  		default:
  1798  			iNdEx = preIndex
  1799  			skippy, err := skipTx(dAtA[iNdEx:])
  1800  			if err != nil {
  1801  				return err
  1802  			}
  1803  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1804  				return ErrInvalidLengthTx
  1805  			}
  1806  			if (iNdEx + skippy) > l {
  1807  				return io.ErrUnexpectedEOF
  1808  			}
  1809  			iNdEx += skippy
  1810  		}
  1811  	}
  1812  
  1813  	if iNdEx > l {
  1814  		return io.ErrUnexpectedEOF
  1815  	}
  1816  	return nil
  1817  }
  1818  func (m *MsgUpdateContract) Unmarshal(dAtA []byte) error {
  1819  	l := len(dAtA)
  1820  	iNdEx := 0
  1821  	for iNdEx < l {
  1822  		preIndex := iNdEx
  1823  		var wire uint64
  1824  		for shift := uint(0); ; shift += 7 {
  1825  			if shift >= 64 {
  1826  				return ErrIntOverflowTx
  1827  			}
  1828  			if iNdEx >= l {
  1829  				return io.ErrUnexpectedEOF
  1830  			}
  1831  			b := dAtA[iNdEx]
  1832  			iNdEx++
  1833  			wire |= uint64(b&0x7F) << shift
  1834  			if b < 0x80 {
  1835  				break
  1836  			}
  1837  		}
  1838  		fieldNum := int32(wire >> 3)
  1839  		wireType := int(wire & 0x7)
  1840  		if wireType == 4 {
  1841  			return fmt.Errorf("proto: MsgUpdateContract: wiretype end group for non-group")
  1842  		}
  1843  		if fieldNum <= 0 {
  1844  			return fmt.Errorf("proto: MsgUpdateContract: illegal tag %d (wire type %d)", fieldNum, wire)
  1845  		}
  1846  		switch fieldNum {
  1847  		case 1:
  1848  			if wireType != 2 {
  1849  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
  1850  			}
  1851  			var stringLen uint64
  1852  			for shift := uint(0); ; shift += 7 {
  1853  				if shift >= 64 {
  1854  					return ErrIntOverflowTx
  1855  				}
  1856  				if iNdEx >= l {
  1857  					return io.ErrUnexpectedEOF
  1858  				}
  1859  				b := dAtA[iNdEx]
  1860  				iNdEx++
  1861  				stringLen |= uint64(b&0x7F) << shift
  1862  				if b < 0x80 {
  1863  					break
  1864  				}
  1865  			}
  1866  			intStringLen := int(stringLen)
  1867  			if intStringLen < 0 {
  1868  				return ErrInvalidLengthTx
  1869  			}
  1870  			postIndex := iNdEx + intStringLen
  1871  			if postIndex < 0 {
  1872  				return ErrInvalidLengthTx
  1873  			}
  1874  			if postIndex > l {
  1875  				return io.ErrUnexpectedEOF
  1876  			}
  1877  			m.Sender = string(dAtA[iNdEx:postIndex])
  1878  			iNdEx = postIndex
  1879  		case 2:
  1880  			if wireType != 2 {
  1881  				return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType)
  1882  			}
  1883  			var stringLen uint64
  1884  			for shift := uint(0); ; shift += 7 {
  1885  				if shift >= 64 {
  1886  					return ErrIntOverflowTx
  1887  				}
  1888  				if iNdEx >= l {
  1889  					return io.ErrUnexpectedEOF
  1890  				}
  1891  				b := dAtA[iNdEx]
  1892  				iNdEx++
  1893  				stringLen |= uint64(b&0x7F) << shift
  1894  				if b < 0x80 {
  1895  					break
  1896  				}
  1897  			}
  1898  			intStringLen := int(stringLen)
  1899  			if intStringLen < 0 {
  1900  				return ErrInvalidLengthTx
  1901  			}
  1902  			postIndex := iNdEx + intStringLen
  1903  			if postIndex < 0 {
  1904  				return ErrInvalidLengthTx
  1905  			}
  1906  			if postIndex > l {
  1907  				return io.ErrUnexpectedEOF
  1908  			}
  1909  			m.ContractAddress = string(dAtA[iNdEx:postIndex])
  1910  			iNdEx = postIndex
  1911  		case 3:
  1912  			if wireType != 0 {
  1913  				return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType)
  1914  			}
  1915  			m.GasLimit = 0
  1916  			for shift := uint(0); ; shift += 7 {
  1917  				if shift >= 64 {
  1918  					return ErrIntOverflowTx
  1919  				}
  1920  				if iNdEx >= l {
  1921  					return io.ErrUnexpectedEOF
  1922  				}
  1923  				b := dAtA[iNdEx]
  1924  				iNdEx++
  1925  				m.GasLimit |= uint64(b&0x7F) << shift
  1926  				if b < 0x80 {
  1927  					break
  1928  				}
  1929  			}
  1930  		case 4:
  1931  			if wireType != 0 {
  1932  				return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType)
  1933  			}
  1934  			m.GasPrice = 0
  1935  			for shift := uint(0); ; shift += 7 {
  1936  				if shift >= 64 {
  1937  					return ErrIntOverflowTx
  1938  				}
  1939  				if iNdEx >= l {
  1940  					return io.ErrUnexpectedEOF
  1941  				}
  1942  				b := dAtA[iNdEx]
  1943  				iNdEx++
  1944  				m.GasPrice |= uint64(b&0x7F) << shift
  1945  				if b < 0x80 {
  1946  					break
  1947  				}
  1948  			}
  1949  		case 5:
  1950  			if wireType != 2 {
  1951  				return fmt.Errorf("proto: wrong wireType = %d for field AdminAddress", wireType)
  1952  			}
  1953  			var stringLen uint64
  1954  			for shift := uint(0); ; shift += 7 {
  1955  				if shift >= 64 {
  1956  					return ErrIntOverflowTx
  1957  				}
  1958  				if iNdEx >= l {
  1959  					return io.ErrUnexpectedEOF
  1960  				}
  1961  				b := dAtA[iNdEx]
  1962  				iNdEx++
  1963  				stringLen |= uint64(b&0x7F) << shift
  1964  				if b < 0x80 {
  1965  					break
  1966  				}
  1967  			}
  1968  			intStringLen := int(stringLen)
  1969  			if intStringLen < 0 {
  1970  				return ErrInvalidLengthTx
  1971  			}
  1972  			postIndex := iNdEx + intStringLen
  1973  			if postIndex < 0 {
  1974  				return ErrInvalidLengthTx
  1975  			}
  1976  			if postIndex > l {
  1977  				return io.ErrUnexpectedEOF
  1978  			}
  1979  			m.AdminAddress = string(dAtA[iNdEx:postIndex])
  1980  			iNdEx = postIndex
  1981  		default:
  1982  			iNdEx = preIndex
  1983  			skippy, err := skipTx(dAtA[iNdEx:])
  1984  			if err != nil {
  1985  				return err
  1986  			}
  1987  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1988  				return ErrInvalidLengthTx
  1989  			}
  1990  			if (iNdEx + skippy) > l {
  1991  				return io.ErrUnexpectedEOF
  1992  			}
  1993  			iNdEx += skippy
  1994  		}
  1995  	}
  1996  
  1997  	if iNdEx > l {
  1998  		return io.ErrUnexpectedEOF
  1999  	}
  2000  	return nil
  2001  }
  2002  func (m *MsgUpdateContractResponse) Unmarshal(dAtA []byte) error {
  2003  	l := len(dAtA)
  2004  	iNdEx := 0
  2005  	for iNdEx < l {
  2006  		preIndex := iNdEx
  2007  		var wire uint64
  2008  		for shift := uint(0); ; shift += 7 {
  2009  			if shift >= 64 {
  2010  				return ErrIntOverflowTx
  2011  			}
  2012  			if iNdEx >= l {
  2013  				return io.ErrUnexpectedEOF
  2014  			}
  2015  			b := dAtA[iNdEx]
  2016  			iNdEx++
  2017  			wire |= uint64(b&0x7F) << shift
  2018  			if b < 0x80 {
  2019  				break
  2020  			}
  2021  		}
  2022  		fieldNum := int32(wire >> 3)
  2023  		wireType := int(wire & 0x7)
  2024  		if wireType == 4 {
  2025  			return fmt.Errorf("proto: MsgUpdateContractResponse: wiretype end group for non-group")
  2026  		}
  2027  		if fieldNum <= 0 {
  2028  			return fmt.Errorf("proto: MsgUpdateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2029  		}
  2030  		switch fieldNum {
  2031  		default:
  2032  			iNdEx = preIndex
  2033  			skippy, err := skipTx(dAtA[iNdEx:])
  2034  			if err != nil {
  2035  				return err
  2036  			}
  2037  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2038  				return ErrInvalidLengthTx
  2039  			}
  2040  			if (iNdEx + skippy) > l {
  2041  				return io.ErrUnexpectedEOF
  2042  			}
  2043  			iNdEx += skippy
  2044  		}
  2045  	}
  2046  
  2047  	if iNdEx > l {
  2048  		return io.ErrUnexpectedEOF
  2049  	}
  2050  	return nil
  2051  }
  2052  func (m *MsgActivateContract) Unmarshal(dAtA []byte) error {
  2053  	l := len(dAtA)
  2054  	iNdEx := 0
  2055  	for iNdEx < l {
  2056  		preIndex := iNdEx
  2057  		var wire uint64
  2058  		for shift := uint(0); ; shift += 7 {
  2059  			if shift >= 64 {
  2060  				return ErrIntOverflowTx
  2061  			}
  2062  			if iNdEx >= l {
  2063  				return io.ErrUnexpectedEOF
  2064  			}
  2065  			b := dAtA[iNdEx]
  2066  			iNdEx++
  2067  			wire |= uint64(b&0x7F) << shift
  2068  			if b < 0x80 {
  2069  				break
  2070  			}
  2071  		}
  2072  		fieldNum := int32(wire >> 3)
  2073  		wireType := int(wire & 0x7)
  2074  		if wireType == 4 {
  2075  			return fmt.Errorf("proto: MsgActivateContract: wiretype end group for non-group")
  2076  		}
  2077  		if fieldNum <= 0 {
  2078  			return fmt.Errorf("proto: MsgActivateContract: illegal tag %d (wire type %d)", fieldNum, wire)
  2079  		}
  2080  		switch fieldNum {
  2081  		case 1:
  2082  			if wireType != 2 {
  2083  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
  2084  			}
  2085  			var stringLen uint64
  2086  			for shift := uint(0); ; shift += 7 {
  2087  				if shift >= 64 {
  2088  					return ErrIntOverflowTx
  2089  				}
  2090  				if iNdEx >= l {
  2091  					return io.ErrUnexpectedEOF
  2092  				}
  2093  				b := dAtA[iNdEx]
  2094  				iNdEx++
  2095  				stringLen |= uint64(b&0x7F) << shift
  2096  				if b < 0x80 {
  2097  					break
  2098  				}
  2099  			}
  2100  			intStringLen := int(stringLen)
  2101  			if intStringLen < 0 {
  2102  				return ErrInvalidLengthTx
  2103  			}
  2104  			postIndex := iNdEx + intStringLen
  2105  			if postIndex < 0 {
  2106  				return ErrInvalidLengthTx
  2107  			}
  2108  			if postIndex > l {
  2109  				return io.ErrUnexpectedEOF
  2110  			}
  2111  			m.Sender = string(dAtA[iNdEx:postIndex])
  2112  			iNdEx = postIndex
  2113  		case 2:
  2114  			if wireType != 2 {
  2115  				return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType)
  2116  			}
  2117  			var stringLen uint64
  2118  			for shift := uint(0); ; shift += 7 {
  2119  				if shift >= 64 {
  2120  					return ErrIntOverflowTx
  2121  				}
  2122  				if iNdEx >= l {
  2123  					return io.ErrUnexpectedEOF
  2124  				}
  2125  				b := dAtA[iNdEx]
  2126  				iNdEx++
  2127  				stringLen |= uint64(b&0x7F) << shift
  2128  				if b < 0x80 {
  2129  					break
  2130  				}
  2131  			}
  2132  			intStringLen := int(stringLen)
  2133  			if intStringLen < 0 {
  2134  				return ErrInvalidLengthTx
  2135  			}
  2136  			postIndex := iNdEx + intStringLen
  2137  			if postIndex < 0 {
  2138  				return ErrInvalidLengthTx
  2139  			}
  2140  			if postIndex > l {
  2141  				return io.ErrUnexpectedEOF
  2142  			}
  2143  			m.ContractAddress = string(dAtA[iNdEx:postIndex])
  2144  			iNdEx = postIndex
  2145  		default:
  2146  			iNdEx = preIndex
  2147  			skippy, err := skipTx(dAtA[iNdEx:])
  2148  			if err != nil {
  2149  				return err
  2150  			}
  2151  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2152  				return ErrInvalidLengthTx
  2153  			}
  2154  			if (iNdEx + skippy) > l {
  2155  				return io.ErrUnexpectedEOF
  2156  			}
  2157  			iNdEx += skippy
  2158  		}
  2159  	}
  2160  
  2161  	if iNdEx > l {
  2162  		return io.ErrUnexpectedEOF
  2163  	}
  2164  	return nil
  2165  }
  2166  func (m *MsgActivateContractResponse) Unmarshal(dAtA []byte) error {
  2167  	l := len(dAtA)
  2168  	iNdEx := 0
  2169  	for iNdEx < l {
  2170  		preIndex := iNdEx
  2171  		var wire uint64
  2172  		for shift := uint(0); ; shift += 7 {
  2173  			if shift >= 64 {
  2174  				return ErrIntOverflowTx
  2175  			}
  2176  			if iNdEx >= l {
  2177  				return io.ErrUnexpectedEOF
  2178  			}
  2179  			b := dAtA[iNdEx]
  2180  			iNdEx++
  2181  			wire |= uint64(b&0x7F) << shift
  2182  			if b < 0x80 {
  2183  				break
  2184  			}
  2185  		}
  2186  		fieldNum := int32(wire >> 3)
  2187  		wireType := int(wire & 0x7)
  2188  		if wireType == 4 {
  2189  			return fmt.Errorf("proto: MsgActivateContractResponse: wiretype end group for non-group")
  2190  		}
  2191  		if fieldNum <= 0 {
  2192  			return fmt.Errorf("proto: MsgActivateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2193  		}
  2194  		switch fieldNum {
  2195  		default:
  2196  			iNdEx = preIndex
  2197  			skippy, err := skipTx(dAtA[iNdEx:])
  2198  			if err != nil {
  2199  				return err
  2200  			}
  2201  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2202  				return ErrInvalidLengthTx
  2203  			}
  2204  			if (iNdEx + skippy) > l {
  2205  				return io.ErrUnexpectedEOF
  2206  			}
  2207  			iNdEx += skippy
  2208  		}
  2209  	}
  2210  
  2211  	if iNdEx > l {
  2212  		return io.ErrUnexpectedEOF
  2213  	}
  2214  	return nil
  2215  }
  2216  func (m *MsgDeactivateContract) Unmarshal(dAtA []byte) error {
  2217  	l := len(dAtA)
  2218  	iNdEx := 0
  2219  	for iNdEx < l {
  2220  		preIndex := iNdEx
  2221  		var wire uint64
  2222  		for shift := uint(0); ; shift += 7 {
  2223  			if shift >= 64 {
  2224  				return ErrIntOverflowTx
  2225  			}
  2226  			if iNdEx >= l {
  2227  				return io.ErrUnexpectedEOF
  2228  			}
  2229  			b := dAtA[iNdEx]
  2230  			iNdEx++
  2231  			wire |= uint64(b&0x7F) << shift
  2232  			if b < 0x80 {
  2233  				break
  2234  			}
  2235  		}
  2236  		fieldNum := int32(wire >> 3)
  2237  		wireType := int(wire & 0x7)
  2238  		if wireType == 4 {
  2239  			return fmt.Errorf("proto: MsgDeactivateContract: wiretype end group for non-group")
  2240  		}
  2241  		if fieldNum <= 0 {
  2242  			return fmt.Errorf("proto: MsgDeactivateContract: illegal tag %d (wire type %d)", fieldNum, wire)
  2243  		}
  2244  		switch fieldNum {
  2245  		case 1:
  2246  			if wireType != 2 {
  2247  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
  2248  			}
  2249  			var stringLen uint64
  2250  			for shift := uint(0); ; shift += 7 {
  2251  				if shift >= 64 {
  2252  					return ErrIntOverflowTx
  2253  				}
  2254  				if iNdEx >= l {
  2255  					return io.ErrUnexpectedEOF
  2256  				}
  2257  				b := dAtA[iNdEx]
  2258  				iNdEx++
  2259  				stringLen |= uint64(b&0x7F) << shift
  2260  				if b < 0x80 {
  2261  					break
  2262  				}
  2263  			}
  2264  			intStringLen := int(stringLen)
  2265  			if intStringLen < 0 {
  2266  				return ErrInvalidLengthTx
  2267  			}
  2268  			postIndex := iNdEx + intStringLen
  2269  			if postIndex < 0 {
  2270  				return ErrInvalidLengthTx
  2271  			}
  2272  			if postIndex > l {
  2273  				return io.ErrUnexpectedEOF
  2274  			}
  2275  			m.Sender = string(dAtA[iNdEx:postIndex])
  2276  			iNdEx = postIndex
  2277  		case 2:
  2278  			if wireType != 2 {
  2279  				return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType)
  2280  			}
  2281  			var stringLen uint64
  2282  			for shift := uint(0); ; shift += 7 {
  2283  				if shift >= 64 {
  2284  					return ErrIntOverflowTx
  2285  				}
  2286  				if iNdEx >= l {
  2287  					return io.ErrUnexpectedEOF
  2288  				}
  2289  				b := dAtA[iNdEx]
  2290  				iNdEx++
  2291  				stringLen |= uint64(b&0x7F) << shift
  2292  				if b < 0x80 {
  2293  					break
  2294  				}
  2295  			}
  2296  			intStringLen := int(stringLen)
  2297  			if intStringLen < 0 {
  2298  				return ErrInvalidLengthTx
  2299  			}
  2300  			postIndex := iNdEx + intStringLen
  2301  			if postIndex < 0 {
  2302  				return ErrInvalidLengthTx
  2303  			}
  2304  			if postIndex > l {
  2305  				return io.ErrUnexpectedEOF
  2306  			}
  2307  			m.ContractAddress = string(dAtA[iNdEx:postIndex])
  2308  			iNdEx = postIndex
  2309  		default:
  2310  			iNdEx = preIndex
  2311  			skippy, err := skipTx(dAtA[iNdEx:])
  2312  			if err != nil {
  2313  				return err
  2314  			}
  2315  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2316  				return ErrInvalidLengthTx
  2317  			}
  2318  			if (iNdEx + skippy) > l {
  2319  				return io.ErrUnexpectedEOF
  2320  			}
  2321  			iNdEx += skippy
  2322  		}
  2323  	}
  2324  
  2325  	if iNdEx > l {
  2326  		return io.ErrUnexpectedEOF
  2327  	}
  2328  	return nil
  2329  }
  2330  func (m *MsgDeactivateContractResponse) Unmarshal(dAtA []byte) error {
  2331  	l := len(dAtA)
  2332  	iNdEx := 0
  2333  	for iNdEx < l {
  2334  		preIndex := iNdEx
  2335  		var wire uint64
  2336  		for shift := uint(0); ; shift += 7 {
  2337  			if shift >= 64 {
  2338  				return ErrIntOverflowTx
  2339  			}
  2340  			if iNdEx >= l {
  2341  				return io.ErrUnexpectedEOF
  2342  			}
  2343  			b := dAtA[iNdEx]
  2344  			iNdEx++
  2345  			wire |= uint64(b&0x7F) << shift
  2346  			if b < 0x80 {
  2347  				break
  2348  			}
  2349  		}
  2350  		fieldNum := int32(wire >> 3)
  2351  		wireType := int(wire & 0x7)
  2352  		if wireType == 4 {
  2353  			return fmt.Errorf("proto: MsgDeactivateContractResponse: wiretype end group for non-group")
  2354  		}
  2355  		if fieldNum <= 0 {
  2356  			return fmt.Errorf("proto: MsgDeactivateContractResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2357  		}
  2358  		switch fieldNum {
  2359  		default:
  2360  			iNdEx = preIndex
  2361  			skippy, err := skipTx(dAtA[iNdEx:])
  2362  			if err != nil {
  2363  				return err
  2364  			}
  2365  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2366  				return ErrInvalidLengthTx
  2367  			}
  2368  			if (iNdEx + skippy) > l {
  2369  				return io.ErrUnexpectedEOF
  2370  			}
  2371  			iNdEx += skippy
  2372  		}
  2373  	}
  2374  
  2375  	if iNdEx > l {
  2376  		return io.ErrUnexpectedEOF
  2377  	}
  2378  	return nil
  2379  }
  2380  func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
  2381  	l := len(dAtA)
  2382  	iNdEx := 0
  2383  	for iNdEx < l {
  2384  		preIndex := iNdEx
  2385  		var wire uint64
  2386  		for shift := uint(0); ; shift += 7 {
  2387  			if shift >= 64 {
  2388  				return ErrIntOverflowTx
  2389  			}
  2390  			if iNdEx >= l {
  2391  				return io.ErrUnexpectedEOF
  2392  			}
  2393  			b := dAtA[iNdEx]
  2394  			iNdEx++
  2395  			wire |= uint64(b&0x7F) << shift
  2396  			if b < 0x80 {
  2397  				break
  2398  			}
  2399  		}
  2400  		fieldNum := int32(wire >> 3)
  2401  		wireType := int(wire & 0x7)
  2402  		if wireType == 4 {
  2403  			return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
  2404  		}
  2405  		if fieldNum <= 0 {
  2406  			return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
  2407  		}
  2408  		switch fieldNum {
  2409  		case 1:
  2410  			if wireType != 2 {
  2411  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
  2412  			}
  2413  			var stringLen uint64
  2414  			for shift := uint(0); ; shift += 7 {
  2415  				if shift >= 64 {
  2416  					return ErrIntOverflowTx
  2417  				}
  2418  				if iNdEx >= l {
  2419  					return io.ErrUnexpectedEOF
  2420  				}
  2421  				b := dAtA[iNdEx]
  2422  				iNdEx++
  2423  				stringLen |= uint64(b&0x7F) << shift
  2424  				if b < 0x80 {
  2425  					break
  2426  				}
  2427  			}
  2428  			intStringLen := int(stringLen)
  2429  			if intStringLen < 0 {
  2430  				return ErrInvalidLengthTx
  2431  			}
  2432  			postIndex := iNdEx + intStringLen
  2433  			if postIndex < 0 {
  2434  				return ErrInvalidLengthTx
  2435  			}
  2436  			if postIndex > l {
  2437  				return io.ErrUnexpectedEOF
  2438  			}
  2439  			m.Authority = string(dAtA[iNdEx:postIndex])
  2440  			iNdEx = postIndex
  2441  		case 2:
  2442  			if wireType != 2 {
  2443  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  2444  			}
  2445  			var msglen int
  2446  			for shift := uint(0); ; shift += 7 {
  2447  				if shift >= 64 {
  2448  					return ErrIntOverflowTx
  2449  				}
  2450  				if iNdEx >= l {
  2451  					return io.ErrUnexpectedEOF
  2452  				}
  2453  				b := dAtA[iNdEx]
  2454  				iNdEx++
  2455  				msglen |= int(b&0x7F) << shift
  2456  				if b < 0x80 {
  2457  					break
  2458  				}
  2459  			}
  2460  			if msglen < 0 {
  2461  				return ErrInvalidLengthTx
  2462  			}
  2463  			postIndex := iNdEx + msglen
  2464  			if postIndex < 0 {
  2465  				return ErrInvalidLengthTx
  2466  			}
  2467  			if postIndex > l {
  2468  				return io.ErrUnexpectedEOF
  2469  			}
  2470  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2471  				return err
  2472  			}
  2473  			iNdEx = postIndex
  2474  		default:
  2475  			iNdEx = preIndex
  2476  			skippy, err := skipTx(dAtA[iNdEx:])
  2477  			if err != nil {
  2478  				return err
  2479  			}
  2480  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2481  				return ErrInvalidLengthTx
  2482  			}
  2483  			if (iNdEx + skippy) > l {
  2484  				return io.ErrUnexpectedEOF
  2485  			}
  2486  			iNdEx += skippy
  2487  		}
  2488  	}
  2489  
  2490  	if iNdEx > l {
  2491  		return io.ErrUnexpectedEOF
  2492  	}
  2493  	return nil
  2494  }
  2495  func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
  2496  	l := len(dAtA)
  2497  	iNdEx := 0
  2498  	for iNdEx < l {
  2499  		preIndex := iNdEx
  2500  		var wire uint64
  2501  		for shift := uint(0); ; shift += 7 {
  2502  			if shift >= 64 {
  2503  				return ErrIntOverflowTx
  2504  			}
  2505  			if iNdEx >= l {
  2506  				return io.ErrUnexpectedEOF
  2507  			}
  2508  			b := dAtA[iNdEx]
  2509  			iNdEx++
  2510  			wire |= uint64(b&0x7F) << shift
  2511  			if b < 0x80 {
  2512  				break
  2513  			}
  2514  		}
  2515  		fieldNum := int32(wire >> 3)
  2516  		wireType := int(wire & 0x7)
  2517  		if wireType == 4 {
  2518  			return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
  2519  		}
  2520  		if fieldNum <= 0 {
  2521  			return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2522  		}
  2523  		switch fieldNum {
  2524  		default:
  2525  			iNdEx = preIndex
  2526  			skippy, err := skipTx(dAtA[iNdEx:])
  2527  			if err != nil {
  2528  				return err
  2529  			}
  2530  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2531  				return ErrInvalidLengthTx
  2532  			}
  2533  			if (iNdEx + skippy) > l {
  2534  				return io.ErrUnexpectedEOF
  2535  			}
  2536  			iNdEx += skippy
  2537  		}
  2538  	}
  2539  
  2540  	if iNdEx > l {
  2541  		return io.ErrUnexpectedEOF
  2542  	}
  2543  	return nil
  2544  }
  2545  func (m *MsgRegisterContract) Unmarshal(dAtA []byte) error {
  2546  	l := len(dAtA)
  2547  	iNdEx := 0
  2548  	for iNdEx < l {
  2549  		preIndex := iNdEx
  2550  		var wire uint64
  2551  		for shift := uint(0); ; shift += 7 {
  2552  			if shift >= 64 {
  2553  				return ErrIntOverflowTx
  2554  			}
  2555  			if iNdEx >= l {
  2556  				return io.ErrUnexpectedEOF
  2557  			}
  2558  			b := dAtA[iNdEx]
  2559  			iNdEx++
  2560  			wire |= uint64(b&0x7F) << shift
  2561  			if b < 0x80 {
  2562  				break
  2563  			}
  2564  		}
  2565  		fieldNum := int32(wire >> 3)
  2566  		wireType := int(wire & 0x7)
  2567  		if wireType == 4 {
  2568  			return fmt.Errorf("proto: MsgRegisterContract: wiretype end group for non-group")
  2569  		}
  2570  		if fieldNum <= 0 {
  2571  			return fmt.Errorf("proto: MsgRegisterContract: illegal tag %d (wire type %d)", fieldNum, wire)
  2572  		}
  2573  		switch fieldNum {
  2574  		case 1:
  2575  			if wireType != 2 {
  2576  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
  2577  			}
  2578  			var stringLen uint64
  2579  			for shift := uint(0); ; shift += 7 {
  2580  				if shift >= 64 {
  2581  					return ErrIntOverflowTx
  2582  				}
  2583  				if iNdEx >= l {
  2584  					return io.ErrUnexpectedEOF
  2585  				}
  2586  				b := dAtA[iNdEx]
  2587  				iNdEx++
  2588  				stringLen |= uint64(b&0x7F) << shift
  2589  				if b < 0x80 {
  2590  					break
  2591  				}
  2592  			}
  2593  			intStringLen := int(stringLen)
  2594  			if intStringLen < 0 {
  2595  				return ErrInvalidLengthTx
  2596  			}
  2597  			postIndex := iNdEx + intStringLen
  2598  			if postIndex < 0 {
  2599  				return ErrInvalidLengthTx
  2600  			}
  2601  			if postIndex > l {
  2602  				return io.ErrUnexpectedEOF
  2603  			}
  2604  			m.Sender = string(dAtA[iNdEx:postIndex])
  2605  			iNdEx = postIndex
  2606  		case 2:
  2607  			if wireType != 2 {
  2608  				return fmt.Errorf("proto: wrong wireType = %d for field ContractRegistrationRequest", wireType)
  2609  			}
  2610  			var msglen int
  2611  			for shift := uint(0); ; shift += 7 {
  2612  				if shift >= 64 {
  2613  					return ErrIntOverflowTx
  2614  				}
  2615  				if iNdEx >= l {
  2616  					return io.ErrUnexpectedEOF
  2617  				}
  2618  				b := dAtA[iNdEx]
  2619  				iNdEx++
  2620  				msglen |= int(b&0x7F) << shift
  2621  				if b < 0x80 {
  2622  					break
  2623  				}
  2624  			}
  2625  			if msglen < 0 {
  2626  				return ErrInvalidLengthTx
  2627  			}
  2628  			postIndex := iNdEx + msglen
  2629  			if postIndex < 0 {
  2630  				return ErrInvalidLengthTx
  2631  			}
  2632  			if postIndex > l {
  2633  				return io.ErrUnexpectedEOF
  2634  			}
  2635  			if err := m.ContractRegistrationRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2636  				return err
  2637  			}
  2638  			iNdEx = postIndex
  2639  		default:
  2640  			iNdEx = preIndex
  2641  			skippy, err := skipTx(dAtA[iNdEx:])
  2642  			if err != nil {
  2643  				return err
  2644  			}
  2645  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2646  				return ErrInvalidLengthTx
  2647  			}
  2648  			if (iNdEx + skippy) > l {
  2649  				return io.ErrUnexpectedEOF
  2650  			}
  2651  			iNdEx += skippy
  2652  		}
  2653  	}
  2654  
  2655  	if iNdEx > l {
  2656  		return io.ErrUnexpectedEOF
  2657  	}
  2658  	return nil
  2659  }
  2660  func (m *MsgRegisterContractResponse) Unmarshal(dAtA []byte) error {
  2661  	l := len(dAtA)
  2662  	iNdEx := 0
  2663  	for iNdEx < l {
  2664  		preIndex := iNdEx
  2665  		var wire uint64
  2666  		for shift := uint(0); ; shift += 7 {
  2667  			if shift >= 64 {
  2668  				return ErrIntOverflowTx
  2669  			}
  2670  			if iNdEx >= l {
  2671  				return io.ErrUnexpectedEOF
  2672  			}
  2673  			b := dAtA[iNdEx]
  2674  			iNdEx++
  2675  			wire |= uint64(b&0x7F) << shift
  2676  			if b < 0x80 {
  2677  				break
  2678  			}
  2679  		}
  2680  		fieldNum := int32(wire >> 3)
  2681  		wireType := int(wire & 0x7)
  2682  		if wireType == 4 {
  2683  			return fmt.Errorf("proto: MsgRegisterContractResponse: wiretype end group for non-group")
  2684  		}
  2685  		if fieldNum <= 0 {
  2686  			return fmt.Errorf("proto: MsgRegisterContractResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2687  		}
  2688  		switch fieldNum {
  2689  		default:
  2690  			iNdEx = preIndex
  2691  			skippy, err := skipTx(dAtA[iNdEx:])
  2692  			if err != nil {
  2693  				return err
  2694  			}
  2695  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2696  				return ErrInvalidLengthTx
  2697  			}
  2698  			if (iNdEx + skippy) > l {
  2699  				return io.ErrUnexpectedEOF
  2700  			}
  2701  			iNdEx += skippy
  2702  		}
  2703  	}
  2704  
  2705  	if iNdEx > l {
  2706  		return io.ErrUnexpectedEOF
  2707  	}
  2708  	return nil
  2709  }
  2710  func skipTx(dAtA []byte) (n int, err error) {
  2711  	l := len(dAtA)
  2712  	iNdEx := 0
  2713  	depth := 0
  2714  	for iNdEx < l {
  2715  		var wire uint64
  2716  		for shift := uint(0); ; shift += 7 {
  2717  			if shift >= 64 {
  2718  				return 0, ErrIntOverflowTx
  2719  			}
  2720  			if iNdEx >= l {
  2721  				return 0, io.ErrUnexpectedEOF
  2722  			}
  2723  			b := dAtA[iNdEx]
  2724  			iNdEx++
  2725  			wire |= (uint64(b) & 0x7F) << shift
  2726  			if b < 0x80 {
  2727  				break
  2728  			}
  2729  		}
  2730  		wireType := int(wire & 0x7)
  2731  		switch wireType {
  2732  		case 0:
  2733  			for shift := uint(0); ; shift += 7 {
  2734  				if shift >= 64 {
  2735  					return 0, ErrIntOverflowTx
  2736  				}
  2737  				if iNdEx >= l {
  2738  					return 0, io.ErrUnexpectedEOF
  2739  				}
  2740  				iNdEx++
  2741  				if dAtA[iNdEx-1] < 0x80 {
  2742  					break
  2743  				}
  2744  			}
  2745  		case 1:
  2746  			iNdEx += 8
  2747  		case 2:
  2748  			var length int
  2749  			for shift := uint(0); ; shift += 7 {
  2750  				if shift >= 64 {
  2751  					return 0, ErrIntOverflowTx
  2752  				}
  2753  				if iNdEx >= l {
  2754  					return 0, io.ErrUnexpectedEOF
  2755  				}
  2756  				b := dAtA[iNdEx]
  2757  				iNdEx++
  2758  				length |= (int(b) & 0x7F) << shift
  2759  				if b < 0x80 {
  2760  					break
  2761  				}
  2762  			}
  2763  			if length < 0 {
  2764  				return 0, ErrInvalidLengthTx
  2765  			}
  2766  			iNdEx += length
  2767  		case 3:
  2768  			depth++
  2769  		case 4:
  2770  			if depth == 0 {
  2771  				return 0, ErrUnexpectedEndOfGroupTx
  2772  			}
  2773  			depth--
  2774  		case 5:
  2775  			iNdEx += 4
  2776  		default:
  2777  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2778  		}
  2779  		if iNdEx < 0 {
  2780  			return 0, ErrInvalidLengthTx
  2781  		}
  2782  		if depth == 0 {
  2783  			return iNdEx, nil
  2784  		}
  2785  	}
  2786  	return 0, io.ErrUnexpectedEOF
  2787  }
  2788  
  2789  var (
  2790  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  2791  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  2792  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  2793  )