From fb98ee93ceaacddce77aaf9df605c6a8ba3fda74 Mon Sep 17 00:00:00 2001 From: Mikhail Rogachev Date: Thu, 25 Jan 2024 20:48:27 +0400 Subject: [PATCH] Correct profile showcase tokens and collectibles (#4511) * feat: add profile showcase collectibles & assets missing fileds * feat: resolve collectible identification issue * feat: add validation for collectible visibility relative account * feat: separate profile showcase assets on verified and unverified tokens * fix: make chainId uint64, comment collectible account check * chore: re-generate protobuf binaries with right protoc version * Update protocol/messenger_profile_showcase.go Co-authored-by: Igor Sirotin --- protocol/encryption/protocol_message.pb.go | 1379 ++++++----------- protocol/messenger_profile_showcase.go | 159 +- protocol/messenger_profile_showcase_test.go | 334 ++-- protocol/migrations/migrations.go | 892 ++++++----- ...file_showcase_address_and_community.up.sql | 59 + protocol/persistence_profile_showcase.go | 329 +++- protocol/persistence_profile_showcase_test.go | 173 ++- protocol/protobuf/anon_metrics.pb.go | 320 ++-- .../application_metadata_message.pb.go | 808 ++++------ protocol/protobuf/command.pb.go | 773 ++++----- protocol/protobuf/community_shard_key.pb.go | 212 +-- protocol/protobuf/contact.pb.go | 540 +++---- protocol/protobuf/contact_verification.pb.go | 477 ++---- protocol/protobuf/group_chat_invitation.pb.go | 266 ++-- protocol/protobuf/profile_showcase.pb.go | 977 ++++++------ protocol/protobuf/profile_showcase.proto | 21 +- protocol/protobuf/segment_message.pb.go | 203 +-- protocol/protobuf/shard.pb.go | 389 ++--- protocol/protobuf/status_update.pb.go | 267 ++-- protocol/protobuf/sync_settings.pb.go | 454 +++--- protocol/protobuf/url_data.pb.go | 559 +++---- 21 files changed, 4190 insertions(+), 5401 deletions(-) create mode 100644 protocol/migrations/sqlite/1706028033_profile_showcase_address_and_community.up.sql diff --git a/protocol/encryption/protocol_message.pb.go b/protocol/encryption/protocol_message.pb.go index f6b374dc4..2d2c72b2b 100644 --- a/protocol/encryption/protocol_message.pb.go +++ b/protocol/encryption/protocol_message.pb.go @@ -1,94 +1,82 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: protocol_message.proto package encryption import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SignedPreKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SignedPreKey []byte `protobuf:"bytes,1,opt,name=signed_pre_key,json=signedPreKey,proto3" json:"signed_pre_key,omitempty"` - Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` - ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` + SignedPreKey []byte `protobuf:"bytes,1,opt,name=signed_pre_key,json=signedPreKey,proto3" json:"signed_pre_key,omitempty"` + Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` + ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SignedPreKey) Reset() { - *x = SignedPreKey{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignedPreKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignedPreKey) ProtoMessage() {} - -func (x *SignedPreKey) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignedPreKey.ProtoReflect.Descriptor instead. +func (m *SignedPreKey) Reset() { *m = SignedPreKey{} } +func (m *SignedPreKey) String() string { return proto.CompactTextString(m) } +func (*SignedPreKey) ProtoMessage() {} func (*SignedPreKey) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_4e37b52004a72e16, []int{0} } -func (x *SignedPreKey) GetSignedPreKey() []byte { - if x != nil { - return x.SignedPreKey +func (m *SignedPreKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignedPreKey.Unmarshal(m, b) +} +func (m *SignedPreKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignedPreKey.Marshal(b, m, deterministic) +} +func (m *SignedPreKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignedPreKey.Merge(m, src) +} +func (m *SignedPreKey) XXX_Size() int { + return xxx_messageInfo_SignedPreKey.Size(m) +} +func (m *SignedPreKey) XXX_DiscardUnknown() { + xxx_messageInfo_SignedPreKey.DiscardUnknown(m) +} + +var xxx_messageInfo_SignedPreKey proto.InternalMessageInfo + +func (m *SignedPreKey) GetSignedPreKey() []byte { + if m != nil { + return m.SignedPreKey } return nil } -func (x *SignedPreKey) GetVersion() uint32 { - if x != nil { - return x.Version +func (m *SignedPreKey) GetVersion() uint32 { + if m != nil { + return m.Version } return 0 } -func (x *SignedPreKey) GetProtocolVersion() uint32 { - if x != nil { - return x.ProtocolVersion +func (m *SignedPreKey) GetProtocolVersion() uint32 { + if m != nil { + return m.ProtocolVersion } return 0 } // X3DH prekey bundle type Bundle struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Identity key Identity []byte `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // Installation id @@ -96,131 +84,115 @@ type Bundle struct { // Prekey signature Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // When the bundle was created locally - Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Bundle) Reset() { - *x = Bundle{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Bundle) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Bundle) ProtoMessage() {} - -func (x *Bundle) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Bundle.ProtoReflect.Descriptor instead. +func (m *Bundle) Reset() { *m = Bundle{} } +func (m *Bundle) String() string { return proto.CompactTextString(m) } +func (*Bundle) ProtoMessage() {} func (*Bundle) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{1} + return fileDescriptor_4e37b52004a72e16, []int{1} } -func (x *Bundle) GetIdentity() []byte { - if x != nil { - return x.Identity +func (m *Bundle) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bundle.Unmarshal(m, b) +} +func (m *Bundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bundle.Marshal(b, m, deterministic) +} +func (m *Bundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bundle.Merge(m, src) +} +func (m *Bundle) XXX_Size() int { + return xxx_messageInfo_Bundle.Size(m) +} +func (m *Bundle) XXX_DiscardUnknown() { + xxx_messageInfo_Bundle.DiscardUnknown(m) +} + +var xxx_messageInfo_Bundle proto.InternalMessageInfo + +func (m *Bundle) GetIdentity() []byte { + if m != nil { + return m.Identity } return nil } -func (x *Bundle) GetSignedPreKeys() map[string]*SignedPreKey { - if x != nil { - return x.SignedPreKeys +func (m *Bundle) GetSignedPreKeys() map[string]*SignedPreKey { + if m != nil { + return m.SignedPreKeys } return nil } -func (x *Bundle) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *Bundle) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *Bundle) GetTimestamp() int64 { - if x != nil { - return x.Timestamp +func (m *Bundle) GetTimestamp() int64 { + if m != nil { + return m.Timestamp } return 0 } type BundleContainer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // X3DH prekey bundle Bundle *Bundle `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` // Private signed prekey - PrivateSignedPreKey []byte `protobuf:"bytes,2,opt,name=private_signed_pre_key,json=privateSignedPreKey,proto3" json:"private_signed_pre_key,omitempty"` + PrivateSignedPreKey []byte `protobuf:"bytes,2,opt,name=private_signed_pre_key,json=privateSignedPreKey,proto3" json:"private_signed_pre_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BundleContainer) Reset() { - *x = BundleContainer{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BundleContainer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BundleContainer) ProtoMessage() {} - -func (x *BundleContainer) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BundleContainer.ProtoReflect.Descriptor instead. +func (m *BundleContainer) Reset() { *m = BundleContainer{} } +func (m *BundleContainer) String() string { return proto.CompactTextString(m) } +func (*BundleContainer) ProtoMessage() {} func (*BundleContainer) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{2} + return fileDescriptor_4e37b52004a72e16, []int{2} } -func (x *BundleContainer) GetBundle() *Bundle { - if x != nil { - return x.Bundle +func (m *BundleContainer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BundleContainer.Unmarshal(m, b) +} +func (m *BundleContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BundleContainer.Marshal(b, m, deterministic) +} +func (m *BundleContainer) XXX_Merge(src proto.Message) { + xxx_messageInfo_BundleContainer.Merge(m, src) +} +func (m *BundleContainer) XXX_Size() int { + return xxx_messageInfo_BundleContainer.Size(m) +} +func (m *BundleContainer) XXX_DiscardUnknown() { + xxx_messageInfo_BundleContainer.DiscardUnknown(m) +} + +var xxx_messageInfo_BundleContainer proto.InternalMessageInfo + +func (m *BundleContainer) GetBundle() *Bundle { + if m != nil { + return m.Bundle } return nil } -func (x *BundleContainer) GetPrivateSignedPreKey() []byte { - if x != nil { - return x.PrivateSignedPreKey +func (m *BundleContainer) GetPrivateSignedPreKey() []byte { + if m != nil { + return m.PrivateSignedPreKey } return nil } type DRHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Current ratchet public key Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Number of the message in the sending chain @@ -228,180 +200,156 @@ type DRHeader struct { // Length of the previous sending chain Pn uint32 `protobuf:"varint,3,opt,name=pn,proto3" json:"pn,omitempty"` // Bundle ID - Id []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + Id []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DRHeader) Reset() { - *x = DRHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DRHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DRHeader) ProtoMessage() {} - -func (x *DRHeader) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DRHeader.ProtoReflect.Descriptor instead. +func (m *DRHeader) Reset() { *m = DRHeader{} } +func (m *DRHeader) String() string { return proto.CompactTextString(m) } +func (*DRHeader) ProtoMessage() {} func (*DRHeader) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{3} + return fileDescriptor_4e37b52004a72e16, []int{3} } -func (x *DRHeader) GetKey() []byte { - if x != nil { - return x.Key +func (m *DRHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DRHeader.Unmarshal(m, b) +} +func (m *DRHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DRHeader.Marshal(b, m, deterministic) +} +func (m *DRHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_DRHeader.Merge(m, src) +} +func (m *DRHeader) XXX_Size() int { + return xxx_messageInfo_DRHeader.Size(m) +} +func (m *DRHeader) XXX_DiscardUnknown() { + xxx_messageInfo_DRHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_DRHeader proto.InternalMessageInfo + +func (m *DRHeader) GetKey() []byte { + if m != nil { + return m.Key } return nil } -func (x *DRHeader) GetN() uint32 { - if x != nil { - return x.N +func (m *DRHeader) GetN() uint32 { + if m != nil { + return m.N } return 0 } -func (x *DRHeader) GetPn() uint32 { - if x != nil { - return x.Pn +func (m *DRHeader) GetPn() uint32 { + if m != nil { + return m.Pn } return 0 } -func (x *DRHeader) GetId() []byte { - if x != nil { - return x.Id +func (m *DRHeader) GetId() []byte { + if m != nil { + return m.Id } return nil } type DHHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Compressed ephemeral public key - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DHHeader) Reset() { - *x = DHHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DHHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DHHeader) ProtoMessage() {} - -func (x *DHHeader) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DHHeader.ProtoReflect.Descriptor instead. +func (m *DHHeader) Reset() { *m = DHHeader{} } +func (m *DHHeader) String() string { return proto.CompactTextString(m) } +func (*DHHeader) ProtoMessage() {} func (*DHHeader) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{4} + return fileDescriptor_4e37b52004a72e16, []int{4} } -func (x *DHHeader) GetKey() []byte { - if x != nil { - return x.Key +func (m *DHHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DHHeader.Unmarshal(m, b) +} +func (m *DHHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DHHeader.Marshal(b, m, deterministic) +} +func (m *DHHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_DHHeader.Merge(m, src) +} +func (m *DHHeader) XXX_Size() int { + return xxx_messageInfo_DHHeader.Size(m) +} +func (m *DHHeader) XXX_DiscardUnknown() { + xxx_messageInfo_DHHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_DHHeader proto.InternalMessageInfo + +func (m *DHHeader) GetKey() []byte { + if m != nil { + return m.Key } return nil } type X3DHHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Ephemeral key used Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Used bundle's signed prekey - Id []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + Id []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *X3DHHeader) Reset() { - *x = X3DHHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *X3DHHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*X3DHHeader) ProtoMessage() {} - -func (x *X3DHHeader) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use X3DHHeader.ProtoReflect.Descriptor instead. +func (m *X3DHHeader) Reset() { *m = X3DHHeader{} } +func (m *X3DHHeader) String() string { return proto.CompactTextString(m) } +func (*X3DHHeader) ProtoMessage() {} func (*X3DHHeader) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{5} + return fileDescriptor_4e37b52004a72e16, []int{5} } -func (x *X3DHHeader) GetKey() []byte { - if x != nil { - return x.Key +func (m *X3DHHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_X3DHHeader.Unmarshal(m, b) +} +func (m *X3DHHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_X3DHHeader.Marshal(b, m, deterministic) +} +func (m *X3DHHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_X3DHHeader.Merge(m, src) +} +func (m *X3DHHeader) XXX_Size() int { + return xxx_messageInfo_X3DHHeader.Size(m) +} +func (m *X3DHHeader) XXX_DiscardUnknown() { + xxx_messageInfo_X3DHHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_X3DHHeader proto.InternalMessageInfo + +func (m *X3DHHeader) GetKey() []byte { + if m != nil { + return m.Key } return nil } -func (x *X3DHHeader) GetId() []byte { - if x != nil { - return x.Id +func (m *X3DHHeader) GetId() []byte { + if m != nil { + return m.Id } return nil } // Hash Ratchet Header type HRHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // deprecated group key ID DeprecatedKeyId uint32 `protobuf:"varint,1,opt,name=deprecated_key_id,json=deprecatedKeyId,proto3" json:"deprecated_key_id,omitempty"` // group message number for this key_id @@ -409,329 +357,289 @@ type HRHeader struct { // group ID GroupId []byte `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // group key ID - KeyId []byte `protobuf:"bytes,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + KeyId []byte `protobuf:"bytes,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *HRHeader) Reset() { - *x = HRHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HRHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HRHeader) ProtoMessage() {} - -func (x *HRHeader) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HRHeader.ProtoReflect.Descriptor instead. +func (m *HRHeader) Reset() { *m = HRHeader{} } +func (m *HRHeader) String() string { return proto.CompactTextString(m) } +func (*HRHeader) ProtoMessage() {} func (*HRHeader) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{6} + return fileDescriptor_4e37b52004a72e16, []int{6} } -func (x *HRHeader) GetDeprecatedKeyId() uint32 { - if x != nil { - return x.DeprecatedKeyId +func (m *HRHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HRHeader.Unmarshal(m, b) +} +func (m *HRHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HRHeader.Marshal(b, m, deterministic) +} +func (m *HRHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_HRHeader.Merge(m, src) +} +func (m *HRHeader) XXX_Size() int { + return xxx_messageInfo_HRHeader.Size(m) +} +func (m *HRHeader) XXX_DiscardUnknown() { + xxx_messageInfo_HRHeader.DiscardUnknown(m) +} + +var xxx_messageInfo_HRHeader proto.InternalMessageInfo + +func (m *HRHeader) GetDeprecatedKeyId() uint32 { + if m != nil { + return m.DeprecatedKeyId } return 0 } -func (x *HRHeader) GetSeqNo() uint32 { - if x != nil { - return x.SeqNo +func (m *HRHeader) GetSeqNo() uint32 { + if m != nil { + return m.SeqNo } return 0 } -func (x *HRHeader) GetGroupId() []byte { - if x != nil { - return x.GroupId +func (m *HRHeader) GetGroupId() []byte { + if m != nil { + return m.GroupId } return nil } -func (x *HRHeader) GetKeyId() []byte { - if x != nil { - return x.KeyId +func (m *HRHeader) GetKeyId() []byte { + if m != nil { + return m.KeyId } return nil } type RekeyGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Keys map[uint32][]byte `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Keys map[uint32][]byte `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RekeyGroup) Reset() { - *x = RekeyGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RekeyGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RekeyGroup) ProtoMessage() {} - -func (x *RekeyGroup) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RekeyGroup.ProtoReflect.Descriptor instead. +func (m *RekeyGroup) Reset() { *m = RekeyGroup{} } +func (m *RekeyGroup) String() string { return proto.CompactTextString(m) } +func (*RekeyGroup) ProtoMessage() {} func (*RekeyGroup) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{7} + return fileDescriptor_4e37b52004a72e16, []int{7} } -func (x *RekeyGroup) GetTimestamp() uint64 { - if x != nil { - return x.Timestamp +func (m *RekeyGroup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RekeyGroup.Unmarshal(m, b) +} +func (m *RekeyGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RekeyGroup.Marshal(b, m, deterministic) +} +func (m *RekeyGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_RekeyGroup.Merge(m, src) +} +func (m *RekeyGroup) XXX_Size() int { + return xxx_messageInfo_RekeyGroup.Size(m) +} +func (m *RekeyGroup) XXX_DiscardUnknown() { + xxx_messageInfo_RekeyGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_RekeyGroup proto.InternalMessageInfo + +func (m *RekeyGroup) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp } return 0 } -func (x *RekeyGroup) GetKeys() map[uint32][]byte { - if x != nil { - return x.Keys +func (m *RekeyGroup) GetKeys() map[uint32][]byte { + if m != nil { + return m.Keys } return nil } type HRKeys struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Keys []*HRKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` - RekeyGroup *RekeyGroup `protobuf:"bytes,2,opt,name=rekey_group,json=rekeyGroup,proto3" json:"rekey_group,omitempty"` + Keys []*HRKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` + RekeyGroup *RekeyGroup `protobuf:"bytes,2,opt,name=rekey_group,json=rekeyGroup,proto3" json:"rekey_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *HRKeys) Reset() { - *x = HRKeys{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HRKeys) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HRKeys) ProtoMessage() {} - -func (x *HRKeys) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HRKeys.ProtoReflect.Descriptor instead. +func (m *HRKeys) Reset() { *m = HRKeys{} } +func (m *HRKeys) String() string { return proto.CompactTextString(m) } +func (*HRKeys) ProtoMessage() {} func (*HRKeys) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{8} + return fileDescriptor_4e37b52004a72e16, []int{8} } -func (x *HRKeys) GetKeys() []*HRKey { - if x != nil { - return x.Keys +func (m *HRKeys) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HRKeys.Unmarshal(m, b) +} +func (m *HRKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HRKeys.Marshal(b, m, deterministic) +} +func (m *HRKeys) XXX_Merge(src proto.Message) { + xxx_messageInfo_HRKeys.Merge(m, src) +} +func (m *HRKeys) XXX_Size() int { + return xxx_messageInfo_HRKeys.Size(m) +} +func (m *HRKeys) XXX_DiscardUnknown() { + xxx_messageInfo_HRKeys.DiscardUnknown(m) +} + +var xxx_messageInfo_HRKeys proto.InternalMessageInfo + +func (m *HRKeys) GetKeys() []*HRKey { + if m != nil { + return m.Keys } return nil } -func (x *HRKeys) GetRekeyGroup() *RekeyGroup { - if x != nil { - return x.RekeyGroup +func (m *HRKeys) GetRekeyGroup() *RekeyGroup { + if m != nil { + return m.RekeyGroup } return nil } type HRKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DeprecatedKeyId uint32 `protobuf:"varint,1,opt,name=deprecated_key_id,json=deprecatedKeyId,proto3" json:"deprecated_key_id,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + DeprecatedKeyId uint32 `protobuf:"varint,1,opt,name=deprecated_key_id,json=deprecatedKeyId,proto3" json:"deprecated_key_id,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *HRKey) Reset() { - *x = HRKey{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HRKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HRKey) ProtoMessage() {} - -func (x *HRKey) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HRKey.ProtoReflect.Descriptor instead. +func (m *HRKey) Reset() { *m = HRKey{} } +func (m *HRKey) String() string { return proto.CompactTextString(m) } +func (*HRKey) ProtoMessage() {} func (*HRKey) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{9} + return fileDescriptor_4e37b52004a72e16, []int{9} } -func (x *HRKey) GetDeprecatedKeyId() uint32 { - if x != nil { - return x.DeprecatedKeyId +func (m *HRKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HRKey.Unmarshal(m, b) +} +func (m *HRKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HRKey.Marshal(b, m, deterministic) +} +func (m *HRKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_HRKey.Merge(m, src) +} +func (m *HRKey) XXX_Size() int { + return xxx_messageInfo_HRKey.Size(m) +} +func (m *HRKey) XXX_DiscardUnknown() { + xxx_messageInfo_HRKey.DiscardUnknown(m) +} + +var xxx_messageInfo_HRKey proto.InternalMessageInfo + +func (m *HRKey) GetDeprecatedKeyId() uint32 { + if m != nil { + return m.DeprecatedKeyId } return 0 } -func (x *HRKey) GetKey() []byte { - if x != nil { - return x.Key +func (m *HRKey) GetKey() []byte { + if m != nil { + return m.Key } return nil } -func (x *HRKey) GetTimestamp() uint64 { - if x != nil { - return x.Timestamp +func (m *HRKey) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp } return 0 } // Direct message value type EncryptedMessageProtocol struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - X3DHHeader *X3DHHeader `protobuf:"bytes,1,opt,name=X3DH_header,json=X3DHHeader,proto3" json:"X3DH_header,omitempty"` DRHeader *DRHeader `protobuf:"bytes,2,opt,name=DR_header,json=DRHeader,proto3" json:"DR_header,omitempty"` DHHeader *DHHeader `protobuf:"bytes,101,opt,name=DH_header,json=DHHeader,proto3" json:"DH_header,omitempty"` HRHeader *HRHeader `protobuf:"bytes,102,opt,name=HR_header,json=HRHeader,proto3" json:"HR_header,omitempty"` // Encrypted payload - Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *EncryptedMessageProtocol) Reset() { - *x = EncryptedMessageProtocol{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EncryptedMessageProtocol) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EncryptedMessageProtocol) ProtoMessage() {} - -func (x *EncryptedMessageProtocol) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EncryptedMessageProtocol.ProtoReflect.Descriptor instead. +func (m *EncryptedMessageProtocol) Reset() { *m = EncryptedMessageProtocol{} } +func (m *EncryptedMessageProtocol) String() string { return proto.CompactTextString(m) } +func (*EncryptedMessageProtocol) ProtoMessage() {} func (*EncryptedMessageProtocol) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{10} + return fileDescriptor_4e37b52004a72e16, []int{10} } -func (x *EncryptedMessageProtocol) GetX3DHHeader() *X3DHHeader { - if x != nil { - return x.X3DHHeader +func (m *EncryptedMessageProtocol) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedMessageProtocol.Unmarshal(m, b) +} +func (m *EncryptedMessageProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedMessageProtocol.Marshal(b, m, deterministic) +} +func (m *EncryptedMessageProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedMessageProtocol.Merge(m, src) +} +func (m *EncryptedMessageProtocol) XXX_Size() int { + return xxx_messageInfo_EncryptedMessageProtocol.Size(m) +} +func (m *EncryptedMessageProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedMessageProtocol.DiscardUnknown(m) +} + +var xxx_messageInfo_EncryptedMessageProtocol proto.InternalMessageInfo + +func (m *EncryptedMessageProtocol) GetX3DHHeader() *X3DHHeader { + if m != nil { + return m.X3DHHeader } return nil } -func (x *EncryptedMessageProtocol) GetDRHeader() *DRHeader { - if x != nil { - return x.DRHeader +func (m *EncryptedMessageProtocol) GetDRHeader() *DRHeader { + if m != nil { + return m.DRHeader } return nil } -func (x *EncryptedMessageProtocol) GetDHHeader() *DHHeader { - if x != nil { - return x.DHHeader +func (m *EncryptedMessageProtocol) GetDHHeader() *DHHeader { + if m != nil { + return m.DHHeader } return nil } -func (x *EncryptedMessageProtocol) GetHRHeader() *HRHeader { - if x != nil { - return x.HRHeader +func (m *EncryptedMessageProtocol) GetHRHeader() *HRHeader { + if m != nil { + return m.HRHeader } return nil } -func (x *EncryptedMessageProtocol) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *EncryptedMessageProtocol) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } // Top-level protocol message type ProtocolMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The device id of the sender InstallationId string `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` // List of bundles @@ -740,408 +648,135 @@ type ProtocolMessage struct { // TODO map here is redundant in case of community messages EncryptedMessage map[string]*EncryptedMessageProtocol `protobuf:"bytes,101,rep,name=encrypted_message,json=encryptedMessage,proto3" json:"encrypted_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Public chats, not encrypted - PublicMessage []byte `protobuf:"bytes,102,opt,name=public_message,json=publicMessage,proto3" json:"public_message,omitempty"` + PublicMessage []byte `protobuf:"bytes,102,opt,name=public_message,json=publicMessage,proto3" json:"public_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProtocolMessage) Reset() { - *x = ProtocolMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_protocol_message_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProtocolMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProtocolMessage) ProtoMessage() {} - -func (x *ProtocolMessage) ProtoReflect() protoreflect.Message { - mi := &file_protocol_message_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProtocolMessage.ProtoReflect.Descriptor instead. +func (m *ProtocolMessage) Reset() { *m = ProtocolMessage{} } +func (m *ProtocolMessage) String() string { return proto.CompactTextString(m) } +func (*ProtocolMessage) ProtoMessage() {} func (*ProtocolMessage) Descriptor() ([]byte, []int) { - return file_protocol_message_proto_rawDescGZIP(), []int{11} + return fileDescriptor_4e37b52004a72e16, []int{11} } -func (x *ProtocolMessage) GetInstallationId() string { - if x != nil { - return x.InstallationId +func (m *ProtocolMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProtocolMessage.Unmarshal(m, b) +} +func (m *ProtocolMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProtocolMessage.Marshal(b, m, deterministic) +} +func (m *ProtocolMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProtocolMessage.Merge(m, src) +} +func (m *ProtocolMessage) XXX_Size() int { + return xxx_messageInfo_ProtocolMessage.Size(m) +} +func (m *ProtocolMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ProtocolMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_ProtocolMessage proto.InternalMessageInfo + +func (m *ProtocolMessage) GetInstallationId() string { + if m != nil { + return m.InstallationId } return "" } -func (x *ProtocolMessage) GetBundles() []*Bundle { - if x != nil { - return x.Bundles +func (m *ProtocolMessage) GetBundles() []*Bundle { + if m != nil { + return m.Bundles } return nil } -func (x *ProtocolMessage) GetEncryptedMessage() map[string]*EncryptedMessageProtocol { - if x != nil { - return x.EncryptedMessage +func (m *ProtocolMessage) GetEncryptedMessage() map[string]*EncryptedMessageProtocol { + if m != nil { + return m.EncryptedMessage } return nil } -func (x *ProtocolMessage) GetPublicMessage() []byte { - if x != nil { - return x.PublicMessage +func (m *ProtocolMessage) GetPublicMessage() []byte { + if m != nil { + return m.PublicMessage } return nil } -var File_protocol_message_proto protoreflect.FileDescriptor - -var file_protocol_message_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, - 0x65, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70, - 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x8b, 0x02, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x4d, 0x0a, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x5f, 0x70, 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65, 0x79, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, - 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x1a, 0x5a, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, - 0x65, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x78, 0x0a, - 0x0f, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x12, 0x2a, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x16, - 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70, - 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x70, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65, - 0x79, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x4a, 0x0a, 0x08, 0x44, 0x52, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x01, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x02, 0x70, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x08, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x22, 0x34, 0x0a, 0x0a, 0x58, 0x33, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, - 0x64, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x7f, 0x0a, 0x08, 0x48, 0x52, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, - 0x15, 0x0a, 0x06, 0x73, 0x65, 0x71, 0x5f, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x73, 0x65, 0x71, 0x4e, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, - 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x99, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x6b, - 0x65, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x52, 0x65, 0x6b, 0x65, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4b, 0x65, 0x79, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4b, - 0x65, 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x68, 0x0a, 0x06, 0x48, 0x52, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x25, - 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x52, 0x4b, 0x65, 0x79, 0x52, - 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x72, 0x65, 0x6b, 0x65, 0x79, 0x5f, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6b, 0x65, 0x79, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x52, 0x0a, 0x72, 0x65, 0x6b, 0x65, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x63, - 0x0a, 0x05, 0x48, 0x52, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x72, 0x65, - 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x22, 0x86, 0x02, 0x0a, 0x18, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x12, 0x37, 0x0a, 0x0b, 0x58, 0x33, 0x44, 0x48, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x58, 0x33, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x58, - 0x33, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x44, 0x52, 0x5f, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x52, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x52, 0x08, 0x44, 0x52, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x09, - 0x44, 0x48, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x48, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x08, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, - 0x31, 0x0a, 0x09, 0x48, 0x52, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x66, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x48, 0x52, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x08, 0x48, 0x52, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xda, 0x02, 0x0a, - 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x07, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x07, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x65, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x69, - 0x0a, 0x15, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3a, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x3b, - 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +func init() { + proto.RegisterType((*SignedPreKey)(nil), "encryption.SignedPreKey") + proto.RegisterType((*Bundle)(nil), "encryption.Bundle") + proto.RegisterMapType((map[string]*SignedPreKey)(nil), "encryption.Bundle.SignedPreKeysEntry") + proto.RegisterType((*BundleContainer)(nil), "encryption.BundleContainer") + proto.RegisterType((*DRHeader)(nil), "encryption.DRHeader") + proto.RegisterType((*DHHeader)(nil), "encryption.DHHeader") + proto.RegisterType((*X3DHHeader)(nil), "encryption.X3DHHeader") + proto.RegisterType((*HRHeader)(nil), "encryption.HRHeader") + proto.RegisterType((*RekeyGroup)(nil), "encryption.RekeyGroup") + proto.RegisterMapType((map[uint32][]byte)(nil), "encryption.RekeyGroup.KeysEntry") + proto.RegisterType((*HRKeys)(nil), "encryption.HRKeys") + proto.RegisterType((*HRKey)(nil), "encryption.HRKey") + proto.RegisterType((*EncryptedMessageProtocol)(nil), "encryption.EncryptedMessageProtocol") + proto.RegisterType((*ProtocolMessage)(nil), "encryption.ProtocolMessage") + proto.RegisterMapType((map[string]*EncryptedMessageProtocol)(nil), "encryption.ProtocolMessage.EncryptedMessageEntry") } -var ( - file_protocol_message_proto_rawDescOnce sync.Once - file_protocol_message_proto_rawDescData = file_protocol_message_proto_rawDesc -) - -func file_protocol_message_proto_rawDescGZIP() []byte { - file_protocol_message_proto_rawDescOnce.Do(func() { - file_protocol_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_protocol_message_proto_rawDescData) - }) - return file_protocol_message_proto_rawDescData +func init() { + proto.RegisterFile("protocol_message.proto", fileDescriptor_4e37b52004a72e16) } -var file_protocol_message_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_protocol_message_proto_goTypes = []interface{}{ - (*SignedPreKey)(nil), // 0: encryption.SignedPreKey - (*Bundle)(nil), // 1: encryption.Bundle - (*BundleContainer)(nil), // 2: encryption.BundleContainer - (*DRHeader)(nil), // 3: encryption.DRHeader - (*DHHeader)(nil), // 4: encryption.DHHeader - (*X3DHHeader)(nil), // 5: encryption.X3DHHeader - (*HRHeader)(nil), // 6: encryption.HRHeader - (*RekeyGroup)(nil), // 7: encryption.RekeyGroup - (*HRKeys)(nil), // 8: encryption.HRKeys - (*HRKey)(nil), // 9: encryption.HRKey - (*EncryptedMessageProtocol)(nil), // 10: encryption.EncryptedMessageProtocol - (*ProtocolMessage)(nil), // 11: encryption.ProtocolMessage - nil, // 12: encryption.Bundle.SignedPreKeysEntry - nil, // 13: encryption.RekeyGroup.KeysEntry - nil, // 14: encryption.ProtocolMessage.EncryptedMessageEntry -} -var file_protocol_message_proto_depIdxs = []int32{ - 12, // 0: encryption.Bundle.signed_pre_keys:type_name -> encryption.Bundle.SignedPreKeysEntry - 1, // 1: encryption.BundleContainer.bundle:type_name -> encryption.Bundle - 13, // 2: encryption.RekeyGroup.keys:type_name -> encryption.RekeyGroup.KeysEntry - 9, // 3: encryption.HRKeys.keys:type_name -> encryption.HRKey - 7, // 4: encryption.HRKeys.rekey_group:type_name -> encryption.RekeyGroup - 5, // 5: encryption.EncryptedMessageProtocol.X3DH_header:type_name -> encryption.X3DHHeader - 3, // 6: encryption.EncryptedMessageProtocol.DR_header:type_name -> encryption.DRHeader - 4, // 7: encryption.EncryptedMessageProtocol.DH_header:type_name -> encryption.DHHeader - 6, // 8: encryption.EncryptedMessageProtocol.HR_header:type_name -> encryption.HRHeader - 1, // 9: encryption.ProtocolMessage.bundles:type_name -> encryption.Bundle - 14, // 10: encryption.ProtocolMessage.encrypted_message:type_name -> encryption.ProtocolMessage.EncryptedMessageEntry - 0, // 11: encryption.Bundle.SignedPreKeysEntry.value:type_name -> encryption.SignedPreKey - 10, // 12: encryption.ProtocolMessage.EncryptedMessageEntry.value:type_name -> encryption.EncryptedMessageProtocol - 13, // [13:13] is the sub-list for method output_type - 13, // [13:13] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name -} - -func init() { file_protocol_message_proto_init() } -func file_protocol_message_proto_init() { - if File_protocol_message_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_protocol_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedPreKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Bundle); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BundleContainer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DRHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DHHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*X3DHHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HRHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RekeyGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HRKeys); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HRKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptedMessageProtocol); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protocol_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtocolMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_protocol_message_proto_rawDesc, - NumEnums: 0, - NumMessages: 15, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_protocol_message_proto_goTypes, - DependencyIndexes: file_protocol_message_proto_depIdxs, - MessageInfos: file_protocol_message_proto_msgTypes, - }.Build() - File_protocol_message_proto = out.File - file_protocol_message_proto_rawDesc = nil - file_protocol_message_proto_goTypes = nil - file_protocol_message_proto_depIdxs = nil +var fileDescriptor_4e37b52004a72e16 = []byte{ + // 758 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4d, 0x4f, 0xdb, 0x4c, + 0x10, 0x96, 0xed, 0x7c, 0x4e, 0x3e, 0xd9, 0x17, 0x90, 0xdf, 0x88, 0x43, 0x64, 0x81, 0x9a, 0xa2, + 0xca, 0x15, 0x1f, 0x12, 0x15, 0xbd, 0x51, 0x50, 0x03, 0x88, 0x0a, 0x6d, 0xa5, 0xaa, 0xe2, 0x50, + 0xcb, 0xc4, 0x03, 0x58, 0x04, 0xdb, 0xd8, 0x0e, 0xaa, 0x4f, 0xbd, 0xf5, 0xd2, 0x5f, 0xd0, 0xbf, + 0xd6, 0x5f, 0x53, 0xed, 0xae, 0xd7, 0xde, 0x84, 0x70, 0xe8, 0x2d, 0x3b, 0x3b, 0xf3, 0x3c, 0xcf, + 0xcc, 0x3c, 0xde, 0xc0, 0x7a, 0x14, 0x87, 0x69, 0x38, 0x09, 0xa7, 0xce, 0x03, 0x26, 0x89, 0x7b, + 0x8b, 0x36, 0x0f, 0x10, 0xc0, 0x60, 0x12, 0x67, 0x51, 0xea, 0x87, 0x81, 0x95, 0x41, 0xfb, 0xb3, + 0x7f, 0x1b, 0xa0, 0x77, 0x19, 0xe3, 0x39, 0x66, 0x64, 0x13, 0xba, 0x09, 0x3f, 0x3b, 0x51, 0x8c, + 0xce, 0x3d, 0x66, 0xa6, 0x36, 0xd4, 0x46, 0x6d, 0xda, 0x4e, 0xd4, 0x2c, 0x13, 0xea, 0x4f, 0x18, + 0x27, 0x7e, 0x18, 0x98, 0xfa, 0x50, 0x1b, 0x75, 0xa8, 0x3c, 0x92, 0xd7, 0xd0, 0x2f, 0x58, 0x65, + 0x8a, 0xc1, 0x53, 0x7a, 0x32, 0xfe, 0x45, 0x84, 0xad, 0x5f, 0x3a, 0xd4, 0x8e, 0x66, 0x81, 0x37, + 0x45, 0x32, 0x80, 0x86, 0xef, 0x61, 0x90, 0xfa, 0xa9, 0xe4, 0x2b, 0xce, 0xe4, 0x02, 0x7a, 0xf3, + 0x8a, 0x12, 0x53, 0x1f, 0x1a, 0xa3, 0xd6, 0xee, 0x96, 0x5d, 0xf6, 0x61, 0x0b, 0x20, 0x5b, 0xed, + 0x25, 0x39, 0x09, 0xd2, 0x38, 0xa3, 0x1d, 0x55, 0x79, 0x42, 0x36, 0xa0, 0xc9, 0x02, 0x6e, 0x3a, + 0x8b, 0xd1, 0xac, 0x70, 0xae, 0x32, 0xc0, 0x6e, 0x53, 0xff, 0x01, 0x93, 0xd4, 0x7d, 0x88, 0xcc, + 0xea, 0x50, 0x1b, 0x19, 0xb4, 0x0c, 0x0c, 0xae, 0x80, 0x3c, 0x27, 0x20, 0x7d, 0x30, 0xe4, 0x9c, + 0x9a, 0x94, 0xfd, 0x24, 0x36, 0x54, 0x9f, 0xdc, 0xe9, 0x0c, 0xf9, 0x70, 0x5a, 0xbb, 0xa6, 0x2a, + 0x54, 0x05, 0xa0, 0x22, 0xed, 0x50, 0x7f, 0xa7, 0x59, 0xdf, 0xa1, 0x27, 0x7a, 0xf8, 0x10, 0x06, + 0xa9, 0xeb, 0x07, 0x18, 0x93, 0x6d, 0xa8, 0x5d, 0xf3, 0x10, 0xc7, 0x6e, 0xed, 0x92, 0xe7, 0x0d, + 0xd3, 0x3c, 0x83, 0xec, 0xb1, 0x6d, 0xfb, 0x4f, 0x6e, 0x8a, 0xce, 0xc2, 0xfe, 0x74, 0xde, 0xe3, + 0x7f, 0xf9, 0xad, 0x4a, 0x7f, 0x56, 0x69, 0x18, 0xfd, 0x8a, 0x75, 0x06, 0x8d, 0x63, 0x3a, 0x46, + 0xd7, 0xc3, 0x58, 0xed, 0xa5, 0x2d, 0x7a, 0x69, 0x83, 0x26, 0x97, 0xac, 0x05, 0xa4, 0x0b, 0x7a, + 0x24, 0x17, 0xaa, 0x47, 0xfc, 0xec, 0x7b, 0xf9, 0x18, 0x75, 0xdf, 0xb3, 0x36, 0xa0, 0x71, 0x3c, + 0x7e, 0x09, 0xcb, 0xda, 0x07, 0xf8, 0xba, 0xf7, 0xf2, 0xfd, 0x22, 0x5a, 0xae, 0xef, 0x07, 0x34, + 0xc6, 0x52, 0xdf, 0x36, 0xac, 0x78, 0x18, 0xc5, 0x38, 0x71, 0x53, 0xf4, 0x58, 0x7b, 0x8e, 0xef, + 0x71, 0x84, 0x0e, 0xed, 0x95, 0x17, 0xe7, 0x98, 0x9d, 0x7a, 0x64, 0x0d, 0x6a, 0x09, 0x3e, 0x3a, + 0x41, 0x98, 0xcb, 0xaf, 0x26, 0xf8, 0xf8, 0x29, 0x24, 0xff, 0x43, 0xe3, 0x36, 0x0e, 0x67, 0x11, + 0xab, 0x34, 0x38, 0x55, 0x9d, 0x9f, 0x45, 0x45, 0x0e, 0x29, 0x34, 0x54, 0xef, 0x19, 0x90, 0xf5, + 0x5b, 0x03, 0xa0, 0x78, 0x8f, 0xd9, 0x47, 0x96, 0x37, 0xef, 0x11, 0x06, 0x5d, 0x51, 0x3c, 0x42, + 0xf6, 0xa1, 0xc2, 0x3d, 0x5a, 0xe1, 0x1e, 0x1d, 0xaa, 0x2b, 0x2b, 0x31, 0xec, 0xd2, 0x9e, 0x3c, + 0x7b, 0x70, 0x00, 0xcd, 0xa5, 0x86, 0xea, 0x88, 0xc1, 0xac, 0xaa, 0x86, 0x6a, 0xab, 0xb6, 0xb9, + 0x83, 0xda, 0x98, 0x72, 0x63, 0x6f, 0xe5, 0xc4, 0x1a, 0x27, 0x5e, 0x51, 0x89, 0x79, 0x86, 0x60, + 0x22, 0x07, 0xd0, 0x8a, 0x99, 0x0e, 0x87, 0x37, 0x9d, 0x3b, 0x74, 0x7d, 0xb9, 0x4c, 0x0a, 0x71, + 0xf1, 0xdb, 0x9a, 0x40, 0x95, 0xe3, 0xfc, 0xd3, 0x0e, 0xf2, 0x56, 0xf4, 0x72, 0xc7, 0x73, 0xd3, + 0x33, 0x16, 0xa6, 0x67, 0xfd, 0xd4, 0xc1, 0x3c, 0x11, 0x52, 0xd0, 0xbb, 0x10, 0xaf, 0xd6, 0x65, + 0xfe, 0x6e, 0x30, 0xe9, 0xcc, 0x3e, 0xce, 0x1d, 0xf7, 0x42, 0xfe, 0x51, 0xcc, 0x49, 0x2f, 0xdd, + 0x45, 0x55, 0xa7, 0xed, 0x40, 0xf3, 0x98, 0xca, 0x32, 0xd1, 0xf1, 0xaa, 0x5a, 0x26, 0xed, 0x4f, + 0xcb, 0x0f, 0x81, 0x95, 0x14, 0x4c, 0xb8, 0xa4, 0x64, 0x5c, 0x94, 0x28, 0x2c, 0xe3, 0x82, 0xe5, + 0xe6, 0x79, 0xc9, 0xb8, 0x60, 0x29, 0xec, 0x6c, 0x42, 0x3d, 0x72, 0xb3, 0x69, 0xe8, 0x16, 0x56, + 0xcc, 0x8f, 0xd6, 0x1f, 0x1d, 0x7a, 0xb2, 0xf1, 0x7c, 0x0e, 0xe4, 0x15, 0xf4, 0xfc, 0x20, 0x49, + 0xdd, 0xe9, 0xd4, 0x65, 0x80, 0x6c, 0xec, 0x3a, 0x7f, 0x74, 0xba, 0x6a, 0xf8, 0xd4, 0x23, 0x6f, + 0xa0, 0x2e, 0x9e, 0x85, 0xc4, 0x34, 0xb8, 0x1b, 0x96, 0xbd, 0x1c, 0x32, 0x85, 0x7c, 0x83, 0x15, + 0x94, 0x23, 0x97, 0xff, 0x14, 0x26, 0xf2, 0xba, 0x1d, 0xb5, 0x6e, 0x41, 0x8e, 0xbd, 0xb8, 0x27, + 0xe1, 0xe7, 0x3e, 0x2e, 0x84, 0xc9, 0x16, 0x74, 0xa3, 0xd9, 0xf5, 0xd4, 0x9f, 0x14, 0xe0, 0x37, + 0xbc, 0xd7, 0x8e, 0x88, 0xe6, 0x69, 0x03, 0x1f, 0xd6, 0x96, 0x22, 0x2e, 0x79, 0x5f, 0x0f, 0xe7, + 0xdf, 0xd7, 0x4d, 0x55, 0xe5, 0x4b, 0xee, 0x51, 0x3e, 0x9a, 0xa3, 0xde, 0x55, 0xc7, 0x7e, 0xfb, + 0xbe, 0x2c, 0xba, 0xae, 0xf1, 0xff, 0xa6, 0xbd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0x0a, + 0xaa, 0xf0, 0x32, 0x07, 0x00, 0x00, } diff --git a/protocol/messenger_profile_showcase.go b/protocol/messenger_profile_showcase.go index e64a9e9a1..a9d6fb631 100644 --- a/protocol/messenger_profile_showcase.go +++ b/protocol/messenger_profile_showcase.go @@ -12,6 +12,14 @@ import ( "github.com/status-im/status-go/protocol/protobuf" ) +var errorNoAccountProvidedWithTokenOrCollectible = errors.New("no account provided with tokens or collectible") +var errorDublicateAccountAddress = errors.New("duplicate account address") + +// NOTE: this error is temporary unused because we don't know account on this stage +// var errorNoAccountAddressForCollectible = errors.New("no account found for collectible") +var errorAccountVisibilityLowerThanCollectible = errors.New("account visibility lower than collectible") +var errorDecryptingPayloadEncryptionKey = errors.New("decrypting the payload encryption key resulted in no error and a nil key") + func toProfileShowcaseCommunityProto(preferences []*ProfileShowcaseCommunityPreference, visibility ProfileShowcaseVisibility) []*protobuf.ProfileShowcaseCommunity { communities := []*protobuf.ProfileShowcaseCommunity{} for _, preference := range preferences { @@ -53,26 +61,46 @@ func toProfileShowcaseCollectibleProto(preferences []*ProfileShowcaseCollectible } collectibles = append(collectibles, &protobuf.ProfileShowcaseCollectible{ - Uid: preference.UID, - Order: uint32(preference.Order), + ContractAddress: preference.ContractAddress, + ChainId: preference.ChainID, + TokenId: preference.TokenID, + CommunityId: preference.CommunityID, + AccountAddress: preference.AccountAddress, + Order: uint32(preference.Order), }) } return collectibles } -func toProfileShowcaseAssetProto(preferences []*ProfileShowcaseAssetPreference, visibility ProfileShowcaseVisibility) []*protobuf.ProfileShowcaseAsset { - assets := []*protobuf.ProfileShowcaseAsset{} +func toProfileShowcaseVerifiedTokensProto(preferences []*ProfileShowcaseVerifiedTokenPreference, visibility ProfileShowcaseVisibility) []*protobuf.ProfileShowcaseVerifiedToken { + tokens := []*protobuf.ProfileShowcaseVerifiedToken{} for _, preference := range preferences { if preference.ShowcaseVisibility != visibility { continue } - assets = append(assets, &protobuf.ProfileShowcaseAsset{ + tokens = append(tokens, &protobuf.ProfileShowcaseVerifiedToken{ Symbol: preference.Symbol, Order: uint32(preference.Order), }) } - return assets + return tokens +} + +func toProfileShowcaseUnverifiedTokensProto(preferences []*ProfileShowcaseUnverifiedTokenPreference, visibility ProfileShowcaseVisibility) []*protobuf.ProfileShowcaseUnverifiedToken { + tokens := []*protobuf.ProfileShowcaseUnverifiedToken{} + for _, preference := range preferences { + if preference.ShowcaseVisibility != visibility { + continue + } + + tokens = append(tokens, &protobuf.ProfileShowcaseUnverifiedToken{ + ContractAddress: preference.ContractAddress, + ChainId: preference.ChainID, + Order: uint32(preference.Order), + }) + } + return tokens } func fromProfileShowcaseCommunityProto(messages []*protobuf.ProfileShowcaseCommunity) []*ProfileShowcaseCommunity { @@ -104,26 +132,76 @@ func fromProfileShowcaseCollectibleProto(messages []*protobuf.ProfileShowcaseCol collectibles := []*ProfileShowcaseCollectible{} for _, entry := range messages { collectibles = append(collectibles, &ProfileShowcaseCollectible{ - UID: entry.Uid, - Order: int(entry.Order), + ContractAddress: entry.ContractAddress, + ChainID: entry.ChainId, + TokenID: entry.TokenId, + CommunityID: entry.CommunityId, + AccountAddress: entry.AccountAddress, + Order: int(entry.Order), }) } return collectibles } -func fromProfileShowcaseAssetProto(messages []*protobuf.ProfileShowcaseAsset) []*ProfileShowcaseAsset { - assets := []*ProfileShowcaseAsset{} +func fromProfileShowcaseVerifiedTokenProto(messages []*protobuf.ProfileShowcaseVerifiedToken) []*ProfileShowcaseVerifiedToken { + tokens := []*ProfileShowcaseVerifiedToken{} for _, entry := range messages { - assets = append(assets, &ProfileShowcaseAsset{ + tokens = append(tokens, &ProfileShowcaseVerifiedToken{ Symbol: entry.Symbol, Order: int(entry.Order), }) } - return assets + return tokens +} + +func fromProfileShowcaseUnverifiedTokenProto(messages []*protobuf.ProfileShowcaseUnverifiedToken) []*ProfileShowcaseUnverifiedToken { + tokens := []*ProfileShowcaseUnverifiedToken{} + for _, entry := range messages { + tokens = append(tokens, &ProfileShowcaseUnverifiedToken{ + ContractAddress: entry.ContractAddress, + ChainID: entry.ChainId, + Order: int(entry.Order), + }) + } + return tokens +} + +func Validate(preferences *ProfileShowcasePreferences) error { + if (len(preferences.VerifiedTokens) > 0 || len(preferences.UnverifiedTokens) > 0 || len(preferences.Collectibles) > 0) && + len(preferences.Accounts) == 0 { + return errorNoAccountProvidedWithTokenOrCollectible + } + + accountsMap := make(map[string]*ProfileShowcaseAccountPreference) + for _, account := range preferences.Accounts { + if _, ok := accountsMap[account.Address]; ok { + return errorDublicateAccountAddress + } + accountsMap[account.Address] = account + } + + for _, collectible := range preferences.Collectibles { + account, ok := accountsMap[collectible.AccountAddress] + if !ok { + return nil + // NOTE: with current wallet collectible implementation we don't know account on this stage + // return errorNoAccountAddressForCollectible + } + if account.ShowcaseVisibility < collectible.ShowcaseVisibility { + return errorAccountVisibilityLowerThanCollectible + } + } + + return nil } func (m *Messenger) SetProfileShowcasePreferences(preferences *ProfileShowcasePreferences) error { - err := m.persistence.SaveProfileShowcasePreferences(preferences) + err := Validate(preferences) + if err != nil { + return err + } + + err = m.persistence.SaveProfileShowcasePreferences(preferences) if err != nil { return err } @@ -207,7 +285,7 @@ func (m *Messenger) DecryptProfileShowcaseEntriesWithPubKey(senderPubKey *ecdsa. return nil, err } if dAESKey == nil { - return nil, errors.New("decrypting the payload encryption key resulted in no error and a nil key") + return nil, errorDecryptingPayloadEncryptionKey } // Decrypt profile entries with the newly decrypted main encryption AES key @@ -236,24 +314,27 @@ func (m *Messenger) GetProfileShowcaseForSelfIdentity() (*protobuf.ProfileShowca } forEveryone := &protobuf.ProfileShowcaseEntries{ - Communities: toProfileShowcaseCommunityProto(preferences.Communities, ProfileShowcaseVisibilityEveryone), - Accounts: toProfileShowcaseAccountProto(preferences.Accounts, ProfileShowcaseVisibilityEveryone), - Collectibles: toProfileShowcaseCollectibleProto(preferences.Collectibles, ProfileShowcaseVisibilityEveryone), - Assets: toProfileShowcaseAssetProto(preferences.Assets, ProfileShowcaseVisibilityEveryone), + Communities: toProfileShowcaseCommunityProto(preferences.Communities, ProfileShowcaseVisibilityEveryone), + Accounts: toProfileShowcaseAccountProto(preferences.Accounts, ProfileShowcaseVisibilityEveryone), + Collectibles: toProfileShowcaseCollectibleProto(preferences.Collectibles, ProfileShowcaseVisibilityEveryone), + VerifiedTokens: toProfileShowcaseVerifiedTokensProto(preferences.VerifiedTokens, ProfileShowcaseVisibilityEveryone), + UnverifiedTokens: toProfileShowcaseUnverifiedTokensProto(preferences.UnverifiedTokens, ProfileShowcaseVisibilityEveryone), } forContacts := &protobuf.ProfileShowcaseEntries{ - Communities: toProfileShowcaseCommunityProto(preferences.Communities, ProfileShowcaseVisibilityContacts), - Accounts: toProfileShowcaseAccountProto(preferences.Accounts, ProfileShowcaseVisibilityContacts), - Collectibles: toProfileShowcaseCollectibleProto(preferences.Collectibles, ProfileShowcaseVisibilityContacts), - Assets: toProfileShowcaseAssetProto(preferences.Assets, ProfileShowcaseVisibilityContacts), + Communities: toProfileShowcaseCommunityProto(preferences.Communities, ProfileShowcaseVisibilityContacts), + Accounts: toProfileShowcaseAccountProto(preferences.Accounts, ProfileShowcaseVisibilityContacts), + Collectibles: toProfileShowcaseCollectibleProto(preferences.Collectibles, ProfileShowcaseVisibilityContacts), + VerifiedTokens: toProfileShowcaseVerifiedTokensProto(preferences.VerifiedTokens, ProfileShowcaseVisibilityContacts), + UnverifiedTokens: toProfileShowcaseUnverifiedTokensProto(preferences.UnverifiedTokens, ProfileShowcaseVisibilityContacts), } forIDVerifiedContacts := &protobuf.ProfileShowcaseEntries{ - Communities: toProfileShowcaseCommunityProto(preferences.Communities, ProfileShowcaseVisibilityIDVerifiedContacts), - Accounts: toProfileShowcaseAccountProto(preferences.Accounts, ProfileShowcaseVisibilityIDVerifiedContacts), - Collectibles: toProfileShowcaseCollectibleProto(preferences.Collectibles, ProfileShowcaseVisibilityIDVerifiedContacts), - Assets: toProfileShowcaseAssetProto(preferences.Assets, ProfileShowcaseVisibilityIDVerifiedContacts), + Communities: toProfileShowcaseCommunityProto(preferences.Communities, ProfileShowcaseVisibilityIDVerifiedContacts), + Accounts: toProfileShowcaseAccountProto(preferences.Accounts, ProfileShowcaseVisibilityIDVerifiedContacts), + Collectibles: toProfileShowcaseCollectibleProto(preferences.Collectibles, ProfileShowcaseVisibilityIDVerifiedContacts), + VerifiedTokens: toProfileShowcaseVerifiedTokensProto(preferences.VerifiedTokens, ProfileShowcaseVisibilityIDVerifiedContacts), + UnverifiedTokens: toProfileShowcaseUnverifiedTokensProto(preferences.UnverifiedTokens, ProfileShowcaseVisibilityIDVerifiedContacts), } mutualContacts := []*Contact{} @@ -290,12 +371,14 @@ func (m *Messenger) BuildProfileShowcaseFromIdentity(state *ReceivedMessageState communities := []*ProfileShowcaseCommunity{} accounts := []*ProfileShowcaseAccount{} collectibles := []*ProfileShowcaseCollectible{} - assets := []*ProfileShowcaseAsset{} + verifiedTokens := []*ProfileShowcaseVerifiedToken{} + unverifiedTokens := []*ProfileShowcaseUnverifiedToken{} communities = append(communities, fromProfileShowcaseCommunityProto(message.ForEveryone.Communities)...) accounts = append(accounts, fromProfileShowcaseAccountProto(message.ForEveryone.Accounts)...) collectibles = append(collectibles, fromProfileShowcaseCollectibleProto(message.ForEveryone.Collectibles)...) - assets = append(assets, fromProfileShowcaseAssetProto(message.ForEveryone.Assets)...) + verifiedTokens = append(verifiedTokens, fromProfileShowcaseVerifiedTokenProto(message.ForEveryone.VerifiedTokens)...) + unverifiedTokens = append(unverifiedTokens, fromProfileShowcaseUnverifiedTokenProto(message.ForEveryone.UnverifiedTokens)...) senderPubKey := state.CurrentMessageState.PublicKey contactID := state.CurrentMessageState.Contact.ID @@ -309,7 +392,8 @@ func (m *Messenger) BuildProfileShowcaseFromIdentity(state *ReceivedMessageState communities = append(communities, fromProfileShowcaseCommunityProto(forContacts.Communities)...) accounts = append(accounts, fromProfileShowcaseAccountProto(forContacts.Accounts)...) collectibles = append(collectibles, fromProfileShowcaseCollectibleProto(forContacts.Collectibles)...) - assets = append(assets, fromProfileShowcaseAssetProto(forContacts.Assets)...) + verifiedTokens = append(verifiedTokens, fromProfileShowcaseVerifiedTokenProto(forContacts.VerifiedTokens)...) + unverifiedTokens = append(unverifiedTokens, fromProfileShowcaseUnverifiedTokenProto(forContacts.UnverifiedTokens)...) } forIDVerifiedContacts, err := m.DecryptProfileShowcaseEntriesWithPubKey(senderPubKey, message.ForIdVerifiedContacts) @@ -321,15 +405,20 @@ func (m *Messenger) BuildProfileShowcaseFromIdentity(state *ReceivedMessageState communities = append(communities, fromProfileShowcaseCommunityProto(forIDVerifiedContacts.Communities)...) accounts = append(accounts, fromProfileShowcaseAccountProto(forIDVerifiedContacts.Accounts)...) collectibles = append(collectibles, fromProfileShowcaseCollectibleProto(forIDVerifiedContacts.Collectibles)...) - assets = append(assets, fromProfileShowcaseAssetProto(forIDVerifiedContacts.Assets)...) + verifiedTokens = append(verifiedTokens, fromProfileShowcaseVerifiedTokenProto(forIDVerifiedContacts.VerifiedTokens)...) + unverifiedTokens = append(unverifiedTokens, fromProfileShowcaseUnverifiedTokenProto(forIDVerifiedContacts.UnverifiedTokens)...) } + // TODO: validate community membership here (https://github.com/status-im/status-desktop/issues/13081) + // TODO: validate collectible ownership here (https://github.com/status-im/status-desktop/issues/13073) + newShowcase := &ProfileShowcase{ - ContactID: contactID, - Communities: communities, - Accounts: accounts, - Collectibles: collectibles, - Assets: assets, + ContactID: contactID, + Communities: communities, + Accounts: accounts, + Collectibles: collectibles, + VerifiedTokens: verifiedTokens, + UnverifiedTokens: unverifiedTokens, } oldShowcase, err := m.persistence.GetProfileShowcaseForContact(contactID) diff --git a/protocol/messenger_profile_showcase_test.go b/protocol/messenger_profile_showcase_test.go index c7fc9bbd3..ddbbd4bb5 100644 --- a/protocol/messenger_profile_showcase_test.go +++ b/protocol/messenger_profile_showcase_test.go @@ -112,54 +112,88 @@ func (s *TestMessengerProfileShowcase) verifiedContact(theirMessenger *Messenger } func (s *TestMessengerProfileShowcase) prepareShowcasePreferences() *ProfileShowcasePreferences { - communityEntry1 := &ProfileShowcaseCommunityPreference{ - CommunityID: "0x01312357798976434", - ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, - Order: 10, - } - - communityEntry2 := &ProfileShowcaseCommunityPreference{ - CommunityID: "0x01312357798976535", - ShowcaseVisibility: ProfileShowcaseVisibilityContacts, - Order: 11, - } - - communityEntry3 := &ProfileShowcaseCommunityPreference{ - CommunityID: "0x01312353452343552", - ShowcaseVisibility: ProfileShowcaseVisibilityIDVerifiedContacts, - Order: 12, - } - - accountEntry := &ProfileShowcaseAccountPreference{ - Address: "0cx34662234", - Name: "Status Account", - ColorID: "blue", - Emoji: ">:-]", - ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, - Order: 17, - } - - collectibleEntry := &ProfileShowcaseCollectiblePreference{ - UID: "0x12378534257568678487683576", - ShowcaseVisibility: ProfileShowcaseVisibilityIDVerifiedContacts, - Order: 17, - } - - assetEntry := &ProfileShowcaseAssetPreference{ - Symbol: "SNT", - ShowcaseVisibility: ProfileShowcaseVisibilityNoOne, - Order: 17, - } - return &ProfileShowcasePreferences{ - Communities: []*ProfileShowcaseCommunityPreference{communityEntry1, communityEntry2, communityEntry3}, - Accounts: []*ProfileShowcaseAccountPreference{accountEntry}, - Collectibles: []*ProfileShowcaseCollectiblePreference{collectibleEntry}, - Assets: []*ProfileShowcaseAssetPreference{assetEntry}, + Communities: []*ProfileShowcaseCommunityPreference{ + &ProfileShowcaseCommunityPreference{ + CommunityID: "0x32433445133424", + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 0, + }, + &ProfileShowcaseCommunityPreference{ + CommunityID: "0x33443246664345", + ShowcaseVisibility: ProfileShowcaseVisibilityContacts, + Order: 1, + }, + &ProfileShowcaseCommunityPreference{ + CommunityID: "0x33446343643446", + ShowcaseVisibility: ProfileShowcaseVisibilityIDVerifiedContacts, + Order: 2, + }, + }, + Accounts: []*ProfileShowcaseAccountPreference{ + &ProfileShowcaseAccountPreference{ + Address: "0x32433445133424", + Name: "Status Account", + ColorID: "blue", + Emoji: "-_-", + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 0, + }, + &ProfileShowcaseAccountPreference{ + Address: "0x3845354643324", + Name: "Money Box", + ColorID: "red", + Emoji: ":o)", + ShowcaseVisibility: ProfileShowcaseVisibilityContacts, + Order: 1, + }, + }, + Collectibles: []*ProfileShowcaseCollectiblePreference{ + &ProfileShowcaseCollectiblePreference{ + ContractAddress: "0x12378534257568678487683576", + ChainID: 1, + TokenID: "0x12321389592999f903", + CommunityID: "0x01312357798976535", + AccountAddress: "0x32433445133424", + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 0, + }, + }, + VerifiedTokens: []*ProfileShowcaseVerifiedTokenPreference{ + &ProfileShowcaseVerifiedTokenPreference{ + Symbol: "ETH", + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 1, + }, + &ProfileShowcaseVerifiedTokenPreference{ + Symbol: "DAI", + ShowcaseVisibility: ProfileShowcaseVisibilityIDVerifiedContacts, + Order: 2, + }, + &ProfileShowcaseVerifiedTokenPreference{ + Symbol: "SNT", + ShowcaseVisibility: ProfileShowcaseVisibilityNoOne, + Order: 3, + }, + }, + UnverifiedTokens: []*ProfileShowcaseUnverifiedTokenPreference{ + &ProfileShowcaseUnverifiedTokenPreference{ + ContractAddress: "0x454525452023452", + ChainID: 3, + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 0, + }, + &ProfileShowcaseUnverifiedTokenPreference{ + ContractAddress: "0x12312323323233", + ChainID: 6, + ShowcaseVisibility: ProfileShowcaseVisibilityContacts, + Order: 1, + }, + }, } } -func (s *TestMessengerProfileShowcase) TestSetAndGetProfileShowcasePreferences() { +func (s *TestMessengerProfileShowcase) TestSaveAndGetProfileShowcasePreferences() { request := s.prepareShowcasePreferences() err := s.m.SetProfileShowcasePreferences(request) s.Require().NoError(err) @@ -168,19 +202,59 @@ func (s *TestMessengerProfileShowcase) TestSetAndGetProfileShowcasePreferences() response, err := s.m.GetProfileShowcasePreferences() s.Require().NoError(err) - s.Require().Len(response.Communities, 3) - s.Require().Equal(response.Communities[0], request.Communities[0]) - s.Require().Equal(response.Communities[1], request.Communities[1]) - s.Require().Equal(response.Communities[2], request.Communities[2]) + s.Require().Equal(len(response.Communities), len(request.Communities)) + for i := 0; i < len(response.Communities); i++ { + s.Require().Equal(*response.Communities[i], *request.Communities[i]) + } - s.Require().Len(response.Accounts, 1) - s.Require().Equal(response.Accounts[0], request.Accounts[0]) + s.Require().Equal(len(response.Accounts), len(request.Accounts)) + for i := 0; i < len(response.Accounts); i++ { + s.Require().Equal(*response.Accounts[i], *request.Accounts[i]) + } - s.Require().Len(response.Collectibles, 1) - s.Require().Equal(response.Collectibles[0], request.Collectibles[0]) + s.Require().Equal(len(response.Collectibles), len(request.Collectibles)) + for i := 0; i < len(response.Collectibles); i++ { + s.Require().Equal(*response.Collectibles[i], *request.Collectibles[i]) + } - s.Require().Len(response.Assets, 1) - s.Require().Equal(response.Assets[0], request.Assets[0]) + s.Require().Equal(len(response.VerifiedTokens), len(request.VerifiedTokens)) + for i := 0; i < len(response.VerifiedTokens); i++ { + s.Require().Equal(*response.VerifiedTokens[i], *request.VerifiedTokens[i]) + } + + s.Require().Equal(len(response.UnverifiedTokens), len(request.UnverifiedTokens)) + for i := 0; i < len(response.UnverifiedTokens); i++ { + s.Require().Equal(*response.UnverifiedTokens[i], *request.UnverifiedTokens[i]) + } +} + +func (s *TestMessengerProfileShowcase) TestFailToSaveProfileShowcasePreferencesWithWrongVisibility() { + accountEntry := &ProfileShowcaseAccountPreference{ + Address: "0x32433445133424", + Name: "Status Account", + ColorID: "blue", + Emoji: ">:-]", + ShowcaseVisibility: ProfileShowcaseVisibilityIDVerifiedContacts, + Order: 17, + } + + collectibleEntry := &ProfileShowcaseCollectiblePreference{ + ContractAddress: "0x12378534257568678487683576", + ChainID: 8, + TokenID: "0x12321389592999f903", + CommunityID: "0x01312357798976535", + AccountAddress: "0x32433445133424", + ShowcaseVisibility: ProfileShowcaseVisibilityContacts, + Order: 17, + } + + request := &ProfileShowcasePreferences{ + Accounts: []*ProfileShowcaseAccountPreference{accountEntry}, + Collectibles: []*ProfileShowcaseCollectiblePreference{collectibleEntry}, + } + + err := s.m.SetProfileShowcasePreferences(request) + s.Require().Equal(errorAccountVisibilityLowerThanCollectible, err) } func (s *TestMessengerProfileShowcase) TestEncryptAndDecryptProfileShowcaseEntries() { @@ -212,18 +286,40 @@ func (s *TestMessengerProfileShowcase) TestEncryptAndDecryptProfileShowcaseEntri Order: 1, }, }, - Assets: []*protobuf.ProfileShowcaseAsset{ - &protobuf.ProfileShowcaseAsset{ + Collectibles: []*protobuf.ProfileShowcaseCollectible{ + &protobuf.ProfileShowcaseCollectible{ + ContractAddress: "0x12378534257568678487683576", + ChainId: 7, + TokenId: "0x12321389592999f903", + AccountAddress: "0x32433445133424", + CommunityId: "0x12378534257568678487683576", + Order: 0, + }, + }, + VerifiedTokens: []*protobuf.ProfileShowcaseVerifiedToken{ + &protobuf.ProfileShowcaseVerifiedToken{ Symbol: "ETH", + Order: 1, + }, + &protobuf.ProfileShowcaseVerifiedToken{ + Symbol: "DAI", Order: 2, }, - &protobuf.ProfileShowcaseAsset{ - Symbol: "DAI", + &protobuf.ProfileShowcaseVerifiedToken{ + Symbol: "SNT", Order: 3, }, - &protobuf.ProfileShowcaseAsset{ - Symbol: "SNT", - Order: 1, + }, + UnverifiedTokens: []*protobuf.ProfileShowcaseUnverifiedToken{ + &protobuf.ProfileShowcaseUnverifiedToken{ + ContractAddress: "0x454525452023452", + ChainId: 3, + Order: 0, + }, + &protobuf.ProfileShowcaseUnverifiedToken{ + ContractAddress: "0x12312323323233", + ChainId: 2, + Order: 1, }, }, } @@ -233,28 +329,43 @@ func (s *TestMessengerProfileShowcase) TestEncryptAndDecryptProfileShowcaseEntri entriesBack, err := theirMessenger.DecryptProfileShowcaseEntriesWithPubKey(&s.m.identity.PublicKey, data) s.Require().NoError(err) - s.Require().Equal(2, len(entriesBack.Communities)) - s.Require().Equal(entries.Communities[0].CommunityId, entriesBack.Communities[0].CommunityId) - s.Require().Equal(entries.Communities[0].Order, entriesBack.Communities[0].Order) - s.Require().Equal(entries.Communities[1].CommunityId, entriesBack.Communities[1].CommunityId) - s.Require().Equal(entries.Communities[1].Order, entriesBack.Communities[1].Order) + s.Require().Equal(len(entries.Communities), len(entriesBack.Communities)) + for i := 0; i < len(entriesBack.Communities); i++ { + s.Require().Equal(entries.Communities[i].CommunityId, entriesBack.Communities[i].CommunityId) + s.Require().Equal(entries.Communities[i].Order, entriesBack.Communities[i].Order) + } - s.Require().Equal(1, len(entriesBack.Accounts)) - s.Require().Equal(entries.Accounts[0].Address, entriesBack.Accounts[0].Address) - s.Require().Equal(entries.Accounts[0].Name, entriesBack.Accounts[0].Name) - s.Require().Equal(entries.Accounts[0].ColorId, entriesBack.Accounts[0].ColorId) - s.Require().Equal(entries.Accounts[0].Emoji, entriesBack.Accounts[0].Emoji) - s.Require().Equal(entries.Accounts[0].Order, entriesBack.Accounts[0].Order) + s.Require().Equal(len(entries.Accounts), len(entriesBack.Accounts)) + for i := 0; i < len(entriesBack.Accounts); i++ { + s.Require().Equal(entries.Accounts[i].Address, entriesBack.Accounts[i].Address) + s.Require().Equal(entries.Accounts[i].Name, entriesBack.Accounts[i].Name) + s.Require().Equal(entries.Accounts[i].ColorId, entriesBack.Accounts[i].ColorId) + s.Require().Equal(entries.Accounts[i].Emoji, entriesBack.Accounts[i].Emoji) + s.Require().Equal(entries.Accounts[i].Order, entriesBack.Accounts[i].Order) + } - s.Require().Equal(0, len(entriesBack.Collectibles)) + s.Require().Equal(len(entries.Collectibles), len(entriesBack.Collectibles)) + for i := 0; i < len(entriesBack.Collectibles); i++ { + s.Require().Equal(entries.Collectibles[i].TokenId, entriesBack.Collectibles[i].TokenId) + s.Require().Equal(entries.Collectibles[i].ChainId, entriesBack.Collectibles[i].ChainId) + s.Require().Equal(entries.Collectibles[i].ContractAddress, entriesBack.Collectibles[i].ContractAddress) + s.Require().Equal(entries.Collectibles[i].AccountAddress, entriesBack.Collectibles[i].AccountAddress) + s.Require().Equal(entries.Collectibles[i].CommunityId, entriesBack.Collectibles[i].CommunityId) + s.Require().Equal(entries.Collectibles[i].Order, entriesBack.Collectibles[i].Order) + } - s.Require().Equal(3, len(entriesBack.Assets)) - s.Require().Equal(entries.Assets[0].Symbol, entriesBack.Assets[0].Symbol) - s.Require().Equal(entries.Assets[0].Order, entriesBack.Assets[0].Order) - s.Require().Equal(entries.Assets[1].Symbol, entriesBack.Assets[1].Symbol) - s.Require().Equal(entries.Assets[1].Order, entriesBack.Assets[1].Order) - s.Require().Equal(entries.Assets[2].Symbol, entriesBack.Assets[2].Symbol) - s.Require().Equal(entries.Assets[2].Order, entriesBack.Assets[2].Order) + s.Require().Equal(len(entries.VerifiedTokens), len(entriesBack.VerifiedTokens)) + for i := 0; i < len(entriesBack.VerifiedTokens); i++ { + s.Require().Equal(entries.VerifiedTokens[i].Symbol, entriesBack.VerifiedTokens[i].Symbol) + s.Require().Equal(entries.VerifiedTokens[i].Order, entriesBack.VerifiedTokens[i].Order) + } + + s.Require().Equal(len(entries.UnverifiedTokens), len(entriesBack.UnverifiedTokens)) + for i := 0; i < len(entriesBack.UnverifiedTokens); i++ { + s.Require().Equal(entries.UnverifiedTokens[i].ContractAddress, entriesBack.UnverifiedTokens[i].ContractAddress) + s.Require().Equal(entries.UnverifiedTokens[i].ChainId, entriesBack.UnverifiedTokens[i].ChainId) + s.Require().Equal(entries.UnverifiedTokens[i].Order, entriesBack.UnverifiedTokens[i].Order) + } } func (s *TestMessengerProfileShowcase) TestShareShowcasePreferences() { @@ -306,24 +417,42 @@ func (s *TestMessengerProfileShowcase) TestShareShowcasePreferences() { profileShowcase := resp.updatedProfileShowcases[contactID] s.Require().Len(profileShowcase.Communities, 2) - - // For everyone s.Require().Equal(profileShowcase.Communities[0].CommunityID, request.Communities[0].CommunityID) s.Require().Equal(profileShowcase.Communities[0].Order, request.Communities[0].Order) - - // For contacts s.Require().Equal(profileShowcase.Communities[1].CommunityID, request.Communities[1].CommunityID) s.Require().Equal(profileShowcase.Communities[1].Order, request.Communities[1].Order) - s.Require().Len(profileShowcase.Accounts, 1) + s.Require().Len(profileShowcase.Accounts, 2) s.Require().Equal(profileShowcase.Accounts[0].Address, request.Accounts[0].Address) s.Require().Equal(profileShowcase.Accounts[0].Name, request.Accounts[0].Name) s.Require().Equal(profileShowcase.Accounts[0].ColorID, request.Accounts[0].ColorID) s.Require().Equal(profileShowcase.Accounts[0].Emoji, request.Accounts[0].Emoji) s.Require().Equal(profileShowcase.Accounts[0].Order, request.Accounts[0].Order) + s.Require().Equal(profileShowcase.Accounts[1].Address, request.Accounts[1].Address) + s.Require().Equal(profileShowcase.Accounts[1].Name, request.Accounts[1].Name) + s.Require().Equal(profileShowcase.Accounts[1].ColorID, request.Accounts[1].ColorID) + s.Require().Equal(profileShowcase.Accounts[1].Emoji, request.Accounts[1].Emoji) + s.Require().Equal(profileShowcase.Accounts[1].Order, request.Accounts[1].Order) - s.Require().Len(profileShowcase.Collectibles, 0) - s.Require().Len(profileShowcase.Assets, 0) + s.Require().Len(profileShowcase.Collectibles, 1) + s.Require().Equal(profileShowcase.Collectibles[0].TokenID, request.Collectibles[0].TokenID) + s.Require().Equal(profileShowcase.Collectibles[0].ChainID, request.Collectibles[0].ChainID) + s.Require().Equal(profileShowcase.Collectibles[0].ContractAddress, request.Collectibles[0].ContractAddress) + s.Require().Equal(profileShowcase.Collectibles[0].AccountAddress, request.Collectibles[0].AccountAddress) + s.Require().Equal(profileShowcase.Collectibles[0].CommunityID, request.Collectibles[0].CommunityID) + s.Require().Equal(profileShowcase.Collectibles[0].Order, request.Collectibles[0].Order) + + s.Require().Len(profileShowcase.VerifiedTokens, 1) + s.Require().Equal(profileShowcase.VerifiedTokens[0].Symbol, request.VerifiedTokens[0].Symbol) + s.Require().Equal(profileShowcase.VerifiedTokens[0].Order, request.VerifiedTokens[0].Order) + + s.Require().Len(profileShowcase.UnverifiedTokens, 2) + s.Require().Equal(profileShowcase.UnverifiedTokens[0].ContractAddress, request.UnverifiedTokens[0].ContractAddress) + s.Require().Equal(profileShowcase.UnverifiedTokens[0].ChainID, request.UnverifiedTokens[0].ChainID) + s.Require().Equal(profileShowcase.UnverifiedTokens[0].Order, request.UnverifiedTokens[0].Order) + s.Require().Equal(profileShowcase.UnverifiedTokens[1].ContractAddress, request.UnverifiedTokens[1].ContractAddress) + s.Require().Equal(profileShowcase.UnverifiedTokens[1].ChainID, request.UnverifiedTokens[1].ChainID) + s.Require().Equal(profileShowcase.UnverifiedTokens[1].Order, request.UnverifiedTokens[1].Order) // Get summarised profile data for verified contact resp, err = WaitOnMessengerResponse( @@ -342,28 +471,43 @@ func (s *TestMessengerProfileShowcase) TestShareShowcasePreferences() { s.Require().Len(profileShowcase.Communities, 3) - // For everyone s.Require().Equal(profileShowcase.Communities[0].CommunityID, request.Communities[0].CommunityID) s.Require().Equal(profileShowcase.Communities[0].Order, request.Communities[0].Order) - - // For contacts s.Require().Equal(profileShowcase.Communities[1].CommunityID, request.Communities[1].CommunityID) s.Require().Equal(profileShowcase.Communities[1].Order, request.Communities[1].Order) - - // For id verified s.Require().Equal(profileShowcase.Communities[2].CommunityID, request.Communities[2].CommunityID) s.Require().Equal(profileShowcase.Communities[2].Order, request.Communities[2].Order) - s.Require().Len(profileShowcase.Accounts, 1) + s.Require().Len(profileShowcase.Accounts, 2) s.Require().Equal(profileShowcase.Accounts[0].Address, request.Accounts[0].Address) s.Require().Equal(profileShowcase.Accounts[0].Name, request.Accounts[0].Name) s.Require().Equal(profileShowcase.Accounts[0].ColorID, request.Accounts[0].ColorID) s.Require().Equal(profileShowcase.Accounts[0].Emoji, request.Accounts[0].Emoji) s.Require().Equal(profileShowcase.Accounts[0].Order, request.Accounts[0].Order) + s.Require().Equal(profileShowcase.Accounts[1].Address, request.Accounts[1].Address) + s.Require().Equal(profileShowcase.Accounts[1].Name, request.Accounts[1].Name) + s.Require().Equal(profileShowcase.Accounts[1].ColorID, request.Accounts[1].ColorID) + s.Require().Equal(profileShowcase.Accounts[1].Emoji, request.Accounts[1].Emoji) + s.Require().Equal(profileShowcase.Accounts[1].Order, request.Accounts[1].Order) s.Require().Len(profileShowcase.Collectibles, 1) - s.Require().Equal(profileShowcase.Collectibles[0].UID, request.Collectibles[0].UID) + s.Require().Equal(profileShowcase.Collectibles[0].ContractAddress, request.Collectibles[0].ContractAddress) + s.Require().Equal(profileShowcase.Collectibles[0].ChainID, request.Collectibles[0].ChainID) + s.Require().Equal(profileShowcase.Collectibles[0].TokenID, request.Collectibles[0].TokenID) + s.Require().Equal(profileShowcase.Collectibles[0].CommunityID, request.Collectibles[0].CommunityID) s.Require().Equal(profileShowcase.Collectibles[0].Order, request.Collectibles[0].Order) - s.Require().Len(profileShowcase.Assets, 0) + s.Require().Len(profileShowcase.VerifiedTokens, 2) + s.Require().Equal(profileShowcase.VerifiedTokens[0].Symbol, request.VerifiedTokens[0].Symbol) + s.Require().Equal(profileShowcase.VerifiedTokens[0].Order, request.VerifiedTokens[0].Order) + s.Require().Equal(profileShowcase.VerifiedTokens[1].Symbol, request.VerifiedTokens[1].Symbol) + s.Require().Equal(profileShowcase.VerifiedTokens[1].Order, request.VerifiedTokens[1].Order) + + s.Require().Len(profileShowcase.UnverifiedTokens, 2) + s.Require().Equal(profileShowcase.UnverifiedTokens[0].ContractAddress, request.UnverifiedTokens[0].ContractAddress) + s.Require().Equal(profileShowcase.UnverifiedTokens[0].ChainID, request.UnverifiedTokens[0].ChainID) + s.Require().Equal(profileShowcase.UnverifiedTokens[0].Order, request.UnverifiedTokens[0].Order) + s.Require().Equal(profileShowcase.UnverifiedTokens[1].ContractAddress, request.UnverifiedTokens[1].ContractAddress) + s.Require().Equal(profileShowcase.UnverifiedTokens[1].ChainID, request.UnverifiedTokens[1].ChainID) + s.Require().Equal(profileShowcase.UnverifiedTokens[1].Order, request.UnverifiedTokens[1].Order) } diff --git a/protocol/migrations/migrations.go b/protocol/migrations/migrations.go index a8dbea7f1..5b38cc87a 100644 --- a/protocol/migrations/migrations.go +++ b/protocol/migrations/migrations.go @@ -119,6 +119,7 @@ // 1704821941_add_joined_at_for_community.up.sql (84B) // 1704832511_add_last_opened_at_for_communities.up.sql (89B) // 1704832512_add_peersyncing.up.sql (276B) +// 1706028033_profile_showcase_address_and_community.up.sql (2.42kB) // README.md (554B) // doc.go (850B) @@ -130,6 +131,7 @@ import ( "crypto/sha256" "fmt" "io" + "io/ioutil" "os" "path/filepath" "strings" @@ -139,7 +141,7 @@ import ( func bindataRead(data []byte, name string) ([]byte, error) { gz, err := gzip.NewReader(bytes.NewBuffer(data)) if err != nil { - return nil, fmt.Errorf("read %q: %w", name, err) + return nil, fmt.Errorf("read %q: %v", name, err) } var buf bytes.Buffer @@ -147,7 +149,7 @@ func bindataRead(data []byte, name string) ([]byte, error) { clErr := gz.Close() if err != nil { - return nil, fmt.Errorf("read %q: %w", name, err) + return nil, fmt.Errorf("read %q: %v", name, err) } if clErr != nil { return nil, err @@ -203,7 +205,7 @@ func _000001_initDownDbSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "000001_init.down.db.sql", size: 65, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "000001_init.down.db.sql", size: 65, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5e, 0xbb, 0x3f, 0x1, 0x75, 0x19, 0x70, 0x86, 0xa7, 0x34, 0x40, 0x17, 0x34, 0x3e, 0x18, 0x51, 0x79, 0xd4, 0x22, 0xad, 0x8f, 0x80, 0xcc, 0xa6, 0xcc, 0x6, 0x2b, 0x62, 0x2, 0x47, 0xba, 0xf9}} return a, nil } @@ -223,7 +225,7 @@ func _000001_initUpDbSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "000001_init.up.db.sql", size: 2719, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "000001_init.up.db.sql", size: 2719, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x60, 0xdc, 0xeb, 0xe, 0xc2, 0x4f, 0x75, 0xa, 0xf6, 0x3e, 0xc7, 0xc4, 0x4, 0xe2, 0xe1, 0xa4, 0x73, 0x2f, 0x4a, 0xad, 0x1a, 0x0, 0xc3, 0x93, 0x9d, 0x77, 0x3e, 0x31, 0x91, 0x77, 0x2e, 0xc8}} return a, nil } @@ -243,7 +245,7 @@ func _000002_add_last_ens_clock_valueUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "000002_add_last_ens_clock_value.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "000002_add_last_ens_clock_value.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4d, 0x3, 0x8f, 0xd5, 0x85, 0x83, 0x47, 0xbe, 0xf9, 0x82, 0x7e, 0x81, 0xa4, 0xbd, 0xaa, 0xd5, 0x98, 0x18, 0x5, 0x2d, 0x82, 0x42, 0x3b, 0x3, 0x50, 0xc3, 0x1e, 0x84, 0x35, 0xf, 0xb6, 0x2b}} return a, nil } @@ -263,7 +265,7 @@ func _1586358095_add_replaceUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1586358095_add_replace.up.sql", size: 224, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1586358095_add_replace.up.sql", size: 224, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd2, 0xb3, 0xa9, 0xc7, 0x7f, 0x9d, 0x8f, 0x43, 0x8c, 0x9e, 0x58, 0x8d, 0x44, 0xbc, 0xfa, 0x6b, 0x5f, 0x3f, 0x5a, 0xbe, 0xe8, 0xb1, 0x16, 0xf, 0x91, 0x2a, 0xa0, 0x71, 0xbb, 0x8d, 0x6b, 0xcb}} return a, nil } @@ -283,7 +285,7 @@ func _1588665364_add_image_dataUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1588665364_add_image_data.up.sql", size: 186, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1588665364_add_image_data.up.sql", size: 186, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd6, 0xc6, 0x35, 0xb4, 0x4c, 0x39, 0x96, 0x29, 0x30, 0xda, 0xf4, 0x8f, 0xcb, 0xf1, 0x9f, 0x84, 0xdc, 0x88, 0xd4, 0xd5, 0xbc, 0xb6, 0x5b, 0x46, 0x78, 0x67, 0x76, 0x1a, 0x5, 0x36, 0xdc, 0xe5}} return a, nil } @@ -303,7 +305,7 @@ func _1589365189_add_pow_targetUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1589365189_add_pow_target.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1589365189_add_pow_target.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4e, 0x3a, 0xe2, 0x2e, 0x7d, 0xaf, 0xbb, 0xcc, 0x21, 0xa1, 0x7a, 0x41, 0x9a, 0xd0, 0xbb, 0xa9, 0xc8, 0x35, 0xf9, 0x32, 0x34, 0x46, 0x44, 0x9a, 0x86, 0x40, 0x7c, 0xb9, 0x23, 0xc7, 0x3, 0x3f}} return a, nil } @@ -323,7 +325,7 @@ func _1591277220_add_index_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1591277220_add_index_messages.up.sql", size: 240, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1591277220_add_index_messages.up.sql", size: 240, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9c, 0xfe, 0xbe, 0xd5, 0xb8, 0x8f, 0xdd, 0xef, 0xbb, 0xa8, 0xad, 0x7f, 0xed, 0x5b, 0x5b, 0x2f, 0xe6, 0x82, 0x27, 0x78, 0x1f, 0xb9, 0x57, 0xdc, 0x8, 0xc2, 0xb2, 0xa9, 0x9a, 0x4, 0xe1, 0x7a}} return a, nil } @@ -343,7 +345,7 @@ func _1593087212_add_mute_chat_and_raw_message_fieldsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1593087212_add_mute_chat_and_raw_message_fields.up.sql", size: 215, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1593087212_add_mute_chat_and_raw_message_fields.up.sql", size: 215, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x73, 0x99, 0x61, 0xd1, 0xaa, 0xb4, 0xbf, 0xaf, 0xd7, 0x20, 0x17, 0x40, 0xf9, 0x2, 0xfb, 0xcc, 0x40, 0x2a, 0xd, 0x86, 0x36, 0x30, 0x88, 0x89, 0x25, 0x80, 0x42, 0xb0, 0x5b, 0xe9, 0x73, 0x78}} return a, nil } @@ -363,7 +365,7 @@ func _1595862781_add_audio_dataUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1595862781_add_audio_data.up.sql", size: 246, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1595862781_add_audio_data.up.sql", size: 246, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xae, 0xd2, 0xee, 0x55, 0xfb, 0x36, 0xa4, 0x92, 0x66, 0xe, 0x81, 0x62, 0x1e, 0x7a, 0x69, 0xa, 0xd5, 0x4b, 0xa5, 0x6a, 0x8d, 0x1d, 0xce, 0xf3, 0x3e, 0xc0, 0x5f, 0x9c, 0x66, 0x1b, 0xb4, 0xed}} return a, nil } @@ -383,7 +385,7 @@ func _1595865249_create_emoji_reactions_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1595865249_create_emoji_reactions_table.up.sql", size: 300, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1595865249_create_emoji_reactions_table.up.sql", size: 300, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3e, 0xc5, 0x43, 0x5c, 0x3d, 0x53, 0x43, 0x2c, 0x1a, 0xa5, 0xb6, 0xbf, 0x7, 0x4, 0x5a, 0x3e, 0x40, 0x8b, 0xa4, 0x57, 0x12, 0x58, 0xbc, 0x42, 0xe2, 0xc3, 0xde, 0x76, 0x98, 0x80, 0xe2, 0xbe}} return a, nil } @@ -403,7 +405,7 @@ func _1596805115_create_group_chat_invitations_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1596805115_create_group_chat_invitations_table.up.sql", size: 231, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1596805115_create_group_chat_invitations_table.up.sql", size: 231, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6d, 0xb1, 0x14, 0x6d, 0x54, 0x28, 0x67, 0xc3, 0x23, 0x6a, 0xfc, 0x80, 0xdf, 0x9e, 0x4c, 0x35, 0x36, 0xf, 0xf8, 0xf3, 0x5f, 0xae, 0xad, 0xb, 0xc1, 0x51, 0x8e, 0x17, 0x7, 0xe5, 0x7f, 0x91}} return a, nil } @@ -423,7 +425,7 @@ func _1597322655_add_invitation_admin_chat_fieldUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1597322655_add_invitation_admin_chat_field.up.sql", size: 54, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1597322655_add_invitation_admin_chat_field.up.sql", size: 54, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa9, 0x7a, 0xa0, 0xf2, 0xdb, 0x13, 0x91, 0x91, 0xa8, 0x34, 0x1a, 0xa1, 0x49, 0x68, 0xd5, 0xae, 0x2c, 0xd8, 0xd5, 0xea, 0x8f, 0x8c, 0xc7, 0x2, 0x4e, 0x58, 0x2c, 0x3a, 0x14, 0xd4, 0x4f, 0x2c}} return a, nil } @@ -443,7 +445,7 @@ func _1597757544_add_nicknameUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1597757544_add_nickname.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1597757544_add_nickname.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf4, 0xa2, 0x64, 0x50, 0xc5, 0x4, 0xb9, 0x8b, 0xd1, 0x18, 0x9b, 0xc3, 0x91, 0x36, 0x2a, 0x1f, 0xc3, 0x6c, 0x2d, 0x92, 0xf8, 0x5e, 0xff, 0xb1, 0x59, 0x61, 0x2, 0x1c, 0xe1, 0x85, 0x90, 0xa4}} return a, nil } @@ -463,7 +465,7 @@ func _1598955122_add_mentionsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1598955122_add_mentions.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1598955122_add_mentions.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8d, 0x22, 0x17, 0x92, 0xd2, 0x11, 0x4e, 0x7, 0x93, 0x9a, 0x55, 0xfd, 0xb, 0x97, 0xc4, 0x63, 0x6a, 0x81, 0x97, 0xcd, 0xb2, 0xf8, 0x4b, 0x5f, 0x3c, 0xfa, 0x3a, 0x38, 0x53, 0x10, 0xed, 0x9d}} return a, nil } @@ -483,7 +485,7 @@ func _1599641390_add_emoji_reactions_indexUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1599641390_add_emoji_reactions_index.up.sql", size: 126, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1599641390_add_emoji_reactions_index.up.sql", size: 126, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf9, 0xd8, 0xdc, 0xa7, 0xb, 0x92, 0x7a, 0x61, 0x37, 0x24, 0x1c, 0x77, 0x5e, 0xe, 0x7e, 0xfc, 0x9f, 0x98, 0x7b, 0x65, 0xe7, 0xf9, 0x71, 0x57, 0x89, 0x2d, 0x90, 0x1b, 0xf6, 0x5e, 0x37, 0xe8}} return a, nil } @@ -503,7 +505,7 @@ func _1599720851_add_seen_index_remove_long_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1599720851_add_seen_index_remove_long_messages.up.sql", size: 150, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1599720851_add_seen_index_remove_long_messages.up.sql", size: 150, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x24, 0x1c, 0xc4, 0x78, 0x91, 0xc7, 0xeb, 0xfe, 0xc8, 0xa0, 0xd8, 0x13, 0x27, 0x97, 0xc8, 0x96, 0x56, 0x97, 0x33, 0x2c, 0x1e, 0x16, 0x8a, 0xd3, 0x49, 0x99, 0x3, 0xe9, 0xbb, 0xc4, 0x5, 0x3c}} return a, nil } @@ -523,7 +525,7 @@ func _1603198582_add_profile_chat_fieldUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1603198582_add_profile_chat_field.up.sql", size: 45, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1603198582_add_profile_chat_field.up.sql", size: 45, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xaa, 0xca, 0xe, 0x46, 0xa0, 0x9, 0x9d, 0x47, 0x57, 0xe9, 0xfb, 0x17, 0xeb, 0x9c, 0xf6, 0xb8, 0x1d, 0xe9, 0xd, 0x0, 0xd5, 0xe5, 0xd8, 0x9e, 0x60, 0xa, 0xbf, 0x32, 0x2c, 0x52, 0x7f, 0x6a}} return a, nil } @@ -543,7 +545,7 @@ func _1603816533_add_linksUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1603816533_add_links.up.sql", size: 48, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1603816533_add_links.up.sql", size: 48, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc9, 0x24, 0xd6, 0x1d, 0xa, 0x83, 0x1e, 0x4d, 0xf, 0xae, 0x4d, 0x8c, 0x51, 0x32, 0xa8, 0x37, 0xb0, 0x14, 0xfb, 0x32, 0x34, 0xc8, 0xc, 0x4e, 0x5b, 0xc5, 0x15, 0x65, 0x73, 0x0, 0x0, 0x1d}} return a, nil } @@ -563,7 +565,7 @@ func _1603888149_create_chat_identity_last_published_tableUpSql() (*asset, error return nil, err } - info := bindataFileInfo{name: "1603888149_create_chat_identity_last_published_table.up.sql", size: 407, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1603888149_create_chat_identity_last_published_table.up.sql", size: 407, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7f, 0x9, 0xf, 0xfb, 0xdb, 0x3c, 0x86, 0x70, 0x82, 0xda, 0x10, 0x25, 0xe2, 0x4e, 0x40, 0x45, 0xab, 0x8b, 0x1c, 0x91, 0x7c, 0xf1, 0x70, 0x2e, 0x81, 0xf3, 0x71, 0x45, 0xda, 0xe2, 0xa4, 0x57}} return a, nil } @@ -583,7 +585,7 @@ func _1605075346_add_communitiesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1605075346_add_communities.up.sql", size: 6971, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1605075346_add_communities.up.sql", size: 6971, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1f, 0x64, 0xea, 0xb4, 0xae, 0x9e, 0xdb, 0x9, 0x58, 0xb6, 0x5c, 0x7a, 0x50, 0xc5, 0xfe, 0x93, 0x5d, 0x36, 0x85, 0x5d, 0x6a, 0xba, 0xc9, 0x7e, 0x84, 0xd7, 0xbf, 0x2a, 0x53, 0xf3, 0x97, 0xf1}} return a, nil } @@ -603,7 +605,7 @@ func _1610117927_add_message_cacheUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1610117927_add_message_cache.up.sql", size: 142, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1610117927_add_message_cache.up.sql", size: 142, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x34, 0xf1, 0xf0, 0x82, 0x79, 0x28, 0x19, 0xc2, 0x39, 0x6a, 0xa5, 0x96, 0x59, 0x23, 0xa0, 0xed, 0x60, 0x58, 0x86, 0x9, 0xb9, 0xad, 0xfb, 0xa, 0xe3, 0x47, 0x6e, 0xa1, 0x18, 0xe8, 0x39, 0x2c}} return a, nil } @@ -623,7 +625,7 @@ func _1610959908_add_dont_wrap_to_raw_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1610959908_add_dont_wrap_to_raw_messages.up.sql", size: 83, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1610959908_add_dont_wrap_to_raw_messages.up.sql", size: 83, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x71, 0x2, 0x9a, 0xca, 0xd4, 0x38, 0x44, 0x30, 0x2b, 0xa8, 0x27, 0x32, 0x63, 0x53, 0x22, 0x60, 0x59, 0x84, 0x23, 0x96, 0x77, 0xf0, 0x56, 0xd7, 0x94, 0xe0, 0x95, 0x28, 0x6, 0x1d, 0x4e, 0xb1}} return a, nil } @@ -643,7 +645,7 @@ func _1610960912_add_send_on_personal_topicUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1610960912_add_send_on_personal_topic.up.sql", size: 82, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1610960912_add_send_on_personal_topic.up.sql", size: 82, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x77, 0xac, 0x2f, 0xc4, 0xd, 0xa7, 0x1b, 0x37, 0x30, 0xc2, 0x68, 0xee, 0xde, 0x54, 0x5e, 0xbf, 0x3f, 0xa0, 0xd6, 0xc6, 0x9f, 0xd4, 0x34, 0x12, 0x76, 0x1e, 0x66, 0x4a, 0xfc, 0xf, 0xee, 0xc9}} return a, nil } @@ -663,7 +665,7 @@ func _1612870480_add_datasync_idUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1612870480_add_datasync_id.up.sql", size: 111, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1612870480_add_datasync_id.up.sql", size: 111, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x34, 0x9a, 0xbc, 0xfa, 0xaa, 0x8c, 0x9c, 0x37, 0x67, 0x15, 0x9c, 0x7e, 0x78, 0x75, 0x66, 0x82, 0x18, 0x72, 0x10, 0xbc, 0xd4, 0xab, 0x44, 0xfe, 0x57, 0x85, 0x6d, 0x19, 0xf5, 0x96, 0x8a, 0xbe}} return a, nil } @@ -683,7 +685,7 @@ func _1614152139_add_communities_request_to_joinUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1614152139_add_communities_request_to_join.up.sql", size: 831, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1614152139_add_communities_request_to_join.up.sql", size: 831, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x11, 0x3, 0x26, 0xf9, 0x29, 0x50, 0x4f, 0xcd, 0x46, 0xe5, 0xb1, 0x6b, 0xb9, 0x2, 0x40, 0xb1, 0xdf, 0x4a, 0x4c, 0x7a, 0xda, 0x3, 0x35, 0xcd, 0x2d, 0xcc, 0x80, 0x7d, 0x57, 0x5f, 0x3, 0x5c}} return a, nil } @@ -703,7 +705,7 @@ func _1615374373_add_confirmationsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1615374373_add_confirmations.up.sql", size: 227, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1615374373_add_confirmations.up.sql", size: 227, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xdd, 0xa6, 0x65, 0xc5, 0x1d, 0xb2, 0x77, 0x36, 0xe3, 0x79, 0xda, 0xe8, 0x7a, 0xa4, 0xdf, 0x45, 0xae, 0xd8, 0xb4, 0xba, 0x90, 0xfd, 0x74, 0x71, 0x14, 0x75, 0x73, 0x72, 0xb9, 0x9e, 0x1, 0x81}} return a, nil } @@ -723,7 +725,7 @@ func _1617694931_add_notification_centerUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1617694931_add_notification_center.up.sql", size: 572, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1617694931_add_notification_center.up.sql", size: 572, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x10, 0x45, 0xc6, 0xc9, 0x73, 0xbb, 0x1f, 0xda, 0xa3, 0x4d, 0x19, 0x98, 0x85, 0x2d, 0xca, 0xda, 0xcc, 0x3b, 0x32, 0xff, 0xc7, 0x7b, 0xe3, 0x9f, 0x9b, 0x2a, 0x93, 0xf5, 0xdf, 0x65, 0x38, 0x91}} return a, nil } @@ -743,7 +745,7 @@ func _1618923660_create_pin_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1618923660_create_pin_messages.up.sql", size: 265, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1618923660_create_pin_messages.up.sql", size: 265, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x61, 0x44, 0x3a, 0xbe, 0x30, 0xd2, 0x7e, 0xc0, 0xe2, 0x8e, 0x65, 0x53, 0x54, 0xbb, 0x7a, 0x1c, 0xb3, 0x5d, 0xd2, 0xa6, 0xa9, 0x28, 0xb7, 0xa4, 0x5f, 0x8b, 0x9, 0x5f, 0x17, 0xc1, 0x85, 0x21}} return a, nil } @@ -763,7 +765,7 @@ func _1619094007_add_joined_chat_fieldUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1619094007_add_joined_chat_field.up.sql", size: 101, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1619094007_add_joined_chat_field.up.sql", size: 101, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfa, 0x30, 0x81, 0x3a, 0x2f, 0x9f, 0xb3, 0x0, 0x55, 0x8e, 0x1d, 0xa8, 0xb0, 0x68, 0xf0, 0x40, 0x1a, 0x6c, 0xaa, 0xfc, 0x33, 0xd1, 0xd1, 0x55, 0x3f, 0xf2, 0xbd, 0x54, 0xa1, 0x2b, 0x40, 0x95}} return a, nil } @@ -783,7 +785,7 @@ func _1619099821_add_last_synced_fieldUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1619099821_add_last_synced_field.up.sql", size: 226, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1619099821_add_last_synced_field.up.sql", size: 226, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf, 0x52, 0x22, 0xe, 0x2f, 0xd7, 0x93, 0x5f, 0x42, 0xc2, 0x93, 0x4, 0x35, 0x6f, 0xc9, 0x19, 0xed, 0x6b, 0x52, 0x6f, 0xae, 0x99, 0xe2, 0x68, 0x3d, 0x4f, 0x40, 0xe, 0xe1, 0xa, 0x47, 0x21}} return a, nil } @@ -803,7 +805,7 @@ func _1621933219_add_mentionedUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1621933219_add_mentioned.up.sql", size: 70, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1621933219_add_mentioned.up.sql", size: 70, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x36, 0x76, 0x8a, 0xc9, 0x7, 0x8f, 0xa5, 0xcb, 0x12, 0x21, 0x4e, 0xfe, 0x96, 0x77, 0xcf, 0x7f, 0x76, 0x75, 0x36, 0x2c, 0xf8, 0x1d, 0x13, 0xcb, 0xcd, 0x6e, 0x70, 0xbf, 0xf5, 0x93, 0x67, 0xd1}} return a, nil } @@ -823,7 +825,7 @@ func _1622010048_add_unviewed_mentions_countUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1622010048_add_unviewed_mentions_count.up.sql", size: 114, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1622010048_add_unviewed_mentions_count.up.sql", size: 114, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7c, 0x16, 0x85, 0xa6, 0x5b, 0xe1, 0x66, 0xb9, 0x84, 0xbe, 0x7f, 0xa, 0x77, 0x23, 0xb9, 0xef, 0x8e, 0x2, 0x8, 0xfc, 0x61, 0xb2, 0x43, 0xa9, 0x63, 0xae, 0xb4, 0xdf, 0x30, 0xb1, 0x61, 0x4b}} return a, nil } @@ -843,7 +845,7 @@ func _1622061278_add_message_activity_center_notification_fieldUpSql() (*asset, return nil, err } - info := bindataFileInfo{name: "1622061278_add_message_activity_center_notification_field.up.sql", size: 80, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1622061278_add_message_activity_center_notification_field.up.sql", size: 80, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8, 0xc, 0xa6, 0x1f, 0xa5, 0xc6, 0x7c, 0x6f, 0xab, 0x2c, 0x2d, 0xb5, 0xa4, 0xdd, 0xc1, 0xd6, 0x44, 0x83, 0xf9, 0xb1, 0xa5, 0xce, 0x34, 0x3d, 0x2, 0xa9, 0x35, 0xcf, 0xc6, 0xb2, 0x43, 0x37}} return a, nil } @@ -863,7 +865,7 @@ func _1622464518_set_synced_to_fromUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1622464518_set_synced_to_from.up.sql", size: 105, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1622464518_set_synced_to_from.up.sql", size: 105, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x33, 0x3e, 0x2b, 0xa, 0x1e, 0xc7, 0x6d, 0x6f, 0xd1, 0x1d, 0xe8, 0x4b, 0xdd, 0x92, 0x76, 0xea, 0xf2, 0x3e, 0x15, 0x85, 0xc4, 0xc3, 0x31, 0xf1, 0xc0, 0xa2, 0xd7, 0x47, 0xde, 0x4e, 0xfd, 0xc6}} return a, nil } @@ -883,7 +885,7 @@ func _1622464519_add_chat_descriptionUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1622464519_add_chat_description.up.sql", size: 93, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1622464519_add_chat_description.up.sql", size: 93, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x36, 0x2e, 0x89, 0x31, 0xec, 0xef, 0xeb, 0x43, 0xf5, 0x96, 0x6d, 0xce, 0x91, 0x8a, 0x37, 0x2a, 0x11, 0x7a, 0x3f, 0xd9, 0x10, 0xbb, 0xa1, 0xbc, 0x7, 0xe0, 0x3b, 0xa5, 0xf4, 0xa6, 0xf4, 0xa1}} return a, nil } @@ -903,7 +905,7 @@ func _1622622253_add_pinned_by_to_pin_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1622622253_add_pinned_by_to_pin_messages.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1622622253_add_pinned_by_to_pin_messages.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9b, 0x94, 0xa3, 0x45, 0x91, 0x1e, 0x66, 0xd1, 0x96, 0x5a, 0xaf, 0xfa, 0x29, 0x39, 0xa8, 0x3a, 0x97, 0x4c, 0x65, 0x6, 0x96, 0x90, 0x4c, 0xfe, 0xce, 0x7d, 0x5d, 0xd4, 0xb3, 0x8, 0x6d, 0x5f}} return a, nil } @@ -923,7 +925,7 @@ func _1623938329_add_author_activity_center_notification_fieldUpSql() (*asset, e return nil, err } - info := bindataFileInfo{name: "1623938329_add_author_activity_center_notification_field.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1623938329_add_author_activity_center_notification_field.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x36, 0xe6, 0xa7, 0xd5, 0x26, 0xff, 0xab, 0x92, 0x88, 0xf0, 0xd3, 0x34, 0xd9, 0x2f, 0xe7, 0x18, 0x1a, 0x40, 0xf9, 0xbe, 0x8e, 0xfc, 0xd0, 0x4f, 0x1f, 0x4a, 0xb9, 0x83, 0x3f, 0xa9, 0xde, 0xb}} return a, nil } @@ -943,7 +945,7 @@ func _1623938330_add_edit_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1623938330_add_edit_messages.up.sql", size: 369, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1623938330_add_edit_messages.up.sql", size: 369, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7e, 0xd2, 0xce, 0xe, 0x5c, 0x19, 0xbe, 0x5e, 0x29, 0xbe, 0x9b, 0x31, 0x53, 0x76, 0xb2, 0xc8, 0x56, 0xf0, 0x82, 0xfe, 0x7d, 0x6c, 0xe8, 0x5c, 0xe9, 0x7a, 0x5d, 0x5, 0xc4, 0x92, 0x38, 0xe3}} return a, nil } @@ -963,7 +965,7 @@ func _1624978434_add_muted_communityUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1624978434_add_muted_community.up.sql", size: 82, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1624978434_add_muted_community.up.sql", size: 82, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6, 0xdc, 0x6e, 0x6f, 0x97, 0xc7, 0x3d, 0x50, 0xab, 0x80, 0x87, 0x44, 0x43, 0x38, 0xe6, 0xc5, 0xc1, 0x91, 0x26, 0xf, 0x16, 0xe, 0xd9, 0x32, 0x37, 0x25, 0x96, 0x25, 0x6, 0xc8, 0xb5, 0x4a}} return a, nil } @@ -983,7 +985,7 @@ func _1625018910_add_repply_message_activity_center_notification_fieldUpSql() (* return nil, err } - info := bindataFileInfo{name: "1625018910_add_repply_message_activity_center_notification_field.up.sql", size: 86, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1625018910_add_repply_message_activity_center_notification_field.up.sql", size: 86, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf2, 0x52, 0x12, 0x40, 0xd8, 0x6f, 0x71, 0x97, 0x46, 0x39, 0xaa, 0x74, 0x41, 0xcd, 0x45, 0x4c, 0xe8, 0xd9, 0xe2, 0x56, 0x8e, 0x78, 0x18, 0x62, 0xf6, 0xa8, 0x36, 0xe9, 0x9a, 0x1f, 0xc, 0xb1}} return a, nil } @@ -1003,7 +1005,7 @@ func _1625762506_add_deleted_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1625762506_add_deleted_messages.up.sql", size: 357, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1625762506_add_deleted_messages.up.sql", size: 357, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd5, 0x61, 0x42, 0xb6, 0x8c, 0x7f, 0x2d, 0xec, 0xa9, 0x6d, 0x3d, 0x0, 0xa3, 0x32, 0xd8, 0x4a, 0x38, 0x5c, 0x97, 0xfc, 0x68, 0xde, 0xa9, 0xb7, 0xd8, 0xde, 0xb, 0x29, 0x93, 0xdc, 0x81, 0xf8}} return a, nil } @@ -1023,7 +1025,7 @@ func _1627388946_add_communities_synced_atUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1627388946_add_communities_synced_at.up.sql", size: 87, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1627388946_add_communities_synced_at.up.sql", size: 87, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc1, 0xbd, 0x9b, 0x6a, 0xc9, 0x1a, 0x7a, 0x34, 0xcf, 0x5f, 0x80, 0x9e, 0x8c, 0x1c, 0xc0, 0xec, 0x4e, 0x78, 0xb0, 0x2d, 0x15, 0x77, 0x38, 0x4a, 0x6a, 0x5, 0x84, 0xf5, 0x8d, 0x8b, 0xbe, 0x9}} return a, nil } @@ -1043,7 +1045,7 @@ func _1628280060_createUsermessagesIndexSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1628280060_create-usermessages-index.sql", size: 80, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1628280060_create-usermessages-index.sql", size: 80, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x10, 0x6f, 0x70, 0x47, 0x40, 0xab, 0xa8, 0x60, 0xe0, 0xf9, 0x8, 0x7e, 0x19, 0x9d, 0xba, 0x33, 0x16, 0xfc, 0x3c, 0xdc, 0xa8, 0xa6, 0x53, 0x61, 0x39, 0x82, 0x91, 0xcf, 0x69, 0xd8, 0xf2, 0xcf}} return a, nil } @@ -1063,7 +1065,7 @@ func _1632303896_modify_contacts_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1632303896_modify_contacts_table.up.sql", size: 1574, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1632303896_modify_contacts_table.up.sql", size: 1574, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x81, 0x1e, 0x6c, 0x3c, 0xd, 0xd7, 0x7d, 0xbb, 0x19, 0xbc, 0xe4, 0x7, 0xfd, 0xf8, 0x66, 0x6d, 0x78, 0xf6, 0x4, 0xe6, 0x51, 0xe4, 0xe6, 0xdc, 0xe, 0x5a, 0x2e, 0xac, 0xe6, 0xe7, 0x24, 0x69}} return a, nil } @@ -1083,7 +1085,7 @@ func _1633349838_add_emoji_column_in_chatsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1633349838_add_emoji_column_in_chats.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1633349838_add_emoji_column_in_chats.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xcb, 0x33, 0xcb, 0x3b, 0xa9, 0x99, 0x77, 0x6a, 0xea, 0xc4, 0x39, 0xd7, 0xa1, 0x49, 0xa7, 0xdf, 0xff, 0x72, 0xda, 0x34, 0x21, 0x67, 0x66, 0xca, 0x65, 0x46, 0x1, 0xa6, 0x4e, 0xf9, 0x38, 0x86}} return a, nil } @@ -1103,7 +1105,7 @@ func _1634831235_add_highlight_column_in_chatsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1634831235_add_highlight_column_in_chats.up.sql", size: 62, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1634831235_add_highlight_column_in_chats.up.sql", size: 62, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xaa, 0x63, 0x5c, 0x73, 0x19, 0x83, 0xbd, 0x35, 0x80, 0x9f, 0x66, 0xec, 0x4c, 0xbc, 0x9d, 0x2d, 0x52, 0x91, 0x6d, 0xb3, 0x2b, 0x87, 0xde, 0x24, 0x46, 0x5c, 0xd, 0xfd, 0x78, 0xf5, 0xe3, 0xe9}} return a, nil } @@ -1123,7 +1125,7 @@ func _1634896007_add_last_updated_locally_and_removedUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1634896007_add_last_updated_locally_and_removed.up.sql", size: 131, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1634896007_add_last_updated_locally_and_removed.up.sql", size: 131, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2e, 0xa8, 0x34, 0xe2, 0xc0, 0x62, 0xc8, 0xd6, 0x5a, 0x87, 0xe3, 0x70, 0xe1, 0xc4, 0x16, 0x9c, 0x60, 0x2e, 0x98, 0xf0, 0x91, 0x84, 0xbe, 0xe0, 0xdf, 0x3e, 0x4d, 0x24, 0xc4, 0x6c, 0x40, 0x17}} return a, nil } @@ -1143,7 +1145,7 @@ func _1635840039_add_clock_read_at_column_in_chatsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1635840039_add_clock_read_at_column_in_chats.up.sql", size: 245, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1635840039_add_clock_read_at_column_in_chats.up.sql", size: 245, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6c, 0xba, 0x3f, 0xba, 0x1a, 0x71, 0xa8, 0x9, 0x19, 0xbe, 0x1e, 0x38, 0x50, 0x30, 0x3a, 0x52, 0x15, 0x29, 0xee, 0x49, 0x19, 0x6f, 0x53, 0xc2, 0xc6, 0x6c, 0xd9, 0x80, 0x7e, 0xb9, 0x58, 0x7a}} return a, nil } @@ -1163,7 +1165,7 @@ func _1637852321_add_received_invitation_admin_column_in_chatsUpSql() (*asset, e return nil, err } - info := bindataFileInfo{name: "1637852321_add_received_invitation_admin_column_in_chats.up.sql", size: 72, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1637852321_add_received_invitation_admin_column_in_chats.up.sql", size: 72, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x70, 0x8b, 0x92, 0x56, 0x83, 0x70, 0x7f, 0x6, 0xb2, 0xd, 0x1c, 0x2f, 0xcc, 0x93, 0xc3, 0x85, 0x8c, 0xc2, 0x38, 0x94, 0x7e, 0x88, 0x3f, 0x39, 0x34, 0xf8, 0x90, 0xcf, 0x83, 0x68, 0x3d, 0xe5}} return a, nil } @@ -1183,7 +1185,7 @@ func _1645034601_display_nameUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1645034601_display_name.up.sql", size: 110, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1645034601_display_name.up.sql", size: 110, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x15, 0xfc, 0xda, 0x70, 0x53, 0x19, 0x90, 0x20, 0x4, 0x1c, 0x99, 0x42, 0x53, 0x1a, 0xd6, 0xb8, 0xbb, 0x8a, 0xe8, 0xbe, 0xcc, 0xb7, 0xc, 0x7f, 0x73, 0x50, 0x18, 0xf1, 0x8b, 0x18, 0x54, 0x64}} return a, nil } @@ -1203,7 +1205,7 @@ func _1645034602_add_mutual_contact_requestUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1645034602_add_mutual_contact_request.up.sql", size: 454, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1645034602_add_mutual_contact_request.up.sql", size: 454, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1a, 0xe0, 0x5d, 0x68, 0xb8, 0x50, 0xa4, 0xbb, 0x3e, 0x4f, 0x2, 0x87, 0xad, 0x87, 0x6e, 0x38, 0xdf, 0xc8, 0x4c, 0xe2, 0x5f, 0xd1, 0x6, 0xdc, 0xe7, 0xbd, 0x4a, 0x9c, 0xf3, 0x91, 0xa1, 0x51}} return a, nil } @@ -1223,7 +1225,7 @@ func _1650373957_add_contact_request_stateUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1650373957_add_contact_request_state.up.sql", size: 59, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1650373957_add_contact_request_state.up.sql", size: 59, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5e, 0xc1, 0x3f, 0x29, 0xe, 0x19, 0x86, 0x1a, 0x4c, 0x6c, 0x2a, 0x90, 0x9d, 0xdf, 0xb1, 0xb, 0x72, 0x25, 0xcd, 0x6c, 0x5f, 0xd, 0x51, 0x9e, 0x85, 0xc0, 0x9, 0xb7, 0xbc, 0x87, 0x23, 0xec}} return a, nil } @@ -1243,7 +1245,7 @@ func _1656958989_contact_verificationUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1656958989_contact_verification.up.sql", size: 624, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1656958989_contact_verification.up.sql", size: 624, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3a, 0x3f, 0x28, 0x38, 0x33, 0xdb, 0xe9, 0x4d, 0xc0, 0x54, 0x8c, 0x2a, 0x73, 0xc4, 0xdd, 0x5c, 0xc5, 0x1a, 0x93, 0x4b, 0x6, 0x13, 0xbe, 0x42, 0xd2, 0x7f, 0xd4, 0xc, 0xc5, 0x4e, 0x6d, 0xce}} return a, nil } @@ -1263,7 +1265,7 @@ func _1658236268_add_discord_message_authors_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1658236268_add_discord_message_authors_table.up.sql", size: 191, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1658236268_add_discord_message_authors_table.up.sql", size: 191, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3d, 0xb7, 0xdb, 0x79, 0x1, 0x15, 0xe7, 0x76, 0x5d, 0x22, 0x54, 0x82, 0x9a, 0xbe, 0x24, 0xc1, 0x82, 0xcf, 0x67, 0x91, 0x53, 0xcc, 0xac, 0x74, 0x18, 0x61, 0x69, 0x68, 0x19, 0xca, 0x2b, 0xa8}} return a, nil } @@ -1283,7 +1285,7 @@ func _1659619997_add_discord_messages_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1659619997_add_discord_messages_table.up.sql", size: 371, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1659619997_add_discord_messages_table.up.sql", size: 371, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xde, 0x12, 0x9c, 0x96, 0xe2, 0x42, 0x3f, 0x94, 0x62, 0xc2, 0x76, 0xab, 0x3b, 0x4c, 0x85, 0x36, 0x48, 0xcc, 0x73, 0x60, 0x93, 0x5a, 0xd6, 0x7, 0xd6, 0x0, 0xee, 0x1b, 0x1e, 0x34, 0x58, 0x99}} return a, nil } @@ -1303,7 +1305,7 @@ func _1660226788_create_chat_identity_social_linksUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1660226788_create_chat_identity_social_links.up.sql", size: 318, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1660226788_create_chat_identity_social_links.up.sql", size: 318, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3c, 0x76, 0x40, 0xe9, 0x85, 0xc4, 0x38, 0xf8, 0xe5, 0x5d, 0xe8, 0x13, 0x46, 0x1b, 0xc, 0x1, 0xe9, 0x2f, 0x74, 0xd1, 0x79, 0x59, 0xa4, 0xdb, 0x4a, 0x4a, 0xf4, 0x98, 0x58, 0x3c, 0x57, 0xd3}} return a, nil } @@ -1323,7 +1325,7 @@ func _1660226789_add_walletconnectsessions_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1660226789_add_walletconnectsessions_table.up.sql", size: 215, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1660226789_add_walletconnectsessions_table.up.sql", size: 215, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf8, 0x5c, 0x72, 0x2, 0xed, 0x36, 0x19, 0x91, 0x4d, 0x1a, 0xc1, 0xab, 0x84, 0xfa, 0x41, 0xb1, 0x46, 0xa5, 0xdb, 0x3f, 0x76, 0x47, 0xd3, 0x75, 0x3c, 0x6a, 0x8e, 0x78, 0xe6, 0x41, 0xdc, 0x7f}} return a, nil } @@ -1343,7 +1345,7 @@ func _1661242854_add_communities_requests_to_leaveUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1661242854_add_communities_requests_to_leave.up.sql", size: 204, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1661242854_add_communities_requests_to_leave.up.sql", size: 204, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x49, 0x2e, 0x7d, 0x14, 0xef, 0x6e, 0x95, 0x4b, 0x6, 0x70, 0x2e, 0xd1, 0xf6, 0x59, 0xf9, 0xe, 0x56, 0xa, 0x9c, 0x80, 0x18, 0xca, 0xb9, 0x49, 0x19, 0xf, 0x89, 0x94, 0x36, 0x6d, 0x93, 0x9a}} return a, nil } @@ -1363,7 +1365,7 @@ func _1662044232_add_chat_imageUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1662044232_add_chat_image.up.sql", size: 49, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1662044232_add_chat_image.up.sql", size: 49, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb3, 0x74, 0xdf, 0x50, 0x79, 0x73, 0x9e, 0xd0, 0xff, 0xa4, 0xd3, 0x87, 0xc3, 0x48, 0x31, 0x6c, 0xdf, 0xa6, 0x20, 0x85, 0xe6, 0x4e, 0x19, 0x9d, 0xef, 0xcc, 0x84, 0x2b, 0x5d, 0x44, 0x34, 0x6}} return a, nil } @@ -1383,7 +1385,7 @@ func _1662106895_add_chat_first_message_timestampUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1662106895_add_chat_first_message_timestamp.up.sql", size: 113, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1662106895_add_chat_first_message_timestamp.up.sql", size: 113, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8b, 0x55, 0x74, 0xfa, 0xf5, 0x51, 0x85, 0x19, 0xfd, 0xfb, 0x6, 0x79, 0x4d, 0x1d, 0xd, 0x3, 0x46, 0x66, 0x34, 0x1e, 0xce, 0x91, 0x21, 0x29, 0xf6, 0x71, 0xe7, 0x31, 0x39, 0x8f, 0x9d, 0x5}} return a, nil } @@ -1403,7 +1405,7 @@ func _1662723928_add_discord_author_image_fieldsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1662723928_add_discord_author_image_fields.up.sql", size: 75, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1662723928_add_discord_author_image_fields.up.sql", size: 75, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1e, 0x5b, 0x48, 0x57, 0x98, 0x55, 0x9a, 0xf1, 0x75, 0xf7, 0xb5, 0x41, 0x5e, 0x96, 0xc5, 0xce, 0xfc, 0x30, 0x5c, 0x15, 0x35, 0x9e, 0x4e, 0x4a, 0x3b, 0x38, 0x42, 0xc4, 0x27, 0x3c, 0x87, 0xbf}} return a, nil } @@ -1423,7 +1425,7 @@ func _1664195977_add_deleted_for_mesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1664195977_add_deleted_for_mes.up.sql", size: 352, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1664195977_add_deleted_for_mes.up.sql", size: 352, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7d, 0x9d, 0x13, 0x9, 0xaa, 0x44, 0x14, 0x93, 0xe2, 0xf5, 0x53, 0xb7, 0x79, 0xa8, 0x18, 0xf0, 0x6c, 0xa4, 0x9c, 0x73, 0xc1, 0xaa, 0xc5, 0x2e, 0xc5, 0x41, 0xd7, 0x24, 0xb0, 0xd7, 0xb8, 0xdf}} return a, nil } @@ -1443,7 +1445,7 @@ func _1664367420_add_discord_attachments_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1664367420_add_discord_attachments_table.up.sql", size: 350, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1664367420_add_discord_attachments_table.up.sql", size: 350, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x48, 0xe1, 0xb6, 0x4f, 0x6f, 0x92, 0x0, 0xb4, 0xf, 0x55, 0x12, 0x1c, 0x98, 0x6d, 0xbc, 0x1e, 0xfd, 0xae, 0x1c, 0xce, 0xd1, 0x3d, 0x2, 0x21, 0x2e, 0xc0, 0x13, 0xa, 0xb2, 0xec, 0x81, 0x13}} return a, nil } @@ -1463,7 +1465,7 @@ func _1665079662_add_spectated_column_in_communitiesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1665079662_add_spectated_column_in_communities.up.sql", size: 86, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1665079662_add_spectated_column_in_communities.up.sql", size: 86, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa0, 0x5d, 0xfe, 0xe2, 0xbe, 0xdf, 0xba, 0x45, 0xe9, 0xfc, 0xa7, 0x5f, 0xda, 0x19, 0xdb, 0x40, 0x96, 0x59, 0x78, 0xa, 0xd7, 0x4a, 0xca, 0x1a, 0x93, 0xfb, 0xae, 0x6d, 0x74, 0x7, 0x36, 0xdd}} return a, nil } @@ -1483,7 +1485,7 @@ func _1665479047_add_community_id_in_notificationsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1665479047_add_community_id_in_notifications.up.sql", size: 169, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1665479047_add_community_id_in_notifications.up.sql", size: 169, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd9, 0x8f, 0x8b, 0x1c, 0xaa, 0x6a, 0x56, 0xd6, 0xa5, 0x88, 0x57, 0x13, 0x8f, 0xea, 0xb9, 0x23, 0x82, 0x50, 0xb7, 0x65, 0x1f, 0xab, 0xfa, 0x23, 0x6f, 0x0, 0x7, 0xb6, 0x6e, 0xb5, 0x85, 0x44}} return a, nil } @@ -1503,7 +1505,7 @@ func _1665484435_add_encrypted_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1665484435_add_encrypted_messages.up.sql", size: 402, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1665484435_add_encrypted_messages.up.sql", size: 402, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8f, 0x5c, 0x1e, 0x1c, 0x7f, 0xae, 0x5f, 0xeb, 0x3c, 0x6c, 0xcd, 0xc2, 0x99, 0x48, 0x5c, 0x83, 0xa0, 0xa2, 0x97, 0x5, 0x39, 0x82, 0x71, 0x90, 0x47, 0x21, 0x84, 0x29, 0x19, 0xa4, 0x7a, 0x90}} return a, nil } @@ -1523,7 +1525,7 @@ func _1665560200_add_contact_verification_individualUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1665560200_add_contact_verification_individual.up.sql", size: 509, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1665560200_add_contact_verification_individual.up.sql", size: 509, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc5, 0xbb, 0x61, 0xfd, 0xbf, 0x33, 0x1d, 0x4e, 0x5f, 0xbd, 0x86, 0x42, 0xb0, 0x6c, 0xf7, 0x39, 0x19, 0x6e, 0x72, 0x35, 0xfd, 0x1b, 0xd6, 0xbd, 0xf6, 0x81, 0x21, 0xc4, 0xaa, 0x6, 0x62, 0x40}} return a, nil } @@ -1543,7 +1545,7 @@ func _1670921937_add_album_idUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1670921937_add_album_id.up.sql", size: 55, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1670921937_add_album_id.up.sql", size: 55, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7e, 0xae, 0x83, 0x58, 0xb7, 0x77, 0x5, 0xca, 0xe3, 0xda, 0x32, 0x8f, 0x7b, 0xa4, 0x2f, 0x4c, 0xaf, 0x5f, 0xfa, 0x94, 0x36, 0xe4, 0xf9, 0x7, 0xc6, 0xd6, 0xb7, 0x90, 0xf3, 0xe5, 0xb5, 0x3}} return a, nil } @@ -1563,7 +1565,7 @@ func _1673373000_add_repliedUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1673373000_add_replied.up.sql", size: 67, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1673373000_add_replied.up.sql", size: 67, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd5, 0x1c, 0xae, 0xf2, 0xf, 0xb4, 0xc2, 0xba, 0x3c, 0xfe, 0x7b, 0xb0, 0xf, 0xf, 0xd5, 0xbc, 0xe2, 0xa7, 0xad, 0x50, 0xd9, 0x5a, 0xe8, 0x96, 0x22, 0x65, 0x89, 0xcf, 0x4a, 0x9a, 0x1b, 0x94}} return a, nil } @@ -1583,7 +1585,7 @@ func _1673428910_add_image_width_heightUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1673428910_add_image_width_height.up.sql", size: 117, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1673428910_add_image_width_height.up.sql", size: 117, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x74, 0xda, 0x93, 0x2a, 0x9b, 0x6b, 0xb7, 0x96, 0xcd, 0xac, 0xf, 0xaf, 0x54, 0x89, 0x9e, 0x91, 0x5b, 0xd0, 0x4a, 0xa, 0x8d, 0x9e, 0x80, 0x66, 0x26, 0x9e, 0xb5, 0xa9, 0x8, 0xec, 0x2d, 0x6c}} return a, nil } @@ -1603,7 +1605,7 @@ func _1674210659_add_contact_request_local_clockUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1674210659_add_contact_request_local_clock.up.sql", size: 691, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1674210659_add_contact_request_local_clock.up.sql", size: 691, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x92, 0x72, 0x39, 0xfe, 0x72, 0x98, 0xfc, 0x91, 0x20, 0x10, 0xe8, 0xf5, 0xac, 0x79, 0xa8, 0x1c, 0xca, 0x7b, 0x35, 0xa, 0xc1, 0x56, 0x49, 0x9a, 0xfc, 0xbd, 0x64, 0x9d, 0xdf, 0xd2, 0x60, 0x70}} return a, nil } @@ -1623,7 +1625,7 @@ func _1675212323_add_deleted_byUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1675212323_add_deleted_by.up.sql", size: 57, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1675212323_add_deleted_by.up.sql", size: 57, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x85, 0x37, 0x29, 0x2f, 0xd, 0x5a, 0xb6, 0xdb, 0xa7, 0x8, 0x86, 0xfc, 0x7a, 0x70, 0xd8, 0x4d, 0xe6, 0xf0, 0x57, 0xe7, 0xd1, 0x95, 0xd5, 0x4, 0x40, 0x2f, 0x7a, 0x5, 0x4f, 0xc2, 0x97, 0xbc}} return a, nil } @@ -1643,7 +1645,7 @@ func _1675247084_add_activity_center_statesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1675247084_add_activity_center_states.up.sql", size: 136, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1675247084_add_activity_center_states.up.sql", size: 136, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xba, 0x90, 0x7d, 0x55, 0xc7, 0x40, 0x29, 0x26, 0x97, 0x45, 0x5c, 0xdf, 0xba, 0x61, 0xb, 0xfc, 0x3d, 0x7a, 0x6c, 0x42, 0xe4, 0x95, 0x78, 0xb0, 0xc5, 0x1f, 0x73, 0xe9, 0x33, 0x51, 0xc8, 0x81}} return a, nil } @@ -1663,7 +1665,7 @@ func _1675272329_fix_protocol_migrationUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1675272329_fix_protocol_migration.up.sql", size: 183, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1675272329_fix_protocol_migration.up.sql", size: 183, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb6, 0xe0, 0x11, 0x4c, 0x66, 0x55, 0x72, 0xd3, 0xe6, 0x98, 0xa4, 0xe7, 0x44, 0xf9, 0x3b, 0x3a, 0x3f, 0xd9, 0x91, 0x1e, 0x4f, 0xfc, 0x56, 0x63, 0xe5, 0xa4, 0x83, 0xfc, 0x7c, 0xcf, 0x18, 0x99}} return a, nil } @@ -1683,7 +1685,7 @@ func _1676998418_fix_activity_center_migrationUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1676998418_fix_activity_center_migration.up.sql", size: 178, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1676998418_fix_activity_center_migration.up.sql", size: 178, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8a, 0xdc, 0x64, 0xb1, 0x47, 0x67, 0xda, 0x2c, 0x26, 0x29, 0x6b, 0x6f, 0xb, 0xfa, 0x45, 0xf3, 0xad, 0x8b, 0x1a, 0x5f, 0x1c, 0xed, 0xd7, 0xea, 0x54, 0xf5, 0x3f, 0xb8, 0xf6, 0xf9, 0x44, 0x53}} return a, nil } @@ -1703,7 +1705,7 @@ func _1677278861_add_deleted_column_to_activity_center_notifications_tableUpSql( return nil, err } - info := bindataFileInfo{name: "1677278861_add_deleted_column_to_activity_center_notifications_table.up.sql", size: 381, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1677278861_add_deleted_column_to_activity_center_notifications_table.up.sql", size: 381, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x38, 0x3a, 0x95, 0xaf, 0x81, 0xb0, 0x85, 0x8d, 0x73, 0xda, 0x7b, 0x2a, 0x35, 0xa6, 0xaa, 0xcc, 0x4c, 0x35, 0xa3, 0xa8, 0xbd, 0xd1, 0x37, 0xe8, 0x5d, 0x83, 0xa4, 0x33, 0x1f, 0x10, 0xe4, 0xe6}} return a, nil } @@ -1723,7 +1725,7 @@ func _1677486338_add_community_tokens_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1677486338_add_community_tokens_table.up.sql", size: 527, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1677486338_add_community_tokens_table.up.sql", size: 527, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfb, 0x7b, 0x3d, 0x7e, 0x79, 0xc4, 0x3a, 0xf1, 0xda, 0x4b, 0xc6, 0xd1, 0xd, 0xfb, 0xb2, 0xb9, 0x7f, 0x81, 0x29, 0xab, 0xd8, 0x1, 0x20, 0xd7, 0xe1, 0xaf, 0x3e, 0x67, 0x1b, 0xdb, 0xf9, 0xd5}} return a, nil } @@ -1743,7 +1745,7 @@ func _1678292329_add_collapsed_categoriesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1678292329_add_collapsed_categories.up.sql", size: 170, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1678292329_add_collapsed_categories.up.sql", size: 170, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x46, 0x63, 0x86, 0xd5, 0x7, 0xe2, 0x25, 0x15, 0x1b, 0xfe, 0xf3, 0xe, 0x50, 0x48, 0x11, 0x3c, 0x7c, 0xc6, 0xe5, 0xab, 0x8d, 0x1f, 0xe8, 0x3c, 0xcb, 0xf0, 0x8d, 0xa7, 0x49, 0x4c, 0x16, 0x4f}} return a, nil } @@ -1763,7 +1765,7 @@ func _1678800760_add_index_to_raw_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1678800760_add_index_to_raw_messages.up.sql", size: 88, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1678800760_add_index_to_raw_messages.up.sql", size: 88, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9d, 0xd9, 0x8d, 0x22, 0x46, 0xae, 0x7b, 0x53, 0x3e, 0x51, 0x39, 0xad, 0xad, 0x38, 0x50, 0x6, 0xfa, 0xb9, 0xc4, 0x9f, 0x8d, 0xd2, 0x67, 0x0, 0xef, 0x58, 0x13, 0xab, 0x6a, 0x67, 0xf3, 0x7e}} return a, nil } @@ -1783,7 +1785,7 @@ func _1678877478_add_communities_requests_to_join_revealed_addresses_tableUpSql( return nil, err } - info := bindataFileInfo{name: "1678877478_add_communities_requests_to_join_revealed_addresses_table.up.sql", size: 168, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1678877478_add_communities_requests_to_join_revealed_addresses_table.up.sql", size: 168, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x82, 0x1, 0xb4, 0xb2, 0x94, 0x25, 0xd5, 0x2e, 0x45, 0xc3, 0xb1, 0x2c, 0xeb, 0x1a, 0x52, 0xe0, 0x4b, 0x9b, 0x46, 0xf4, 0xc, 0xac, 0x1, 0x1e, 0x90, 0xbc, 0x64, 0x38, 0x10, 0xf1, 0xaf, 0xac}} return a, nil } @@ -1803,7 +1805,7 @@ func _1679326850_add_community_token_ownersUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1679326850_add_community_token_owners.up.sql", size: 206, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1679326850_add_community_token_owners.up.sql", size: 206, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe9, 0xe6, 0x25, 0x67, 0xd1, 0xd6, 0x54, 0x88, 0xb1, 0x80, 0x1e, 0x2d, 0x9c, 0xfa, 0x1c, 0xc7, 0x63, 0x6e, 0xf9, 0x66, 0xb1, 0x68, 0xc6, 0xf8, 0x51, 0xb6, 0xd5, 0x4e, 0x93, 0x39, 0x5e, 0xc0}} return a, nil } @@ -1823,7 +1825,7 @@ func _1680011500_add_album_images_countUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1680011500_add_album_images_count.up.sql", size: 71, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1680011500_add_album_images_count.up.sql", size: 71, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2e, 0x55, 0x99, 0x31, 0xcc, 0x80, 0x78, 0xc3, 0x51, 0x13, 0x63, 0x6f, 0x1a, 0xfd, 0x53, 0xd2, 0xf4, 0x13, 0x4b, 0xb2, 0x4f, 0x99, 0xb8, 0x7b, 0x7, 0x99, 0xb6, 0xab, 0x88, 0x2e, 0x7, 0x8}} return a, nil } @@ -1843,7 +1845,7 @@ func _1680114896_add_index_on_album_idUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1680114896_add_index_on_album_id.up.sql", size: 83, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1680114896_add_index_on_album_id.up.sql", size: 83, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb3, 0x7e, 0xd5, 0xcd, 0x2d, 0xab, 0xd4, 0x32, 0x26, 0x50, 0x3a, 0x5b, 0x8e, 0x1c, 0xcc, 0x35, 0xf8, 0xa1, 0x2a, 0xc1, 0x23, 0xf6, 0x90, 0xfe, 0x84, 0x3, 0xde, 0x5a, 0xee, 0xc6, 0xfc, 0x2a}} return a, nil } @@ -1863,7 +1865,7 @@ func _1681655289_add_mute_tillUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1681655289_add_mute_till.up.sql", size: 51, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1681655289_add_mute_till.up.sql", size: 51, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd1, 0xbe, 0xce, 0xb8, 0xe1, 0x30, 0xe7, 0xa7, 0xe0, 0x7d, 0x97, 0xf4, 0x26, 0xb8, 0x57, 0x1d, 0x2a, 0xed, 0x18, 0xf2, 0xa, 0xe3, 0x77, 0x29, 0x18, 0x55, 0x9, 0x74, 0x2c, 0x24, 0x5a, 0x19}} return a, nil } @@ -1883,7 +1885,7 @@ func _1681934966_add_index_response_toUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1681934966_add_index_response_to.up.sql", size: 70, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1681934966_add_index_response_to.up.sql", size: 70, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3b, 0xed, 0xa6, 0x7e, 0x51, 0xf2, 0xa1, 0x3c, 0x78, 0x9a, 0xa7, 0x7a, 0x51, 0x25, 0x7d, 0xdd, 0x4b, 0xf3, 0x45, 0xeb, 0x3f, 0xad, 0x23, 0x3e, 0xac, 0x16, 0x28, 0x62, 0x7, 0x8c, 0xe0, 0xa0}} return a, nil } @@ -1903,7 +1905,7 @@ func _1682528339_add_index_user_messages_unseenUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1682528339_add_index_user_messages_unseen.up.sql", size: 104, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1682528339_add_index_user_messages_unseen.up.sql", size: 104, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x35, 0xfa, 0x98, 0xdd, 0x74, 0x5e, 0x21, 0x1f, 0xf2, 0x56, 0x17, 0x96, 0xfe, 0xbb, 0x44, 0x4c, 0xa1, 0xd8, 0x9f, 0x2e, 0x6, 0x2f, 0xd8, 0x23, 0xec, 0x94, 0x8c, 0x53, 0xf3, 0xf0, 0x40, 0xe7}} return a, nil } @@ -1923,7 +1925,7 @@ func _1683707289_recreate_deleted_for_mesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1683707289_recreate_deleted_for_mes.up.sql", size: 408, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1683707289_recreate_deleted_for_mes.up.sql", size: 408, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5b, 0x9d, 0xd6, 0x45, 0x41, 0x29, 0x44, 0xf6, 0x14, 0x38, 0xeb, 0xdf, 0x6b, 0x5d, 0x9c, 0x45, 0x4b, 0xc3, 0xa8, 0xbd, 0x38, 0x14, 0xd9, 0x73, 0xf1, 0x51, 0xbb, 0x9f, 0x14, 0x36, 0xf2, 0x11}} return a, nil } @@ -1943,7 +1945,7 @@ func _1683725607_mark_discord_messages_as_seenUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1683725607_mark_discord_messages_as_seen.up.sql", size: 108, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1683725607_mark_discord_messages_as_seen.up.sql", size: 108, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd7, 0x2a, 0xc3, 0x43, 0xea, 0x5e, 0x3, 0x2e, 0xce, 0x79, 0xea, 0xa5, 0x67, 0x61, 0x8c, 0xe4, 0xb9, 0xb7, 0x4d, 0xd5, 0xd5, 0xb0, 0x35, 0xc8, 0x2b, 0xa0, 0x3f, 0xd8, 0xde, 0xea, 0x4e, 0x16}} return a, nil } @@ -1963,7 +1965,7 @@ func _1684174617_add_url_previews_to_user_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1684174617_add_url_previews_to_user_messages.up.sql", size: 58, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1684174617_add_url_previews_to_user_messages.up.sql", size: 58, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xdc, 0xb0, 0x72, 0xe3, 0xe4, 0xa9, 0x63, 0x82, 0xea, 0x52, 0x70, 0xb6, 0xa0, 0x73, 0x55, 0x7a, 0x78, 0xa8, 0xd2, 0xb0, 0xf4, 0x78, 0x8a, 0xd, 0x5a, 0xa2, 0x9d, 0x92, 0xdc, 0xce, 0x1c, 0x71}} return a, nil } @@ -1983,7 +1985,7 @@ func _1684175608_add_token_balancesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1684175608_add_token_balances.up.sql", size: 467, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1684175608_add_token_balances.up.sql", size: 467, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1b, 0x4e, 0xe0, 0x48, 0x34, 0x1, 0x4d, 0x88, 0x11, 0x54, 0x20, 0x52, 0x5c, 0x57, 0x14, 0xa9, 0xa9, 0x36, 0xa4, 0x28, 0x59, 0x48, 0xa8, 0xa, 0x76, 0xec, 0x37, 0xee, 0x9e, 0xd2, 0x20, 0xaa}} return a, nil } @@ -2003,7 +2005,7 @@ func _1684979808_sync_activity_center_notificationsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1684979808_sync_activity_center_notifications.up.sql", size: 169, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1684979808_sync_activity_center_notifications.up.sql", size: 169, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd8, 0xf5, 0xf7, 0x94, 0xa9, 0xa1, 0x60, 0x26, 0x9d, 0xca, 0x31, 0xf, 0x14, 0xd, 0x70, 0xf8, 0xab, 0x40, 0x29, 0x73, 0x61, 0xbd, 0x1b, 0xb6, 0xc4, 0x31, 0x77, 0x9e, 0x32, 0xa8, 0xce, 0x6d}} return a, nil } @@ -2023,7 +2025,7 @@ func _1685383829_add_communities_mute_tillUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1685383829_add_communities_mute_till.up.sql", size: 69, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1685383829_add_communities_mute_till.up.sql", size: 69, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbf, 0x58, 0x96, 0xe5, 0x66, 0xcb, 0xde, 0xed, 0x76, 0xb8, 0x5a, 0x86, 0x81, 0x9a, 0x60, 0x51, 0x12, 0x37, 0x54, 0x9a, 0x36, 0x3e, 0xd1, 0x4a, 0xbe, 0x9a, 0xab, 0x20, 0x7f, 0x1d, 0xf4, 0x73}} return a, nil } @@ -2043,7 +2045,7 @@ func _1685964183_add_chainids_to_revealed_addressesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1685964183_add_chainids_to_revealed_addresses.up.sql", size: 88, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1685964183_add_chainids_to_revealed_addresses.up.sql", size: 88, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc, 0xb5, 0xa8, 0xd7, 0xad, 0x9c, 0x54, 0xa5, 0xe9, 0xdb, 0x42, 0x2d, 0xd0, 0xd7, 0x22, 0x1, 0x93, 0xf3, 0x4f, 0x53, 0xf7, 0x1e, 0xbe, 0x4b, 0xac, 0xc7, 0x63, 0x15, 0xdf, 0xe0, 0x6, 0xf8}} return a, nil } @@ -2063,7 +2065,7 @@ func _1687370421_add_communities_muted_till_newUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1687370421_add_communities_muted_till_new.up.sql", size: 635, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1687370421_add_communities_muted_till_new.up.sql", size: 635, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x65, 0x73, 0x96, 0x1d, 0xc8, 0x3e, 0xca, 0xf5, 0xdc, 0xe3, 0xac, 0x3f, 0x9c, 0xc3, 0x67, 0x12, 0x9c, 0x19, 0x1, 0x4, 0x2b, 0xea, 0x6b, 0xe1, 0x59, 0x59, 0x89, 0x3d, 0xef, 0x4a, 0x6e, 0xbe}} return a, nil } @@ -2083,7 +2085,7 @@ func _1687416607_add_communities_check_channel_permission_responses_tableUpSql() return nil, err } - info := bindataFileInfo{name: "1687416607_add_communities_check_channel_permission_responses_table.up.sql", size: 739, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1687416607_add_communities_check_channel_permission_responses_table.up.sql", size: 739, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc2, 0x6, 0x3, 0x1a, 0xde, 0x9d, 0xbc, 0x50, 0x9d, 0xf1, 0x6d, 0x5a, 0x1c, 0x28, 0x92, 0x19, 0x89, 0x76, 0x4e, 0x8b, 0x60, 0xa9, 0xf, 0xe9, 0x76, 0xf1, 0xee, 0x75, 0x92, 0xbd, 0xda, 0x72}} return a, nil } @@ -2103,7 +2105,7 @@ func _1687856939_add_community_tokens_decimalsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1687856939_add_community_tokens_decimals.up.sql", size: 65, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1687856939_add_community_tokens_decimals.up.sql", size: 65, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x59, 0x76, 0x42, 0x70, 0xc9, 0x7b, 0x16, 0xf6, 0xfe, 0x7, 0x1c, 0x99, 0xe5, 0x38, 0xfd, 0xa0, 0x3b, 0x93, 0x40, 0xbc, 0x66, 0xc2, 0xd1, 0xdd, 0xe9, 0xc7, 0xbf, 0xae, 0x36, 0xcc, 0x46, 0x57}} return a, nil } @@ -2123,7 +2125,7 @@ func _1687959987_modify_community_tokens_supply_as_stringUpSql() (*asset, error) return nil, err } - info := bindataFileInfo{name: "1687959987_modify_community_tokens_supply_as_string.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1687959987_modify_community_tokens_supply_as_string.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x57, 0x89, 0xbf, 0x9b, 0xed, 0x9b, 0x18, 0x3f, 0x84, 0xb5, 0x3c, 0x78, 0x40, 0x60, 0xea, 0x33, 0x26, 0x50, 0x3, 0xda, 0x28, 0x92, 0xd3, 0xb6, 0xff, 0x40, 0xa7, 0x19, 0x2, 0xa7, 0x17, 0xf9}} return a, nil } @@ -2143,7 +2145,7 @@ func _1689258900_add_airdrop_address_to_revealed_addressesUpSql() (*asset, error return nil, err } - info := bindataFileInfo{name: "1689258900_add_airdrop_address_to_revealed_addresses.up.sql", size: 99, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1689258900_add_airdrop_address_to_revealed_addresses.up.sql", size: 99, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xea, 0x7e, 0xaf, 0x5c, 0xd, 0xe5, 0x1e, 0x67, 0x1a, 0x6d, 0xd, 0x28, 0x20, 0x7a, 0x1a, 0x45, 0x6e, 0xba, 0x80, 0x91, 0xb0, 0xd6, 0xfd, 0xc2, 0xb9, 0x42, 0x5c, 0x8d, 0x6e, 0x3e, 0x6e, 0xb2}} return a, nil } @@ -2163,7 +2165,7 @@ func _1689266326_create_communities_events_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1689266326_create_communities_events_table.up.sql", size: 164, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1689266326_create_communities_events_table.up.sql", size: 164, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf5, 0x4e, 0xe, 0xba, 0x29, 0x16, 0x46, 0x38, 0x19, 0xa4, 0x5, 0x40, 0x46, 0xaf, 0x9a, 0x6, 0x89, 0xe0, 0x9c, 0xcc, 0xec, 0x8a, 0xb, 0x40, 0x85, 0x6f, 0xcc, 0x5, 0x24, 0x2a, 0x33, 0xfa}} return a, nil } @@ -2183,7 +2185,7 @@ func _1689931300_add_community_tokens_deployer_and_priv_levelUpSql() (*asset, er return nil, err } - info := bindataFileInfo{name: "1689931300_add_community_tokens_deployer_and_priv_level.up.sql", size: 156, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1689931300_add_community_tokens_deployer_and_priv_level.up.sql", size: 156, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3f, 0x24, 0xd9, 0x4d, 0xe, 0x4b, 0xe3, 0x4c, 0xd1, 0xc, 0x72, 0xd4, 0x99, 0xe4, 0xb9, 0xb8, 0xe9, 0x38, 0x9e, 0x11, 0x48, 0xea, 0xe3, 0x5d, 0xd9, 0xd0, 0xef, 0x96, 0x38, 0x5a, 0xd4, 0xa5}} return a, nil } @@ -2203,7 +2205,7 @@ func _1693311881_add_unfurled_links_to_message_editsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1693311881_add_unfurled_links_to_message_edits.up.sql", size: 64, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1693311881_add_unfurled_links_to_message_edits.up.sql", size: 64, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6b, 0xc7, 0x7c, 0xe4, 0x80, 0x6f, 0xf8, 0x96, 0xb, 0x37, 0xff, 0xa2, 0xab, 0x1c, 0xbd, 0x25, 0x8d, 0x1e, 0x9a, 0x65, 0xe9, 0x45, 0xaf, 0x7f, 0x77, 0x84, 0x1b, 0x10, 0x1b, 0x1a, 0x5, 0xcc}} return a, nil } @@ -2223,7 +2225,7 @@ func _1693311981_community_shardUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1693311981_community_shard.up.sql", size: 156, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1693311981_community_shard.up.sql", size: 156, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc9, 0x12, 0xf9, 0xde, 0x49, 0x9f, 0x95, 0xaa, 0x22, 0x5e, 0x54, 0x5a, 0x1, 0xd, 0xc6, 0x1f, 0x42, 0x93, 0xe8, 0x69, 0x30, 0x11, 0x69, 0x41, 0x7f, 0x87, 0x57, 0x56, 0x2a, 0x32, 0xb9, 0x3e}} return a, nil } @@ -2243,7 +2245,7 @@ func _1695331492_add_status_link_previewsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1695331492_add_status_link_previews.up.sql", size: 136, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1695331492_add_status_link_previews.up.sql", size: 136, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb6, 0x7d, 0x6e, 0x86, 0xf0, 0xf8, 0x23, 0x4b, 0x16, 0x3d, 0xca, 0x8f, 0xfc, 0x8, 0x22, 0xd5, 0x70, 0x14, 0xbb, 0xdd, 0xa9, 0xb8, 0x3e, 0xc6, 0x20, 0xfb, 0x0, 0x26, 0x73, 0xcb, 0x92, 0xb2}} return a, nil } @@ -2263,7 +2265,7 @@ func _1695918296_add_validated_atUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1695918296_add_validated_at.up.sql", size: 377, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1695918296_add_validated_at.up.sql", size: 377, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1d, 0x48, 0xa7, 0xd5, 0xb, 0xbb, 0x23, 0xfd, 0x40, 0x49, 0x33, 0x1b, 0x5c, 0xb3, 0x5b, 0x7a, 0xd8, 0xed, 0x5, 0xd, 0xb4, 0x91, 0xa3, 0x37, 0xaf, 0xaf, 0xc6, 0xa1, 0x13, 0xeb, 0x56, 0x1d}} return a, nil } @@ -2283,7 +2285,7 @@ func _1697699419_community_control_node_syncUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1697699419_community_control_node_sync.up.sql", size: 435, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1697699419_community_control_node_sync.up.sql", size: 435, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x11, 0xd6, 0x63, 0x10, 0x1b, 0x16, 0x35, 0x57, 0xf1, 0x4a, 0x4, 0x51, 0xe0, 0x1, 0xe1, 0xfc, 0x12, 0x3a, 0x10, 0x4f, 0xb1, 0x96, 0x53, 0x2, 0xf5, 0x66, 0x7b, 0xe0, 0x8a, 0xdf, 0x78, 0x53}} return a, nil } @@ -2303,7 +2305,7 @@ func _1698137561_add_profile_showcase_tablesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1698137561_add_profile_showcase_tables.up.sql", size: 440, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1698137561_add_profile_showcase_tables.up.sql", size: 440, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7c, 0xef, 0x89, 0x68, 0x42, 0xbf, 0xff, 0xb9, 0x8f, 0x8f, 0x19, 0x91, 0xd2, 0x6a, 0x85, 0xda, 0x2c, 0x63, 0x5f, 0x3c, 0x84, 0x4, 0x93, 0x16, 0x10, 0xf0, 0xe0, 0xd9, 0x9b, 0xbe, 0x8d, 0x62}} return a, nil } @@ -2323,7 +2325,7 @@ func _1698137562_fix_encryption_key_idUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1698137562_fix_encryption_key_id.up.sql", size: 758, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1698137562_fix_encryption_key_id.up.sql", size: 758, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe5, 0x61, 0x1b, 0x6a, 0xb1, 0x44, 0x8d, 0x47, 0xde, 0x55, 0x45, 0x77, 0x8e, 0x4f, 0xb, 0x6a, 0x7f, 0x83, 0x56, 0x9c, 0x80, 0xc0, 0xae, 0xda, 0xd8, 0xaf, 0x7e, 0x2b, 0xb4, 0x5e, 0xc3, 0x63}} return a, nil } @@ -2343,7 +2345,7 @@ func _1698414646_add_paddingUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1698414646_add_padding.up.sql", size: 69, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1698414646_add_padding.up.sql", size: 69, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbf, 0x48, 0x8e, 0x18, 0x1b, 0x81, 0x78, 0xab, 0x42, 0xcb, 0x11, 0xf5, 0xe, 0x44, 0xd4, 0x35, 0x33, 0x4e, 0x8, 0x6f, 0x14, 0x90, 0xe6, 0x2b, 0x59, 0xee, 0x87, 0xb, 0x96, 0x62, 0x3, 0x45}} return a, nil } @@ -2363,7 +2365,7 @@ func _1698746210_add_signature_to_revealed_addressesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1698746210_add_signature_to_revealed_addresses.up.sql", size: 87, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1698746210_add_signature_to_revealed_addresses.up.sql", size: 87, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8f, 0x64, 0xef, 0xe7, 0x5d, 0x82, 0x3e, 0x7d, 0x5a, 0x34, 0xd2, 0xa, 0x5c, 0x48, 0xef, 0x40, 0xb4, 0x7d, 0x78, 0xc8, 0x11, 0xbc, 0xf3, 0xc5, 0x1d, 0xd5, 0xe9, 0x39, 0xd9, 0xfa, 0xc8, 0x27}} return a, nil } @@ -2383,7 +2385,7 @@ func _1699041816_profile_showcase_contactsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1699041816_profile_showcase_contacts.up.sql", size: 2206, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1699041816_profile_showcase_contacts.up.sql", size: 2206, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd5, 0x7b, 0x55, 0xda, 0x93, 0x4a, 0x92, 0xf8, 0x45, 0xb2, 0x9f, 0x32, 0xf4, 0x37, 0xc, 0x5f, 0x62, 0xba, 0x33, 0xe2, 0x5c, 0x91, 0x1c, 0xc, 0x7, 0x9, 0xc2, 0x27, 0x5, 0x90, 0x94, 0xf3}} return a, nil } @@ -2403,7 +2405,7 @@ func _1699554099_message_segmentsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1699554099_message_segments.up.sql", size: 426, mode: os.FileMode(0644), modTime: time.Unix(1704988411, 0)} + info := bindataFileInfo{name: "1699554099_message_segments.up.sql", size: 426, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x73, 0xca, 0xd, 0xfa, 0xfa, 0x17, 0xef, 0x7e, 0x24, 0xf9, 0x28, 0xbd, 0x39, 0x75, 0xff, 0x34, 0x31, 0x27, 0x58, 0x3c, 0x17, 0x77, 0xfd, 0xc2, 0x66, 0x47, 0x63, 0x58, 0x3e, 0xb3, 0x88, 0x1a}} return a, nil } @@ -2423,7 +2425,7 @@ func _1700044186_message_segments_timestampUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1700044186_message_segments_timestamp.up.sql", size: 322, mode: os.FileMode(0644), modTime: time.Unix(1704988411, 0)} + info := bindataFileInfo{name: "1700044186_message_segments_timestamp.up.sql", size: 322, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3e, 0x4e, 0x7, 0x86, 0x71, 0xc8, 0x1f, 0x2f, 0xf4, 0xbc, 0xc5, 0xc4, 0x37, 0x56, 0xa1, 0x47, 0xd9, 0xc9, 0xfd, 0xdf, 0x9a, 0x48, 0x1d, 0xfd, 0xb4, 0xeb, 0xb6, 0xb1, 0xc2, 0x73, 0x11, 0x19}} return a, nil } @@ -2443,7 +2445,7 @@ func _1700044187_curated_communitiesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1700044187_curated_communities.up.sql", size: 131, mode: os.FileMode(0644), modTime: time.Unix(1704988411, 0)} + info := bindataFileInfo{name: "1700044187_curated_communities.up.sql", size: 131, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xed, 0xf1, 0xf1, 0x57, 0xb5, 0x83, 0xad, 0x9d, 0x9b, 0xf, 0x49, 0xe, 0x3d, 0xa5, 0xf6, 0xf5, 0x9c, 0x7f, 0xb3, 0xf7, 0x22, 0x43, 0x8a, 0xa0, 0x49, 0xfa, 0xcc, 0x9b, 0xea, 0xac, 0xc0, 0xb9}} return a, nil } @@ -2463,7 +2465,7 @@ func _1700820989_add_resend_automatically_indexUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1700820989_add_resend_automatically_index.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "1700820989_add_resend_automatically_index.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5a, 0x6a, 0xd4, 0xd2, 0x34, 0xa7, 0x68, 0xaa, 0xe5, 0x69, 0x9, 0xce, 0xcf, 0xcb, 0x13, 0x94, 0x9d, 0x3, 0x4c, 0x59, 0xac, 0x5f, 0x71, 0xb2, 0xe4, 0xda, 0x67, 0x42, 0xbe, 0xf2, 0x1d, 0xe8}} return a, nil } @@ -2483,7 +2485,7 @@ func _1702996953_add_communities_shards_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1702996953_add_communities_shards_table.up.sql", size: 208, mode: os.FileMode(0644), modTime: time.Unix(1704988411, 0)} + info := bindataFileInfo{name: "1702996953_add_communities_shards_table.up.sql", size: 208, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6, 0x40, 0x38, 0xcb, 0x1e, 0x85, 0x1, 0x6b, 0xe6, 0xe9, 0xf0, 0xf9, 0xe6, 0x6d, 0x23, 0x4d, 0xe6, 0x12, 0x61, 0xc8, 0x12, 0x25, 0x31, 0x39, 0x7d, 0x40, 0xad, 0x64, 0xfa, 0xf1, 0x87, 0x86}} return a, nil } @@ -2503,7 +2505,7 @@ func _1704489636_add_album_imagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1704489636_add_album_images.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1704988411, 0)} + info := bindataFileInfo{name: "1704489636_add_album_images.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x28, 0x82, 0xf2, 0x12, 0x94, 0xb, 0x1b, 0x9f, 0x3f, 0xbf, 0x41, 0x96, 0x29, 0x63, 0x5e, 0x28, 0x4c, 0x9d, 0xd2, 0x26, 0xc9, 0x52, 0x4a, 0x19, 0x80, 0x10, 0xac, 0x1a, 0x51, 0x96, 0xe6, 0xa2}} return a, nil } @@ -2523,7 +2525,7 @@ func _1704821941_add_joined_at_for_communityUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1704821941_add_joined_at_for_community.up.sql", size: 84, mode: os.FileMode(0644), modTime: time.Unix(1704988411, 0)} + info := bindataFileInfo{name: "1704821941_add_joined_at_for_community.up.sql", size: 84, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x87, 0xa1, 0xca, 0xbe, 0x8e, 0xd1, 0xd5, 0xf, 0xe3, 0x4, 0x7, 0xdd, 0x62, 0x47, 0xc3, 0x90, 0xfb, 0x3, 0xb8, 0x48, 0x35, 0xc9, 0xc9, 0xe0, 0xe3, 0xb7, 0x36, 0x9f, 0xb8, 0x61, 0x1e, 0x18}} return a, nil } @@ -2543,7 +2545,7 @@ func _1704832511_add_last_opened_at_for_communitiesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1704832511_add_last_opened_at_for_communities.up.sql", size: 89, mode: os.FileMode(0644), modTime: time.Unix(1705923883, 0)} + info := bindataFileInfo{name: "1704832511_add_last_opened_at_for_communities.up.sql", size: 89, mode: os.FileMode(0644), modTime: time.Unix(1706026769, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa7, 0x73, 0x6, 0x6f, 0xa5, 0xc5, 0x5b, 0x5a, 0xf7, 0xf3, 0xb3, 0x28, 0x27, 0x61, 0x28, 0x2c, 0x6a, 0x1, 0x93, 0x14, 0x5b, 0xc0, 0xe8, 0xb5, 0xf6, 0xbf, 0x9f, 0xfb, 0x20, 0x7c, 0xd9, 0x54}} return a, nil } @@ -2563,11 +2565,31 @@ func _1704832512_add_peersyncingUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1704832512_add_peersyncing.up.sql", size: 276, mode: os.FileMode(0644), modTime: time.Unix(1705923883, 0)} + info := bindataFileInfo{name: "1704832512_add_peersyncing.up.sql", size: 276, mode: os.FileMode(0644), modTime: time.Unix(1706026769, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x32, 0xfc, 0x4c, 0x13, 0x67, 0xfb, 0x26, 0x58, 0xd3, 0x7f, 0x72, 0xd0, 0xe7, 0xd7, 0x28, 0x41, 0xa8, 0xa3, 0xf3, 0x9f, 0x1, 0x4c, 0xdd, 0xb6, 0x7b, 0xa4, 0x2a, 0x27, 0xb2, 0x31, 0xb1, 0x30}} return a, nil } +var __1706028033_profile_showcase_address_and_communityUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x54\x5d\x6f\x9b\x30\x14\x7d\xe7\x57\x5c\xf5\x61\x6a\x24\x2a\xed\x3d\x4f\x34\x71\x2b\x34\x46\x22\x46\xa4\xf6\xc9\x72\xcc\xcd\x62\x8d\xd8\x95\x6d\x3a\xe5\xdf\x4f\xc5\x09\x05\x56\xbe\xa6\x64\xea\x33\xe7\x70\x7d\xcf\xc7\xbd\xbb\x83\x04\xb9\x46\x66\x11\x2c\xdb\xe6\x68\x60\xa7\x34\x18\xab\xb4\x90\x3f\x81\x17\x5a\xa3\xb4\x50\x18\xd4\xf0\xa2\xd5\x4e\xe4\x08\x66\xaf\x7e\x73\x66\x10\xb8\xca\x73\xe4\x56\x94\xb4\x2f\xc0\x8c\x41\x6b\xe0\x45\xe3\x0e\x35\x4a\x8e\xc6\x5b\x26\xab\x35\xa4\xc1\x7d\x44\xce\x6c\x7a\x66\xd3\x3a\x9b\xd6\x48\x73\x6f\x91\x90\x20\x25\x53\x79\x70\xeb\x01\x00\x70\x25\xad\x66\xdc\x52\x96\x65\x1a\x8d\x81\x94\x3c\xa5\xb0\x4e\xc2\xef\x41\xf2\x0c\xdf\xc8\x33\xac\x62\x58\xac\xe2\x87\x28\x5c\xa4\x90\x90\x75\x14\x2c\x88\xef\xa8\x7b\x26\x24\x15\x19\x6c\xe2\x1f\xe1\x63\x4c\x96\x70\x1f\x3e\x86\x71\x0a\xf1\x2a\x85\x78\x13\x45\x0e\x66\xd5\x2f\x2c\x61\xe5\x9f\x9b\xdf\xb8\x3a\x1c\x0a\x29\xec\xb1\xfa\xbe\x24\x0f\xc1\x26\x4a\xe1\xe6\xc6\x21\x18\xe7\xaa\x90\xad\xe7\xb5\x41\xaf\xc2\x88\xad\xc8\x85\x3d\x42\x7d\x7e\x85\xfb\xea\x60\x46\x69\x4b\x95\xce\x50\x97\xb0\xea\xab\x37\x9b\x7b\xbd\xda\x3b\xab\xa6\xa8\xfe\x8a\x5a\xec\x04\x66\xb4\xdc\xfe\x23\xe1\xcd\xf1\xb0\x55\xf9\x04\xb9\x2f\xb0\x64\xff\x9b\x0b\x39\xfc\xea\xeb\xc7\x65\x38\x12\x97\x70\x7b\xa0\xc8\x23\xbb\xfb\x46\x41\xc6\xf7\xa5\x2c\x8c\x5b\x17\xa2\x30\x5e\x92\xa7\x81\x22\x9e\x08\x54\x64\xf3\xf1\xad\x3f\x91\xa6\x55\xfe\x4c\xea\x35\xb0\x65\xc1\xa7\x29\x76\x97\x87\x7e\xb5\x8b\x13\xf1\xa3\x27\xd4\x43\x79\xfb\x0e\xf5\xab\xf5\xfc\xbf\xc4\xf0\xab\x9d\x66\xb5\xba\x4c\xf3\xf3\xad\x00\x63\x1d\x79\x67\x55\x17\xa8\x63\xd8\xe9\x02\x8d\x8d\x4d\x13\x3e\xf9\x5a\xb5\x32\x53\x3f\x55\xff\xc5\x21\x37\x70\xf6\x2f\x27\xeb\x7a\x71\x1f\x8e\xf4\x75\xd2\xda\xda\x60\x44\x32\x3b\x34\xe9\x0a\x67\xb7\x84\x8d\x7c\xf6\xcf\xec\x74\xa2\x6b\x6a\x9f\x75\x8d\xb9\x7f\x02\x00\x00\xff\xff\xb9\x0a\x88\x1b\x74\x09\x00\x00") + +func _1706028033_profile_showcase_address_and_communityUpSqlBytes() ([]byte, error) { + return bindataRead( + __1706028033_profile_showcase_address_and_communityUpSql, + "1706028033_profile_showcase_address_and_community.up.sql", + ) +} + +func _1706028033_profile_showcase_address_and_communityUpSql() (*asset, error) { + bytes, err := _1706028033_profile_showcase_address_and_communityUpSqlBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "1706028033_profile_showcase_address_and_community.up.sql", size: 2420, mode: os.FileMode(0644), modTime: time.Unix(1706026988, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa0, 0x8e, 0xc2, 0xbf, 0x32, 0x2d, 0x27, 0x4a, 0x83, 0xfc, 0x4c, 0xb5, 0x9b, 0x45, 0x12, 0xf0, 0xfc, 0x65, 0x36, 0xe0, 0x3c, 0x78, 0xd1, 0xdd, 0xd3, 0xfb, 0x44, 0x14, 0x20, 0x3, 0x3e, 0xcf}} + return a, nil +} + var _readmeMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x54\x91\xc1\xce\xd3\x30\x10\x84\xef\x7e\x8a\x91\x7a\x01\xa9\x2a\x8f\xc0\x0d\x71\x82\x03\x48\x1c\xc9\x36\x9e\x36\x96\x1c\x6f\xf0\xae\x93\xe6\xed\x91\xa3\xc2\xdf\xff\x66\xed\xd8\x33\xdf\x78\x4f\xa7\x13\xbe\xea\x06\x57\x6c\x35\x39\x31\xa7\x7b\x15\x4f\x5a\xec\x73\x08\xbf\x08\x2d\x79\x7f\x4a\x43\x5b\x86\x17\xfd\x8c\x21\xea\x56\x5e\x47\x90\x4a\x14\x75\x48\xde\x64\x37\x2c\x6a\x96\xae\x99\x48\x05\xf6\x27\x77\x13\xad\x08\xae\x8a\x51\xe7\x25\xf3\xf1\xa9\x9f\xf9\x58\x58\x2c\xad\xbc\xe0\x8b\x56\xf0\x21\x5d\xeb\x4c\x95\xb3\xae\x84\x60\xd4\xdc\xe6\x82\x5d\x1b\x36\x6d\x39\x62\x92\xf5\xb8\x11\xdb\x92\xd3\x28\xce\xe0\x13\xe1\x72\xcd\x3c\x63\xd4\x65\x87\xae\xac\xe8\xc3\x28\x2e\x67\x44\x66\x3a\x21\x25\xa2\x72\xac\x14\x67\xbc\x84\x9f\x53\x32\x8c\x52\x70\x25\x56\xd6\xfd\x8d\x05\x37\xad\x30\x9d\x9f\xa6\x86\x0f\xcd\x58\x7f\xcf\x34\x93\x3b\xed\x90\x9f\xa4\x1f\xcf\x30\x85\x4d\x07\x58\xaf\x7f\x25\xc4\x9d\xf3\x72\x64\x84\xd0\x7f\xf9\x9b\x3a\x2d\x84\xef\x85\x48\x66\x8d\xd8\x88\x9b\x8c\x8c\x98\x5b\xf6\x74\x14\x4e\x33\x0d\xc9\xe0\x93\x38\xda\x12\xc5\x69\xbd\xe4\xf0\x2e\x7a\x78\x07\x1c\xfe\x13\x9f\x91\x29\x31\x95\x7b\x7f\x62\x59\x37\xb4\xe5\x5e\x25\xfe\x33\xee\xd5\x53\x71\xd6\xda\x3a\xd8\xcb\xde\x2e\xf8\xa1\x90\x55\x53\x0c\xc7\xaa\x0d\xe9\x76\x14\x29\x1c\x7b\x68\xdd\x2f\xe1\x6f\x00\x00\x00\xff\xff\x3c\x0a\xc2\xfe\x2a\x02\x00\x00") func readmeMdBytes() ([]byte, error) { @@ -2583,7 +2605,7 @@ func readmeMd() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "README.md", size: 554, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "README.md", size: 554, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1c, 0x6e, 0xfb, 0xcc, 0x81, 0x94, 0x4d, 0x8c, 0xa0, 0x3b, 0x5, 0xb0, 0x18, 0xd6, 0xbb, 0xb3, 0x79, 0xc8, 0x8f, 0xff, 0xc1, 0x10, 0xf9, 0xf, 0x20, 0x1b, 0x4a, 0x74, 0x96, 0x42, 0xd7, 0xa8}} return a, nil } @@ -2603,7 +2625,7 @@ func docGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "doc.go", size: 850, mode: os.FileMode(0644), modTime: time.Unix(1704739012, 0)} + info := bindataFileInfo{name: "doc.go", size: 850, mode: os.FileMode(0644), modTime: time.Unix(1705589723, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa0, 0xcc, 0x41, 0xe1, 0x61, 0x12, 0x97, 0xe, 0x36, 0x8c, 0xa7, 0x9e, 0xe0, 0x6e, 0x59, 0x9e, 0xee, 0xd5, 0x4a, 0xcf, 0x1e, 0x60, 0xd6, 0xc3, 0x3a, 0xc9, 0x6c, 0xf2, 0x86, 0x5a, 0xb4, 0x1e}} return a, nil } @@ -2699,143 +2721,260 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ - "000001_init.down.db.sql": _000001_initDownDbSql, - "000001_init.up.db.sql": _000001_initUpDbSql, - "000002_add_last_ens_clock_value.up.sql": _000002_add_last_ens_clock_valueUpSql, - "1586358095_add_replace.up.sql": _1586358095_add_replaceUpSql, - "1588665364_add_image_data.up.sql": _1588665364_add_image_dataUpSql, - "1589365189_add_pow_target.up.sql": _1589365189_add_pow_targetUpSql, - "1591277220_add_index_messages.up.sql": _1591277220_add_index_messagesUpSql, - "1593087212_add_mute_chat_and_raw_message_fields.up.sql": _1593087212_add_mute_chat_and_raw_message_fieldsUpSql, - "1595862781_add_audio_data.up.sql": _1595862781_add_audio_dataUpSql, - "1595865249_create_emoji_reactions_table.up.sql": _1595865249_create_emoji_reactions_tableUpSql, - "1596805115_create_group_chat_invitations_table.up.sql": _1596805115_create_group_chat_invitations_tableUpSql, - "1597322655_add_invitation_admin_chat_field.up.sql": _1597322655_add_invitation_admin_chat_fieldUpSql, - "1597757544_add_nickname.up.sql": _1597757544_add_nicknameUpSql, - "1598955122_add_mentions.up.sql": _1598955122_add_mentionsUpSql, - "1599641390_add_emoji_reactions_index.up.sql": _1599641390_add_emoji_reactions_indexUpSql, - "1599720851_add_seen_index_remove_long_messages.up.sql": _1599720851_add_seen_index_remove_long_messagesUpSql, - "1603198582_add_profile_chat_field.up.sql": _1603198582_add_profile_chat_fieldUpSql, - "1603816533_add_links.up.sql": _1603816533_add_linksUpSql, - "1603888149_create_chat_identity_last_published_table.up.sql": _1603888149_create_chat_identity_last_published_tableUpSql, - "1605075346_add_communities.up.sql": _1605075346_add_communitiesUpSql, - "1610117927_add_message_cache.up.sql": _1610117927_add_message_cacheUpSql, - "1610959908_add_dont_wrap_to_raw_messages.up.sql": _1610959908_add_dont_wrap_to_raw_messagesUpSql, - "1610960912_add_send_on_personal_topic.up.sql": _1610960912_add_send_on_personal_topicUpSql, - "1612870480_add_datasync_id.up.sql": _1612870480_add_datasync_idUpSql, - "1614152139_add_communities_request_to_join.up.sql": _1614152139_add_communities_request_to_joinUpSql, - "1615374373_add_confirmations.up.sql": _1615374373_add_confirmationsUpSql, - "1617694931_add_notification_center.up.sql": _1617694931_add_notification_centerUpSql, - "1618923660_create_pin_messages.up.sql": _1618923660_create_pin_messagesUpSql, - "1619094007_add_joined_chat_field.up.sql": _1619094007_add_joined_chat_fieldUpSql, - "1619099821_add_last_synced_field.up.sql": _1619099821_add_last_synced_fieldUpSql, - "1621933219_add_mentioned.up.sql": _1621933219_add_mentionedUpSql, - "1622010048_add_unviewed_mentions_count.up.sql": _1622010048_add_unviewed_mentions_countUpSql, - "1622061278_add_message_activity_center_notification_field.up.sql": _1622061278_add_message_activity_center_notification_fieldUpSql, - "1622464518_set_synced_to_from.up.sql": _1622464518_set_synced_to_fromUpSql, - "1622464519_add_chat_description.up.sql": _1622464519_add_chat_descriptionUpSql, - "1622622253_add_pinned_by_to_pin_messages.up.sql": _1622622253_add_pinned_by_to_pin_messagesUpSql, - "1623938329_add_author_activity_center_notification_field.up.sql": _1623938329_add_author_activity_center_notification_fieldUpSql, - "1623938330_add_edit_messages.up.sql": _1623938330_add_edit_messagesUpSql, - "1624978434_add_muted_community.up.sql": _1624978434_add_muted_communityUpSql, - "1625018910_add_repply_message_activity_center_notification_field.up.sql": _1625018910_add_repply_message_activity_center_notification_fieldUpSql, - "1625762506_add_deleted_messages.up.sql": _1625762506_add_deleted_messagesUpSql, - "1627388946_add_communities_synced_at.up.sql": _1627388946_add_communities_synced_atUpSql, - "1628280060_create-usermessages-index.sql": _1628280060_createUsermessagesIndexSql, - "1632303896_modify_contacts_table.up.sql": _1632303896_modify_contacts_tableUpSql, - "1633349838_add_emoji_column_in_chats.up.sql": _1633349838_add_emoji_column_in_chatsUpSql, - "1634831235_add_highlight_column_in_chats.up.sql": _1634831235_add_highlight_column_in_chatsUpSql, - "1634896007_add_last_updated_locally_and_removed.up.sql": _1634896007_add_last_updated_locally_and_removedUpSql, - "1635840039_add_clock_read_at_column_in_chats.up.sql": _1635840039_add_clock_read_at_column_in_chatsUpSql, - "1637852321_add_received_invitation_admin_column_in_chats.up.sql": _1637852321_add_received_invitation_admin_column_in_chatsUpSql, - "1645034601_display_name.up.sql": _1645034601_display_nameUpSql, - "1645034602_add_mutual_contact_request.up.sql": _1645034602_add_mutual_contact_requestUpSql, - "1650373957_add_contact_request_state.up.sql": _1650373957_add_contact_request_stateUpSql, - "1656958989_contact_verification.up.sql": _1656958989_contact_verificationUpSql, - "1658236268_add_discord_message_authors_table.up.sql": _1658236268_add_discord_message_authors_tableUpSql, - "1659619997_add_discord_messages_table.up.sql": _1659619997_add_discord_messages_tableUpSql, - "1660226788_create_chat_identity_social_links.up.sql": _1660226788_create_chat_identity_social_linksUpSql, - "1660226789_add_walletconnectsessions_table.up.sql": _1660226789_add_walletconnectsessions_tableUpSql, - "1661242854_add_communities_requests_to_leave.up.sql": _1661242854_add_communities_requests_to_leaveUpSql, - "1662044232_add_chat_image.up.sql": _1662044232_add_chat_imageUpSql, - "1662106895_add_chat_first_message_timestamp.up.sql": _1662106895_add_chat_first_message_timestampUpSql, - "1662723928_add_discord_author_image_fields.up.sql": _1662723928_add_discord_author_image_fieldsUpSql, - "1664195977_add_deleted_for_mes.up.sql": _1664195977_add_deleted_for_mesUpSql, - "1664367420_add_discord_attachments_table.up.sql": _1664367420_add_discord_attachments_tableUpSql, - "1665079662_add_spectated_column_in_communities.up.sql": _1665079662_add_spectated_column_in_communitiesUpSql, - "1665479047_add_community_id_in_notifications.up.sql": _1665479047_add_community_id_in_notificationsUpSql, - "1665484435_add_encrypted_messages.up.sql": _1665484435_add_encrypted_messagesUpSql, - "1665560200_add_contact_verification_individual.up.sql": _1665560200_add_contact_verification_individualUpSql, - "1670921937_add_album_id.up.sql": _1670921937_add_album_idUpSql, - "1673373000_add_replied.up.sql": _1673373000_add_repliedUpSql, - "1673428910_add_image_width_height.up.sql": _1673428910_add_image_width_heightUpSql, - "1674210659_add_contact_request_local_clock.up.sql": _1674210659_add_contact_request_local_clockUpSql, - "1675212323_add_deleted_by.up.sql": _1675212323_add_deleted_byUpSql, - "1675247084_add_activity_center_states.up.sql": _1675247084_add_activity_center_statesUpSql, - "1675272329_fix_protocol_migration.up.sql": _1675272329_fix_protocol_migrationUpSql, - "1676998418_fix_activity_center_migration.up.sql": _1676998418_fix_activity_center_migrationUpSql, - "1677278861_add_deleted_column_to_activity_center_notifications_table.up.sql": _1677278861_add_deleted_column_to_activity_center_notifications_tableUpSql, - "1677486338_add_community_tokens_table.up.sql": _1677486338_add_community_tokens_tableUpSql, - "1678292329_add_collapsed_categories.up.sql": _1678292329_add_collapsed_categoriesUpSql, - "1678800760_add_index_to_raw_messages.up.sql": _1678800760_add_index_to_raw_messagesUpSql, - "1678877478_add_communities_requests_to_join_revealed_addresses_table.up.sql": _1678877478_add_communities_requests_to_join_revealed_addresses_tableUpSql, - "1679326850_add_community_token_owners.up.sql": _1679326850_add_community_token_ownersUpSql, - "1680011500_add_album_images_count.up.sql": _1680011500_add_album_images_countUpSql, - "1680114896_add_index_on_album_id.up.sql": _1680114896_add_index_on_album_idUpSql, - "1681655289_add_mute_till.up.sql": _1681655289_add_mute_tillUpSql, - "1681934966_add_index_response_to.up.sql": _1681934966_add_index_response_toUpSql, - "1682528339_add_index_user_messages_unseen.up.sql": _1682528339_add_index_user_messages_unseenUpSql, - "1683707289_recreate_deleted_for_mes.up.sql": _1683707289_recreate_deleted_for_mesUpSql, - "1683725607_mark_discord_messages_as_seen.up.sql": _1683725607_mark_discord_messages_as_seenUpSql, - "1684174617_add_url_previews_to_user_messages.up.sql": _1684174617_add_url_previews_to_user_messagesUpSql, - "1684175608_add_token_balances.up.sql": _1684175608_add_token_balancesUpSql, - "1684979808_sync_activity_center_notifications.up.sql": _1684979808_sync_activity_center_notificationsUpSql, - "1685383829_add_communities_mute_till.up.sql": _1685383829_add_communities_mute_tillUpSql, - "1685964183_add_chainids_to_revealed_addresses.up.sql": _1685964183_add_chainids_to_revealed_addressesUpSql, - "1687370421_add_communities_muted_till_new.up.sql": _1687370421_add_communities_muted_till_newUpSql, - "1687416607_add_communities_check_channel_permission_responses_table.up.sql": _1687416607_add_communities_check_channel_permission_responses_tableUpSql, - "1687856939_add_community_tokens_decimals.up.sql": _1687856939_add_community_tokens_decimalsUpSql, - "1687959987_modify_community_tokens_supply_as_string.up.sql": _1687959987_modify_community_tokens_supply_as_stringUpSql, - "1689258900_add_airdrop_address_to_revealed_addresses.up.sql": _1689258900_add_airdrop_address_to_revealed_addressesUpSql, - "1689266326_create_communities_events_table.up.sql": _1689266326_create_communities_events_tableUpSql, - "1689931300_add_community_tokens_deployer_and_priv_level.up.sql": _1689931300_add_community_tokens_deployer_and_priv_levelUpSql, - "1693311881_add_unfurled_links_to_message_edits.up.sql": _1693311881_add_unfurled_links_to_message_editsUpSql, - "1693311981_community_shard.up.sql": _1693311981_community_shardUpSql, - "1695331492_add_status_link_previews.up.sql": _1695331492_add_status_link_previewsUpSql, - "1695918296_add_validated_at.up.sql": _1695918296_add_validated_atUpSql, - "1697699419_community_control_node_sync.up.sql": _1697699419_community_control_node_syncUpSql, - "1698137561_add_profile_showcase_tables.up.sql": _1698137561_add_profile_showcase_tablesUpSql, - "1698137562_fix_encryption_key_id.up.sql": _1698137562_fix_encryption_key_idUpSql, - "1698414646_add_padding.up.sql": _1698414646_add_paddingUpSql, - "1698746210_add_signature_to_revealed_addresses.up.sql": _1698746210_add_signature_to_revealed_addressesUpSql, - "1699041816_profile_showcase_contacts.up.sql": _1699041816_profile_showcase_contactsUpSql, - "1699554099_message_segments.up.sql": _1699554099_message_segmentsUpSql, - "1700044186_message_segments_timestamp.up.sql": _1700044186_message_segments_timestampUpSql, - "1700044187_curated_communities.up.sql": _1700044187_curated_communitiesUpSql, - "1700820989_add_resend_automatically_index.up.sql": _1700820989_add_resend_automatically_indexUpSql, - "1702996953_add_communities_shards_table.up.sql": _1702996953_add_communities_shards_tableUpSql, - "1704489636_add_album_images.up.sql": _1704489636_add_album_imagesUpSql, - "1704821941_add_joined_at_for_community.up.sql": _1704821941_add_joined_at_for_communityUpSql, - "1704832511_add_last_opened_at_for_communities.up.sql": _1704832511_add_last_opened_at_for_communitiesUpSql, - "1704832512_add_peersyncing.up.sql": _1704832512_add_peersyncingUpSql, - "README.md": readmeMd, - "doc.go": docGo, -} + "000001_init.down.db.sql": _000001_initDownDbSql, -// AssetDebug is true if the assets were built with the debug flag enabled. -const AssetDebug = false + "000001_init.up.db.sql": _000001_initUpDbSql, + + "000002_add_last_ens_clock_value.up.sql": _000002_add_last_ens_clock_valueUpSql, + + "1586358095_add_replace.up.sql": _1586358095_add_replaceUpSql, + + "1588665364_add_image_data.up.sql": _1588665364_add_image_dataUpSql, + + "1589365189_add_pow_target.up.sql": _1589365189_add_pow_targetUpSql, + + "1591277220_add_index_messages.up.sql": _1591277220_add_index_messagesUpSql, + + "1593087212_add_mute_chat_and_raw_message_fields.up.sql": _1593087212_add_mute_chat_and_raw_message_fieldsUpSql, + + "1595862781_add_audio_data.up.sql": _1595862781_add_audio_dataUpSql, + + "1595865249_create_emoji_reactions_table.up.sql": _1595865249_create_emoji_reactions_tableUpSql, + + "1596805115_create_group_chat_invitations_table.up.sql": _1596805115_create_group_chat_invitations_tableUpSql, + + "1597322655_add_invitation_admin_chat_field.up.sql": _1597322655_add_invitation_admin_chat_fieldUpSql, + + "1597757544_add_nickname.up.sql": _1597757544_add_nicknameUpSql, + + "1598955122_add_mentions.up.sql": _1598955122_add_mentionsUpSql, + + "1599641390_add_emoji_reactions_index.up.sql": _1599641390_add_emoji_reactions_indexUpSql, + + "1599720851_add_seen_index_remove_long_messages.up.sql": _1599720851_add_seen_index_remove_long_messagesUpSql, + + "1603198582_add_profile_chat_field.up.sql": _1603198582_add_profile_chat_fieldUpSql, + + "1603816533_add_links.up.sql": _1603816533_add_linksUpSql, + + "1603888149_create_chat_identity_last_published_table.up.sql": _1603888149_create_chat_identity_last_published_tableUpSql, + + "1605075346_add_communities.up.sql": _1605075346_add_communitiesUpSql, + + "1610117927_add_message_cache.up.sql": _1610117927_add_message_cacheUpSql, + + "1610959908_add_dont_wrap_to_raw_messages.up.sql": _1610959908_add_dont_wrap_to_raw_messagesUpSql, + + "1610960912_add_send_on_personal_topic.up.sql": _1610960912_add_send_on_personal_topicUpSql, + + "1612870480_add_datasync_id.up.sql": _1612870480_add_datasync_idUpSql, + + "1614152139_add_communities_request_to_join.up.sql": _1614152139_add_communities_request_to_joinUpSql, + + "1615374373_add_confirmations.up.sql": _1615374373_add_confirmationsUpSql, + + "1617694931_add_notification_center.up.sql": _1617694931_add_notification_centerUpSql, + + "1618923660_create_pin_messages.up.sql": _1618923660_create_pin_messagesUpSql, + + "1619094007_add_joined_chat_field.up.sql": _1619094007_add_joined_chat_fieldUpSql, + + "1619099821_add_last_synced_field.up.sql": _1619099821_add_last_synced_fieldUpSql, + + "1621933219_add_mentioned.up.sql": _1621933219_add_mentionedUpSql, + + "1622010048_add_unviewed_mentions_count.up.sql": _1622010048_add_unviewed_mentions_countUpSql, + + "1622061278_add_message_activity_center_notification_field.up.sql": _1622061278_add_message_activity_center_notification_fieldUpSql, + + "1622464518_set_synced_to_from.up.sql": _1622464518_set_synced_to_fromUpSql, + + "1622464519_add_chat_description.up.sql": _1622464519_add_chat_descriptionUpSql, + + "1622622253_add_pinned_by_to_pin_messages.up.sql": _1622622253_add_pinned_by_to_pin_messagesUpSql, + + "1623938329_add_author_activity_center_notification_field.up.sql": _1623938329_add_author_activity_center_notification_fieldUpSql, + + "1623938330_add_edit_messages.up.sql": _1623938330_add_edit_messagesUpSql, + + "1624978434_add_muted_community.up.sql": _1624978434_add_muted_communityUpSql, + + "1625018910_add_repply_message_activity_center_notification_field.up.sql": _1625018910_add_repply_message_activity_center_notification_fieldUpSql, + + "1625762506_add_deleted_messages.up.sql": _1625762506_add_deleted_messagesUpSql, + + "1627388946_add_communities_synced_at.up.sql": _1627388946_add_communities_synced_atUpSql, + + "1628280060_create-usermessages-index.sql": _1628280060_createUsermessagesIndexSql, + + "1632303896_modify_contacts_table.up.sql": _1632303896_modify_contacts_tableUpSql, + + "1633349838_add_emoji_column_in_chats.up.sql": _1633349838_add_emoji_column_in_chatsUpSql, + + "1634831235_add_highlight_column_in_chats.up.sql": _1634831235_add_highlight_column_in_chatsUpSql, + + "1634896007_add_last_updated_locally_and_removed.up.sql": _1634896007_add_last_updated_locally_and_removedUpSql, + + "1635840039_add_clock_read_at_column_in_chats.up.sql": _1635840039_add_clock_read_at_column_in_chatsUpSql, + + "1637852321_add_received_invitation_admin_column_in_chats.up.sql": _1637852321_add_received_invitation_admin_column_in_chatsUpSql, + + "1645034601_display_name.up.sql": _1645034601_display_nameUpSql, + + "1645034602_add_mutual_contact_request.up.sql": _1645034602_add_mutual_contact_requestUpSql, + + "1650373957_add_contact_request_state.up.sql": _1650373957_add_contact_request_stateUpSql, + + "1656958989_contact_verification.up.sql": _1656958989_contact_verificationUpSql, + + "1658236268_add_discord_message_authors_table.up.sql": _1658236268_add_discord_message_authors_tableUpSql, + + "1659619997_add_discord_messages_table.up.sql": _1659619997_add_discord_messages_tableUpSql, + + "1660226788_create_chat_identity_social_links.up.sql": _1660226788_create_chat_identity_social_linksUpSql, + + "1660226789_add_walletconnectsessions_table.up.sql": _1660226789_add_walletconnectsessions_tableUpSql, + + "1661242854_add_communities_requests_to_leave.up.sql": _1661242854_add_communities_requests_to_leaveUpSql, + + "1662044232_add_chat_image.up.sql": _1662044232_add_chat_imageUpSql, + + "1662106895_add_chat_first_message_timestamp.up.sql": _1662106895_add_chat_first_message_timestampUpSql, + + "1662723928_add_discord_author_image_fields.up.sql": _1662723928_add_discord_author_image_fieldsUpSql, + + "1664195977_add_deleted_for_mes.up.sql": _1664195977_add_deleted_for_mesUpSql, + + "1664367420_add_discord_attachments_table.up.sql": _1664367420_add_discord_attachments_tableUpSql, + + "1665079662_add_spectated_column_in_communities.up.sql": _1665079662_add_spectated_column_in_communitiesUpSql, + + "1665479047_add_community_id_in_notifications.up.sql": _1665479047_add_community_id_in_notificationsUpSql, + + "1665484435_add_encrypted_messages.up.sql": _1665484435_add_encrypted_messagesUpSql, + + "1665560200_add_contact_verification_individual.up.sql": _1665560200_add_contact_verification_individualUpSql, + + "1670921937_add_album_id.up.sql": _1670921937_add_album_idUpSql, + + "1673373000_add_replied.up.sql": _1673373000_add_repliedUpSql, + + "1673428910_add_image_width_height.up.sql": _1673428910_add_image_width_heightUpSql, + + "1674210659_add_contact_request_local_clock.up.sql": _1674210659_add_contact_request_local_clockUpSql, + + "1675212323_add_deleted_by.up.sql": _1675212323_add_deleted_byUpSql, + + "1675247084_add_activity_center_states.up.sql": _1675247084_add_activity_center_statesUpSql, + + "1675272329_fix_protocol_migration.up.sql": _1675272329_fix_protocol_migrationUpSql, + + "1676998418_fix_activity_center_migration.up.sql": _1676998418_fix_activity_center_migrationUpSql, + + "1677278861_add_deleted_column_to_activity_center_notifications_table.up.sql": _1677278861_add_deleted_column_to_activity_center_notifications_tableUpSql, + + "1677486338_add_community_tokens_table.up.sql": _1677486338_add_community_tokens_tableUpSql, + + "1678292329_add_collapsed_categories.up.sql": _1678292329_add_collapsed_categoriesUpSql, + + "1678800760_add_index_to_raw_messages.up.sql": _1678800760_add_index_to_raw_messagesUpSql, + + "1678877478_add_communities_requests_to_join_revealed_addresses_table.up.sql": _1678877478_add_communities_requests_to_join_revealed_addresses_tableUpSql, + + "1679326850_add_community_token_owners.up.sql": _1679326850_add_community_token_ownersUpSql, + + "1680011500_add_album_images_count.up.sql": _1680011500_add_album_images_countUpSql, + + "1680114896_add_index_on_album_id.up.sql": _1680114896_add_index_on_album_idUpSql, + + "1681655289_add_mute_till.up.sql": _1681655289_add_mute_tillUpSql, + + "1681934966_add_index_response_to.up.sql": _1681934966_add_index_response_toUpSql, + + "1682528339_add_index_user_messages_unseen.up.sql": _1682528339_add_index_user_messages_unseenUpSql, + + "1683707289_recreate_deleted_for_mes.up.sql": _1683707289_recreate_deleted_for_mesUpSql, + + "1683725607_mark_discord_messages_as_seen.up.sql": _1683725607_mark_discord_messages_as_seenUpSql, + + "1684174617_add_url_previews_to_user_messages.up.sql": _1684174617_add_url_previews_to_user_messagesUpSql, + + "1684175608_add_token_balances.up.sql": _1684175608_add_token_balancesUpSql, + + "1684979808_sync_activity_center_notifications.up.sql": _1684979808_sync_activity_center_notificationsUpSql, + + "1685383829_add_communities_mute_till.up.sql": _1685383829_add_communities_mute_tillUpSql, + + "1685964183_add_chainids_to_revealed_addresses.up.sql": _1685964183_add_chainids_to_revealed_addressesUpSql, + + "1687370421_add_communities_muted_till_new.up.sql": _1687370421_add_communities_muted_till_newUpSql, + + "1687416607_add_communities_check_channel_permission_responses_table.up.sql": _1687416607_add_communities_check_channel_permission_responses_tableUpSql, + + "1687856939_add_community_tokens_decimals.up.sql": _1687856939_add_community_tokens_decimalsUpSql, + + "1687959987_modify_community_tokens_supply_as_string.up.sql": _1687959987_modify_community_tokens_supply_as_stringUpSql, + + "1689258900_add_airdrop_address_to_revealed_addresses.up.sql": _1689258900_add_airdrop_address_to_revealed_addressesUpSql, + + "1689266326_create_communities_events_table.up.sql": _1689266326_create_communities_events_tableUpSql, + + "1689931300_add_community_tokens_deployer_and_priv_level.up.sql": _1689931300_add_community_tokens_deployer_and_priv_levelUpSql, + + "1693311881_add_unfurled_links_to_message_edits.up.sql": _1693311881_add_unfurled_links_to_message_editsUpSql, + + "1693311981_community_shard.up.sql": _1693311981_community_shardUpSql, + + "1695331492_add_status_link_previews.up.sql": _1695331492_add_status_link_previewsUpSql, + + "1695918296_add_validated_at.up.sql": _1695918296_add_validated_atUpSql, + + "1697699419_community_control_node_sync.up.sql": _1697699419_community_control_node_syncUpSql, + + "1698137561_add_profile_showcase_tables.up.sql": _1698137561_add_profile_showcase_tablesUpSql, + + "1698137562_fix_encryption_key_id.up.sql": _1698137562_fix_encryption_key_idUpSql, + + "1698414646_add_padding.up.sql": _1698414646_add_paddingUpSql, + + "1698746210_add_signature_to_revealed_addresses.up.sql": _1698746210_add_signature_to_revealed_addressesUpSql, + + "1699041816_profile_showcase_contacts.up.sql": _1699041816_profile_showcase_contactsUpSql, + + "1699554099_message_segments.up.sql": _1699554099_message_segmentsUpSql, + + "1700044186_message_segments_timestamp.up.sql": _1700044186_message_segments_timestampUpSql, + + "1700044187_curated_communities.up.sql": _1700044187_curated_communitiesUpSql, + + "1700820989_add_resend_automatically_index.up.sql": _1700820989_add_resend_automatically_indexUpSql, + + "1702996953_add_communities_shards_table.up.sql": _1702996953_add_communities_shards_tableUpSql, + + "1704489636_add_album_images.up.sql": _1704489636_add_album_imagesUpSql, + + "1704821941_add_joined_at_for_community.up.sql": _1704821941_add_joined_at_for_communityUpSql, + + "1704832511_add_last_opened_at_for_communities.up.sql": _1704832511_add_last_opened_at_for_communitiesUpSql, + + "1704832512_add_peersyncing.up.sql": _1704832512_add_peersyncingUpSql, + + "1706028033_profile_showcase_address_and_community.up.sql": _1706028033_profile_showcase_address_and_communityUpSql, + + "README.md": readmeMd, + + "doc.go": docGo, +} // AssetDir returns the file names below a certain // directory embedded in the file by go-bindata. // For example if you run go-bindata on data/... and data contains the // following hierarchy: -// -// data/ -// foo.txt -// img/ -// a.png -// b.png -// +// data/ +// foo.txt +// img/ +// a.png +// b.png // then AssetDir("data") would return []string{"foo.txt", "img"}, // AssetDir("data/img") would return []string{"a.png", "b.png"}, // AssetDir("foo.txt") and AssetDir("notexist") would return an error, and @@ -2868,127 +3007,128 @@ type bintree struct { } var _bintree = &bintree{nil, map[string]*bintree{ - "000001_init.down.db.sql": {_000001_initDownDbSql, map[string]*bintree{}}, - "000001_init.up.db.sql": {_000001_initUpDbSql, map[string]*bintree{}}, - "000002_add_last_ens_clock_value.up.sql": {_000002_add_last_ens_clock_valueUpSql, map[string]*bintree{}}, - "1586358095_add_replace.up.sql": {_1586358095_add_replaceUpSql, map[string]*bintree{}}, - "1588665364_add_image_data.up.sql": {_1588665364_add_image_dataUpSql, map[string]*bintree{}}, - "1589365189_add_pow_target.up.sql": {_1589365189_add_pow_targetUpSql, map[string]*bintree{}}, - "1591277220_add_index_messages.up.sql": {_1591277220_add_index_messagesUpSql, map[string]*bintree{}}, - "1593087212_add_mute_chat_and_raw_message_fields.up.sql": {_1593087212_add_mute_chat_and_raw_message_fieldsUpSql, map[string]*bintree{}}, - "1595862781_add_audio_data.up.sql": {_1595862781_add_audio_dataUpSql, map[string]*bintree{}}, - "1595865249_create_emoji_reactions_table.up.sql": {_1595865249_create_emoji_reactions_tableUpSql, map[string]*bintree{}}, - "1596805115_create_group_chat_invitations_table.up.sql": {_1596805115_create_group_chat_invitations_tableUpSql, map[string]*bintree{}}, - "1597322655_add_invitation_admin_chat_field.up.sql": {_1597322655_add_invitation_admin_chat_fieldUpSql, map[string]*bintree{}}, - "1597757544_add_nickname.up.sql": {_1597757544_add_nicknameUpSql, map[string]*bintree{}}, - "1598955122_add_mentions.up.sql": {_1598955122_add_mentionsUpSql, map[string]*bintree{}}, - "1599641390_add_emoji_reactions_index.up.sql": {_1599641390_add_emoji_reactions_indexUpSql, map[string]*bintree{}}, - "1599720851_add_seen_index_remove_long_messages.up.sql": {_1599720851_add_seen_index_remove_long_messagesUpSql, map[string]*bintree{}}, - "1603198582_add_profile_chat_field.up.sql": {_1603198582_add_profile_chat_fieldUpSql, map[string]*bintree{}}, - "1603816533_add_links.up.sql": {_1603816533_add_linksUpSql, map[string]*bintree{}}, - "1603888149_create_chat_identity_last_published_table.up.sql": {_1603888149_create_chat_identity_last_published_tableUpSql, map[string]*bintree{}}, - "1605075346_add_communities.up.sql": {_1605075346_add_communitiesUpSql, map[string]*bintree{}}, - "1610117927_add_message_cache.up.sql": {_1610117927_add_message_cacheUpSql, map[string]*bintree{}}, - "1610959908_add_dont_wrap_to_raw_messages.up.sql": {_1610959908_add_dont_wrap_to_raw_messagesUpSql, map[string]*bintree{}}, - "1610960912_add_send_on_personal_topic.up.sql": {_1610960912_add_send_on_personal_topicUpSql, map[string]*bintree{}}, - "1612870480_add_datasync_id.up.sql": {_1612870480_add_datasync_idUpSql, map[string]*bintree{}}, - "1614152139_add_communities_request_to_join.up.sql": {_1614152139_add_communities_request_to_joinUpSql, map[string]*bintree{}}, - "1615374373_add_confirmations.up.sql": {_1615374373_add_confirmationsUpSql, map[string]*bintree{}}, - "1617694931_add_notification_center.up.sql": {_1617694931_add_notification_centerUpSql, map[string]*bintree{}}, - "1618923660_create_pin_messages.up.sql": {_1618923660_create_pin_messagesUpSql, map[string]*bintree{}}, - "1619094007_add_joined_chat_field.up.sql": {_1619094007_add_joined_chat_fieldUpSql, map[string]*bintree{}}, - "1619099821_add_last_synced_field.up.sql": {_1619099821_add_last_synced_fieldUpSql, map[string]*bintree{}}, - "1621933219_add_mentioned.up.sql": {_1621933219_add_mentionedUpSql, map[string]*bintree{}}, - "1622010048_add_unviewed_mentions_count.up.sql": {_1622010048_add_unviewed_mentions_countUpSql, map[string]*bintree{}}, - "1622061278_add_message_activity_center_notification_field.up.sql": {_1622061278_add_message_activity_center_notification_fieldUpSql, map[string]*bintree{}}, - "1622464518_set_synced_to_from.up.sql": {_1622464518_set_synced_to_fromUpSql, map[string]*bintree{}}, - "1622464519_add_chat_description.up.sql": {_1622464519_add_chat_descriptionUpSql, map[string]*bintree{}}, - "1622622253_add_pinned_by_to_pin_messages.up.sql": {_1622622253_add_pinned_by_to_pin_messagesUpSql, map[string]*bintree{}}, - "1623938329_add_author_activity_center_notification_field.up.sql": {_1623938329_add_author_activity_center_notification_fieldUpSql, map[string]*bintree{}}, - "1623938330_add_edit_messages.up.sql": {_1623938330_add_edit_messagesUpSql, map[string]*bintree{}}, - "1624978434_add_muted_community.up.sql": {_1624978434_add_muted_communityUpSql, map[string]*bintree{}}, - "1625018910_add_repply_message_activity_center_notification_field.up.sql": {_1625018910_add_repply_message_activity_center_notification_fieldUpSql, map[string]*bintree{}}, - "1625762506_add_deleted_messages.up.sql": {_1625762506_add_deleted_messagesUpSql, map[string]*bintree{}}, - "1627388946_add_communities_synced_at.up.sql": {_1627388946_add_communities_synced_atUpSql, map[string]*bintree{}}, - "1628280060_create-usermessages-index.sql": {_1628280060_createUsermessagesIndexSql, map[string]*bintree{}}, - "1632303896_modify_contacts_table.up.sql": {_1632303896_modify_contacts_tableUpSql, map[string]*bintree{}}, - "1633349838_add_emoji_column_in_chats.up.sql": {_1633349838_add_emoji_column_in_chatsUpSql, map[string]*bintree{}}, - "1634831235_add_highlight_column_in_chats.up.sql": {_1634831235_add_highlight_column_in_chatsUpSql, map[string]*bintree{}}, - "1634896007_add_last_updated_locally_and_removed.up.sql": {_1634896007_add_last_updated_locally_and_removedUpSql, map[string]*bintree{}}, - "1635840039_add_clock_read_at_column_in_chats.up.sql": {_1635840039_add_clock_read_at_column_in_chatsUpSql, map[string]*bintree{}}, - "1637852321_add_received_invitation_admin_column_in_chats.up.sql": {_1637852321_add_received_invitation_admin_column_in_chatsUpSql, map[string]*bintree{}}, - "1645034601_display_name.up.sql": {_1645034601_display_nameUpSql, map[string]*bintree{}}, - "1645034602_add_mutual_contact_request.up.sql": {_1645034602_add_mutual_contact_requestUpSql, map[string]*bintree{}}, - "1650373957_add_contact_request_state.up.sql": {_1650373957_add_contact_request_stateUpSql, map[string]*bintree{}}, - "1656958989_contact_verification.up.sql": {_1656958989_contact_verificationUpSql, map[string]*bintree{}}, - "1658236268_add_discord_message_authors_table.up.sql": {_1658236268_add_discord_message_authors_tableUpSql, map[string]*bintree{}}, - "1659619997_add_discord_messages_table.up.sql": {_1659619997_add_discord_messages_tableUpSql, map[string]*bintree{}}, - "1660226788_create_chat_identity_social_links.up.sql": {_1660226788_create_chat_identity_social_linksUpSql, map[string]*bintree{}}, - "1660226789_add_walletconnectsessions_table.up.sql": {_1660226789_add_walletconnectsessions_tableUpSql, map[string]*bintree{}}, - "1661242854_add_communities_requests_to_leave.up.sql": {_1661242854_add_communities_requests_to_leaveUpSql, map[string]*bintree{}}, - "1662044232_add_chat_image.up.sql": {_1662044232_add_chat_imageUpSql, map[string]*bintree{}}, - "1662106895_add_chat_first_message_timestamp.up.sql": {_1662106895_add_chat_first_message_timestampUpSql, map[string]*bintree{}}, - "1662723928_add_discord_author_image_fields.up.sql": {_1662723928_add_discord_author_image_fieldsUpSql, map[string]*bintree{}}, - "1664195977_add_deleted_for_mes.up.sql": {_1664195977_add_deleted_for_mesUpSql, map[string]*bintree{}}, - "1664367420_add_discord_attachments_table.up.sql": {_1664367420_add_discord_attachments_tableUpSql, map[string]*bintree{}}, - "1665079662_add_spectated_column_in_communities.up.sql": {_1665079662_add_spectated_column_in_communitiesUpSql, map[string]*bintree{}}, - "1665479047_add_community_id_in_notifications.up.sql": {_1665479047_add_community_id_in_notificationsUpSql, map[string]*bintree{}}, - "1665484435_add_encrypted_messages.up.sql": {_1665484435_add_encrypted_messagesUpSql, map[string]*bintree{}}, - "1665560200_add_contact_verification_individual.up.sql": {_1665560200_add_contact_verification_individualUpSql, map[string]*bintree{}}, - "1670921937_add_album_id.up.sql": {_1670921937_add_album_idUpSql, map[string]*bintree{}}, - "1673373000_add_replied.up.sql": {_1673373000_add_repliedUpSql, map[string]*bintree{}}, - "1673428910_add_image_width_height.up.sql": {_1673428910_add_image_width_heightUpSql, map[string]*bintree{}}, - "1674210659_add_contact_request_local_clock.up.sql": {_1674210659_add_contact_request_local_clockUpSql, map[string]*bintree{}}, - "1675212323_add_deleted_by.up.sql": {_1675212323_add_deleted_byUpSql, map[string]*bintree{}}, - "1675247084_add_activity_center_states.up.sql": {_1675247084_add_activity_center_statesUpSql, map[string]*bintree{}}, - "1675272329_fix_protocol_migration.up.sql": {_1675272329_fix_protocol_migrationUpSql, map[string]*bintree{}}, - "1676998418_fix_activity_center_migration.up.sql": {_1676998418_fix_activity_center_migrationUpSql, map[string]*bintree{}}, - "1677278861_add_deleted_column_to_activity_center_notifications_table.up.sql": {_1677278861_add_deleted_column_to_activity_center_notifications_tableUpSql, map[string]*bintree{}}, - "1677486338_add_community_tokens_table.up.sql": {_1677486338_add_community_tokens_tableUpSql, map[string]*bintree{}}, - "1678292329_add_collapsed_categories.up.sql": {_1678292329_add_collapsed_categoriesUpSql, map[string]*bintree{}}, - "1678800760_add_index_to_raw_messages.up.sql": {_1678800760_add_index_to_raw_messagesUpSql, map[string]*bintree{}}, - "1678877478_add_communities_requests_to_join_revealed_addresses_table.up.sql": {_1678877478_add_communities_requests_to_join_revealed_addresses_tableUpSql, map[string]*bintree{}}, - "1679326850_add_community_token_owners.up.sql": {_1679326850_add_community_token_ownersUpSql, map[string]*bintree{}}, - "1680011500_add_album_images_count.up.sql": {_1680011500_add_album_images_countUpSql, map[string]*bintree{}}, - "1680114896_add_index_on_album_id.up.sql": {_1680114896_add_index_on_album_idUpSql, map[string]*bintree{}}, - "1681655289_add_mute_till.up.sql": {_1681655289_add_mute_tillUpSql, map[string]*bintree{}}, - "1681934966_add_index_response_to.up.sql": {_1681934966_add_index_response_toUpSql, map[string]*bintree{}}, - "1682528339_add_index_user_messages_unseen.up.sql": {_1682528339_add_index_user_messages_unseenUpSql, map[string]*bintree{}}, - "1683707289_recreate_deleted_for_mes.up.sql": {_1683707289_recreate_deleted_for_mesUpSql, map[string]*bintree{}}, - "1683725607_mark_discord_messages_as_seen.up.sql": {_1683725607_mark_discord_messages_as_seenUpSql, map[string]*bintree{}}, - "1684174617_add_url_previews_to_user_messages.up.sql": {_1684174617_add_url_previews_to_user_messagesUpSql, map[string]*bintree{}}, - "1684175608_add_token_balances.up.sql": {_1684175608_add_token_balancesUpSql, map[string]*bintree{}}, - "1684979808_sync_activity_center_notifications.up.sql": {_1684979808_sync_activity_center_notificationsUpSql, map[string]*bintree{}}, - "1685383829_add_communities_mute_till.up.sql": {_1685383829_add_communities_mute_tillUpSql, map[string]*bintree{}}, - "1685964183_add_chainids_to_revealed_addresses.up.sql": {_1685964183_add_chainids_to_revealed_addressesUpSql, map[string]*bintree{}}, - "1687370421_add_communities_muted_till_new.up.sql": {_1687370421_add_communities_muted_till_newUpSql, map[string]*bintree{}}, - "1687416607_add_communities_check_channel_permission_responses_table.up.sql": {_1687416607_add_communities_check_channel_permission_responses_tableUpSql, map[string]*bintree{}}, - "1687856939_add_community_tokens_decimals.up.sql": {_1687856939_add_community_tokens_decimalsUpSql, map[string]*bintree{}}, - "1687959987_modify_community_tokens_supply_as_string.up.sql": {_1687959987_modify_community_tokens_supply_as_stringUpSql, map[string]*bintree{}}, - "1689258900_add_airdrop_address_to_revealed_addresses.up.sql": {_1689258900_add_airdrop_address_to_revealed_addressesUpSql, map[string]*bintree{}}, - "1689266326_create_communities_events_table.up.sql": {_1689266326_create_communities_events_tableUpSql, map[string]*bintree{}}, - "1689931300_add_community_tokens_deployer_and_priv_level.up.sql": {_1689931300_add_community_tokens_deployer_and_priv_levelUpSql, map[string]*bintree{}}, - "1693311881_add_unfurled_links_to_message_edits.up.sql": {_1693311881_add_unfurled_links_to_message_editsUpSql, map[string]*bintree{}}, - "1693311981_community_shard.up.sql": {_1693311981_community_shardUpSql, map[string]*bintree{}}, - "1695331492_add_status_link_previews.up.sql": {_1695331492_add_status_link_previewsUpSql, map[string]*bintree{}}, - "1695918296_add_validated_at.up.sql": {_1695918296_add_validated_atUpSql, map[string]*bintree{}}, - "1697699419_community_control_node_sync.up.sql": {_1697699419_community_control_node_syncUpSql, map[string]*bintree{}}, - "1698137561_add_profile_showcase_tables.up.sql": {_1698137561_add_profile_showcase_tablesUpSql, map[string]*bintree{}}, - "1698137562_fix_encryption_key_id.up.sql": {_1698137562_fix_encryption_key_idUpSql, map[string]*bintree{}}, - "1698414646_add_padding.up.sql": {_1698414646_add_paddingUpSql, map[string]*bintree{}}, - "1698746210_add_signature_to_revealed_addresses.up.sql": {_1698746210_add_signature_to_revealed_addressesUpSql, map[string]*bintree{}}, - "1699041816_profile_showcase_contacts.up.sql": {_1699041816_profile_showcase_contactsUpSql, map[string]*bintree{}}, - "1699554099_message_segments.up.sql": {_1699554099_message_segmentsUpSql, map[string]*bintree{}}, - "1700044186_message_segments_timestamp.up.sql": {_1700044186_message_segments_timestampUpSql, map[string]*bintree{}}, - "1700044187_curated_communities.up.sql": {_1700044187_curated_communitiesUpSql, map[string]*bintree{}}, - "1700820989_add_resend_automatically_index.up.sql": {_1700820989_add_resend_automatically_indexUpSql, map[string]*bintree{}}, - "1702996953_add_communities_shards_table.up.sql": {_1702996953_add_communities_shards_tableUpSql, map[string]*bintree{}}, - "1704489636_add_album_images.up.sql": {_1704489636_add_album_imagesUpSql, map[string]*bintree{}}, - "1704821941_add_joined_at_for_community.up.sql": {_1704821941_add_joined_at_for_communityUpSql, map[string]*bintree{}}, - "1704832511_add_last_opened_at_for_communities.up.sql": {_1704832511_add_last_opened_at_for_communitiesUpSql, map[string]*bintree{}}, - "1704832512_add_peersyncing.up.sql": {_1704832512_add_peersyncingUpSql, map[string]*bintree{}}, - "README.md": {readmeMd, map[string]*bintree{}}, - "doc.go": {docGo, map[string]*bintree{}}, + "000001_init.down.db.sql": &bintree{_000001_initDownDbSql, map[string]*bintree{}}, + "000001_init.up.db.sql": &bintree{_000001_initUpDbSql, map[string]*bintree{}}, + "000002_add_last_ens_clock_value.up.sql": &bintree{_000002_add_last_ens_clock_valueUpSql, map[string]*bintree{}}, + "1586358095_add_replace.up.sql": &bintree{_1586358095_add_replaceUpSql, map[string]*bintree{}}, + "1588665364_add_image_data.up.sql": &bintree{_1588665364_add_image_dataUpSql, map[string]*bintree{}}, + "1589365189_add_pow_target.up.sql": &bintree{_1589365189_add_pow_targetUpSql, map[string]*bintree{}}, + "1591277220_add_index_messages.up.sql": &bintree{_1591277220_add_index_messagesUpSql, map[string]*bintree{}}, + "1593087212_add_mute_chat_and_raw_message_fields.up.sql": &bintree{_1593087212_add_mute_chat_and_raw_message_fieldsUpSql, map[string]*bintree{}}, + "1595862781_add_audio_data.up.sql": &bintree{_1595862781_add_audio_dataUpSql, map[string]*bintree{}}, + "1595865249_create_emoji_reactions_table.up.sql": &bintree{_1595865249_create_emoji_reactions_tableUpSql, map[string]*bintree{}}, + "1596805115_create_group_chat_invitations_table.up.sql": &bintree{_1596805115_create_group_chat_invitations_tableUpSql, map[string]*bintree{}}, + "1597322655_add_invitation_admin_chat_field.up.sql": &bintree{_1597322655_add_invitation_admin_chat_fieldUpSql, map[string]*bintree{}}, + "1597757544_add_nickname.up.sql": &bintree{_1597757544_add_nicknameUpSql, map[string]*bintree{}}, + "1598955122_add_mentions.up.sql": &bintree{_1598955122_add_mentionsUpSql, map[string]*bintree{}}, + "1599641390_add_emoji_reactions_index.up.sql": &bintree{_1599641390_add_emoji_reactions_indexUpSql, map[string]*bintree{}}, + "1599720851_add_seen_index_remove_long_messages.up.sql": &bintree{_1599720851_add_seen_index_remove_long_messagesUpSql, map[string]*bintree{}}, + "1603198582_add_profile_chat_field.up.sql": &bintree{_1603198582_add_profile_chat_fieldUpSql, map[string]*bintree{}}, + "1603816533_add_links.up.sql": &bintree{_1603816533_add_linksUpSql, map[string]*bintree{}}, + "1603888149_create_chat_identity_last_published_table.up.sql": &bintree{_1603888149_create_chat_identity_last_published_tableUpSql, map[string]*bintree{}}, + "1605075346_add_communities.up.sql": &bintree{_1605075346_add_communitiesUpSql, map[string]*bintree{}}, + "1610117927_add_message_cache.up.sql": &bintree{_1610117927_add_message_cacheUpSql, map[string]*bintree{}}, + "1610959908_add_dont_wrap_to_raw_messages.up.sql": &bintree{_1610959908_add_dont_wrap_to_raw_messagesUpSql, map[string]*bintree{}}, + "1610960912_add_send_on_personal_topic.up.sql": &bintree{_1610960912_add_send_on_personal_topicUpSql, map[string]*bintree{}}, + "1612870480_add_datasync_id.up.sql": &bintree{_1612870480_add_datasync_idUpSql, map[string]*bintree{}}, + "1614152139_add_communities_request_to_join.up.sql": &bintree{_1614152139_add_communities_request_to_joinUpSql, map[string]*bintree{}}, + "1615374373_add_confirmations.up.sql": &bintree{_1615374373_add_confirmationsUpSql, map[string]*bintree{}}, + "1617694931_add_notification_center.up.sql": &bintree{_1617694931_add_notification_centerUpSql, map[string]*bintree{}}, + "1618923660_create_pin_messages.up.sql": &bintree{_1618923660_create_pin_messagesUpSql, map[string]*bintree{}}, + "1619094007_add_joined_chat_field.up.sql": &bintree{_1619094007_add_joined_chat_fieldUpSql, map[string]*bintree{}}, + "1619099821_add_last_synced_field.up.sql": &bintree{_1619099821_add_last_synced_fieldUpSql, map[string]*bintree{}}, + "1621933219_add_mentioned.up.sql": &bintree{_1621933219_add_mentionedUpSql, map[string]*bintree{}}, + "1622010048_add_unviewed_mentions_count.up.sql": &bintree{_1622010048_add_unviewed_mentions_countUpSql, map[string]*bintree{}}, + "1622061278_add_message_activity_center_notification_field.up.sql": &bintree{_1622061278_add_message_activity_center_notification_fieldUpSql, map[string]*bintree{}}, + "1622464518_set_synced_to_from.up.sql": &bintree{_1622464518_set_synced_to_fromUpSql, map[string]*bintree{}}, + "1622464519_add_chat_description.up.sql": &bintree{_1622464519_add_chat_descriptionUpSql, map[string]*bintree{}}, + "1622622253_add_pinned_by_to_pin_messages.up.sql": &bintree{_1622622253_add_pinned_by_to_pin_messagesUpSql, map[string]*bintree{}}, + "1623938329_add_author_activity_center_notification_field.up.sql": &bintree{_1623938329_add_author_activity_center_notification_fieldUpSql, map[string]*bintree{}}, + "1623938330_add_edit_messages.up.sql": &bintree{_1623938330_add_edit_messagesUpSql, map[string]*bintree{}}, + "1624978434_add_muted_community.up.sql": &bintree{_1624978434_add_muted_communityUpSql, map[string]*bintree{}}, + "1625018910_add_repply_message_activity_center_notification_field.up.sql": &bintree{_1625018910_add_repply_message_activity_center_notification_fieldUpSql, map[string]*bintree{}}, + "1625762506_add_deleted_messages.up.sql": &bintree{_1625762506_add_deleted_messagesUpSql, map[string]*bintree{}}, + "1627388946_add_communities_synced_at.up.sql": &bintree{_1627388946_add_communities_synced_atUpSql, map[string]*bintree{}}, + "1628280060_create-usermessages-index.sql": &bintree{_1628280060_createUsermessagesIndexSql, map[string]*bintree{}}, + "1632303896_modify_contacts_table.up.sql": &bintree{_1632303896_modify_contacts_tableUpSql, map[string]*bintree{}}, + "1633349838_add_emoji_column_in_chats.up.sql": &bintree{_1633349838_add_emoji_column_in_chatsUpSql, map[string]*bintree{}}, + "1634831235_add_highlight_column_in_chats.up.sql": &bintree{_1634831235_add_highlight_column_in_chatsUpSql, map[string]*bintree{}}, + "1634896007_add_last_updated_locally_and_removed.up.sql": &bintree{_1634896007_add_last_updated_locally_and_removedUpSql, map[string]*bintree{}}, + "1635840039_add_clock_read_at_column_in_chats.up.sql": &bintree{_1635840039_add_clock_read_at_column_in_chatsUpSql, map[string]*bintree{}}, + "1637852321_add_received_invitation_admin_column_in_chats.up.sql": &bintree{_1637852321_add_received_invitation_admin_column_in_chatsUpSql, map[string]*bintree{}}, + "1645034601_display_name.up.sql": &bintree{_1645034601_display_nameUpSql, map[string]*bintree{}}, + "1645034602_add_mutual_contact_request.up.sql": &bintree{_1645034602_add_mutual_contact_requestUpSql, map[string]*bintree{}}, + "1650373957_add_contact_request_state.up.sql": &bintree{_1650373957_add_contact_request_stateUpSql, map[string]*bintree{}}, + "1656958989_contact_verification.up.sql": &bintree{_1656958989_contact_verificationUpSql, map[string]*bintree{}}, + "1658236268_add_discord_message_authors_table.up.sql": &bintree{_1658236268_add_discord_message_authors_tableUpSql, map[string]*bintree{}}, + "1659619997_add_discord_messages_table.up.sql": &bintree{_1659619997_add_discord_messages_tableUpSql, map[string]*bintree{}}, + "1660226788_create_chat_identity_social_links.up.sql": &bintree{_1660226788_create_chat_identity_social_linksUpSql, map[string]*bintree{}}, + "1660226789_add_walletconnectsessions_table.up.sql": &bintree{_1660226789_add_walletconnectsessions_tableUpSql, map[string]*bintree{}}, + "1661242854_add_communities_requests_to_leave.up.sql": &bintree{_1661242854_add_communities_requests_to_leaveUpSql, map[string]*bintree{}}, + "1662044232_add_chat_image.up.sql": &bintree{_1662044232_add_chat_imageUpSql, map[string]*bintree{}}, + "1662106895_add_chat_first_message_timestamp.up.sql": &bintree{_1662106895_add_chat_first_message_timestampUpSql, map[string]*bintree{}}, + "1662723928_add_discord_author_image_fields.up.sql": &bintree{_1662723928_add_discord_author_image_fieldsUpSql, map[string]*bintree{}}, + "1664195977_add_deleted_for_mes.up.sql": &bintree{_1664195977_add_deleted_for_mesUpSql, map[string]*bintree{}}, + "1664367420_add_discord_attachments_table.up.sql": &bintree{_1664367420_add_discord_attachments_tableUpSql, map[string]*bintree{}}, + "1665079662_add_spectated_column_in_communities.up.sql": &bintree{_1665079662_add_spectated_column_in_communitiesUpSql, map[string]*bintree{}}, + "1665479047_add_community_id_in_notifications.up.sql": &bintree{_1665479047_add_community_id_in_notificationsUpSql, map[string]*bintree{}}, + "1665484435_add_encrypted_messages.up.sql": &bintree{_1665484435_add_encrypted_messagesUpSql, map[string]*bintree{}}, + "1665560200_add_contact_verification_individual.up.sql": &bintree{_1665560200_add_contact_verification_individualUpSql, map[string]*bintree{}}, + "1670921937_add_album_id.up.sql": &bintree{_1670921937_add_album_idUpSql, map[string]*bintree{}}, + "1673373000_add_replied.up.sql": &bintree{_1673373000_add_repliedUpSql, map[string]*bintree{}}, + "1673428910_add_image_width_height.up.sql": &bintree{_1673428910_add_image_width_heightUpSql, map[string]*bintree{}}, + "1674210659_add_contact_request_local_clock.up.sql": &bintree{_1674210659_add_contact_request_local_clockUpSql, map[string]*bintree{}}, + "1675212323_add_deleted_by.up.sql": &bintree{_1675212323_add_deleted_byUpSql, map[string]*bintree{}}, + "1675247084_add_activity_center_states.up.sql": &bintree{_1675247084_add_activity_center_statesUpSql, map[string]*bintree{}}, + "1675272329_fix_protocol_migration.up.sql": &bintree{_1675272329_fix_protocol_migrationUpSql, map[string]*bintree{}}, + "1676998418_fix_activity_center_migration.up.sql": &bintree{_1676998418_fix_activity_center_migrationUpSql, map[string]*bintree{}}, + "1677278861_add_deleted_column_to_activity_center_notifications_table.up.sql": &bintree{_1677278861_add_deleted_column_to_activity_center_notifications_tableUpSql, map[string]*bintree{}}, + "1677486338_add_community_tokens_table.up.sql": &bintree{_1677486338_add_community_tokens_tableUpSql, map[string]*bintree{}}, + "1678292329_add_collapsed_categories.up.sql": &bintree{_1678292329_add_collapsed_categoriesUpSql, map[string]*bintree{}}, + "1678800760_add_index_to_raw_messages.up.sql": &bintree{_1678800760_add_index_to_raw_messagesUpSql, map[string]*bintree{}}, + "1678877478_add_communities_requests_to_join_revealed_addresses_table.up.sql": &bintree{_1678877478_add_communities_requests_to_join_revealed_addresses_tableUpSql, map[string]*bintree{}}, + "1679326850_add_community_token_owners.up.sql": &bintree{_1679326850_add_community_token_ownersUpSql, map[string]*bintree{}}, + "1680011500_add_album_images_count.up.sql": &bintree{_1680011500_add_album_images_countUpSql, map[string]*bintree{}}, + "1680114896_add_index_on_album_id.up.sql": &bintree{_1680114896_add_index_on_album_idUpSql, map[string]*bintree{}}, + "1681655289_add_mute_till.up.sql": &bintree{_1681655289_add_mute_tillUpSql, map[string]*bintree{}}, + "1681934966_add_index_response_to.up.sql": &bintree{_1681934966_add_index_response_toUpSql, map[string]*bintree{}}, + "1682528339_add_index_user_messages_unseen.up.sql": &bintree{_1682528339_add_index_user_messages_unseenUpSql, map[string]*bintree{}}, + "1683707289_recreate_deleted_for_mes.up.sql": &bintree{_1683707289_recreate_deleted_for_mesUpSql, map[string]*bintree{}}, + "1683725607_mark_discord_messages_as_seen.up.sql": &bintree{_1683725607_mark_discord_messages_as_seenUpSql, map[string]*bintree{}}, + "1684174617_add_url_previews_to_user_messages.up.sql": &bintree{_1684174617_add_url_previews_to_user_messagesUpSql, map[string]*bintree{}}, + "1684175608_add_token_balances.up.sql": &bintree{_1684175608_add_token_balancesUpSql, map[string]*bintree{}}, + "1684979808_sync_activity_center_notifications.up.sql": &bintree{_1684979808_sync_activity_center_notificationsUpSql, map[string]*bintree{}}, + "1685383829_add_communities_mute_till.up.sql": &bintree{_1685383829_add_communities_mute_tillUpSql, map[string]*bintree{}}, + "1685964183_add_chainids_to_revealed_addresses.up.sql": &bintree{_1685964183_add_chainids_to_revealed_addressesUpSql, map[string]*bintree{}}, + "1687370421_add_communities_muted_till_new.up.sql": &bintree{_1687370421_add_communities_muted_till_newUpSql, map[string]*bintree{}}, + "1687416607_add_communities_check_channel_permission_responses_table.up.sql": &bintree{_1687416607_add_communities_check_channel_permission_responses_tableUpSql, map[string]*bintree{}}, + "1687856939_add_community_tokens_decimals.up.sql": &bintree{_1687856939_add_community_tokens_decimalsUpSql, map[string]*bintree{}}, + "1687959987_modify_community_tokens_supply_as_string.up.sql": &bintree{_1687959987_modify_community_tokens_supply_as_stringUpSql, map[string]*bintree{}}, + "1689258900_add_airdrop_address_to_revealed_addresses.up.sql": &bintree{_1689258900_add_airdrop_address_to_revealed_addressesUpSql, map[string]*bintree{}}, + "1689266326_create_communities_events_table.up.sql": &bintree{_1689266326_create_communities_events_tableUpSql, map[string]*bintree{}}, + "1689931300_add_community_tokens_deployer_and_priv_level.up.sql": &bintree{_1689931300_add_community_tokens_deployer_and_priv_levelUpSql, map[string]*bintree{}}, + "1693311881_add_unfurled_links_to_message_edits.up.sql": &bintree{_1693311881_add_unfurled_links_to_message_editsUpSql, map[string]*bintree{}}, + "1693311981_community_shard.up.sql": &bintree{_1693311981_community_shardUpSql, map[string]*bintree{}}, + "1695331492_add_status_link_previews.up.sql": &bintree{_1695331492_add_status_link_previewsUpSql, map[string]*bintree{}}, + "1695918296_add_validated_at.up.sql": &bintree{_1695918296_add_validated_atUpSql, map[string]*bintree{}}, + "1697699419_community_control_node_sync.up.sql": &bintree{_1697699419_community_control_node_syncUpSql, map[string]*bintree{}}, + "1698137561_add_profile_showcase_tables.up.sql": &bintree{_1698137561_add_profile_showcase_tablesUpSql, map[string]*bintree{}}, + "1698137562_fix_encryption_key_id.up.sql": &bintree{_1698137562_fix_encryption_key_idUpSql, map[string]*bintree{}}, + "1698414646_add_padding.up.sql": &bintree{_1698414646_add_paddingUpSql, map[string]*bintree{}}, + "1698746210_add_signature_to_revealed_addresses.up.sql": &bintree{_1698746210_add_signature_to_revealed_addressesUpSql, map[string]*bintree{}}, + "1699041816_profile_showcase_contacts.up.sql": &bintree{_1699041816_profile_showcase_contactsUpSql, map[string]*bintree{}}, + "1699554099_message_segments.up.sql": &bintree{_1699554099_message_segmentsUpSql, map[string]*bintree{}}, + "1700044186_message_segments_timestamp.up.sql": &bintree{_1700044186_message_segments_timestampUpSql, map[string]*bintree{}}, + "1700044187_curated_communities.up.sql": &bintree{_1700044187_curated_communitiesUpSql, map[string]*bintree{}}, + "1700820989_add_resend_automatically_index.up.sql": &bintree{_1700820989_add_resend_automatically_indexUpSql, map[string]*bintree{}}, + "1702996953_add_communities_shards_table.up.sql": &bintree{_1702996953_add_communities_shards_tableUpSql, map[string]*bintree{}}, + "1704489636_add_album_images.up.sql": &bintree{_1704489636_add_album_imagesUpSql, map[string]*bintree{}}, + "1704821941_add_joined_at_for_community.up.sql": &bintree{_1704821941_add_joined_at_for_communityUpSql, map[string]*bintree{}}, + "1704832511_add_last_opened_at_for_communities.up.sql": &bintree{_1704832511_add_last_opened_at_for_communitiesUpSql, map[string]*bintree{}}, + "1704832512_add_peersyncing.up.sql": &bintree{_1704832512_add_peersyncingUpSql, map[string]*bintree{}}, + "1706028033_profile_showcase_address_and_community.up.sql": &bintree{_1706028033_profile_showcase_address_and_communityUpSql, map[string]*bintree{}}, + "README.md": &bintree{readmeMd, map[string]*bintree{}}, + "doc.go": &bintree{docGo, map[string]*bintree{}}, }} // RestoreAsset restores an asset under the given directory. @@ -3005,7 +3145,7 @@ func RestoreAsset(dir, name string) error { if err != nil { return err } - err = os.WriteFile(_filePath(dir, name), data, info.Mode()) + err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) if err != nil { return err } diff --git a/protocol/migrations/sqlite/1706028033_profile_showcase_address_and_community.up.sql b/protocol/migrations/sqlite/1706028033_profile_showcase_address_and_community.up.sql new file mode 100644 index 000000000..e1ac0ca21 --- /dev/null +++ b/protocol/migrations/sqlite/1706028033_profile_showcase_address_and_community.up.sql @@ -0,0 +1,59 @@ +-- Recreate tables for storing current user profile showcase collectibles & assets preferences +DROP TABLE profile_showcase_collectibles_preferences; +CREATE TABLE profile_showcase_collectibles_preferences ( + contract_address TEXT PRIMARY KEY ON CONFLICT REPLACE, + chain_id UNSIGNED BIGINT NOT NULL, + token_id TEXT NOT NULL, + community_id TEXT DEFAULT "", + account_address TEXT DEFAULT "", + visibility INT NOT NULL DEFAULT 0, + sort_order INT DEFAULT 0 +); + +DROP TABLE profile_showcase_assets_preferences; +CREATE TABLE profile_showcase_verified_tokens_preferences ( + symbol TEXT PRIMARY KEY ON CONFLICT REPLACE, + visibility INT NOT NULL DEFAULT 0, + sort_order INT DEFAULT 0 +); +CREATE TABLE profile_showcase_unverified_tokens_preferences ( + contract_address TEXT PRIMARY KEY ON CONFLICT REPLACE, + chain_id UNSIGNED BIGINT NOT NULL, + community_id TEXT DEFAULT "", + visibility INT NOT NULL DEFAULT 0, + sort_order INT DEFAULT 0 +); + +-- Recreate tables for storing profile showcase collectibles & assets for each contact +DROP INDEX profile_showcase_collectibles_contact_id; +DROP TABLE profile_showcase_collectibles_contacts; +CREATE TABLE profile_showcase_collectibles_contacts ( + contract_address TEXT NOT NULL, + chain_id UNSIGNED BIGINT NOT NULL, + token_id TEXT NOT NULL, + community_id TEXT DEFAULT "", + account_address TEXT DEFAULT "", + sort_order INT DEFAULT 0, + contact_id TEXT NOT NULL, + PRIMARY KEY (contact_id, chain_id, contract_address, token_id) +); +CREATE INDEX profile_showcase_collectibles_contact_id ON profile_showcase_collectibles_contacts (contact_id); + +DROP INDEX profile_showcase_assets_contact_id; +DROP TABLE profile_showcase_assets_contacts; +CREATE TABLE profile_showcase_verified_tokens_contacts ( + symbol TEXT DEFAULT "", + sort_order INT DEFAULT 0, + contact_id TEXT NOT NULL, + PRIMARY KEY (contact_id, symbol) +); +CREATE TABLE profile_showcase_unverified_tokens_contacts ( + contract_address TEXT NOT NULL, + chain_id UNSIGNED BIGINT NOT NULL, + community_id TEXT DEFAULT "", + sort_order INT DEFAULT 0, + contact_id TEXT NOT NULL, + PRIMARY KEY (contact_id, contract_address) +); +CREATE INDEX profile_showcase_verified_tokens_contact_id ON profile_showcase_verified_tokens_contacts (contact_id); +CREATE INDEX profile_showcase_unverified_tokens_contact_id ON profile_showcase_unverified_tokens_contacts (contact_id); diff --git a/protocol/persistence_profile_showcase.go b/protocol/persistence_profile_showcase.go index f61c25699..2539d1a83 100644 --- a/protocol/persistence_profile_showcase.go +++ b/protocol/persistence_profile_showcase.go @@ -14,33 +14,40 @@ const ( ProfileShowcaseVisibilityEveryone ) -const upsertProfileShowcaseCommunityPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_communities_preferences(community_id, visibility, sort_order) VALUES (?, ?, ?)" -const selectProfileShowcaseCommunityPreferenceQuery = "SELECT community_id, visibility, sort_order FROM profile_showcase_communities_preferences" +const upsertProfileShowcaseCommunityPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_communities_preferences(community_id, visibility, sort_order) VALUES (?, ?, ?)" // #nosec G101 +const selectProfileShowcaseCommunityPreferenceQuery = "SELECT community_id, visibility, sort_order FROM profile_showcase_communities_preferences" // #nosec G101 -const upsertProfileShowcaseAccountPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_accounts_preferences(address, name, color_id, emoji, visibility, sort_order) VALUES (?, ?, ?, ?, ?, ?)" -const selectProfileShowcaseAccountPreferenceQuery = "SELECT address, name, color_id, emoji, visibility, sort_order FROM profile_showcase_accounts_preferences" +const upsertProfileShowcaseAccountPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_accounts_preferences(address, name, color_id, emoji, visibility, sort_order) VALUES (?, ?, ?, ?, ?, ?)" // #nosec G101 +const selectProfileShowcaseAccountPreferenceQuery = "SELECT address, name, color_id, emoji, visibility, sort_order FROM profile_showcase_accounts_preferences" // #nosec G101 -const upsertProfileShowcaseCollectiblePreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_collectibles_preferences(uid, visibility, sort_order) VALUES (?, ?, ?)" -const selectProfileShowcaseCollectiblePreferenceQuery = "SELECT uid, visibility, sort_order FROM profile_showcase_collectibles_preferences" +const upsertProfileShowcaseCollectiblePreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_collectibles_preferences(contract_address, chain_id, token_id, community_id, account_address, visibility, sort_order) VALUES (?, ?, ?, ?, ?, ?, ?)" // #nosec G101 +const selectProfileShowcaseCollectiblePreferenceQuery = "SELECT contract_address, chain_id, token_id, community_id, account_address, visibility, sort_order FROM profile_showcase_collectibles_preferences" // #nosec G101 -const upsertProfileShowcaseAssetPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_assets_preferences(symbol, visibility, sort_order) VALUES (?, ?, ?)" -const selectProfileShowcaseAssetPreferenceQuery = "SELECT symbol, visibility, sort_order FROM profile_showcase_assets_preferences" +const upsertProfileShowcaseVerifiedTokenPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_verified_tokens_preferences(symbol, visibility, sort_order) VALUES (?, ?, ?)" // #nosec G101 +const selectProfileShowcaseVerifiedTokenPreferenceQuery = "SELECT symbol, visibility, sort_order FROM profile_showcase_verified_tokens_preferences" // #nosec G101 -const upsertContactProfileShowcaseCommunityQuery = "INSERT OR REPLACE INTO profile_showcase_communities_contacts(contact_id, community_id, sort_order) VALUES (?, ?, ?)" -const selectContactProfileShowcaseCommunityQuery = "SELECT community_id, sort_order FROM profile_showcase_communities_contacts WHERE contact_id = ?" -const removeContactProfileShowcaseCommunityQuery = "DELETE FROM profile_showcase_communities_contacts WHERE contact_id = ?" +const upsertProfileShowcaseUnverifiedTokenPreferenceQuery = "INSERT OR REPLACE INTO profile_showcase_unverified_tokens_preferences(contract_address, chain_id, community_id, visibility, sort_order) VALUES (?, ?, ?, ?, ?)" // #nosec G101 +const selectProfileShowcaseUnverifiedTokenPreferenceQuery = "SELECT contract_address, chain_id, community_id, visibility, sort_order FROM profile_showcase_unverified_tokens_preferences" // #nosec G101 -const upsertContactProfileShowcaseAccountQuery = "INSERT OR REPLACE INTO profile_showcase_accounts_contacts(contact_id, address, name, color_id, emoji, sort_order) VALUES (?, ?, ?, ?, ?, ?)" -const selectContactProfileShowcaseAccountQuery = "SELECT address, name, color_id, emoji, sort_order FROM profile_showcase_accounts_contacts WHERE contact_id = ?" +const upsertContactProfileShowcaseCommunityQuery = "INSERT OR REPLACE INTO profile_showcase_communities_contacts(contact_id, community_id, sort_order) VALUES (?, ?, ?)" // #nosec G101 +const selectContactProfileShowcaseCommunityQuery = "SELECT community_id, sort_order FROM profile_showcase_communities_contacts WHERE contact_id = ?" // #nosec G101 +const removeContactProfileShowcaseCommunityQuery = "DELETE FROM profile_showcase_communities_contacts WHERE contact_id = ?" // #nosec G101 + +const upsertContactProfileShowcaseAccountQuery = "INSERT OR REPLACE INTO profile_showcase_accounts_contacts(contact_id, address, name, color_id, emoji, sort_order) VALUES (?, ?, ?, ?, ?, ?)" // #nosec G101 +const selectContactProfileShowcaseAccountQuery = "SELECT address, name, color_id, emoji, sort_order FROM profile_showcase_accounts_contacts WHERE contact_id = ?" // #nosec G101 const removeContactProfileShowcaseAccountQuery = "DELETE FROM profile_showcase_accounts_contacts WHERE contact_id = ?" -const upsertContactProfileShowcaseCollectibleQuery = "INSERT OR REPLACE INTO profile_showcase_collectibles_contacts(contact_id, uid, sort_order) VALUES (?, ?, ?)" -const selectContactProfileShowcaseCollectibleQuery = "SELECT uid, sort_order FROM profile_showcase_collectibles_contacts WHERE contact_id = ?" -const removeContactProfileShowcaseCollectibleQuery = "DELETE FROM profile_showcase_collectibles_contacts WHERE contact_id = ?" +const upsertContactProfileShowcaseCollectibleQuery = "INSERT OR REPLACE INTO profile_showcase_collectibles_contacts(contact_id, contract_address, chain_id, token_id, community_id, account_address, sort_order) VALUES (?, ?, ?, ?, ?, ?, ?)" // #nosec G101 +const selectContactProfileShowcaseCollectibleQuery = "SELECT contract_address, chain_id, token_id, community_id, account_address, sort_order FROM profile_showcase_collectibles_contacts WHERE contact_id = ?" // #nosec G101 +const removeContactProfileShowcaseCollectibleQuery = "DELETE FROM profile_showcase_collectibles_contacts WHERE contact_id = ?" // #nosec G101 -const upsertContactProfileShowcaseAssetQuery = "INSERT OR REPLACE INTO profile_showcase_assets_contacts(contact_id, symbol, sort_order) VALUES (?, ?, ?)" -const selectContactProfileShowcaseAssetQuery = "SELECT symbol, sort_order FROM profile_showcase_assets_contacts WHERE contact_id = ?" -const removeContactProfileShowcaseAssetQuery = "DELETE FROM profile_showcase_assets_contacts WHERE contact_id = ?" +const upsertContactProfileShowcaseVerifiedTokenQuery = "INSERT OR REPLACE INTO profile_showcase_verified_tokens_contacts(contact_id, symbol, sort_order) VALUES (?, ?, ?)" // #nosec G101 +const selectContactProfileShowcaseVerifiedTokenQuery = "SELECT symbol, sort_order FROM profile_showcase_verified_tokens_contacts WHERE contact_id = ?" // #nosec G101 +const removeContactProfileShowcaseVerifiedTokenQuery = "DELETE FROM profile_showcase_verified_tokens_contacts WHERE contact_id = ?" // #nosec G101 + +const upsertContactProfileShowcaseUnverifiedTokenQuery = "INSERT OR REPLACE INTO profile_showcase_unverified_tokens_contacts(contact_id, contract_address, chain_id, community_id, sort_order) VALUES (?, ?, ?, ?, ?)" // #nosec G101 +const selectContactProfileShowcaseUnverifiedTokenQuery = "SELECT contract_address, chain_id, community_id, sort_order FROM profile_showcase_unverified_tokens_contacts WHERE contact_id = ?" // #nosec G101 +const removeContactProfileShowcaseUnverifiedTokenQuery = "DELETE FROM profile_showcase_unverified_tokens_contacts WHERE contact_id = ?" // #nosec G101 type ProfileShowcaseCommunityPreference struct { CommunityID string `json:"communityId"` @@ -58,22 +65,35 @@ type ProfileShowcaseAccountPreference struct { } type ProfileShowcaseCollectiblePreference struct { - UID string `json:"uid"` + ContractAddress string `json:"contractAddress"` + ChainID uint64 `json:"chainId"` + TokenID string `json:"tokenId"` + CommunityID string `json:"communityId"` + AccountAddress string `json:"accountAddress"` ShowcaseVisibility ProfileShowcaseVisibility `json:"showcaseVisibility"` Order int `json:"order"` } -type ProfileShowcaseAssetPreference struct { +type ProfileShowcaseVerifiedTokenPreference struct { Symbol string `json:"symbol"` ShowcaseVisibility ProfileShowcaseVisibility `json:"showcaseVisibility"` Order int `json:"order"` } +type ProfileShowcaseUnverifiedTokenPreference struct { + ContractAddress string `json:"contractAddress"` + ChainID uint64 `json:"chainId"` + CommunityID string `json:"communityId"` + ShowcaseVisibility ProfileShowcaseVisibility `json:"showcaseVisibility"` + Order int `json:"order"` +} + type ProfileShowcasePreferences struct { - Communities []*ProfileShowcaseCommunityPreference `json:"communities"` - Accounts []*ProfileShowcaseAccountPreference `json:"accounts"` - Collectibles []*ProfileShowcaseCollectiblePreference `json:"collectibles"` - Assets []*ProfileShowcaseAssetPreference `json:"assets"` + Communities []*ProfileShowcaseCommunityPreference `json:"communities"` + Accounts []*ProfileShowcaseAccountPreference `json:"accounts"` + Collectibles []*ProfileShowcaseCollectiblePreference `json:"collectibles"` + VerifiedTokens []*ProfileShowcaseVerifiedTokenPreference `json:"verifiedTokens"` + UnverifiedTokens []*ProfileShowcaseUnverifiedTokenPreference `json:"unverifiedTokens"` } type ProfileShowcaseCommunity struct { @@ -90,21 +110,33 @@ type ProfileShowcaseAccount struct { } type ProfileShowcaseCollectible struct { - UID string `json:"uid"` - Order int `json:"order"` + ContractAddress string `json:"contractAddress"` + ChainID uint64 `json:"chainId"` + TokenID string `json:"tokenId"` + CommunityID string `json:"communityId"` + AccountAddress string `json:"accountAddress"` + Order int `json:"order"` } -type ProfileShowcaseAsset struct { +type ProfileShowcaseVerifiedToken struct { Symbol string `json:"symbol"` Order int `json:"order"` } +type ProfileShowcaseUnverifiedToken struct { + ContractAddress string `json:"contractAddress"` + ChainID uint64 `json:"chainId"` + CommunityID string `json:"communityId"` + Order int `json:"order"` +} + type ProfileShowcase struct { - ContactID string `json:"contactId"` - Communities []*ProfileShowcaseCommunity `json:"communities"` - Accounts []*ProfileShowcaseAccount `json:"accounts"` - Collectibles []*ProfileShowcaseCollectible `json:"collectibles"` - Assets []*ProfileShowcaseAsset `json:"assets"` + ContactID string `json:"contactId"` + Communities []*ProfileShowcaseCommunity `json:"communities"` + Accounts []*ProfileShowcaseAccount `json:"accounts"` + Collectibles []*ProfileShowcaseCollectible `json:"collectibles"` + VerifiedTokens []*ProfileShowcaseVerifiedToken `json:"verifiedTokens"` + UnverifiedTokens []*ProfileShowcaseUnverifiedToken `json:"unverifiedTokens"` } // Queries for showcase preferences @@ -188,7 +220,11 @@ func (db sqlitePersistence) getProfileShowcaseAccountsPreferences(tx *sql.Tx) ([ func (db sqlitePersistence) saveProfileShowcaseCollectiblePreference(tx *sql.Tx, collectible *ProfileShowcaseCollectiblePreference) error { _, err := tx.Exec(upsertProfileShowcaseCollectiblePreferenceQuery, - collectible.UID, + collectible.ContractAddress, + collectible.ChainID, + collectible.TokenID, + collectible.CommunityID, + collectible.AccountAddress, collectible.ShowcaseVisibility, collectible.Order, ) @@ -208,7 +244,11 @@ func (db sqlitePersistence) getProfileShowcaseCollectiblesPreferences(tx *sql.Tx collectible := &ProfileShowcaseCollectiblePreference{} err := rows.Scan( - &collectible.UID, + &collectible.ContractAddress, + &collectible.ChainID, + &collectible.TokenID, + &collectible.CommunityID, + &collectible.AccountAddress, &collectible.ShowcaseVisibility, &collectible.Order, ) @@ -222,40 +262,80 @@ func (db sqlitePersistence) getProfileShowcaseCollectiblesPreferences(tx *sql.Tx return collectibles, nil } -func (db sqlitePersistence) saveProfileShowcaseAssetPreference(tx *sql.Tx, asset *ProfileShowcaseAssetPreference) error { - _, err := tx.Exec(upsertProfileShowcaseAssetPreferenceQuery, - asset.Symbol, - asset.ShowcaseVisibility, - asset.Order, +func (db sqlitePersistence) saveProfileShowcaseVerifiedTokenPreference(tx *sql.Tx, token *ProfileShowcaseVerifiedTokenPreference) error { + _, err := tx.Exec(upsertProfileShowcaseVerifiedTokenPreferenceQuery, + token.Symbol, + token.ShowcaseVisibility, + token.Order, ) return err } -func (db sqlitePersistence) getProfileShowcaseAssetsPreferences(tx *sql.Tx) ([]*ProfileShowcaseAssetPreference, error) { - rows, err := tx.Query(selectProfileShowcaseAssetPreferenceQuery) +func (db sqlitePersistence) saveProfileShowcaseUnverifiedTokenPreference(tx *sql.Tx, token *ProfileShowcaseUnverifiedTokenPreference) error { + _, err := tx.Exec(upsertProfileShowcaseUnverifiedTokenPreferenceQuery, + token.ContractAddress, + token.ChainID, + token.CommunityID, + token.ShowcaseVisibility, + token.Order, + ) + + return err +} + +func (db sqlitePersistence) getProfileShowcaseVerifiedTokensPreferences(tx *sql.Tx) ([]*ProfileShowcaseVerifiedTokenPreference, error) { + rows, err := tx.Query(selectProfileShowcaseVerifiedTokenPreferenceQuery) if err != nil { return nil, err } - assets := []*ProfileShowcaseAssetPreference{} + tokens := []*ProfileShowcaseVerifiedTokenPreference{} for rows.Next() { - asset := &ProfileShowcaseAssetPreference{} + token := &ProfileShowcaseVerifiedTokenPreference{} err := rows.Scan( - &asset.Symbol, - &asset.ShowcaseVisibility, - &asset.Order, + &token.Symbol, + &token.ShowcaseVisibility, + &token.Order, ) if err != nil { return nil, err } - assets = append(assets, asset) + tokens = append(tokens, token) } - return assets, nil + return tokens, nil +} + +func (db sqlitePersistence) getProfileShowcaseUnverifiedTokensPreferences(tx *sql.Tx) ([]*ProfileShowcaseUnverifiedTokenPreference, error) { + rows, err := tx.Query(selectProfileShowcaseUnverifiedTokenPreferenceQuery) + if err != nil { + return nil, err + } + + tokens := []*ProfileShowcaseUnverifiedTokenPreference{} + + for rows.Next() { + token := &ProfileShowcaseUnverifiedTokenPreference{} + + err := rows.Scan( + &token.ContractAddress, + &token.ChainID, + &token.CommunityID, + &token.ShowcaseVisibility, + &token.Order, + ) + + if err != nil { + return nil, err + } + + tokens = append(tokens, token) + } + return tokens, nil } // Queries for contacts showcase @@ -338,11 +418,15 @@ func (db sqlitePersistence) clearProfileShowcaseAccountsContact(tx *sql.Tx, cont return err } -func (db sqlitePersistence) saveProfileShowcaseCollectibleContact(tx *sql.Tx, contactID string, community *ProfileShowcaseCollectible) error { +func (db sqlitePersistence) saveProfileShowcaseCollectibleContact(tx *sql.Tx, contactID string, collectible *ProfileShowcaseCollectible) error { _, err := tx.Exec(upsertContactProfileShowcaseCollectibleQuery, contactID, - community.UID, - community.Order, + collectible.ContractAddress, + collectible.ChainID, + collectible.TokenID, + collectible.CommunityID, + collectible.AccountAddress, + collectible.Order, ) return err @@ -359,7 +443,13 @@ func (db sqlitePersistence) getProfileShowcaseCollectiblesContact(tx *sql.Tx, co for rows.Next() { collectible := &ProfileShowcaseCollectible{} - err := rows.Scan(&collectible.UID, &collectible.Order) + err := rows.Scan( + &collectible.ContractAddress, + &collectible.ChainID, + &collectible.TokenID, + &collectible.CommunityID, + &collectible.AccountAddress, + &collectible.Order) if err != nil { return nil, err } @@ -374,39 +464,83 @@ func (db sqlitePersistence) clearProfileShowcaseCollectiblesContact(tx *sql.Tx, return err } -func (db sqlitePersistence) saveProfileShowcaseAssetContact(tx *sql.Tx, contactID string, asset *ProfileShowcaseAsset) error { - _, err := tx.Exec(upsertContactProfileShowcaseAssetQuery, +func (db sqlitePersistence) saveProfileShowcaseVerifiedTokenContact(tx *sql.Tx, contactID string, token *ProfileShowcaseVerifiedToken) error { + _, err := tx.Exec(upsertContactProfileShowcaseVerifiedTokenQuery, contactID, - asset.Symbol, - asset.Order, + token.Symbol, + token.Order, ) return err } -func (db sqlitePersistence) getProfileShowcaseAssetsContact(tx *sql.Tx, contactID string) ([]*ProfileShowcaseAsset, error) { - rows, err := tx.Query(selectContactProfileShowcaseAssetQuery, contactID) +func (db sqlitePersistence) saveProfileShowcaseUnverifiedTokenContact(tx *sql.Tx, contactID string, token *ProfileShowcaseUnverifiedToken) error { + _, err := tx.Exec(upsertContactProfileShowcaseUnverifiedTokenQuery, + contactID, + token.ContractAddress, + token.ChainID, + token.CommunityID, + token.Order, + ) + + return err +} + +func (db sqlitePersistence) getProfileShowcaseVerifiedTokensContact(tx *sql.Tx, contactID string) ([]*ProfileShowcaseVerifiedToken, error) { + rows, err := tx.Query(selectContactProfileShowcaseVerifiedTokenQuery, contactID) if err != nil { return nil, err } - assets := []*ProfileShowcaseAsset{} + tokens := []*ProfileShowcaseVerifiedToken{} for rows.Next() { - asset := &ProfileShowcaseAsset{} + token := &ProfileShowcaseVerifiedToken{} - err := rows.Scan(&asset.Symbol, &asset.Order) + err := rows.Scan( + &token.Symbol, + &token.Order) if err != nil { return nil, err } - assets = append(assets, asset) + tokens = append(tokens, token) } - return assets, nil + return tokens, nil } -func (db sqlitePersistence) clearProfileShowcaseAssetsContact(tx *sql.Tx, contactID string) error { - _, err := tx.Exec(removeContactProfileShowcaseAssetQuery, contactID) +func (db sqlitePersistence) getProfileShowcaseUnverifiedTokensContact(tx *sql.Tx, contactID string) ([]*ProfileShowcaseUnverifiedToken, error) { + rows, err := tx.Query(selectContactProfileShowcaseUnverifiedTokenQuery, contactID) + if err != nil { + return nil, err + } + + tokens := []*ProfileShowcaseUnverifiedToken{} + + for rows.Next() { + token := &ProfileShowcaseUnverifiedToken{} + + err := rows.Scan( + &token.ContractAddress, + &token.ChainID, + &token.CommunityID, + &token.Order) + if err != nil { + return nil, err + } + + tokens = append(tokens, token) + } + return tokens, nil +} + +func (db sqlitePersistence) clearProfileShowcaseVerifiedTokensContact(tx *sql.Tx, contactID string) error { + _, err := tx.Exec(removeContactProfileShowcaseVerifiedTokenQuery, contactID) + return err +} + +func (db sqlitePersistence) clearProfileShowcaseUnverifiedTokensContact(tx *sql.Tx, contactID string) error { + _, err := tx.Exec(removeContactProfileShowcaseUnverifiedTokenQuery, contactID) return err } @@ -446,8 +580,15 @@ func (db sqlitePersistence) SaveProfileShowcasePreferences(preferences *ProfileS } } - for _, asset := range preferences.Assets { - err = db.saveProfileShowcaseAssetPreference(tx, asset) + for _, token := range preferences.VerifiedTokens { + err = db.saveProfileShowcaseVerifiedTokenPreference(tx, token) + if err != nil { + return err + } + } + + for _, token := range preferences.UnverifiedTokens { + err = db.saveProfileShowcaseUnverifiedTokenPreference(tx, token) if err != nil { return err } @@ -485,16 +626,22 @@ func (db sqlitePersistence) GetProfileShowcasePreferences() (*ProfileShowcasePre return nil, err } - assets, err := db.getProfileShowcaseAssetsPreferences(tx) + verifiedTokens, err := db.getProfileShowcaseVerifiedTokensPreferences(tx) + if err != nil { + return nil, err + } + + unverifiedTokens, err := db.getProfileShowcaseUnverifiedTokensPreferences(tx) if err != nil { return nil, err } return &ProfileShowcasePreferences{ - Communities: communities, - Accounts: accounts, - Collectibles: collectibles, - Assets: assets, + Communities: communities, + Accounts: accounts, + Collectibles: collectibles, + VerifiedTokens: verifiedTokens, + UnverifiedTokens: unverifiedTokens, }, nil } @@ -533,8 +680,15 @@ func (db sqlitePersistence) SaveProfileShowcaseForContact(showcase *ProfileShowc } } - for _, asset := range showcase.Assets { - err = db.saveProfileShowcaseAssetContact(tx, showcase.ContactID, asset) + for _, token := range showcase.VerifiedTokens { + err = db.saveProfileShowcaseVerifiedTokenContact(tx, showcase.ContactID, token) + if err != nil { + return err + } + } + + for _, token := range showcase.UnverifiedTokens { + err = db.saveProfileShowcaseUnverifiedTokenContact(tx, showcase.ContactID, token) if err != nil { return err } @@ -572,17 +726,23 @@ func (db sqlitePersistence) GetProfileShowcaseForContact(contactID string) (*Pro return nil, err } - assets, err := db.getProfileShowcaseAssetsContact(tx, contactID) + verifiedTokens, err := db.getProfileShowcaseVerifiedTokensContact(tx, contactID) + if err != nil { + return nil, err + } + + unverifiedTokens, err := db.getProfileShowcaseUnverifiedTokensContact(tx, contactID) if err != nil { return nil, err } return &ProfileShowcase{ - ContactID: contactID, - Communities: communities, - Accounts: accounts, - Collectibles: collectibles, - Assets: assets, + ContactID: contactID, + Communities: communities, + Accounts: accounts, + Collectibles: collectibles, + VerifiedTokens: verifiedTokens, + UnverifiedTokens: unverifiedTokens, }, nil } @@ -615,7 +775,12 @@ func (db sqlitePersistence) ClearProfileShowcaseForContact(contactID string) err return err } - err = db.clearProfileShowcaseAssetsContact(tx, contactID) + err = db.clearProfileShowcaseVerifiedTokensContact(tx, contactID) + if err != nil { + return err + } + + err = db.clearProfileShowcaseUnverifiedTokensContact(tx, contactID) if err != nil { return err } diff --git a/protocol/persistence_profile_showcase_test.go b/protocol/persistence_profile_showcase_test.go index d241dad24..89727d58a 100644 --- a/protocol/persistence_profile_showcase_test.go +++ b/protocol/persistence_profile_showcase_test.go @@ -45,23 +45,50 @@ func (s *TestProfileShowcasePersistence) TestProfileShowcasePreferences() { Order: 1, }, }, - Assets: []*ProfileShowcaseAssetPreference{ - &ProfileShowcaseAssetPreference{ - Symbol: "ETH", + Collectibles: []*ProfileShowcaseCollectiblePreference{ + &ProfileShowcaseCollectiblePreference{ + ContractAddress: "0x12378534257568678487683576", + ChainID: 3, + TokenID: "0x12321389592999f903", + CommunityID: "0x01312357798976535", + AccountAddress: "0x32433445133424", ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, Order: 0, }, - &ProfileShowcaseAssetPreference{ + }, + VerifiedTokens: []*ProfileShowcaseVerifiedTokenPreference{ + &ProfileShowcaseVerifiedTokenPreference{ + Symbol: "ETH", + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 1, + }, + &ProfileShowcaseVerifiedTokenPreference{ Symbol: "DAI", ShowcaseVisibility: ProfileShowcaseVisibilityIDVerifiedContacts, Order: 2, }, - &ProfileShowcaseAssetPreference{ + &ProfileShowcaseVerifiedTokenPreference{ Symbol: "SNT", ShowcaseVisibility: ProfileShowcaseVisibilityNoOne, Order: 3, }, }, + UnverifiedTokens: []*ProfileShowcaseUnverifiedTokenPreference{ + &ProfileShowcaseUnverifiedTokenPreference{ + ContractAddress: "0x454525452023452", + ChainID: 1, + CommunityID: "0x32433445133424", + ShowcaseVisibility: ProfileShowcaseVisibilityEveryone, + Order: 0, + }, + &ProfileShowcaseUnverifiedTokenPreference{ + ContractAddress: "0x12312323323233", + ChainID: 2, + CommunityID: "", + ShowcaseVisibility: ProfileShowcaseVisibilityContacts, + Order: 1, + }, + }, } err = persistence.SaveProfileShowcasePreferences(preferences) @@ -70,40 +97,30 @@ func (s *TestProfileShowcasePersistence) TestProfileShowcasePreferences() { preferencesBack, err := persistence.GetProfileShowcasePreferences() s.Require().NoError(err) - s.Require().Len(preferencesBack.Communities, 1) - s.Require().Equal(preferences.Communities[0].CommunityID, preferencesBack.Communities[0].CommunityID) - s.Require().Equal(preferences.Communities[0].ShowcaseVisibility, preferencesBack.Communities[0].ShowcaseVisibility) - s.Require().Equal(preferences.Communities[0].Order, preferencesBack.Communities[0].Order) + s.Require().Equal(len(preferencesBack.Communities), len(preferences.Communities)) + for i := 0; i < len(preferences.Communities); i++ { + s.Require().Equal(*preferences.Communities[i], *preferencesBack.Communities[i]) + } - s.Require().Len(preferencesBack.Accounts, 2) - s.Require().Equal(preferences.Accounts[0].Address, preferencesBack.Accounts[0].Address) - s.Require().Equal(preferences.Accounts[0].Name, preferencesBack.Accounts[0].Name) - s.Require().Equal(preferences.Accounts[0].ColorID, preferencesBack.Accounts[0].ColorID) - s.Require().Equal(preferences.Accounts[0].Emoji, preferencesBack.Accounts[0].Emoji) - s.Require().Equal(preferences.Accounts[0].ShowcaseVisibility, preferencesBack.Accounts[0].ShowcaseVisibility) - s.Require().Equal(preferences.Accounts[0].Order, preferencesBack.Accounts[0].Order) + s.Require().Equal(len(preferencesBack.Accounts), len(preferences.Accounts)) + for i := 0; i < len(preferences.Accounts); i++ { + s.Require().Equal(*preferences.Accounts[i], *preferencesBack.Accounts[i]) + } - s.Require().Equal(preferences.Accounts[1].Address, preferencesBack.Accounts[1].Address) - s.Require().Equal(preferences.Accounts[1].Name, preferencesBack.Accounts[1].Name) - s.Require().Equal(preferences.Accounts[1].ColorID, preferencesBack.Accounts[1].ColorID) - s.Require().Equal(preferences.Accounts[1].Emoji, preferencesBack.Accounts[1].Emoji) - s.Require().Equal(preferences.Accounts[1].ShowcaseVisibility, preferencesBack.Accounts[1].ShowcaseVisibility) - s.Require().Equal(preferences.Accounts[1].Order, preferencesBack.Accounts[1].Order) + s.Require().Equal(len(preferencesBack.Collectibles), len(preferences.Collectibles)) + for i := 0; i < len(preferences.Collectibles); i++ { + s.Require().Equal(*preferences.Collectibles[i], *preferencesBack.Collectibles[i]) + } - s.Require().Len(preferencesBack.Collectibles, 0) + s.Require().Equal(len(preferencesBack.VerifiedTokens), len(preferences.VerifiedTokens)) + for i := 0; i < len(preferences.VerifiedTokens); i++ { + s.Require().Equal(*preferences.VerifiedTokens[i], *preferencesBack.VerifiedTokens[i]) + } - s.Require().Len(preferencesBack.Assets, 3) - s.Require().Equal(preferences.Assets[0].Symbol, preferencesBack.Assets[0].Symbol) - s.Require().Equal(preferences.Assets[0].ShowcaseVisibility, preferencesBack.Assets[0].ShowcaseVisibility) - s.Require().Equal(preferences.Assets[0].Order, preferencesBack.Assets[0].Order) - - s.Require().Equal(preferences.Assets[1].Symbol, preferencesBack.Assets[1].Symbol) - s.Require().Equal(preferences.Assets[1].ShowcaseVisibility, preferencesBack.Assets[1].ShowcaseVisibility) - s.Require().Equal(preferences.Assets[1].Order, preferencesBack.Assets[1].Order) - - s.Require().Equal(preferences.Assets[2].Symbol, preferencesBack.Assets[2].Symbol) - s.Require().Equal(preferences.Assets[2].ShowcaseVisibility, preferencesBack.Assets[2].ShowcaseVisibility) - s.Require().Equal(preferences.Assets[2].Order, preferencesBack.Assets[2].Order) + s.Require().Equal(len(preferencesBack.UnverifiedTokens), len(preferences.UnverifiedTokens)) + for i := 0; i < len(preferences.UnverifiedTokens); i++ { + s.Require().Equal(*preferences.UnverifiedTokens[i], *preferencesBack.UnverifiedTokens[i]) + } } func (s *TestProfileShowcasePersistence) TestProfileShowcaseContacts() { @@ -123,11 +140,58 @@ func (s *TestProfileShowcasePersistence) TestProfileShowcaseContacts() { Order: 7, }, }, - Assets: []*ProfileShowcaseAsset{ - &ProfileShowcaseAsset{ + Accounts: []*ProfileShowcaseAccount{ + &ProfileShowcaseAccount{ + Address: "0x32433445133424", + Name: "Status Account", + ColorID: "blue", + Emoji: "-_-", + Order: 0, + }, + &ProfileShowcaseAccount{ + Address: "0x3845354643324", + Name: "Money Box", + ColorID: "red", + Emoji: ":o)", + Order: 1, + }, + }, + Collectibles: []*ProfileShowcaseCollectible{ + &ProfileShowcaseCollectible{ + ContractAddress: "0x12378534257568678487683576", + ChainID: 2, + TokenID: "0x12321389592999f903", + CommunityID: "0x01312357798976535", + Order: 0, + }, + }, + VerifiedTokens: []*ProfileShowcaseVerifiedToken{ + &ProfileShowcaseVerifiedToken{ Symbol: "ETH", Order: 1, }, + &ProfileShowcaseVerifiedToken{ + Symbol: "DAI", + Order: 2, + }, + &ProfileShowcaseVerifiedToken{ + Symbol: "SNT", + Order: 3, + }, + }, + UnverifiedTokens: []*ProfileShowcaseUnverifiedToken{ + &ProfileShowcaseUnverifiedToken{ + ContractAddress: "0x454525452023452", + ChainID: 1, + CommunityID: "", + Order: 0, + }, + &ProfileShowcaseUnverifiedToken{ + ContractAddress: "0x12312323323233", + ChainID: 2, + CommunityID: "0x32433445133424", + Order: 1, + }, }, } err = persistence.SaveProfileShowcaseForContact(showcase1) @@ -147,8 +211,11 @@ func (s *TestProfileShowcasePersistence) TestProfileShowcaseContacts() { }, Collectibles: []*ProfileShowcaseCollectible{ &ProfileShowcaseCollectible{ - UID: "d378662f-3d71-44e0-81ee-ff7f1778c13a", - Order: 1, + ContractAddress: "0x12378534257568678487683576", + ChainID: 2, + TokenID: "0x12321389592999f903", + CommunityID: "0x01312357798976535", + Order: 1, }, }, } @@ -159,12 +226,25 @@ func (s *TestProfileShowcasePersistence) TestProfileShowcaseContacts() { s.Require().NoError(err) s.Require().Equal(len(showcase1.Communities), len(showcase1Back.Communities)) - s.Require().Equal(*showcase1.Communities[0], *showcase1Back.Communities[0]) - s.Require().Equal(*showcase1.Communities[1], *showcase1Back.Communities[1]) - s.Require().Equal(len(showcase1.Assets), len(showcase1Back.Assets)) - s.Require().Equal(*showcase1.Assets[0], *showcase1Back.Assets[0]) - s.Require().Equal(0, len(showcase1Back.Accounts)) - s.Require().Equal(0, len(showcase1Back.Collectibles)) + for i := 0; i < len(showcase1.Communities); i++ { + s.Require().Equal(*showcase1.Communities[i], *showcase1Back.Communities[i]) + } + s.Require().Equal(len(showcase1.Accounts), len(showcase1Back.Accounts)) + for i := 0; i < len(showcase1.Accounts); i++ { + s.Require().Equal(*showcase1.Accounts[i], *showcase1Back.Accounts[i]) + } + s.Require().Equal(len(showcase1.Collectibles), len(showcase1Back.Collectibles)) + for i := 0; i < len(showcase1.Collectibles); i++ { + s.Require().Equal(*showcase1.Collectibles[i], *showcase1Back.Collectibles[i]) + } + s.Require().Equal(len(showcase1.VerifiedTokens), len(showcase1Back.VerifiedTokens)) + for i := 0; i < len(showcase1.VerifiedTokens); i++ { + s.Require().Equal(*showcase1.VerifiedTokens[i], *showcase1Back.VerifiedTokens[i]) + } + s.Require().Equal(len(showcase1.UnverifiedTokens), len(showcase1Back.UnverifiedTokens)) + for i := 0; i < len(showcase1.UnverifiedTokens); i++ { + s.Require().Equal(*showcase1.UnverifiedTokens[i], *showcase1Back.UnverifiedTokens[i]) + } showcase2Back, err := persistence.GetProfileShowcaseForContact("contact_2") s.Require().NoError(err) @@ -175,5 +255,6 @@ func (s *TestProfileShowcasePersistence) TestProfileShowcaseContacts() { s.Require().Equal(len(showcase2.Collectibles), len(showcase2Back.Collectibles)) s.Require().Equal(*showcase2.Collectibles[0], *showcase2Back.Collectibles[0]) s.Require().Equal(0, len(showcase2Back.Accounts)) - s.Require().Equal(0, len(showcase2Back.Assets)) + s.Require().Equal(0, len(showcase2Back.VerifiedTokens)) + s.Require().Equal(0, len(showcase2Back.UnverifiedTokens)) } diff --git a/protocol/protobuf/anon_metrics.pb.go b/protocol/protobuf/anon_metrics.pb.go index 1fd708d64..799226b2f 100644 --- a/protocol/protobuf/anon_metrics.pb.go +++ b/protocol/protobuf/anon_metrics.pb.go @@ -1,32 +1,28 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: anon_metrics.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fmt "fmt" + proto "github.com/golang/protobuf/proto" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // AnonymousMetric represents a single metric data point type AnonymousMetric struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // id is the unique id of the metric message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // event is the app metric event type @@ -40,243 +36,153 @@ type AnonymousMetric struct { // session_id is the id of the session the metric was recorded in SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // created_at is the datetime at which the metric was stored in the local db - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AnonymousMetric) Reset() { - *x = AnonymousMetric{} - if protoimpl.UnsafeEnabled { - mi := &file_anon_metrics_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnonymousMetric) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnonymousMetric) ProtoMessage() {} - -func (x *AnonymousMetric) ProtoReflect() protoreflect.Message { - mi := &file_anon_metrics_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AnonymousMetric.ProtoReflect.Descriptor instead. +func (m *AnonymousMetric) Reset() { *m = AnonymousMetric{} } +func (m *AnonymousMetric) String() string { return proto.CompactTextString(m) } +func (*AnonymousMetric) ProtoMessage() {} func (*AnonymousMetric) Descriptor() ([]byte, []int) { - return file_anon_metrics_proto_rawDescGZIP(), []int{0} + return fileDescriptor_4be044a92fa0408c, []int{0} } -func (x *AnonymousMetric) GetId() string { - if x != nil { - return x.Id +func (m *AnonymousMetric) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnonymousMetric.Unmarshal(m, b) +} +func (m *AnonymousMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnonymousMetric.Marshal(b, m, deterministic) +} +func (m *AnonymousMetric) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnonymousMetric.Merge(m, src) +} +func (m *AnonymousMetric) XXX_Size() int { + return xxx_messageInfo_AnonymousMetric.Size(m) +} +func (m *AnonymousMetric) XXX_DiscardUnknown() { + xxx_messageInfo_AnonymousMetric.DiscardUnknown(m) +} + +var xxx_messageInfo_AnonymousMetric proto.InternalMessageInfo + +func (m *AnonymousMetric) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AnonymousMetric) GetEvent() string { - if x != nil { - return x.Event +func (m *AnonymousMetric) GetEvent() string { + if m != nil { + return m.Event } return "" } -func (x *AnonymousMetric) GetValue() []byte { - if x != nil { - return x.Value +func (m *AnonymousMetric) GetValue() []byte { + if m != nil { + return m.Value } return nil } -func (x *AnonymousMetric) GetAppVersion() string { - if x != nil { - return x.AppVersion +func (m *AnonymousMetric) GetAppVersion() string { + if m != nil { + return m.AppVersion } return "" } -func (x *AnonymousMetric) GetOs() string { - if x != nil { - return x.Os +func (m *AnonymousMetric) GetOs() string { + if m != nil { + return m.Os } return "" } -func (x *AnonymousMetric) GetSessionId() string { - if x != nil { - return x.SessionId +func (m *AnonymousMetric) GetSessionId() string { + if m != nil { + return m.SessionId } return "" } -func (x *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt +func (m *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp { + if m != nil { + return m.CreatedAt } return nil } // AnonymousMetricBatch represents a batch of AnonymousMetrics allowing broadcast of AnonymousMetrics with fewer messages type AnonymousMetricBatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // metrics is an array of AnonymousMetric metrics - Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` + Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AnonymousMetricBatch) Reset() { - *x = AnonymousMetricBatch{} - if protoimpl.UnsafeEnabled { - mi := &file_anon_metrics_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnonymousMetricBatch) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnonymousMetricBatch) ProtoMessage() {} - -func (x *AnonymousMetricBatch) ProtoReflect() protoreflect.Message { - mi := &file_anon_metrics_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AnonymousMetricBatch.ProtoReflect.Descriptor instead. +func (m *AnonymousMetricBatch) Reset() { *m = AnonymousMetricBatch{} } +func (m *AnonymousMetricBatch) String() string { return proto.CompactTextString(m) } +func (*AnonymousMetricBatch) ProtoMessage() {} func (*AnonymousMetricBatch) Descriptor() ([]byte, []int) { - return file_anon_metrics_proto_rawDescGZIP(), []int{1} + return fileDescriptor_4be044a92fa0408c, []int{1} } -func (x *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric { - if x != nil { - return x.Metrics +func (m *AnonymousMetricBatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnonymousMetricBatch.Unmarshal(m, b) +} +func (m *AnonymousMetricBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnonymousMetricBatch.Marshal(b, m, deterministic) +} +func (m *AnonymousMetricBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnonymousMetricBatch.Merge(m, src) +} +func (m *AnonymousMetricBatch) XXX_Size() int { + return xxx_messageInfo_AnonymousMetricBatch.Size(m) +} +func (m *AnonymousMetricBatch) XXX_DiscardUnknown() { + xxx_messageInfo_AnonymousMetricBatch.DiscardUnknown(m) +} + +var xxx_messageInfo_AnonymousMetricBatch proto.InternalMessageInfo + +func (m *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric { + if m != nil { + return m.Metrics } return nil } -var File_anon_metrics_proto protoreflect.FileDescriptor - -var file_anon_metrics_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x61, 0x6e, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xd8, 0x01, 0x0a, 0x0f, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, - 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x4b, 0x0a, 0x14, 0x41, 0x6e, - 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x12, 0x33, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*AnonymousMetric)(nil), "protobuf.AnonymousMetric") + proto.RegisterType((*AnonymousMetricBatch)(nil), "protobuf.AnonymousMetricBatch") } -var ( - file_anon_metrics_proto_rawDescOnce sync.Once - file_anon_metrics_proto_rawDescData = file_anon_metrics_proto_rawDesc -) - -func file_anon_metrics_proto_rawDescGZIP() []byte { - file_anon_metrics_proto_rawDescOnce.Do(func() { - file_anon_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_anon_metrics_proto_rawDescData) - }) - return file_anon_metrics_proto_rawDescData +func init() { + proto.RegisterFile("anon_metrics.proto", fileDescriptor_4be044a92fa0408c) } -var file_anon_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_anon_metrics_proto_goTypes = []interface{}{ - (*AnonymousMetric)(nil), // 0: protobuf.AnonymousMetric - (*AnonymousMetricBatch)(nil), // 1: protobuf.AnonymousMetricBatch - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp -} -var file_anon_metrics_proto_depIdxs = []int32{ - 2, // 0: protobuf.AnonymousMetric.created_at:type_name -> google.protobuf.Timestamp - 0, // 1: protobuf.AnonymousMetricBatch.metrics:type_name -> protobuf.AnonymousMetric - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_anon_metrics_proto_init() } -func file_anon_metrics_proto_init() { - if File_anon_metrics_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_anon_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnonymousMetric); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anon_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnonymousMetricBatch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anon_metrics_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_anon_metrics_proto_goTypes, - DependencyIndexes: file_anon_metrics_proto_depIdxs, - MessageInfos: file_anon_metrics_proto_msgTypes, - }.Build() - File_anon_metrics_proto = out.File - file_anon_metrics_proto_rawDesc = nil - file_anon_metrics_proto_goTypes = nil - file_anon_metrics_proto_depIdxs = nil +var fileDescriptor_4be044a92fa0408c = []byte{ + // 269 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x3d, 0x6b, 0xc3, 0x30, + 0x10, 0x86, 0x51, 0xd2, 0x24, 0xf5, 0xb9, 0x1f, 0x20, 0x32, 0xa8, 0x81, 0x12, 0x93, 0xc9, 0x93, + 0x0d, 0xc9, 0x54, 0x3a, 0x25, 0x5b, 0x29, 0x5d, 0x4c, 0xe9, 0xd0, 0xc5, 0x28, 0xb6, 0x9a, 0x0a, + 0x62, 0x9d, 0xb0, 0x64, 0x43, 0xff, 0x69, 0x7f, 0x4e, 0xb1, 0x64, 0x51, 0xc8, 0x24, 0xdd, 0xa3, + 0xf7, 0x5e, 0x78, 0x04, 0x94, 0x2b, 0x54, 0x65, 0x23, 0x6c, 0x2b, 0x2b, 0x93, 0xe9, 0x16, 0x2d, + 0xd2, 0x6b, 0x77, 0x1c, 0xbb, 0xaf, 0xd5, 0xfa, 0x84, 0x78, 0x3a, 0x8b, 0x3c, 0x80, 0xdc, 0xca, + 0x46, 0x18, 0xcb, 0x1b, 0xed, 0xa3, 0x9b, 0x5f, 0x02, 0xf7, 0x7b, 0x85, 0xea, 0xa7, 0xc1, 0xce, + 0xbc, 0xb9, 0x16, 0x7a, 0x07, 0x13, 0x59, 0x33, 0x92, 0x90, 0x34, 0x2a, 0x26, 0xb2, 0xa6, 0x4b, + 0x98, 0x89, 0x5e, 0x28, 0xcb, 0x26, 0x0e, 0xf9, 0x61, 0xa0, 0x3d, 0x3f, 0x77, 0x82, 0x4d, 0x13, + 0x92, 0xde, 0x14, 0x7e, 0xa0, 0x6b, 0x88, 0xb9, 0xd6, 0x65, 0x2f, 0x5a, 0x23, 0x51, 0xb1, 0x2b, + 0xb7, 0x01, 0x5c, 0xeb, 0x0f, 0x4f, 0x86, 0x72, 0x34, 0x6c, 0xe6, 0xcb, 0xd1, 0xd0, 0x47, 0x00, + 0x23, 0xcc, 0xf0, 0x54, 0xca, 0x9a, 0xcd, 0x1d, 0x8f, 0x46, 0xf2, 0x52, 0xd3, 0x27, 0x80, 0xaa, + 0x15, 0xdc, 0x8a, 0xba, 0xe4, 0x96, 0x2d, 0x12, 0x92, 0xc6, 0xdb, 0x55, 0xe6, 0xad, 0xb2, 0x60, + 0x95, 0xbd, 0x07, 0xab, 0x22, 0x1a, 0xd3, 0x7b, 0xbb, 0x79, 0x85, 0xe5, 0x85, 0xd9, 0x81, 0xdb, + 0xea, 0x9b, 0xee, 0x60, 0x31, 0x7e, 0x17, 0x23, 0xc9, 0x34, 0x8d, 0xb7, 0x0f, 0xff, 0x45, 0x17, + 0x0b, 0x45, 0x48, 0x1e, 0x6e, 0x3f, 0xe3, 0x2c, 0x7f, 0x0e, 0xb9, 0xe3, 0xdc, 0xdd, 0x76, 0x7f, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x86, 0xa1, 0x32, 0x7e, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/application_metadata_message.pb.go b/protocol/protobuf/application_metadata_message.pb.go index b8dfea6b5..9242e7460 100644 --- a/protocol/protobuf/application_metadata_message.pb.go +++ b/protocol/protobuf/application_metadata_message.pb.go @@ -1,56 +1,54 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: application_metadata_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ApplicationMetadataMessage_Type int32 const ( - ApplicationMetadataMessage_UNKNOWN ApplicationMetadataMessage_Type = 0 - ApplicationMetadataMessage_CHAT_MESSAGE ApplicationMetadataMessage_Type = 1 - ApplicationMetadataMessage_CONTACT_UPDATE ApplicationMetadataMessage_Type = 2 - ApplicationMetadataMessage_MEMBERSHIP_UPDATE_MESSAGE ApplicationMetadataMessage_Type = 3 - ApplicationMetadataMessage_SYNC_PAIR_INSTALLATION ApplicationMetadataMessage_Type = 4 - // Deprecated: Marked as deprecated in application_metadata_message.proto. - ApplicationMetadataMessage_DEPRECATED_SYNC_INSTALLATION ApplicationMetadataMessage_Type = 5 - ApplicationMetadataMessage_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 6 - ApplicationMetadataMessage_ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 7 - ApplicationMetadataMessage_DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 8 - ApplicationMetadataMessage_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 9 - ApplicationMetadataMessage_SEND_TRANSACTION ApplicationMetadataMessage_Type = 10 - ApplicationMetadataMessage_DECLINE_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 11 - ApplicationMetadataMessage_SYNC_INSTALLATION_CONTACT_V2 ApplicationMetadataMessage_Type = 12 - ApplicationMetadataMessage_SYNC_INSTALLATION_ACCOUNT ApplicationMetadataMessage_Type = 13 - ApplicationMetadataMessage_CONTACT_CODE_ADVERTISEMENT ApplicationMetadataMessage_Type = 15 - ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION ApplicationMetadataMessage_Type = 16 - ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION_RESPONSE ApplicationMetadataMessage_Type = 17 - ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY ApplicationMetadataMessage_Type = 18 - ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY_RESPONSE ApplicationMetadataMessage_Type = 19 - ApplicationMetadataMessage_PUSH_NOTIFICATION_REQUEST ApplicationMetadataMessage_Type = 20 - ApplicationMetadataMessage_PUSH_NOTIFICATION_RESPONSE ApplicationMetadataMessage_Type = 21 - ApplicationMetadataMessage_EMOJI_REACTION ApplicationMetadataMessage_Type = 22 - ApplicationMetadataMessage_GROUP_CHAT_INVITATION ApplicationMetadataMessage_Type = 23 - ApplicationMetadataMessage_CHAT_IDENTITY ApplicationMetadataMessage_Type = 24 - ApplicationMetadataMessage_COMMUNITY_DESCRIPTION ApplicationMetadataMessage_Type = 25 - // Deprecated: Marked as deprecated in application_metadata_message.proto. - ApplicationMetadataMessage_COMMUNITY_INVITATION ApplicationMetadataMessage_Type = 26 + ApplicationMetadataMessage_UNKNOWN ApplicationMetadataMessage_Type = 0 + ApplicationMetadataMessage_CHAT_MESSAGE ApplicationMetadataMessage_Type = 1 + ApplicationMetadataMessage_CONTACT_UPDATE ApplicationMetadataMessage_Type = 2 + ApplicationMetadataMessage_MEMBERSHIP_UPDATE_MESSAGE ApplicationMetadataMessage_Type = 3 + ApplicationMetadataMessage_SYNC_PAIR_INSTALLATION ApplicationMetadataMessage_Type = 4 + ApplicationMetadataMessage_DEPRECATED_SYNC_INSTALLATION ApplicationMetadataMessage_Type = 5 // Deprecated: Do not use. + ApplicationMetadataMessage_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 6 + ApplicationMetadataMessage_ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 7 + ApplicationMetadataMessage_DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 8 + ApplicationMetadataMessage_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 9 + ApplicationMetadataMessage_SEND_TRANSACTION ApplicationMetadataMessage_Type = 10 + ApplicationMetadataMessage_DECLINE_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 11 + ApplicationMetadataMessage_SYNC_INSTALLATION_CONTACT_V2 ApplicationMetadataMessage_Type = 12 + ApplicationMetadataMessage_SYNC_INSTALLATION_ACCOUNT ApplicationMetadataMessage_Type = 13 + ApplicationMetadataMessage_CONTACT_CODE_ADVERTISEMENT ApplicationMetadataMessage_Type = 15 + ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION ApplicationMetadataMessage_Type = 16 + ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION_RESPONSE ApplicationMetadataMessage_Type = 17 + ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY ApplicationMetadataMessage_Type = 18 + ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY_RESPONSE ApplicationMetadataMessage_Type = 19 + ApplicationMetadataMessage_PUSH_NOTIFICATION_REQUEST ApplicationMetadataMessage_Type = 20 + ApplicationMetadataMessage_PUSH_NOTIFICATION_RESPONSE ApplicationMetadataMessage_Type = 21 + ApplicationMetadataMessage_EMOJI_REACTION ApplicationMetadataMessage_Type = 22 + ApplicationMetadataMessage_GROUP_CHAT_INVITATION ApplicationMetadataMessage_Type = 23 + ApplicationMetadataMessage_CHAT_IDENTITY ApplicationMetadataMessage_Type = 24 + ApplicationMetadataMessage_COMMUNITY_DESCRIPTION ApplicationMetadataMessage_Type = 25 + ApplicationMetadataMessage_COMMUNITY_INVITATION ApplicationMetadataMessage_Type = 26 // Deprecated: Do not use. ApplicationMetadataMessage_COMMUNITY_REQUEST_TO_JOIN ApplicationMetadataMessage_Type = 27 ApplicationMetadataMessage_PIN_MESSAGE ApplicationMetadataMessage_Type = 28 ApplicationMetadataMessage_EDIT_MESSAGE ApplicationMetadataMessage_Type = 29 @@ -104,494 +102,314 @@ const ( ApplicationMetadataMessage_SYNC_COLLECTIBLE_PREFERENCES ApplicationMetadataMessage_Type = 80 ) -// Enum value maps for ApplicationMetadataMessage_Type. -var ( - ApplicationMetadataMessage_Type_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CHAT_MESSAGE", - 2: "CONTACT_UPDATE", - 3: "MEMBERSHIP_UPDATE_MESSAGE", - 4: "SYNC_PAIR_INSTALLATION", - 5: "DEPRECATED_SYNC_INSTALLATION", - 6: "REQUEST_ADDRESS_FOR_TRANSACTION", - 7: "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION", - 8: "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION", - 9: "REQUEST_TRANSACTION", - 10: "SEND_TRANSACTION", - 11: "DECLINE_REQUEST_TRANSACTION", - 12: "SYNC_INSTALLATION_CONTACT_V2", - 13: "SYNC_INSTALLATION_ACCOUNT", - 15: "CONTACT_CODE_ADVERTISEMENT", - 16: "PUSH_NOTIFICATION_REGISTRATION", - 17: "PUSH_NOTIFICATION_REGISTRATION_RESPONSE", - 18: "PUSH_NOTIFICATION_QUERY", - 19: "PUSH_NOTIFICATION_QUERY_RESPONSE", - 20: "PUSH_NOTIFICATION_REQUEST", - 21: "PUSH_NOTIFICATION_RESPONSE", - 22: "EMOJI_REACTION", - 23: "GROUP_CHAT_INVITATION", - 24: "CHAT_IDENTITY", - 25: "COMMUNITY_DESCRIPTION", - 26: "COMMUNITY_INVITATION", - 27: "COMMUNITY_REQUEST_TO_JOIN", - 28: "PIN_MESSAGE", - 29: "EDIT_MESSAGE", - 30: "STATUS_UPDATE", - 31: "DELETE_MESSAGE", - 32: "SYNC_INSTALLATION_COMMUNITY", - 33: "ANONYMOUS_METRIC_BATCH", - 34: "SYNC_CHAT_REMOVED", - 35: "SYNC_CHAT_MESSAGES_READ", - 36: "BACKUP", - 37: "SYNC_ACTIVITY_CENTER_READ", - 38: "SYNC_ACTIVITY_CENTER_ACCEPTED", - 39: "SYNC_ACTIVITY_CENTER_DISMISSED", - 40: "SYNC_BOOKMARK", - 41: "SYNC_CLEAR_HISTORY", - 42: "SYNC_SETTING", - 43: "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK", - 44: "SYNC_PROFILE_PICTURES", - 45: "SYNC_ACCOUNT", - 46: "ACCEPT_CONTACT_REQUEST", - 47: "RETRACT_CONTACT_REQUEST", - 48: "COMMUNITY_REQUEST_TO_JOIN_RESPONSE", - 49: "SYNC_COMMUNITY_SETTINGS", - 50: "REQUEST_CONTACT_VERIFICATION", - 51: "ACCEPT_CONTACT_VERIFICATION", - 52: "DECLINE_CONTACT_VERIFICATION", - 53: "SYNC_TRUSTED_USER", - 54: "SYNC_VERIFICATION_REQUEST", - 56: "SYNC_CONTACT_REQUEST_DECISION", - 57: "COMMUNITY_REQUEST_TO_LEAVE", - 58: "SYNC_DELETE_FOR_ME_MESSAGE", - 59: "SYNC_SAVED_ADDRESS", - 60: "COMMUNITY_CANCEL_REQUEST_TO_JOIN", - 61: "CANCEL_CONTACT_VERIFICATION", - 62: "SYNC_KEYPAIR", - 63: "SYNC_SOCIAL_LINKS", - 64: "SYNC_ENS_USERNAME_DETAIL", - 67: "COMMUNITY_EVENTS_MESSAGE", - 68: "COMMUNITY_EDIT_SHARED_ADDRESSES", - 69: "SYNC_ACCOUNT_CUSTOMIZATION_COLOR", - 70: "SYNC_ACCOUNTS_POSITIONS", - 71: "COMMUNITY_EVENTS_MESSAGE_REJECTED", - 72: "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE", - 73: "COMMUNITY_SHARD_KEY", - 74: "SYNC_CHAT", - 75: "SYNC_ACTIVITY_CENTER_DELETED", - 76: "SYNC_ACTIVITY_CENTER_UNREAD", - 77: "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION", - 78: "SYNC_TOKEN_PREFERENCES", - 79: "COMMUNITY_PUBLIC_SHARD_INFO", - 80: "SYNC_COLLECTIBLE_PREFERENCES", - } - ApplicationMetadataMessage_Type_value = map[string]int32{ - "UNKNOWN": 0, - "CHAT_MESSAGE": 1, - "CONTACT_UPDATE": 2, - "MEMBERSHIP_UPDATE_MESSAGE": 3, - "SYNC_PAIR_INSTALLATION": 4, - "DEPRECATED_SYNC_INSTALLATION": 5, - "REQUEST_ADDRESS_FOR_TRANSACTION": 6, - "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION": 7, - "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION": 8, - "REQUEST_TRANSACTION": 9, - "SEND_TRANSACTION": 10, - "DECLINE_REQUEST_TRANSACTION": 11, - "SYNC_INSTALLATION_CONTACT_V2": 12, - "SYNC_INSTALLATION_ACCOUNT": 13, - "CONTACT_CODE_ADVERTISEMENT": 15, - "PUSH_NOTIFICATION_REGISTRATION": 16, - "PUSH_NOTIFICATION_REGISTRATION_RESPONSE": 17, - "PUSH_NOTIFICATION_QUERY": 18, - "PUSH_NOTIFICATION_QUERY_RESPONSE": 19, - "PUSH_NOTIFICATION_REQUEST": 20, - "PUSH_NOTIFICATION_RESPONSE": 21, - "EMOJI_REACTION": 22, - "GROUP_CHAT_INVITATION": 23, - "CHAT_IDENTITY": 24, - "COMMUNITY_DESCRIPTION": 25, - "COMMUNITY_INVITATION": 26, - "COMMUNITY_REQUEST_TO_JOIN": 27, - "PIN_MESSAGE": 28, - "EDIT_MESSAGE": 29, - "STATUS_UPDATE": 30, - "DELETE_MESSAGE": 31, - "SYNC_INSTALLATION_COMMUNITY": 32, - "ANONYMOUS_METRIC_BATCH": 33, - "SYNC_CHAT_REMOVED": 34, - "SYNC_CHAT_MESSAGES_READ": 35, - "BACKUP": 36, - "SYNC_ACTIVITY_CENTER_READ": 37, - "SYNC_ACTIVITY_CENTER_ACCEPTED": 38, - "SYNC_ACTIVITY_CENTER_DISMISSED": 39, - "SYNC_BOOKMARK": 40, - "SYNC_CLEAR_HISTORY": 41, - "SYNC_SETTING": 42, - "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK": 43, - "SYNC_PROFILE_PICTURES": 44, - "SYNC_ACCOUNT": 45, - "ACCEPT_CONTACT_REQUEST": 46, - "RETRACT_CONTACT_REQUEST": 47, - "COMMUNITY_REQUEST_TO_JOIN_RESPONSE": 48, - "SYNC_COMMUNITY_SETTINGS": 49, - "REQUEST_CONTACT_VERIFICATION": 50, - "ACCEPT_CONTACT_VERIFICATION": 51, - "DECLINE_CONTACT_VERIFICATION": 52, - "SYNC_TRUSTED_USER": 53, - "SYNC_VERIFICATION_REQUEST": 54, - "SYNC_CONTACT_REQUEST_DECISION": 56, - "COMMUNITY_REQUEST_TO_LEAVE": 57, - "SYNC_DELETE_FOR_ME_MESSAGE": 58, - "SYNC_SAVED_ADDRESS": 59, - "COMMUNITY_CANCEL_REQUEST_TO_JOIN": 60, - "CANCEL_CONTACT_VERIFICATION": 61, - "SYNC_KEYPAIR": 62, - "SYNC_SOCIAL_LINKS": 63, - "SYNC_ENS_USERNAME_DETAIL": 64, - "COMMUNITY_EVENTS_MESSAGE": 67, - "COMMUNITY_EDIT_SHARED_ADDRESSES": 68, - "SYNC_ACCOUNT_CUSTOMIZATION_COLOR": 69, - "SYNC_ACCOUNTS_POSITIONS": 70, - "COMMUNITY_EVENTS_MESSAGE_REJECTED": 71, - "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE": 72, - "COMMUNITY_SHARD_KEY": 73, - "SYNC_CHAT": 74, - "SYNC_ACTIVITY_CENTER_DELETED": 75, - "SYNC_ACTIVITY_CENTER_UNREAD": 76, - "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION": 77, - "SYNC_TOKEN_PREFERENCES": 78, - "COMMUNITY_PUBLIC_SHARD_INFO": 79, - "SYNC_COLLECTIBLE_PREFERENCES": 80, - } -) +var ApplicationMetadataMessage_Type_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CHAT_MESSAGE", + 2: "CONTACT_UPDATE", + 3: "MEMBERSHIP_UPDATE_MESSAGE", + 4: "SYNC_PAIR_INSTALLATION", + 5: "DEPRECATED_SYNC_INSTALLATION", + 6: "REQUEST_ADDRESS_FOR_TRANSACTION", + 7: "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION", + 8: "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION", + 9: "REQUEST_TRANSACTION", + 10: "SEND_TRANSACTION", + 11: "DECLINE_REQUEST_TRANSACTION", + 12: "SYNC_INSTALLATION_CONTACT_V2", + 13: "SYNC_INSTALLATION_ACCOUNT", + 15: "CONTACT_CODE_ADVERTISEMENT", + 16: "PUSH_NOTIFICATION_REGISTRATION", + 17: "PUSH_NOTIFICATION_REGISTRATION_RESPONSE", + 18: "PUSH_NOTIFICATION_QUERY", + 19: "PUSH_NOTIFICATION_QUERY_RESPONSE", + 20: "PUSH_NOTIFICATION_REQUEST", + 21: "PUSH_NOTIFICATION_RESPONSE", + 22: "EMOJI_REACTION", + 23: "GROUP_CHAT_INVITATION", + 24: "CHAT_IDENTITY", + 25: "COMMUNITY_DESCRIPTION", + 26: "COMMUNITY_INVITATION", + 27: "COMMUNITY_REQUEST_TO_JOIN", + 28: "PIN_MESSAGE", + 29: "EDIT_MESSAGE", + 30: "STATUS_UPDATE", + 31: "DELETE_MESSAGE", + 32: "SYNC_INSTALLATION_COMMUNITY", + 33: "ANONYMOUS_METRIC_BATCH", + 34: "SYNC_CHAT_REMOVED", + 35: "SYNC_CHAT_MESSAGES_READ", + 36: "BACKUP", + 37: "SYNC_ACTIVITY_CENTER_READ", + 38: "SYNC_ACTIVITY_CENTER_ACCEPTED", + 39: "SYNC_ACTIVITY_CENTER_DISMISSED", + 40: "SYNC_BOOKMARK", + 41: "SYNC_CLEAR_HISTORY", + 42: "SYNC_SETTING", + 43: "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK", + 44: "SYNC_PROFILE_PICTURES", + 45: "SYNC_ACCOUNT", + 46: "ACCEPT_CONTACT_REQUEST", + 47: "RETRACT_CONTACT_REQUEST", + 48: "COMMUNITY_REQUEST_TO_JOIN_RESPONSE", + 49: "SYNC_COMMUNITY_SETTINGS", + 50: "REQUEST_CONTACT_VERIFICATION", + 51: "ACCEPT_CONTACT_VERIFICATION", + 52: "DECLINE_CONTACT_VERIFICATION", + 53: "SYNC_TRUSTED_USER", + 54: "SYNC_VERIFICATION_REQUEST", + 56: "SYNC_CONTACT_REQUEST_DECISION", + 57: "COMMUNITY_REQUEST_TO_LEAVE", + 58: "SYNC_DELETE_FOR_ME_MESSAGE", + 59: "SYNC_SAVED_ADDRESS", + 60: "COMMUNITY_CANCEL_REQUEST_TO_JOIN", + 61: "CANCEL_CONTACT_VERIFICATION", + 62: "SYNC_KEYPAIR", + 63: "SYNC_SOCIAL_LINKS", + 64: "SYNC_ENS_USERNAME_DETAIL", + 67: "COMMUNITY_EVENTS_MESSAGE", + 68: "COMMUNITY_EDIT_SHARED_ADDRESSES", + 69: "SYNC_ACCOUNT_CUSTOMIZATION_COLOR", + 70: "SYNC_ACCOUNTS_POSITIONS", + 71: "COMMUNITY_EVENTS_MESSAGE_REJECTED", + 72: "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE", + 73: "COMMUNITY_SHARD_KEY", + 74: "SYNC_CHAT", + 75: "SYNC_ACTIVITY_CENTER_DELETED", + 76: "SYNC_ACTIVITY_CENTER_UNREAD", + 77: "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION", + 78: "SYNC_TOKEN_PREFERENCES", + 79: "COMMUNITY_PUBLIC_SHARD_INFO", + 80: "SYNC_COLLECTIBLE_PREFERENCES", +} -func (x ApplicationMetadataMessage_Type) Enum() *ApplicationMetadataMessage_Type { - p := new(ApplicationMetadataMessage_Type) - *p = x - return p +var ApplicationMetadataMessage_Type_value = map[string]int32{ + "UNKNOWN": 0, + "CHAT_MESSAGE": 1, + "CONTACT_UPDATE": 2, + "MEMBERSHIP_UPDATE_MESSAGE": 3, + "SYNC_PAIR_INSTALLATION": 4, + "DEPRECATED_SYNC_INSTALLATION": 5, + "REQUEST_ADDRESS_FOR_TRANSACTION": 6, + "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION": 7, + "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION": 8, + "REQUEST_TRANSACTION": 9, + "SEND_TRANSACTION": 10, + "DECLINE_REQUEST_TRANSACTION": 11, + "SYNC_INSTALLATION_CONTACT_V2": 12, + "SYNC_INSTALLATION_ACCOUNT": 13, + "CONTACT_CODE_ADVERTISEMENT": 15, + "PUSH_NOTIFICATION_REGISTRATION": 16, + "PUSH_NOTIFICATION_REGISTRATION_RESPONSE": 17, + "PUSH_NOTIFICATION_QUERY": 18, + "PUSH_NOTIFICATION_QUERY_RESPONSE": 19, + "PUSH_NOTIFICATION_REQUEST": 20, + "PUSH_NOTIFICATION_RESPONSE": 21, + "EMOJI_REACTION": 22, + "GROUP_CHAT_INVITATION": 23, + "CHAT_IDENTITY": 24, + "COMMUNITY_DESCRIPTION": 25, + "COMMUNITY_INVITATION": 26, + "COMMUNITY_REQUEST_TO_JOIN": 27, + "PIN_MESSAGE": 28, + "EDIT_MESSAGE": 29, + "STATUS_UPDATE": 30, + "DELETE_MESSAGE": 31, + "SYNC_INSTALLATION_COMMUNITY": 32, + "ANONYMOUS_METRIC_BATCH": 33, + "SYNC_CHAT_REMOVED": 34, + "SYNC_CHAT_MESSAGES_READ": 35, + "BACKUP": 36, + "SYNC_ACTIVITY_CENTER_READ": 37, + "SYNC_ACTIVITY_CENTER_ACCEPTED": 38, + "SYNC_ACTIVITY_CENTER_DISMISSED": 39, + "SYNC_BOOKMARK": 40, + "SYNC_CLEAR_HISTORY": 41, + "SYNC_SETTING": 42, + "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK": 43, + "SYNC_PROFILE_PICTURES": 44, + "SYNC_ACCOUNT": 45, + "ACCEPT_CONTACT_REQUEST": 46, + "RETRACT_CONTACT_REQUEST": 47, + "COMMUNITY_REQUEST_TO_JOIN_RESPONSE": 48, + "SYNC_COMMUNITY_SETTINGS": 49, + "REQUEST_CONTACT_VERIFICATION": 50, + "ACCEPT_CONTACT_VERIFICATION": 51, + "DECLINE_CONTACT_VERIFICATION": 52, + "SYNC_TRUSTED_USER": 53, + "SYNC_VERIFICATION_REQUEST": 54, + "SYNC_CONTACT_REQUEST_DECISION": 56, + "COMMUNITY_REQUEST_TO_LEAVE": 57, + "SYNC_DELETE_FOR_ME_MESSAGE": 58, + "SYNC_SAVED_ADDRESS": 59, + "COMMUNITY_CANCEL_REQUEST_TO_JOIN": 60, + "CANCEL_CONTACT_VERIFICATION": 61, + "SYNC_KEYPAIR": 62, + "SYNC_SOCIAL_LINKS": 63, + "SYNC_ENS_USERNAME_DETAIL": 64, + "COMMUNITY_EVENTS_MESSAGE": 67, + "COMMUNITY_EDIT_SHARED_ADDRESSES": 68, + "SYNC_ACCOUNT_CUSTOMIZATION_COLOR": 69, + "SYNC_ACCOUNTS_POSITIONS": 70, + "COMMUNITY_EVENTS_MESSAGE_REJECTED": 71, + "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE": 72, + "COMMUNITY_SHARD_KEY": 73, + "SYNC_CHAT": 74, + "SYNC_ACTIVITY_CENTER_DELETED": 75, + "SYNC_ACTIVITY_CENTER_UNREAD": 76, + "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION": 77, + "SYNC_TOKEN_PREFERENCES": 78, + "COMMUNITY_PUBLIC_SHARD_INFO": 79, + "SYNC_COLLECTIBLE_PREFERENCES": 80, } func (x ApplicationMetadataMessage_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(ApplicationMetadataMessage_Type_name, int32(x)) } -func (ApplicationMetadataMessage_Type) Descriptor() protoreflect.EnumDescriptor { - return file_application_metadata_message_proto_enumTypes[0].Descriptor() -} - -func (ApplicationMetadataMessage_Type) Type() protoreflect.EnumType { - return &file_application_metadata_message_proto_enumTypes[0] -} - -func (x ApplicationMetadataMessage_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ApplicationMetadataMessage_Type.Descriptor instead. func (ApplicationMetadataMessage_Type) EnumDescriptor() ([]byte, []int) { - return file_application_metadata_message_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_ad09a6406fcf24c7, []int{0, 0} } type ApplicationMetadataMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Signature of the payload field Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // This is the encoded protobuf of the application level message, i.e ChatMessage Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // The type of protobuf message sent - Type ApplicationMetadataMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.ApplicationMetadataMessage_Type" json:"type,omitempty"` + Type ApplicationMetadataMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.ApplicationMetadataMessage_Type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ApplicationMetadataMessage) Reset() { - *x = ApplicationMetadataMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_application_metadata_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationMetadataMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationMetadataMessage) ProtoMessage() {} - -func (x *ApplicationMetadataMessage) ProtoReflect() protoreflect.Message { - mi := &file_application_metadata_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplicationMetadataMessage.ProtoReflect.Descriptor instead. +func (m *ApplicationMetadataMessage) Reset() { *m = ApplicationMetadataMessage{} } +func (m *ApplicationMetadataMessage) String() string { return proto.CompactTextString(m) } +func (*ApplicationMetadataMessage) ProtoMessage() {} func (*ApplicationMetadataMessage) Descriptor() ([]byte, []int) { - return file_application_metadata_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_ad09a6406fcf24c7, []int{0} } -func (x *ApplicationMetadataMessage) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *ApplicationMetadataMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ApplicationMetadataMessage.Unmarshal(m, b) +} +func (m *ApplicationMetadataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ApplicationMetadataMessage.Marshal(b, m, deterministic) +} +func (m *ApplicationMetadataMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationMetadataMessage.Merge(m, src) +} +func (m *ApplicationMetadataMessage) XXX_Size() int { + return xxx_messageInfo_ApplicationMetadataMessage.Size(m) +} +func (m *ApplicationMetadataMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationMetadataMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationMetadataMessage proto.InternalMessageInfo + +func (m *ApplicationMetadataMessage) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *ApplicationMetadataMessage) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *ApplicationMetadataMessage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -func (x *ApplicationMetadataMessage) GetType() ApplicationMetadataMessage_Type { - if x != nil { - return x.Type +func (m *ApplicationMetadataMessage) GetType() ApplicationMetadataMessage_Type { + if m != nil { + return m.Type } return ApplicationMetadataMessage_UNKNOWN } -var File_application_metadata_message_proto protoreflect.FileDescriptor - -var file_application_metadata_message_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x85, - 0x14, 0x0a, 0x1a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, - 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x22, 0xef, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, - 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, - 0x41, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, - 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, - 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x55, - 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, - 0x1a, 0x0a, 0x16, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x50, 0x41, 0x49, 0x52, 0x5f, 0x49, 0x4e, 0x53, - 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x24, 0x0a, 0x1c, 0x44, - 0x45, 0x50, 0x52, 0x45, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, - 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x1a, 0x02, 0x08, - 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x44, 0x44, - 0x52, 0x45, 0x53, 0x53, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, - 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x2a, 0x0a, 0x26, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, - 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, - 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x07, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x45, 0x43, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x46, 0x4f, - 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x08, 0x12, - 0x17, 0x0a, 0x13, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, - 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x4e, 0x44, - 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x1f, - 0x0a, 0x1b, 0x44, 0x45, 0x43, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0b, 0x12, - 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x32, 0x10, - 0x0c, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, - 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x0d, - 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x44, 0x45, - 0x5f, 0x41, 0x44, 0x56, 0x45, 0x52, 0x54, 0x49, 0x53, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x0f, - 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x10, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, - 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, - 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, - 0x11, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, - 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x12, 0x12, 0x24, - 0x0a, 0x20, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, - 0x53, 0x45, 0x10, 0x13, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, - 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x10, 0x14, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, - 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, - 0x45, 0x10, 0x15, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x4d, 0x4f, 0x4a, 0x49, 0x5f, 0x52, 0x45, 0x41, - 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x16, 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52, 0x4f, 0x55, 0x50, - 0x5f, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x49, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x17, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x49, 0x44, 0x45, 0x4e, 0x54, - 0x49, 0x54, 0x59, 0x10, 0x18, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, - 0x54, 0x59, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x19, - 0x12, 0x1c, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x4e, - 0x56, 0x49, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1a, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1d, - 0x0a, 0x19, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, - 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x1b, 0x12, 0x0f, 0x0a, - 0x0b, 0x50, 0x49, 0x4e, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x1c, 0x12, 0x10, - 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x1d, - 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, - 0x45, 0x10, 0x1e, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x4d, 0x45, - 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x1f, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x10, 0x20, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x4e, 0x4f, 0x4e, - 0x59, 0x4d, 0x4f, 0x55, 0x53, 0x5f, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x42, 0x41, 0x54, - 0x43, 0x48, 0x10, 0x21, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x48, 0x41, - 0x54, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x22, 0x12, 0x1b, 0x0a, 0x17, 0x53, - 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, - 0x53, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x23, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x41, 0x43, 0x4b, - 0x55, 0x50, 0x10, 0x24, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, - 0x44, 0x10, 0x25, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x43, 0x43, 0x45, - 0x50, 0x54, 0x45, 0x44, 0x10, 0x26, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x44, - 0x49, 0x53, 0x4d, 0x49, 0x53, 0x53, 0x45, 0x44, 0x10, 0x27, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x59, - 0x4e, 0x43, 0x5f, 0x42, 0x4f, 0x4f, 0x4b, 0x4d, 0x41, 0x52, 0x4b, 0x10, 0x28, 0x12, 0x16, 0x0a, - 0x12, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x4c, 0x45, 0x41, 0x52, 0x5f, 0x48, 0x49, 0x53, 0x54, - 0x4f, 0x52, 0x59, 0x10, 0x29, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x45, - 0x54, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x2a, 0x12, 0x28, 0x0a, 0x24, 0x43, 0x4f, 0x4d, 0x4d, 0x55, - 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x52, 0x43, - 0x48, 0x49, 0x56, 0x45, 0x5f, 0x4d, 0x41, 0x47, 0x4e, 0x45, 0x54, 0x4c, 0x49, 0x4e, 0x4b, 0x10, - 0x2b, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, - 0x45, 0x5f, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x53, 0x10, 0x2c, 0x12, 0x10, 0x0a, 0x0c, - 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x2d, 0x12, 0x1a, - 0x0a, 0x16, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, - 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x2e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, - 0x54, 0x52, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x2f, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x4f, 0x4d, 0x4d, 0x55, - 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, - 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x30, 0x12, - 0x1b, 0x0a, 0x17, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, - 0x59, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x53, 0x10, 0x31, 0x12, 0x20, 0x0a, 0x1c, - 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, - 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x32, 0x12, 0x1f, - 0x0a, 0x1b, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, - 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x33, 0x12, - 0x20, 0x0a, 0x1c, 0x44, 0x45, 0x43, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, - 0x43, 0x54, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x34, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x54, 0x52, 0x55, 0x53, 0x54, 0x45, - 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x35, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x36, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, - 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x38, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, - 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, - 0x54, 0x4f, 0x5f, 0x4c, 0x45, 0x41, 0x56, 0x45, 0x10, 0x39, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x59, - 0x4e, 0x43, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x4d, 0x45, - 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x3a, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x59, - 0x4e, 0x43, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x44, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, - 0x10, 0x3b, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, - 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, - 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x3c, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x41, 0x4e, 0x43, - 0x45, 0x4c, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, - 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x3d, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x59, 0x4e, - 0x43, 0x5f, 0x4b, 0x45, 0x59, 0x50, 0x41, 0x49, 0x52, 0x10, 0x3e, 0x12, 0x15, 0x0a, 0x11, 0x53, - 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, 0x4c, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x53, - 0x10, 0x3f, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x45, 0x4e, 0x53, 0x5f, 0x55, - 0x53, 0x45, 0x52, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x10, 0x40, - 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x43, 0x12, 0x23, - 0x0a, 0x1f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x44, 0x49, 0x54, - 0x5f, 0x53, 0x48, 0x41, 0x52, 0x45, 0x44, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x45, - 0x53, 0x10, 0x44, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x10, 0x45, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x59, 0x4e, - 0x43, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x53, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, - 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x46, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, - 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, - 0x47, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x47, 0x12, 0x2a, 0x0a, - 0x26, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x49, - 0x4c, 0x45, 0x47, 0x45, 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x48, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x44, 0x5f, 0x4b, 0x45, 0x59, - 0x10, 0x49, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x48, 0x41, 0x54, 0x10, - 0x4a, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, - 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, - 0x44, 0x10, 0x4b, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x52, 0x45, - 0x41, 0x44, 0x10, 0x4c, 0x12, 0x33, 0x0a, 0x2f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x44, - 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x4d, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x59, 0x4e, - 0x43, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, - 0x43, 0x45, 0x53, 0x10, 0x4e, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, - 0x54, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x44, 0x5f, - 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x4f, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, - 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x42, 0x4c, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x45, - 0x52, 0x45, 0x4e, 0x43, 0x45, 0x53, 0x10, 0x50, 0x22, 0x04, 0x08, 0x0e, 0x10, 0x0e, 0x22, 0x04, - 0x08, 0x41, 0x10, 0x41, 0x22, 0x04, 0x08, 0x42, 0x10, 0x42, 0x2a, 0x1d, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x55, - 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x43, 0x48, 0x41, 0x54, 0x2a, 0x22, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, - 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x2a, 0x27, 0x53, - 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, - 0x54, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.ApplicationMetadataMessage_Type", ApplicationMetadataMessage_Type_name, ApplicationMetadataMessage_Type_value) + proto.RegisterType((*ApplicationMetadataMessage)(nil), "protobuf.ApplicationMetadataMessage") } -var ( - file_application_metadata_message_proto_rawDescOnce sync.Once - file_application_metadata_message_proto_rawDescData = file_application_metadata_message_proto_rawDesc -) - -func file_application_metadata_message_proto_rawDescGZIP() []byte { - file_application_metadata_message_proto_rawDescOnce.Do(func() { - file_application_metadata_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_application_metadata_message_proto_rawDescData) - }) - return file_application_metadata_message_proto_rawDescData +func init() { + proto.RegisterFile("application_metadata_message.proto", fileDescriptor_ad09a6406fcf24c7) } -var file_application_metadata_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_application_metadata_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_application_metadata_message_proto_goTypes = []interface{}{ - (ApplicationMetadataMessage_Type)(0), // 0: protobuf.ApplicationMetadataMessage.Type - (*ApplicationMetadataMessage)(nil), // 1: protobuf.ApplicationMetadataMessage -} -var file_application_metadata_message_proto_depIdxs = []int32{ - 0, // 0: protobuf.ApplicationMetadataMessage.type:type_name -> protobuf.ApplicationMetadataMessage.Type - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_application_metadata_message_proto_init() } -func file_application_metadata_message_proto_init() { - if File_application_metadata_message_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_application_metadata_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationMetadataMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_application_metadata_message_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_application_metadata_message_proto_goTypes, - DependencyIndexes: file_application_metadata_message_proto_depIdxs, - EnumInfos: file_application_metadata_message_proto_enumTypes, - MessageInfos: file_application_metadata_message_proto_msgTypes, - }.Build() - File_application_metadata_message_proto = out.File - file_application_metadata_message_proto_rawDesc = nil - file_application_metadata_message_proto_goTypes = nil - file_application_metadata_message_proto_depIdxs = nil +var fileDescriptor_ad09a6406fcf24c7 = []byte{ + // 1165 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0xef, 0x72, 0x13, 0xb7, + 0x17, 0xfd, 0x05, 0xfc, 0x03, 0xa3, 0x90, 0x20, 0x44, 0x00, 0x27, 0x38, 0x90, 0x98, 0x90, 0x84, + 0xd0, 0x3a, 0x6d, 0xd2, 0x76, 0xda, 0x52, 0xda, 0xca, 0xd2, 0xb5, 0xad, 0x78, 0x57, 0x5a, 0x24, + 0xad, 0x3b, 0xe6, 0x8b, 0xc6, 0x14, 0x97, 0xc9, 0x0c, 0x10, 0x0f, 0x31, 0x1f, 0xf2, 0x00, 0x7d, + 0xde, 0xbe, 0x42, 0x47, 0xfb, 0xd7, 0x89, 0x9d, 0xe6, 0x53, 0x62, 0xdd, 0xa3, 0x2b, 0x9d, 0x73, + 0xcf, 0xbd, 0x5a, 0xd4, 0x18, 0x8e, 0xc7, 0x1f, 0x8e, 0xff, 0x1c, 0x4e, 0x8e, 0x4f, 0x3e, 0xb9, + 0x8f, 0xa3, 0xc9, 0xf0, 0xdd, 0x70, 0x32, 0x74, 0x1f, 0x47, 0xa7, 0xa7, 0xc3, 0xf7, 0xa3, 0xe6, + 0xf8, 0xf3, 0xc9, 0xe4, 0x84, 0x54, 0x93, 0x3f, 0x6f, 0xbf, 0xfc, 0xd5, 0xf8, 0x7b, 0x05, 0xad, + 0xd1, 0x72, 0x43, 0x98, 0xe1, 0xc3, 0x14, 0x4e, 0xea, 0xe8, 0xd6, 0xe9, 0xf1, 0xfb, 0x4f, 0xc3, + 0xc9, 0x97, 0xcf, 0xa3, 0xda, 0xc2, 0xc6, 0xc2, 0xee, 0x6d, 0x5d, 0x2e, 0x90, 0x1a, 0xba, 0x39, + 0x1e, 0x9e, 0x7d, 0x38, 0x19, 0xbe, 0xab, 0x5d, 0x4b, 0x62, 0xf9, 0x4f, 0xf2, 0x0a, 0x55, 0x26, + 0x67, 0xe3, 0x51, 0xed, 0xfa, 0xc6, 0xc2, 0xee, 0xf2, 0xc1, 0xf3, 0x66, 0x7e, 0x5e, 0xf3, 0xf2, + 0xb3, 0x9a, 0xf6, 0x6c, 0x3c, 0xd2, 0xc9, 0xb6, 0xc6, 0x3f, 0x04, 0x55, 0xfc, 0x4f, 0xb2, 0x88, + 0x6e, 0xc6, 0xb2, 0x27, 0xd5, 0x1f, 0x12, 0xff, 0x8f, 0x60, 0x74, 0x9b, 0x75, 0xa9, 0x75, 0x21, + 0x18, 0x43, 0x3b, 0x80, 0x17, 0x08, 0x41, 0xcb, 0x4c, 0x49, 0x4b, 0x99, 0x75, 0x71, 0xc4, 0xa9, + 0x05, 0x7c, 0x8d, 0xac, 0xa3, 0xd5, 0x10, 0xc2, 0x16, 0x68, 0xd3, 0x15, 0x51, 0xb6, 0x5c, 0x6c, + 0xb9, 0x4e, 0xd6, 0xd0, 0x03, 0x33, 0x90, 0xcc, 0x45, 0x54, 0x68, 0x27, 0xa4, 0xb1, 0x34, 0x08, + 0xa8, 0x15, 0x4a, 0xe2, 0x0a, 0xd9, 0x42, 0x75, 0x0e, 0x91, 0x06, 0x46, 0x2d, 0x70, 0x97, 0xc0, + 0xce, 0x21, 0xfe, 0xbf, 0x76, 0xad, 0xba, 0x40, 0x9e, 0xa2, 0x27, 0x1a, 0x5e, 0xc7, 0x60, 0xac, + 0xa3, 0x9c, 0x6b, 0x30, 0xc6, 0xb5, 0x95, 0x76, 0x56, 0x53, 0x69, 0x28, 0x4b, 0x80, 0x37, 0xc8, + 0x1e, 0xda, 0xa6, 0x8c, 0x41, 0x64, 0xdd, 0x55, 0xd8, 0x9b, 0xe4, 0x05, 0xda, 0xe1, 0xc0, 0x02, + 0x21, 0xe1, 0x4a, 0x70, 0x95, 0x3c, 0x44, 0xf7, 0x72, 0xd0, 0x74, 0xe0, 0x16, 0x59, 0x41, 0xd8, + 0x80, 0xe4, 0xe7, 0x56, 0x11, 0x79, 0x82, 0x1e, 0x5d, 0xcc, 0x3d, 0x0d, 0x58, 0x24, 0x1b, 0xa8, + 0x3e, 0x43, 0xd4, 0xe5, 0xa2, 0xf6, 0x0f, 0xf0, 0x6d, 0x2f, 0xe8, 0x2c, 0x82, 0x32, 0xa6, 0x62, + 0x69, 0xf1, 0x12, 0x79, 0x8c, 0xd6, 0x72, 0x38, 0x53, 0x1c, 0x1c, 0xe5, 0x7d, 0xd0, 0x56, 0x18, + 0x08, 0x41, 0x5a, 0x7c, 0x87, 0x34, 0xd0, 0xe3, 0x28, 0x36, 0x5d, 0x27, 0x95, 0x15, 0x6d, 0xc1, + 0xd2, 0xed, 0x1a, 0x3a, 0xc2, 0x58, 0x9d, 0xca, 0x8a, 0xbd, 0x02, 0xff, 0x8d, 0x71, 0x1a, 0x4c, + 0xa4, 0xa4, 0x01, 0x7c, 0x97, 0x3c, 0x42, 0x0f, 0x67, 0xc1, 0xaf, 0x63, 0xd0, 0x03, 0x4c, 0xc8, + 0x16, 0xda, 0xb8, 0x24, 0x58, 0xa6, 0xb8, 0xe7, 0x29, 0xcd, 0x3b, 0x2f, 0xd1, 0x07, 0xaf, 0x78, + 0x4a, 0xf3, 0xc2, 0xd9, 0xf6, 0xfb, 0xde, 0x76, 0x10, 0xaa, 0x23, 0xe1, 0x34, 0x64, 0x3a, 0x3e, + 0x20, 0xab, 0xe8, 0x7e, 0x47, 0xab, 0x38, 0x72, 0x89, 0x45, 0x85, 0xec, 0x0b, 0x9b, 0xb2, 0x7b, + 0x48, 0xee, 0xa2, 0xa5, 0x74, 0x91, 0x83, 0xb4, 0xc2, 0x0e, 0x70, 0xcd, 0xa3, 0x99, 0x0a, 0xc3, + 0x58, 0x0a, 0x3b, 0x70, 0x1c, 0x0c, 0xd3, 0x22, 0x4a, 0xd0, 0xab, 0xa4, 0x8e, 0x56, 0xca, 0xd0, + 0x54, 0x9e, 0xb5, 0xc4, 0x7c, 0xeb, 0x68, 0xb5, 0x8c, 0x16, 0x15, 0x55, 0xee, 0x48, 0x09, 0x89, + 0x1f, 0x91, 0x3b, 0x68, 0x31, 0x12, 0xb2, 0xb0, 0x7b, 0xdd, 0xf7, 0x0c, 0x70, 0x51, 0xf6, 0xcc, + 0xba, 0xbf, 0x8d, 0xb1, 0xd4, 0xc6, 0x26, 0x6f, 0x99, 0xc7, 0x9e, 0x0f, 0x87, 0x00, 0xa6, 0xfa, + 0xe4, 0x89, 0x37, 0xce, 0x3c, 0x5f, 0x64, 0x47, 0xe3, 0x0d, 0xdf, 0x48, 0x54, 0x2a, 0x39, 0x08, + 0x55, 0x6c, 0x5c, 0x08, 0x56, 0x0b, 0xe6, 0x5a, 0xd4, 0xb2, 0x2e, 0xde, 0x24, 0xf7, 0xd1, 0xdd, + 0x64, 0x73, 0x42, 0x5b, 0x43, 0xa8, 0xfa, 0xc0, 0x71, 0xc3, 0x57, 0xae, 0x5c, 0xce, 0x8e, 0x32, + 0x5e, 0x44, 0x8e, 0x9f, 0x12, 0x84, 0x6e, 0xb4, 0x28, 0xeb, 0xc5, 0x11, 0xde, 0x2a, 0x2c, 0xe7, + 0xd5, 0xed, 0x7b, 0xa6, 0x0c, 0xa4, 0x05, 0x9d, 0x42, 0x9f, 0x91, 0x4d, 0xb4, 0x3e, 0x37, 0x9c, + 0x76, 0x1c, 0x70, 0xbc, 0xed, 0x5d, 0x37, 0x17, 0xc2, 0x85, 0x09, 0x85, 0x31, 0xc0, 0xf1, 0x4e, + 0xa2, 0x84, 0xc7, 0xb4, 0x94, 0xea, 0x85, 0x54, 0xf7, 0xf0, 0x2e, 0x79, 0x80, 0x48, 0x7a, 0xc3, + 0x00, 0xa8, 0x76, 0x5d, 0x61, 0xac, 0xd2, 0x03, 0xfc, 0xdc, 0xcb, 0x98, 0xac, 0x1b, 0xb0, 0x56, + 0xc8, 0x0e, 0xde, 0x23, 0xbb, 0x68, 0xab, 0x2c, 0x44, 0xc6, 0xc5, 0x51, 0xcd, 0xba, 0xa2, 0x0f, + 0x2e, 0xa4, 0x1d, 0x09, 0x36, 0x10, 0xb2, 0x87, 0x5f, 0xf8, 0x5a, 0xa7, 0x13, 0x47, 0xab, 0xb6, + 0x08, 0xc0, 0x45, 0x82, 0xd9, 0x58, 0x83, 0xc1, 0x5f, 0x15, 0x69, 0xf3, 0x6e, 0xfa, 0x3a, 0x51, + 0x35, 0x9d, 0x1b, 0x79, 0x53, 0xe5, 0xb6, 0x6c, 0x7a, 0xf9, 0x34, 0x58, 0x9d, 0x76, 0xda, 0xf9, + 0xe0, 0x3e, 0xd9, 0x46, 0x8d, 0x4b, 0x8d, 0x51, 0x7a, 0xf7, 0x9b, 0xb2, 0x06, 0x05, 0x38, 0xe3, + 0x64, 0xf0, 0xb7, 0x7e, 0x18, 0xe4, 0x5b, 0x8b, 0x11, 0x00, 0xba, 0xe8, 0x01, 0x7c, 0xe0, 0x6d, + 0x71, 0xe1, 0x7e, 0xe7, 0x00, 0x87, 0x3e, 0x45, 0x3e, 0x70, 0xe6, 0x22, 0xbe, 0x2b, 0xcc, 0x61, + 0x75, 0x6c, 0xfc, 0x9c, 0x8d, 0x0d, 0x68, 0xfc, 0x7d, 0x51, 0xf3, 0x69, 0x74, 0xc1, 0xef, 0x87, + 0xa2, 0xe6, 0x17, 0x98, 0x3b, 0x0e, 0x4c, 0x18, 0x9f, 0xf8, 0xc7, 0x74, 0x12, 0xcd, 0x91, 0x20, + 0x00, 0xda, 0x07, 0xfc, 0x93, 0x8f, 0x27, 0x29, 0x32, 0xaf, 0xfb, 0xd9, 0x1a, 0x96, 0x96, 0xff, + 0xb9, 0x28, 0xbe, 0xa1, 0x7d, 0xe0, 0xf9, 0x08, 0xc6, 0x2f, 0xfd, 0x4c, 0x29, 0xf3, 0x32, 0x2a, + 0x19, 0x04, 0x33, 0xad, 0xf7, 0x8b, 0x57, 0x26, 0x8b, 0xcd, 0xe5, 0xfd, 0xaa, 0x28, 0x76, 0x0f, + 0x06, 0xfe, 0xf1, 0xc1, 0xbf, 0x16, 0x4a, 0x18, 0xc5, 0x04, 0x0d, 0x9c, 0xf7, 0x8b, 0xc1, 0xbf, + 0x91, 0x3a, 0xaa, 0x25, 0xcb, 0x20, 0x4d, 0x22, 0x8e, 0xa4, 0x21, 0x38, 0x0e, 0x96, 0x8a, 0x00, + 0xff, 0xee, 0xa3, 0xe5, 0x6d, 0xa0, 0x0f, 0xd2, 0x9a, 0x82, 0x03, 0xf3, 0x8f, 0xd3, 0x54, 0xd4, + 0x77, 0xbe, 0xe9, 0x52, 0x5d, 0xd2, 0x01, 0x83, 0xb9, 0x27, 0x34, 0x6d, 0x3b, 0xc7, 0x62, 0x63, + 0x55, 0x28, 0xde, 0xe4, 0x4d, 0x1e, 0x28, 0x8d, 0xa1, 0x70, 0x4a, 0x86, 0x32, 0x2e, 0x52, 0x46, + 0x78, 0x84, 0xc1, 0x6d, 0xf2, 0x0c, 0x6d, 0x5e, 0x76, 0x0b, 0xa7, 0xe1, 0x08, 0x98, 0x6f, 0xc3, + 0x8e, 0x7f, 0x06, 0x4b, 0x58, 0xa4, 0x45, 0x5f, 0x04, 0xd0, 0xc9, 0x6a, 0x9e, 0x3e, 0xb0, 0xf9, + 0xd5, 0xbb, 0xfe, 0x65, 0x9b, 0x32, 0x65, 0x97, 0x6a, 0xee, 0xa5, 0xc2, 0x82, 0x2c, 0xa1, 0x5b, + 0xc5, 0xd8, 0xc0, 0x47, 0xc5, 0x8b, 0x35, 0xd3, 0xda, 0x49, 0x59, 0x39, 0xee, 0x15, 0xb3, 0xeb, + 0x22, 0x22, 0x96, 0xc9, 0x00, 0x09, 0xc8, 0x21, 0xda, 0x9f, 0x0b, 0x98, 0xb5, 0x4f, 0x61, 0xaf, + 0xb0, 0xf8, 0x72, 0xb0, 0xaa, 0x07, 0xd2, 0x45, 0x1a, 0xda, 0xa0, 0x41, 0x32, 0x30, 0x58, 0x26, + 0xc5, 0x2f, 0x79, 0xc6, 0xad, 0x40, 0xb0, 0x8c, 0x82, 0x90, 0x6d, 0x85, 0x55, 0x71, 0x69, 0xa6, + 0x82, 0x00, 0x98, 0x15, 0x2d, 0x3f, 0x08, 0xa6, 0x52, 0x44, 0x8d, 0x4a, 0x75, 0x19, 0x2f, 0x37, + 0x2a, 0x55, 0x8a, 0x69, 0xa3, 0x52, 0x6d, 0xe1, 0xd6, 0xde, 0xfa, 0xec, 0x00, 0xce, 0x52, 0x7b, + 0x25, 0xf6, 0x1a, 0x73, 0x29, 0x4c, 0xbf, 0x59, 0x66, 0x6f, 0xe7, 0x4a, 0x8c, 0xf3, 0x8f, 0x01, + 0xb4, 0x96, 0xde, 0x2c, 0x36, 0xf7, 0x5f, 0xe6, 0x9f, 0x69, 0x6f, 0x6f, 0x24, 0xff, 0x1d, 0xfe, + 0x1b, 0x00, 0x00, 0xff, 0xff, 0x05, 0xe7, 0x44, 0x7e, 0x4d, 0x0a, 0x00, 0x00, } diff --git a/protocol/protobuf/command.pb.go b/protocol/protobuf/command.pb.go index 3257dc63c..8864b4b70 100644 --- a/protocol/protobuf/command.pb.go +++ b/protocol/protobuf/command.pb.go @@ -1,630 +1,435 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: command.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type RequestAddressForTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` - ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` + ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RequestAddressForTransaction) Reset() { - *x = RequestAddressForTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestAddressForTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestAddressForTransaction) ProtoMessage() {} - -func (x *RequestAddressForTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestAddressForTransaction.ProtoReflect.Descriptor instead. +func (m *RequestAddressForTransaction) Reset() { *m = RequestAddressForTransaction{} } +func (m *RequestAddressForTransaction) String() string { return proto.CompactTextString(m) } +func (*RequestAddressForTransaction) ProtoMessage() {} func (*RequestAddressForTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{0} + return fileDescriptor_213c0bb044472049, []int{0} } -func (x *RequestAddressForTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RequestAddressForTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequestAddressForTransaction.Unmarshal(m, b) +} +func (m *RequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequestAddressForTransaction.Marshal(b, m, deterministic) +} +func (m *RequestAddressForTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestAddressForTransaction.Merge(m, src) +} +func (m *RequestAddressForTransaction) XXX_Size() int { + return xxx_messageInfo_RequestAddressForTransaction.Size(m) +} +func (m *RequestAddressForTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_RequestAddressForTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestAddressForTransaction proto.InternalMessageInfo + +func (m *RequestAddressForTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *RequestAddressForTransaction) GetValue() string { - if x != nil { - return x.Value +func (m *RequestAddressForTransaction) GetValue() string { + if m != nil { + return m.Value } return "" } -func (x *RequestAddressForTransaction) GetContract() string { - if x != nil { - return x.Contract +func (m *RequestAddressForTransaction) GetContract() string { + if m != nil { + return m.Contract } return "" } -func (x *RequestAddressForTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *RequestAddressForTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type AcceptRequestAddressForTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AcceptRequestAddressForTransaction) Reset() { - *x = AcceptRequestAddressForTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptRequestAddressForTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptRequestAddressForTransaction) ProtoMessage() {} - -func (x *AcceptRequestAddressForTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcceptRequestAddressForTransaction.ProtoReflect.Descriptor instead. +func (m *AcceptRequestAddressForTransaction) Reset() { *m = AcceptRequestAddressForTransaction{} } +func (m *AcceptRequestAddressForTransaction) String() string { return proto.CompactTextString(m) } +func (*AcceptRequestAddressForTransaction) ProtoMessage() {} func (*AcceptRequestAddressForTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{1} + return fileDescriptor_213c0bb044472049, []int{1} } -func (x *AcceptRequestAddressForTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *AcceptRequestAddressForTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptRequestAddressForTransaction.Unmarshal(m, b) +} +func (m *AcceptRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptRequestAddressForTransaction.Marshal(b, m, deterministic) +} +func (m *AcceptRequestAddressForTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptRequestAddressForTransaction.Merge(m, src) +} +func (m *AcceptRequestAddressForTransaction) XXX_Size() int { + return xxx_messageInfo_AcceptRequestAddressForTransaction.Size(m) +} +func (m *AcceptRequestAddressForTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptRequestAddressForTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptRequestAddressForTransaction proto.InternalMessageInfo + +func (m *AcceptRequestAddressForTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *AcceptRequestAddressForTransaction) GetId() string { - if x != nil { - return x.Id +func (m *AcceptRequestAddressForTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AcceptRequestAddressForTransaction) GetAddress() string { - if x != nil { - return x.Address +func (m *AcceptRequestAddressForTransaction) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *AcceptRequestAddressForTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *AcceptRequestAddressForTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type DeclineRequestAddressForTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeclineRequestAddressForTransaction) Reset() { - *x = DeclineRequestAddressForTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeclineRequestAddressForTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeclineRequestAddressForTransaction) ProtoMessage() {} - -func (x *DeclineRequestAddressForTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeclineRequestAddressForTransaction.ProtoReflect.Descriptor instead. +func (m *DeclineRequestAddressForTransaction) Reset() { *m = DeclineRequestAddressForTransaction{} } +func (m *DeclineRequestAddressForTransaction) String() string { return proto.CompactTextString(m) } +func (*DeclineRequestAddressForTransaction) ProtoMessage() {} func (*DeclineRequestAddressForTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{2} + return fileDescriptor_213c0bb044472049, []int{2} } -func (x *DeclineRequestAddressForTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *DeclineRequestAddressForTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclineRequestAddressForTransaction.Unmarshal(m, b) +} +func (m *DeclineRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclineRequestAddressForTransaction.Marshal(b, m, deterministic) +} +func (m *DeclineRequestAddressForTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclineRequestAddressForTransaction.Merge(m, src) +} +func (m *DeclineRequestAddressForTransaction) XXX_Size() int { + return xxx_messageInfo_DeclineRequestAddressForTransaction.Size(m) +} +func (m *DeclineRequestAddressForTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_DeclineRequestAddressForTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclineRequestAddressForTransaction proto.InternalMessageInfo + +func (m *DeclineRequestAddressForTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *DeclineRequestAddressForTransaction) GetId() string { - if x != nil { - return x.Id +func (m *DeclineRequestAddressForTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *DeclineRequestAddressForTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *DeclineRequestAddressForTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type DeclineRequestTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeclineRequestTransaction) Reset() { - *x = DeclineRequestTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeclineRequestTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeclineRequestTransaction) ProtoMessage() {} - -func (x *DeclineRequestTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeclineRequestTransaction.ProtoReflect.Descriptor instead. +func (m *DeclineRequestTransaction) Reset() { *m = DeclineRequestTransaction{} } +func (m *DeclineRequestTransaction) String() string { return proto.CompactTextString(m) } +func (*DeclineRequestTransaction) ProtoMessage() {} func (*DeclineRequestTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{3} + return fileDescriptor_213c0bb044472049, []int{3} } -func (x *DeclineRequestTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *DeclineRequestTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclineRequestTransaction.Unmarshal(m, b) +} +func (m *DeclineRequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclineRequestTransaction.Marshal(b, m, deterministic) +} +func (m *DeclineRequestTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclineRequestTransaction.Merge(m, src) +} +func (m *DeclineRequestTransaction) XXX_Size() int { + return xxx_messageInfo_DeclineRequestTransaction.Size(m) +} +func (m *DeclineRequestTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_DeclineRequestTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclineRequestTransaction proto.InternalMessageInfo + +func (m *DeclineRequestTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *DeclineRequestTransaction) GetId() string { - if x != nil { - return x.Id +func (m *DeclineRequestTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *DeclineRequestTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *DeclineRequestTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type RequestTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` - ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` + ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RequestTransaction) Reset() { - *x = RequestTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestTransaction) ProtoMessage() {} - -func (x *RequestTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestTransaction.ProtoReflect.Descriptor instead. +func (m *RequestTransaction) Reset() { *m = RequestTransaction{} } +func (m *RequestTransaction) String() string { return proto.CompactTextString(m) } +func (*RequestTransaction) ProtoMessage() {} func (*RequestTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{4} + return fileDescriptor_213c0bb044472049, []int{4} } -func (x *RequestTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RequestTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequestTransaction.Unmarshal(m, b) +} +func (m *RequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequestTransaction.Marshal(b, m, deterministic) +} +func (m *RequestTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestTransaction.Merge(m, src) +} +func (m *RequestTransaction) XXX_Size() int { + return xxx_messageInfo_RequestTransaction.Size(m) +} +func (m *RequestTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_RequestTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestTransaction proto.InternalMessageInfo + +func (m *RequestTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *RequestTransaction) GetAddress() string { - if x != nil { - return x.Address +func (m *RequestTransaction) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *RequestTransaction) GetValue() string { - if x != nil { - return x.Value +func (m *RequestTransaction) GetValue() string { + if m != nil { + return m.Value } return "" } -func (x *RequestTransaction) GetContract() string { - if x != nil { - return x.Contract +func (m *RequestTransaction) GetContract() string { + if m != nil { + return m.Contract } return "" } -func (x *RequestTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *RequestTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type SendTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - TransactionHash string `protobuf:"bytes,3,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` - Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` - ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + TransactionHash string `protobuf:"bytes,3,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` + Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` + ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SendTransaction) Reset() { - *x = SendTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendTransaction) ProtoMessage() {} - -func (x *SendTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendTransaction.ProtoReflect.Descriptor instead. +func (m *SendTransaction) Reset() { *m = SendTransaction{} } +func (m *SendTransaction) String() string { return proto.CompactTextString(m) } +func (*SendTransaction) ProtoMessage() {} func (*SendTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{5} + return fileDescriptor_213c0bb044472049, []int{5} } -func (x *SendTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *SendTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendTransaction.Unmarshal(m, b) +} +func (m *SendTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendTransaction.Marshal(b, m, deterministic) +} +func (m *SendTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendTransaction.Merge(m, src) +} +func (m *SendTransaction) XXX_Size() int { + return xxx_messageInfo_SendTransaction.Size(m) +} +func (m *SendTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_SendTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_SendTransaction proto.InternalMessageInfo + +func (m *SendTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *SendTransaction) GetId() string { - if x != nil { - return x.Id +func (m *SendTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *SendTransaction) GetTransactionHash() string { - if x != nil { - return x.TransactionHash +func (m *SendTransaction) GetTransactionHash() string { + if m != nil { + return m.TransactionHash } return "" } -func (x *SendTransaction) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *SendTransaction) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *SendTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *SendTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -var File_command_proto protoreflect.FileDescriptor - -var file_command_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x7f, 0x0a, 0x1c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x7d, 0x0a, 0x22, 0x41, 0x63, - 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x23, 0x44, 0x65, 0x63, - 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, - 0x5a, 0x0a, 0x19, 0x44, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x8f, 0x01, 0x0a, 0x12, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x99, 0x01, - 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*RequestAddressForTransaction)(nil), "protobuf.RequestAddressForTransaction") + proto.RegisterType((*AcceptRequestAddressForTransaction)(nil), "protobuf.AcceptRequestAddressForTransaction") + proto.RegisterType((*DeclineRequestAddressForTransaction)(nil), "protobuf.DeclineRequestAddressForTransaction") + proto.RegisterType((*DeclineRequestTransaction)(nil), "protobuf.DeclineRequestTransaction") + proto.RegisterType((*RequestTransaction)(nil), "protobuf.RequestTransaction") + proto.RegisterType((*SendTransaction)(nil), "protobuf.SendTransaction") } -var ( - file_command_proto_rawDescOnce sync.Once - file_command_proto_rawDescData = file_command_proto_rawDesc -) - -func file_command_proto_rawDescGZIP() []byte { - file_command_proto_rawDescOnce.Do(func() { - file_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_command_proto_rawDescData) - }) - return file_command_proto_rawDescData +func init() { + proto.RegisterFile("command.proto", fileDescriptor_213c0bb044472049) } -var file_command_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_command_proto_goTypes = []interface{}{ - (*RequestAddressForTransaction)(nil), // 0: protobuf.RequestAddressForTransaction - (*AcceptRequestAddressForTransaction)(nil), // 1: protobuf.AcceptRequestAddressForTransaction - (*DeclineRequestAddressForTransaction)(nil), // 2: protobuf.DeclineRequestAddressForTransaction - (*DeclineRequestTransaction)(nil), // 3: protobuf.DeclineRequestTransaction - (*RequestTransaction)(nil), // 4: protobuf.RequestTransaction - (*SendTransaction)(nil), // 5: protobuf.SendTransaction -} -var file_command_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_command_proto_init() } -func file_command_proto_init() { - if File_command_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestAddressForTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptRequestAddressForTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclineRequestAddressForTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclineRequestTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_command_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_command_proto_goTypes, - DependencyIndexes: file_command_proto_depIdxs, - MessageInfos: file_command_proto_msgTypes, - }.Build() - File_command_proto = out.File - file_command_proto_rawDesc = nil - file_command_proto_goTypes = nil - file_command_proto_depIdxs = nil +var fileDescriptor_213c0bb044472049 = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x3d, 0x4f, 0xf3, 0x30, + 0x10, 0xc7, 0x95, 0x97, 0xbe, 0xdd, 0xf3, 0x94, 0x22, 0x0b, 0x89, 0x80, 0x3a, 0x54, 0x61, 0x29, + 0x4b, 0x19, 0x18, 0x99, 0x8a, 0x10, 0x82, 0x35, 0x30, 0x75, 0xa9, 0xdc, 0xb3, 0x21, 0x16, 0xa9, + 0x5d, 0x6c, 0x87, 0x0d, 0xf1, 0x11, 0x98, 0xf9, 0xb6, 0xa8, 0x4e, 0xda, 0x26, 0x43, 0x24, 0x40, + 0x9d, 0xec, 0xff, 0x9d, 0xee, 0xfe, 0x3f, 0xdf, 0x19, 0xfa, 0xa8, 0x96, 0x4b, 0x2a, 0xd9, 0x64, + 0xa5, 0x95, 0x55, 0xa4, 0xeb, 0x8e, 0x45, 0xfe, 0x14, 0x7f, 0xc0, 0x30, 0xe1, 0xaf, 0x39, 0x37, + 0x76, 0xca, 0x98, 0xe6, 0xc6, 0xdc, 0x2a, 0xfd, 0xa8, 0xa9, 0x34, 0x14, 0xad, 0x50, 0x92, 0x1c, + 0x41, 0x0b, 0x33, 0x85, 0x2f, 0x91, 0x37, 0xf2, 0xc6, 0x61, 0x52, 0x88, 0x75, 0xf4, 0x8d, 0x66, + 0x39, 0x8f, 0xfc, 0x91, 0x37, 0xee, 0x25, 0x85, 0x20, 0xa7, 0xd0, 0x45, 0x25, 0xad, 0xa6, 0x68, + 0xa3, 0xc0, 0x25, 0xb6, 0x9a, 0x1c, 0x43, 0x07, 0x53, 0x6a, 0xe7, 0x82, 0x45, 0xa1, 0x4b, 0xb5, + 0xd7, 0xf2, 0x9e, 0xc5, 0xef, 0x10, 0x4f, 0x11, 0xf9, 0xca, 0xfe, 0x01, 0xe3, 0x00, 0x7c, 0xc1, + 0x4a, 0x06, 0x5f, 0x30, 0x12, 0x41, 0x87, 0x16, 0xe5, 0xa5, 0xff, 0x46, 0x36, 0xdb, 0x33, 0x38, + 0xbb, 0xe1, 0x98, 0x09, 0xc9, 0xf7, 0xe0, 0x5f, 0x71, 0x09, 0x6a, 0x2e, 0x33, 0x38, 0xa9, 0xbb, + 0xec, 0xb1, 0xf7, 0xa7, 0x07, 0xe4, 0xc7, 0x5d, 0x2b, 0x13, 0xf2, 0xeb, 0x13, 0xda, 0xae, 0x34, + 0x68, 0x5a, 0x69, 0xd8, 0xbc, 0xd2, 0x56, 0x8d, 0xe8, 0xcb, 0x83, 0xc1, 0x03, 0x97, 0xec, 0xf7, + 0x8f, 0x3c, 0x87, 0x43, 0xbb, 0x2b, 0x9a, 0xa7, 0xd4, 0xa4, 0x25, 0xcf, 0xa0, 0x12, 0xbf, 0xa3, + 0x26, 0x25, 0x43, 0xe8, 0x19, 0xf1, 0x2c, 0xa9, 0xcd, 0x35, 0x77, 0x68, 0xff, 0x93, 0x5d, 0xa0, + 0x91, 0xed, 0xba, 0x3f, 0xfb, 0x37, 0xb9, 0xb8, 0xda, 0x7c, 0xff, 0x45, 0xdb, 0xdd, 0x2e, 0xbf, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x88, 0x09, 0x02, 0x5a, 0x20, 0x03, 0x00, 0x00, } diff --git a/protocol/protobuf/community_shard_key.pb.go b/protocol/protobuf/community_shard_key.pb.go index 1b2e6cbd7..60c1c3500 100644 --- a/protocol/protobuf/community_shard_key.pb.go +++ b/protocol/protobuf/community_shard_key.pb.go @@ -1,177 +1,107 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: community_shard_key.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CommunityShardKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - Clock uint64 `protobuf:"varint,3,opt,name=clock,proto3" json:"clock,omitempty"` - Shard *Shard `protobuf:"bytes,4,opt,name=shard,proto3" json:"shard,omitempty"` + CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + Clock uint64 `protobuf:"varint,3,opt,name=clock,proto3" json:"clock,omitempty"` + Shard *Shard `protobuf:"bytes,4,opt,name=shard,proto3" json:"shard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityShardKey) Reset() { - *x = CommunityShardKey{} - if protoimpl.UnsafeEnabled { - mi := &file_community_shard_key_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityShardKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityShardKey) ProtoMessage() {} - -func (x *CommunityShardKey) ProtoReflect() protoreflect.Message { - mi := &file_community_shard_key_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityShardKey.ProtoReflect.Descriptor instead. +func (m *CommunityShardKey) Reset() { *m = CommunityShardKey{} } +func (m *CommunityShardKey) String() string { return proto.CompactTextString(m) } +func (*CommunityShardKey) ProtoMessage() {} func (*CommunityShardKey) Descriptor() ([]byte, []int) { - return file_community_shard_key_proto_rawDescGZIP(), []int{0} + return fileDescriptor_03da8310cde9b7b2, []int{0} } -func (x *CommunityShardKey) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityShardKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityShardKey.Unmarshal(m, b) +} +func (m *CommunityShardKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityShardKey.Marshal(b, m, deterministic) +} +func (m *CommunityShardKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityShardKey.Merge(m, src) +} +func (m *CommunityShardKey) XXX_Size() int { + return xxx_messageInfo_CommunityShardKey.Size(m) +} +func (m *CommunityShardKey) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityShardKey.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityShardKey proto.InternalMessageInfo + +func (m *CommunityShardKey) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityShardKey) GetPrivateKey() []byte { - if x != nil { - return x.PrivateKey +func (m *CommunityShardKey) GetPrivateKey() []byte { + if m != nil { + return m.PrivateKey } return nil } -func (x *CommunityShardKey) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityShardKey) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityShardKey) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *CommunityShardKey) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } -var File_community_shard_key_proto protoreflect.FileDescriptor - -var file_community_shard_key_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, - 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*CommunityShardKey)(nil), "protobuf.CommunityShardKey") } -var ( - file_community_shard_key_proto_rawDescOnce sync.Once - file_community_shard_key_proto_rawDescData = file_community_shard_key_proto_rawDesc -) - -func file_community_shard_key_proto_rawDescGZIP() []byte { - file_community_shard_key_proto_rawDescOnce.Do(func() { - file_community_shard_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_community_shard_key_proto_rawDescData) - }) - return file_community_shard_key_proto_rawDescData +func init() { + proto.RegisterFile("community_shard_key.proto", fileDescriptor_03da8310cde9b7b2) } -var file_community_shard_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_community_shard_key_proto_goTypes = []interface{}{ - (*CommunityShardKey)(nil), // 0: protobuf.CommunityShardKey - (*Shard)(nil), // 1: protobuf.Shard -} -var file_community_shard_key_proto_depIdxs = []int32{ - 1, // 0: protobuf.CommunityShardKey.shard:type_name -> protobuf.Shard - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_community_shard_key_proto_init() } -func file_community_shard_key_proto_init() { - if File_community_shard_key_proto != nil { - return - } - file_shard_proto_init() - if !protoimpl.UnsafeEnabled { - file_community_shard_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityShardKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_community_shard_key_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_community_shard_key_proto_goTypes, - DependencyIndexes: file_community_shard_key_proto_depIdxs, - MessageInfos: file_community_shard_key_proto_msgTypes, - }.Build() - File_community_shard_key_proto = out.File - file_community_shard_key_proto_rawDesc = nil - file_community_shard_key_proto_goTypes = nil - file_community_shard_key_proto_depIdxs = nil +var fileDescriptor_03da8310cde9b7b2 = []byte{ + // 173 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xce, 0xcf, 0xcd, + 0x2d, 0xcd, 0xcb, 0x2c, 0xa9, 0x8c, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x89, 0xcf, 0x4e, 0xad, 0xd4, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x52, 0xdc, 0x60, 0x29, + 0x88, 0xb0, 0xd2, 0x14, 0x46, 0x2e, 0x41, 0x67, 0x98, 0xa6, 0x60, 0x90, 0x84, 0x77, 0x6a, 0xa5, + 0x90, 0x22, 0x17, 0x0f, 0xc2, 0xa4, 0xcc, 0x14, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x6e, + 0xb8, 0x98, 0x67, 0x8a, 0x90, 0x3c, 0x17, 0x77, 0x41, 0x51, 0x66, 0x59, 0x62, 0x49, 0x2a, 0xc8, + 0x12, 0x09, 0x26, 0xb0, 0x0a, 0x2e, 0xa8, 0x10, 0xc8, 0x0c, 0x11, 0x2e, 0xd6, 0xe4, 0x9c, 0xfc, + 0xe4, 0x6c, 0x09, 0x66, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x08, 0x47, 0x48, 0x95, 0x8b, 0x15, 0x6c, + 0xbd, 0x04, 0x8b, 0x02, 0xa3, 0x06, 0xb7, 0x11, 0xbf, 0x1e, 0xcc, 0x59, 0x7a, 0x60, 0xcb, 0x83, + 0x20, 0xb2, 0x4e, 0xbc, 0x51, 0xdc, 0x7a, 0xfa, 0xd6, 0x30, 0xb9, 0x24, 0x36, 0x30, 0xcb, 0x18, + 0x10, 0x00, 0x00, 0xff, 0xff, 0x7e, 0xda, 0x17, 0x6d, 0xe0, 0x00, 0x00, 0x00, } diff --git a/protocol/protobuf/contact.pb.go b/protocol/protobuf/contact.pb.go index 3eedcc001..8d4213ba7 100644 --- a/protocol/protobuf/contact.pb.go +++ b/protocol/protobuf/contact.pb.go @@ -1,101 +1,89 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: contact.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ContactRequestPropagatedState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalClock uint64 `protobuf:"varint,1,opt,name=local_clock,json=localClock,proto3" json:"local_clock,omitempty"` - LocalState uint64 `protobuf:"varint,2,opt,name=local_state,json=localState,proto3" json:"local_state,omitempty"` - RemoteClock uint64 `protobuf:"varint,3,opt,name=remote_clock,json=remoteClock,proto3" json:"remote_clock,omitempty"` - RemoteState uint64 `protobuf:"varint,4,opt,name=remote_state,json=remoteState,proto3" json:"remote_state,omitempty"` + LocalClock uint64 `protobuf:"varint,1,opt,name=local_clock,json=localClock,proto3" json:"local_clock,omitempty"` + LocalState uint64 `protobuf:"varint,2,opt,name=local_state,json=localState,proto3" json:"local_state,omitempty"` + RemoteClock uint64 `protobuf:"varint,3,opt,name=remote_clock,json=remoteClock,proto3" json:"remote_clock,omitempty"` + RemoteState uint64 `protobuf:"varint,4,opt,name=remote_state,json=remoteState,proto3" json:"remote_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ContactRequestPropagatedState) Reset() { - *x = ContactRequestPropagatedState{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContactRequestPropagatedState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContactRequestPropagatedState) ProtoMessage() {} - -func (x *ContactRequestPropagatedState) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContactRequestPropagatedState.ProtoReflect.Descriptor instead. +func (m *ContactRequestPropagatedState) Reset() { *m = ContactRequestPropagatedState{} } +func (m *ContactRequestPropagatedState) String() string { return proto.CompactTextString(m) } +func (*ContactRequestPropagatedState) ProtoMessage() {} func (*ContactRequestPropagatedState) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{0} + return fileDescriptor_a5036fff2565fb15, []int{0} } -func (x *ContactRequestPropagatedState) GetLocalClock() uint64 { - if x != nil { - return x.LocalClock +func (m *ContactRequestPropagatedState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactRequestPropagatedState.Unmarshal(m, b) +} +func (m *ContactRequestPropagatedState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactRequestPropagatedState.Marshal(b, m, deterministic) +} +func (m *ContactRequestPropagatedState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactRequestPropagatedState.Merge(m, src) +} +func (m *ContactRequestPropagatedState) XXX_Size() int { + return xxx_messageInfo_ContactRequestPropagatedState.Size(m) +} +func (m *ContactRequestPropagatedState) XXX_DiscardUnknown() { + xxx_messageInfo_ContactRequestPropagatedState.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactRequestPropagatedState proto.InternalMessageInfo + +func (m *ContactRequestPropagatedState) GetLocalClock() uint64 { + if m != nil { + return m.LocalClock } return 0 } -func (x *ContactRequestPropagatedState) GetLocalState() uint64 { - if x != nil { - return x.LocalState +func (m *ContactRequestPropagatedState) GetLocalState() uint64 { + if m != nil { + return m.LocalState } return 0 } -func (x *ContactRequestPropagatedState) GetRemoteClock() uint64 { - if x != nil { - return x.RemoteClock +func (m *ContactRequestPropagatedState) GetRemoteClock() uint64 { + if m != nil { + return m.RemoteClock } return 0 } -func (x *ContactRequestPropagatedState) GetRemoteState() uint64 { - if x != nil { - return x.RemoteState +func (m *ContactRequestPropagatedState) GetRemoteState() uint64 { + if m != nil { + return m.RemoteState } return 0 } type ContactUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` ProfileImage string `protobuf:"bytes,3,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"` @@ -103,346 +91,212 @@ type ContactUpdate struct { ContactRequestClock uint64 `protobuf:"varint,5,opt,name=contact_request_clock,json=contactRequestClock,proto3" json:"contact_request_clock,omitempty"` ContactRequestPropagatedState *ContactRequestPropagatedState `protobuf:"bytes,6,opt,name=contact_request_propagated_state,json=contactRequestPropagatedState,proto3" json:"contact_request_propagated_state,omitempty"` PublicKey string `protobuf:"bytes,7,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ContactUpdate) Reset() { - *x = ContactUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContactUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContactUpdate) ProtoMessage() {} - -func (x *ContactUpdate) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContactUpdate.ProtoReflect.Descriptor instead. +func (m *ContactUpdate) Reset() { *m = ContactUpdate{} } +func (m *ContactUpdate) String() string { return proto.CompactTextString(m) } +func (*ContactUpdate) ProtoMessage() {} func (*ContactUpdate) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{1} + return fileDescriptor_a5036fff2565fb15, []int{1} } -func (x *ContactUpdate) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *ContactUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactUpdate.Unmarshal(m, b) +} +func (m *ContactUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactUpdate.Marshal(b, m, deterministic) +} +func (m *ContactUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactUpdate.Merge(m, src) +} +func (m *ContactUpdate) XXX_Size() int { + return xxx_messageInfo_ContactUpdate.Size(m) +} +func (m *ContactUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_ContactUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactUpdate proto.InternalMessageInfo + +func (m *ContactUpdate) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *ContactUpdate) GetEnsName() string { - if x != nil { - return x.EnsName +func (m *ContactUpdate) GetEnsName() string { + if m != nil { + return m.EnsName } return "" } -func (x *ContactUpdate) GetProfileImage() string { - if x != nil { - return x.ProfileImage +func (m *ContactUpdate) GetProfileImage() string { + if m != nil { + return m.ProfileImage } return "" } -func (x *ContactUpdate) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *ContactUpdate) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *ContactUpdate) GetContactRequestClock() uint64 { - if x != nil { - return x.ContactRequestClock +func (m *ContactUpdate) GetContactRequestClock() uint64 { + if m != nil { + return m.ContactRequestClock } return 0 } -func (x *ContactUpdate) GetContactRequestPropagatedState() *ContactRequestPropagatedState { - if x != nil { - return x.ContactRequestPropagatedState +func (m *ContactUpdate) GetContactRequestPropagatedState() *ContactRequestPropagatedState { + if m != nil { + return m.ContactRequestPropagatedState } return nil } -func (x *ContactUpdate) GetPublicKey() string { - if x != nil { - return x.PublicKey +func (m *ContactUpdate) GetPublicKey() string { + if m != nil { + return m.PublicKey } return "" } type AcceptContactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AcceptContactRequest) Reset() { - *x = AcceptContactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptContactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptContactRequest) ProtoMessage() {} - -func (x *AcceptContactRequest) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcceptContactRequest.ProtoReflect.Descriptor instead. +func (m *AcceptContactRequest) Reset() { *m = AcceptContactRequest{} } +func (m *AcceptContactRequest) String() string { return proto.CompactTextString(m) } +func (*AcceptContactRequest) ProtoMessage() {} func (*AcceptContactRequest) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{2} + return fileDescriptor_a5036fff2565fb15, []int{2} } -func (x *AcceptContactRequest) GetId() string { - if x != nil { - return x.Id +func (m *AcceptContactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptContactRequest.Unmarshal(m, b) +} +func (m *AcceptContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptContactRequest.Marshal(b, m, deterministic) +} +func (m *AcceptContactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptContactRequest.Merge(m, src) +} +func (m *AcceptContactRequest) XXX_Size() int { + return xxx_messageInfo_AcceptContactRequest.Size(m) +} +func (m *AcceptContactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptContactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptContactRequest proto.InternalMessageInfo + +func (m *AcceptContactRequest) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AcceptContactRequest) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *AcceptContactRequest) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } type RetractContactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RetractContactRequest) Reset() { - *x = RetractContactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetractContactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetractContactRequest) ProtoMessage() {} - -func (x *RetractContactRequest) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RetractContactRequest.ProtoReflect.Descriptor instead. +func (m *RetractContactRequest) Reset() { *m = RetractContactRequest{} } +func (m *RetractContactRequest) String() string { return proto.CompactTextString(m) } +func (*RetractContactRequest) ProtoMessage() {} func (*RetractContactRequest) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{3} + return fileDescriptor_a5036fff2565fb15, []int{3} } -func (x *RetractContactRequest) GetId() string { - if x != nil { - return x.Id +func (m *RetractContactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetractContactRequest.Unmarshal(m, b) +} +func (m *RetractContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetractContactRequest.Marshal(b, m, deterministic) +} +func (m *RetractContactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetractContactRequest.Merge(m, src) +} +func (m *RetractContactRequest) XXX_Size() int { + return xxx_messageInfo_RetractContactRequest.Size(m) +} +func (m *RetractContactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RetractContactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RetractContactRequest proto.InternalMessageInfo + +func (m *RetractContactRequest) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *RetractContactRequest) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RetractContactRequest) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -var File_contact_proto protoreflect.FileDescriptor - -var file_contact_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xa7, 0x01, 0x0a, 0x1d, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, - 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, - 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x63, 0x6b, - 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x22, 0xcd, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x65, - 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, - 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, - 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, - 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x70, 0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x1d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x22, 0x3c, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x22, 0x3d, 0x0a, 0x15, 0x52, 0x65, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, - 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*ContactRequestPropagatedState)(nil), "protobuf.ContactRequestPropagatedState") + proto.RegisterType((*ContactUpdate)(nil), "protobuf.ContactUpdate") + proto.RegisterType((*AcceptContactRequest)(nil), "protobuf.AcceptContactRequest") + proto.RegisterType((*RetractContactRequest)(nil), "protobuf.RetractContactRequest") } -var ( - file_contact_proto_rawDescOnce sync.Once - file_contact_proto_rawDescData = file_contact_proto_rawDesc -) - -func file_contact_proto_rawDescGZIP() []byte { - file_contact_proto_rawDescOnce.Do(func() { - file_contact_proto_rawDescData = protoimpl.X.CompressGZIP(file_contact_proto_rawDescData) - }) - return file_contact_proto_rawDescData +func init() { + proto.RegisterFile("contact.proto", fileDescriptor_a5036fff2565fb15) } -var file_contact_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_contact_proto_goTypes = []interface{}{ - (*ContactRequestPropagatedState)(nil), // 0: protobuf.ContactRequestPropagatedState - (*ContactUpdate)(nil), // 1: protobuf.ContactUpdate - (*AcceptContactRequest)(nil), // 2: protobuf.AcceptContactRequest - (*RetractContactRequest)(nil), // 3: protobuf.RetractContactRequest -} -var file_contact_proto_depIdxs = []int32{ - 0, // 0: protobuf.ContactUpdate.contact_request_propagated_state:type_name -> protobuf.ContactRequestPropagatedState - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_contact_proto_init() } -func file_contact_proto_init() { - if File_contact_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_contact_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactRequestPropagatedState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptContactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetractContactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contact_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_contact_proto_goTypes, - DependencyIndexes: file_contact_proto_depIdxs, - MessageInfos: file_contact_proto_msgTypes, - }.Build() - File_contact_proto = out.File - file_contact_proto_rawDesc = nil - file_contact_proto_goTypes = nil - file_contact_proto_depIdxs = nil +var fileDescriptor_a5036fff2565fb15 = []byte{ + // 348 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x51, 0x3f, 0x4f, 0xfb, 0x30, + 0x14, 0x54, 0xf2, 0xeb, 0xbf, 0xbc, 0x34, 0xbf, 0x21, 0xb4, 0x52, 0x19, 0x2a, 0x4a, 0x18, 0xe8, + 0x14, 0xa4, 0x32, 0x02, 0x03, 0x74, 0x42, 0x48, 0x08, 0x19, 0xb1, 0xb0, 0x44, 0xae, 0xf3, 0x5a, + 0x45, 0x4d, 0x62, 0xe3, 0xb8, 0x43, 0x3f, 0x11, 0x9f, 0x86, 0xef, 0x84, 0x62, 0xbb, 0x34, 0x65, + 0xe8, 0xc0, 0x94, 0xf8, 0x7c, 0xef, 0x7c, 0x77, 0x0f, 0x02, 0xc6, 0x4b, 0x45, 0x99, 0x8a, 0x85, + 0xe4, 0x8a, 0x87, 0x3d, 0xfd, 0x59, 0x6c, 0x96, 0xd1, 0xa7, 0x03, 0xe3, 0xb9, 0xb9, 0x23, 0xf8, + 0xb1, 0xc1, 0x4a, 0xbd, 0x48, 0x2e, 0xe8, 0x8a, 0x2a, 0x4c, 0x5f, 0x15, 0x55, 0x18, 0x9e, 0x81, + 0x9f, 0x73, 0x46, 0xf3, 0x84, 0xe5, 0x9c, 0xad, 0x47, 0xce, 0xc4, 0x99, 0xb6, 0x08, 0x68, 0x68, + 0x5e, 0x23, 0x7b, 0x42, 0x55, 0xf3, 0x47, 0x6e, 0x83, 0x60, 0x14, 0xce, 0xa1, 0x2f, 0xb1, 0xe0, + 0x0a, 0xad, 0xc4, 0x3f, 0xcd, 0xf0, 0x0d, 0x66, 0x34, 0xf6, 0x14, 0x23, 0xd2, 0x6a, 0x52, 0xb4, + 0x4a, 0xf4, 0xe5, 0x42, 0x60, 0x9d, 0xbe, 0x89, 0xb4, 0xd6, 0x1d, 0x40, 0xbb, 0xe9, 0xc9, 0x1c, + 0xc2, 0x53, 0xe8, 0x61, 0x59, 0x25, 0x25, 0x2d, 0x8c, 0x17, 0x8f, 0x74, 0xb1, 0xac, 0x9e, 0x69, + 0x81, 0xe1, 0x05, 0x04, 0x42, 0xf2, 0x65, 0x96, 0x63, 0x92, 0x15, 0x74, 0x85, 0xda, 0x89, 0x47, + 0xfa, 0x16, 0x7c, 0xac, 0xb1, 0xda, 0x4a, 0x9a, 0x55, 0x22, 0xa7, 0x5b, 0xa3, 0xd1, 0xd2, 0x1c, + 0xdf, 0x62, 0x5a, 0x67, 0x06, 0x43, 0xdb, 0x67, 0x22, 0x4d, 0x69, 0x36, 0x59, 0x5b, 0x1b, 0x39, + 0x61, 0x07, 0x85, 0x9a, 0x84, 0x02, 0x26, 0xbf, 0x67, 0xc4, 0x4f, 0xd3, 0x36, 0x75, 0x67, 0xe2, + 0x4c, 0xfd, 0xd9, 0x65, 0xbc, 0xdb, 0x4e, 0x7c, 0x74, 0x33, 0x64, 0xcc, 0x8e, 0x2e, 0x6e, 0x0c, + 0x20, 0x36, 0x8b, 0x3c, 0x63, 0xc9, 0x1a, 0xb7, 0xa3, 0xae, 0x8e, 0xe1, 0x19, 0xe4, 0x09, 0xb7, + 0xd1, 0x2d, 0x0c, 0xee, 0x19, 0x43, 0xa1, 0x0e, 0x1f, 0x09, 0xff, 0x83, 0x9b, 0xa5, 0xba, 0x52, + 0x8f, 0xb8, 0x59, 0xba, 0x6f, 0xd9, 0x6d, 0xb4, 0x1c, 0xdd, 0xc1, 0x90, 0xa0, 0x92, 0x94, 0xfd, + 0x69, 0xfc, 0x21, 0x78, 0xf7, 0xe3, 0xab, 0x9b, 0x5d, 0xce, 0x45, 0x47, 0xff, 0x5d, 0x7f, 0x07, + 0x00, 0x00, 0xff, 0xff, 0xec, 0x6f, 0x01, 0xce, 0xa7, 0x02, 0x00, 0x00, } diff --git a/protocol/protobuf/contact_verification.pb.go b/protocol/protobuf/contact_verification.pb.go index 44c129dcd..db8442919 100644 --- a/protocol/protobuf/contact_verification.pb.go +++ b/protocol/protobuf/contact_verification.pb.go @@ -1,380 +1,245 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: contact_verification.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type RequestContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RequestContactVerification) Reset() { - *x = RequestContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestContactVerification) ProtoMessage() {} - -func (x *RequestContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestContactVerification.ProtoReflect.Descriptor instead. +func (m *RequestContactVerification) Reset() { *m = RequestContactVerification{} } +func (m *RequestContactVerification) String() string { return proto.CompactTextString(m) } +func (*RequestContactVerification) ProtoMessage() {} func (*RequestContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{0} + return fileDescriptor_d6997df64de39454, []int{0} } -func (x *RequestContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RequestContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequestContactVerification.Unmarshal(m, b) +} +func (m *RequestContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequestContactVerification.Marshal(b, m, deterministic) +} +func (m *RequestContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestContactVerification.Merge(m, src) +} +func (m *RequestContactVerification) XXX_Size() int { + return xxx_messageInfo_RequestContactVerification.Size(m) +} +func (m *RequestContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_RequestContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestContactVerification proto.InternalMessageInfo + +func (m *RequestContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *RequestContactVerification) GetChallenge() string { - if x != nil { - return x.Challenge +func (m *RequestContactVerification) GetChallenge() string { + if m != nil { + return m.Challenge } return "" } type AcceptContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AcceptContactVerification) Reset() { - *x = AcceptContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptContactVerification) ProtoMessage() {} - -func (x *AcceptContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcceptContactVerification.ProtoReflect.Descriptor instead. +func (m *AcceptContactVerification) Reset() { *m = AcceptContactVerification{} } +func (m *AcceptContactVerification) String() string { return proto.CompactTextString(m) } +func (*AcceptContactVerification) ProtoMessage() {} func (*AcceptContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{1} + return fileDescriptor_d6997df64de39454, []int{1} } -func (x *AcceptContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *AcceptContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptContactVerification.Unmarshal(m, b) +} +func (m *AcceptContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptContactVerification.Marshal(b, m, deterministic) +} +func (m *AcceptContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptContactVerification.Merge(m, src) +} +func (m *AcceptContactVerification) XXX_Size() int { + return xxx_messageInfo_AcceptContactVerification.Size(m) +} +func (m *AcceptContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptContactVerification proto.InternalMessageInfo + +func (m *AcceptContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *AcceptContactVerification) GetId() string { - if x != nil { - return x.Id +func (m *AcceptContactVerification) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AcceptContactVerification) GetResponse() string { - if x != nil { - return x.Response +func (m *AcceptContactVerification) GetResponse() string { + if m != nil { + return m.Response } return "" } type DeclineContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeclineContactVerification) Reset() { - *x = DeclineContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeclineContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeclineContactVerification) ProtoMessage() {} - -func (x *DeclineContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeclineContactVerification.ProtoReflect.Descriptor instead. +func (m *DeclineContactVerification) Reset() { *m = DeclineContactVerification{} } +func (m *DeclineContactVerification) String() string { return proto.CompactTextString(m) } +func (*DeclineContactVerification) ProtoMessage() {} func (*DeclineContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{2} + return fileDescriptor_d6997df64de39454, []int{2} } -func (x *DeclineContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *DeclineContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclineContactVerification.Unmarshal(m, b) +} +func (m *DeclineContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclineContactVerification.Marshal(b, m, deterministic) +} +func (m *DeclineContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclineContactVerification.Merge(m, src) +} +func (m *DeclineContactVerification) XXX_Size() int { + return xxx_messageInfo_DeclineContactVerification.Size(m) +} +func (m *DeclineContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_DeclineContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclineContactVerification proto.InternalMessageInfo + +func (m *DeclineContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *DeclineContactVerification) GetId() string { - if x != nil { - return x.Id +func (m *DeclineContactVerification) GetId() string { + if m != nil { + return m.Id } return "" } type CancelContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CancelContactVerification) Reset() { - *x = CancelContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelContactVerification) ProtoMessage() {} - -func (x *CancelContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelContactVerification.ProtoReflect.Descriptor instead. +func (m *CancelContactVerification) Reset() { *m = CancelContactVerification{} } +func (m *CancelContactVerification) String() string { return proto.CompactTextString(m) } +func (*CancelContactVerification) ProtoMessage() {} func (*CancelContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{3} + return fileDescriptor_d6997df64de39454, []int{3} } -func (x *CancelContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CancelContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelContactVerification.Unmarshal(m, b) +} +func (m *CancelContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelContactVerification.Marshal(b, m, deterministic) +} +func (m *CancelContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelContactVerification.Merge(m, src) +} +func (m *CancelContactVerification) XXX_Size() int { + return xxx_messageInfo_CancelContactVerification.Size(m) +} +func (m *CancelContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_CancelContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelContactVerification proto.InternalMessageInfo + +func (m *CancelContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CancelContactVerification) GetId() string { - if x != nil { - return x.Id +func (m *CancelContactVerification) GetId() string { + if m != nil { + return m.Id } return "" } -var File_contact_verification_proto protoreflect.FileDescriptor - -var file_contact_verification_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x50, 0x0a, 0x1a, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, - 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x5d, 0x0a, 0x19, 0x41, 0x63, 0x63, 0x65, - 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x63, 0x6c, 0x69, - 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x19, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x0d, - 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*RequestContactVerification)(nil), "protobuf.RequestContactVerification") + proto.RegisterType((*AcceptContactVerification)(nil), "protobuf.AcceptContactVerification") + proto.RegisterType((*DeclineContactVerification)(nil), "protobuf.DeclineContactVerification") + proto.RegisterType((*CancelContactVerification)(nil), "protobuf.CancelContactVerification") } -var ( - file_contact_verification_proto_rawDescOnce sync.Once - file_contact_verification_proto_rawDescData = file_contact_verification_proto_rawDesc -) - -func file_contact_verification_proto_rawDescGZIP() []byte { - file_contact_verification_proto_rawDescOnce.Do(func() { - file_contact_verification_proto_rawDescData = protoimpl.X.CompressGZIP(file_contact_verification_proto_rawDescData) - }) - return file_contact_verification_proto_rawDescData +func init() { + proto.RegisterFile("contact_verification.proto", fileDescriptor_d6997df64de39454) } -var file_contact_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_contact_verification_proto_goTypes = []interface{}{ - (*RequestContactVerification)(nil), // 0: protobuf.RequestContactVerification - (*AcceptContactVerification)(nil), // 1: protobuf.AcceptContactVerification - (*DeclineContactVerification)(nil), // 2: protobuf.DeclineContactVerification - (*CancelContactVerification)(nil), // 3: protobuf.CancelContactVerification -} -var file_contact_verification_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_contact_verification_proto_init() } -func file_contact_verification_proto_init() { - if File_contact_verification_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_contact_verification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_verification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_verification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclineContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_verification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contact_verification_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_contact_verification_proto_goTypes, - DependencyIndexes: file_contact_verification_proto_depIdxs, - MessageInfos: file_contact_verification_proto_msgTypes, - }.Build() - File_contact_verification_proto = out.File - file_contact_verification_proto_rawDesc = nil - file_contact_verification_proto_goTypes = nil - file_contact_verification_proto_depIdxs = nil +var fileDescriptor_d6997df64de39454 = []byte{ + // 194 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0xcf, 0x2b, + 0x49, 0x4c, 0x2e, 0x89, 0x2f, 0x4b, 0x2d, 0xca, 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, + 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0x01, 0x5c, + 0x52, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0xce, 0x10, 0xe5, 0x61, 0x48, 0xaa, 0x85, 0x44, + 0xb8, 0x58, 0x93, 0x73, 0xf2, 0x93, 0xb3, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, + 0x21, 0x19, 0x2e, 0xce, 0xe4, 0x8c, 0xc4, 0x9c, 0x9c, 0xd4, 0xbc, 0xf4, 0x54, 0x09, 0x66, 0x05, + 0x46, 0x0d, 0xce, 0x20, 0x84, 0x80, 0x52, 0x2c, 0x97, 0xa4, 0x63, 0x72, 0x72, 0x6a, 0x01, 0x09, + 0x06, 0xf2, 0x71, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x81, 0x4d, 0x62, 0xca, 0x4c, 0x11, 0x92, 0xe2, + 0xe2, 0x28, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x86, 0x99, 0x0f, 0xe7, 0x2b, 0x39, 0x71, 0x49, + 0xb9, 0xa4, 0x26, 0xe7, 0x64, 0xe6, 0xa5, 0x92, 0x6d, 0xbe, 0x92, 0x23, 0x97, 0xa4, 0x73, 0x62, + 0x5e, 0x72, 0x6a, 0x0e, 0xd9, 0x46, 0x38, 0xf1, 0x46, 0x71, 0xeb, 0xe9, 0x5b, 0xc3, 0x82, 0x31, + 0x89, 0x0d, 0xcc, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x2b, 0x89, 0x8f, 0x75, 0x01, + 0x00, 0x00, } diff --git a/protocol/protobuf/group_chat_invitation.pb.go b/protocol/protobuf/group_chat_invitation.pb.go index ed1a98a2d..fffce089d 100644 --- a/protocol/protobuf/group_chat_invitation.pb.go +++ b/protocol/protobuf/group_chat_invitation.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: group_chat_invitation.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GroupChatInvitation_State int32 @@ -29,54 +29,29 @@ const ( GroupChatInvitation_APPROVED GroupChatInvitation_State = 3 ) -// Enum value maps for GroupChatInvitation_State. -var ( - GroupChatInvitation_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "REQUEST", - 2: "REJECTED", - 3: "APPROVED", - } - GroupChatInvitation_State_value = map[string]int32{ - "UNKNOWN": 0, - "REQUEST": 1, - "REJECTED": 2, - "APPROVED": 3, - } -) +var GroupChatInvitation_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "REQUEST", + 2: "REJECTED", + 3: "APPROVED", +} -func (x GroupChatInvitation_State) Enum() *GroupChatInvitation_State { - p := new(GroupChatInvitation_State) - *p = x - return p +var GroupChatInvitation_State_value = map[string]int32{ + "UNKNOWN": 0, + "REQUEST": 1, + "REJECTED": 2, + "APPROVED": 3, } func (x GroupChatInvitation_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(GroupChatInvitation_State_name, int32(x)) } -func (GroupChatInvitation_State) Descriptor() protoreflect.EnumDescriptor { - return file_group_chat_invitation_proto_enumTypes[0].Descriptor() -} - -func (GroupChatInvitation_State) Type() protoreflect.EnumType { - return &file_group_chat_invitation_proto_enumTypes[0] -} - -func (x GroupChatInvitation_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GroupChatInvitation_State.Descriptor instead. func (GroupChatInvitation_State) EnumDescriptor() ([]byte, []int) { - return file_group_chat_invitation_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_a6a73333de6a8ebe, []int{0, 0} } type GroupChatInvitation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // clock Lamport timestamp of the chat message Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // chat_id the ID of the private group chat the message belongs to, for query efficiency the chat_id is stored in the db even though the @@ -84,157 +59,90 @@ type GroupChatInvitation struct { ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` IntroductionMessage string `protobuf:"bytes,3,opt,name=introduction_message,json=introductionMessage,proto3" json:"introduction_message,omitempty"` // state of invitation - State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"` + State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GroupChatInvitation) Reset() { - *x = GroupChatInvitation{} - if protoimpl.UnsafeEnabled { - mi := &file_group_chat_invitation_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupChatInvitation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupChatInvitation) ProtoMessage() {} - -func (x *GroupChatInvitation) ProtoReflect() protoreflect.Message { - mi := &file_group_chat_invitation_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupChatInvitation.ProtoReflect.Descriptor instead. +func (m *GroupChatInvitation) Reset() { *m = GroupChatInvitation{} } +func (m *GroupChatInvitation) String() string { return proto.CompactTextString(m) } +func (*GroupChatInvitation) ProtoMessage() {} func (*GroupChatInvitation) Descriptor() ([]byte, []int) { - return file_group_chat_invitation_proto_rawDescGZIP(), []int{0} + return fileDescriptor_a6a73333de6a8ebe, []int{0} } -func (x *GroupChatInvitation) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *GroupChatInvitation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GroupChatInvitation.Unmarshal(m, b) +} +func (m *GroupChatInvitation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GroupChatInvitation.Marshal(b, m, deterministic) +} +func (m *GroupChatInvitation) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupChatInvitation.Merge(m, src) +} +func (m *GroupChatInvitation) XXX_Size() int { + return xxx_messageInfo_GroupChatInvitation.Size(m) +} +func (m *GroupChatInvitation) XXX_DiscardUnknown() { + xxx_messageInfo_GroupChatInvitation.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupChatInvitation proto.InternalMessageInfo + +func (m *GroupChatInvitation) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *GroupChatInvitation) GetChatId() string { - if x != nil { - return x.ChatId +func (m *GroupChatInvitation) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *GroupChatInvitation) GetIntroductionMessage() string { - if x != nil { - return x.IntroductionMessage +func (m *GroupChatInvitation) GetIntroductionMessage() string { + if m != nil { + return m.IntroductionMessage } return "" } -func (x *GroupChatInvitation) GetState() GroupChatInvitation_State { - if x != nil { - return x.State +func (m *GroupChatInvitation) GetState() GroupChatInvitation_State { + if m != nil { + return m.State } return GroupChatInvitation_UNKNOWN } -var File_group_chat_invitation_proto protoreflect.FileDescriptor - -var file_group_chat_invitation_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x76, - 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xf1, 0x01, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x31, - 0x0a, 0x14, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x69, 0x6e, - 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3d, 0x0a, 0x05, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, - 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, - 0x08, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, - 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.GroupChatInvitation_State", GroupChatInvitation_State_name, GroupChatInvitation_State_value) + proto.RegisterType((*GroupChatInvitation)(nil), "protobuf.GroupChatInvitation") } -var ( - file_group_chat_invitation_proto_rawDescOnce sync.Once - file_group_chat_invitation_proto_rawDescData = file_group_chat_invitation_proto_rawDesc -) - -func file_group_chat_invitation_proto_rawDescGZIP() []byte { - file_group_chat_invitation_proto_rawDescOnce.Do(func() { - file_group_chat_invitation_proto_rawDescData = protoimpl.X.CompressGZIP(file_group_chat_invitation_proto_rawDescData) - }) - return file_group_chat_invitation_proto_rawDescData +func init() { + proto.RegisterFile("group_chat_invitation.proto", fileDescriptor_a6a73333de6a8ebe) } -var file_group_chat_invitation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_group_chat_invitation_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_group_chat_invitation_proto_goTypes = []interface{}{ - (GroupChatInvitation_State)(0), // 0: protobuf.GroupChatInvitation.State - (*GroupChatInvitation)(nil), // 1: protobuf.GroupChatInvitation -} -var file_group_chat_invitation_proto_depIdxs = []int32{ - 0, // 0: protobuf.GroupChatInvitation.state:type_name -> protobuf.GroupChatInvitation.State - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_group_chat_invitation_proto_init() } -func file_group_chat_invitation_proto_init() { - if File_group_chat_invitation_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_group_chat_invitation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupChatInvitation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_group_chat_invitation_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_group_chat_invitation_proto_goTypes, - DependencyIndexes: file_group_chat_invitation_proto_depIdxs, - EnumInfos: file_group_chat_invitation_proto_enumTypes, - MessageInfos: file_group_chat_invitation_proto_msgTypes, - }.Build() - File_group_chat_invitation_proto = out.File - file_group_chat_invitation_proto_rawDesc = nil - file_group_chat_invitation_proto_goTypes = nil - file_group_chat_invitation_proto_depIdxs = nil +var fileDescriptor_a6a73333de6a8ebe = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0x2f, 0xca, 0x2f, + 0x2d, 0x88, 0x4f, 0xce, 0x48, 0x2c, 0x89, 0xcf, 0xcc, 0x2b, 0xcb, 0x2c, 0x49, 0x2c, 0xc9, 0xcc, + 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0x1f, + 0x19, 0xb9, 0x84, 0xdd, 0x41, 0x2a, 0x9d, 0x33, 0x12, 0x4b, 0x3c, 0xe1, 0xea, 0x84, 0x44, 0xb8, + 0x58, 0x93, 0x73, 0xf2, 0x93, 0xb3, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, 0x21, + 0x71, 0x2e, 0x76, 0x88, 0x81, 0x29, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x6c, 0x20, 0xae, + 0x67, 0x8a, 0x90, 0x21, 0x97, 0x48, 0x66, 0x5e, 0x49, 0x51, 0x7e, 0x4a, 0x69, 0x32, 0x48, 0x7b, + 0x7c, 0x6e, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0xaa, 0x04, 0x33, 0x58, 0x95, 0x30, 0xb2, 0x9c, 0x2f, + 0x44, 0x4a, 0xc8, 0x92, 0x8b, 0xb5, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0x82, 0x45, 0x81, 0x51, 0x83, + 0xcf, 0x48, 0x59, 0x0f, 0xe6, 0x26, 0x3d, 0x2c, 0xee, 0xd1, 0x0b, 0x06, 0x29, 0x0d, 0x82, 0xe8, + 0x50, 0xb2, 0xe5, 0x62, 0x05, 0xf3, 0x85, 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, + 0xfd, 0x04, 0x18, 0x40, 0x9c, 0x20, 0xd7, 0xc0, 0x50, 0xd7, 0xe0, 0x10, 0x01, 0x46, 0x21, 0x1e, + 0x2e, 0x8e, 0x20, 0x57, 0x2f, 0x57, 0xe7, 0x10, 0x57, 0x17, 0x01, 0x26, 0x10, 0xcf, 0x31, 0x20, + 0x20, 0xc8, 0x3f, 0xcc, 0xd5, 0x45, 0x80, 0xd9, 0x89, 0x37, 0x8a, 0x5b, 0x4f, 0xdf, 0x1a, 0x66, + 0x5d, 0x12, 0x1b, 0x98, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x4c, 0x19, 0xcd, 0x32, + 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/profile_showcase.pb.go b/protocol/protobuf/profile_showcase.pb.go index b9c6d21ac..c5147ffcc 100644 --- a/protocol/protobuf/profile_showcase.pb.go +++ b/protocol/protobuf/profile_showcase.pb.go @@ -1,676 +1,567 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: profile_showcase.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ProfileShowcaseCommunity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId string `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + CommunityId string `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseCommunity) Reset() { - *x = ProfileShowcaseCommunity{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseCommunity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseCommunity) ProtoMessage() {} - -func (x *ProfileShowcaseCommunity) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseCommunity.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseCommunity) Reset() { *m = ProfileShowcaseCommunity{} } +func (m *ProfileShowcaseCommunity) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseCommunity) ProtoMessage() {} func (*ProfileShowcaseCommunity) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{0} + return fileDescriptor_5bcd51b424a05798, []int{0} } -func (x *ProfileShowcaseCommunity) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseCommunity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseCommunity.Unmarshal(m, b) +} +func (m *ProfileShowcaseCommunity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseCommunity.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseCommunity) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseCommunity.Merge(m, src) +} +func (m *ProfileShowcaseCommunity) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseCommunity.Size(m) +} +func (m *ProfileShowcaseCommunity) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseCommunity.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseCommunity proto.InternalMessageInfo + +func (m *ProfileShowcaseCommunity) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } -func (x *ProfileShowcaseCommunity) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCommunity) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseAccount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ColorId string `protobuf:"bytes,3,opt,name=color_id,json=colorId,proto3" json:"color_id,omitempty"` - Emoji string `protobuf:"bytes,4,opt,name=emoji,proto3" json:"emoji,omitempty"` - Order uint32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ColorId string `protobuf:"bytes,3,opt,name=color_id,json=colorId,proto3" json:"color_id,omitempty"` + Emoji string `protobuf:"bytes,4,opt,name=emoji,proto3" json:"emoji,omitempty"` + Order uint32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseAccount) Reset() { - *x = ProfileShowcaseAccount{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseAccount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseAccount) ProtoMessage() {} - -func (x *ProfileShowcaseAccount) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseAccount.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseAccount) Reset() { *m = ProfileShowcaseAccount{} } +func (m *ProfileShowcaseAccount) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseAccount) ProtoMessage() {} func (*ProfileShowcaseAccount) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{1} + return fileDescriptor_5bcd51b424a05798, []int{1} } -func (x *ProfileShowcaseAccount) GetAddress() string { - if x != nil { - return x.Address +func (m *ProfileShowcaseAccount) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseAccount.Unmarshal(m, b) +} +func (m *ProfileShowcaseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseAccount.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseAccount.Merge(m, src) +} +func (m *ProfileShowcaseAccount) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseAccount.Size(m) +} +func (m *ProfileShowcaseAccount) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseAccount proto.InternalMessageInfo + +func (m *ProfileShowcaseAccount) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *ProfileShowcaseAccount) GetName() string { - if x != nil { - return x.Name +func (m *ProfileShowcaseAccount) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *ProfileShowcaseAccount) GetColorId() string { - if x != nil { - return x.ColorId +func (m *ProfileShowcaseAccount) GetColorId() string { + if m != nil { + return m.ColorId } return "" } -func (x *ProfileShowcaseAccount) GetEmoji() string { - if x != nil { - return x.Emoji +func (m *ProfileShowcaseAccount) GetEmoji() string { + if m != nil { + return m.Emoji } return "" } -func (x *ProfileShowcaseAccount) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseAccount) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseCollectible struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // Deprecated: Do not use. + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + ContractAddress string `protobuf:"bytes,3,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + ChainId uint64 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + TokenId string `protobuf:"bytes,6,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + AccountAddress string `protobuf:"bytes,7,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseCollectible) Reset() { - *x = ProfileShowcaseCollectible{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseCollectible) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseCollectible) ProtoMessage() {} - -func (x *ProfileShowcaseCollectible) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseCollectible.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseCollectible) Reset() { *m = ProfileShowcaseCollectible{} } +func (m *ProfileShowcaseCollectible) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseCollectible) ProtoMessage() {} func (*ProfileShowcaseCollectible) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{2} + return fileDescriptor_5bcd51b424a05798, []int{2} } -func (x *ProfileShowcaseCollectible) GetUid() string { - if x != nil { - return x.Uid +func (m *ProfileShowcaseCollectible) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseCollectible.Unmarshal(m, b) +} +func (m *ProfileShowcaseCollectible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseCollectible.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseCollectible) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseCollectible.Merge(m, src) +} +func (m *ProfileShowcaseCollectible) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseCollectible.Size(m) +} +func (m *ProfileShowcaseCollectible) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseCollectible.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseCollectible proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *ProfileShowcaseCollectible) GetUid() string { + if m != nil { + return m.Uid } return "" } -func (x *ProfileShowcaseCollectible) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCollectible) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } -type ProfileShowcaseAsset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` -} - -func (x *ProfileShowcaseAsset) Reset() { - *x = ProfileShowcaseAsset{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseAsset) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseAsset) ProtoMessage() {} - -func (x *ProfileShowcaseAsset) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseAsset.ProtoReflect.Descriptor instead. -func (*ProfileShowcaseAsset) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{3} -} - -func (x *ProfileShowcaseAsset) GetSymbol() string { - if x != nil { - return x.Symbol +func (m *ProfileShowcaseCollectible) GetContractAddress() string { + if m != nil { + return m.ContractAddress } return "" } -func (x *ProfileShowcaseAsset) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCollectible) GetCommunityId() string { + if m != nil { + return m.CommunityId + } + return "" +} + +func (m *ProfileShowcaseCollectible) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } +func (m *ProfileShowcaseCollectible) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ProfileShowcaseCollectible) GetAccountAddress() string { + if m != nil { + return m.AccountAddress + } + return "" +} + +type ProfileShowcaseVerifiedToken struct { + Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProfileShowcaseVerifiedToken) Reset() { *m = ProfileShowcaseVerifiedToken{} } +func (m *ProfileShowcaseVerifiedToken) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseVerifiedToken) ProtoMessage() {} +func (*ProfileShowcaseVerifiedToken) Descriptor() ([]byte, []int) { + return fileDescriptor_5bcd51b424a05798, []int{3} +} + +func (m *ProfileShowcaseVerifiedToken) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseVerifiedToken.Unmarshal(m, b) +} +func (m *ProfileShowcaseVerifiedToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseVerifiedToken.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseVerifiedToken) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseVerifiedToken.Merge(m, src) +} +func (m *ProfileShowcaseVerifiedToken) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseVerifiedToken.Size(m) +} +func (m *ProfileShowcaseVerifiedToken) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseVerifiedToken.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseVerifiedToken proto.InternalMessageInfo + +func (m *ProfileShowcaseVerifiedToken) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *ProfileShowcaseVerifiedToken) GetOrder() uint32 { + if m != nil { + return m.Order + } + return 0 +} + +type ProfileShowcaseUnverifiedToken struct { + ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + ChainId uint64 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProfileShowcaseUnverifiedToken) Reset() { *m = ProfileShowcaseUnverifiedToken{} } +func (m *ProfileShowcaseUnverifiedToken) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseUnverifiedToken) ProtoMessage() {} +func (*ProfileShowcaseUnverifiedToken) Descriptor() ([]byte, []int) { + return fileDescriptor_5bcd51b424a05798, []int{4} +} + +func (m *ProfileShowcaseUnverifiedToken) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseUnverifiedToken.Unmarshal(m, b) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseUnverifiedToken.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseUnverifiedToken.Merge(m, src) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseUnverifiedToken.Size(m) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseUnverifiedToken.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseUnverifiedToken proto.InternalMessageInfo + +func (m *ProfileShowcaseUnverifiedToken) GetContractAddress() string { + if m != nil { + return m.ContractAddress + } + return "" +} + +func (m *ProfileShowcaseUnverifiedToken) GetOrder() uint32 { + if m != nil { + return m.Order + } + return 0 +} + +func (m *ProfileShowcaseUnverifiedToken) GetChainId() uint64 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *ProfileShowcaseUnverifiedToken) GetCommunityId() string { + if m != nil { + return m.CommunityId + } + return "" +} + type ProfileShowcaseEntries struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Communities []*ProfileShowcaseCommunity `protobuf:"bytes,1,rep,name=communities,proto3" json:"communities,omitempty"` - Accounts []*ProfileShowcaseAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` - Collectibles []*ProfileShowcaseCollectible `protobuf:"bytes,3,rep,name=collectibles,proto3" json:"collectibles,omitempty"` - Assets []*ProfileShowcaseAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"` + Communities []*ProfileShowcaseCommunity `protobuf:"bytes,1,rep,name=communities,proto3" json:"communities,omitempty"` + Accounts []*ProfileShowcaseAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` + Collectibles []*ProfileShowcaseCollectible `protobuf:"bytes,3,rep,name=collectibles,proto3" json:"collectibles,omitempty"` + VerifiedTokens []*ProfileShowcaseVerifiedToken `protobuf:"bytes,4,rep,name=verifiedTokens,proto3" json:"verifiedTokens,omitempty"` + UnverifiedTokens []*ProfileShowcaseUnverifiedToken `protobuf:"bytes,5,rep,name=unverifiedTokens,proto3" json:"unverifiedTokens,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseEntries) Reset() { - *x = ProfileShowcaseEntries{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseEntries) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseEntries) ProtoMessage() {} - -func (x *ProfileShowcaseEntries) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseEntries.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseEntries) Reset() { *m = ProfileShowcaseEntries{} } +func (m *ProfileShowcaseEntries) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseEntries) ProtoMessage() {} func (*ProfileShowcaseEntries) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{4} + return fileDescriptor_5bcd51b424a05798, []int{5} } -func (x *ProfileShowcaseEntries) GetCommunities() []*ProfileShowcaseCommunity { - if x != nil { - return x.Communities +func (m *ProfileShowcaseEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseEntries.Unmarshal(m, b) +} +func (m *ProfileShowcaseEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseEntries.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseEntries.Merge(m, src) +} +func (m *ProfileShowcaseEntries) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseEntries.Size(m) +} +func (m *ProfileShowcaseEntries) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseEntries.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseEntries proto.InternalMessageInfo + +func (m *ProfileShowcaseEntries) GetCommunities() []*ProfileShowcaseCommunity { + if m != nil { + return m.Communities } return nil } -func (x *ProfileShowcaseEntries) GetAccounts() []*ProfileShowcaseAccount { - if x != nil { - return x.Accounts +func (m *ProfileShowcaseEntries) GetAccounts() []*ProfileShowcaseAccount { + if m != nil { + return m.Accounts } return nil } -func (x *ProfileShowcaseEntries) GetCollectibles() []*ProfileShowcaseCollectible { - if x != nil { - return x.Collectibles +func (m *ProfileShowcaseEntries) GetCollectibles() []*ProfileShowcaseCollectible { + if m != nil { + return m.Collectibles } return nil } -func (x *ProfileShowcaseEntries) GetAssets() []*ProfileShowcaseAsset { - if x != nil { - return x.Assets +func (m *ProfileShowcaseEntries) GetVerifiedTokens() []*ProfileShowcaseVerifiedToken { + if m != nil { + return m.VerifiedTokens + } + return nil +} + +func (m *ProfileShowcaseEntries) GetUnverifiedTokens() []*ProfileShowcaseUnverifiedToken { + if m != nil { + return m.UnverifiedTokens } return nil } type ProfileShowcaseEntriesEncrypted struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EncryptedEntries []byte `protobuf:"bytes,1,opt,name=encrypted_entries,json=encryptedEntries,proto3" json:"encrypted_entries,omitempty"` - EncryptionKeys [][]byte `protobuf:"bytes,2,rep,name=encryption_keys,json=encryptionKeys,proto3" json:"encryption_keys,omitempty"` + EncryptedEntries []byte `protobuf:"bytes,1,opt,name=encrypted_entries,json=encryptedEntries,proto3" json:"encrypted_entries,omitempty"` + EncryptionKeys [][]byte `protobuf:"bytes,2,rep,name=encryption_keys,json=encryptionKeys,proto3" json:"encryption_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseEntriesEncrypted) Reset() { - *x = ProfileShowcaseEntriesEncrypted{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseEntriesEncrypted) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseEntriesEncrypted) ProtoMessage() {} - -func (x *ProfileShowcaseEntriesEncrypted) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseEntriesEncrypted.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseEntriesEncrypted) Reset() { *m = ProfileShowcaseEntriesEncrypted{} } +func (m *ProfileShowcaseEntriesEncrypted) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseEntriesEncrypted) ProtoMessage() {} func (*ProfileShowcaseEntriesEncrypted) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{5} + return fileDescriptor_5bcd51b424a05798, []int{6} } -func (x *ProfileShowcaseEntriesEncrypted) GetEncryptedEntries() []byte { - if x != nil { - return x.EncryptedEntries +func (m *ProfileShowcaseEntriesEncrypted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Unmarshal(m, b) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Merge(m, src) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Size(m) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseEntriesEncrypted.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseEntriesEncrypted proto.InternalMessageInfo + +func (m *ProfileShowcaseEntriesEncrypted) GetEncryptedEntries() []byte { + if m != nil { + return m.EncryptedEntries } return nil } -func (x *ProfileShowcaseEntriesEncrypted) GetEncryptionKeys() [][]byte { - if x != nil { - return x.EncryptionKeys +func (m *ProfileShowcaseEntriesEncrypted) GetEncryptionKeys() [][]byte { + if m != nil { + return m.EncryptionKeys } return nil } type ProfileShowcase struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - ForEveryone *ProfileShowcaseEntries `protobuf:"bytes,1,opt,name=for_everyone,json=forEveryone,proto3" json:"for_everyone,omitempty"` ForContacts *ProfileShowcaseEntriesEncrypted `protobuf:"bytes,2,opt,name=for_contacts,json=forContacts,proto3" json:"for_contacts,omitempty"` ForIdVerifiedContacts *ProfileShowcaseEntriesEncrypted `protobuf:"bytes,3,opt,name=for_id_verified_contacts,json=forIdVerifiedContacts,proto3" json:"for_id_verified_contacts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcase) Reset() { - *x = ProfileShowcase{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcase) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcase) ProtoMessage() {} - -func (x *ProfileShowcase) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcase.ProtoReflect.Descriptor instead. +func (m *ProfileShowcase) Reset() { *m = ProfileShowcase{} } +func (m *ProfileShowcase) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcase) ProtoMessage() {} func (*ProfileShowcase) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{6} + return fileDescriptor_5bcd51b424a05798, []int{7} } -func (x *ProfileShowcase) GetForEveryone() *ProfileShowcaseEntries { - if x != nil { - return x.ForEveryone +func (m *ProfileShowcase) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcase.Unmarshal(m, b) +} +func (m *ProfileShowcase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcase.Marshal(b, m, deterministic) +} +func (m *ProfileShowcase) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcase.Merge(m, src) +} +func (m *ProfileShowcase) XXX_Size() int { + return xxx_messageInfo_ProfileShowcase.Size(m) +} +func (m *ProfileShowcase) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcase.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcase proto.InternalMessageInfo + +func (m *ProfileShowcase) GetForEveryone() *ProfileShowcaseEntries { + if m != nil { + return m.ForEveryone } return nil } -func (x *ProfileShowcase) GetForContacts() *ProfileShowcaseEntriesEncrypted { - if x != nil { - return x.ForContacts +func (m *ProfileShowcase) GetForContacts() *ProfileShowcaseEntriesEncrypted { + if m != nil { + return m.ForContacts } return nil } -func (x *ProfileShowcase) GetForIdVerifiedContacts() *ProfileShowcaseEntriesEncrypted { - if x != nil { - return x.ForIdVerifiedContacts +func (m *ProfileShowcase) GetForIdVerifiedContacts() *ProfileShowcaseEntriesEncrypted { + if m != nil { + return m.ForIdVerifiedContacts } return nil } -var File_profile_showcase_proto protoreflect.FileDescriptor - -var file_profile_showcase_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, - 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x22, 0x53, 0x0a, 0x18, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, - 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x21, - 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x8d, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x6d, 0x6f, 0x6a, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, - 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x44, 0x0a, 0x1a, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x44, 0x0a, - 0x14, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x14, 0x0a, - 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x22, 0x9e, 0x02, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x44, - 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, - 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x52, 0x0c, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x06, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x73, 0x22, 0x77, 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x88, 0x02, - 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x12, 0x43, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x72, 0x79, 0x6f, 0x6e, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, - 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x45, 0x76, - 0x65, 0x72, 0x79, 0x6f, 0x6e, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x63, 0x74, 0x73, 0x12, 0x62, 0x0a, 0x18, 0x66, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x5f, 0x76, - 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x52, 0x15, 0x66, 0x6f, 0x72, 0x49, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*ProfileShowcaseCommunity)(nil), "protobuf.ProfileShowcaseCommunity") + proto.RegisterType((*ProfileShowcaseAccount)(nil), "protobuf.ProfileShowcaseAccount") + proto.RegisterType((*ProfileShowcaseCollectible)(nil), "protobuf.ProfileShowcaseCollectible") + proto.RegisterType((*ProfileShowcaseVerifiedToken)(nil), "protobuf.ProfileShowcaseVerifiedToken") + proto.RegisterType((*ProfileShowcaseUnverifiedToken)(nil), "protobuf.ProfileShowcaseUnverifiedToken") + proto.RegisterType((*ProfileShowcaseEntries)(nil), "protobuf.ProfileShowcaseEntries") + proto.RegisterType((*ProfileShowcaseEntriesEncrypted)(nil), "protobuf.ProfileShowcaseEntriesEncrypted") + proto.RegisterType((*ProfileShowcase)(nil), "protobuf.ProfileShowcase") } -var ( - file_profile_showcase_proto_rawDescOnce sync.Once - file_profile_showcase_proto_rawDescData = file_profile_showcase_proto_rawDesc -) - -func file_profile_showcase_proto_rawDescGZIP() []byte { - file_profile_showcase_proto_rawDescOnce.Do(func() { - file_profile_showcase_proto_rawDescData = protoimpl.X.CompressGZIP(file_profile_showcase_proto_rawDescData) - }) - return file_profile_showcase_proto_rawDescData +func init() { + proto.RegisterFile("profile_showcase.proto", fileDescriptor_5bcd51b424a05798) } -var file_profile_showcase_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_profile_showcase_proto_goTypes = []interface{}{ - (*ProfileShowcaseCommunity)(nil), // 0: protobuf.ProfileShowcaseCommunity - (*ProfileShowcaseAccount)(nil), // 1: protobuf.ProfileShowcaseAccount - (*ProfileShowcaseCollectible)(nil), // 2: protobuf.ProfileShowcaseCollectible - (*ProfileShowcaseAsset)(nil), // 3: protobuf.ProfileShowcaseAsset - (*ProfileShowcaseEntries)(nil), // 4: protobuf.ProfileShowcaseEntries - (*ProfileShowcaseEntriesEncrypted)(nil), // 5: protobuf.ProfileShowcaseEntriesEncrypted - (*ProfileShowcase)(nil), // 6: protobuf.ProfileShowcase -} -var file_profile_showcase_proto_depIdxs = []int32{ - 0, // 0: protobuf.ProfileShowcaseEntries.communities:type_name -> protobuf.ProfileShowcaseCommunity - 1, // 1: protobuf.ProfileShowcaseEntries.accounts:type_name -> protobuf.ProfileShowcaseAccount - 2, // 2: protobuf.ProfileShowcaseEntries.collectibles:type_name -> protobuf.ProfileShowcaseCollectible - 3, // 3: protobuf.ProfileShowcaseEntries.assets:type_name -> protobuf.ProfileShowcaseAsset - 4, // 4: protobuf.ProfileShowcase.for_everyone:type_name -> protobuf.ProfileShowcaseEntries - 5, // 5: protobuf.ProfileShowcase.for_contacts:type_name -> protobuf.ProfileShowcaseEntriesEncrypted - 5, // 6: protobuf.ProfileShowcase.for_id_verified_contacts:type_name -> protobuf.ProfileShowcaseEntriesEncrypted - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_profile_showcase_proto_init() } -func file_profile_showcase_proto_init() { - if File_profile_showcase_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_profile_showcase_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseCommunity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseAccount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseCollectible); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseAsset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseEntries); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseEntriesEncrypted); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcase); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_profile_showcase_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_profile_showcase_proto_goTypes, - DependencyIndexes: file_profile_showcase_proto_depIdxs, - MessageInfos: file_profile_showcase_proto_msgTypes, - }.Build() - File_profile_showcase_proto = out.File - file_profile_showcase_proto_rawDesc = nil - file_profile_showcase_proto_goTypes = nil - file_profile_showcase_proto_depIdxs = nil +var fileDescriptor_5bcd51b424a05798 = []byte{ + // 596 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0xe5, 0x38, 0x6d, 0xd3, 0x49, 0x9a, 0x84, 0x55, 0x89, 0x0c, 0x42, 0x10, 0x2c, 0x44, + 0x53, 0x21, 0x05, 0x09, 0x8e, 0x70, 0x69, 0x43, 0x24, 0x2a, 0x2a, 0x84, 0xb6, 0x85, 0x03, 0x17, + 0xcb, 0xb1, 0xd7, 0xea, 0x52, 0x67, 0x37, 0x5a, 0x3b, 0xad, 0xfc, 0x06, 0x1c, 0xe0, 0x19, 0x78, + 0x4a, 0xee, 0x68, 0xbf, 0x9c, 0xc4, 0x49, 0x5a, 0x71, 0xb2, 0x67, 0x77, 0xe6, 0x37, 0x33, 0xff, + 0x19, 0x1b, 0x7a, 0x33, 0xc1, 0x13, 0x9a, 0x92, 0x20, 0xbb, 0xe2, 0xb7, 0x51, 0x98, 0x91, 0xe1, + 0x4c, 0xf0, 0x9c, 0xa3, 0x86, 0x7a, 0x4c, 0xe6, 0x89, 0x7f, 0x01, 0xde, 0x17, 0xed, 0x73, 0x61, + 0x5c, 0x46, 0x7c, 0x3a, 0x9d, 0x33, 0x9a, 0x17, 0xe8, 0x39, 0xb4, 0x22, 0x6b, 0x04, 0x34, 0xf6, + 0x9c, 0xbe, 0x33, 0xd8, 0xc7, 0xcd, 0xf2, 0xec, 0x2c, 0x46, 0x87, 0xb0, 0xc3, 0x45, 0x4c, 0x84, + 0x57, 0xeb, 0x3b, 0x83, 0x03, 0xac, 0x0d, 0xff, 0xb7, 0x03, 0xbd, 0x0a, 0xf5, 0x24, 0x8a, 0xf8, + 0x9c, 0xe5, 0xc8, 0x83, 0xbd, 0x30, 0x8e, 0x05, 0xc9, 0x32, 0x83, 0xb3, 0x26, 0x42, 0x50, 0x67, + 0xe1, 0x94, 0x28, 0xd2, 0x3e, 0x56, 0xef, 0xe8, 0x11, 0x34, 0x22, 0x9e, 0x72, 0x21, 0xb3, 0xbb, + 0xda, 0x5d, 0xd9, 0x3a, 0x33, 0x99, 0xf2, 0x1f, 0xd4, 0xab, 0xab, 0x73, 0x6d, 0x2c, 0xea, 0xd9, + 0x59, 0xae, 0xe7, 0xaf, 0x03, 0x8f, 0xd7, 0xba, 0x4c, 0x53, 0x12, 0xe5, 0x74, 0x92, 0x12, 0x74, + 0x08, 0xee, 0xdc, 0xb6, 0x77, 0x5a, 0xf3, 0x1c, 0x2c, 0xcd, 0xcd, 0xad, 0xa1, 0x63, 0xe8, 0x46, + 0x9c, 0xe5, 0x22, 0x8c, 0xf2, 0xc0, 0x36, 0xa2, 0x2b, 0xeb, 0xd8, 0xf3, 0x13, 0xd3, 0x50, 0x55, + 0xbe, 0xfa, 0xba, 0x7c, 0xb2, 0xbf, 0xab, 0x90, 0x32, 0x79, 0x2d, 0x2b, 0xae, 0xe3, 0x3d, 0x65, + 0xeb, 0xab, 0x9c, 0x5f, 0x13, 0x75, 0xb5, 0xab, 0x5b, 0x57, 0xf6, 0x59, 0x8c, 0x8e, 0xa0, 0x13, + 0x6a, 0x39, 0xcb, 0x12, 0xf6, 0x94, 0x47, 0xdb, 0x1c, 0x9b, 0x0a, 0xfc, 0x73, 0x78, 0x52, 0x69, + 0xfb, 0x1b, 0x11, 0x34, 0xa1, 0x24, 0xbe, 0x94, 0x28, 0xd4, 0x83, 0xdd, 0xac, 0x98, 0x4e, 0x78, + 0x6a, 0x66, 0x61, 0xac, 0x2d, 0x53, 0xfd, 0xe3, 0xc0, 0xd3, 0x0a, 0xee, 0x2b, 0xbb, 0x59, 0x01, + 0x6e, 0x52, 0xc7, 0xd9, 0xac, 0xce, 0x66, 0x79, 0x97, 0x05, 0x71, 0x57, 0x05, 0xb9, 0x5f, 0x4e, + 0xff, 0x97, 0xbb, 0xb6, 0x77, 0x63, 0x96, 0x0b, 0x4a, 0x32, 0xf4, 0x01, 0x4a, 0x4f, 0x4a, 0x64, + 0x51, 0xee, 0xa0, 0xf9, 0xc6, 0x1f, 0xda, 0xef, 0x60, 0xb8, 0xed, 0x23, 0xc0, 0xcb, 0x61, 0xe8, + 0x3d, 0x34, 0x8c, 0xc4, 0x99, 0x57, 0x53, 0x88, 0xfe, 0x56, 0x84, 0xd9, 0x78, 0x5c, 0x46, 0xa0, + 0x8f, 0xb2, 0x83, 0x72, 0xed, 0xe4, 0xde, 0x48, 0xc2, 0x8b, 0x3b, 0x8a, 0x28, 0x9d, 0xf1, 0x4a, + 0x24, 0xfa, 0x0c, 0xed, 0x15, 0xe1, 0x33, 0xaf, 0xae, 0x58, 0x2f, 0xb7, 0xb2, 0x56, 0x06, 0x8f, + 0x2b, 0xd1, 0xe8, 0x12, 0xba, 0x73, 0x56, 0x21, 0xee, 0x28, 0xe2, 0x60, 0x2b, 0xb1, 0x32, 0x7b, + 0xbc, 0x46, 0xf0, 0x6f, 0xe1, 0xd9, 0xe6, 0x69, 0x8c, 0x59, 0x24, 0x8a, 0x59, 0x4e, 0x62, 0xf4, + 0x0a, 0x1e, 0x10, 0x6b, 0x04, 0x44, 0xdf, 0xaa, 0x8d, 0x69, 0xe1, 0x6e, 0x79, 0x61, 0x67, 0x78, + 0x04, 0x1d, 0x73, 0x46, 0x39, 0x0b, 0xae, 0x49, 0xa1, 0x87, 0xd0, 0xc2, 0xed, 0xc5, 0xf1, 0x27, + 0x52, 0x64, 0xfe, 0xcf, 0x1a, 0x74, 0x2a, 0x99, 0xd1, 0x08, 0x5a, 0x09, 0x17, 0x01, 0xb9, 0x21, + 0xa2, 0xe0, 0x8c, 0xa8, 0x24, 0x77, 0x8d, 0xcf, 0x24, 0xc5, 0xcd, 0x84, 0x8b, 0xb1, 0x09, 0x42, + 0xe7, 0x1a, 0x22, 0x77, 0x39, 0x8c, 0xd4, 0x0e, 0x48, 0xc8, 0xf1, 0x7d, 0x90, 0xb2, 0x5f, 0x45, + 0x1b, 0x99, 0x68, 0x34, 0x01, 0x2f, 0x51, 0xff, 0xb6, 0xc0, 0x0a, 0xb7, 0x20, 0xbb, 0xff, 0x4b, + 0x7e, 0x98, 0xc8, 0xdf, 0xa2, 0x1d, 0xb3, 0xcd, 0x71, 0x7a, 0xf0, 0xbd, 0x39, 0x7c, 0xfd, 0xce, + 0x52, 0x26, 0xbb, 0xea, 0xed, 0xed, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x77, 0xf8, 0xf3, + 0x19, 0x06, 0x00, 0x00, } diff --git a/protocol/protobuf/profile_showcase.proto b/protocol/protobuf/profile_showcase.proto index 2c4563727..9b1997293 100644 --- a/protocol/protobuf/profile_showcase.proto +++ b/protocol/protobuf/profile_showcase.proto @@ -17,20 +17,33 @@ message ProfileShowcaseAccount { } message ProfileShowcaseCollectible { - string uid = 1; + string uid = 1 [deprecated = true]; + uint32 order = 2; + string contract_address = 3; + string community_id = 4; + uint64 chain_id = 5; + string token_id = 6; + string account_address = 7; +} + +message ProfileShowcaseVerifiedToken { + string symbol = 1; uint32 order = 2; } -message ProfileShowcaseAsset { - string symbol = 1; +message ProfileShowcaseUnverifiedToken { + string contract_address = 1; uint32 order = 2; + uint64 chain_id = 3; + string community_id = 4; } message ProfileShowcaseEntries { repeated ProfileShowcaseCommunity communities = 1; repeated ProfileShowcaseAccount accounts = 2; repeated ProfileShowcaseCollectible collectibles = 3; - repeated ProfileShowcaseAsset assets = 4; + repeated ProfileShowcaseVerifiedToken verifiedTokens = 4; + repeated ProfileShowcaseUnverifiedToken unverifiedTokens = 5; } message ProfileShowcaseEntriesEncrypted { diff --git a/protocol/protobuf/segment_message.pb.go b/protocol/protobuf/segment_message.pb.go index 04e2c8271..ed2ee7da8 100644 --- a/protocol/protobuf/segment_message.pb.go +++ b/protocol/protobuf/segment_message.pb.go @@ -1,30 +1,26 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: segment_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SegmentMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // hash of the entire original message EntireMessageHash []byte `protobuf:"bytes,1,opt,name=entire_message_hash,json=entireMessageHash,proto3" json:"entire_message_hash,omitempty"` // Index of this segment within the entire original message @@ -32,147 +28,84 @@ type SegmentMessage struct { // Total number of segments the entire original message is divided into SegmentsCount uint32 `protobuf:"varint,3,opt,name=segments_count,json=segmentsCount,proto3" json:"segments_count,omitempty"` // The payload data for this particular segment - Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SegmentMessage) Reset() { - *x = SegmentMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_segment_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SegmentMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SegmentMessage) ProtoMessage() {} - -func (x *SegmentMessage) ProtoReflect() protoreflect.Message { - mi := &file_segment_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SegmentMessage.ProtoReflect.Descriptor instead. +func (m *SegmentMessage) Reset() { *m = SegmentMessage{} } +func (m *SegmentMessage) String() string { return proto.CompactTextString(m) } +func (*SegmentMessage) ProtoMessage() {} func (*SegmentMessage) Descriptor() ([]byte, []int) { - return file_segment_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_857302809a887a8b, []int{0} } -func (x *SegmentMessage) GetEntireMessageHash() []byte { - if x != nil { - return x.EntireMessageHash +func (m *SegmentMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentMessage.Unmarshal(m, b) +} +func (m *SegmentMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentMessage.Marshal(b, m, deterministic) +} +func (m *SegmentMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentMessage.Merge(m, src) +} +func (m *SegmentMessage) XXX_Size() int { + return xxx_messageInfo_SegmentMessage.Size(m) +} +func (m *SegmentMessage) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentMessage proto.InternalMessageInfo + +func (m *SegmentMessage) GetEntireMessageHash() []byte { + if m != nil { + return m.EntireMessageHash } return nil } -func (x *SegmentMessage) GetIndex() uint32 { - if x != nil { - return x.Index +func (m *SegmentMessage) GetIndex() uint32 { + if m != nil { + return m.Index } return 0 } -func (x *SegmentMessage) GetSegmentsCount() uint32 { - if x != nil { - return x.SegmentsCount +func (m *SegmentMessage) GetSegmentsCount() uint32 { + if m != nil { + return m.SegmentsCount } return 0 } -func (x *SegmentMessage) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *SegmentMessage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -var File_segment_message_proto protoreflect.FileDescriptor - -var file_segment_message_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x22, 0x97, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x65, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x11, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, - 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0d, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, - 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +func init() { + proto.RegisterType((*SegmentMessage)(nil), "protobuf.SegmentMessage") } -var ( - file_segment_message_proto_rawDescOnce sync.Once - file_segment_message_proto_rawDescData = file_segment_message_proto_rawDesc -) - -func file_segment_message_proto_rawDescGZIP() []byte { - file_segment_message_proto_rawDescOnce.Do(func() { - file_segment_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_segment_message_proto_rawDescData) - }) - return file_segment_message_proto_rawDescData +func init() { + proto.RegisterFile("segment_message.proto", fileDescriptor_857302809a887a8b) } -var file_segment_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_segment_message_proto_goTypes = []interface{}{ - (*SegmentMessage)(nil), // 0: protobuf.SegmentMessage -} -var file_segment_message_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_segment_message_proto_init() } -func file_segment_message_proto_init() { - if File_segment_message_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_segment_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SegmentMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_segment_message_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_segment_message_proto_goTypes, - DependencyIndexes: file_segment_message_proto_depIdxs, - MessageInfos: file_segment_message_proto_msgTypes, - }.Build() - File_segment_message_proto = out.File - file_segment_message_proto_rawDesc = nil - file_segment_message_proto_goTypes = nil - file_segment_message_proto_depIdxs = nil +var fileDescriptor_857302809a887a8b = []byte{ + // 169 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x4e, 0x4d, 0xcf, + 0x4d, 0xcd, 0x2b, 0x89, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0xd3, 0x19, 0xb9, 0xf8, 0x82, 0x21, 0x6a, + 0x7c, 0x21, 0x4a, 0x84, 0xf4, 0xb8, 0x84, 0x53, 0xf3, 0x4a, 0x32, 0x8b, 0x52, 0x61, 0x9a, 0xe2, + 0x33, 0x12, 0x8b, 0x33, 0x24, 0x18, 0x15, 0x18, 0x35, 0x78, 0x82, 0x04, 0x21, 0x52, 0x50, 0xb5, + 0x1e, 0x89, 0xc5, 0x19, 0x42, 0x22, 0x5c, 0xac, 0x99, 0x79, 0x29, 0xa9, 0x15, 0x12, 0x4c, 0x0a, + 0x8c, 0x1a, 0xbc, 0x41, 0x10, 0x8e, 0x90, 0x2a, 0x17, 0x1f, 0xd4, 0xee, 0xe2, 0xf8, 0xe4, 0xfc, + 0xd2, 0xbc, 0x12, 0x09, 0x66, 0xb0, 0x34, 0x2f, 0x4c, 0xd4, 0x19, 0x24, 0x28, 0x24, 0xc1, 0xc5, + 0x5e, 0x90, 0x58, 0x99, 0x93, 0x9f, 0x98, 0x22, 0xc1, 0x02, 0xb6, 0x00, 0xc6, 0x75, 0xe2, 0x8d, + 0xe2, 0xd6, 0xd3, 0xb7, 0x86, 0x39, 0x34, 0x89, 0x0d, 0xcc, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, + 0xff, 0x12, 0x40, 0x55, 0x2e, 0xd2, 0x00, 0x00, 0x00, } diff --git a/protocol/protobuf/shard.pb.go b/protocol/protobuf/shard.pb.go index f7965d030..5b25fe7ae 100644 --- a/protocol/protobuf/shard.pb.go +++ b/protocol/protobuf/shard.pb.go @@ -1,85 +1,73 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: shard.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Shard struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cluster int32 `protobuf:"varint,1,opt,name=cluster,proto3" json:"cluster,omitempty"` - Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + Cluster int32 `protobuf:"varint,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Shard) Reset() { - *x = Shard{} - if protoimpl.UnsafeEnabled { - mi := &file_shard_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Shard) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Shard) ProtoMessage() {} - -func (x *Shard) ProtoReflect() protoreflect.Message { - mi := &file_shard_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Shard.ProtoReflect.Descriptor instead. +func (m *Shard) Reset() { *m = Shard{} } +func (m *Shard) String() string { return proto.CompactTextString(m) } +func (*Shard) ProtoMessage() {} func (*Shard) Descriptor() ([]byte, []int) { - return file_shard_proto_rawDescGZIP(), []int{0} + return fileDescriptor_319ea41e44cdc364, []int{0} } -func (x *Shard) GetCluster() int32 { - if x != nil { - return x.Cluster +func (m *Shard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Shard.Unmarshal(m, b) +} +func (m *Shard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Shard.Marshal(b, m, deterministic) +} +func (m *Shard) XXX_Merge(src proto.Message) { + xxx_messageInfo_Shard.Merge(m, src) +} +func (m *Shard) XXX_Size() int { + return xxx_messageInfo_Shard.Size(m) +} +func (m *Shard) XXX_DiscardUnknown() { + xxx_messageInfo_Shard.DiscardUnknown(m) +} + +var xxx_messageInfo_Shard proto.InternalMessageInfo + +func (m *Shard) GetCluster() int32 { + if m != nil { + return m.Cluster } return 0 } -func (x *Shard) GetIndex() int32 { - if x != nil { - return x.Index +func (m *Shard) GetIndex() int32 { + if m != nil { + return m.Index } return 0 } type PublicShardInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // clock Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // community ID @@ -87,238 +75,139 @@ type PublicShardInfo struct { // shard information Shard *Shard `protobuf:"bytes,3,opt,name=shard,proto3" json:"shard,omitempty"` // if chainID > 0, the signer must be verified through the community contract - ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"` + ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PublicShardInfo) Reset() { - *x = PublicShardInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_shard_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicShardInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicShardInfo) ProtoMessage() {} - -func (x *PublicShardInfo) ProtoReflect() protoreflect.Message { - mi := &file_shard_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PublicShardInfo.ProtoReflect.Descriptor instead. +func (m *PublicShardInfo) Reset() { *m = PublicShardInfo{} } +func (m *PublicShardInfo) String() string { return proto.CompactTextString(m) } +func (*PublicShardInfo) ProtoMessage() {} func (*PublicShardInfo) Descriptor() ([]byte, []int) { - return file_shard_proto_rawDescGZIP(), []int{1} + return fileDescriptor_319ea41e44cdc364, []int{1} } -func (x *PublicShardInfo) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *PublicShardInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublicShardInfo.Unmarshal(m, b) +} +func (m *PublicShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublicShardInfo.Marshal(b, m, deterministic) +} +func (m *PublicShardInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublicShardInfo.Merge(m, src) +} +func (m *PublicShardInfo) XXX_Size() int { + return xxx_messageInfo_PublicShardInfo.Size(m) +} +func (m *PublicShardInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PublicShardInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_PublicShardInfo proto.InternalMessageInfo + +func (m *PublicShardInfo) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *PublicShardInfo) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *PublicShardInfo) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *PublicShardInfo) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *PublicShardInfo) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } -func (x *PublicShardInfo) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *PublicShardInfo) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } type CommunityPublicShardInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Signature of the payload field Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // Marshaled PublicShardInfo - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityPublicShardInfo) Reset() { - *x = CommunityPublicShardInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_shard_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityPublicShardInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityPublicShardInfo) ProtoMessage() {} - -func (x *CommunityPublicShardInfo) ProtoReflect() protoreflect.Message { - mi := &file_shard_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityPublicShardInfo.ProtoReflect.Descriptor instead. +func (m *CommunityPublicShardInfo) Reset() { *m = CommunityPublicShardInfo{} } +func (m *CommunityPublicShardInfo) String() string { return proto.CompactTextString(m) } +func (*CommunityPublicShardInfo) ProtoMessage() {} func (*CommunityPublicShardInfo) Descriptor() ([]byte, []int) { - return file_shard_proto_rawDescGZIP(), []int{2} + return fileDescriptor_319ea41e44cdc364, []int{2} } -func (x *CommunityPublicShardInfo) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *CommunityPublicShardInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityPublicShardInfo.Unmarshal(m, b) +} +func (m *CommunityPublicShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityPublicShardInfo.Marshal(b, m, deterministic) +} +func (m *CommunityPublicShardInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityPublicShardInfo.Merge(m, src) +} +func (m *CommunityPublicShardInfo) XXX_Size() int { + return xxx_messageInfo_CommunityPublicShardInfo.Size(m) +} +func (m *CommunityPublicShardInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityPublicShardInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityPublicShardInfo proto.InternalMessageInfo + +func (m *CommunityPublicShardInfo) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *CommunityPublicShardInfo) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *CommunityPublicShardInfo) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -var File_shard_proto protoreflect.FileDescriptor - -var file_shard_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x37, 0x0a, 0x05, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x25, 0x0a, - 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x52, - 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*Shard)(nil), "protobuf.Shard") + proto.RegisterType((*PublicShardInfo)(nil), "protobuf.PublicShardInfo") + proto.RegisterType((*CommunityPublicShardInfo)(nil), "protobuf.CommunityPublicShardInfo") } -var ( - file_shard_proto_rawDescOnce sync.Once - file_shard_proto_rawDescData = file_shard_proto_rawDesc -) - -func file_shard_proto_rawDescGZIP() []byte { - file_shard_proto_rawDescOnce.Do(func() { - file_shard_proto_rawDescData = protoimpl.X.CompressGZIP(file_shard_proto_rawDescData) - }) - return file_shard_proto_rawDescData +func init() { + proto.RegisterFile("shard.proto", fileDescriptor_319ea41e44cdc364) } -var file_shard_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_shard_proto_goTypes = []interface{}{ - (*Shard)(nil), // 0: protobuf.Shard - (*PublicShardInfo)(nil), // 1: protobuf.PublicShardInfo - (*CommunityPublicShardInfo)(nil), // 2: protobuf.CommunityPublicShardInfo -} -var file_shard_proto_depIdxs = []int32{ - 0, // 0: protobuf.PublicShardInfo.shard:type_name -> protobuf.Shard - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_shard_proto_init() } -func file_shard_proto_init() { - if File_shard_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_shard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Shard); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_shard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicShardInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_shard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityPublicShardInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_shard_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_shard_proto_goTypes, - DependencyIndexes: file_shard_proto_depIdxs, - MessageInfos: file_shard_proto_msgTypes, - }.Build() - File_shard_proto = out.File - file_shard_proto_rawDesc = nil - file_shard_proto_goTypes = nil - file_shard_proto_depIdxs = nil +var fileDescriptor_319ea41e44cdc364 = []byte{ + // 231 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0x3d, 0x4f, 0x04, 0x21, + 0x10, 0x86, 0x83, 0x1e, 0x7e, 0x0c, 0x6b, 0x2e, 0x21, 0x16, 0x14, 0x16, 0xe7, 0x26, 0x26, 0x57, + 0x61, 0xa2, 0x85, 0x85, 0x9d, 0x56, 0xdb, 0x19, 0xec, 0x6c, 0x0c, 0x0b, 0x7b, 0x1e, 0x91, 0x83, + 0x0b, 0x0b, 0x89, 0xf7, 0x1b, 0xfc, 0xd3, 0x66, 0x67, 0x83, 0x26, 0x56, 0xf0, 0xbe, 0x03, 0xcf, + 0x3c, 0xc0, 0xc6, 0xad, 0x4e, 0x56, 0xee, 0x53, 0xcc, 0x91, 0x9f, 0xe1, 0xd1, 0x97, 0x4d, 0xfb, + 0x00, 0xf4, 0x75, 0x1a, 0x70, 0x01, 0xa7, 0xc6, 0x97, 0x31, 0x0f, 0x49, 0x90, 0x15, 0x59, 0x53, + 0x55, 0x23, 0xbf, 0x04, 0xea, 0x82, 0x1d, 0xbe, 0xc4, 0x11, 0xf6, 0x73, 0x68, 0xbf, 0x09, 0x2c, + 0x5f, 0x4a, 0xef, 0x9d, 0xc1, 0xff, 0x5d, 0xd8, 0xc4, 0xe9, 0xa5, 0xf1, 0xd1, 0x7c, 0x22, 0x61, + 0xa1, 0xe6, 0xc0, 0xaf, 0xa1, 0x31, 0x71, 0xb7, 0x2b, 0xc1, 0xe5, 0xc3, 0xbb, 0xb3, 0x88, 0x69, + 0x14, 0xfb, 0xed, 0x3a, 0xcb, 0x6f, 0x80, 0xa2, 0x9e, 0x38, 0x5e, 0x91, 0x35, 0xbb, 0x5b, 0xca, + 0xea, 0x27, 0x11, 0xae, 0xe6, 0x29, 0x3a, 0x6e, 0xb5, 0x0b, 0x9d, 0x15, 0x0b, 0xdc, 0x50, 0x63, + 0xab, 0x40, 0x3c, 0x57, 0xde, 0x7f, 0xab, 0x2b, 0x38, 0x1f, 0xdd, 0x47, 0xd0, 0xb9, 0xa4, 0x01, + 0xcd, 0x1a, 0xf5, 0x57, 0x4c, 0xcc, 0xbd, 0x3e, 0xf8, 0xa8, 0xab, 0x58, 0x8d, 0x4f, 0x17, 0x6f, + 0x4c, 0xde, 0x3e, 0x56, 0x93, 0xfe, 0x04, 0x6f, 0xf7, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa5, + 0xbd, 0x3b, 0xd5, 0x49, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/status_update.pb.go b/protocol/protobuf/status_update.pb.go index 409302f82..399b7d5a1 100644 --- a/protocol/protobuf/status_update.pb.go +++ b/protocol/protobuf/status_update.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: status_update.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type StatusUpdate_StatusType int32 @@ -30,49 +30,28 @@ const ( StatusUpdate_INACTIVE StatusUpdate_StatusType = 4 ) -// Enum value maps for StatusUpdate_StatusType. -var ( - StatusUpdate_StatusType_name = map[int32]string{ - 0: "UNKNOWN_STATUS_TYPE", - 1: "AUTOMATIC", - 2: "DO_NOT_DISTURB", - 3: "ALWAYS_ONLINE", - 4: "INACTIVE", - } - StatusUpdate_StatusType_value = map[string]int32{ - "UNKNOWN_STATUS_TYPE": 0, - "AUTOMATIC": 1, - "DO_NOT_DISTURB": 2, - "ALWAYS_ONLINE": 3, - "INACTIVE": 4, - } -) +var StatusUpdate_StatusType_name = map[int32]string{ + 0: "UNKNOWN_STATUS_TYPE", + 1: "AUTOMATIC", + 2: "DO_NOT_DISTURB", + 3: "ALWAYS_ONLINE", + 4: "INACTIVE", +} -func (x StatusUpdate_StatusType) Enum() *StatusUpdate_StatusType { - p := new(StatusUpdate_StatusType) - *p = x - return p +var StatusUpdate_StatusType_value = map[string]int32{ + "UNKNOWN_STATUS_TYPE": 0, + "AUTOMATIC": 1, + "DO_NOT_DISTURB": 2, + "ALWAYS_ONLINE": 3, + "INACTIVE": 4, } func (x StatusUpdate_StatusType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(StatusUpdate_StatusType_name, int32(x)) } -func (StatusUpdate_StatusType) Descriptor() protoreflect.EnumDescriptor { - return file_status_update_proto_enumTypes[0].Descriptor() -} - -func (StatusUpdate_StatusType) Type() protoreflect.EnumType { - return &file_status_update_proto_enumTypes[0] -} - -func (x StatusUpdate_StatusType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StatusUpdate_StatusType.Descriptor instead. func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) { - return file_status_update_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_911acd91e62cd3d7, []int{0, 0} } // Specs: @@ -87,155 +66,85 @@ func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) { // Display - Offline forever // Note: Only send pings if the user interacted with the app in the last x minutes. type StatusUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - StatusType StatusUpdate_StatusType `protobuf:"varint,2,opt,name=status_type,json=statusType,proto3,enum=protobuf.StatusUpdate_StatusType" json:"status_type,omitempty"` - CustomText string `protobuf:"bytes,3,opt,name=custom_text,json=customText,proto3" json:"custom_text,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + StatusType StatusUpdate_StatusType `protobuf:"varint,2,opt,name=status_type,json=statusType,proto3,enum=protobuf.StatusUpdate_StatusType" json:"status_type,omitempty"` + CustomText string `protobuf:"bytes,3,opt,name=custom_text,json=customText,proto3" json:"custom_text,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StatusUpdate) Reset() { - *x = StatusUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_status_update_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatusUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatusUpdate) ProtoMessage() {} - -func (x *StatusUpdate) ProtoReflect() protoreflect.Message { - mi := &file_status_update_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatusUpdate.ProtoReflect.Descriptor instead. +func (m *StatusUpdate) Reset() { *m = StatusUpdate{} } +func (m *StatusUpdate) String() string { return proto.CompactTextString(m) } +func (*StatusUpdate) ProtoMessage() {} func (*StatusUpdate) Descriptor() ([]byte, []int) { - return file_status_update_proto_rawDescGZIP(), []int{0} + return fileDescriptor_911acd91e62cd3d7, []int{0} } -func (x *StatusUpdate) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *StatusUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatusUpdate.Unmarshal(m, b) +} +func (m *StatusUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatusUpdate.Marshal(b, m, deterministic) +} +func (m *StatusUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusUpdate.Merge(m, src) +} +func (m *StatusUpdate) XXX_Size() int { + return xxx_messageInfo_StatusUpdate.Size(m) +} +func (m *StatusUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_StatusUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_StatusUpdate proto.InternalMessageInfo + +func (m *StatusUpdate) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *StatusUpdate) GetStatusType() StatusUpdate_StatusType { - if x != nil { - return x.StatusType +func (m *StatusUpdate) GetStatusType() StatusUpdate_StatusType { + if m != nil { + return m.StatusType } return StatusUpdate_UNKNOWN_STATUS_TYPE } -func (x *StatusUpdate) GetCustomText() string { - if x != nil { - return x.CustomText +func (m *StatusUpdate) GetCustomText() string { + if m != nil { + return m.CustomText } return "" } -var File_status_update_proto protoreflect.FileDescriptor - -var file_status_update_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, - 0xf4, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x22, 0x69, 0x0a, 0x0a, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, - 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x54, - 0x55, 0x52, 0x42, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, - 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, - 0x54, 0x49, 0x56, 0x45, 0x10, 0x04, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.StatusUpdate_StatusType", StatusUpdate_StatusType_name, StatusUpdate_StatusType_value) + proto.RegisterType((*StatusUpdate)(nil), "protobuf.StatusUpdate") } -var ( - file_status_update_proto_rawDescOnce sync.Once - file_status_update_proto_rawDescData = file_status_update_proto_rawDesc -) - -func file_status_update_proto_rawDescGZIP() []byte { - file_status_update_proto_rawDescOnce.Do(func() { - file_status_update_proto_rawDescData = protoimpl.X.CompressGZIP(file_status_update_proto_rawDescData) - }) - return file_status_update_proto_rawDescData +func init() { + proto.RegisterFile("status_update.proto", fileDescriptor_911acd91e62cd3d7) } -var file_status_update_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_status_update_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_status_update_proto_goTypes = []interface{}{ - (StatusUpdate_StatusType)(0), // 0: protobuf.StatusUpdate.StatusType - (*StatusUpdate)(nil), // 1: protobuf.StatusUpdate -} -var file_status_update_proto_depIdxs = []int32{ - 0, // 0: protobuf.StatusUpdate.status_type:type_name -> protobuf.StatusUpdate.StatusType - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_status_update_proto_init() } -func file_status_update_proto_init() { - if File_status_update_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_status_update_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_status_update_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_status_update_proto_goTypes, - DependencyIndexes: file_status_update_proto_depIdxs, - EnumInfos: file_status_update_proto_enumTypes, - MessageInfos: file_status_update_proto_msgTypes, - }.Build() - File_status_update_proto = out.File - file_status_update_proto_rawDesc = nil - file_status_update_proto_goTypes = nil - file_status_update_proto_depIdxs = nil +var fileDescriptor_911acd91e62cd3d7 = []byte{ + // 253 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8e, 0xc1, 0x4e, 0xc2, 0x40, + 0x10, 0x86, 0x5d, 0x40, 0x03, 0x53, 0x4a, 0xea, 0x60, 0x62, 0x6f, 0x56, 0x4e, 0x3d, 0xd5, 0x44, + 0x8f, 0x9e, 0xb6, 0xd0, 0x43, 0x23, 0x6e, 0x4d, 0x77, 0x56, 0x82, 0x97, 0x0d, 0xd4, 0x35, 0x31, + 0x6a, 0xda, 0xd8, 0x6d, 0x02, 0xef, 0xed, 0x03, 0x98, 0x14, 0x50, 0x4e, 0xf3, 0xff, 0x93, 0x6f, + 0xbe, 0x0c, 0x8c, 0x6b, 0xbb, 0xb2, 0x4d, 0xad, 0x9b, 0xea, 0x75, 0x65, 0x4d, 0x54, 0x7d, 0x97, + 0xb6, 0xc4, 0x7e, 0x3b, 0xd6, 0xcd, 0xdb, 0xe4, 0x87, 0xc1, 0x50, 0xb6, 0x84, 0x6a, 0x01, 0xbc, + 0x80, 0xd3, 0xe2, 0xb3, 0x2c, 0x3e, 0x7c, 0x16, 0xb0, 0xb0, 0x97, 0xef, 0x0a, 0xc6, 0xe0, 0xec, + 0x3d, 0x76, 0x5b, 0x19, 0xbf, 0x13, 0xb0, 0x70, 0x74, 0x7b, 0x1d, 0x1d, 0x34, 0xd1, 0xb1, 0x62, + 0x5f, 0x68, 0x5b, 0x99, 0x1c, 0xea, 0xbf, 0x8c, 0x57, 0xe0, 0x14, 0x4d, 0x6d, 0xcb, 0x2f, 0x6d, + 0xcd, 0xc6, 0xfa, 0xdd, 0x80, 0x85, 0x83, 0x1c, 0x76, 0x2b, 0x32, 0x1b, 0x3b, 0x79, 0x07, 0xf8, + 0x3f, 0xc5, 0x4b, 0x18, 0x2b, 0xf1, 0x20, 0xb2, 0x85, 0xd0, 0x92, 0x38, 0x29, 0xa9, 0x69, 0xf9, + 0x94, 0x78, 0x27, 0xe8, 0xc2, 0x80, 0x2b, 0xca, 0x1e, 0x39, 0xa5, 0x53, 0x8f, 0x21, 0xc2, 0x68, + 0x96, 0x69, 0x91, 0x91, 0x9e, 0xa5, 0x92, 0x54, 0x1e, 0x7b, 0x1d, 0x3c, 0x07, 0x97, 0xcf, 0x17, + 0x7c, 0x29, 0x75, 0x26, 0xe6, 0xa9, 0x48, 0xbc, 0x2e, 0x0e, 0xa1, 0x9f, 0x0a, 0x3e, 0xa5, 0xf4, + 0x39, 0xf1, 0x7a, 0xb1, 0xfb, 0xe2, 0x44, 0x37, 0xf7, 0x87, 0xf7, 0xd7, 0x67, 0x6d, 0xba, 0xfb, + 0x0d, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xa1, 0x52, 0x1d, 0x2d, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/sync_settings.pb.go b/protocol/protobuf/sync_settings.pb.go index 9d1fba07b..7eeb03405 100644 --- a/protocol/protobuf/sync_settings.pb.go +++ b/protocol/protobuf/sync_settings.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: sync_settings.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SyncSetting_Type int32 @@ -45,174 +45,110 @@ const ( SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD SyncSetting_Type = 21 ) -// Enum value maps for SyncSetting_Type. -var ( - SyncSetting_Type_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CURRENCY", - 2: "GIF_RECENTS", - 3: "GIF_FAVOURITES", - 4: "MESSAGES_FROM_CONTACTS_ONLY", - 5: "PREFERRED_NAME", - 6: "PREVIEW_PRIVACY", - 7: "PROFILE_PICTURES_SHOW_TO", - 8: "PROFILE_PICTURES_VISIBILITY", - 9: "SEND_STATUS_UPDATES", - 10: "STICKERS_PACKS_INSTALLED", - 11: "STICKERS_PACKS_PENDING", - 12: "STICKERS_RECENT_STICKERS", - 13: "DISPLAY_NAME", - 14: "BIO", - 15: "MNEMONIC_REMOVED", - 18: "URL_UNFURLING_MODE", - 19: "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS", - 20: "DISPLAY_ASSETS_BELOW_BALANCE", - 21: "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD", - } - SyncSetting_Type_value = map[string]int32{ - "UNKNOWN": 0, - "CURRENCY": 1, - "GIF_RECENTS": 2, - "GIF_FAVOURITES": 3, - "MESSAGES_FROM_CONTACTS_ONLY": 4, - "PREFERRED_NAME": 5, - "PREVIEW_PRIVACY": 6, - "PROFILE_PICTURES_SHOW_TO": 7, - "PROFILE_PICTURES_VISIBILITY": 8, - "SEND_STATUS_UPDATES": 9, - "STICKERS_PACKS_INSTALLED": 10, - "STICKERS_PACKS_PENDING": 11, - "STICKERS_RECENT_STICKERS": 12, - "DISPLAY_NAME": 13, - "BIO": 14, - "MNEMONIC_REMOVED": 15, - "URL_UNFURLING_MODE": 18, - "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS": 19, - "DISPLAY_ASSETS_BELOW_BALANCE": 20, - "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD": 21, - } -) +var SyncSetting_Type_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CURRENCY", + 2: "GIF_RECENTS", + 3: "GIF_FAVOURITES", + 4: "MESSAGES_FROM_CONTACTS_ONLY", + 5: "PREFERRED_NAME", + 6: "PREVIEW_PRIVACY", + 7: "PROFILE_PICTURES_SHOW_TO", + 8: "PROFILE_PICTURES_VISIBILITY", + 9: "SEND_STATUS_UPDATES", + 10: "STICKERS_PACKS_INSTALLED", + 11: "STICKERS_PACKS_PENDING", + 12: "STICKERS_RECENT_STICKERS", + 13: "DISPLAY_NAME", + 14: "BIO", + 15: "MNEMONIC_REMOVED", + 18: "URL_UNFURLING_MODE", + 19: "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS", + 20: "DISPLAY_ASSETS_BELOW_BALANCE", + 21: "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD", +} -func (x SyncSetting_Type) Enum() *SyncSetting_Type { - p := new(SyncSetting_Type) - *p = x - return p +var SyncSetting_Type_value = map[string]int32{ + "UNKNOWN": 0, + "CURRENCY": 1, + "GIF_RECENTS": 2, + "GIF_FAVOURITES": 3, + "MESSAGES_FROM_CONTACTS_ONLY": 4, + "PREFERRED_NAME": 5, + "PREVIEW_PRIVACY": 6, + "PROFILE_PICTURES_SHOW_TO": 7, + "PROFILE_PICTURES_VISIBILITY": 8, + "SEND_STATUS_UPDATES": 9, + "STICKERS_PACKS_INSTALLED": 10, + "STICKERS_PACKS_PENDING": 11, + "STICKERS_RECENT_STICKERS": 12, + "DISPLAY_NAME": 13, + "BIO": 14, + "MNEMONIC_REMOVED": 15, + "URL_UNFURLING_MODE": 18, + "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS": 19, + "DISPLAY_ASSETS_BELOW_BALANCE": 20, + "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD": 21, } func (x SyncSetting_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(SyncSetting_Type_name, int32(x)) } -func (SyncSetting_Type) Descriptor() protoreflect.EnumDescriptor { - return file_sync_settings_proto_enumTypes[0].Descriptor() -} - -func (SyncSetting_Type) Type() protoreflect.EnumType { - return &file_sync_settings_proto_enumTypes[0] -} - -func (x SyncSetting_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SyncSetting_Type.Descriptor instead. func (SyncSetting_Type) EnumDescriptor() ([]byte, []int) { - return file_sync_settings_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_e2f7a0bce2873c78, []int{0, 0} } type SyncSetting struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Type SyncSetting_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protobuf.SyncSetting_Type" json:"type,omitempty"` Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` - // Types that are assignable to Value: + // Types that are valid to be assigned to Value: // // *SyncSetting_ValueString // *SyncSetting_ValueBytes // *SyncSetting_ValueBool // *SyncSetting_ValueInt64 - Value isSyncSetting_Value `protobuf_oneof:"value"` + Value isSyncSetting_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SyncSetting) Reset() { - *x = SyncSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_sync_settings_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncSetting) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncSetting) ProtoMessage() {} - -func (x *SyncSetting) ProtoReflect() protoreflect.Message { - mi := &file_sync_settings_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncSetting.ProtoReflect.Descriptor instead. +func (m *SyncSetting) Reset() { *m = SyncSetting{} } +func (m *SyncSetting) String() string { return proto.CompactTextString(m) } +func (*SyncSetting) ProtoMessage() {} func (*SyncSetting) Descriptor() ([]byte, []int) { - return file_sync_settings_proto_rawDescGZIP(), []int{0} + return fileDescriptor_e2f7a0bce2873c78, []int{0} } -func (x *SyncSetting) GetType() SyncSetting_Type { - if x != nil { - return x.Type +func (m *SyncSetting) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SyncSetting.Unmarshal(m, b) +} +func (m *SyncSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SyncSetting.Marshal(b, m, deterministic) +} +func (m *SyncSetting) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncSetting.Merge(m, src) +} +func (m *SyncSetting) XXX_Size() int { + return xxx_messageInfo_SyncSetting.Size(m) +} +func (m *SyncSetting) XXX_DiscardUnknown() { + xxx_messageInfo_SyncSetting.DiscardUnknown(m) +} + +var xxx_messageInfo_SyncSetting proto.InternalMessageInfo + +func (m *SyncSetting) GetType() SyncSetting_Type { + if m != nil { + return m.Type } return SyncSetting_UNKNOWN } -func (x *SyncSetting) GetClock() uint64 { - if x != nil { - return x.Clock - } - return 0 -} - -func (m *SyncSetting) GetValue() isSyncSetting_Value { +func (m *SyncSetting) GetClock() uint64 { if m != nil { - return m.Value - } - return nil -} - -func (x *SyncSetting) GetValueString() string { - if x, ok := x.GetValue().(*SyncSetting_ValueString); ok { - return x.ValueString - } - return "" -} - -func (x *SyncSetting) GetValueBytes() []byte { - if x, ok := x.GetValue().(*SyncSetting_ValueBytes); ok { - return x.ValueBytes - } - return nil -} - -func (x *SyncSetting) GetValueBool() bool { - if x, ok := x.GetValue().(*SyncSetting_ValueBool); ok { - return x.ValueBool - } - return false -} - -func (x *SyncSetting) GetValueInt64() int64 { - if x, ok := x.GetValue().(*SyncSetting_ValueInt64); ok { - return x.ValueInt64 + return m.Clock } return 0 } @@ -245,134 +181,98 @@ func (*SyncSetting_ValueBool) isSyncSetting_Value() {} func (*SyncSetting_ValueInt64) isSyncSetting_Value() {} -var File_sync_settings_proto protoreflect.FileDescriptor - -var file_sync_settings_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, - 0xa6, 0x06, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, - 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0b, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, - 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, - 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x21, - 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x74, 0x36, - 0x34, 0x22, 0xbb, 0x04, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x55, 0x52, 0x52, 0x45, - 0x4e, 0x43, 0x59, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x49, 0x46, 0x5f, 0x52, 0x45, 0x43, - 0x45, 0x4e, 0x54, 0x53, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47, 0x49, 0x46, 0x5f, 0x46, 0x41, - 0x56, 0x4f, 0x55, 0x52, 0x49, 0x54, 0x45, 0x53, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x45, - 0x53, 0x53, 0x41, 0x47, 0x45, 0x53, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x43, 0x4f, 0x4e, 0x54, - 0x41, 0x43, 0x54, 0x53, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x50, - 0x52, 0x45, 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x05, 0x12, - 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, - 0x43, 0x59, 0x10, 0x06, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, - 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x53, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x5f, 0x54, 0x4f, - 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x50, 0x49, - 0x43, 0x54, 0x55, 0x52, 0x45, 0x53, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, - 0x59, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x53, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, - 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, 0x52, 0x53, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x53, 0x5f, 0x49, - 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, - 0x49, 0x43, 0x4b, 0x45, 0x52, 0x53, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x53, 0x5f, 0x50, 0x45, 0x4e, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x0b, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, - 0x52, 0x53, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, - 0x52, 0x53, 0x10, 0x0c, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, - 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x0d, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x49, 0x4f, 0x10, 0x0e, 0x12, - 0x14, 0x0a, 0x10, 0x4d, 0x4e, 0x45, 0x4d, 0x4f, 0x4e, 0x49, 0x43, 0x5f, 0x52, 0x45, 0x4d, 0x4f, - 0x56, 0x45, 0x44, 0x10, 0x0f, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x52, 0x4c, 0x5f, 0x55, 0x4e, 0x46, - 0x55, 0x52, 0x4c, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x10, 0x12, 0x12, 0x2c, 0x0a, - 0x28, 0x53, 0x48, 0x4f, 0x57, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, - 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x57, 0x48, 0x45, 0x4e, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x49, - 0x4e, 0x47, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x13, 0x12, 0x20, 0x0a, 0x1c, 0x44, - 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x53, 0x5f, 0x42, 0x45, - 0x4c, 0x4f, 0x57, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x14, 0x12, 0x2a, 0x0a, - 0x26, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x53, 0x5f, - 0x42, 0x45, 0x4c, 0x4f, 0x57, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x48, - 0x52, 0x45, 0x53, 0x48, 0x4f, 0x4c, 0x44, 0x10, 0x15, 0x22, 0x04, 0x08, 0x10, 0x10, 0x10, 0x22, - 0x04, 0x08, 0x11, 0x10, 0x11, 0x2a, 0x0d, 0x45, 0x4e, 0x53, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x4e, - 0x41, 0x4d, 0x45, 0x53, 0x2a, 0x19, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x57, 0x41, - 0x54, 0x43, 0x48, 0x4f, 0x4e, 0x4c, 0x59, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x42, - 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_sync_settings_proto_rawDescOnce sync.Once - file_sync_settings_proto_rawDescData = file_sync_settings_proto_rawDesc -) - -func file_sync_settings_proto_rawDescGZIP() []byte { - file_sync_settings_proto_rawDescOnce.Do(func() { - file_sync_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_sync_settings_proto_rawDescData) - }) - return file_sync_settings_proto_rawDescData -} - -var file_sync_settings_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_sync_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_sync_settings_proto_goTypes = []interface{}{ - (SyncSetting_Type)(0), // 0: protobuf.SyncSetting.Type - (*SyncSetting)(nil), // 1: protobuf.SyncSetting -} -var file_sync_settings_proto_depIdxs = []int32{ - 0, // 0: protobuf.SyncSetting.type:type_name -> protobuf.SyncSetting.Type - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_sync_settings_proto_init() } -func file_sync_settings_proto_init() { - if File_sync_settings_proto != nil { - return +func (m *SyncSetting) GetValue() isSyncSetting_Value { + if m != nil { + return m.Value } - if !protoimpl.UnsafeEnabled { - file_sync_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + return nil +} + +func (m *SyncSetting) GetValueString() string { + if x, ok := m.GetValue().(*SyncSetting_ValueString); ok { + return x.ValueString } - file_sync_settings_proto_msgTypes[0].OneofWrappers = []interface{}{ + return "" +} + +func (m *SyncSetting) GetValueBytes() []byte { + if x, ok := m.GetValue().(*SyncSetting_ValueBytes); ok { + return x.ValueBytes + } + return nil +} + +func (m *SyncSetting) GetValueBool() bool { + if x, ok := m.GetValue().(*SyncSetting_ValueBool); ok { + return x.ValueBool + } + return false +} + +func (m *SyncSetting) GetValueInt64() int64 { + if x, ok := m.GetValue().(*SyncSetting_ValueInt64); ok { + return x.ValueInt64 + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SyncSetting) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*SyncSetting_ValueString)(nil), (*SyncSetting_ValueBytes)(nil), (*SyncSetting_ValueBool)(nil), (*SyncSetting_ValueInt64)(nil), } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_sync_settings_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_sync_settings_proto_goTypes, - DependencyIndexes: file_sync_settings_proto_depIdxs, - EnumInfos: file_sync_settings_proto_enumTypes, - MessageInfos: file_sync_settings_proto_msgTypes, - }.Build() - File_sync_settings_proto = out.File - file_sync_settings_proto_rawDesc = nil - file_sync_settings_proto_goTypes = nil - file_sync_settings_proto_depIdxs = nil +} + +func init() { + proto.RegisterEnum("protobuf.SyncSetting_Type", SyncSetting_Type_name, SyncSetting_Type_value) + proto.RegisterType((*SyncSetting)(nil), "protobuf.SyncSetting") +} + +func init() { + proto.RegisterFile("sync_settings.proto", fileDescriptor_e2f7a0bce2873c78) +} + +var fileDescriptor_e2f7a0bce2873c78 = []byte{ + // 601 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x5b, 0x6f, 0x1a, 0x3b, + 0x10, 0xc7, 0xd9, 0xb0, 0x5c, 0x62, 0x48, 0xe2, 0x98, 0x9c, 0x1c, 0x4e, 0x4e, 0xa4, 0x50, 0x2a, + 0x55, 0x28, 0xaa, 0xa8, 0xd4, 0x56, 0x7d, 0xe9, 0x93, 0xf1, 0x0e, 0xac, 0xc5, 0xae, 0xbd, 0xb2, + 0xbd, 0x20, 0xfa, 0x32, 0x6a, 0x10, 0x8d, 0xa2, 0x22, 0x88, 0x02, 0xa9, 0xc4, 0x17, 0xea, 0x97, + 0xe8, 0x97, 0xab, 0x76, 0xb7, 0xf4, 0x2a, 0xf5, 0xc9, 0x9e, 0xff, 0xfc, 0xe6, 0xe6, 0x0b, 0x69, + 0x6d, 0x76, 0xab, 0x39, 0x6e, 0x16, 0xdb, 0xed, 0xdd, 0xea, 0x76, 0xd3, 0xbf, 0x7f, 0x58, 0x6f, + 0xd7, 0xac, 0x9e, 0x2f, 0x37, 0x8f, 0x1f, 0xba, 0x9f, 0xab, 0xa4, 0x61, 0x77, 0xab, 0xb9, 0x2d, + 0x00, 0xd6, 0x27, 0xfe, 0x76, 0x77, 0xbf, 0x68, 0x7b, 0x1d, 0xaf, 0x77, 0xfc, 0xf2, 0xa2, 0xbf, + 0x07, 0xfb, 0x3f, 0x41, 0x7d, 0xb7, 0xbb, 0x5f, 0x98, 0x9c, 0x63, 0x67, 0xa4, 0x32, 0x5f, 0xae, + 0xe7, 0x1f, 0xdb, 0x07, 0x1d, 0xaf, 0xe7, 0x9b, 0xc2, 0x60, 0x4f, 0x49, 0xf3, 0xd3, 0xfb, 0xe5, + 0xe3, 0x02, 0x37, 0xdb, 0x87, 0xbb, 0xd5, 0x6d, 0xbb, 0xdc, 0xf1, 0x7a, 0x87, 0x61, 0xc9, 0x34, + 0x72, 0xd5, 0xe6, 0x22, 0x7b, 0x42, 0x0a, 0x13, 0x6f, 0x76, 0xdb, 0xc5, 0xa6, 0xed, 0x77, 0xbc, + 0x5e, 0x33, 0x2c, 0x19, 0x92, 0x8b, 0x83, 0x4c, 0x63, 0x57, 0x84, 0x7c, 0x43, 0xd6, 0xeb, 0x65, + 0xbb, 0xd2, 0xf1, 0x7a, 0xf5, 0xb0, 0x64, 0x0e, 0x0b, 0x62, 0xbd, 0x5e, 0xfe, 0xc8, 0x71, 0xb7, + 0xda, 0xbe, 0x79, 0xdd, 0xae, 0x76, 0xbc, 0x5e, 0xf9, 0x7b, 0x0e, 0x99, 0x69, 0xdd, 0x2f, 0x3e, + 0xf1, 0xb3, 0x86, 0x59, 0x83, 0xd4, 0x52, 0x35, 0x56, 0x7a, 0xaa, 0x68, 0x89, 0x35, 0x49, 0x5d, + 0xa4, 0xc6, 0x80, 0x12, 0x33, 0xea, 0xb1, 0x13, 0xd2, 0x18, 0xc9, 0x21, 0x1a, 0x10, 0xa0, 0x9c, + 0xa5, 0x07, 0x8c, 0x91, 0xe3, 0x4c, 0x18, 0xf2, 0x89, 0x4e, 0x8d, 0x74, 0x60, 0x69, 0x99, 0x5d, + 0x91, 0xff, 0x63, 0xb0, 0x96, 0x8f, 0xc0, 0xe2, 0xd0, 0xe8, 0x18, 0x85, 0x56, 0x8e, 0x0b, 0x67, + 0x51, 0xab, 0x68, 0x46, 0xfd, 0x2c, 0x28, 0x31, 0x30, 0x04, 0x63, 0x20, 0x40, 0xc5, 0x63, 0xa0, + 0x15, 0xd6, 0x22, 0x27, 0x89, 0x81, 0x89, 0x84, 0x29, 0x26, 0x46, 0x4e, 0xb8, 0x98, 0xd1, 0x2a, + 0xbb, 0x24, 0xed, 0xc4, 0xe8, 0xa1, 0x8c, 0x00, 0x13, 0x29, 0x5c, 0x6a, 0xc0, 0xa2, 0x0d, 0xf5, + 0x14, 0x9d, 0xa6, 0xb5, 0xac, 0xce, 0x1f, 0xde, 0x89, 0xb4, 0x72, 0x20, 0x23, 0xe9, 0x66, 0xb4, + 0xce, 0xfe, 0x25, 0x2d, 0x0b, 0x2a, 0x40, 0xeb, 0xb8, 0x4b, 0x2d, 0xa6, 0x49, 0xc0, 0xb3, 0x0e, + 0x0f, 0xb3, 0xbc, 0xd6, 0x49, 0x31, 0x06, 0x63, 0x31, 0xe1, 0x62, 0x6c, 0x51, 0x2a, 0xeb, 0x78, + 0x14, 0x41, 0x40, 0x09, 0xbb, 0x20, 0xe7, 0xbf, 0x79, 0x13, 0x50, 0x81, 0x54, 0x23, 0xda, 0xf8, + 0x25, 0xb2, 0x38, 0x05, 0xdc, 0xdb, 0xb4, 0xc9, 0x28, 0x69, 0x06, 0xd2, 0x26, 0x11, 0x9f, 0x15, + 0x63, 0x1d, 0xb1, 0x1a, 0x29, 0x0f, 0xa4, 0xa6, 0xc7, 0xec, 0x8c, 0xd0, 0x58, 0x41, 0xac, 0x95, + 0x14, 0x68, 0x20, 0xd6, 0x13, 0x08, 0xe8, 0x09, 0x3b, 0x27, 0x2c, 0x35, 0x11, 0xa6, 0x6a, 0x98, + 0x9a, 0x48, 0xaa, 0x11, 0xc6, 0x3a, 0x00, 0xca, 0xd8, 0x73, 0xd2, 0xcb, 0xe7, 0x14, 0x3a, 0x8e, + 0x53, 0x25, 0xdd, 0x0c, 0xb9, 0xb5, 0xe0, 0x70, 0x1a, 0x82, 0x42, 0x5b, 0x74, 0x83, 0x4e, 0x8f, + 0x41, 0x59, 0xda, 0x62, 0x1d, 0x72, 0xb9, 0x2f, 0x9b, 0x63, 0x16, 0x07, 0x10, 0xe9, 0x29, 0x0e, + 0x78, 0xc4, 0x95, 0x00, 0x7a, 0xc6, 0xae, 0xc9, 0xb3, 0xbf, 0x11, 0xe8, 0x42, 0x03, 0x36, 0xd4, + 0x51, 0x40, 0xff, 0xe9, 0xfa, 0x75, 0x4a, 0x69, 0xd7, 0xaf, 0x9f, 0xd2, 0xd3, 0xeb, 0x23, 0x50, + 0x16, 0x53, 0x0b, 0x26, 0x1b, 0xc7, 0x5e, 0xff, 0x27, 0x95, 0x88, 0xd2, 0x00, 0x70, 0xca, 0x9d, + 0x08, 0xb3, 0xdb, 0x44, 0x2e, 0x84, 0x4e, 0x95, 0x1b, 0xd4, 0x48, 0xa5, 0x78, 0x6d, 0x47, 0xef, + 0x1a, 0xfd, 0x17, 0x6f, 0xf7, 0xdf, 0xe1, 0xa6, 0x9a, 0xef, 0x5e, 0x7d, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0x57, 0x49, 0x09, 0x47, 0x5f, 0x03, 0x00, 0x00, } diff --git a/protocol/protobuf/url_data.pb.go b/protocol/protobuf/url_data.pb.go index d8a9ee00c..5ce9fc21f 100644 --- a/protocol/protobuf/url_data.pb.go +++ b/protocol/protobuf/url_data.pb.go @@ -1,455 +1,310 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: url_data.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Community struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - MembersCount uint32 `protobuf:"varint,3,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - TagIndices []uint32 `protobuf:"varint,5,rep,packed,name=tag_indices,json=tagIndices,proto3" json:"tag_indices,omitempty"` + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + MembersCount uint32 `protobuf:"varint,3,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + TagIndices []uint32 `protobuf:"varint,5,rep,packed,name=tag_indices,json=tagIndices,proto3" json:"tag_indices,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Community) Reset() { - *x = Community{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Community) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Community) ProtoMessage() {} - -func (x *Community) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Community.ProtoReflect.Descriptor instead. +func (m *Community) Reset() { *m = Community{} } +func (m *Community) String() string { return proto.CompactTextString(m) } +func (*Community) ProtoMessage() {} func (*Community) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{0} + return fileDescriptor_5f1e15b5f0115710, []int{0} } -func (x *Community) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *Community) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Community.Unmarshal(m, b) +} +func (m *Community) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Community.Marshal(b, m, deterministic) +} +func (m *Community) XXX_Merge(src proto.Message) { + xxx_messageInfo_Community.Merge(m, src) +} +func (m *Community) XXX_Size() int { + return xxx_messageInfo_Community.Size(m) +} +func (m *Community) XXX_DiscardUnknown() { + xxx_messageInfo_Community.DiscardUnknown(m) +} + +var xxx_messageInfo_Community proto.InternalMessageInfo + +func (m *Community) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *Community) GetDescription() string { - if x != nil { - return x.Description +func (m *Community) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *Community) GetMembersCount() uint32 { - if x != nil { - return x.MembersCount +func (m *Community) GetMembersCount() uint32 { + if m != nil { + return m.MembersCount } return 0 } -func (x *Community) GetColor() string { - if x != nil { - return x.Color +func (m *Community) GetColor() string { + if m != nil { + return m.Color } return "" } -func (x *Community) GetTagIndices() []uint32 { - if x != nil { - return x.TagIndices +func (m *Community) GetTagIndices() []uint32 { + if m != nil { + return m.TagIndices } return nil } type Channel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Emoji string `protobuf:"bytes,3,opt,name=emoji,proto3" json:"emoji,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - Community *Community `protobuf:"bytes,5,opt,name=community,proto3" json:"community,omitempty"` - Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Emoji string `protobuf:"bytes,3,opt,name=emoji,proto3" json:"emoji,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + Community *Community `protobuf:"bytes,5,opt,name=community,proto3" json:"community,omitempty"` + Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Channel) Reset() { - *x = Channel{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Channel) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Channel) ProtoMessage() {} - -func (x *Channel) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Channel.ProtoReflect.Descriptor instead. +func (m *Channel) Reset() { *m = Channel{} } +func (m *Channel) String() string { return proto.CompactTextString(m) } +func (*Channel) ProtoMessage() {} func (*Channel) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{1} + return fileDescriptor_5f1e15b5f0115710, []int{1} } -func (x *Channel) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *Channel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channel.Unmarshal(m, b) +} +func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channel.Marshal(b, m, deterministic) +} +func (m *Channel) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channel.Merge(m, src) +} +func (m *Channel) XXX_Size() int { + return xxx_messageInfo_Channel.Size(m) +} +func (m *Channel) XXX_DiscardUnknown() { + xxx_messageInfo_Channel.DiscardUnknown(m) +} + +var xxx_messageInfo_Channel proto.InternalMessageInfo + +func (m *Channel) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *Channel) GetDescription() string { - if x != nil { - return x.Description +func (m *Channel) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *Channel) GetEmoji() string { - if x != nil { - return x.Emoji +func (m *Channel) GetEmoji() string { + if m != nil { + return m.Emoji } return "" } -func (x *Channel) GetColor() string { - if x != nil { - return x.Color +func (m *Channel) GetColor() string { + if m != nil { + return m.Color } return "" } -func (x *Channel) GetCommunity() *Community { - if x != nil { - return x.Community +func (m *Channel) GetCommunity() *Community { + if m != nil { + return m.Community } return nil } -func (x *Channel) GetUuid() string { - if x != nil { - return x.Uuid +func (m *Channel) GetUuid() string { + if m != nil { + return m.Uuid } return "" } type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *User) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*User) ProtoMessage() {} - -func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (m *User) Reset() { *m = User{} } +func (m *User) String() string { return proto.CompactTextString(m) } +func (*User) ProtoMessage() {} func (*User) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{2} + return fileDescriptor_5f1e15b5f0115710, []int{2} } -func (x *User) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *User) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_User.Unmarshal(m, b) +} +func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_User.Marshal(b, m, deterministic) +} +func (m *User) XXX_Merge(src proto.Message) { + xxx_messageInfo_User.Merge(m, src) +} +func (m *User) XXX_Size() int { + return xxx_messageInfo_User.Size(m) +} +func (m *User) XXX_DiscardUnknown() { + xxx_messageInfo_User.DiscardUnknown(m) +} + +var xxx_messageInfo_User proto.InternalMessageInfo + +func (m *User) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *User) GetDescription() string { - if x != nil { - return x.Description +func (m *User) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *User) GetColor() string { - if x != nil { - return x.Color +func (m *User) GetColor() string { + if m != nil { + return m.Color } return "" } type URLData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Community, Channel, or User - Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - Shard *Shard `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"` + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + Shard *Shard `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *URLData) Reset() { - *x = URLData{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *URLData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*URLData) ProtoMessage() {} - -func (x *URLData) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use URLData.ProtoReflect.Descriptor instead. +func (m *URLData) Reset() { *m = URLData{} } +func (m *URLData) String() string { return proto.CompactTextString(m) } +func (*URLData) ProtoMessage() {} func (*URLData) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{3} + return fileDescriptor_5f1e15b5f0115710, []int{3} } -func (x *URLData) GetContent() []byte { - if x != nil { - return x.Content +func (m *URLData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_URLData.Unmarshal(m, b) +} +func (m *URLData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_URLData.Marshal(b, m, deterministic) +} +func (m *URLData) XXX_Merge(src proto.Message) { + xxx_messageInfo_URLData.Merge(m, src) +} +func (m *URLData) XXX_Size() int { + return xxx_messageInfo_URLData.Size(m) +} +func (m *URLData) XXX_DiscardUnknown() { + xxx_messageInfo_URLData.DiscardUnknown(m) +} + +var xxx_messageInfo_URLData proto.InternalMessageInfo + +func (m *URLData) GetContent() []byte { + if m != nil { + return m.Content } return nil } -func (x *URLData) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *URLData) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } -var File_url_data_proto protoreflect.FileDescriptor - -var file_url_data_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x75, 0x72, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x6e, 0x64, - 0x69, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x61, 0x67, 0x49, - 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x61, 0x0a, 0x04, 0x55, 0x73, - 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0x4a, 0x0a, - 0x07, 0x55, 0x52, 0x4c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*Community)(nil), "protobuf.Community") + proto.RegisterType((*Channel)(nil), "protobuf.Channel") + proto.RegisterType((*User)(nil), "protobuf.User") + proto.RegisterType((*URLData)(nil), "protobuf.URLData") } -var ( - file_url_data_proto_rawDescOnce sync.Once - file_url_data_proto_rawDescData = file_url_data_proto_rawDesc -) - -func file_url_data_proto_rawDescGZIP() []byte { - file_url_data_proto_rawDescOnce.Do(func() { - file_url_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_url_data_proto_rawDescData) - }) - return file_url_data_proto_rawDescData +func init() { + proto.RegisterFile("url_data.proto", fileDescriptor_5f1e15b5f0115710) } -var file_url_data_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_url_data_proto_goTypes = []interface{}{ - (*Community)(nil), // 0: protobuf.Community - (*Channel)(nil), // 1: protobuf.Channel - (*User)(nil), // 2: protobuf.User - (*URLData)(nil), // 3: protobuf.URLData - (*Shard)(nil), // 4: protobuf.Shard -} -var file_url_data_proto_depIdxs = []int32{ - 0, // 0: protobuf.Channel.community:type_name -> protobuf.Community - 4, // 1: protobuf.URLData.shard:type_name -> protobuf.Shard - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_url_data_proto_init() } -func file_url_data_proto_init() { - if File_url_data_proto != nil { - return - } - file_shard_proto_init() - if !protoimpl.UnsafeEnabled { - file_url_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Community); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_url_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Channel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_url_data_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_url_data_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*URLData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_url_data_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_url_data_proto_goTypes, - DependencyIndexes: file_url_data_proto_depIdxs, - MessageInfos: file_url_data_proto_msgTypes, - }.Build() - File_url_data_proto = out.File - file_url_data_proto_rawDesc = nil - file_url_data_proto_goTypes = nil - file_url_data_proto_depIdxs = nil +var fileDescriptor_5f1e15b5f0115710 = []byte{ + // 321 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xb1, 0x4e, 0xc3, 0x30, + 0x10, 0x40, 0x15, 0xda, 0xb4, 0xe4, 0xdc, 0x80, 0x64, 0x3a, 0x58, 0x2c, 0x84, 0x20, 0xa4, 0x4c, + 0x41, 0x94, 0x91, 0x8d, 0xb2, 0x80, 0x10, 0x83, 0x51, 0x17, 0x96, 0xc8, 0x4d, 0x4c, 0x6b, 0x14, + 0xdb, 0x95, 0xe3, 0x0c, 0xfd, 0x27, 0x7e, 0x82, 0x3f, 0x43, 0xb5, 0x1b, 0xc2, 0xc2, 0xd6, 0xc9, + 0x77, 0xef, 0x4e, 0xe7, 0xe7, 0x93, 0xe1, 0xa4, 0x35, 0x75, 0x51, 0x31, 0xcb, 0xf2, 0x8d, 0xd1, + 0x56, 0xe3, 0x63, 0x77, 0x2c, 0xdb, 0x8f, 0x73, 0xd4, 0xac, 0x99, 0xa9, 0x3c, 0x4e, 0xbf, 0x02, + 0x88, 0xe6, 0x5a, 0xca, 0x56, 0x09, 0xbb, 0xc5, 0x97, 0x30, 0xa9, 0x44, 0xb3, 0xa9, 0xd9, 0xb6, + 0x50, 0x4c, 0x72, 0x12, 0x24, 0x41, 0x16, 0x51, 0xb4, 0x67, 0xaf, 0x4c, 0x72, 0x9c, 0x00, 0xaa, + 0x78, 0x53, 0x1a, 0xb1, 0xb1, 0x42, 0x2b, 0x72, 0xb4, 0xef, 0xe8, 0x11, 0xbe, 0x82, 0x58, 0x72, + 0xb9, 0xe4, 0xa6, 0x29, 0x4a, 0xdd, 0x2a, 0x4b, 0x06, 0x49, 0x90, 0xc5, 0x74, 0xb2, 0x87, 0xf3, + 0x1d, 0xc3, 0x53, 0x08, 0x4b, 0x5d, 0x6b, 0x43, 0x86, 0x6e, 0x80, 0x4f, 0xf0, 0x05, 0x20, 0xcb, + 0x56, 0x85, 0x50, 0x95, 0x28, 0x79, 0x43, 0xc2, 0x64, 0x90, 0xc5, 0x14, 0x2c, 0x5b, 0x3d, 0x79, + 0x92, 0x7e, 0x07, 0x30, 0x9e, 0xaf, 0x99, 0x52, 0xbc, 0x3e, 0x8c, 0xec, 0x14, 0x42, 0x2e, 0xf5, + 0xa7, 0x70, 0x92, 0x11, 0xf5, 0xc9, 0x3f, 0x76, 0xb7, 0x10, 0x95, 0xdd, 0xaa, 0x48, 0x98, 0x04, + 0x19, 0x9a, 0x9d, 0xe5, 0xdd, 0x5a, 0xf3, 0xdf, 0x2d, 0xd2, 0xbe, 0x0b, 0x63, 0x18, 0xb6, 0xad, + 0xa8, 0xc8, 0xc8, 0xcd, 0x71, 0x71, 0xca, 0x60, 0xb8, 0x68, 0xb8, 0x39, 0x98, 0xbf, 0x37, 0x1d, + 0xfc, 0x31, 0x4d, 0x9f, 0x61, 0xbc, 0xa0, 0x2f, 0x8f, 0xcc, 0x32, 0x4c, 0x60, 0x5c, 0x6a, 0x65, + 0xb9, 0xb2, 0xee, 0x82, 0x09, 0xed, 0x52, 0x7c, 0x0d, 0xa1, 0xfb, 0x09, 0x6e, 0x2c, 0x9a, 0x9d, + 0xf6, 0x4f, 0x79, 0xdb, 0x61, 0xea, 0xab, 0x0f, 0xf1, 0x3b, 0xca, 0x6f, 0xee, 0xbb, 0xda, 0x72, + 0xe4, 0xa2, 0xbb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0x2e, 0xf3, 0xde, 0x60, 0x02, 0x00, + 0x00, }