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

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