Documentation ¶
Index ¶
- Variables
- func RegisterHubServiceServer(s grpc.ServiceRegistrar, srv HubServiceServer)
- type AckMessageBody
- func (*AckMessageBody) Descriptor() ([]byte, []int)deprecated
- func (x *AckMessageBody) GetAckOriginPeerId() []byte
- func (x *AckMessageBody) GetAckTimestamp() uint64
- func (x *AckMessageBody) GetPingOriginPeerId() []byte
- func (x *AckMessageBody) GetPingTimestamp() uint64
- func (*AckMessageBody) ProtoMessage()
- func (x *AckMessageBody) ProtoReflect() protoreflect.Message
- func (x *AckMessageBody) Reset()
- func (x *AckMessageBody) String() string
- type CastAddBody
- func (*CastAddBody) Descriptor() ([]byte, []int)deprecated
- func (x *CastAddBody) GetEmbeds() []*Embed
- func (x *CastAddBody) GetEmbedsDeprecated() []string
- func (x *CastAddBody) GetMentions() []uint64
- func (x *CastAddBody) GetMentionsPositions() []uint32
- func (m *CastAddBody) GetParent() isCastAddBody_Parent
- func (x *CastAddBody) GetParentCastId() *CastId
- func (x *CastAddBody) GetParentUrl() string
- func (x *CastAddBody) GetText() string
- func (*CastAddBody) ProtoMessage()
- func (x *CastAddBody) ProtoReflect() protoreflect.Message
- func (x *CastAddBody) Reset()
- func (x *CastAddBody) String() string
- type CastAddBody_ParentCastId
- type CastAddBody_ParentUrl
- type CastId
- type CastRemoveBody
- type ContactInfoContent
- func (*ContactInfoContent) Descriptor() ([]byte, []int)deprecated
- func (x *ContactInfoContent) GetAppVersion() string
- func (x *ContactInfoContent) GetBody() *ContactInfoContentBody
- func (x *ContactInfoContent) GetCount() uint32
- func (x *ContactInfoContent) GetDataBytes() []byte
- func (x *ContactInfoContent) GetExcludedHashes() []string
- func (x *ContactInfoContent) GetGossipAddress() *GossipAddressInfo
- func (x *ContactInfoContent) GetHubVersion() string
- func (x *ContactInfoContent) GetNetwork() FarcasterNetwork
- func (x *ContactInfoContent) GetRpcAddress() *GossipAddressInfo
- func (x *ContactInfoContent) GetSignature() []byte
- func (x *ContactInfoContent) GetSigner() []byte
- func (x *ContactInfoContent) GetTimestamp() uint64
- func (*ContactInfoContent) ProtoMessage()
- func (x *ContactInfoContent) ProtoReflect() protoreflect.Message
- func (x *ContactInfoContent) Reset()
- func (x *ContactInfoContent) String() string
- type ContactInfoContentBody
- func (*ContactInfoContentBody) Descriptor() ([]byte, []int)deprecated
- func (x *ContactInfoContentBody) GetAppVersion() string
- func (x *ContactInfoContentBody) GetCount() uint32
- func (x *ContactInfoContentBody) GetExcludedHashes() []string
- func (x *ContactInfoContentBody) GetGossipAddress() *GossipAddressInfo
- func (x *ContactInfoContentBody) GetHubVersion() string
- func (x *ContactInfoContentBody) GetNetwork() FarcasterNetwork
- func (x *ContactInfoContentBody) GetRpcAddress() *GossipAddressInfo
- func (x *ContactInfoContentBody) GetTimestamp() uint64
- func (*ContactInfoContentBody) ProtoMessage()
- func (x *ContactInfoContentBody) ProtoReflect() protoreflect.Message
- func (x *ContactInfoContentBody) Reset()
- func (x *ContactInfoContentBody) String() string
- type Embed
- type Embed_CastId
- type Embed_Url
- type FarcasterNetwork
- func (FarcasterNetwork) Descriptor() protoreflect.EnumDescriptor
- func (x FarcasterNetwork) Enum() *FarcasterNetwork
- func (FarcasterNetwork) EnumDescriptor() ([]byte, []int)deprecated
- func (x FarcasterNetwork) Number() protoreflect.EnumNumber
- func (x FarcasterNetwork) String() string
- func (FarcasterNetwork) Type() protoreflect.EnumType
- type FrameActionBody
- func (*FrameActionBody) Descriptor() ([]byte, []int)deprecated
- func (x *FrameActionBody) GetAddress() []byte
- func (x *FrameActionBody) GetButtonIndex() uint32
- func (x *FrameActionBody) GetCastId() *CastId
- func (x *FrameActionBody) GetInputText() []byte
- func (x *FrameActionBody) GetState() []byte
- func (x *FrameActionBody) GetTransactionId() []byte
- func (x *FrameActionBody) GetUrl() []byte
- func (*FrameActionBody) ProtoMessage()
- func (x *FrameActionBody) ProtoReflect() protoreflect.Message
- func (x *FrameActionBody) Reset()
- func (x *FrameActionBody) String() string
- type GossipAddressInfo
- func (*GossipAddressInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GossipAddressInfo) GetAddress() string
- func (x *GossipAddressInfo) GetDnsName() string
- func (x *GossipAddressInfo) GetFamily() uint32
- func (x *GossipAddressInfo) GetPort() uint32
- func (*GossipAddressInfo) ProtoMessage()
- func (x *GossipAddressInfo) ProtoReflect() protoreflect.Message
- func (x *GossipAddressInfo) Reset()
- func (x *GossipAddressInfo) String() string
- type GossipMessage
- func (*GossipMessage) Descriptor() ([]byte, []int)deprecated
- func (x *GossipMessage) GetContactInfoContent() *ContactInfoContent
- func (m *GossipMessage) GetContent() isGossipMessage_Content
- func (x *GossipMessage) GetMessage() *Message
- func (x *GossipMessage) GetMessageBundle() *MessageBundle
- func (x *GossipMessage) GetNetworkLatencyMessage() *NetworkLatencyMessage
- func (x *GossipMessage) GetPeerId() []byte
- func (x *GossipMessage) GetTimestamp() uint32
- func (x *GossipMessage) GetTopics() []string
- func (x *GossipMessage) GetVersion() GossipVersion
- func (*GossipMessage) ProtoMessage()
- func (x *GossipMessage) ProtoReflect() protoreflect.Message
- func (x *GossipMessage) Reset()
- func (x *GossipMessage) String() string
- type GossipMessage_ContactInfoContent
- type GossipMessage_Message
- type GossipMessage_MessageBundle
- type GossipMessage_NetworkLatencyMessage
- type GossipVersion
- func (GossipVersion) Descriptor() protoreflect.EnumDescriptor
- func (x GossipVersion) Enum() *GossipVersion
- func (GossipVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x GossipVersion) Number() protoreflect.EnumNumber
- func (x GossipVersion) String() string
- func (GossipVersion) Type() protoreflect.EnumType
- type HashScheme
- type HubServiceClient
- type HubServiceServer
- type LinkBody
- func (*LinkBody) Descriptor() ([]byte, []int)deprecated
- func (x *LinkBody) GetDisplayTimestamp() uint32
- func (m *LinkBody) GetTarget() isLinkBody_Target
- func (x *LinkBody) GetTargetFid() uint64
- func (x *LinkBody) GetType() string
- func (*LinkBody) ProtoMessage()
- func (x *LinkBody) ProtoReflect() protoreflect.Message
- func (x *LinkBody) Reset()
- func (x *LinkBody) String() string
- type LinkBody_TargetFid
- type LinkCompactStateBody
- func (*LinkCompactStateBody) Descriptor() ([]byte, []int)deprecated
- func (x *LinkCompactStateBody) GetTargetFids() []uint64
- func (x *LinkCompactStateBody) GetType() string
- func (*LinkCompactStateBody) ProtoMessage()
- func (x *LinkCompactStateBody) ProtoReflect() protoreflect.Message
- func (x *LinkCompactStateBody) Reset()
- func (x *LinkCompactStateBody) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetData() *MessageData
- func (x *Message) GetDataBytes() []byte
- func (x *Message) GetHash() []byte
- func (x *Message) GetHashScheme() HashScheme
- func (x *Message) GetSignature() []byte
- func (x *Message) GetSignatureScheme() SignatureScheme
- func (x *Message) GetSigner() []byte
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageBundle
- func (*MessageBundle) Descriptor() ([]byte, []int)deprecated
- func (x *MessageBundle) GetHash() []byte
- func (x *MessageBundle) GetMessages() []*Message
- func (*MessageBundle) ProtoMessage()
- func (x *MessageBundle) ProtoReflect() protoreflect.Message
- func (x *MessageBundle) Reset()
- func (x *MessageBundle) String() string
- type MessageData
- func (*MessageData) Descriptor() ([]byte, []int)deprecated
- func (m *MessageData) GetBody() isMessageData_Body
- func (x *MessageData) GetCastAddBody() *CastAddBody
- func (x *MessageData) GetCastRemoveBody() *CastRemoveBody
- func (x *MessageData) GetFid() uint64
- func (x *MessageData) GetFrameActionBody() *FrameActionBody
- func (x *MessageData) GetLinkBody() *LinkBody
- func (x *MessageData) GetLinkCompactStateBody() *LinkCompactStateBody
- func (x *MessageData) GetNetwork() FarcasterNetwork
- func (x *MessageData) GetReactionBody() *ReactionBody
- func (x *MessageData) GetTimestamp() uint32
- func (x *MessageData) GetType() MessageType
- func (x *MessageData) GetUserDataBody() *UserDataBody
- func (x *MessageData) GetUsernameProofBody() *UserNameProof
- func (x *MessageData) GetVerificationAddAddressBody() *VerificationAddAddressBody
- func (x *MessageData) GetVerificationRemoveBody() *VerificationRemoveBody
- func (*MessageData) ProtoMessage()
- func (x *MessageData) ProtoReflect() protoreflect.Message
- func (x *MessageData) Reset()
- func (x *MessageData) String() string
- type MessageData_CastAddBody
- type MessageData_CastRemoveBody
- type MessageData_FrameActionBody
- type MessageData_LinkBody
- type MessageData_LinkCompactStateBody
- type MessageData_ReactionBody
- type MessageData_UserDataBody
- type MessageData_UsernameProofBody
- type MessageData_VerificationAddAddressBody
- type MessageData_VerificationRemoveBody
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- type NetworkLatencyMessage
- func (*NetworkLatencyMessage) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkLatencyMessage) GetAckMessage() *AckMessageBody
- func (m *NetworkLatencyMessage) GetBody() isNetworkLatencyMessage_Body
- func (x *NetworkLatencyMessage) GetPingMessage() *PingMessageBody
- func (*NetworkLatencyMessage) ProtoMessage()
- func (x *NetworkLatencyMessage) ProtoReflect() protoreflect.Message
- func (x *NetworkLatencyMessage) Reset()
- func (x *NetworkLatencyMessage) String() string
- type NetworkLatencyMessage_AckMessage
- type NetworkLatencyMessage_PingMessage
- type PingMessageBody
- func (*PingMessageBody) Descriptor() ([]byte, []int)deprecated
- func (x *PingMessageBody) GetPingOriginPeerId() []byte
- func (x *PingMessageBody) GetPingTimestamp() uint64
- func (*PingMessageBody) ProtoMessage()
- func (x *PingMessageBody) ProtoReflect() protoreflect.Message
- func (x *PingMessageBody) Reset()
- func (x *PingMessageBody) String() string
- type Protocol
- type ReactionBody
- func (*ReactionBody) Descriptor() ([]byte, []int)deprecated
- func (m *ReactionBody) GetTarget() isReactionBody_Target
- func (x *ReactionBody) GetTargetCastId() *CastId
- func (x *ReactionBody) GetTargetUrl() string
- func (x *ReactionBody) GetType() ReactionType
- func (*ReactionBody) ProtoMessage()
- func (x *ReactionBody) ProtoReflect() protoreflect.Message
- func (x *ReactionBody) Reset()
- func (x *ReactionBody) String() string
- type ReactionBody_TargetCastId
- type ReactionBody_TargetUrl
- type ReactionType
- func (ReactionType) Descriptor() protoreflect.EnumDescriptor
- func (x ReactionType) Enum() *ReactionType
- func (ReactionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReactionType) Number() protoreflect.EnumNumber
- func (x ReactionType) String() string
- func (ReactionType) Type() protoreflect.EnumType
- type SignatureScheme
- func (SignatureScheme) Descriptor() protoreflect.EnumDescriptor
- func (x SignatureScheme) Enum() *SignatureScheme
- func (SignatureScheme) EnumDescriptor() ([]byte, []int)deprecated
- func (x SignatureScheme) Number() protoreflect.EnumNumber
- func (x SignatureScheme) String() string
- func (SignatureScheme) Type() protoreflect.EnumType
- type UnimplementedHubServiceServer
- type UnsafeHubServiceServer
- type UserDataBody
- func (*UserDataBody) Descriptor() ([]byte, []int)deprecated
- func (x *UserDataBody) GetType() UserDataType
- func (x *UserDataBody) GetValue() string
- func (*UserDataBody) ProtoMessage()
- func (x *UserDataBody) ProtoReflect() protoreflect.Message
- func (x *UserDataBody) Reset()
- func (x *UserDataBody) String() string
- type UserDataType
- func (UserDataType) Descriptor() protoreflect.EnumDescriptor
- func (x UserDataType) Enum() *UserDataType
- func (UserDataType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserDataType) Number() protoreflect.EnumNumber
- func (x UserDataType) String() string
- func (UserDataType) Type() protoreflect.EnumType
- type UserNameProof
- func (*UserNameProof) Descriptor() ([]byte, []int)deprecated
- func (x *UserNameProof) GetFid() uint64
- func (x *UserNameProof) GetName() []byte
- func (x *UserNameProof) GetOwner() []byte
- func (x *UserNameProof) GetSignature() []byte
- func (x *UserNameProof) GetTimestamp() uint64
- func (x *UserNameProof) GetType() UserNameType
- func (*UserNameProof) ProtoMessage()
- func (x *UserNameProof) ProtoReflect() protoreflect.Message
- func (x *UserNameProof) Reset()
- func (x *UserNameProof) String() string
- type UserNameType
- func (UserNameType) Descriptor() protoreflect.EnumDescriptor
- func (x UserNameType) Enum() *UserNameType
- func (UserNameType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserNameType) Number() protoreflect.EnumNumber
- func (x UserNameType) String() string
- func (UserNameType) Type() protoreflect.EnumType
- type ValidationResponse
- func (*ValidationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationResponse) GetMessage() *Message
- func (x *ValidationResponse) GetValid() bool
- func (*ValidationResponse) ProtoMessage()
- func (x *ValidationResponse) ProtoReflect() protoreflect.Message
- func (x *ValidationResponse) Reset()
- func (x *ValidationResponse) String() string
- type VerificationAddAddressBody
- func (*VerificationAddAddressBody) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationAddAddressBody) GetAddress() []byte
- func (x *VerificationAddAddressBody) GetBlockHash() []byte
- func (x *VerificationAddAddressBody) GetChainId() uint32
- func (x *VerificationAddAddressBody) GetClaimSignature() []byte
- func (x *VerificationAddAddressBody) GetProtocol() Protocol
- func (x *VerificationAddAddressBody) GetVerificationType() uint32
- func (*VerificationAddAddressBody) ProtoMessage()
- func (x *VerificationAddAddressBody) ProtoReflect() protoreflect.Message
- func (x *VerificationAddAddressBody) Reset()
- func (x *VerificationAddAddressBody) String() string
- type VerificationRemoveBody
- func (*VerificationRemoveBody) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationRemoveBody) GetAddress() []byte
- func (x *VerificationRemoveBody) GetProtocol() Protocol
- func (*VerificationRemoveBody) ProtoMessage()
- func (x *VerificationRemoveBody) ProtoReflect() protoreflect.Message
- func (x *VerificationRemoveBody) Reset()
- func (x *VerificationRemoveBody) String() string
Constants ¶
This section is empty.
Variables ¶
var ( GossipVersion_name = map[int32]string{ 0: "GOSSIP_VERSION_V1", 1: "GOSSIP_VERSION_V1_1", } GossipVersion_value = map[string]int32{ "GOSSIP_VERSION_V1": 0, "GOSSIP_VERSION_V1_1": 1, } )
Enum value maps for GossipVersion.
var ( HashScheme_name = map[int32]string{ 0: "HASH_SCHEME_NONE", 1: "HASH_SCHEME_BLAKE3", } HashScheme_value = map[string]int32{ "HASH_SCHEME_NONE": 0, "HASH_SCHEME_BLAKE3": 1, } )
Enum value maps for HashScheme.
var ( SignatureScheme_name = map[int32]string{ 0: "SIGNATURE_SCHEME_NONE", 1: "SIGNATURE_SCHEME_ED25519", 2: "SIGNATURE_SCHEME_EIP712", } SignatureScheme_value = map[string]int32{ "SIGNATURE_SCHEME_NONE": 0, "SIGNATURE_SCHEME_ED25519": 1, "SIGNATURE_SCHEME_EIP712": 2, } )
Enum value maps for SignatureScheme.
var ( MessageType_name = map[int32]string{ 0: "MESSAGE_TYPE_NONE", 1: "MESSAGE_TYPE_CAST_ADD", 2: "MESSAGE_TYPE_CAST_REMOVE", 3: "MESSAGE_TYPE_REACTION_ADD", 4: "MESSAGE_TYPE_REACTION_REMOVE", 5: "MESSAGE_TYPE_LINK_ADD", 6: "MESSAGE_TYPE_LINK_REMOVE", 7: "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS", 8: "MESSAGE_TYPE_VERIFICATION_REMOVE", 11: "MESSAGE_TYPE_USER_DATA_ADD", 12: "MESSAGE_TYPE_USERNAME_PROOF", 13: "MESSAGE_TYPE_FRAME_ACTION", 14: "MESSAGE_TYPE_LINK_COMPACT_STATE", } MessageType_value = map[string]int32{ "MESSAGE_TYPE_NONE": 0, "MESSAGE_TYPE_CAST_ADD": 1, "MESSAGE_TYPE_CAST_REMOVE": 2, "MESSAGE_TYPE_REACTION_ADD": 3, "MESSAGE_TYPE_REACTION_REMOVE": 4, "MESSAGE_TYPE_LINK_ADD": 5, "MESSAGE_TYPE_LINK_REMOVE": 6, "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS": 7, "MESSAGE_TYPE_VERIFICATION_REMOVE": 8, "MESSAGE_TYPE_USER_DATA_ADD": 11, "MESSAGE_TYPE_USERNAME_PROOF": 12, "MESSAGE_TYPE_FRAME_ACTION": 13, "MESSAGE_TYPE_LINK_COMPACT_STATE": 14, } )
Enum value maps for MessageType.
var ( FarcasterNetwork_name = map[int32]string{ 0: "FARCASTER_NETWORK_NONE", 1: "FARCASTER_NETWORK_MAINNET", 2: "FARCASTER_NETWORK_TESTNET", 3: "FARCASTER_NETWORK_DEVNET", } FarcasterNetwork_value = map[string]int32{ "FARCASTER_NETWORK_NONE": 0, "FARCASTER_NETWORK_MAINNET": 1, "FARCASTER_NETWORK_TESTNET": 2, "FARCASTER_NETWORK_DEVNET": 3, } )
Enum value maps for FarcasterNetwork.
var ( UserDataType_name = map[int32]string{ 0: "USER_DATA_TYPE_NONE", 1: "USER_DATA_TYPE_PFP", 2: "USER_DATA_TYPE_DISPLAY", 3: "USER_DATA_TYPE_BIO", 5: "USER_DATA_TYPE_URL", 6: "USER_DATA_TYPE_USERNAME", } UserDataType_value = map[string]int32{ "USER_DATA_TYPE_NONE": 0, "USER_DATA_TYPE_PFP": 1, "USER_DATA_TYPE_DISPLAY": 2, "USER_DATA_TYPE_BIO": 3, "USER_DATA_TYPE_URL": 5, "USER_DATA_TYPE_USERNAME": 6, } )
Enum value maps for UserDataType.
var ( ReactionType_name = map[int32]string{ 0: "REACTION_TYPE_NONE", 1: "REACTION_TYPE_LIKE", 2: "REACTION_TYPE_RECAST", } ReactionType_value = map[string]int32{ "REACTION_TYPE_NONE": 0, "REACTION_TYPE_LIKE": 1, "REACTION_TYPE_RECAST": 2, } )
Enum value maps for ReactionType.
var ( Protocol_name = map[int32]string{ 0: "PROTOCOL_ETHEREUM", 1: "PROTOCOL_SOLANA", } Protocol_value = map[string]int32{ "PROTOCOL_ETHEREUM": 0, "PROTOCOL_SOLANA": 1, } )
Enum value maps for Protocol.
var ( UserNameType_name = map[int32]string{ 0: "USERNAME_TYPE_NONE", 1: "USERNAME_TYPE_FNAME", 2: "USERNAME_TYPE_ENS_L1", } UserNameType_value = map[string]int32{ "USERNAME_TYPE_NONE": 0, "USERNAME_TYPE_FNAME": 1, "USERNAME_TYPE_ENS_L1": 2, } )
Enum value maps for UserNameType.
var File_gossip_proto protoreflect.FileDescriptor
var File_message_proto protoreflect.FileDescriptor
var File_request_response_proto protoreflect.FileDescriptor
var File_username_proof_proto protoreflect.FileDescriptor
var HubService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "HubService", HandlerType: (*HubServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitMessage", Handler: _HubService_SubmitMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc.proto", }
HubService_ServiceDesc is the grpc.ServiceDesc for HubService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHubServiceServer ¶
func RegisterHubServiceServer(s grpc.ServiceRegistrar, srv HubServiceServer)
Types ¶
type AckMessageBody ¶
type AckMessageBody struct { PingOriginPeerId []byte `protobuf:"bytes,1,opt,name=ping_origin_peer_id,json=pingOriginPeerId,proto3" json:"ping_origin_peer_id,omitempty"` AckOriginPeerId []byte `protobuf:"bytes,2,opt,name=ack_origin_peer_id,json=ackOriginPeerId,proto3" json:"ack_origin_peer_id,omitempty"` PingTimestamp uint64 `protobuf:"varint,3,opt,name=ping_timestamp,json=pingTimestamp,proto3" json:"ping_timestamp,omitempty"` AckTimestamp uint64 `protobuf:"varint,4,opt,name=ack_timestamp,json=ackTimestamp,proto3" json:"ack_timestamp,omitempty"` // contains filtered or unexported fields }
func (*AckMessageBody) Descriptor
deprecated
func (*AckMessageBody) Descriptor() ([]byte, []int)
Deprecated: Use AckMessageBody.ProtoReflect.Descriptor instead.
func (*AckMessageBody) GetAckOriginPeerId ¶
func (x *AckMessageBody) GetAckOriginPeerId() []byte
func (*AckMessageBody) GetAckTimestamp ¶
func (x *AckMessageBody) GetAckTimestamp() uint64
func (*AckMessageBody) GetPingOriginPeerId ¶
func (x *AckMessageBody) GetPingOriginPeerId() []byte
func (*AckMessageBody) GetPingTimestamp ¶
func (x *AckMessageBody) GetPingTimestamp() uint64
func (*AckMessageBody) ProtoMessage ¶
func (*AckMessageBody) ProtoMessage()
func (*AckMessageBody) ProtoReflect ¶
func (x *AckMessageBody) ProtoReflect() protoreflect.Message
func (*AckMessageBody) Reset ¶
func (x *AckMessageBody) Reset()
func (*AckMessageBody) String ¶
func (x *AckMessageBody) String() string
type CastAddBody ¶
type CastAddBody struct { EmbedsDeprecated []string `protobuf:"bytes,1,rep,name=embeds_deprecated,json=embedsDeprecated,proto3" json:"embeds_deprecated,omitempty"` // URLs to be embedded in the cast Mentions []uint64 `protobuf:"varint,2,rep,packed,name=mentions,proto3" json:"mentions,omitempty"` // Fids mentioned in the cast // Types that are assignable to Parent: // // *CastAddBody_ParentCastId // *CastAddBody_ParentUrl Parent isCastAddBody_Parent `protobuf_oneof:"parent"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // Text of the cast MentionsPositions []uint32 `protobuf:"varint,5,rep,packed,name=mentions_positions,json=mentionsPositions,proto3" json:"mentions_positions,omitempty"` // Positions of the mentions in the text Embeds []*Embed `protobuf:"bytes,6,rep,name=embeds,proto3" json:"embeds,omitempty"` // URLs or cast ids to be embedded in the cast // contains filtered or unexported fields }
* Adds a new Cast
func (*CastAddBody) Descriptor
deprecated
func (*CastAddBody) Descriptor() ([]byte, []int)
Deprecated: Use CastAddBody.ProtoReflect.Descriptor instead.
func (*CastAddBody) GetEmbeds ¶
func (x *CastAddBody) GetEmbeds() []*Embed
func (*CastAddBody) GetEmbedsDeprecated ¶
func (x *CastAddBody) GetEmbedsDeprecated() []string
func (*CastAddBody) GetMentions ¶
func (x *CastAddBody) GetMentions() []uint64
func (*CastAddBody) GetMentionsPositions ¶
func (x *CastAddBody) GetMentionsPositions() []uint32
func (*CastAddBody) GetParent ¶
func (m *CastAddBody) GetParent() isCastAddBody_Parent
func (*CastAddBody) GetParentCastId ¶
func (x *CastAddBody) GetParentCastId() *CastId
func (*CastAddBody) GetParentUrl ¶
func (x *CastAddBody) GetParentUrl() string
func (*CastAddBody) GetText ¶
func (x *CastAddBody) GetText() string
func (*CastAddBody) ProtoMessage ¶
func (*CastAddBody) ProtoMessage()
func (*CastAddBody) ProtoReflect ¶
func (x *CastAddBody) ProtoReflect() protoreflect.Message
func (*CastAddBody) Reset ¶
func (x *CastAddBody) Reset()
func (*CastAddBody) String ¶
func (x *CastAddBody) String() string
type CastAddBody_ParentCastId ¶
type CastAddBody_ParentCastId struct {
ParentCastId *CastId `protobuf:"bytes,3,opt,name=parent_cast_id,json=parentCastId,proto3,oneof"` // Parent cast of the cast
}
type CastAddBody_ParentUrl ¶
type CastAddBody_ParentUrl struct {
ParentUrl string `protobuf:"bytes,7,opt,name=parent_url,json=parentUrl,proto3,oneof"` // Parent URL
}
type CastId ¶
type CastId struct { Fid uint64 `protobuf:"varint,1,opt,name=fid,proto3" json:"fid,omitempty"` // Fid of the user who created the cast Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // Hash of the cast // contains filtered or unexported fields }
* Identifier used to look up a Cast
func (*CastId) Descriptor
deprecated
func (*CastId) ProtoMessage ¶
func (*CastId) ProtoMessage()
func (*CastId) ProtoReflect ¶
func (x *CastId) ProtoReflect() protoreflect.Message
type CastRemoveBody ¶
type CastRemoveBody struct { TargetHash []byte `protobuf:"bytes,1,opt,name=target_hash,json=targetHash,proto3" json:"target_hash,omitempty"` // Hash of the cast to remove // contains filtered or unexported fields }
* Removes an existing Cast
func (*CastRemoveBody) Descriptor
deprecated
func (*CastRemoveBody) Descriptor() ([]byte, []int)
Deprecated: Use CastRemoveBody.ProtoReflect.Descriptor instead.
func (*CastRemoveBody) GetTargetHash ¶
func (x *CastRemoveBody) GetTargetHash() []byte
func (*CastRemoveBody) ProtoMessage ¶
func (*CastRemoveBody) ProtoMessage()
func (*CastRemoveBody) ProtoReflect ¶
func (x *CastRemoveBody) ProtoReflect() protoreflect.Message
func (*CastRemoveBody) Reset ¶
func (x *CastRemoveBody) Reset()
func (*CastRemoveBody) String ¶
func (x *CastRemoveBody) String() string
type ContactInfoContent ¶
type ContactInfoContent struct { GossipAddress *GossipAddressInfo `protobuf:"bytes,1,opt,name=gossip_address,json=gossipAddress,proto3" json:"gossip_address,omitempty"` RpcAddress *GossipAddressInfo `protobuf:"bytes,2,opt,name=rpc_address,json=rpcAddress,proto3" json:"rpc_address,omitempty"` ExcludedHashes []string `protobuf:"bytes,3,rep,name=excluded_hashes,json=excludedHashes,proto3" json:"excluded_hashes,omitempty"` Count uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` HubVersion string `protobuf:"bytes,5,opt,name=hub_version,json=hubVersion,proto3" json:"hub_version,omitempty"` Network FarcasterNetwork `protobuf:"varint,6,opt,name=network,proto3,enum=FarcasterNetwork" json:"network,omitempty"` AppVersion string `protobuf:"bytes,7,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` Timestamp uint64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Body *ContactInfoContentBody `protobuf:"bytes,9,opt,name=body,proto3" json:"body,omitempty"` Signature []byte `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"` // Signature of the message digest Signer []byte `protobuf:"bytes,11,opt,name=signer,proto3" json:"signer,omitempty"` // Public key of the peer that originated the contact info DataBytes []byte `protobuf:"bytes,12,opt,name=data_bytes,json=dataBytes,proto3,oneof" json:"data_bytes,omitempty"` // Optional alternative serialization used for signing // contains filtered or unexported fields }
func (*ContactInfoContent) Descriptor
deprecated
func (*ContactInfoContent) Descriptor() ([]byte, []int)
Deprecated: Use ContactInfoContent.ProtoReflect.Descriptor instead.
func (*ContactInfoContent) GetAppVersion ¶
func (x *ContactInfoContent) GetAppVersion() string
func (*ContactInfoContent) GetBody ¶
func (x *ContactInfoContent) GetBody() *ContactInfoContentBody
func (*ContactInfoContent) GetCount ¶
func (x *ContactInfoContent) GetCount() uint32
func (*ContactInfoContent) GetDataBytes ¶
func (x *ContactInfoContent) GetDataBytes() []byte
func (*ContactInfoContent) GetExcludedHashes ¶
func (x *ContactInfoContent) GetExcludedHashes() []string
func (*ContactInfoContent) GetGossipAddress ¶
func (x *ContactInfoContent) GetGossipAddress() *GossipAddressInfo
func (*ContactInfoContent) GetHubVersion ¶
func (x *ContactInfoContent) GetHubVersion() string
func (*ContactInfoContent) GetNetwork ¶
func (x *ContactInfoContent) GetNetwork() FarcasterNetwork
func (*ContactInfoContent) GetRpcAddress ¶
func (x *ContactInfoContent) GetRpcAddress() *GossipAddressInfo
func (*ContactInfoContent) GetSignature ¶
func (x *ContactInfoContent) GetSignature() []byte
func (*ContactInfoContent) GetSigner ¶
func (x *ContactInfoContent) GetSigner() []byte
func (*ContactInfoContent) GetTimestamp ¶
func (x *ContactInfoContent) GetTimestamp() uint64
func (*ContactInfoContent) ProtoMessage ¶
func (*ContactInfoContent) ProtoMessage()
func (*ContactInfoContent) ProtoReflect ¶
func (x *ContactInfoContent) ProtoReflect() protoreflect.Message
func (*ContactInfoContent) Reset ¶
func (x *ContactInfoContent) Reset()
func (*ContactInfoContent) String ¶
func (x *ContactInfoContent) String() string
type ContactInfoContentBody ¶
type ContactInfoContentBody struct { GossipAddress *GossipAddressInfo `protobuf:"bytes,1,opt,name=gossip_address,json=gossipAddress,proto3" json:"gossip_address,omitempty"` RpcAddress *GossipAddressInfo `protobuf:"bytes,2,opt,name=rpc_address,json=rpcAddress,proto3" json:"rpc_address,omitempty"` ExcludedHashes []string `protobuf:"bytes,3,rep,name=excluded_hashes,json=excludedHashes,proto3" json:"excluded_hashes,omitempty"` Count uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` HubVersion string `protobuf:"bytes,5,opt,name=hub_version,json=hubVersion,proto3" json:"hub_version,omitempty"` Network FarcasterNetwork `protobuf:"varint,6,opt,name=network,proto3,enum=FarcasterNetwork" json:"network,omitempty"` AppVersion string `protobuf:"bytes,7,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` Timestamp uint64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*ContactInfoContentBody) Descriptor
deprecated
func (*ContactInfoContentBody) Descriptor() ([]byte, []int)
Deprecated: Use ContactInfoContentBody.ProtoReflect.Descriptor instead.
func (*ContactInfoContentBody) GetAppVersion ¶
func (x *ContactInfoContentBody) GetAppVersion() string
func (*ContactInfoContentBody) GetCount ¶
func (x *ContactInfoContentBody) GetCount() uint32
func (*ContactInfoContentBody) GetExcludedHashes ¶
func (x *ContactInfoContentBody) GetExcludedHashes() []string
func (*ContactInfoContentBody) GetGossipAddress ¶
func (x *ContactInfoContentBody) GetGossipAddress() *GossipAddressInfo
func (*ContactInfoContentBody) GetHubVersion ¶
func (x *ContactInfoContentBody) GetHubVersion() string
func (*ContactInfoContentBody) GetNetwork ¶
func (x *ContactInfoContentBody) GetNetwork() FarcasterNetwork
func (*ContactInfoContentBody) GetRpcAddress ¶
func (x *ContactInfoContentBody) GetRpcAddress() *GossipAddressInfo
func (*ContactInfoContentBody) GetTimestamp ¶
func (x *ContactInfoContentBody) GetTimestamp() uint64
func (*ContactInfoContentBody) ProtoMessage ¶
func (*ContactInfoContentBody) ProtoMessage()
func (*ContactInfoContentBody) ProtoReflect ¶
func (x *ContactInfoContentBody) ProtoReflect() protoreflect.Message
func (*ContactInfoContentBody) Reset ¶
func (x *ContactInfoContentBody) Reset()
func (*ContactInfoContentBody) String ¶
func (x *ContactInfoContentBody) String() string
type Embed ¶
type Embed struct { // Types that are assignable to Embed: // // *Embed_Url // *Embed_CastId Embed isEmbed_Embed `protobuf_oneof:"embed"` // contains filtered or unexported fields }
func (*Embed) Descriptor
deprecated
func (*Embed) ProtoMessage ¶
func (*Embed) ProtoMessage()
func (*Embed) ProtoReflect ¶
func (x *Embed) ProtoReflect() protoreflect.Message
type Embed_CastId ¶
type Embed_CastId struct {
CastId *CastId `protobuf:"bytes,2,opt,name=cast_id,json=castId,proto3,oneof"`
}
type Embed_Url ¶
type Embed_Url struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3,oneof"`
}
type FarcasterNetwork ¶
type FarcasterNetwork int32
* Farcaster network the message is intended for
const ( FarcasterNetwork_FARCASTER_NETWORK_NONE FarcasterNetwork = 0 FarcasterNetwork_FARCASTER_NETWORK_MAINNET FarcasterNetwork = 1 // Public primary network FarcasterNetwork_FARCASTER_NETWORK_TESTNET FarcasterNetwork = 2 // Public test network FarcasterNetwork_FARCASTER_NETWORK_DEVNET FarcasterNetwork = 3 // Private test network )
func (FarcasterNetwork) Descriptor ¶
func (FarcasterNetwork) Descriptor() protoreflect.EnumDescriptor
func (FarcasterNetwork) Enum ¶
func (x FarcasterNetwork) Enum() *FarcasterNetwork
func (FarcasterNetwork) EnumDescriptor
deprecated
func (FarcasterNetwork) EnumDescriptor() ([]byte, []int)
Deprecated: Use FarcasterNetwork.Descriptor instead.
func (FarcasterNetwork) Number ¶
func (x FarcasterNetwork) Number() protoreflect.EnumNumber
func (FarcasterNetwork) String ¶
func (x FarcasterNetwork) String() string
func (FarcasterNetwork) Type ¶
func (FarcasterNetwork) Type() protoreflect.EnumType
type FrameActionBody ¶
type FrameActionBody struct { Url []byte `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // URL of the Frame triggering the action ButtonIndex uint32 `protobuf:"varint,2,opt,name=button_index,json=buttonIndex,proto3" json:"button_index,omitempty"` // The index of the button pressed (1-4) CastId *CastId `protobuf:"bytes,3,opt,name=cast_id,json=castId,proto3" json:"cast_id,omitempty"` // The cast which contained the frame url InputText []byte `protobuf:"bytes,4,opt,name=input_text,json=inputText,proto3" json:"input_text,omitempty"` // Text input from the user, if present State []byte `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // Serialized frame state value TransactionId []byte `protobuf:"bytes,6,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Chain-specific transaction ID for tx actions Address []byte `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` // Chain-specific address for tx actions // contains filtered or unexported fields }
* A Farcaster Frame action
func (*FrameActionBody) Descriptor
deprecated
func (*FrameActionBody) Descriptor() ([]byte, []int)
Deprecated: Use FrameActionBody.ProtoReflect.Descriptor instead.
func (*FrameActionBody) GetAddress ¶
func (x *FrameActionBody) GetAddress() []byte
func (*FrameActionBody) GetButtonIndex ¶
func (x *FrameActionBody) GetButtonIndex() uint32
func (*FrameActionBody) GetCastId ¶
func (x *FrameActionBody) GetCastId() *CastId
func (*FrameActionBody) GetInputText ¶
func (x *FrameActionBody) GetInputText() []byte
func (*FrameActionBody) GetState ¶
func (x *FrameActionBody) GetState() []byte
func (*FrameActionBody) GetTransactionId ¶
func (x *FrameActionBody) GetTransactionId() []byte
func (*FrameActionBody) GetUrl ¶
func (x *FrameActionBody) GetUrl() []byte
func (*FrameActionBody) ProtoMessage ¶
func (*FrameActionBody) ProtoMessage()
func (*FrameActionBody) ProtoReflect ¶
func (x *FrameActionBody) ProtoReflect() protoreflect.Message
func (*FrameActionBody) Reset ¶
func (x *FrameActionBody) Reset()
func (*FrameActionBody) String ¶
func (x *FrameActionBody) String() string
type GossipAddressInfo ¶
type GossipAddressInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Family uint32 `protobuf:"varint,2,opt,name=family,proto3" json:"family,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` DnsName string `protobuf:"bytes,4,opt,name=dns_name,json=dnsName,proto3" json:"dns_name,omitempty"` // contains filtered or unexported fields }
func (*GossipAddressInfo) Descriptor
deprecated
func (*GossipAddressInfo) Descriptor() ([]byte, []int)
Deprecated: Use GossipAddressInfo.ProtoReflect.Descriptor instead.
func (*GossipAddressInfo) GetAddress ¶
func (x *GossipAddressInfo) GetAddress() string
func (*GossipAddressInfo) GetDnsName ¶
func (x *GossipAddressInfo) GetDnsName() string
func (*GossipAddressInfo) GetFamily ¶
func (x *GossipAddressInfo) GetFamily() uint32
func (*GossipAddressInfo) GetPort ¶
func (x *GossipAddressInfo) GetPort() uint32
func (*GossipAddressInfo) ProtoMessage ¶
func (*GossipAddressInfo) ProtoMessage()
func (*GossipAddressInfo) ProtoReflect ¶
func (x *GossipAddressInfo) ProtoReflect() protoreflect.Message
func (*GossipAddressInfo) Reset ¶
func (x *GossipAddressInfo) Reset()
func (*GossipAddressInfo) String ¶
func (x *GossipAddressInfo) String() string
type GossipMessage ¶
type GossipMessage struct { // Types that are assignable to Content: // // *GossipMessage_Message // *GossipMessage_ContactInfoContent // *GossipMessage_NetworkLatencyMessage // *GossipMessage_MessageBundle Content isGossipMessage_Content `protobuf_oneof:"content"` Topics []string `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"` PeerId []byte `protobuf:"bytes,5,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Version GossipVersion `protobuf:"varint,6,opt,name=version,proto3,enum=GossipVersion" json:"version,omitempty"` Timestamp uint32 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Farcaster epoch timestamp in seconds when this message was first created // contains filtered or unexported fields }
func (*GossipMessage) Descriptor
deprecated
func (*GossipMessage) Descriptor() ([]byte, []int)
Deprecated: Use GossipMessage.ProtoReflect.Descriptor instead.
func (*GossipMessage) GetContactInfoContent ¶
func (x *GossipMessage) GetContactInfoContent() *ContactInfoContent
func (*GossipMessage) GetContent ¶
func (m *GossipMessage) GetContent() isGossipMessage_Content
func (*GossipMessage) GetMessage ¶
func (x *GossipMessage) GetMessage() *Message
func (*GossipMessage) GetMessageBundle ¶
func (x *GossipMessage) GetMessageBundle() *MessageBundle
func (*GossipMessage) GetNetworkLatencyMessage ¶
func (x *GossipMessage) GetNetworkLatencyMessage() *NetworkLatencyMessage
func (*GossipMessage) GetPeerId ¶
func (x *GossipMessage) GetPeerId() []byte
func (*GossipMessage) GetTimestamp ¶
func (x *GossipMessage) GetTimestamp() uint32
func (*GossipMessage) GetTopics ¶
func (x *GossipMessage) GetTopics() []string
func (*GossipMessage) GetVersion ¶
func (x *GossipMessage) GetVersion() GossipVersion
func (*GossipMessage) ProtoMessage ¶
func (*GossipMessage) ProtoMessage()
func (*GossipMessage) ProtoReflect ¶
func (x *GossipMessage) ProtoReflect() protoreflect.Message
func (*GossipMessage) Reset ¶
func (x *GossipMessage) Reset()
func (*GossipMessage) String ¶
func (x *GossipMessage) String() string
type GossipMessage_ContactInfoContent ¶
type GossipMessage_ContactInfoContent struct { // Deprecated // IdRegistryEvent id_registry_event = 2; ContactInfoContent *ContactInfoContent `protobuf:"bytes,3,opt,name=contact_info_content,json=contactInfoContent,proto3,oneof"` }
type GossipMessage_Message ¶
type GossipMessage_Message struct {
Message *Message `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}
type GossipMessage_MessageBundle ¶
type GossipMessage_MessageBundle struct {
MessageBundle *MessageBundle `protobuf:"bytes,9,opt,name=message_bundle,json=messageBundle,proto3,oneof"`
}
type GossipMessage_NetworkLatencyMessage ¶
type GossipMessage_NetworkLatencyMessage struct {
NetworkLatencyMessage *NetworkLatencyMessage `protobuf:"bytes,7,opt,name=network_latency_message,json=networkLatencyMessage,proto3,oneof"`
}
type GossipVersion ¶
type GossipVersion int32
const ( GossipVersion_GOSSIP_VERSION_V1 GossipVersion = 0 GossipVersion_GOSSIP_VERSION_V1_1 GossipVersion = 1 )
func (GossipVersion) Descriptor ¶
func (GossipVersion) Descriptor() protoreflect.EnumDescriptor
func (GossipVersion) Enum ¶
func (x GossipVersion) Enum() *GossipVersion
func (GossipVersion) EnumDescriptor
deprecated
func (GossipVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use GossipVersion.Descriptor instead.
func (GossipVersion) Number ¶
func (x GossipVersion) Number() protoreflect.EnumNumber
func (GossipVersion) String ¶
func (x GossipVersion) String() string
func (GossipVersion) Type ¶
func (GossipVersion) Type() protoreflect.EnumType
type HashScheme ¶
type HashScheme int32
* Type of hashing scheme used to produce a digest of MessageData
const ( HashScheme_HASH_SCHEME_NONE HashScheme = 0 HashScheme_HASH_SCHEME_BLAKE3 HashScheme = 1 // Default scheme for hashing MessageData )
func (HashScheme) Descriptor ¶
func (HashScheme) Descriptor() protoreflect.EnumDescriptor
func (HashScheme) Enum ¶
func (x HashScheme) Enum() *HashScheme
func (HashScheme) EnumDescriptor
deprecated
func (HashScheme) EnumDescriptor() ([]byte, []int)
Deprecated: Use HashScheme.Descriptor instead.
func (HashScheme) Number ¶
func (x HashScheme) Number() protoreflect.EnumNumber
func (HashScheme) String ¶
func (x HashScheme) String() string
func (HashScheme) Type ¶
func (HashScheme) Type() protoreflect.EnumType
type HubServiceClient ¶
type HubServiceClient interface {
SubmitMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
HubServiceClient is the client API for HubService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHubServiceClient ¶
func NewHubServiceClient(cc grpc.ClientConnInterface) HubServiceClient
type HubServiceServer ¶
type HubServiceServer interface { SubmitMessage(context.Context, *Message) (*Message, error) // contains filtered or unexported methods }
HubServiceServer is the server API for HubService service. All implementations must embed UnimplementedHubServiceServer for forward compatibility
type LinkBody ¶
type LinkBody struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type of link, <= 8 characters DisplayTimestamp *uint32 `protobuf:"varint,2,opt,name=displayTimestamp,proto3,oneof" json:"displayTimestamp,omitempty"` // User-defined timestamp that preserves original timestamp when message.data.timestamp needs to be updated for compaction // Types that are assignable to Target: // // *LinkBody_TargetFid Target isLinkBody_Target `protobuf_oneof:"target"` // contains filtered or unexported fields }
* Adds or removes a Link
func (*LinkBody) Descriptor
deprecated
func (*LinkBody) GetDisplayTimestamp ¶
func (*LinkBody) GetTargetFid ¶
func (*LinkBody) ProtoMessage ¶
func (*LinkBody) ProtoMessage()
func (*LinkBody) ProtoReflect ¶
func (x *LinkBody) ProtoReflect() protoreflect.Message
type LinkBody_TargetFid ¶
type LinkBody_TargetFid struct {
TargetFid uint64 `protobuf:"varint,3,opt,name=target_fid,json=targetFid,proto3,oneof"` // The fid the link relates to
}
type LinkCompactStateBody ¶
type LinkCompactStateBody struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type of link, <= 8 characters TargetFids []uint64 `protobuf:"varint,2,rep,packed,name=target_fids,json=targetFids,proto3" json:"target_fids,omitempty"` // contains filtered or unexported fields }
* A Compaction message for the Link Store
func (*LinkCompactStateBody) Descriptor
deprecated
func (*LinkCompactStateBody) Descriptor() ([]byte, []int)
Deprecated: Use LinkCompactStateBody.ProtoReflect.Descriptor instead.
func (*LinkCompactStateBody) GetTargetFids ¶
func (x *LinkCompactStateBody) GetTargetFids() []uint64
func (*LinkCompactStateBody) GetType ¶
func (x *LinkCompactStateBody) GetType() string
func (*LinkCompactStateBody) ProtoMessage ¶
func (*LinkCompactStateBody) ProtoMessage()
func (*LinkCompactStateBody) ProtoReflect ¶
func (x *LinkCompactStateBody) ProtoReflect() protoreflect.Message
func (*LinkCompactStateBody) Reset ¶
func (x *LinkCompactStateBody) Reset()
func (*LinkCompactStateBody) String ¶
func (x *LinkCompactStateBody) String() string
type Message ¶
type Message struct { Data *MessageData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Contents of the message Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // Hash digest of data HashScheme HashScheme `protobuf:"varint,3,opt,name=hash_scheme,json=hashScheme,proto3,enum=HashScheme" json:"hash_scheme,omitempty"` // Hash scheme that produced the hash digest Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // Signature of the hash digest SignatureScheme SignatureScheme `` // Signature scheme that produced the signature /* 128-byte string literal not displayed */ Signer []byte `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty"` // Public key or address of the key pair that produced the signature DataBytes []byte `protobuf:"bytes,7,opt,name=data_bytes,json=dataBytes,proto3,oneof" json:"data_bytes,omitempty"` // MessageData serialized to bytes if using protobuf serialization other than ts-proto // contains filtered or unexported fields }
* A Message is a delta operation on the Farcaster network. The message protobuf is an envelope that wraps a MessageData object and contains a hash and signature which can verify its authenticity.
func (*Message) Descriptor
deprecated
func (*Message) GetData ¶
func (x *Message) GetData() *MessageData
func (*Message) GetDataBytes ¶
func (*Message) GetHashScheme ¶
func (x *Message) GetHashScheme() HashScheme
func (*Message) GetSignature ¶
func (*Message) GetSignatureScheme ¶
func (x *Message) GetSignatureScheme() SignatureScheme
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageBundle ¶
type MessageBundle struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*MessageBundle) Descriptor
deprecated
func (*MessageBundle) Descriptor() ([]byte, []int)
Deprecated: Use MessageBundle.ProtoReflect.Descriptor instead.
func (*MessageBundle) GetHash ¶
func (x *MessageBundle) GetHash() []byte
func (*MessageBundle) GetMessages ¶
func (x *MessageBundle) GetMessages() []*Message
func (*MessageBundle) ProtoMessage ¶
func (*MessageBundle) ProtoMessage()
func (*MessageBundle) ProtoReflect ¶
func (x *MessageBundle) ProtoReflect() protoreflect.Message
func (*MessageBundle) Reset ¶
func (x *MessageBundle) Reset()
func (*MessageBundle) String ¶
func (x *MessageBundle) String() string
type MessageData ¶
type MessageData struct { Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=MessageType" json:"type,omitempty"` // Type of message contained in the body Fid uint64 `protobuf:"varint,2,opt,name=fid,proto3" json:"fid,omitempty"` // Farcaster ID of the user producing the message Timestamp uint32 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Farcaster epoch timestamp in seconds Network FarcasterNetwork `protobuf:"varint,4,opt,name=network,proto3,enum=FarcasterNetwork" json:"network,omitempty"` // Farcaster network the message is intended for // Types that are assignable to Body: // // *MessageData_CastAddBody // *MessageData_CastRemoveBody // *MessageData_ReactionBody // *MessageData_VerificationAddAddressBody // *MessageData_VerificationRemoveBody // *MessageData_UserDataBody // *MessageData_LinkBody // *MessageData_UsernameProofBody // *MessageData_FrameActionBody // *MessageData_LinkCompactStateBody Body isMessageData_Body `protobuf_oneof:"body"` // contains filtered or unexported fields }
* A MessageData object contains properties common to all messages and wraps a body object which contains properties specific to the MessageType.
func (*MessageData) Descriptor
deprecated
func (*MessageData) Descriptor() ([]byte, []int)
Deprecated: Use MessageData.ProtoReflect.Descriptor instead.
func (*MessageData) GetBody ¶
func (m *MessageData) GetBody() isMessageData_Body
func (*MessageData) GetCastAddBody ¶
func (x *MessageData) GetCastAddBody() *CastAddBody
func (*MessageData) GetCastRemoveBody ¶
func (x *MessageData) GetCastRemoveBody() *CastRemoveBody
func (*MessageData) GetFid ¶
func (x *MessageData) GetFid() uint64
func (*MessageData) GetFrameActionBody ¶
func (x *MessageData) GetFrameActionBody() *FrameActionBody
func (*MessageData) GetLinkBody ¶
func (x *MessageData) GetLinkBody() *LinkBody
func (*MessageData) GetLinkCompactStateBody ¶
func (x *MessageData) GetLinkCompactStateBody() *LinkCompactStateBody
func (*MessageData) GetNetwork ¶
func (x *MessageData) GetNetwork() FarcasterNetwork
func (*MessageData) GetReactionBody ¶
func (x *MessageData) GetReactionBody() *ReactionBody
func (*MessageData) GetTimestamp ¶
func (x *MessageData) GetTimestamp() uint32
func (*MessageData) GetType ¶
func (x *MessageData) GetType() MessageType
func (*MessageData) GetUserDataBody ¶
func (x *MessageData) GetUserDataBody() *UserDataBody
func (*MessageData) GetUsernameProofBody ¶
func (x *MessageData) GetUsernameProofBody() *UserNameProof
func (*MessageData) GetVerificationAddAddressBody ¶
func (x *MessageData) GetVerificationAddAddressBody() *VerificationAddAddressBody
func (*MessageData) GetVerificationRemoveBody ¶
func (x *MessageData) GetVerificationRemoveBody() *VerificationRemoveBody
func (*MessageData) ProtoMessage ¶
func (*MessageData) ProtoMessage()
func (*MessageData) ProtoReflect ¶
func (x *MessageData) ProtoReflect() protoreflect.Message
func (*MessageData) Reset ¶
func (x *MessageData) Reset()
func (*MessageData) String ¶
func (x *MessageData) String() string
type MessageData_CastAddBody ¶
type MessageData_CastAddBody struct {
CastAddBody *CastAddBody `protobuf:"bytes,5,opt,name=cast_add_body,json=castAddBody,proto3,oneof"`
}
type MessageData_CastRemoveBody ¶
type MessageData_CastRemoveBody struct {
CastRemoveBody *CastRemoveBody `protobuf:"bytes,6,opt,name=cast_remove_body,json=castRemoveBody,proto3,oneof"`
}
type MessageData_FrameActionBody ¶
type MessageData_FrameActionBody struct {
FrameActionBody *FrameActionBody `protobuf:"bytes,16,opt,name=frame_action_body,json=frameActionBody,proto3,oneof"`
}
type MessageData_LinkBody ¶
type MessageData_LinkBody struct { // SignerRemoveBody signer_remove_body = 13; // Deprecated LinkBody *LinkBody `protobuf:"bytes,14,opt,name=link_body,json=linkBody,proto3,oneof"` }
type MessageData_LinkCompactStateBody ¶
type MessageData_LinkCompactStateBody struct { // Compaction messages LinkCompactStateBody *LinkCompactStateBody `protobuf:"bytes,17,opt,name=link_compact_state_body,json=linkCompactStateBody,proto3,oneof"` }
type MessageData_ReactionBody ¶
type MessageData_ReactionBody struct {
ReactionBody *ReactionBody `protobuf:"bytes,7,opt,name=reaction_body,json=reactionBody,proto3,oneof"`
}
type MessageData_UserDataBody ¶
type MessageData_UserDataBody struct { // SignerAddBody signer_add_body = 11; // Deprecated UserDataBody *UserDataBody `protobuf:"bytes,12,opt,name=user_data_body,json=userDataBody,proto3,oneof"` }
type MessageData_UsernameProofBody ¶
type MessageData_UsernameProofBody struct {
UsernameProofBody *UserNameProof `protobuf:"bytes,15,opt,name=username_proof_body,json=usernameProofBody,proto3,oneof"`
}
type MessageData_VerificationAddAddressBody ¶
type MessageData_VerificationAddAddressBody struct {
VerificationAddAddressBody *VerificationAddAddressBody `protobuf:"bytes,9,opt,name=verification_add_address_body,json=verificationAddAddressBody,proto3,oneof"`
}
type MessageData_VerificationRemoveBody ¶
type MessageData_VerificationRemoveBody struct {
VerificationRemoveBody *VerificationRemoveBody `protobuf:"bytes,10,opt,name=verification_remove_body,json=verificationRemoveBody,proto3,oneof"`
}
type MessageType ¶
type MessageType int32
* Type of the MessageBody
const ( MessageType_MESSAGE_TYPE_NONE MessageType = 0 MessageType_MESSAGE_TYPE_CAST_ADD MessageType = 1 // Add a new Cast MessageType_MESSAGE_TYPE_CAST_REMOVE MessageType = 2 // Remove an existing Cast MessageType_MESSAGE_TYPE_REACTION_ADD MessageType = 3 // Add a Reaction to a Cast MessageType_MESSAGE_TYPE_REACTION_REMOVE MessageType = 4 // Remove a Reaction from a Cast MessageType_MESSAGE_TYPE_LINK_ADD MessageType = 5 // Add a new Link MessageType_MESSAGE_TYPE_LINK_REMOVE MessageType = 6 // Remove an existing Link MessageType_MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS MessageType = 7 // Add a Verification of an Ethereum Address MessageType_MESSAGE_TYPE_VERIFICATION_REMOVE MessageType = 8 // Remove a Verification // Deprecated // MESSAGE_TYPE_SIGNER_ADD = 9; // Add a new Ed25519 key pair that signs messages for a user // MESSAGE_TYPE_SIGNER_REMOVE = 10; // Remove an Ed25519 key pair that signs messages for a user MessageType_MESSAGE_TYPE_USER_DATA_ADD MessageType = 11 // Add metadata about a user MessageType_MESSAGE_TYPE_USERNAME_PROOF MessageType = 12 // Add or replace a username proof MessageType_MESSAGE_TYPE_FRAME_ACTION MessageType = 13 // A Farcaster Frame action MessageType_MESSAGE_TYPE_LINK_COMPACT_STATE MessageType = 14 // Link Compaction State Message )
func (MessageType) Descriptor ¶
func (MessageType) Descriptor() protoreflect.EnumDescriptor
func (MessageType) Enum ¶
func (x MessageType) Enum() *MessageType
func (MessageType) EnumDescriptor
deprecated
func (MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageType.Descriptor instead.
func (MessageType) Number ¶
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶
func (MessageType) Type() protoreflect.EnumType
type NetworkLatencyMessage ¶
type NetworkLatencyMessage struct { // Types that are assignable to Body: // // *NetworkLatencyMessage_PingMessage // *NetworkLatencyMessage_AckMessage Body isNetworkLatencyMessage_Body `protobuf_oneof:"body"` // contains filtered or unexported fields }
func (*NetworkLatencyMessage) Descriptor
deprecated
func (*NetworkLatencyMessage) Descriptor() ([]byte, []int)
Deprecated: Use NetworkLatencyMessage.ProtoReflect.Descriptor instead.
func (*NetworkLatencyMessage) GetAckMessage ¶
func (x *NetworkLatencyMessage) GetAckMessage() *AckMessageBody
func (*NetworkLatencyMessage) GetBody ¶
func (m *NetworkLatencyMessage) GetBody() isNetworkLatencyMessage_Body
func (*NetworkLatencyMessage) GetPingMessage ¶
func (x *NetworkLatencyMessage) GetPingMessage() *PingMessageBody
func (*NetworkLatencyMessage) ProtoMessage ¶
func (*NetworkLatencyMessage) ProtoMessage()
func (*NetworkLatencyMessage) ProtoReflect ¶
func (x *NetworkLatencyMessage) ProtoReflect() protoreflect.Message
func (*NetworkLatencyMessage) Reset ¶
func (x *NetworkLatencyMessage) Reset()
func (*NetworkLatencyMessage) String ¶
func (x *NetworkLatencyMessage) String() string
type NetworkLatencyMessage_AckMessage ¶
type NetworkLatencyMessage_AckMessage struct {
AckMessage *AckMessageBody `protobuf:"bytes,3,opt,name=ack_message,json=ackMessage,proto3,oneof"`
}
type NetworkLatencyMessage_PingMessage ¶
type NetworkLatencyMessage_PingMessage struct {
PingMessage *PingMessageBody `protobuf:"bytes,2,opt,name=ping_message,json=pingMessage,proto3,oneof"`
}
type PingMessageBody ¶
type PingMessageBody struct { PingOriginPeerId []byte `protobuf:"bytes,1,opt,name=ping_origin_peer_id,json=pingOriginPeerId,proto3" json:"ping_origin_peer_id,omitempty"` PingTimestamp uint64 `protobuf:"varint,2,opt,name=ping_timestamp,json=pingTimestamp,proto3" json:"ping_timestamp,omitempty"` // contains filtered or unexported fields }
func (*PingMessageBody) Descriptor
deprecated
func (*PingMessageBody) Descriptor() ([]byte, []int)
Deprecated: Use PingMessageBody.ProtoReflect.Descriptor instead.
func (*PingMessageBody) GetPingOriginPeerId ¶
func (x *PingMessageBody) GetPingOriginPeerId() []byte
func (*PingMessageBody) GetPingTimestamp ¶
func (x *PingMessageBody) GetPingTimestamp() uint64
func (*PingMessageBody) ProtoMessage ¶
func (*PingMessageBody) ProtoMessage()
func (*PingMessageBody) ProtoReflect ¶
func (x *PingMessageBody) ProtoReflect() protoreflect.Message
func (*PingMessageBody) Reset ¶
func (x *PingMessageBody) Reset()
func (*PingMessageBody) String ¶
func (x *PingMessageBody) String() string
type Protocol ¶
type Protocol int32
* Type of Protocol to disambiguate verification addresses
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type ReactionBody ¶
type ReactionBody struct { Type ReactionType `protobuf:"varint,1,opt,name=type,proto3,enum=ReactionType" json:"type,omitempty"` // Type of reaction // Types that are assignable to Target: // // *ReactionBody_TargetCastId // *ReactionBody_TargetUrl Target isReactionBody_Target `protobuf_oneof:"target"` // contains filtered or unexported fields }
* Adds or removes a Reaction from a Cast
func (*ReactionBody) Descriptor
deprecated
func (*ReactionBody) Descriptor() ([]byte, []int)
Deprecated: Use ReactionBody.ProtoReflect.Descriptor instead.
func (*ReactionBody) GetTarget ¶
func (m *ReactionBody) GetTarget() isReactionBody_Target
func (*ReactionBody) GetTargetCastId ¶
func (x *ReactionBody) GetTargetCastId() *CastId
func (*ReactionBody) GetTargetUrl ¶
func (x *ReactionBody) GetTargetUrl() string
func (*ReactionBody) GetType ¶
func (x *ReactionBody) GetType() ReactionType
func (*ReactionBody) ProtoMessage ¶
func (*ReactionBody) ProtoMessage()
func (*ReactionBody) ProtoReflect ¶
func (x *ReactionBody) ProtoReflect() protoreflect.Message
func (*ReactionBody) Reset ¶
func (x *ReactionBody) Reset()
func (*ReactionBody) String ¶
func (x *ReactionBody) String() string
type ReactionBody_TargetCastId ¶
type ReactionBody_TargetCastId struct {
TargetCastId *CastId `protobuf:"bytes,2,opt,name=target_cast_id,json=targetCastId,proto3,oneof"` // CastId of the Cast to react to
}
type ReactionBody_TargetUrl ¶
type ReactionBody_TargetUrl struct {
TargetUrl string `protobuf:"bytes,3,opt,name=target_url,json=targetUrl,proto3,oneof"` // URL to react to
}
type ReactionType ¶
type ReactionType int32
* Type of Reaction
const ( ReactionType_REACTION_TYPE_NONE ReactionType = 0 ReactionType_REACTION_TYPE_LIKE ReactionType = 1 // Like the target cast ReactionType_REACTION_TYPE_RECAST ReactionType = 2 // Share target cast to the user's audience )
func (ReactionType) Descriptor ¶
func (ReactionType) Descriptor() protoreflect.EnumDescriptor
func (ReactionType) Enum ¶
func (x ReactionType) Enum() *ReactionType
func (ReactionType) EnumDescriptor
deprecated
func (ReactionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReactionType.Descriptor instead.
func (ReactionType) Number ¶
func (x ReactionType) Number() protoreflect.EnumNumber
func (ReactionType) String ¶
func (x ReactionType) String() string
func (ReactionType) Type ¶
func (ReactionType) Type() protoreflect.EnumType
type SignatureScheme ¶
type SignatureScheme int32
* Type of signature scheme used to sign the Message hash
const ( SignatureScheme_SIGNATURE_SCHEME_NONE SignatureScheme = 0 SignatureScheme_SIGNATURE_SCHEME_ED25519 SignatureScheme = 1 // Ed25519 signature (default) SignatureScheme_SIGNATURE_SCHEME_EIP712 SignatureScheme = 2 // ECDSA signature using EIP-712 scheme )
func (SignatureScheme) Descriptor ¶
func (SignatureScheme) Descriptor() protoreflect.EnumDescriptor
func (SignatureScheme) Enum ¶
func (x SignatureScheme) Enum() *SignatureScheme
func (SignatureScheme) EnumDescriptor
deprecated
func (SignatureScheme) EnumDescriptor() ([]byte, []int)
Deprecated: Use SignatureScheme.Descriptor instead.
func (SignatureScheme) Number ¶
func (x SignatureScheme) Number() protoreflect.EnumNumber
func (SignatureScheme) String ¶
func (x SignatureScheme) String() string
func (SignatureScheme) Type ¶
func (SignatureScheme) Type() protoreflect.EnumType
type UnimplementedHubServiceServer ¶
type UnimplementedHubServiceServer struct { }
UnimplementedHubServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHubServiceServer) SubmitMessage ¶
type UnsafeHubServiceServer ¶
type UnsafeHubServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHubServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HubServiceServer will result in compilation errors.
type UserDataBody ¶
type UserDataBody struct { Type UserDataType `protobuf:"varint,1,opt,name=type,proto3,enum=UserDataType" json:"type,omitempty"` // Type of metadata Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Value of the metadata // contains filtered or unexported fields }
* Adds metadata about a user
func (*UserDataBody) Descriptor
deprecated
func (*UserDataBody) Descriptor() ([]byte, []int)
Deprecated: Use UserDataBody.ProtoReflect.Descriptor instead.
func (*UserDataBody) GetType ¶
func (x *UserDataBody) GetType() UserDataType
func (*UserDataBody) GetValue ¶
func (x *UserDataBody) GetValue() string
func (*UserDataBody) ProtoMessage ¶
func (*UserDataBody) ProtoMessage()
func (*UserDataBody) ProtoReflect ¶
func (x *UserDataBody) ProtoReflect() protoreflect.Message
func (*UserDataBody) Reset ¶
func (x *UserDataBody) Reset()
func (*UserDataBody) String ¶
func (x *UserDataBody) String() string
type UserDataType ¶
type UserDataType int32
* Type of UserData
const ( UserDataType_USER_DATA_TYPE_NONE UserDataType = 0 UserDataType_USER_DATA_TYPE_PFP UserDataType = 1 // Profile Picture for the user UserDataType_USER_DATA_TYPE_DISPLAY UserDataType = 2 // Display Name for the user UserDataType_USER_DATA_TYPE_BIO UserDataType = 3 // Bio for the user UserDataType_USER_DATA_TYPE_URL UserDataType = 5 // URL of the user UserDataType_USER_DATA_TYPE_USERNAME UserDataType = 6 // Preferred Name for the user )
func (UserDataType) Descriptor ¶
func (UserDataType) Descriptor() protoreflect.EnumDescriptor
func (UserDataType) Enum ¶
func (x UserDataType) Enum() *UserDataType
func (UserDataType) EnumDescriptor
deprecated
func (UserDataType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserDataType.Descriptor instead.
func (UserDataType) Number ¶
func (x UserDataType) Number() protoreflect.EnumNumber
func (UserDataType) String ¶
func (x UserDataType) String() string
func (UserDataType) Type ¶
func (UserDataType) Type() protoreflect.EnumType
type UserNameProof ¶
type UserNameProof struct { Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Owner []byte `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` Fid uint64 `protobuf:"varint,5,opt,name=fid,proto3" json:"fid,omitempty"` Type UserNameType `protobuf:"varint,6,opt,name=type,proto3,enum=UserNameType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*UserNameProof) Descriptor
deprecated
func (*UserNameProof) Descriptor() ([]byte, []int)
Deprecated: Use UserNameProof.ProtoReflect.Descriptor instead.
func (*UserNameProof) GetFid ¶
func (x *UserNameProof) GetFid() uint64
func (*UserNameProof) GetName ¶
func (x *UserNameProof) GetName() []byte
func (*UserNameProof) GetOwner ¶
func (x *UserNameProof) GetOwner() []byte
func (*UserNameProof) GetSignature ¶
func (x *UserNameProof) GetSignature() []byte
func (*UserNameProof) GetTimestamp ¶
func (x *UserNameProof) GetTimestamp() uint64
func (*UserNameProof) GetType ¶
func (x *UserNameProof) GetType() UserNameType
func (*UserNameProof) ProtoMessage ¶
func (*UserNameProof) ProtoMessage()
func (*UserNameProof) ProtoReflect ¶
func (x *UserNameProof) ProtoReflect() protoreflect.Message
func (*UserNameProof) Reset ¶
func (x *UserNameProof) Reset()
func (*UserNameProof) String ¶
func (x *UserNameProof) String() string
type UserNameType ¶
type UserNameType int32
const ( UserNameType_USERNAME_TYPE_NONE UserNameType = 0 UserNameType_USERNAME_TYPE_FNAME UserNameType = 1 UserNameType_USERNAME_TYPE_ENS_L1 UserNameType = 2 )
func (UserNameType) Descriptor ¶
func (UserNameType) Descriptor() protoreflect.EnumDescriptor
func (UserNameType) Enum ¶
func (x UserNameType) Enum() *UserNameType
func (UserNameType) EnumDescriptor
deprecated
func (UserNameType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserNameType.Descriptor instead.
func (UserNameType) Number ¶
func (x UserNameType) Number() protoreflect.EnumNumber
func (UserNameType) String ¶
func (x UserNameType) String() string
func (UserNameType) Type ¶
func (UserNameType) Type() protoreflect.EnumType
type ValidationResponse ¶
type ValidationResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ValidationResponse) Descriptor
deprecated
func (*ValidationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidationResponse.ProtoReflect.Descriptor instead.
func (*ValidationResponse) GetMessage ¶
func (x *ValidationResponse) GetMessage() *Message
func (*ValidationResponse) GetValid ¶
func (x *ValidationResponse) GetValid() bool
func (*ValidationResponse) ProtoMessage ¶
func (*ValidationResponse) ProtoMessage()
func (*ValidationResponse) ProtoReflect ¶
func (x *ValidationResponse) ProtoReflect() protoreflect.Message
func (*ValidationResponse) Reset ¶
func (x *ValidationResponse) Reset()
func (*ValidationResponse) String ¶
func (x *ValidationResponse) String() string
type VerificationAddAddressBody ¶
type VerificationAddAddressBody struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Address being verified for a given Protocol ClaimSignature []byte `protobuf:"bytes,2,opt,name=claim_signature,json=claimSignature,proto3" json:"claim_signature,omitempty"` // Signature produced by the user's address for a given Protocol BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // Hash of the latest Ethereum block when the signature was produced VerificationType uint32 `protobuf:"varint,4,opt,name=verification_type,json=verificationType,proto3" json:"verification_type,omitempty"` // Type of verification. 0 = EOA, 1 = contract ChainId uint32 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // 0 for EOA verifications, 1 or 10 for contract verifications Protocol Protocol `protobuf:"varint,7,opt,name=protocol,proto3,enum=Protocol" json:"protocol,omitempty"` // Protocol of the Verification // contains filtered or unexported fields }
* Adds a Verification of ownership of an Address based on Protocol
func (*VerificationAddAddressBody) Descriptor
deprecated
func (*VerificationAddAddressBody) Descriptor() ([]byte, []int)
Deprecated: Use VerificationAddAddressBody.ProtoReflect.Descriptor instead.
func (*VerificationAddAddressBody) GetAddress ¶
func (x *VerificationAddAddressBody) GetAddress() []byte
func (*VerificationAddAddressBody) GetBlockHash ¶
func (x *VerificationAddAddressBody) GetBlockHash() []byte
func (*VerificationAddAddressBody) GetChainId ¶
func (x *VerificationAddAddressBody) GetChainId() uint32
func (*VerificationAddAddressBody) GetClaimSignature ¶
func (x *VerificationAddAddressBody) GetClaimSignature() []byte
func (*VerificationAddAddressBody) GetProtocol ¶
func (x *VerificationAddAddressBody) GetProtocol() Protocol
func (*VerificationAddAddressBody) GetVerificationType ¶
func (x *VerificationAddAddressBody) GetVerificationType() uint32
func (*VerificationAddAddressBody) ProtoMessage ¶
func (*VerificationAddAddressBody) ProtoMessage()
func (*VerificationAddAddressBody) ProtoReflect ¶
func (x *VerificationAddAddressBody) ProtoReflect() protoreflect.Message
func (*VerificationAddAddressBody) Reset ¶
func (x *VerificationAddAddressBody) Reset()
func (*VerificationAddAddressBody) String ¶
func (x *VerificationAddAddressBody) String() string
type VerificationRemoveBody ¶
type VerificationRemoveBody struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Address of the Verification to remove Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=Protocol" json:"protocol,omitempty"` // Protocol of the Verification to remove // contains filtered or unexported fields }
* Removes a Verification of a given protocol
func (*VerificationRemoveBody) Descriptor
deprecated
func (*VerificationRemoveBody) Descriptor() ([]byte, []int)
Deprecated: Use VerificationRemoveBody.ProtoReflect.Descriptor instead.
func (*VerificationRemoveBody) GetAddress ¶
func (x *VerificationRemoveBody) GetAddress() []byte
func (*VerificationRemoveBody) GetProtocol ¶
func (x *VerificationRemoveBody) GetProtocol() Protocol
func (*VerificationRemoveBody) ProtoMessage ¶
func (*VerificationRemoveBody) ProtoMessage()
func (*VerificationRemoveBody) ProtoReflect ¶
func (x *VerificationRemoveBody) ProtoReflect() protoreflect.Message
func (*VerificationRemoveBody) Reset ¶
func (x *VerificationRemoveBody) Reset()
func (*VerificationRemoveBody) String ¶
func (x *VerificationRemoveBody) String() string