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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/token/v1/event.proto
     3  
     4  package token
     5  
     6  import (
     7  	fmt "fmt"
     8  	github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  // AttributeKey enumerates the valid attribute keys on x/token.
    28  type AttributeKey int32 // Deprecated: Do not use.
    29  const (
    30  	AttributeKeyUnspecified AttributeKey = 0
    31  	AttributeKeyName        AttributeKey = 1
    32  	AttributeKeyMeta        AttributeKey = 3
    33  	// deprecated: use ATTRIBUTE_KEY_URI
    34  	AttributeKeyImageURI AttributeKey = 8
    35  	AttributeKeyURI      AttributeKey = 15
    36  )
    37  
    38  var AttributeKey_name = map[int32]string{
    39  	0:  "ATTRIBUTE_KEY_UNSPECIFIED",
    40  	1:  "ATTRIBUTE_KEY_NAME",
    41  	3:  "ATTRIBUTE_KEY_META",
    42  	8:  "ATTRIBUTE_KEY_IMG_URI",
    43  	15: "ATTRIBUTE_KEY_URI",
    44  }
    45  
    46  var AttributeKey_value = map[string]int32{
    47  	"ATTRIBUTE_KEY_UNSPECIFIED": 0,
    48  	"ATTRIBUTE_KEY_NAME":        1,
    49  	"ATTRIBUTE_KEY_META":        3,
    50  	"ATTRIBUTE_KEY_IMG_URI":     8,
    51  	"ATTRIBUTE_KEY_URI":         15,
    52  }
    53  
    54  func (AttributeKey) EnumDescriptor() ([]byte, []int) {
    55  	return fileDescriptor_d7505f4c4cdec18e, []int{0}
    56  }
    57  
    58  // EventSent is emitted when tokens are transferred.
    59  //
    60  // Since: 0.46.0 (finschia)
    61  //
    62  // Deprecated: Do not use.
    63  type EventSent struct {
    64  	// contract id associated with the contract.
    65  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
    66  	// address which triggered the send.
    67  	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
    68  	// holder whose tokens were sent.
    69  	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
    70  	// recipient of the tokens
    71  	To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
    72  	// number of tokens sent.
    73  	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"`
    74  }
    75  
    76  func (m *EventSent) Reset()         { *m = EventSent{} }
    77  func (m *EventSent) String() string { return proto.CompactTextString(m) }
    78  func (*EventSent) ProtoMessage()    {}
    79  func (*EventSent) Descriptor() ([]byte, []int) {
    80  	return fileDescriptor_d7505f4c4cdec18e, []int{0}
    81  }
    82  func (m *EventSent) XXX_Unmarshal(b []byte) error {
    83  	return m.Unmarshal(b)
    84  }
    85  func (m *EventSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    86  	if deterministic {
    87  		return xxx_messageInfo_EventSent.Marshal(b, m, deterministic)
    88  	} else {
    89  		b = b[:cap(b)]
    90  		n, err := m.MarshalToSizedBuffer(b)
    91  		if err != nil {
    92  			return nil, err
    93  		}
    94  		return b[:n], nil
    95  	}
    96  }
    97  func (m *EventSent) XXX_Merge(src proto.Message) {
    98  	xxx_messageInfo_EventSent.Merge(m, src)
    99  }
   100  func (m *EventSent) XXX_Size() int {
   101  	return m.Size()
   102  }
   103  func (m *EventSent) XXX_DiscardUnknown() {
   104  	xxx_messageInfo_EventSent.DiscardUnknown(m)
   105  }
   106  
   107  var xxx_messageInfo_EventSent proto.InternalMessageInfo
   108  
   109  func (m *EventSent) GetContractId() string {
   110  	if m != nil {
   111  		return m.ContractId
   112  	}
   113  	return ""
   114  }
   115  
   116  func (m *EventSent) GetOperator() string {
   117  	if m != nil {
   118  		return m.Operator
   119  	}
   120  	return ""
   121  }
   122  
   123  func (m *EventSent) GetFrom() string {
   124  	if m != nil {
   125  		return m.From
   126  	}
   127  	return ""
   128  }
   129  
   130  func (m *EventSent) GetTo() string {
   131  	if m != nil {
   132  		return m.To
   133  	}
   134  	return ""
   135  }
   136  
   137  // EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens.
   138  //
   139  // Since: 0.46.0 (finschia)
   140  //
   141  // Deprecated: Do not use.
   142  type EventAuthorizedOperator struct {
   143  	// contract id associated with the contract.
   144  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   145  	// address of a holder which authorized the `operator` address as an operator.
   146  	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
   147  	// address which became an operator of `holder`.
   148  	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
   149  }
   150  
   151  func (m *EventAuthorizedOperator) Reset()         { *m = EventAuthorizedOperator{} }
   152  func (m *EventAuthorizedOperator) String() string { return proto.CompactTextString(m) }
   153  func (*EventAuthorizedOperator) ProtoMessage()    {}
   154  func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) {
   155  	return fileDescriptor_d7505f4c4cdec18e, []int{1}
   156  }
   157  func (m *EventAuthorizedOperator) XXX_Unmarshal(b []byte) error {
   158  	return m.Unmarshal(b)
   159  }
   160  func (m *EventAuthorizedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   161  	if deterministic {
   162  		return xxx_messageInfo_EventAuthorizedOperator.Marshal(b, m, deterministic)
   163  	} else {
   164  		b = b[:cap(b)]
   165  		n, err := m.MarshalToSizedBuffer(b)
   166  		if err != nil {
   167  			return nil, err
   168  		}
   169  		return b[:n], nil
   170  	}
   171  }
   172  func (m *EventAuthorizedOperator) XXX_Merge(src proto.Message) {
   173  	xxx_messageInfo_EventAuthorizedOperator.Merge(m, src)
   174  }
   175  func (m *EventAuthorizedOperator) XXX_Size() int {
   176  	return m.Size()
   177  }
   178  func (m *EventAuthorizedOperator) XXX_DiscardUnknown() {
   179  	xxx_messageInfo_EventAuthorizedOperator.DiscardUnknown(m)
   180  }
   181  
   182  var xxx_messageInfo_EventAuthorizedOperator proto.InternalMessageInfo
   183  
   184  func (m *EventAuthorizedOperator) GetContractId() string {
   185  	if m != nil {
   186  		return m.ContractId
   187  	}
   188  	return ""
   189  }
   190  
   191  func (m *EventAuthorizedOperator) GetHolder() string {
   192  	if m != nil {
   193  		return m.Holder
   194  	}
   195  	return ""
   196  }
   197  
   198  func (m *EventAuthorizedOperator) GetOperator() string {
   199  	if m != nil {
   200  		return m.Operator
   201  	}
   202  	return ""
   203  }
   204  
   205  // EventRevokedOperator is emitted when an authorization is revoked.
   206  //
   207  // Since: 0.46.0 (finschia)
   208  //
   209  // Deprecated: Do not use.
   210  type EventRevokedOperator struct {
   211  	// contract id associated with the contract.
   212  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   213  	// address of a holder which revoked the `operator` address as an operator.
   214  	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
   215  	// address which was revoked as an operator of `holder`.
   216  	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
   217  }
   218  
   219  func (m *EventRevokedOperator) Reset()         { *m = EventRevokedOperator{} }
   220  func (m *EventRevokedOperator) String() string { return proto.CompactTextString(m) }
   221  func (*EventRevokedOperator) ProtoMessage()    {}
   222  func (*EventRevokedOperator) Descriptor() ([]byte, []int) {
   223  	return fileDescriptor_d7505f4c4cdec18e, []int{2}
   224  }
   225  func (m *EventRevokedOperator) XXX_Unmarshal(b []byte) error {
   226  	return m.Unmarshal(b)
   227  }
   228  func (m *EventRevokedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   229  	if deterministic {
   230  		return xxx_messageInfo_EventRevokedOperator.Marshal(b, m, deterministic)
   231  	} else {
   232  		b = b[:cap(b)]
   233  		n, err := m.MarshalToSizedBuffer(b)
   234  		if err != nil {
   235  			return nil, err
   236  		}
   237  		return b[:n], nil
   238  	}
   239  }
   240  func (m *EventRevokedOperator) XXX_Merge(src proto.Message) {
   241  	xxx_messageInfo_EventRevokedOperator.Merge(m, src)
   242  }
   243  func (m *EventRevokedOperator) XXX_Size() int {
   244  	return m.Size()
   245  }
   246  func (m *EventRevokedOperator) XXX_DiscardUnknown() {
   247  	xxx_messageInfo_EventRevokedOperator.DiscardUnknown(m)
   248  }
   249  
   250  var xxx_messageInfo_EventRevokedOperator proto.InternalMessageInfo
   251  
   252  func (m *EventRevokedOperator) GetContractId() string {
   253  	if m != nil {
   254  		return m.ContractId
   255  	}
   256  	return ""
   257  }
   258  
   259  func (m *EventRevokedOperator) GetHolder() string {
   260  	if m != nil {
   261  		return m.Holder
   262  	}
   263  	return ""
   264  }
   265  
   266  func (m *EventRevokedOperator) GetOperator() string {
   267  	if m != nil {
   268  		return m.Operator
   269  	}
   270  	return ""
   271  }
   272  
   273  // EventIssued is emitted when a new contract is created.
   274  //
   275  // Since: 0.46.0 (finschia)
   276  //
   277  // Deprecated: Do not use.
   278  type EventIssued struct {
   279  	// address which created the contract.
   280  	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
   281  	// contract id associated with the contract.
   282  	ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   283  	// name defines the human-readable name of the contract.
   284  	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
   285  	// symbol is an abbreviated name for contract.
   286  	Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
   287  	// uri is an uri for the resource of the contract stored off chain.
   288  	Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
   289  	// meta is a brief description of contract.
   290  	Meta string `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"`
   291  	// decimals is the number of decimals which one must divide the amount by to get its user representation.
   292  	Decimals int32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"`
   293  	// mintable represents whether the token is allowed to mint.
   294  	Mintable bool `protobuf:"varint,8,opt,name=mintable,proto3" json:"mintable,omitempty"`
   295  }
   296  
   297  func (m *EventIssued) Reset()         { *m = EventIssued{} }
   298  func (m *EventIssued) String() string { return proto.CompactTextString(m) }
   299  func (*EventIssued) ProtoMessage()    {}
   300  func (*EventIssued) Descriptor() ([]byte, []int) {
   301  	return fileDescriptor_d7505f4c4cdec18e, []int{3}
   302  }
   303  func (m *EventIssued) XXX_Unmarshal(b []byte) error {
   304  	return m.Unmarshal(b)
   305  }
   306  func (m *EventIssued) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   307  	if deterministic {
   308  		return xxx_messageInfo_EventIssued.Marshal(b, m, deterministic)
   309  	} else {
   310  		b = b[:cap(b)]
   311  		n, err := m.MarshalToSizedBuffer(b)
   312  		if err != nil {
   313  			return nil, err
   314  		}
   315  		return b[:n], nil
   316  	}
   317  }
   318  func (m *EventIssued) XXX_Merge(src proto.Message) {
   319  	xxx_messageInfo_EventIssued.Merge(m, src)
   320  }
   321  func (m *EventIssued) XXX_Size() int {
   322  	return m.Size()
   323  }
   324  func (m *EventIssued) XXX_DiscardUnknown() {
   325  	xxx_messageInfo_EventIssued.DiscardUnknown(m)
   326  }
   327  
   328  var xxx_messageInfo_EventIssued proto.InternalMessageInfo
   329  
   330  func (m *EventIssued) GetCreator() string {
   331  	if m != nil {
   332  		return m.Creator
   333  	}
   334  	return ""
   335  }
   336  
   337  func (m *EventIssued) GetContractId() string {
   338  	if m != nil {
   339  		return m.ContractId
   340  	}
   341  	return ""
   342  }
   343  
   344  func (m *EventIssued) GetName() string {
   345  	if m != nil {
   346  		return m.Name
   347  	}
   348  	return ""
   349  }
   350  
   351  func (m *EventIssued) GetSymbol() string {
   352  	if m != nil {
   353  		return m.Symbol
   354  	}
   355  	return ""
   356  }
   357  
   358  func (m *EventIssued) GetUri() string {
   359  	if m != nil {
   360  		return m.Uri
   361  	}
   362  	return ""
   363  }
   364  
   365  func (m *EventIssued) GetMeta() string {
   366  	if m != nil {
   367  		return m.Meta
   368  	}
   369  	return ""
   370  }
   371  
   372  func (m *EventIssued) GetDecimals() int32 {
   373  	if m != nil {
   374  		return m.Decimals
   375  	}
   376  	return 0
   377  }
   378  
   379  func (m *EventIssued) GetMintable() bool {
   380  	if m != nil {
   381  		return m.Mintable
   382  	}
   383  	return false
   384  }
   385  
   386  // EventGranted is emitted when a granter grants its permission to a grantee.
   387  //
   388  // Info: `granter` would be empty if the permission is granted by an issuance.
   389  //
   390  // Since: 0.46.0 (finschia)
   391  //
   392  // Deprecated: Do not use.
   393  type EventGranted struct {
   394  	// contract id associated with the contract.
   395  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   396  	// address which granted the permission to `grantee`.
   397  	// it would be empty where the event is triggered by the issuance.
   398  	Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"`
   399  	// address of the grantee.
   400  	Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
   401  	// permission on the contract.
   402  	Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"`
   403  }
   404  
   405  func (m *EventGranted) Reset()         { *m = EventGranted{} }
   406  func (m *EventGranted) String() string { return proto.CompactTextString(m) }
   407  func (*EventGranted) ProtoMessage()    {}
   408  func (*EventGranted) Descriptor() ([]byte, []int) {
   409  	return fileDescriptor_d7505f4c4cdec18e, []int{4}
   410  }
   411  func (m *EventGranted) XXX_Unmarshal(b []byte) error {
   412  	return m.Unmarshal(b)
   413  }
   414  func (m *EventGranted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   415  	if deterministic {
   416  		return xxx_messageInfo_EventGranted.Marshal(b, m, deterministic)
   417  	} else {
   418  		b = b[:cap(b)]
   419  		n, err := m.MarshalToSizedBuffer(b)
   420  		if err != nil {
   421  			return nil, err
   422  		}
   423  		return b[:n], nil
   424  	}
   425  }
   426  func (m *EventGranted) XXX_Merge(src proto.Message) {
   427  	xxx_messageInfo_EventGranted.Merge(m, src)
   428  }
   429  func (m *EventGranted) XXX_Size() int {
   430  	return m.Size()
   431  }
   432  func (m *EventGranted) XXX_DiscardUnknown() {
   433  	xxx_messageInfo_EventGranted.DiscardUnknown(m)
   434  }
   435  
   436  var xxx_messageInfo_EventGranted proto.InternalMessageInfo
   437  
   438  func (m *EventGranted) GetContractId() string {
   439  	if m != nil {
   440  		return m.ContractId
   441  	}
   442  	return ""
   443  }
   444  
   445  func (m *EventGranted) GetGranter() string {
   446  	if m != nil {
   447  		return m.Granter
   448  	}
   449  	return ""
   450  }
   451  
   452  func (m *EventGranted) GetGrantee() string {
   453  	if m != nil {
   454  		return m.Grantee
   455  	}
   456  	return ""
   457  }
   458  
   459  func (m *EventGranted) GetPermission() Permission {
   460  	if m != nil {
   461  		return m.Permission
   462  	}
   463  	return PermissionUnspecified
   464  }
   465  
   466  // EventRenounced is emitted when a grantee renounces its permission.
   467  //
   468  // Since: 0.46.0 (finschia)
   469  //
   470  // Deprecated: Do not use.
   471  type EventRenounced struct {
   472  	// contract id associated with the contract.
   473  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   474  	// address of the grantee which abandons its grant.
   475  	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
   476  	// permission on the contract.
   477  	Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"`
   478  }
   479  
   480  func (m *EventRenounced) Reset()         { *m = EventRenounced{} }
   481  func (m *EventRenounced) String() string { return proto.CompactTextString(m) }
   482  func (*EventRenounced) ProtoMessage()    {}
   483  func (*EventRenounced) Descriptor() ([]byte, []int) {
   484  	return fileDescriptor_d7505f4c4cdec18e, []int{5}
   485  }
   486  func (m *EventRenounced) XXX_Unmarshal(b []byte) error {
   487  	return m.Unmarshal(b)
   488  }
   489  func (m *EventRenounced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   490  	if deterministic {
   491  		return xxx_messageInfo_EventRenounced.Marshal(b, m, deterministic)
   492  	} else {
   493  		b = b[:cap(b)]
   494  		n, err := m.MarshalToSizedBuffer(b)
   495  		if err != nil {
   496  			return nil, err
   497  		}
   498  		return b[:n], nil
   499  	}
   500  }
   501  func (m *EventRenounced) XXX_Merge(src proto.Message) {
   502  	xxx_messageInfo_EventRenounced.Merge(m, src)
   503  }
   504  func (m *EventRenounced) XXX_Size() int {
   505  	return m.Size()
   506  }
   507  func (m *EventRenounced) XXX_DiscardUnknown() {
   508  	xxx_messageInfo_EventRenounced.DiscardUnknown(m)
   509  }
   510  
   511  var xxx_messageInfo_EventRenounced proto.InternalMessageInfo
   512  
   513  func (m *EventRenounced) GetContractId() string {
   514  	if m != nil {
   515  		return m.ContractId
   516  	}
   517  	return ""
   518  }
   519  
   520  func (m *EventRenounced) GetGrantee() string {
   521  	if m != nil {
   522  		return m.Grantee
   523  	}
   524  	return ""
   525  }
   526  
   527  func (m *EventRenounced) GetPermission() Permission {
   528  	if m != nil {
   529  		return m.Permission
   530  	}
   531  	return PermissionUnspecified
   532  }
   533  
   534  // EventMinted is emitted when tokens are minted.
   535  //
   536  // Since: 0.46.0 (finschia)
   537  //
   538  // Deprecated: Do not use.
   539  type EventMinted struct {
   540  	// contract id associated with the contract.
   541  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   542  	// address which triggered the mint.
   543  	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
   544  	// recipient of the tokens.
   545  	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
   546  	// number of tokens minted.
   547  	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"`
   548  }
   549  
   550  func (m *EventMinted) Reset()         { *m = EventMinted{} }
   551  func (m *EventMinted) String() string { return proto.CompactTextString(m) }
   552  func (*EventMinted) ProtoMessage()    {}
   553  func (*EventMinted) Descriptor() ([]byte, []int) {
   554  	return fileDescriptor_d7505f4c4cdec18e, []int{6}
   555  }
   556  func (m *EventMinted) XXX_Unmarshal(b []byte) error {
   557  	return m.Unmarshal(b)
   558  }
   559  func (m *EventMinted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   560  	if deterministic {
   561  		return xxx_messageInfo_EventMinted.Marshal(b, m, deterministic)
   562  	} else {
   563  		b = b[:cap(b)]
   564  		n, err := m.MarshalToSizedBuffer(b)
   565  		if err != nil {
   566  			return nil, err
   567  		}
   568  		return b[:n], nil
   569  	}
   570  }
   571  func (m *EventMinted) XXX_Merge(src proto.Message) {
   572  	xxx_messageInfo_EventMinted.Merge(m, src)
   573  }
   574  func (m *EventMinted) XXX_Size() int {
   575  	return m.Size()
   576  }
   577  func (m *EventMinted) XXX_DiscardUnknown() {
   578  	xxx_messageInfo_EventMinted.DiscardUnknown(m)
   579  }
   580  
   581  var xxx_messageInfo_EventMinted proto.InternalMessageInfo
   582  
   583  func (m *EventMinted) GetContractId() string {
   584  	if m != nil {
   585  		return m.ContractId
   586  	}
   587  	return ""
   588  }
   589  
   590  func (m *EventMinted) GetOperator() string {
   591  	if m != nil {
   592  		return m.Operator
   593  	}
   594  	return ""
   595  }
   596  
   597  func (m *EventMinted) GetTo() string {
   598  	if m != nil {
   599  		return m.To
   600  	}
   601  	return ""
   602  }
   603  
   604  // EventBurned is emitted when tokens are burnt.
   605  //
   606  // Since: 0.46.0 (finschia)
   607  //
   608  // Deprecated: Do not use.
   609  type EventBurned struct {
   610  	// contract id associated with the contract.
   611  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   612  	// address which triggered the burn.
   613  	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
   614  	// holder whose tokens were burned.
   615  	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
   616  	// number of tokens burned.
   617  	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"`
   618  }
   619  
   620  func (m *EventBurned) Reset()         { *m = EventBurned{} }
   621  func (m *EventBurned) String() string { return proto.CompactTextString(m) }
   622  func (*EventBurned) ProtoMessage()    {}
   623  func (*EventBurned) Descriptor() ([]byte, []int) {
   624  	return fileDescriptor_d7505f4c4cdec18e, []int{7}
   625  }
   626  func (m *EventBurned) XXX_Unmarshal(b []byte) error {
   627  	return m.Unmarshal(b)
   628  }
   629  func (m *EventBurned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   630  	if deterministic {
   631  		return xxx_messageInfo_EventBurned.Marshal(b, m, deterministic)
   632  	} else {
   633  		b = b[:cap(b)]
   634  		n, err := m.MarshalToSizedBuffer(b)
   635  		if err != nil {
   636  			return nil, err
   637  		}
   638  		return b[:n], nil
   639  	}
   640  }
   641  func (m *EventBurned) XXX_Merge(src proto.Message) {
   642  	xxx_messageInfo_EventBurned.Merge(m, src)
   643  }
   644  func (m *EventBurned) XXX_Size() int {
   645  	return m.Size()
   646  }
   647  func (m *EventBurned) XXX_DiscardUnknown() {
   648  	xxx_messageInfo_EventBurned.DiscardUnknown(m)
   649  }
   650  
   651  var xxx_messageInfo_EventBurned proto.InternalMessageInfo
   652  
   653  func (m *EventBurned) GetContractId() string {
   654  	if m != nil {
   655  		return m.ContractId
   656  	}
   657  	return ""
   658  }
   659  
   660  func (m *EventBurned) GetOperator() string {
   661  	if m != nil {
   662  		return m.Operator
   663  	}
   664  	return ""
   665  }
   666  
   667  func (m *EventBurned) GetFrom() string {
   668  	if m != nil {
   669  		return m.From
   670  	}
   671  	return ""
   672  }
   673  
   674  // EventModified is emitted when the information of a contract is modified.
   675  //
   676  // Since: 0.46.0 (finschia)
   677  //
   678  // Deprecated: Do not use.
   679  type EventModified struct {
   680  	// contract id associated with the contract.
   681  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   682  	// address which triggered the modify.
   683  	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
   684  	// changes on the metadata of the class.
   685  	// possible attribute keys are same as those of MsgModify.
   686  	// deprecated "img_uri" has been replaced by "uri" in the events.
   687  	Changes []Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"`
   688  }
   689  
   690  func (m *EventModified) Reset()         { *m = EventModified{} }
   691  func (m *EventModified) String() string { return proto.CompactTextString(m) }
   692  func (*EventModified) ProtoMessage()    {}
   693  func (*EventModified) Descriptor() ([]byte, []int) {
   694  	return fileDescriptor_d7505f4c4cdec18e, []int{8}
   695  }
   696  func (m *EventModified) XXX_Unmarshal(b []byte) error {
   697  	return m.Unmarshal(b)
   698  }
   699  func (m *EventModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   700  	if deterministic {
   701  		return xxx_messageInfo_EventModified.Marshal(b, m, deterministic)
   702  	} else {
   703  		b = b[:cap(b)]
   704  		n, err := m.MarshalToSizedBuffer(b)
   705  		if err != nil {
   706  			return nil, err
   707  		}
   708  		return b[:n], nil
   709  	}
   710  }
   711  func (m *EventModified) XXX_Merge(src proto.Message) {
   712  	xxx_messageInfo_EventModified.Merge(m, src)
   713  }
   714  func (m *EventModified) XXX_Size() int {
   715  	return m.Size()
   716  }
   717  func (m *EventModified) XXX_DiscardUnknown() {
   718  	xxx_messageInfo_EventModified.DiscardUnknown(m)
   719  }
   720  
   721  var xxx_messageInfo_EventModified proto.InternalMessageInfo
   722  
   723  func (m *EventModified) GetContractId() string {
   724  	if m != nil {
   725  		return m.ContractId
   726  	}
   727  	return ""
   728  }
   729  
   730  func (m *EventModified) GetOperator() string {
   731  	if m != nil {
   732  		return m.Operator
   733  	}
   734  	return ""
   735  }
   736  
   737  func (m *EventModified) GetChanges() []Attribute {
   738  	if m != nil {
   739  		return m.Changes
   740  	}
   741  	return nil
   742  }
   743  
   744  func init() {
   745  	proto.RegisterEnum("lbm.token.v1.AttributeKey", AttributeKey_name, AttributeKey_value)
   746  	proto.RegisterType((*EventSent)(nil), "lbm.token.v1.EventSent")
   747  	proto.RegisterType((*EventAuthorizedOperator)(nil), "lbm.token.v1.EventAuthorizedOperator")
   748  	proto.RegisterType((*EventRevokedOperator)(nil), "lbm.token.v1.EventRevokedOperator")
   749  	proto.RegisterType((*EventIssued)(nil), "lbm.token.v1.EventIssued")
   750  	proto.RegisterType((*EventGranted)(nil), "lbm.token.v1.EventGranted")
   751  	proto.RegisterType((*EventRenounced)(nil), "lbm.token.v1.EventRenounced")
   752  	proto.RegisterType((*EventMinted)(nil), "lbm.token.v1.EventMinted")
   753  	proto.RegisterType((*EventBurned)(nil), "lbm.token.v1.EventBurned")
   754  	proto.RegisterType((*EventModified)(nil), "lbm.token.v1.EventModified")
   755  }
   756  
   757  func init() { proto.RegisterFile("lbm/token/v1/event.proto", fileDescriptor_d7505f4c4cdec18e) }
   758  
   759  var fileDescriptor_d7505f4c4cdec18e = []byte{
   760  	// 757 bytes of a gzipped FileDescriptorProto
   761  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x4a,
   762  	0x14, 0x8e, 0x7f, 0x9a, 0xa4, 0xd3, 0xde, 0xd4, 0xd7, 0x37, 0x97, 0x0e, 0x46, 0x72, 0xad, 0xac,
   763  	0xa2, 0x0a, 0x12, 0xb5, 0x5d, 0x80, 0xba, 0x4b, 0x20, 0xad, 0x4c, 0x95, 0x52, 0xb9, 0xc9, 0x02,
   764  	0x36, 0x91, 0x63, 0x4f, 0x13, 0xab, 0xf1, 0x4c, 0x64, 0x8f, 0x23, 0xca, 0x13, 0xd0, 0xac, 0x78,
   765  	0x81, 0x2c, 0x10, 0x20, 0x21, 0x16, 0x3c, 0x01, 0x0f, 0xd0, 0x65, 0x57, 0x08, 0xb1, 0xa8, 0x50,
   766  	0xfb, 0x22, 0xc8, 0xe3, 0x38, 0xc4, 0x6d, 0x45, 0xa9, 0x5a, 0xb1, 0x3b, 0xdf, 0x9c, 0xef, 0xf8,
   767  	0x7c, 0xdf, 0x1c, 0x1f, 0x1b, 0xc0, 0x5e, 0xdb, 0x2d, 0x53, 0xb2, 0x8f, 0x70, 0x79, 0xb0, 0x52,
   768  	0x46, 0x03, 0x84, 0x69, 0xa9, 0xef, 0x11, 0x4a, 0xe4, 0xf9, 0x5e, 0xdb, 0x2d, 0xb1, 0x4c, 0x69,
   769  	0xb0, 0xa2, 0xe4, 0x3b, 0xa4, 0x43, 0x58, 0xa2, 0x1c, 0x46, 0x11, 0x47, 0x49, 0x56, 0x47, 0x64,
   770  	0x96, 0x29, 0x7c, 0xe1, 0xc0, 0x6c, 0x2d, 0x7c, 0xda, 0x2e, 0xc2, 0x54, 0x5e, 0x02, 0x73, 0x16,
   771  	0xc1, 0xd4, 0x33, 0x2d, 0xda, 0x72, 0x6c, 0xc8, 0x69, 0x5c, 0x71, 0xd6, 0x00, 0xf1, 0x91, 0x6e,
   772  	0xcb, 0x0a, 0xc8, 0x92, 0x3e, 0xf2, 0x4c, 0x4a, 0x3c, 0xc8, 0xb3, 0xec, 0x04, 0xcb, 0x32, 0x10,
   773  	0xf7, 0x3c, 0xe2, 0x42, 0x81, 0x9d, 0xb3, 0x58, 0xce, 0x01, 0x9e, 0x12, 0x28, 0xb2, 0x13, 0x9e,
   774  	0x12, 0xf9, 0x29, 0x48, 0x9b, 0x2e, 0x09, 0x30, 0x85, 0x33, 0xe1, 0x59, 0x75, 0xf5, 0xe8, 0x64,
   775  	0x29, 0xf5, 0xfd, 0x64, 0x69, 0xb9, 0xe3, 0xd0, 0x6e, 0xd0, 0x2e, 0x59, 0xc4, 0x2d, 0x6f, 0x38,
   776  	0xd8, 0xb7, 0xba, 0x8e, 0x59, 0xde, 0x1b, 0x07, 0x0f, 0x7c, 0x7b, 0xbf, 0x4c, 0x0f, 0xfa, 0xc8,
   777  	0x2f, 0xe9, 0x98, 0x1a, 0xe3, 0x27, 0xac, 0xf3, 0x90, 0x2b, 0x78, 0x60, 0x91, 0xa9, 0xaf, 0x04,
   778  	0xb4, 0x4b, 0x3c, 0xe7, 0x15, 0xb2, 0x9f, 0xc5, 0x72, 0xae, 0xf4, 0x72, 0x07, 0xa4, 0xbb, 0xa4,
   779  	0x67, 0xa3, 0xd8, 0xc9, 0x18, 0x25, 0x3c, 0x0a, 0x49, 0x8f, 0xac, 0x27, 0x01, 0x79, 0xd6, 0xd3,
   780  	0x40, 0x03, 0xb2, 0xff, 0x37, 0x1a, 0x7e, 0xe5, 0xc0, 0x1c, 0xeb, 0xa8, 0xfb, 0x7e, 0x80, 0x6c,
   781  	0x19, 0x82, 0x8c, 0xe5, 0x21, 0x46, 0x8f, 0x9a, 0xc4, 0xf0, 0xbc, 0x04, 0xfe, 0x82, 0x04, 0x19,
   782  	0x88, 0xd8, 0x74, 0x51, 0x3c, 0xa3, 0x30, 0x0e, 0x65, 0xf9, 0x07, 0x6e, 0x9b, 0xf4, 0xc6, 0x73,
   783  	0x1a, 0x23, 0x59, 0x02, 0x42, 0xe0, 0x39, 0xd1, 0xa0, 0x8c, 0x30, 0x0c, 0xab, 0x5d, 0x44, 0x4d,
   784  	0x98, 0x8e, 0xaa, 0xc3, 0x38, 0x14, 0x6f, 0x23, 0xcb, 0x71, 0xcd, 0x9e, 0x0f, 0x33, 0x1a, 0x57,
   785  	0x9c, 0x31, 0x26, 0x38, 0xcc, 0xb9, 0x0e, 0xa6, 0x66, 0xbb, 0x87, 0x60, 0x56, 0xe3, 0x8a, 0x59,
   786  	0x63, 0x82, 0x99, 0xb1, 0xb7, 0x1c, 0x98, 0x67, 0xc6, 0x36, 0x3d, 0x13, 0x53, 0x64, 0x5f, 0x7d,
   787  	0x85, 0x10, 0x64, 0x3a, 0x8c, 0x1b, 0xdf, 0x61, 0x0c, 0x7f, 0x65, 0x62, 0x73, 0x31, 0x94, 0x1f,
   788  	0x01, 0xd0, 0x47, 0x9e, 0xeb, 0xf8, 0xbe, 0x43, 0x30, 0xf3, 0x98, 0x5b, 0x85, 0xa5, 0xe9, 0xad,
   789  	0x29, 0xed, 0x4c, 0xf2, 0xc6, 0x14, 0x97, 0x69, 0x3c, 0xe4, 0x40, 0x6e, 0x3c, 0x6e, 0x4c, 0x02,
   790  	0x6c, 0x5d, 0x4b, 0x25, 0x4a, 0xaa, 0x3c, 0xaf, 0x45, 0xb8, 0xa6, 0x96, 0x4f, 0xf1, 0x8b, 0x50,
   791  	0x77, 0xfe, 0xec, 0xba, 0x7e, 0xb7, 0xae, 0xd1, 0x6a, 0x0a, 0x97, 0xac, 0xa6, 0x78, 0x2b, 0xab,
   792  	0xf9, 0x39, 0x16, 0x5b, 0x0d, 0x3c, 0x7c, 0x53, 0xb1, 0x97, 0x7d, 0x5b, 0x6e, 0x5b, 0xf0, 0x21,
   793  	0x07, 0xfe, 0x89, 0x6e, 0x97, 0xd8, 0xce, 0x9e, 0x73, 0x53, 0xc9, 0x0f, 0x41, 0xc6, 0xea, 0x9a,
   794  	0xb8, 0x83, 0x7c, 0x28, 0x68, 0x42, 0x71, 0x6e, 0x75, 0x31, 0x39, 0xe7, 0x0a, 0xa5, 0x9e, 0xd3,
   795  	0x0e, 0x28, 0xaa, 0x8a, 0xa1, 0x70, 0x23, 0x66, 0x87, 0x5a, 0x96, 0x3f, 0xf0, 0x60, 0x7e, 0x42,
   796  	0xd8, 0x42, 0x07, 0xf2, 0x3a, 0xb8, 0x5b, 0x69, 0x34, 0x0c, 0xbd, 0xda, 0x6c, 0xd4, 0x5a, 0x5b,
   797  	0xb5, 0xe7, 0xad, 0xe6, 0xf6, 0xee, 0x4e, 0xed, 0xb1, 0xbe, 0xa1, 0xd7, 0x9e, 0x48, 0x29, 0xe5,
   798  	0xde, 0x70, 0xa4, 0x2d, 0x4e, 0x17, 0x34, 0xb1, 0xdf, 0x47, 0x56, 0x64, 0xe3, 0x3e, 0x90, 0x93,
   799  	0xb5, 0xdb, 0x95, 0x7a, 0x4d, 0xe2, 0x94, 0xfc, 0x70, 0xa4, 0x49, 0xd3, 0x45, 0xdb, 0xe1, 0xe7,
   800  	0xe0, 0x02, 0xbb, 0x5e, 0x6b, 0x54, 0x24, 0xe1, 0x22, 0xbb, 0x1e, 0xae, 0xff, 0x1a, 0xf8, 0x3f,
   801  	0xc9, 0xd6, 0xeb, 0x9b, 0xad, 0xa6, 0xa1, 0x4b, 0x59, 0x05, 0x0e, 0x47, 0x5a, 0x7e, 0xba, 0x40,
   802  	0x77, 0xcd, 0x0e, 0x6a, 0x1a, 0xba, 0xbc, 0x0c, 0xfe, 0x3d, 0x67, 0xc6, 0xd0, 0xa5, 0x05, 0xe5,
   803  	0xbf, 0xe1, 0x48, 0x5b, 0x48, 0x98, 0x30, 0x74, 0x05, 0xbc, 0x7e, 0xa7, 0xa6, 0x3e, 0xbe, 0x57,
   804  	0x53, 0x90, 0x2b, 0x88, 0x59, 0x5e, 0xe2, 0x0b, 0x62, 0x56, 0x94, 0x32, 0x05, 0x31, 0x3b, 0x2b,
   805  	0xe5, 0xaa, 0xd5, 0xa3, 0x53, 0x95, 0x3b, 0x3e, 0x55, 0xb9, 0x1f, 0xa7, 0x2a, 0xf7, 0xe6, 0x4c,
   806  	0x4d, 0x1d, 0x9f, 0xa9, 0xa9, 0x6f, 0x67, 0x6a, 0xea, 0x45, 0xf1, 0xca, 0xb7, 0xe0, 0x65, 0xf4,
   807  	0x23, 0x6c, 0xa7, 0xd9, 0x9f, 0x70, 0xed, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xb9, 0xa7,
   808  	0x0f, 0x63, 0x07, 0x00, 0x00,
   809  }
   810  
   811  func (m *EventSent) Marshal() (dAtA []byte, err error) {
   812  	size := m.Size()
   813  	dAtA = make([]byte, size)
   814  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   815  	if err != nil {
   816  		return nil, err
   817  	}
   818  	return dAtA[:n], nil
   819  }
   820  
   821  func (m *EventSent) MarshalTo(dAtA []byte) (int, error) {
   822  	size := m.Size()
   823  	return m.MarshalToSizedBuffer(dAtA[:size])
   824  }
   825  
   826  func (m *EventSent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   827  	i := len(dAtA)
   828  	_ = i
   829  	var l int
   830  	_ = l
   831  	{
   832  		size := m.Amount.Size()
   833  		i -= size
   834  		if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil {
   835  			return 0, err
   836  		}
   837  		i = encodeVarintEvent(dAtA, i, uint64(size))
   838  	}
   839  	i--
   840  	dAtA[i] = 0x2a
   841  	if len(m.To) > 0 {
   842  		i -= len(m.To)
   843  		copy(dAtA[i:], m.To)
   844  		i = encodeVarintEvent(dAtA, i, uint64(len(m.To)))
   845  		i--
   846  		dAtA[i] = 0x22
   847  	}
   848  	if len(m.From) > 0 {
   849  		i -= len(m.From)
   850  		copy(dAtA[i:], m.From)
   851  		i = encodeVarintEvent(dAtA, i, uint64(len(m.From)))
   852  		i--
   853  		dAtA[i] = 0x1a
   854  	}
   855  	if len(m.Operator) > 0 {
   856  		i -= len(m.Operator)
   857  		copy(dAtA[i:], m.Operator)
   858  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator)))
   859  		i--
   860  		dAtA[i] = 0x12
   861  	}
   862  	if len(m.ContractId) > 0 {
   863  		i -= len(m.ContractId)
   864  		copy(dAtA[i:], m.ContractId)
   865  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
   866  		i--
   867  		dAtA[i] = 0xa
   868  	}
   869  	return len(dAtA) - i, nil
   870  }
   871  
   872  func (m *EventAuthorizedOperator) Marshal() (dAtA []byte, err error) {
   873  	size := m.Size()
   874  	dAtA = make([]byte, size)
   875  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   876  	if err != nil {
   877  		return nil, err
   878  	}
   879  	return dAtA[:n], nil
   880  }
   881  
   882  func (m *EventAuthorizedOperator) MarshalTo(dAtA []byte) (int, error) {
   883  	size := m.Size()
   884  	return m.MarshalToSizedBuffer(dAtA[:size])
   885  }
   886  
   887  func (m *EventAuthorizedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   888  	i := len(dAtA)
   889  	_ = i
   890  	var l int
   891  	_ = l
   892  	if len(m.Operator) > 0 {
   893  		i -= len(m.Operator)
   894  		copy(dAtA[i:], m.Operator)
   895  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator)))
   896  		i--
   897  		dAtA[i] = 0x1a
   898  	}
   899  	if len(m.Holder) > 0 {
   900  		i -= len(m.Holder)
   901  		copy(dAtA[i:], m.Holder)
   902  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder)))
   903  		i--
   904  		dAtA[i] = 0x12
   905  	}
   906  	if len(m.ContractId) > 0 {
   907  		i -= len(m.ContractId)
   908  		copy(dAtA[i:], m.ContractId)
   909  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
   910  		i--
   911  		dAtA[i] = 0xa
   912  	}
   913  	return len(dAtA) - i, nil
   914  }
   915  
   916  func (m *EventRevokedOperator) Marshal() (dAtA []byte, err error) {
   917  	size := m.Size()
   918  	dAtA = make([]byte, size)
   919  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   920  	if err != nil {
   921  		return nil, err
   922  	}
   923  	return dAtA[:n], nil
   924  }
   925  
   926  func (m *EventRevokedOperator) MarshalTo(dAtA []byte) (int, error) {
   927  	size := m.Size()
   928  	return m.MarshalToSizedBuffer(dAtA[:size])
   929  }
   930  
   931  func (m *EventRevokedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   932  	i := len(dAtA)
   933  	_ = i
   934  	var l int
   935  	_ = l
   936  	if len(m.Operator) > 0 {
   937  		i -= len(m.Operator)
   938  		copy(dAtA[i:], m.Operator)
   939  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator)))
   940  		i--
   941  		dAtA[i] = 0x1a
   942  	}
   943  	if len(m.Holder) > 0 {
   944  		i -= len(m.Holder)
   945  		copy(dAtA[i:], m.Holder)
   946  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder)))
   947  		i--
   948  		dAtA[i] = 0x12
   949  	}
   950  	if len(m.ContractId) > 0 {
   951  		i -= len(m.ContractId)
   952  		copy(dAtA[i:], m.ContractId)
   953  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
   954  		i--
   955  		dAtA[i] = 0xa
   956  	}
   957  	return len(dAtA) - i, nil
   958  }
   959  
   960  func (m *EventIssued) Marshal() (dAtA []byte, err error) {
   961  	size := m.Size()
   962  	dAtA = make([]byte, size)
   963  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   964  	if err != nil {
   965  		return nil, err
   966  	}
   967  	return dAtA[:n], nil
   968  }
   969  
   970  func (m *EventIssued) MarshalTo(dAtA []byte) (int, error) {
   971  	size := m.Size()
   972  	return m.MarshalToSizedBuffer(dAtA[:size])
   973  }
   974  
   975  func (m *EventIssued) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   976  	i := len(dAtA)
   977  	_ = i
   978  	var l int
   979  	_ = l
   980  	if m.Mintable {
   981  		i--
   982  		if m.Mintable {
   983  			dAtA[i] = 1
   984  		} else {
   985  			dAtA[i] = 0
   986  		}
   987  		i--
   988  		dAtA[i] = 0x40
   989  	}
   990  	if m.Decimals != 0 {
   991  		i = encodeVarintEvent(dAtA, i, uint64(m.Decimals))
   992  		i--
   993  		dAtA[i] = 0x38
   994  	}
   995  	if len(m.Meta) > 0 {
   996  		i -= len(m.Meta)
   997  		copy(dAtA[i:], m.Meta)
   998  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta)))
   999  		i--
  1000  		dAtA[i] = 0x32
  1001  	}
  1002  	if len(m.Uri) > 0 {
  1003  		i -= len(m.Uri)
  1004  		copy(dAtA[i:], m.Uri)
  1005  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Uri)))
  1006  		i--
  1007  		dAtA[i] = 0x2a
  1008  	}
  1009  	if len(m.Symbol) > 0 {
  1010  		i -= len(m.Symbol)
  1011  		copy(dAtA[i:], m.Symbol)
  1012  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Symbol)))
  1013  		i--
  1014  		dAtA[i] = 0x22
  1015  	}
  1016  	if len(m.Name) > 0 {
  1017  		i -= len(m.Name)
  1018  		copy(dAtA[i:], m.Name)
  1019  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Name)))
  1020  		i--
  1021  		dAtA[i] = 0x1a
  1022  	}
  1023  	if len(m.ContractId) > 0 {
  1024  		i -= len(m.ContractId)
  1025  		copy(dAtA[i:], m.ContractId)
  1026  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
  1027  		i--
  1028  		dAtA[i] = 0x12
  1029  	}
  1030  	if len(m.Creator) > 0 {
  1031  		i -= len(m.Creator)
  1032  		copy(dAtA[i:], m.Creator)
  1033  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Creator)))
  1034  		i--
  1035  		dAtA[i] = 0xa
  1036  	}
  1037  	return len(dAtA) - i, nil
  1038  }
  1039  
  1040  func (m *EventGranted) Marshal() (dAtA []byte, err error) {
  1041  	size := m.Size()
  1042  	dAtA = make([]byte, size)
  1043  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1044  	if err != nil {
  1045  		return nil, err
  1046  	}
  1047  	return dAtA[:n], nil
  1048  }
  1049  
  1050  func (m *EventGranted) MarshalTo(dAtA []byte) (int, error) {
  1051  	size := m.Size()
  1052  	return m.MarshalToSizedBuffer(dAtA[:size])
  1053  }
  1054  
  1055  func (m *EventGranted) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1056  	i := len(dAtA)
  1057  	_ = i
  1058  	var l int
  1059  	_ = l
  1060  	if m.Permission != 0 {
  1061  		i = encodeVarintEvent(dAtA, i, uint64(m.Permission))
  1062  		i--
  1063  		dAtA[i] = 0x20
  1064  	}
  1065  	if len(m.Grantee) > 0 {
  1066  		i -= len(m.Grantee)
  1067  		copy(dAtA[i:], m.Grantee)
  1068  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee)))
  1069  		i--
  1070  		dAtA[i] = 0x1a
  1071  	}
  1072  	if len(m.Granter) > 0 {
  1073  		i -= len(m.Granter)
  1074  		copy(dAtA[i:], m.Granter)
  1075  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter)))
  1076  		i--
  1077  		dAtA[i] = 0x12
  1078  	}
  1079  	if len(m.ContractId) > 0 {
  1080  		i -= len(m.ContractId)
  1081  		copy(dAtA[i:], m.ContractId)
  1082  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
  1083  		i--
  1084  		dAtA[i] = 0xa
  1085  	}
  1086  	return len(dAtA) - i, nil
  1087  }
  1088  
  1089  func (m *EventRenounced) Marshal() (dAtA []byte, err error) {
  1090  	size := m.Size()
  1091  	dAtA = make([]byte, size)
  1092  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1093  	if err != nil {
  1094  		return nil, err
  1095  	}
  1096  	return dAtA[:n], nil
  1097  }
  1098  
  1099  func (m *EventRenounced) MarshalTo(dAtA []byte) (int, error) {
  1100  	size := m.Size()
  1101  	return m.MarshalToSizedBuffer(dAtA[:size])
  1102  }
  1103  
  1104  func (m *EventRenounced) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1105  	i := len(dAtA)
  1106  	_ = i
  1107  	var l int
  1108  	_ = l
  1109  	if m.Permission != 0 {
  1110  		i = encodeVarintEvent(dAtA, i, uint64(m.Permission))
  1111  		i--
  1112  		dAtA[i] = 0x18
  1113  	}
  1114  	if len(m.Grantee) > 0 {
  1115  		i -= len(m.Grantee)
  1116  		copy(dAtA[i:], m.Grantee)
  1117  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee)))
  1118  		i--
  1119  		dAtA[i] = 0x12
  1120  	}
  1121  	if len(m.ContractId) > 0 {
  1122  		i -= len(m.ContractId)
  1123  		copy(dAtA[i:], m.ContractId)
  1124  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
  1125  		i--
  1126  		dAtA[i] = 0xa
  1127  	}
  1128  	return len(dAtA) - i, nil
  1129  }
  1130  
  1131  func (m *EventMinted) Marshal() (dAtA []byte, err error) {
  1132  	size := m.Size()
  1133  	dAtA = make([]byte, size)
  1134  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1135  	if err != nil {
  1136  		return nil, err
  1137  	}
  1138  	return dAtA[:n], nil
  1139  }
  1140  
  1141  func (m *EventMinted) MarshalTo(dAtA []byte) (int, error) {
  1142  	size := m.Size()
  1143  	return m.MarshalToSizedBuffer(dAtA[:size])
  1144  }
  1145  
  1146  func (m *EventMinted) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1147  	i := len(dAtA)
  1148  	_ = i
  1149  	var l int
  1150  	_ = l
  1151  	{
  1152  		size := m.Amount.Size()
  1153  		i -= size
  1154  		if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil {
  1155  			return 0, err
  1156  		}
  1157  		i = encodeVarintEvent(dAtA, i, uint64(size))
  1158  	}
  1159  	i--
  1160  	dAtA[i] = 0x22
  1161  	if len(m.To) > 0 {
  1162  		i -= len(m.To)
  1163  		copy(dAtA[i:], m.To)
  1164  		i = encodeVarintEvent(dAtA, i, uint64(len(m.To)))
  1165  		i--
  1166  		dAtA[i] = 0x1a
  1167  	}
  1168  	if len(m.Operator) > 0 {
  1169  		i -= len(m.Operator)
  1170  		copy(dAtA[i:], m.Operator)
  1171  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator)))
  1172  		i--
  1173  		dAtA[i] = 0x12
  1174  	}
  1175  	if len(m.ContractId) > 0 {
  1176  		i -= len(m.ContractId)
  1177  		copy(dAtA[i:], m.ContractId)
  1178  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
  1179  		i--
  1180  		dAtA[i] = 0xa
  1181  	}
  1182  	return len(dAtA) - i, nil
  1183  }
  1184  
  1185  func (m *EventBurned) Marshal() (dAtA []byte, err error) {
  1186  	size := m.Size()
  1187  	dAtA = make([]byte, size)
  1188  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1189  	if err != nil {
  1190  		return nil, err
  1191  	}
  1192  	return dAtA[:n], nil
  1193  }
  1194  
  1195  func (m *EventBurned) MarshalTo(dAtA []byte) (int, error) {
  1196  	size := m.Size()
  1197  	return m.MarshalToSizedBuffer(dAtA[:size])
  1198  }
  1199  
  1200  func (m *EventBurned) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1201  	i := len(dAtA)
  1202  	_ = i
  1203  	var l int
  1204  	_ = l
  1205  	{
  1206  		size := m.Amount.Size()
  1207  		i -= size
  1208  		if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil {
  1209  			return 0, err
  1210  		}
  1211  		i = encodeVarintEvent(dAtA, i, uint64(size))
  1212  	}
  1213  	i--
  1214  	dAtA[i] = 0x22
  1215  	if len(m.From) > 0 {
  1216  		i -= len(m.From)
  1217  		copy(dAtA[i:], m.From)
  1218  		i = encodeVarintEvent(dAtA, i, uint64(len(m.From)))
  1219  		i--
  1220  		dAtA[i] = 0x1a
  1221  	}
  1222  	if len(m.Operator) > 0 {
  1223  		i -= len(m.Operator)
  1224  		copy(dAtA[i:], m.Operator)
  1225  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator)))
  1226  		i--
  1227  		dAtA[i] = 0x12
  1228  	}
  1229  	if len(m.ContractId) > 0 {
  1230  		i -= len(m.ContractId)
  1231  		copy(dAtA[i:], m.ContractId)
  1232  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
  1233  		i--
  1234  		dAtA[i] = 0xa
  1235  	}
  1236  	return len(dAtA) - i, nil
  1237  }
  1238  
  1239  func (m *EventModified) Marshal() (dAtA []byte, err error) {
  1240  	size := m.Size()
  1241  	dAtA = make([]byte, size)
  1242  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1243  	if err != nil {
  1244  		return nil, err
  1245  	}
  1246  	return dAtA[:n], nil
  1247  }
  1248  
  1249  func (m *EventModified) MarshalTo(dAtA []byte) (int, error) {
  1250  	size := m.Size()
  1251  	return m.MarshalToSizedBuffer(dAtA[:size])
  1252  }
  1253  
  1254  func (m *EventModified) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1255  	i := len(dAtA)
  1256  	_ = i
  1257  	var l int
  1258  	_ = l
  1259  	if len(m.Changes) > 0 {
  1260  		for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- {
  1261  			{
  1262  				size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1263  				if err != nil {
  1264  					return 0, err
  1265  				}
  1266  				i -= size
  1267  				i = encodeVarintEvent(dAtA, i, uint64(size))
  1268  			}
  1269  			i--
  1270  			dAtA[i] = 0x1a
  1271  		}
  1272  	}
  1273  	if len(m.Operator) > 0 {
  1274  		i -= len(m.Operator)
  1275  		copy(dAtA[i:], m.Operator)
  1276  		i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator)))
  1277  		i--
  1278  		dAtA[i] = 0x12
  1279  	}
  1280  	if len(m.ContractId) > 0 {
  1281  		i -= len(m.ContractId)
  1282  		copy(dAtA[i:], m.ContractId)
  1283  		i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId)))
  1284  		i--
  1285  		dAtA[i] = 0xa
  1286  	}
  1287  	return len(dAtA) - i, nil
  1288  }
  1289  
  1290  func encodeVarintEvent(dAtA []byte, offset int, v uint64) int {
  1291  	offset -= sovEvent(v)
  1292  	base := offset
  1293  	for v >= 1<<7 {
  1294  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1295  		v >>= 7
  1296  		offset++
  1297  	}
  1298  	dAtA[offset] = uint8(v)
  1299  	return base
  1300  }
  1301  func (m *EventSent) Size() (n int) {
  1302  	if m == nil {
  1303  		return 0
  1304  	}
  1305  	var l int
  1306  	_ = l
  1307  	l = len(m.ContractId)
  1308  	if l > 0 {
  1309  		n += 1 + l + sovEvent(uint64(l))
  1310  	}
  1311  	l = len(m.Operator)
  1312  	if l > 0 {
  1313  		n += 1 + l + sovEvent(uint64(l))
  1314  	}
  1315  	l = len(m.From)
  1316  	if l > 0 {
  1317  		n += 1 + l + sovEvent(uint64(l))
  1318  	}
  1319  	l = len(m.To)
  1320  	if l > 0 {
  1321  		n += 1 + l + sovEvent(uint64(l))
  1322  	}
  1323  	l = m.Amount.Size()
  1324  	n += 1 + l + sovEvent(uint64(l))
  1325  	return n
  1326  }
  1327  
  1328  func (m *EventAuthorizedOperator) Size() (n int) {
  1329  	if m == nil {
  1330  		return 0
  1331  	}
  1332  	var l int
  1333  	_ = l
  1334  	l = len(m.ContractId)
  1335  	if l > 0 {
  1336  		n += 1 + l + sovEvent(uint64(l))
  1337  	}
  1338  	l = len(m.Holder)
  1339  	if l > 0 {
  1340  		n += 1 + l + sovEvent(uint64(l))
  1341  	}
  1342  	l = len(m.Operator)
  1343  	if l > 0 {
  1344  		n += 1 + l + sovEvent(uint64(l))
  1345  	}
  1346  	return n
  1347  }
  1348  
  1349  func (m *EventRevokedOperator) Size() (n int) {
  1350  	if m == nil {
  1351  		return 0
  1352  	}
  1353  	var l int
  1354  	_ = l
  1355  	l = len(m.ContractId)
  1356  	if l > 0 {
  1357  		n += 1 + l + sovEvent(uint64(l))
  1358  	}
  1359  	l = len(m.Holder)
  1360  	if l > 0 {
  1361  		n += 1 + l + sovEvent(uint64(l))
  1362  	}
  1363  	l = len(m.Operator)
  1364  	if l > 0 {
  1365  		n += 1 + l + sovEvent(uint64(l))
  1366  	}
  1367  	return n
  1368  }
  1369  
  1370  func (m *EventIssued) Size() (n int) {
  1371  	if m == nil {
  1372  		return 0
  1373  	}
  1374  	var l int
  1375  	_ = l
  1376  	l = len(m.Creator)
  1377  	if l > 0 {
  1378  		n += 1 + l + sovEvent(uint64(l))
  1379  	}
  1380  	l = len(m.ContractId)
  1381  	if l > 0 {
  1382  		n += 1 + l + sovEvent(uint64(l))
  1383  	}
  1384  	l = len(m.Name)
  1385  	if l > 0 {
  1386  		n += 1 + l + sovEvent(uint64(l))
  1387  	}
  1388  	l = len(m.Symbol)
  1389  	if l > 0 {
  1390  		n += 1 + l + sovEvent(uint64(l))
  1391  	}
  1392  	l = len(m.Uri)
  1393  	if l > 0 {
  1394  		n += 1 + l + sovEvent(uint64(l))
  1395  	}
  1396  	l = len(m.Meta)
  1397  	if l > 0 {
  1398  		n += 1 + l + sovEvent(uint64(l))
  1399  	}
  1400  	if m.Decimals != 0 {
  1401  		n += 1 + sovEvent(uint64(m.Decimals))
  1402  	}
  1403  	if m.Mintable {
  1404  		n += 2
  1405  	}
  1406  	return n
  1407  }
  1408  
  1409  func (m *EventGranted) Size() (n int) {
  1410  	if m == nil {
  1411  		return 0
  1412  	}
  1413  	var l int
  1414  	_ = l
  1415  	l = len(m.ContractId)
  1416  	if l > 0 {
  1417  		n += 1 + l + sovEvent(uint64(l))
  1418  	}
  1419  	l = len(m.Granter)
  1420  	if l > 0 {
  1421  		n += 1 + l + sovEvent(uint64(l))
  1422  	}
  1423  	l = len(m.Grantee)
  1424  	if l > 0 {
  1425  		n += 1 + l + sovEvent(uint64(l))
  1426  	}
  1427  	if m.Permission != 0 {
  1428  		n += 1 + sovEvent(uint64(m.Permission))
  1429  	}
  1430  	return n
  1431  }
  1432  
  1433  func (m *EventRenounced) Size() (n int) {
  1434  	if m == nil {
  1435  		return 0
  1436  	}
  1437  	var l int
  1438  	_ = l
  1439  	l = len(m.ContractId)
  1440  	if l > 0 {
  1441  		n += 1 + l + sovEvent(uint64(l))
  1442  	}
  1443  	l = len(m.Grantee)
  1444  	if l > 0 {
  1445  		n += 1 + l + sovEvent(uint64(l))
  1446  	}
  1447  	if m.Permission != 0 {
  1448  		n += 1 + sovEvent(uint64(m.Permission))
  1449  	}
  1450  	return n
  1451  }
  1452  
  1453  func (m *EventMinted) Size() (n int) {
  1454  	if m == nil {
  1455  		return 0
  1456  	}
  1457  	var l int
  1458  	_ = l
  1459  	l = len(m.ContractId)
  1460  	if l > 0 {
  1461  		n += 1 + l + sovEvent(uint64(l))
  1462  	}
  1463  	l = len(m.Operator)
  1464  	if l > 0 {
  1465  		n += 1 + l + sovEvent(uint64(l))
  1466  	}
  1467  	l = len(m.To)
  1468  	if l > 0 {
  1469  		n += 1 + l + sovEvent(uint64(l))
  1470  	}
  1471  	l = m.Amount.Size()
  1472  	n += 1 + l + sovEvent(uint64(l))
  1473  	return n
  1474  }
  1475  
  1476  func (m *EventBurned) Size() (n int) {
  1477  	if m == nil {
  1478  		return 0
  1479  	}
  1480  	var l int
  1481  	_ = l
  1482  	l = len(m.ContractId)
  1483  	if l > 0 {
  1484  		n += 1 + l + sovEvent(uint64(l))
  1485  	}
  1486  	l = len(m.Operator)
  1487  	if l > 0 {
  1488  		n += 1 + l + sovEvent(uint64(l))
  1489  	}
  1490  	l = len(m.From)
  1491  	if l > 0 {
  1492  		n += 1 + l + sovEvent(uint64(l))
  1493  	}
  1494  	l = m.Amount.Size()
  1495  	n += 1 + l + sovEvent(uint64(l))
  1496  	return n
  1497  }
  1498  
  1499  func (m *EventModified) Size() (n int) {
  1500  	if m == nil {
  1501  		return 0
  1502  	}
  1503  	var l int
  1504  	_ = l
  1505  	l = len(m.ContractId)
  1506  	if l > 0 {
  1507  		n += 1 + l + sovEvent(uint64(l))
  1508  	}
  1509  	l = len(m.Operator)
  1510  	if l > 0 {
  1511  		n += 1 + l + sovEvent(uint64(l))
  1512  	}
  1513  	if len(m.Changes) > 0 {
  1514  		for _, e := range m.Changes {
  1515  			l = e.Size()
  1516  			n += 1 + l + sovEvent(uint64(l))
  1517  		}
  1518  	}
  1519  	return n
  1520  }
  1521  
  1522  func sovEvent(x uint64) (n int) {
  1523  	return (math_bits.Len64(x|1) + 6) / 7
  1524  }
  1525  func sozEvent(x uint64) (n int) {
  1526  	return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1527  }
  1528  func (m *EventSent) Unmarshal(dAtA []byte) error {
  1529  	l := len(dAtA)
  1530  	iNdEx := 0
  1531  	for iNdEx < l {
  1532  		preIndex := iNdEx
  1533  		var wire uint64
  1534  		for shift := uint(0); ; shift += 7 {
  1535  			if shift >= 64 {
  1536  				return ErrIntOverflowEvent
  1537  			}
  1538  			if iNdEx >= l {
  1539  				return io.ErrUnexpectedEOF
  1540  			}
  1541  			b := dAtA[iNdEx]
  1542  			iNdEx++
  1543  			wire |= uint64(b&0x7F) << shift
  1544  			if b < 0x80 {
  1545  				break
  1546  			}
  1547  		}
  1548  		fieldNum := int32(wire >> 3)
  1549  		wireType := int(wire & 0x7)
  1550  		if wireType == 4 {
  1551  			return fmt.Errorf("proto: EventSent: wiretype end group for non-group")
  1552  		}
  1553  		if fieldNum <= 0 {
  1554  			return fmt.Errorf("proto: EventSent: illegal tag %d (wire type %d)", fieldNum, wire)
  1555  		}
  1556  		switch fieldNum {
  1557  		case 1:
  1558  			if wireType != 2 {
  1559  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  1560  			}
  1561  			var stringLen uint64
  1562  			for shift := uint(0); ; shift += 7 {
  1563  				if shift >= 64 {
  1564  					return ErrIntOverflowEvent
  1565  				}
  1566  				if iNdEx >= l {
  1567  					return io.ErrUnexpectedEOF
  1568  				}
  1569  				b := dAtA[iNdEx]
  1570  				iNdEx++
  1571  				stringLen |= uint64(b&0x7F) << shift
  1572  				if b < 0x80 {
  1573  					break
  1574  				}
  1575  			}
  1576  			intStringLen := int(stringLen)
  1577  			if intStringLen < 0 {
  1578  				return ErrInvalidLengthEvent
  1579  			}
  1580  			postIndex := iNdEx + intStringLen
  1581  			if postIndex < 0 {
  1582  				return ErrInvalidLengthEvent
  1583  			}
  1584  			if postIndex > l {
  1585  				return io.ErrUnexpectedEOF
  1586  			}
  1587  			m.ContractId = string(dAtA[iNdEx:postIndex])
  1588  			iNdEx = postIndex
  1589  		case 2:
  1590  			if wireType != 2 {
  1591  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  1592  			}
  1593  			var stringLen uint64
  1594  			for shift := uint(0); ; shift += 7 {
  1595  				if shift >= 64 {
  1596  					return ErrIntOverflowEvent
  1597  				}
  1598  				if iNdEx >= l {
  1599  					return io.ErrUnexpectedEOF
  1600  				}
  1601  				b := dAtA[iNdEx]
  1602  				iNdEx++
  1603  				stringLen |= uint64(b&0x7F) << shift
  1604  				if b < 0x80 {
  1605  					break
  1606  				}
  1607  			}
  1608  			intStringLen := int(stringLen)
  1609  			if intStringLen < 0 {
  1610  				return ErrInvalidLengthEvent
  1611  			}
  1612  			postIndex := iNdEx + intStringLen
  1613  			if postIndex < 0 {
  1614  				return ErrInvalidLengthEvent
  1615  			}
  1616  			if postIndex > l {
  1617  				return io.ErrUnexpectedEOF
  1618  			}
  1619  			m.Operator = string(dAtA[iNdEx:postIndex])
  1620  			iNdEx = postIndex
  1621  		case 3:
  1622  			if wireType != 2 {
  1623  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  1624  			}
  1625  			var stringLen uint64
  1626  			for shift := uint(0); ; shift += 7 {
  1627  				if shift >= 64 {
  1628  					return ErrIntOverflowEvent
  1629  				}
  1630  				if iNdEx >= l {
  1631  					return io.ErrUnexpectedEOF
  1632  				}
  1633  				b := dAtA[iNdEx]
  1634  				iNdEx++
  1635  				stringLen |= uint64(b&0x7F) << shift
  1636  				if b < 0x80 {
  1637  					break
  1638  				}
  1639  			}
  1640  			intStringLen := int(stringLen)
  1641  			if intStringLen < 0 {
  1642  				return ErrInvalidLengthEvent
  1643  			}
  1644  			postIndex := iNdEx + intStringLen
  1645  			if postIndex < 0 {
  1646  				return ErrInvalidLengthEvent
  1647  			}
  1648  			if postIndex > l {
  1649  				return io.ErrUnexpectedEOF
  1650  			}
  1651  			m.From = string(dAtA[iNdEx:postIndex])
  1652  			iNdEx = postIndex
  1653  		case 4:
  1654  			if wireType != 2 {
  1655  				return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
  1656  			}
  1657  			var stringLen uint64
  1658  			for shift := uint(0); ; shift += 7 {
  1659  				if shift >= 64 {
  1660  					return ErrIntOverflowEvent
  1661  				}
  1662  				if iNdEx >= l {
  1663  					return io.ErrUnexpectedEOF
  1664  				}
  1665  				b := dAtA[iNdEx]
  1666  				iNdEx++
  1667  				stringLen |= uint64(b&0x7F) << shift
  1668  				if b < 0x80 {
  1669  					break
  1670  				}
  1671  			}
  1672  			intStringLen := int(stringLen)
  1673  			if intStringLen < 0 {
  1674  				return ErrInvalidLengthEvent
  1675  			}
  1676  			postIndex := iNdEx + intStringLen
  1677  			if postIndex < 0 {
  1678  				return ErrInvalidLengthEvent
  1679  			}
  1680  			if postIndex > l {
  1681  				return io.ErrUnexpectedEOF
  1682  			}
  1683  			m.To = string(dAtA[iNdEx:postIndex])
  1684  			iNdEx = postIndex
  1685  		case 5:
  1686  			if wireType != 2 {
  1687  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  1688  			}
  1689  			var stringLen uint64
  1690  			for shift := uint(0); ; shift += 7 {
  1691  				if shift >= 64 {
  1692  					return ErrIntOverflowEvent
  1693  				}
  1694  				if iNdEx >= l {
  1695  					return io.ErrUnexpectedEOF
  1696  				}
  1697  				b := dAtA[iNdEx]
  1698  				iNdEx++
  1699  				stringLen |= uint64(b&0x7F) << shift
  1700  				if b < 0x80 {
  1701  					break
  1702  				}
  1703  			}
  1704  			intStringLen := int(stringLen)
  1705  			if intStringLen < 0 {
  1706  				return ErrInvalidLengthEvent
  1707  			}
  1708  			postIndex := iNdEx + intStringLen
  1709  			if postIndex < 0 {
  1710  				return ErrInvalidLengthEvent
  1711  			}
  1712  			if postIndex > l {
  1713  				return io.ErrUnexpectedEOF
  1714  			}
  1715  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1716  				return err
  1717  			}
  1718  			iNdEx = postIndex
  1719  		default:
  1720  			iNdEx = preIndex
  1721  			skippy, err := skipEvent(dAtA[iNdEx:])
  1722  			if err != nil {
  1723  				return err
  1724  			}
  1725  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1726  				return ErrInvalidLengthEvent
  1727  			}
  1728  			if (iNdEx + skippy) > l {
  1729  				return io.ErrUnexpectedEOF
  1730  			}
  1731  			iNdEx += skippy
  1732  		}
  1733  	}
  1734  
  1735  	if iNdEx > l {
  1736  		return io.ErrUnexpectedEOF
  1737  	}
  1738  	return nil
  1739  }
  1740  func (m *EventAuthorizedOperator) Unmarshal(dAtA []byte) error {
  1741  	l := len(dAtA)
  1742  	iNdEx := 0
  1743  	for iNdEx < l {
  1744  		preIndex := iNdEx
  1745  		var wire uint64
  1746  		for shift := uint(0); ; shift += 7 {
  1747  			if shift >= 64 {
  1748  				return ErrIntOverflowEvent
  1749  			}
  1750  			if iNdEx >= l {
  1751  				return io.ErrUnexpectedEOF
  1752  			}
  1753  			b := dAtA[iNdEx]
  1754  			iNdEx++
  1755  			wire |= uint64(b&0x7F) << shift
  1756  			if b < 0x80 {
  1757  				break
  1758  			}
  1759  		}
  1760  		fieldNum := int32(wire >> 3)
  1761  		wireType := int(wire & 0x7)
  1762  		if wireType == 4 {
  1763  			return fmt.Errorf("proto: EventAuthorizedOperator: wiretype end group for non-group")
  1764  		}
  1765  		if fieldNum <= 0 {
  1766  			return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire)
  1767  		}
  1768  		switch fieldNum {
  1769  		case 1:
  1770  			if wireType != 2 {
  1771  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  1772  			}
  1773  			var stringLen uint64
  1774  			for shift := uint(0); ; shift += 7 {
  1775  				if shift >= 64 {
  1776  					return ErrIntOverflowEvent
  1777  				}
  1778  				if iNdEx >= l {
  1779  					return io.ErrUnexpectedEOF
  1780  				}
  1781  				b := dAtA[iNdEx]
  1782  				iNdEx++
  1783  				stringLen |= uint64(b&0x7F) << shift
  1784  				if b < 0x80 {
  1785  					break
  1786  				}
  1787  			}
  1788  			intStringLen := int(stringLen)
  1789  			if intStringLen < 0 {
  1790  				return ErrInvalidLengthEvent
  1791  			}
  1792  			postIndex := iNdEx + intStringLen
  1793  			if postIndex < 0 {
  1794  				return ErrInvalidLengthEvent
  1795  			}
  1796  			if postIndex > l {
  1797  				return io.ErrUnexpectedEOF
  1798  			}
  1799  			m.ContractId = string(dAtA[iNdEx:postIndex])
  1800  			iNdEx = postIndex
  1801  		case 2:
  1802  			if wireType != 2 {
  1803  				return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType)
  1804  			}
  1805  			var stringLen uint64
  1806  			for shift := uint(0); ; shift += 7 {
  1807  				if shift >= 64 {
  1808  					return ErrIntOverflowEvent
  1809  				}
  1810  				if iNdEx >= l {
  1811  					return io.ErrUnexpectedEOF
  1812  				}
  1813  				b := dAtA[iNdEx]
  1814  				iNdEx++
  1815  				stringLen |= uint64(b&0x7F) << shift
  1816  				if b < 0x80 {
  1817  					break
  1818  				}
  1819  			}
  1820  			intStringLen := int(stringLen)
  1821  			if intStringLen < 0 {
  1822  				return ErrInvalidLengthEvent
  1823  			}
  1824  			postIndex := iNdEx + intStringLen
  1825  			if postIndex < 0 {
  1826  				return ErrInvalidLengthEvent
  1827  			}
  1828  			if postIndex > l {
  1829  				return io.ErrUnexpectedEOF
  1830  			}
  1831  			m.Holder = string(dAtA[iNdEx:postIndex])
  1832  			iNdEx = postIndex
  1833  		case 3:
  1834  			if wireType != 2 {
  1835  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  1836  			}
  1837  			var stringLen uint64
  1838  			for shift := uint(0); ; shift += 7 {
  1839  				if shift >= 64 {
  1840  					return ErrIntOverflowEvent
  1841  				}
  1842  				if iNdEx >= l {
  1843  					return io.ErrUnexpectedEOF
  1844  				}
  1845  				b := dAtA[iNdEx]
  1846  				iNdEx++
  1847  				stringLen |= uint64(b&0x7F) << shift
  1848  				if b < 0x80 {
  1849  					break
  1850  				}
  1851  			}
  1852  			intStringLen := int(stringLen)
  1853  			if intStringLen < 0 {
  1854  				return ErrInvalidLengthEvent
  1855  			}
  1856  			postIndex := iNdEx + intStringLen
  1857  			if postIndex < 0 {
  1858  				return ErrInvalidLengthEvent
  1859  			}
  1860  			if postIndex > l {
  1861  				return io.ErrUnexpectedEOF
  1862  			}
  1863  			m.Operator = string(dAtA[iNdEx:postIndex])
  1864  			iNdEx = postIndex
  1865  		default:
  1866  			iNdEx = preIndex
  1867  			skippy, err := skipEvent(dAtA[iNdEx:])
  1868  			if err != nil {
  1869  				return err
  1870  			}
  1871  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1872  				return ErrInvalidLengthEvent
  1873  			}
  1874  			if (iNdEx + skippy) > l {
  1875  				return io.ErrUnexpectedEOF
  1876  			}
  1877  			iNdEx += skippy
  1878  		}
  1879  	}
  1880  
  1881  	if iNdEx > l {
  1882  		return io.ErrUnexpectedEOF
  1883  	}
  1884  	return nil
  1885  }
  1886  func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error {
  1887  	l := len(dAtA)
  1888  	iNdEx := 0
  1889  	for iNdEx < l {
  1890  		preIndex := iNdEx
  1891  		var wire uint64
  1892  		for shift := uint(0); ; shift += 7 {
  1893  			if shift >= 64 {
  1894  				return ErrIntOverflowEvent
  1895  			}
  1896  			if iNdEx >= l {
  1897  				return io.ErrUnexpectedEOF
  1898  			}
  1899  			b := dAtA[iNdEx]
  1900  			iNdEx++
  1901  			wire |= uint64(b&0x7F) << shift
  1902  			if b < 0x80 {
  1903  				break
  1904  			}
  1905  		}
  1906  		fieldNum := int32(wire >> 3)
  1907  		wireType := int(wire & 0x7)
  1908  		if wireType == 4 {
  1909  			return fmt.Errorf("proto: EventRevokedOperator: wiretype end group for non-group")
  1910  		}
  1911  		if fieldNum <= 0 {
  1912  			return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire)
  1913  		}
  1914  		switch fieldNum {
  1915  		case 1:
  1916  			if wireType != 2 {
  1917  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  1918  			}
  1919  			var stringLen uint64
  1920  			for shift := uint(0); ; shift += 7 {
  1921  				if shift >= 64 {
  1922  					return ErrIntOverflowEvent
  1923  				}
  1924  				if iNdEx >= l {
  1925  					return io.ErrUnexpectedEOF
  1926  				}
  1927  				b := dAtA[iNdEx]
  1928  				iNdEx++
  1929  				stringLen |= uint64(b&0x7F) << shift
  1930  				if b < 0x80 {
  1931  					break
  1932  				}
  1933  			}
  1934  			intStringLen := int(stringLen)
  1935  			if intStringLen < 0 {
  1936  				return ErrInvalidLengthEvent
  1937  			}
  1938  			postIndex := iNdEx + intStringLen
  1939  			if postIndex < 0 {
  1940  				return ErrInvalidLengthEvent
  1941  			}
  1942  			if postIndex > l {
  1943  				return io.ErrUnexpectedEOF
  1944  			}
  1945  			m.ContractId = string(dAtA[iNdEx:postIndex])
  1946  			iNdEx = postIndex
  1947  		case 2:
  1948  			if wireType != 2 {
  1949  				return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType)
  1950  			}
  1951  			var stringLen uint64
  1952  			for shift := uint(0); ; shift += 7 {
  1953  				if shift >= 64 {
  1954  					return ErrIntOverflowEvent
  1955  				}
  1956  				if iNdEx >= l {
  1957  					return io.ErrUnexpectedEOF
  1958  				}
  1959  				b := dAtA[iNdEx]
  1960  				iNdEx++
  1961  				stringLen |= uint64(b&0x7F) << shift
  1962  				if b < 0x80 {
  1963  					break
  1964  				}
  1965  			}
  1966  			intStringLen := int(stringLen)
  1967  			if intStringLen < 0 {
  1968  				return ErrInvalidLengthEvent
  1969  			}
  1970  			postIndex := iNdEx + intStringLen
  1971  			if postIndex < 0 {
  1972  				return ErrInvalidLengthEvent
  1973  			}
  1974  			if postIndex > l {
  1975  				return io.ErrUnexpectedEOF
  1976  			}
  1977  			m.Holder = string(dAtA[iNdEx:postIndex])
  1978  			iNdEx = postIndex
  1979  		case 3:
  1980  			if wireType != 2 {
  1981  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  1982  			}
  1983  			var stringLen uint64
  1984  			for shift := uint(0); ; shift += 7 {
  1985  				if shift >= 64 {
  1986  					return ErrIntOverflowEvent
  1987  				}
  1988  				if iNdEx >= l {
  1989  					return io.ErrUnexpectedEOF
  1990  				}
  1991  				b := dAtA[iNdEx]
  1992  				iNdEx++
  1993  				stringLen |= uint64(b&0x7F) << shift
  1994  				if b < 0x80 {
  1995  					break
  1996  				}
  1997  			}
  1998  			intStringLen := int(stringLen)
  1999  			if intStringLen < 0 {
  2000  				return ErrInvalidLengthEvent
  2001  			}
  2002  			postIndex := iNdEx + intStringLen
  2003  			if postIndex < 0 {
  2004  				return ErrInvalidLengthEvent
  2005  			}
  2006  			if postIndex > l {
  2007  				return io.ErrUnexpectedEOF
  2008  			}
  2009  			m.Operator = string(dAtA[iNdEx:postIndex])
  2010  			iNdEx = postIndex
  2011  		default:
  2012  			iNdEx = preIndex
  2013  			skippy, err := skipEvent(dAtA[iNdEx:])
  2014  			if err != nil {
  2015  				return err
  2016  			}
  2017  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2018  				return ErrInvalidLengthEvent
  2019  			}
  2020  			if (iNdEx + skippy) > l {
  2021  				return io.ErrUnexpectedEOF
  2022  			}
  2023  			iNdEx += skippy
  2024  		}
  2025  	}
  2026  
  2027  	if iNdEx > l {
  2028  		return io.ErrUnexpectedEOF
  2029  	}
  2030  	return nil
  2031  }
  2032  func (m *EventIssued) Unmarshal(dAtA []byte) error {
  2033  	l := len(dAtA)
  2034  	iNdEx := 0
  2035  	for iNdEx < l {
  2036  		preIndex := iNdEx
  2037  		var wire uint64
  2038  		for shift := uint(0); ; shift += 7 {
  2039  			if shift >= 64 {
  2040  				return ErrIntOverflowEvent
  2041  			}
  2042  			if iNdEx >= l {
  2043  				return io.ErrUnexpectedEOF
  2044  			}
  2045  			b := dAtA[iNdEx]
  2046  			iNdEx++
  2047  			wire |= uint64(b&0x7F) << shift
  2048  			if b < 0x80 {
  2049  				break
  2050  			}
  2051  		}
  2052  		fieldNum := int32(wire >> 3)
  2053  		wireType := int(wire & 0x7)
  2054  		if wireType == 4 {
  2055  			return fmt.Errorf("proto: EventIssued: wiretype end group for non-group")
  2056  		}
  2057  		if fieldNum <= 0 {
  2058  			return fmt.Errorf("proto: EventIssued: illegal tag %d (wire type %d)", fieldNum, wire)
  2059  		}
  2060  		switch fieldNum {
  2061  		case 1:
  2062  			if wireType != 2 {
  2063  				return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
  2064  			}
  2065  			var stringLen uint64
  2066  			for shift := uint(0); ; shift += 7 {
  2067  				if shift >= 64 {
  2068  					return ErrIntOverflowEvent
  2069  				}
  2070  				if iNdEx >= l {
  2071  					return io.ErrUnexpectedEOF
  2072  				}
  2073  				b := dAtA[iNdEx]
  2074  				iNdEx++
  2075  				stringLen |= uint64(b&0x7F) << shift
  2076  				if b < 0x80 {
  2077  					break
  2078  				}
  2079  			}
  2080  			intStringLen := int(stringLen)
  2081  			if intStringLen < 0 {
  2082  				return ErrInvalidLengthEvent
  2083  			}
  2084  			postIndex := iNdEx + intStringLen
  2085  			if postIndex < 0 {
  2086  				return ErrInvalidLengthEvent
  2087  			}
  2088  			if postIndex > l {
  2089  				return io.ErrUnexpectedEOF
  2090  			}
  2091  			m.Creator = string(dAtA[iNdEx:postIndex])
  2092  			iNdEx = postIndex
  2093  		case 2:
  2094  			if wireType != 2 {
  2095  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2096  			}
  2097  			var stringLen uint64
  2098  			for shift := uint(0); ; shift += 7 {
  2099  				if shift >= 64 {
  2100  					return ErrIntOverflowEvent
  2101  				}
  2102  				if iNdEx >= l {
  2103  					return io.ErrUnexpectedEOF
  2104  				}
  2105  				b := dAtA[iNdEx]
  2106  				iNdEx++
  2107  				stringLen |= uint64(b&0x7F) << shift
  2108  				if b < 0x80 {
  2109  					break
  2110  				}
  2111  			}
  2112  			intStringLen := int(stringLen)
  2113  			if intStringLen < 0 {
  2114  				return ErrInvalidLengthEvent
  2115  			}
  2116  			postIndex := iNdEx + intStringLen
  2117  			if postIndex < 0 {
  2118  				return ErrInvalidLengthEvent
  2119  			}
  2120  			if postIndex > l {
  2121  				return io.ErrUnexpectedEOF
  2122  			}
  2123  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2124  			iNdEx = postIndex
  2125  		case 3:
  2126  			if wireType != 2 {
  2127  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2128  			}
  2129  			var stringLen uint64
  2130  			for shift := uint(0); ; shift += 7 {
  2131  				if shift >= 64 {
  2132  					return ErrIntOverflowEvent
  2133  				}
  2134  				if iNdEx >= l {
  2135  					return io.ErrUnexpectedEOF
  2136  				}
  2137  				b := dAtA[iNdEx]
  2138  				iNdEx++
  2139  				stringLen |= uint64(b&0x7F) << shift
  2140  				if b < 0x80 {
  2141  					break
  2142  				}
  2143  			}
  2144  			intStringLen := int(stringLen)
  2145  			if intStringLen < 0 {
  2146  				return ErrInvalidLengthEvent
  2147  			}
  2148  			postIndex := iNdEx + intStringLen
  2149  			if postIndex < 0 {
  2150  				return ErrInvalidLengthEvent
  2151  			}
  2152  			if postIndex > l {
  2153  				return io.ErrUnexpectedEOF
  2154  			}
  2155  			m.Name = string(dAtA[iNdEx:postIndex])
  2156  			iNdEx = postIndex
  2157  		case 4:
  2158  			if wireType != 2 {
  2159  				return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType)
  2160  			}
  2161  			var stringLen uint64
  2162  			for shift := uint(0); ; shift += 7 {
  2163  				if shift >= 64 {
  2164  					return ErrIntOverflowEvent
  2165  				}
  2166  				if iNdEx >= l {
  2167  					return io.ErrUnexpectedEOF
  2168  				}
  2169  				b := dAtA[iNdEx]
  2170  				iNdEx++
  2171  				stringLen |= uint64(b&0x7F) << shift
  2172  				if b < 0x80 {
  2173  					break
  2174  				}
  2175  			}
  2176  			intStringLen := int(stringLen)
  2177  			if intStringLen < 0 {
  2178  				return ErrInvalidLengthEvent
  2179  			}
  2180  			postIndex := iNdEx + intStringLen
  2181  			if postIndex < 0 {
  2182  				return ErrInvalidLengthEvent
  2183  			}
  2184  			if postIndex > l {
  2185  				return io.ErrUnexpectedEOF
  2186  			}
  2187  			m.Symbol = string(dAtA[iNdEx:postIndex])
  2188  			iNdEx = postIndex
  2189  		case 5:
  2190  			if wireType != 2 {
  2191  				return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType)
  2192  			}
  2193  			var stringLen uint64
  2194  			for shift := uint(0); ; shift += 7 {
  2195  				if shift >= 64 {
  2196  					return ErrIntOverflowEvent
  2197  				}
  2198  				if iNdEx >= l {
  2199  					return io.ErrUnexpectedEOF
  2200  				}
  2201  				b := dAtA[iNdEx]
  2202  				iNdEx++
  2203  				stringLen |= uint64(b&0x7F) << shift
  2204  				if b < 0x80 {
  2205  					break
  2206  				}
  2207  			}
  2208  			intStringLen := int(stringLen)
  2209  			if intStringLen < 0 {
  2210  				return ErrInvalidLengthEvent
  2211  			}
  2212  			postIndex := iNdEx + intStringLen
  2213  			if postIndex < 0 {
  2214  				return ErrInvalidLengthEvent
  2215  			}
  2216  			if postIndex > l {
  2217  				return io.ErrUnexpectedEOF
  2218  			}
  2219  			m.Uri = string(dAtA[iNdEx:postIndex])
  2220  			iNdEx = postIndex
  2221  		case 6:
  2222  			if wireType != 2 {
  2223  				return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
  2224  			}
  2225  			var stringLen uint64
  2226  			for shift := uint(0); ; shift += 7 {
  2227  				if shift >= 64 {
  2228  					return ErrIntOverflowEvent
  2229  				}
  2230  				if iNdEx >= l {
  2231  					return io.ErrUnexpectedEOF
  2232  				}
  2233  				b := dAtA[iNdEx]
  2234  				iNdEx++
  2235  				stringLen |= uint64(b&0x7F) << shift
  2236  				if b < 0x80 {
  2237  					break
  2238  				}
  2239  			}
  2240  			intStringLen := int(stringLen)
  2241  			if intStringLen < 0 {
  2242  				return ErrInvalidLengthEvent
  2243  			}
  2244  			postIndex := iNdEx + intStringLen
  2245  			if postIndex < 0 {
  2246  				return ErrInvalidLengthEvent
  2247  			}
  2248  			if postIndex > l {
  2249  				return io.ErrUnexpectedEOF
  2250  			}
  2251  			m.Meta = string(dAtA[iNdEx:postIndex])
  2252  			iNdEx = postIndex
  2253  		case 7:
  2254  			if wireType != 0 {
  2255  				return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType)
  2256  			}
  2257  			m.Decimals = 0
  2258  			for shift := uint(0); ; shift += 7 {
  2259  				if shift >= 64 {
  2260  					return ErrIntOverflowEvent
  2261  				}
  2262  				if iNdEx >= l {
  2263  					return io.ErrUnexpectedEOF
  2264  				}
  2265  				b := dAtA[iNdEx]
  2266  				iNdEx++
  2267  				m.Decimals |= int32(b&0x7F) << shift
  2268  				if b < 0x80 {
  2269  					break
  2270  				}
  2271  			}
  2272  		case 8:
  2273  			if wireType != 0 {
  2274  				return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType)
  2275  			}
  2276  			var v int
  2277  			for shift := uint(0); ; shift += 7 {
  2278  				if shift >= 64 {
  2279  					return ErrIntOverflowEvent
  2280  				}
  2281  				if iNdEx >= l {
  2282  					return io.ErrUnexpectedEOF
  2283  				}
  2284  				b := dAtA[iNdEx]
  2285  				iNdEx++
  2286  				v |= int(b&0x7F) << shift
  2287  				if b < 0x80 {
  2288  					break
  2289  				}
  2290  			}
  2291  			m.Mintable = bool(v != 0)
  2292  		default:
  2293  			iNdEx = preIndex
  2294  			skippy, err := skipEvent(dAtA[iNdEx:])
  2295  			if err != nil {
  2296  				return err
  2297  			}
  2298  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2299  				return ErrInvalidLengthEvent
  2300  			}
  2301  			if (iNdEx + skippy) > l {
  2302  				return io.ErrUnexpectedEOF
  2303  			}
  2304  			iNdEx += skippy
  2305  		}
  2306  	}
  2307  
  2308  	if iNdEx > l {
  2309  		return io.ErrUnexpectedEOF
  2310  	}
  2311  	return nil
  2312  }
  2313  func (m *EventGranted) Unmarshal(dAtA []byte) error {
  2314  	l := len(dAtA)
  2315  	iNdEx := 0
  2316  	for iNdEx < l {
  2317  		preIndex := iNdEx
  2318  		var wire uint64
  2319  		for shift := uint(0); ; shift += 7 {
  2320  			if shift >= 64 {
  2321  				return ErrIntOverflowEvent
  2322  			}
  2323  			if iNdEx >= l {
  2324  				return io.ErrUnexpectedEOF
  2325  			}
  2326  			b := dAtA[iNdEx]
  2327  			iNdEx++
  2328  			wire |= uint64(b&0x7F) << shift
  2329  			if b < 0x80 {
  2330  				break
  2331  			}
  2332  		}
  2333  		fieldNum := int32(wire >> 3)
  2334  		wireType := int(wire & 0x7)
  2335  		if wireType == 4 {
  2336  			return fmt.Errorf("proto: EventGranted: wiretype end group for non-group")
  2337  		}
  2338  		if fieldNum <= 0 {
  2339  			return fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire)
  2340  		}
  2341  		switch fieldNum {
  2342  		case 1:
  2343  			if wireType != 2 {
  2344  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2345  			}
  2346  			var stringLen uint64
  2347  			for shift := uint(0); ; shift += 7 {
  2348  				if shift >= 64 {
  2349  					return ErrIntOverflowEvent
  2350  				}
  2351  				if iNdEx >= l {
  2352  					return io.ErrUnexpectedEOF
  2353  				}
  2354  				b := dAtA[iNdEx]
  2355  				iNdEx++
  2356  				stringLen |= uint64(b&0x7F) << shift
  2357  				if b < 0x80 {
  2358  					break
  2359  				}
  2360  			}
  2361  			intStringLen := int(stringLen)
  2362  			if intStringLen < 0 {
  2363  				return ErrInvalidLengthEvent
  2364  			}
  2365  			postIndex := iNdEx + intStringLen
  2366  			if postIndex < 0 {
  2367  				return ErrInvalidLengthEvent
  2368  			}
  2369  			if postIndex > l {
  2370  				return io.ErrUnexpectedEOF
  2371  			}
  2372  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2373  			iNdEx = postIndex
  2374  		case 2:
  2375  			if wireType != 2 {
  2376  				return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType)
  2377  			}
  2378  			var stringLen uint64
  2379  			for shift := uint(0); ; shift += 7 {
  2380  				if shift >= 64 {
  2381  					return ErrIntOverflowEvent
  2382  				}
  2383  				if iNdEx >= l {
  2384  					return io.ErrUnexpectedEOF
  2385  				}
  2386  				b := dAtA[iNdEx]
  2387  				iNdEx++
  2388  				stringLen |= uint64(b&0x7F) << shift
  2389  				if b < 0x80 {
  2390  					break
  2391  				}
  2392  			}
  2393  			intStringLen := int(stringLen)
  2394  			if intStringLen < 0 {
  2395  				return ErrInvalidLengthEvent
  2396  			}
  2397  			postIndex := iNdEx + intStringLen
  2398  			if postIndex < 0 {
  2399  				return ErrInvalidLengthEvent
  2400  			}
  2401  			if postIndex > l {
  2402  				return io.ErrUnexpectedEOF
  2403  			}
  2404  			m.Granter = string(dAtA[iNdEx:postIndex])
  2405  			iNdEx = postIndex
  2406  		case 3:
  2407  			if wireType != 2 {
  2408  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  2409  			}
  2410  			var stringLen uint64
  2411  			for shift := uint(0); ; shift += 7 {
  2412  				if shift >= 64 {
  2413  					return ErrIntOverflowEvent
  2414  				}
  2415  				if iNdEx >= l {
  2416  					return io.ErrUnexpectedEOF
  2417  				}
  2418  				b := dAtA[iNdEx]
  2419  				iNdEx++
  2420  				stringLen |= uint64(b&0x7F) << shift
  2421  				if b < 0x80 {
  2422  					break
  2423  				}
  2424  			}
  2425  			intStringLen := int(stringLen)
  2426  			if intStringLen < 0 {
  2427  				return ErrInvalidLengthEvent
  2428  			}
  2429  			postIndex := iNdEx + intStringLen
  2430  			if postIndex < 0 {
  2431  				return ErrInvalidLengthEvent
  2432  			}
  2433  			if postIndex > l {
  2434  				return io.ErrUnexpectedEOF
  2435  			}
  2436  			m.Grantee = string(dAtA[iNdEx:postIndex])
  2437  			iNdEx = postIndex
  2438  		case 4:
  2439  			if wireType != 0 {
  2440  				return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
  2441  			}
  2442  			m.Permission = 0
  2443  			for shift := uint(0); ; shift += 7 {
  2444  				if shift >= 64 {
  2445  					return ErrIntOverflowEvent
  2446  				}
  2447  				if iNdEx >= l {
  2448  					return io.ErrUnexpectedEOF
  2449  				}
  2450  				b := dAtA[iNdEx]
  2451  				iNdEx++
  2452  				m.Permission |= Permission(b&0x7F) << shift
  2453  				if b < 0x80 {
  2454  					break
  2455  				}
  2456  			}
  2457  		default:
  2458  			iNdEx = preIndex
  2459  			skippy, err := skipEvent(dAtA[iNdEx:])
  2460  			if err != nil {
  2461  				return err
  2462  			}
  2463  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2464  				return ErrInvalidLengthEvent
  2465  			}
  2466  			if (iNdEx + skippy) > l {
  2467  				return io.ErrUnexpectedEOF
  2468  			}
  2469  			iNdEx += skippy
  2470  		}
  2471  	}
  2472  
  2473  	if iNdEx > l {
  2474  		return io.ErrUnexpectedEOF
  2475  	}
  2476  	return nil
  2477  }
  2478  func (m *EventRenounced) Unmarshal(dAtA []byte) error {
  2479  	l := len(dAtA)
  2480  	iNdEx := 0
  2481  	for iNdEx < l {
  2482  		preIndex := iNdEx
  2483  		var wire uint64
  2484  		for shift := uint(0); ; shift += 7 {
  2485  			if shift >= 64 {
  2486  				return ErrIntOverflowEvent
  2487  			}
  2488  			if iNdEx >= l {
  2489  				return io.ErrUnexpectedEOF
  2490  			}
  2491  			b := dAtA[iNdEx]
  2492  			iNdEx++
  2493  			wire |= uint64(b&0x7F) << shift
  2494  			if b < 0x80 {
  2495  				break
  2496  			}
  2497  		}
  2498  		fieldNum := int32(wire >> 3)
  2499  		wireType := int(wire & 0x7)
  2500  		if wireType == 4 {
  2501  			return fmt.Errorf("proto: EventRenounced: wiretype end group for non-group")
  2502  		}
  2503  		if fieldNum <= 0 {
  2504  			return fmt.Errorf("proto: EventRenounced: illegal tag %d (wire type %d)", fieldNum, wire)
  2505  		}
  2506  		switch fieldNum {
  2507  		case 1:
  2508  			if wireType != 2 {
  2509  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2510  			}
  2511  			var stringLen uint64
  2512  			for shift := uint(0); ; shift += 7 {
  2513  				if shift >= 64 {
  2514  					return ErrIntOverflowEvent
  2515  				}
  2516  				if iNdEx >= l {
  2517  					return io.ErrUnexpectedEOF
  2518  				}
  2519  				b := dAtA[iNdEx]
  2520  				iNdEx++
  2521  				stringLen |= uint64(b&0x7F) << shift
  2522  				if b < 0x80 {
  2523  					break
  2524  				}
  2525  			}
  2526  			intStringLen := int(stringLen)
  2527  			if intStringLen < 0 {
  2528  				return ErrInvalidLengthEvent
  2529  			}
  2530  			postIndex := iNdEx + intStringLen
  2531  			if postIndex < 0 {
  2532  				return ErrInvalidLengthEvent
  2533  			}
  2534  			if postIndex > l {
  2535  				return io.ErrUnexpectedEOF
  2536  			}
  2537  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2538  			iNdEx = postIndex
  2539  		case 2:
  2540  			if wireType != 2 {
  2541  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  2542  			}
  2543  			var stringLen uint64
  2544  			for shift := uint(0); ; shift += 7 {
  2545  				if shift >= 64 {
  2546  					return ErrIntOverflowEvent
  2547  				}
  2548  				if iNdEx >= l {
  2549  					return io.ErrUnexpectedEOF
  2550  				}
  2551  				b := dAtA[iNdEx]
  2552  				iNdEx++
  2553  				stringLen |= uint64(b&0x7F) << shift
  2554  				if b < 0x80 {
  2555  					break
  2556  				}
  2557  			}
  2558  			intStringLen := int(stringLen)
  2559  			if intStringLen < 0 {
  2560  				return ErrInvalidLengthEvent
  2561  			}
  2562  			postIndex := iNdEx + intStringLen
  2563  			if postIndex < 0 {
  2564  				return ErrInvalidLengthEvent
  2565  			}
  2566  			if postIndex > l {
  2567  				return io.ErrUnexpectedEOF
  2568  			}
  2569  			m.Grantee = string(dAtA[iNdEx:postIndex])
  2570  			iNdEx = postIndex
  2571  		case 3:
  2572  			if wireType != 0 {
  2573  				return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
  2574  			}
  2575  			m.Permission = 0
  2576  			for shift := uint(0); ; shift += 7 {
  2577  				if shift >= 64 {
  2578  					return ErrIntOverflowEvent
  2579  				}
  2580  				if iNdEx >= l {
  2581  					return io.ErrUnexpectedEOF
  2582  				}
  2583  				b := dAtA[iNdEx]
  2584  				iNdEx++
  2585  				m.Permission |= Permission(b&0x7F) << shift
  2586  				if b < 0x80 {
  2587  					break
  2588  				}
  2589  			}
  2590  		default:
  2591  			iNdEx = preIndex
  2592  			skippy, err := skipEvent(dAtA[iNdEx:])
  2593  			if err != nil {
  2594  				return err
  2595  			}
  2596  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2597  				return ErrInvalidLengthEvent
  2598  			}
  2599  			if (iNdEx + skippy) > l {
  2600  				return io.ErrUnexpectedEOF
  2601  			}
  2602  			iNdEx += skippy
  2603  		}
  2604  	}
  2605  
  2606  	if iNdEx > l {
  2607  		return io.ErrUnexpectedEOF
  2608  	}
  2609  	return nil
  2610  }
  2611  func (m *EventMinted) Unmarshal(dAtA []byte) error {
  2612  	l := len(dAtA)
  2613  	iNdEx := 0
  2614  	for iNdEx < l {
  2615  		preIndex := iNdEx
  2616  		var wire uint64
  2617  		for shift := uint(0); ; shift += 7 {
  2618  			if shift >= 64 {
  2619  				return ErrIntOverflowEvent
  2620  			}
  2621  			if iNdEx >= l {
  2622  				return io.ErrUnexpectedEOF
  2623  			}
  2624  			b := dAtA[iNdEx]
  2625  			iNdEx++
  2626  			wire |= uint64(b&0x7F) << shift
  2627  			if b < 0x80 {
  2628  				break
  2629  			}
  2630  		}
  2631  		fieldNum := int32(wire >> 3)
  2632  		wireType := int(wire & 0x7)
  2633  		if wireType == 4 {
  2634  			return fmt.Errorf("proto: EventMinted: wiretype end group for non-group")
  2635  		}
  2636  		if fieldNum <= 0 {
  2637  			return fmt.Errorf("proto: EventMinted: illegal tag %d (wire type %d)", fieldNum, wire)
  2638  		}
  2639  		switch fieldNum {
  2640  		case 1:
  2641  			if wireType != 2 {
  2642  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2643  			}
  2644  			var stringLen uint64
  2645  			for shift := uint(0); ; shift += 7 {
  2646  				if shift >= 64 {
  2647  					return ErrIntOverflowEvent
  2648  				}
  2649  				if iNdEx >= l {
  2650  					return io.ErrUnexpectedEOF
  2651  				}
  2652  				b := dAtA[iNdEx]
  2653  				iNdEx++
  2654  				stringLen |= uint64(b&0x7F) << shift
  2655  				if b < 0x80 {
  2656  					break
  2657  				}
  2658  			}
  2659  			intStringLen := int(stringLen)
  2660  			if intStringLen < 0 {
  2661  				return ErrInvalidLengthEvent
  2662  			}
  2663  			postIndex := iNdEx + intStringLen
  2664  			if postIndex < 0 {
  2665  				return ErrInvalidLengthEvent
  2666  			}
  2667  			if postIndex > l {
  2668  				return io.ErrUnexpectedEOF
  2669  			}
  2670  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2671  			iNdEx = postIndex
  2672  		case 2:
  2673  			if wireType != 2 {
  2674  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  2675  			}
  2676  			var stringLen uint64
  2677  			for shift := uint(0); ; shift += 7 {
  2678  				if shift >= 64 {
  2679  					return ErrIntOverflowEvent
  2680  				}
  2681  				if iNdEx >= l {
  2682  					return io.ErrUnexpectedEOF
  2683  				}
  2684  				b := dAtA[iNdEx]
  2685  				iNdEx++
  2686  				stringLen |= uint64(b&0x7F) << shift
  2687  				if b < 0x80 {
  2688  					break
  2689  				}
  2690  			}
  2691  			intStringLen := int(stringLen)
  2692  			if intStringLen < 0 {
  2693  				return ErrInvalidLengthEvent
  2694  			}
  2695  			postIndex := iNdEx + intStringLen
  2696  			if postIndex < 0 {
  2697  				return ErrInvalidLengthEvent
  2698  			}
  2699  			if postIndex > l {
  2700  				return io.ErrUnexpectedEOF
  2701  			}
  2702  			m.Operator = string(dAtA[iNdEx:postIndex])
  2703  			iNdEx = postIndex
  2704  		case 3:
  2705  			if wireType != 2 {
  2706  				return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
  2707  			}
  2708  			var stringLen uint64
  2709  			for shift := uint(0); ; shift += 7 {
  2710  				if shift >= 64 {
  2711  					return ErrIntOverflowEvent
  2712  				}
  2713  				if iNdEx >= l {
  2714  					return io.ErrUnexpectedEOF
  2715  				}
  2716  				b := dAtA[iNdEx]
  2717  				iNdEx++
  2718  				stringLen |= uint64(b&0x7F) << shift
  2719  				if b < 0x80 {
  2720  					break
  2721  				}
  2722  			}
  2723  			intStringLen := int(stringLen)
  2724  			if intStringLen < 0 {
  2725  				return ErrInvalidLengthEvent
  2726  			}
  2727  			postIndex := iNdEx + intStringLen
  2728  			if postIndex < 0 {
  2729  				return ErrInvalidLengthEvent
  2730  			}
  2731  			if postIndex > l {
  2732  				return io.ErrUnexpectedEOF
  2733  			}
  2734  			m.To = string(dAtA[iNdEx:postIndex])
  2735  			iNdEx = postIndex
  2736  		case 4:
  2737  			if wireType != 2 {
  2738  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2739  			}
  2740  			var stringLen uint64
  2741  			for shift := uint(0); ; shift += 7 {
  2742  				if shift >= 64 {
  2743  					return ErrIntOverflowEvent
  2744  				}
  2745  				if iNdEx >= l {
  2746  					return io.ErrUnexpectedEOF
  2747  				}
  2748  				b := dAtA[iNdEx]
  2749  				iNdEx++
  2750  				stringLen |= uint64(b&0x7F) << shift
  2751  				if b < 0x80 {
  2752  					break
  2753  				}
  2754  			}
  2755  			intStringLen := int(stringLen)
  2756  			if intStringLen < 0 {
  2757  				return ErrInvalidLengthEvent
  2758  			}
  2759  			postIndex := iNdEx + intStringLen
  2760  			if postIndex < 0 {
  2761  				return ErrInvalidLengthEvent
  2762  			}
  2763  			if postIndex > l {
  2764  				return io.ErrUnexpectedEOF
  2765  			}
  2766  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2767  				return err
  2768  			}
  2769  			iNdEx = postIndex
  2770  		default:
  2771  			iNdEx = preIndex
  2772  			skippy, err := skipEvent(dAtA[iNdEx:])
  2773  			if err != nil {
  2774  				return err
  2775  			}
  2776  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2777  				return ErrInvalidLengthEvent
  2778  			}
  2779  			if (iNdEx + skippy) > l {
  2780  				return io.ErrUnexpectedEOF
  2781  			}
  2782  			iNdEx += skippy
  2783  		}
  2784  	}
  2785  
  2786  	if iNdEx > l {
  2787  		return io.ErrUnexpectedEOF
  2788  	}
  2789  	return nil
  2790  }
  2791  func (m *EventBurned) Unmarshal(dAtA []byte) error {
  2792  	l := len(dAtA)
  2793  	iNdEx := 0
  2794  	for iNdEx < l {
  2795  		preIndex := iNdEx
  2796  		var wire uint64
  2797  		for shift := uint(0); ; shift += 7 {
  2798  			if shift >= 64 {
  2799  				return ErrIntOverflowEvent
  2800  			}
  2801  			if iNdEx >= l {
  2802  				return io.ErrUnexpectedEOF
  2803  			}
  2804  			b := dAtA[iNdEx]
  2805  			iNdEx++
  2806  			wire |= uint64(b&0x7F) << shift
  2807  			if b < 0x80 {
  2808  				break
  2809  			}
  2810  		}
  2811  		fieldNum := int32(wire >> 3)
  2812  		wireType := int(wire & 0x7)
  2813  		if wireType == 4 {
  2814  			return fmt.Errorf("proto: EventBurned: wiretype end group for non-group")
  2815  		}
  2816  		if fieldNum <= 0 {
  2817  			return fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire)
  2818  		}
  2819  		switch fieldNum {
  2820  		case 1:
  2821  			if wireType != 2 {
  2822  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2823  			}
  2824  			var stringLen uint64
  2825  			for shift := uint(0); ; shift += 7 {
  2826  				if shift >= 64 {
  2827  					return ErrIntOverflowEvent
  2828  				}
  2829  				if iNdEx >= l {
  2830  					return io.ErrUnexpectedEOF
  2831  				}
  2832  				b := dAtA[iNdEx]
  2833  				iNdEx++
  2834  				stringLen |= uint64(b&0x7F) << shift
  2835  				if b < 0x80 {
  2836  					break
  2837  				}
  2838  			}
  2839  			intStringLen := int(stringLen)
  2840  			if intStringLen < 0 {
  2841  				return ErrInvalidLengthEvent
  2842  			}
  2843  			postIndex := iNdEx + intStringLen
  2844  			if postIndex < 0 {
  2845  				return ErrInvalidLengthEvent
  2846  			}
  2847  			if postIndex > l {
  2848  				return io.ErrUnexpectedEOF
  2849  			}
  2850  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2851  			iNdEx = postIndex
  2852  		case 2:
  2853  			if wireType != 2 {
  2854  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  2855  			}
  2856  			var stringLen uint64
  2857  			for shift := uint(0); ; shift += 7 {
  2858  				if shift >= 64 {
  2859  					return ErrIntOverflowEvent
  2860  				}
  2861  				if iNdEx >= l {
  2862  					return io.ErrUnexpectedEOF
  2863  				}
  2864  				b := dAtA[iNdEx]
  2865  				iNdEx++
  2866  				stringLen |= uint64(b&0x7F) << shift
  2867  				if b < 0x80 {
  2868  					break
  2869  				}
  2870  			}
  2871  			intStringLen := int(stringLen)
  2872  			if intStringLen < 0 {
  2873  				return ErrInvalidLengthEvent
  2874  			}
  2875  			postIndex := iNdEx + intStringLen
  2876  			if postIndex < 0 {
  2877  				return ErrInvalidLengthEvent
  2878  			}
  2879  			if postIndex > l {
  2880  				return io.ErrUnexpectedEOF
  2881  			}
  2882  			m.Operator = string(dAtA[iNdEx:postIndex])
  2883  			iNdEx = postIndex
  2884  		case 3:
  2885  			if wireType != 2 {
  2886  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  2887  			}
  2888  			var stringLen uint64
  2889  			for shift := uint(0); ; shift += 7 {
  2890  				if shift >= 64 {
  2891  					return ErrIntOverflowEvent
  2892  				}
  2893  				if iNdEx >= l {
  2894  					return io.ErrUnexpectedEOF
  2895  				}
  2896  				b := dAtA[iNdEx]
  2897  				iNdEx++
  2898  				stringLen |= uint64(b&0x7F) << shift
  2899  				if b < 0x80 {
  2900  					break
  2901  				}
  2902  			}
  2903  			intStringLen := int(stringLen)
  2904  			if intStringLen < 0 {
  2905  				return ErrInvalidLengthEvent
  2906  			}
  2907  			postIndex := iNdEx + intStringLen
  2908  			if postIndex < 0 {
  2909  				return ErrInvalidLengthEvent
  2910  			}
  2911  			if postIndex > l {
  2912  				return io.ErrUnexpectedEOF
  2913  			}
  2914  			m.From = string(dAtA[iNdEx:postIndex])
  2915  			iNdEx = postIndex
  2916  		case 4:
  2917  			if wireType != 2 {
  2918  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2919  			}
  2920  			var stringLen uint64
  2921  			for shift := uint(0); ; shift += 7 {
  2922  				if shift >= 64 {
  2923  					return ErrIntOverflowEvent
  2924  				}
  2925  				if iNdEx >= l {
  2926  					return io.ErrUnexpectedEOF
  2927  				}
  2928  				b := dAtA[iNdEx]
  2929  				iNdEx++
  2930  				stringLen |= uint64(b&0x7F) << shift
  2931  				if b < 0x80 {
  2932  					break
  2933  				}
  2934  			}
  2935  			intStringLen := int(stringLen)
  2936  			if intStringLen < 0 {
  2937  				return ErrInvalidLengthEvent
  2938  			}
  2939  			postIndex := iNdEx + intStringLen
  2940  			if postIndex < 0 {
  2941  				return ErrInvalidLengthEvent
  2942  			}
  2943  			if postIndex > l {
  2944  				return io.ErrUnexpectedEOF
  2945  			}
  2946  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2947  				return err
  2948  			}
  2949  			iNdEx = postIndex
  2950  		default:
  2951  			iNdEx = preIndex
  2952  			skippy, err := skipEvent(dAtA[iNdEx:])
  2953  			if err != nil {
  2954  				return err
  2955  			}
  2956  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2957  				return ErrInvalidLengthEvent
  2958  			}
  2959  			if (iNdEx + skippy) > l {
  2960  				return io.ErrUnexpectedEOF
  2961  			}
  2962  			iNdEx += skippy
  2963  		}
  2964  	}
  2965  
  2966  	if iNdEx > l {
  2967  		return io.ErrUnexpectedEOF
  2968  	}
  2969  	return nil
  2970  }
  2971  func (m *EventModified) Unmarshal(dAtA []byte) error {
  2972  	l := len(dAtA)
  2973  	iNdEx := 0
  2974  	for iNdEx < l {
  2975  		preIndex := iNdEx
  2976  		var wire uint64
  2977  		for shift := uint(0); ; shift += 7 {
  2978  			if shift >= 64 {
  2979  				return ErrIntOverflowEvent
  2980  			}
  2981  			if iNdEx >= l {
  2982  				return io.ErrUnexpectedEOF
  2983  			}
  2984  			b := dAtA[iNdEx]
  2985  			iNdEx++
  2986  			wire |= uint64(b&0x7F) << shift
  2987  			if b < 0x80 {
  2988  				break
  2989  			}
  2990  		}
  2991  		fieldNum := int32(wire >> 3)
  2992  		wireType := int(wire & 0x7)
  2993  		if wireType == 4 {
  2994  			return fmt.Errorf("proto: EventModified: wiretype end group for non-group")
  2995  		}
  2996  		if fieldNum <= 0 {
  2997  			return fmt.Errorf("proto: EventModified: illegal tag %d (wire type %d)", fieldNum, wire)
  2998  		}
  2999  		switch fieldNum {
  3000  		case 1:
  3001  			if wireType != 2 {
  3002  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3003  			}
  3004  			var stringLen uint64
  3005  			for shift := uint(0); ; shift += 7 {
  3006  				if shift >= 64 {
  3007  					return ErrIntOverflowEvent
  3008  				}
  3009  				if iNdEx >= l {
  3010  					return io.ErrUnexpectedEOF
  3011  				}
  3012  				b := dAtA[iNdEx]
  3013  				iNdEx++
  3014  				stringLen |= uint64(b&0x7F) << shift
  3015  				if b < 0x80 {
  3016  					break
  3017  				}
  3018  			}
  3019  			intStringLen := int(stringLen)
  3020  			if intStringLen < 0 {
  3021  				return ErrInvalidLengthEvent
  3022  			}
  3023  			postIndex := iNdEx + intStringLen
  3024  			if postIndex < 0 {
  3025  				return ErrInvalidLengthEvent
  3026  			}
  3027  			if postIndex > l {
  3028  				return io.ErrUnexpectedEOF
  3029  			}
  3030  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3031  			iNdEx = postIndex
  3032  		case 2:
  3033  			if wireType != 2 {
  3034  				return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  3035  			}
  3036  			var stringLen uint64
  3037  			for shift := uint(0); ; shift += 7 {
  3038  				if shift >= 64 {
  3039  					return ErrIntOverflowEvent
  3040  				}
  3041  				if iNdEx >= l {
  3042  					return io.ErrUnexpectedEOF
  3043  				}
  3044  				b := dAtA[iNdEx]
  3045  				iNdEx++
  3046  				stringLen |= uint64(b&0x7F) << shift
  3047  				if b < 0x80 {
  3048  					break
  3049  				}
  3050  			}
  3051  			intStringLen := int(stringLen)
  3052  			if intStringLen < 0 {
  3053  				return ErrInvalidLengthEvent
  3054  			}
  3055  			postIndex := iNdEx + intStringLen
  3056  			if postIndex < 0 {
  3057  				return ErrInvalidLengthEvent
  3058  			}
  3059  			if postIndex > l {
  3060  				return io.ErrUnexpectedEOF
  3061  			}
  3062  			m.Operator = string(dAtA[iNdEx:postIndex])
  3063  			iNdEx = postIndex
  3064  		case 3:
  3065  			if wireType != 2 {
  3066  				return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType)
  3067  			}
  3068  			var msglen int
  3069  			for shift := uint(0); ; shift += 7 {
  3070  				if shift >= 64 {
  3071  					return ErrIntOverflowEvent
  3072  				}
  3073  				if iNdEx >= l {
  3074  					return io.ErrUnexpectedEOF
  3075  				}
  3076  				b := dAtA[iNdEx]
  3077  				iNdEx++
  3078  				msglen |= int(b&0x7F) << shift
  3079  				if b < 0x80 {
  3080  					break
  3081  				}
  3082  			}
  3083  			if msglen < 0 {
  3084  				return ErrInvalidLengthEvent
  3085  			}
  3086  			postIndex := iNdEx + msglen
  3087  			if postIndex < 0 {
  3088  				return ErrInvalidLengthEvent
  3089  			}
  3090  			if postIndex > l {
  3091  				return io.ErrUnexpectedEOF
  3092  			}
  3093  			m.Changes = append(m.Changes, Attribute{})
  3094  			if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3095  				return err
  3096  			}
  3097  			iNdEx = postIndex
  3098  		default:
  3099  			iNdEx = preIndex
  3100  			skippy, err := skipEvent(dAtA[iNdEx:])
  3101  			if err != nil {
  3102  				return err
  3103  			}
  3104  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3105  				return ErrInvalidLengthEvent
  3106  			}
  3107  			if (iNdEx + skippy) > l {
  3108  				return io.ErrUnexpectedEOF
  3109  			}
  3110  			iNdEx += skippy
  3111  		}
  3112  	}
  3113  
  3114  	if iNdEx > l {
  3115  		return io.ErrUnexpectedEOF
  3116  	}
  3117  	return nil
  3118  }
  3119  func skipEvent(dAtA []byte) (n int, err error) {
  3120  	l := len(dAtA)
  3121  	iNdEx := 0
  3122  	depth := 0
  3123  	for iNdEx < l {
  3124  		var wire uint64
  3125  		for shift := uint(0); ; shift += 7 {
  3126  			if shift >= 64 {
  3127  				return 0, ErrIntOverflowEvent
  3128  			}
  3129  			if iNdEx >= l {
  3130  				return 0, io.ErrUnexpectedEOF
  3131  			}
  3132  			b := dAtA[iNdEx]
  3133  			iNdEx++
  3134  			wire |= (uint64(b) & 0x7F) << shift
  3135  			if b < 0x80 {
  3136  				break
  3137  			}
  3138  		}
  3139  		wireType := int(wire & 0x7)
  3140  		switch wireType {
  3141  		case 0:
  3142  			for shift := uint(0); ; shift += 7 {
  3143  				if shift >= 64 {
  3144  					return 0, ErrIntOverflowEvent
  3145  				}
  3146  				if iNdEx >= l {
  3147  					return 0, io.ErrUnexpectedEOF
  3148  				}
  3149  				iNdEx++
  3150  				if dAtA[iNdEx-1] < 0x80 {
  3151  					break
  3152  				}
  3153  			}
  3154  		case 1:
  3155  			iNdEx += 8
  3156  		case 2:
  3157  			var length int
  3158  			for shift := uint(0); ; shift += 7 {
  3159  				if shift >= 64 {
  3160  					return 0, ErrIntOverflowEvent
  3161  				}
  3162  				if iNdEx >= l {
  3163  					return 0, io.ErrUnexpectedEOF
  3164  				}
  3165  				b := dAtA[iNdEx]
  3166  				iNdEx++
  3167  				length |= (int(b) & 0x7F) << shift
  3168  				if b < 0x80 {
  3169  					break
  3170  				}
  3171  			}
  3172  			if length < 0 {
  3173  				return 0, ErrInvalidLengthEvent
  3174  			}
  3175  			iNdEx += length
  3176  		case 3:
  3177  			depth++
  3178  		case 4:
  3179  			if depth == 0 {
  3180  				return 0, ErrUnexpectedEndOfGroupEvent
  3181  			}
  3182  			depth--
  3183  		case 5:
  3184  			iNdEx += 4
  3185  		default:
  3186  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3187  		}
  3188  		if iNdEx < 0 {
  3189  			return 0, ErrInvalidLengthEvent
  3190  		}
  3191  		if depth == 0 {
  3192  			return iNdEx, nil
  3193  		}
  3194  	}
  3195  	return 0, io.ErrUnexpectedEOF
  3196  }
  3197  
  3198  var (
  3199  	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
  3200  	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
  3201  	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
  3202  )