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

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