From 128b0c2656f332e83296fd2e839b98d6d8ea4875 Mon Sep 17 00:00:00 2001 From: YosephKS Date: Mon, 29 Apr 2024 14:27:01 +0000 Subject: [PATCH] chore: format --- src/protobufs/generated/message_pb.ts | 1223 +++++++++++------- src/protobufs/generated/username_proof_pb.ts | 86 +- 2 files changed, 832 insertions(+), 477 deletions(-) diff --git a/src/protobufs/generated/message_pb.ts b/src/protobufs/generated/message_pb.ts index 6132da8a..1d97570a 100644 --- a/src/protobufs/generated/message_pb.ts +++ b/src/protobufs/generated/message_pb.ts @@ -3,12 +3,19 @@ /* eslint-disable */ // @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message as Message$1, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { UserNameProof } from "./username_proof_pb.js"; +import type { + BinaryReadOptions, + FieldList, + JsonReadOptions, + JsonValue, + PartialMessage, + PlainMessage, +} from '@bufbuild/protobuf' +import { Message as Message$1, proto3, protoInt64 } from '@bufbuild/protobuf' +import { UserNameProof } from './username_proof_pb.js' /** - * * Type of hashing scheme used to produce a digest of MessageData + * * Type of hashing scheme used to produce a digest of MessageData * * @generated from enum HashScheme */ @@ -26,13 +33,13 @@ export enum HashScheme { BLAKE3 = 1, } // Retrieve enum metadata with: proto3.getEnumType(HashScheme) -proto3.util.setEnumType(HashScheme, "HashScheme", [ - { no: 0, name: "HASH_SCHEME_NONE" }, - { no: 1, name: "HASH_SCHEME_BLAKE3" }, -]); +proto3.util.setEnumType(HashScheme, 'HashScheme', [ + { no: 0, name: 'HASH_SCHEME_NONE' }, + { no: 1, name: 'HASH_SCHEME_BLAKE3' }, +]) /** - * * Type of signature scheme used to sign the Message hash + * * Type of signature scheme used to sign the Message hash * * @generated from enum SignatureScheme */ @@ -57,14 +64,14 @@ export enum SignatureScheme { EIP712 = 2, } // Retrieve enum metadata with: proto3.getEnumType(SignatureScheme) -proto3.util.setEnumType(SignatureScheme, "SignatureScheme", [ - { no: 0, name: "SIGNATURE_SCHEME_NONE" }, - { no: 1, name: "SIGNATURE_SCHEME_ED25519" }, - { no: 2, name: "SIGNATURE_SCHEME_EIP712" }, -]); +proto3.util.setEnumType(SignatureScheme, 'SignatureScheme', [ + { no: 0, name: 'SIGNATURE_SCHEME_NONE' }, + { no: 1, name: 'SIGNATURE_SCHEME_ED25519' }, + { no: 2, name: 'SIGNATURE_SCHEME_EIP712' }, +]) /** - * * Type of the MessageBody + * * Type of the MessageBody * * @generated from enum MessageType */ @@ -156,23 +163,23 @@ export enum MessageType { FRAME_ACTION = 13, } // Retrieve enum metadata with: proto3.getEnumType(MessageType) -proto3.util.setEnumType(MessageType, "MessageType", [ - { no: 0, name: "MESSAGE_TYPE_NONE" }, - { no: 1, name: "MESSAGE_TYPE_CAST_ADD" }, - { no: 2, name: "MESSAGE_TYPE_CAST_REMOVE" }, - { no: 3, name: "MESSAGE_TYPE_REACTION_ADD" }, - { no: 4, name: "MESSAGE_TYPE_REACTION_REMOVE" }, - { no: 5, name: "MESSAGE_TYPE_LINK_ADD" }, - { no: 6, name: "MESSAGE_TYPE_LINK_REMOVE" }, - { no: 7, name: "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS" }, - { no: 8, name: "MESSAGE_TYPE_VERIFICATION_REMOVE" }, - { no: 11, name: "MESSAGE_TYPE_USER_DATA_ADD" }, - { no: 12, name: "MESSAGE_TYPE_USERNAME_PROOF" }, - { no: 13, name: "MESSAGE_TYPE_FRAME_ACTION" }, -]); +proto3.util.setEnumType(MessageType, 'MessageType', [ + { no: 0, name: 'MESSAGE_TYPE_NONE' }, + { no: 1, name: 'MESSAGE_TYPE_CAST_ADD' }, + { no: 2, name: 'MESSAGE_TYPE_CAST_REMOVE' }, + { no: 3, name: 'MESSAGE_TYPE_REACTION_ADD' }, + { no: 4, name: 'MESSAGE_TYPE_REACTION_REMOVE' }, + { no: 5, name: 'MESSAGE_TYPE_LINK_ADD' }, + { no: 6, name: 'MESSAGE_TYPE_LINK_REMOVE' }, + { no: 7, name: 'MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS' }, + { no: 8, name: 'MESSAGE_TYPE_VERIFICATION_REMOVE' }, + { no: 11, name: 'MESSAGE_TYPE_USER_DATA_ADD' }, + { no: 12, name: 'MESSAGE_TYPE_USERNAME_PROOF' }, + { no: 13, name: 'MESSAGE_TYPE_FRAME_ACTION' }, +]) /** - * * Farcaster network the message is intended for + * * Farcaster network the message is intended for * * @generated from enum FarcasterNetwork */ @@ -204,15 +211,15 @@ export enum FarcasterNetwork { DEVNET = 3, } // Retrieve enum metadata with: proto3.getEnumType(FarcasterNetwork) -proto3.util.setEnumType(FarcasterNetwork, "FarcasterNetwork", [ - { no: 0, name: "FARCASTER_NETWORK_NONE" }, - { no: 1, name: "FARCASTER_NETWORK_MAINNET" }, - { no: 2, name: "FARCASTER_NETWORK_TESTNET" }, - { no: 3, name: "FARCASTER_NETWORK_DEVNET" }, -]); +proto3.util.setEnumType(FarcasterNetwork, 'FarcasterNetwork', [ + { no: 0, name: 'FARCASTER_NETWORK_NONE' }, + { no: 1, name: 'FARCASTER_NETWORK_MAINNET' }, + { no: 2, name: 'FARCASTER_NETWORK_TESTNET' }, + { no: 3, name: 'FARCASTER_NETWORK_DEVNET' }, +]) /** - * * Type of UserData + * * Type of UserData * * @generated from enum UserDataType */ @@ -258,17 +265,17 @@ export enum UserDataType { USERNAME = 6, } // Retrieve enum metadata with: proto3.getEnumType(UserDataType) -proto3.util.setEnumType(UserDataType, "UserDataType", [ - { no: 0, name: "USER_DATA_TYPE_NONE" }, - { no: 1, name: "USER_DATA_TYPE_PFP" }, - { no: 2, name: "USER_DATA_TYPE_DISPLAY" }, - { no: 3, name: "USER_DATA_TYPE_BIO" }, - { no: 5, name: "USER_DATA_TYPE_URL" }, - { no: 6, name: "USER_DATA_TYPE_USERNAME" }, -]); +proto3.util.setEnumType(UserDataType, 'UserDataType', [ + { no: 0, name: 'USER_DATA_TYPE_NONE' }, + { no: 1, name: 'USER_DATA_TYPE_PFP' }, + { no: 2, name: 'USER_DATA_TYPE_DISPLAY' }, + { no: 3, name: 'USER_DATA_TYPE_BIO' }, + { no: 5, name: 'USER_DATA_TYPE_URL' }, + { no: 6, name: 'USER_DATA_TYPE_USERNAME' }, +]) /** - * * Type of Reaction + * * Type of Reaction * * @generated from enum ReactionType */ @@ -293,14 +300,14 @@ export enum ReactionType { RECAST = 2, } // Retrieve enum metadata with: proto3.getEnumType(ReactionType) -proto3.util.setEnumType(ReactionType, "ReactionType", [ - { no: 0, name: "REACTION_TYPE_NONE" }, - { no: 1, name: "REACTION_TYPE_LIKE" }, - { no: 2, name: "REACTION_TYPE_RECAST" }, -]); +proto3.util.setEnumType(ReactionType, 'ReactionType', [ + { no: 0, name: 'REACTION_TYPE_NONE' }, + { no: 1, name: 'REACTION_TYPE_LIKE' }, + { no: 2, name: 'REACTION_TYPE_RECAST' }, +]) /** - * * Type of Protocol to disambiguate verification addresses + * * Type of Protocol to disambiguate verification addresses * * @generated from enum Protocol */ @@ -316,10 +323,10 @@ export enum Protocol { SOLANA = 1, } // Retrieve enum metadata with: proto3.getEnumType(Protocol) -proto3.util.setEnumType(Protocol, "Protocol", [ - { no: 0, name: "PROTOCOL_ETHEREUM" }, - { no: 1, name: "PROTOCOL_SOLANA" }, -]); +proto3.util.setEnumType(Protocol, 'Protocol', [ + { no: 0, name: 'PROTOCOL_ETHEREUM' }, + { no: 1, name: 'PROTOCOL_SOLANA' }, +]) /** * * @@ -334,81 +341,109 @@ export class Message extends Message$1 { * * @generated from field: MessageData data = 1; */ - data?: MessageData; + data?: MessageData /** * Hash digest of data * * @generated from field: bytes hash = 2; */ - hash = new Uint8Array(0); + hash = new Uint8Array(0) /** * Hash scheme that produced the hash digest * * @generated from field: HashScheme hash_scheme = 3; */ - hashScheme = HashScheme.NONE; + hashScheme = HashScheme.NONE /** * Signature of the hash digest * * @generated from field: bytes signature = 4; */ - signature = new Uint8Array(0); + signature = new Uint8Array(0) /** * Signature scheme that produced the signature * * @generated from field: SignatureScheme signature_scheme = 5; */ - signatureScheme = SignatureScheme.NONE; + signatureScheme = SignatureScheme.NONE /** * Public key or address of the key pair that produced the signature * * @generated from field: bytes signer = 6; */ - signer = new Uint8Array(0); + signer = new Uint8Array(0) /** * MessageData serialized to bytes if using protobuf serialization other than ts-proto * * @generated from field: optional bytes data_bytes = 7; */ - dataBytes?: Uint8Array; + dataBytes?: Uint8Array constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Message"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'Message' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: MessageData }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "hash_scheme", kind: "enum", T: proto3.getEnumType(HashScheme) }, - { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "signature_scheme", kind: "enum", T: proto3.getEnumType(SignatureScheme) }, - { no: 6, name: "signer", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "data_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Message { - return new Message().fromBinary(bytes, options); + { no: 1, name: 'data', kind: 'message', T: MessageData }, + { no: 2, name: 'hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 3, + name: 'hash_scheme', + kind: 'enum', + T: proto3.getEnumType(HashScheme), + }, + { no: 4, name: 'signature', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 5, + name: 'signature_scheme', + kind: 'enum', + T: proto3.getEnumType(SignatureScheme), + }, + { no: 6, name: 'signer', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 7, + name: 'data_bytes', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + opt: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): Message { + return new Message().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): Message { - return new Message().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): Message { + return new Message().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): Message { - return new Message().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): Message { + return new Message().fromJsonString(jsonString, options) } - static equals(a: Message | PlainMessage | undefined, b: Message | PlainMessage | undefined): boolean { - return proto3.util.equals(Message, a, b); + static equals( + a: Message | PlainMessage | undefined, + b: Message | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(Message, a, b) } } @@ -425,134 +460,209 @@ export class MessageData extends Message$1 { * * @generated from field: MessageType type = 1; */ - type = MessageType.NONE; + type = MessageType.NONE /** * Farcaster ID of the user producing the message * * @generated from field: uint64 fid = 2; */ - fid = protoInt64.zero; + fid = protoInt64.zero /** * Farcaster epoch timestamp in seconds * * @generated from field: uint32 timestamp = 3; */ - timestamp = 0; + timestamp = 0 /** * Farcaster network the message is intended for * * @generated from field: FarcasterNetwork network = 4; */ - network = FarcasterNetwork.NONE; + network = FarcasterNetwork.NONE /** * @generated from oneof MessageData.body */ - body: { - /** - * @generated from field: CastAddBody cast_add_body = 5; - */ - value: CastAddBody; - case: "castAddBody"; - } | { - /** - * @generated from field: CastRemoveBody cast_remove_body = 6; - */ - value: CastRemoveBody; - case: "castRemoveBody"; - } | { - /** - * @generated from field: ReactionBody reaction_body = 7; - */ - value: ReactionBody; - case: "reactionBody"; - } | { - /** - * @generated from field: VerificationAddAddressBody verification_add_address_body = 9; - */ - value: VerificationAddAddressBody; - case: "verificationAddAddressBody"; - } | { - /** - * @generated from field: VerificationRemoveBody verification_remove_body = 10; - */ - value: VerificationRemoveBody; - case: "verificationRemoveBody"; - } | { - /** - * SignerAddBody signer_add_body = 11; // Deprecated - * - * @generated from field: UserDataBody user_data_body = 12; - */ - value: UserDataBody; - case: "userDataBody"; - } | { - /** - * SignerRemoveBody signer_remove_body = 13; // Deprecated - * - * @generated from field: LinkBody link_body = 14; - */ - value: LinkBody; - case: "linkBody"; - } | { - /** - * @generated from field: UserNameProof username_proof_body = 15; - */ - value: UserNameProof; - case: "usernameProofBody"; - } | { - /** - * @generated from field: FrameActionBody frame_action_body = 16; - */ - value: FrameActionBody; - case: "frameActionBody"; - } | { case: undefined; value?: undefined } = { case: undefined }; + body: + | { + /** + * @generated from field: CastAddBody cast_add_body = 5; + */ + value: CastAddBody + case: 'castAddBody' + } + | { + /** + * @generated from field: CastRemoveBody cast_remove_body = 6; + */ + value: CastRemoveBody + case: 'castRemoveBody' + } + | { + /** + * @generated from field: ReactionBody reaction_body = 7; + */ + value: ReactionBody + case: 'reactionBody' + } + | { + /** + * @generated from field: VerificationAddAddressBody verification_add_address_body = 9; + */ + value: VerificationAddAddressBody + case: 'verificationAddAddressBody' + } + | { + /** + * @generated from field: VerificationRemoveBody verification_remove_body = 10; + */ + value: VerificationRemoveBody + case: 'verificationRemoveBody' + } + | { + /** + * SignerAddBody signer_add_body = 11; // Deprecated + * + * @generated from field: UserDataBody user_data_body = 12; + */ + value: UserDataBody + case: 'userDataBody' + } + | { + /** + * SignerRemoveBody signer_remove_body = 13; // Deprecated + * + * @generated from field: LinkBody link_body = 14; + */ + value: LinkBody + case: 'linkBody' + } + | { + /** + * @generated from field: UserNameProof username_proof_body = 15; + */ + value: UserNameProof + case: 'usernameProofBody' + } + | { + /** + * @generated from field: FrameActionBody frame_action_body = 16; + */ + value: FrameActionBody + case: 'frameActionBody' + } + | { case: undefined; value?: undefined } = { case: undefined } constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "MessageData"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'MessageData' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(MessageType) }, - { no: 2, name: "fid", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "network", kind: "enum", T: proto3.getEnumType(FarcasterNetwork) }, - { no: 5, name: "cast_add_body", kind: "message", T: CastAddBody, oneof: "body" }, - { no: 6, name: "cast_remove_body", kind: "message", T: CastRemoveBody, oneof: "body" }, - { no: 7, name: "reaction_body", kind: "message", T: ReactionBody, oneof: "body" }, - { no: 9, name: "verification_add_address_body", kind: "message", T: VerificationAddAddressBody, oneof: "body" }, - { no: 10, name: "verification_remove_body", kind: "message", T: VerificationRemoveBody, oneof: "body" }, - { no: 12, name: "user_data_body", kind: "message", T: UserDataBody, oneof: "body" }, - { no: 14, name: "link_body", kind: "message", T: LinkBody, oneof: "body" }, - { no: 15, name: "username_proof_body", kind: "message", T: UserNameProof, oneof: "body" }, - { no: 16, name: "frame_action_body", kind: "message", T: FrameActionBody, oneof: "body" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MessageData { - return new MessageData().fromBinary(bytes, options); + { no: 1, name: 'type', kind: 'enum', T: proto3.getEnumType(MessageType) }, + { no: 2, name: 'fid', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: 'timestamp', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ }, + { + no: 4, + name: 'network', + kind: 'enum', + T: proto3.getEnumType(FarcasterNetwork), + }, + { + no: 5, + name: 'cast_add_body', + kind: 'message', + T: CastAddBody, + oneof: 'body', + }, + { + no: 6, + name: 'cast_remove_body', + kind: 'message', + T: CastRemoveBody, + oneof: 'body', + }, + { + no: 7, + name: 'reaction_body', + kind: 'message', + T: ReactionBody, + oneof: 'body', + }, + { + no: 9, + name: 'verification_add_address_body', + kind: 'message', + T: VerificationAddAddressBody, + oneof: 'body', + }, + { + no: 10, + name: 'verification_remove_body', + kind: 'message', + T: VerificationRemoveBody, + oneof: 'body', + }, + { + no: 12, + name: 'user_data_body', + kind: 'message', + T: UserDataBody, + oneof: 'body', + }, + { no: 14, name: 'link_body', kind: 'message', T: LinkBody, oneof: 'body' }, + { + no: 15, + name: 'username_proof_body', + kind: 'message', + T: UserNameProof, + oneof: 'body', + }, + { + no: 16, + name: 'frame_action_body', + kind: 'message', + T: FrameActionBody, + oneof: 'body', + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): MessageData { + return new MessageData().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): MessageData { - return new MessageData().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): MessageData { + return new MessageData().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): MessageData { - return new MessageData().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): MessageData { + return new MessageData().fromJsonString(jsonString, options) } - static equals(a: MessageData | PlainMessage | undefined, b: MessageData | PlainMessage | undefined): boolean { - return proto3.util.equals(MessageData, a, b); + static equals( + a: MessageData | PlainMessage | undefined, + b: MessageData | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(MessageData, a, b) } } /** - * * Adds metadata about a user + * * Adds metadata about a user * * @generated from message UserDataBody */ @@ -562,41 +672,53 @@ export class UserDataBody extends Message$1 { * * @generated from field: UserDataType type = 1; */ - type = UserDataType.NONE; + type = UserDataType.NONE /** * Value of the metadata * * @generated from field: string value = 2; */ - value = ""; + value = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "UserDataBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'UserDataBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(UserDataType) }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserDataBody { - return new UserDataBody().fromBinary(bytes, options); + { no: 1, name: 'type', kind: 'enum', T: proto3.getEnumType(UserDataType) }, + { no: 2, name: 'value', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): UserDataBody { + return new UserDataBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): UserDataBody { - return new UserDataBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): UserDataBody { + return new UserDataBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): UserDataBody { - return new UserDataBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): UserDataBody { + return new UserDataBody().fromJsonString(jsonString, options) } - static equals(a: UserDataBody | PlainMessage | undefined, b: UserDataBody | PlainMessage | undefined): boolean { - return proto3.util.equals(UserDataBody, a, b); + static equals( + a: UserDataBody | PlainMessage | undefined, + b: UserDataBody | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(UserDataBody, a, b) } } @@ -607,51 +729,72 @@ export class Embed extends Message$1 { /** * @generated from oneof Embed.embed */ - embed: { - /** - * @generated from field: string url = 1; - */ - value: string; - case: "url"; - } | { - /** - * @generated from field: CastId cast_id = 2; - */ - value: CastId; - case: "castId"; - } | { case: undefined; value?: undefined } = { case: undefined }; + embed: + | { + /** + * @generated from field: string url = 1; + */ + value: string + case: 'url' + } + | { + /** + * @generated from field: CastId cast_id = 2; + */ + value: CastId + case: 'castId' + } + | { case: undefined; value?: undefined } = { case: undefined } constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "Embed"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'Embed' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "embed" }, - { no: 2, name: "cast_id", kind: "message", T: CastId, oneof: "embed" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Embed { - return new Embed().fromBinary(bytes, options); + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + oneof: 'embed', + }, + { no: 2, name: 'cast_id', kind: 'message', T: CastId, oneof: 'embed' }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): Embed { + return new Embed().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): Embed { - return new Embed().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): Embed { + return new Embed().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): Embed { - return new Embed().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): Embed { + return new Embed().fromJsonString(jsonString, options) } - static equals(a: Embed | PlainMessage | undefined, b: Embed | PlainMessage | undefined): boolean { - return proto3.util.equals(Embed, a, b); + static equals( + a: Embed | PlainMessage | undefined, + b: Embed | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(Embed, a, b) } } /** - * * Adds a new Cast + * * Adds a new Cast * * @generated from message CastAddBody */ @@ -661,93 +804,138 @@ export class CastAddBody extends Message$1 { * * @generated from field: repeated string embeds_deprecated = 1; */ - embedsDeprecated: string[] = []; + embedsDeprecated: string[] = [] /** * Fids mentioned in the cast * * @generated from field: repeated uint64 mentions = 2; */ - mentions: bigint[] = []; + mentions: bigint[] = [] /** * @generated from oneof CastAddBody.parent */ - parent: { - /** - * Parent cast of the cast - * - * @generated from field: CastId parent_cast_id = 3; - */ - value: CastId; - case: "parentCastId"; - } | { - /** - * Parent URL - * - * @generated from field: string parent_url = 7; - */ - value: string; - case: "parentUrl"; - } | { case: undefined; value?: undefined } = { case: undefined }; + parent: + | { + /** + * Parent cast of the cast + * + * @generated from field: CastId parent_cast_id = 3; + */ + value: CastId + case: 'parentCastId' + } + | { + /** + * Parent URL + * + * @generated from field: string parent_url = 7; + */ + value: string + case: 'parentUrl' + } + | { case: undefined; value?: undefined } = { case: undefined } /** * Text of the cast * * @generated from field: string text = 4; */ - text = ""; + text = '' /** * Positions of the mentions in the text * * @generated from field: repeated uint32 mentions_positions = 5; */ - mentionsPositions: number[] = []; + mentionsPositions: number[] = [] /** * URLs or cast ids to be embedded in the cast * * @generated from field: repeated Embed embeds = 6; */ - embeds: Embed[] = []; + embeds: Embed[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "CastAddBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'CastAddBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "embeds_deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "mentions", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 3, name: "parent_cast_id", kind: "message", T: CastId, oneof: "parent" }, - { no: 7, name: "parent_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "parent" }, - { no: 4, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "mentions_positions", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, - { no: 6, name: "embeds", kind: "message", T: Embed, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CastAddBody { - return new CastAddBody().fromBinary(bytes, options); + { + no: 1, + name: 'embeds_deprecated', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { + no: 2, + name: 'mentions', + kind: 'scalar', + T: 4 /* ScalarType.UINT64 */, + repeated: true, + }, + { + no: 3, + name: 'parent_cast_id', + kind: 'message', + T: CastId, + oneof: 'parent', + }, + { + no: 7, + name: 'parent_url', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + oneof: 'parent', + }, + { no: 4, name: 'text', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { + no: 5, + name: 'mentions_positions', + kind: 'scalar', + T: 13 /* ScalarType.UINT32 */, + repeated: true, + }, + { no: 6, name: 'embeds', kind: 'message', T: Embed, repeated: true }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): CastAddBody { + return new CastAddBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): CastAddBody { - return new CastAddBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): CastAddBody { + return new CastAddBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): CastAddBody { - return new CastAddBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): CastAddBody { + return new CastAddBody().fromJsonString(jsonString, options) } - static equals(a: CastAddBody | PlainMessage | undefined, b: CastAddBody | PlainMessage | undefined): boolean { - return proto3.util.equals(CastAddBody, a, b); + static equals( + a: CastAddBody | PlainMessage | undefined, + b: CastAddBody | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(CastAddBody, a, b) } } /** - * * Removes an existing Cast + * * Removes an existing Cast * * @generated from message CastRemoveBody */ @@ -757,38 +945,55 @@ export class CastRemoveBody extends Message$1 { * * @generated from field: bytes target_hash = 1; */ - targetHash = new Uint8Array(0); + targetHash = new Uint8Array(0) constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "CastRemoveBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'CastRemoveBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "target_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CastRemoveBody { - return new CastRemoveBody().fromBinary(bytes, options); + { + no: 1, + name: 'target_hash', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): CastRemoveBody { + return new CastRemoveBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): CastRemoveBody { - return new CastRemoveBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): CastRemoveBody { + return new CastRemoveBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): CastRemoveBody { - return new CastRemoveBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): CastRemoveBody { + return new CastRemoveBody().fromJsonString(jsonString, options) } - static equals(a: CastRemoveBody | PlainMessage | undefined, b: CastRemoveBody | PlainMessage | undefined): boolean { - return proto3.util.equals(CastRemoveBody, a, b); + static equals( + a: CastRemoveBody | PlainMessage | undefined, + b: CastRemoveBody | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(CastRemoveBody, a, b) } } /** - * * Identifier used to look up a Cast + * * Identifier used to look up a Cast * * @generated from message CastId */ @@ -798,46 +1003,58 @@ export class CastId extends Message$1 { * * @generated from field: uint64 fid = 1; */ - fid = protoInt64.zero; + fid = protoInt64.zero /** * Hash of the cast * * @generated from field: bytes hash = 2; */ - hash = new Uint8Array(0); + hash = new Uint8Array(0) constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "CastId"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'CastId' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fid", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CastId { - return new CastId().fromBinary(bytes, options); + { no: 1, name: 'fid', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: 'hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): CastId { + return new CastId().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): CastId { - return new CastId().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): CastId { + return new CastId().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): CastId { - return new CastId().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): CastId { + return new CastId().fromJsonString(jsonString, options) } - static equals(a: CastId | PlainMessage | undefined, b: CastId | PlainMessage | undefined): boolean { - return proto3.util.equals(CastId, a, b); + static equals( + a: CastId | PlainMessage | undefined, + b: CastId | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(CastId, a, b) } } /** - * * Adds or removes a Reaction from a Cast + * * Adds or removes a Reaction from a Cast * * @generated from message ReactionBody */ @@ -847,61 +1064,88 @@ export class ReactionBody extends Message$1 { * * @generated from field: ReactionType type = 1; */ - type = ReactionType.NONE; + type = ReactionType.NONE /** * @generated from oneof ReactionBody.target */ - target: { - /** - * CastId of the Cast to react to - * - * @generated from field: CastId target_cast_id = 2; - */ - value: CastId; - case: "targetCastId"; - } | { - /** - * URL to react to - * - * @generated from field: string target_url = 3; - */ - value: string; - case: "targetUrl"; - } | { case: undefined; value?: undefined } = { case: undefined }; + target: + | { + /** + * CastId of the Cast to react to + * + * @generated from field: CastId target_cast_id = 2; + */ + value: CastId + case: 'targetCastId' + } + | { + /** + * URL to react to + * + * @generated from field: string target_url = 3; + */ + value: string + case: 'targetUrl' + } + | { case: undefined; value?: undefined } = { case: undefined } constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ReactionBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'ReactionBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(ReactionType) }, - { no: 2, name: "target_cast_id", kind: "message", T: CastId, oneof: "target" }, - { no: 3, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "target" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ReactionBody { - return new ReactionBody().fromBinary(bytes, options); + { no: 1, name: 'type', kind: 'enum', T: proto3.getEnumType(ReactionType) }, + { + no: 2, + name: 'target_cast_id', + kind: 'message', + T: CastId, + oneof: 'target', + }, + { + no: 3, + name: 'target_url', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + oneof: 'target', + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): ReactionBody { + return new ReactionBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): ReactionBody { - return new ReactionBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): ReactionBody { + return new ReactionBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): ReactionBody { - return new ReactionBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): ReactionBody { + return new ReactionBody().fromJsonString(jsonString, options) } - static equals(a: ReactionBody | PlainMessage | undefined, b: ReactionBody | PlainMessage | undefined): boolean { - return proto3.util.equals(ReactionBody, a, b); + static equals( + a: ReactionBody | PlainMessage | undefined, + b: ReactionBody | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(ReactionBody, a, b) } } /** - * * Adds a Verification of ownership of an Address based on Protocol + * * Adds a Verification of ownership of an Address based on Protocol * * @generated from message VerificationAddAddressBody */ @@ -911,78 +1155,106 @@ export class VerificationAddAddressBody extends Message$1) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "VerificationAddAddressBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'VerificationAddAddressBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "claim_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "verification_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocol) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VerificationAddAddressBody { - return new VerificationAddAddressBody().fromBinary(bytes, options); + { no: 1, name: 'address', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 2, + name: 'claim_signature', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + }, + { no: 3, name: 'block_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 4, + name: 'verification_type', + kind: 'scalar', + T: 13 /* ScalarType.UINT32 */, + }, + { no: 5, name: 'chain_id', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: 'protocol', kind: 'enum', T: proto3.getEnumType(Protocol) }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): VerificationAddAddressBody { + return new VerificationAddAddressBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): VerificationAddAddressBody { - return new VerificationAddAddressBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): VerificationAddAddressBody { + return new VerificationAddAddressBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): VerificationAddAddressBody { - return new VerificationAddAddressBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): VerificationAddAddressBody { + return new VerificationAddAddressBody().fromJsonString(jsonString, options) } - static equals(a: VerificationAddAddressBody | PlainMessage | undefined, b: VerificationAddAddressBody | PlainMessage | undefined): boolean { - return proto3.util.equals(VerificationAddAddressBody, a, b); + static equals( + a: + | VerificationAddAddressBody + | PlainMessage + | undefined, + b: + | VerificationAddAddressBody + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(VerificationAddAddressBody, a, b) } } /** - * * Removes a Verification of a given protocol + * * Removes a Verification of a given protocol * * @generated from message VerificationRemoveBody */ @@ -992,46 +1264,64 @@ export class VerificationRemoveBody extends Message$1 { * * @generated from field: bytes address = 1; */ - address = new Uint8Array(0); + address = new Uint8Array(0) /** * Protocol of the Verification to remove * * @generated from field: Protocol protocol = 2; */ - protocol = Protocol.ETHEREUM; + protocol = Protocol.ETHEREUM constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "VerificationRemoveBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'VerificationRemoveBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocol) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VerificationRemoveBody { - return new VerificationRemoveBody().fromBinary(bytes, options); + { no: 1, name: 'address', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: 'protocol', kind: 'enum', T: proto3.getEnumType(Protocol) }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): VerificationRemoveBody { + return new VerificationRemoveBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): VerificationRemoveBody { - return new VerificationRemoveBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): VerificationRemoveBody { + return new VerificationRemoveBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): VerificationRemoveBody { - return new VerificationRemoveBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): VerificationRemoveBody { + return new VerificationRemoveBody().fromJsonString(jsonString, options) } - static equals(a: VerificationRemoveBody | PlainMessage | undefined, b: VerificationRemoveBody | PlainMessage | undefined): boolean { - return proto3.util.equals(VerificationRemoveBody, a, b); + static equals( + a: + | VerificationRemoveBody + | PlainMessage + | undefined, + b: + | VerificationRemoveBody + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(VerificationRemoveBody, a, b) } } /** - * * Adds or removes a Link + * * Adds or removes a Link * * @generated from message LinkBody */ @@ -1041,60 +1331,86 @@ export class LinkBody extends Message$1 { * * @generated from field: string type = 1; */ - type = ""; + type = '' /** * User-defined timestamp that preserves original timestamp when message.data.timestamp needs to be updated for compaction * * @generated from field: optional uint32 displayTimestamp = 2; */ - displayTimestamp?: number; + displayTimestamp?: number /** * @generated from oneof LinkBody.target */ - target: { - /** - * The fid the link relates to - * - * @generated from field: uint64 target_fid = 3; - */ - value: bigint; - case: "targetFid"; - } | { case: undefined; value?: undefined } = { case: undefined }; + target: + | { + /** + * The fid the link relates to + * + * @generated from field: uint64 target_fid = 3; + */ + value: bigint + case: 'targetFid' + } + | { case: undefined; value?: undefined } = { case: undefined } constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "LinkBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'LinkBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "displayTimestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "target_fid", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "target" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LinkBody { - return new LinkBody().fromBinary(bytes, options); + { no: 1, name: 'type', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { + no: 2, + name: 'displayTimestamp', + kind: 'scalar', + T: 13 /* ScalarType.UINT32 */, + opt: true, + }, + { + no: 3, + name: 'target_fid', + kind: 'scalar', + T: 4 /* ScalarType.UINT64 */, + oneof: 'target', + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): LinkBody { + return new LinkBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): LinkBody { - return new LinkBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): LinkBody { + return new LinkBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): LinkBody { - return new LinkBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): LinkBody { + return new LinkBody().fromJsonString(jsonString, options) } - static equals(a: LinkBody | PlainMessage | undefined, b: LinkBody | PlainMessage | undefined): boolean { - return proto3.util.equals(LinkBody, a, b); + static equals( + a: LinkBody | PlainMessage | undefined, + b: LinkBody | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(LinkBody, a, b) } } /** - * * A Farcaster Frame action + * * A Farcaster Frame action * * @generated from message FrameActionBody */ @@ -1104,81 +1420,102 @@ export class FrameActionBody extends Message$1 { * * @generated from field: bytes url = 1; */ - url = new Uint8Array(0); + url = new Uint8Array(0) /** * The index of the button pressed (1-4) * * @generated from field: uint32 button_index = 2; */ - buttonIndex = 0; + buttonIndex = 0 /** * The cast which contained the frame url * * @generated from field: CastId cast_id = 3; */ - castId?: CastId; + castId?: CastId /** * Text input from the user, if present * * @generated from field: bytes input_text = 4; */ - inputText = new Uint8Array(0); + inputText = new Uint8Array(0) /** * Serialized frame state value * * @generated from field: bytes state = 5; */ - state = new Uint8Array(0); + state = new Uint8Array(0) /** * Chain-specific transaction ID for tx actions * * @generated from field: bytes transaction_id = 6; */ - transactionId = new Uint8Array(0); + transactionId = new Uint8Array(0) /** * Chain-specific address for tx actions * * @generated from field: bytes address = 7; */ - address = new Uint8Array(0); + address = new Uint8Array(0) constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "FrameActionBody"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'FrameActionBody' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "url", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "button_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "cast_id", kind: "message", T: CastId }, - { no: 4, name: "input_text", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "state", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "transaction_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FrameActionBody { - return new FrameActionBody().fromBinary(bytes, options); + { no: 1, name: 'url', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 2, + name: 'button_index', + kind: 'scalar', + T: 13 /* ScalarType.UINT32 */, + }, + { no: 3, name: 'cast_id', kind: 'message', T: CastId }, + { no: 4, name: 'input_text', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: 'state', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { + no: 6, + name: 'transaction_id', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + }, + { no: 7, name: 'address', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): FrameActionBody { + return new FrameActionBody().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): FrameActionBody { - return new FrameActionBody().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): FrameActionBody { + return new FrameActionBody().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): FrameActionBody { - return new FrameActionBody().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): FrameActionBody { + return new FrameActionBody().fromJsonString(jsonString, options) } - static equals(a: FrameActionBody | PlainMessage | undefined, b: FrameActionBody | PlainMessage | undefined): boolean { - return proto3.util.equals(FrameActionBody, a, b); + static equals( + a: FrameActionBody | PlainMessage | undefined, + b: FrameActionBody | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(FrameActionBody, a, b) } } - diff --git a/src/protobufs/generated/username_proof_pb.ts b/src/protobufs/generated/username_proof_pb.ts index 070f2c43..fd265265 100644 --- a/src/protobufs/generated/username_proof_pb.ts +++ b/src/protobufs/generated/username_proof_pb.ts @@ -3,8 +3,15 @@ /* eslint-disable */ // @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import type { + BinaryReadOptions, + FieldList, + JsonReadOptions, + JsonValue, + PartialMessage, + PlainMessage, +} from '@bufbuild/protobuf' +import { Message, proto3, protoInt64 } from '@bufbuild/protobuf' /** * @generated from enum UserNameType @@ -26,11 +33,11 @@ export enum UserNameType { USERNAME_TYPE_ENS_L1 = 2, } // Retrieve enum metadata with: proto3.getEnumType(UserNameType) -proto3.util.setEnumType(UserNameType, "UserNameType", [ - { no: 0, name: "USERNAME_TYPE_NONE" }, - { no: 1, name: "USERNAME_TYPE_FNAME" }, - { no: 2, name: "USERNAME_TYPE_ENS_L1" }, -]); +proto3.util.setEnumType(UserNameType, 'UserNameType', [ + { no: 0, name: 'USERNAME_TYPE_NONE' }, + { no: 1, name: 'USERNAME_TYPE_FNAME' }, + { no: 2, name: 'USERNAME_TYPE_ENS_L1' }, +]) /** * @generated from message UserNameProof @@ -39,63 +46,74 @@ export class UserNameProof extends Message { /** * @generated from field: uint64 timestamp = 1; */ - timestamp = protoInt64.zero; + timestamp = protoInt64.zero /** * @generated from field: bytes name = 2; */ - name = new Uint8Array(0); + name = new Uint8Array(0) /** * @generated from field: bytes owner = 3; */ - owner = new Uint8Array(0); + owner = new Uint8Array(0) /** * @generated from field: bytes signature = 4; */ - signature = new Uint8Array(0); + signature = new Uint8Array(0) /** * @generated from field: uint64 fid = 5; */ - fid = protoInt64.zero; + fid = protoInt64.zero /** * @generated from field: UserNameType type = 6; */ - type = UserNameType.USERNAME_TYPE_NONE; + type = UserNameType.USERNAME_TYPE_NONE constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "UserNameProof"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'UserNameProof' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "name", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "owner", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "fid", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "type", kind: "enum", T: proto3.getEnumType(UserNameType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserNameProof { - return new UserNameProof().fromBinary(bytes, options); + { no: 1, name: 'timestamp', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: 'name', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: 'owner', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: 'signature', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: 'fid', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: 'type', kind: 'enum', T: proto3.getEnumType(UserNameType) }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): UserNameProof { + return new UserNameProof().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): UserNameProof { - return new UserNameProof().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): UserNameProof { + return new UserNameProof().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): UserNameProof { - return new UserNameProof().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): UserNameProof { + return new UserNameProof().fromJsonString(jsonString, options) } - static equals(a: UserNameProof | PlainMessage | undefined, b: UserNameProof | PlainMessage | undefined): boolean { - return proto3.util.equals(UserNameProof, a, b); + static equals( + a: UserNameProof | PlainMessage | undefined, + b: UserNameProof | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(UserNameProof, a, b) } } -