import { GenEnum, GenMessage, GenFile } from '@bufbuild/protobuf/codegenv2'; import { Timestamp } from '@bufbuild/protobuf/wkt'; import { Message } from '@bufbuild/protobuf'; /** * Describes the file thru/common/v1/consensus.proto. */ declare const file_thru_common_v1_consensus: GenFile; /** * VersionContext selects which logical version of a resource should be * returned. At least one field must be set. * * @generated from message thru.common.v1.VersionContext */ type VersionContext = Message<"thru.common.v1.VersionContext"> & { /** * Specifies the desired version semantics. * * @generated from oneof thru.common.v1.VersionContext.version */ version: { /** * Request the latest version available at request time. * * @generated from field: thru.common.v1.CurrentVersion current = 1; */ value: CurrentVersion; case: "current"; } | { /** * Request the latest version, or historical on. * * @generated from field: thru.common.v1.CurrentOrHistoricalVersion currentOrHistorical = 2; */ value: CurrentOrHistoricalVersion; case: "currentOrHistorical"; } | { /** * Request the version for a specific slot number. * * @generated from field: uint64 slot = 3; */ value: bigint; case: "slot"; } | { /** * Request the version nearest to the provided block timestamp. * * @generated from field: google.protobuf.Timestamp timestamp = 4; */ value: Timestamp; case: "timestamp"; } | { /** * Request the account version written at an exact (slot, seq) point. * Relevant only for GetAccount and GetRawAccount requests. * * @generated from field: thru.common.v1.SlotSeq slot_seq = 5; */ value: SlotSeq; case: "slotSeq"; } | { case: undefined; value?: undefined; }; }; /** * Describes the message thru.common.v1.VersionContext. * Use `create(VersionContextSchema)` to create a new message. */ declare const VersionContextSchema: GenMessage; /** * CurrentVersion is an empty marker message for VersionContext.current. * * @generated from message thru.common.v1.CurrentVersion */ type CurrentVersion = Message<"thru.common.v1.CurrentVersion"> & {}; /** * Describes the message thru.common.v1.CurrentVersion. * Use `create(CurrentVersionSchema)` to create a new message. */ declare const CurrentVersionSchema: GenMessage; /** * CurrentOrHistoricalVersion is an empty marker message for VersionContext.current. * * @generated from message thru.common.v1.CurrentOrHistoricalVersion */ type CurrentOrHistoricalVersion = Message<"thru.common.v1.CurrentOrHistoricalVersion"> & {}; /** * Describes the message thru.common.v1.CurrentOrHistoricalVersion. * Use `create(CurrentOrHistoricalVersionSchema)` to create a new message. */ declare const CurrentOrHistoricalVersionSchema: GenMessage; /** * SlotSeq identifies an exact account version: the row written in `slot` * carrying per-account sequence number `seq`. A bare seq is not a version * key -- it restarts across account incarnations -- so it is only * meaningful scoped to a slot. * * @generated from message thru.common.v1.SlotSeq */ type SlotSeq = Message<"thru.common.v1.SlotSeq"> & { /** * @generated from field: uint64 slot = 1; */ slot: bigint; /** * @generated from field: uint64 seq = 2; */ seq: bigint; }; /** * Describes the message thru.common.v1.SlotSeq. * Use `create(SlotSeqSchema)` to create a new message. */ declare const SlotSeqSchema: GenMessage; /** * ConsensusStatus represents the minimum consensus level a resource has * achieved when returned by the service. * * @generated from enum thru.common.v1.ConsensusStatus */ declare enum ConsensusStatus { /** * CONSENSUS_STATUS_UNSPECIFIED indicates the consensus status is unknown. * * @generated from enum value: CONSENSUS_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * CONSENSUS_STATUS_OBSERVED indicates the resource has been observed but * not yet confirmed in a finalized block. * * @generated from enum value: CONSENSUS_STATUS_OBSERVED = 1; */ OBSERVED = 1, /** * CONSENSUS_STATUS_INCLUDED indicates the resource has been included in the * ledger but may not be finalized. * * @generated from enum value: CONSENSUS_STATUS_INCLUDED = 2; */ INCLUDED = 2, /** * CONSENSUS_STATUS_FINALIZED indicates the resource is finalized for a slot. * * @generated from enum value: CONSENSUS_STATUS_FINALIZED = 3; */ FINALIZED = 3, /** * CONSENSUS_STATUS_LOCALLY_EXECUTED indicates the local node executed the * resource but broader cluster finality may not have been achieved. * * @generated from enum value: CONSENSUS_STATUS_LOCALLY_EXECUTED = 4; */ LOCALLY_EXECUTED = 4, /** * CONSENSUS_STATUS_CLUSTER_EXECUTED indicates the entire cluster has * executed and agreed on the resource. * * @generated from enum value: CONSENSUS_STATUS_CLUSTER_EXECUTED = 5; */ CLUSTER_EXECUTED = 5 } /** * Describes the enum thru.common.v1.ConsensusStatus. */ declare const ConsensusStatusSchema: GenEnum; /** * Describes the file thru/common/v1/primitives.proto. */ declare const file_thru_common_v1_primitives: GenFile; /** * Pubkey represents a 32-byte public key value. * * @generated from message thru.common.v1.Pubkey */ type Pubkey = Message<"thru.common.v1.Pubkey"> & { /** * 32-byte public key buffer. * * @generated from field: bytes value = 1; */ value: Uint8Array; }; /** * Describes the message thru.common.v1.Pubkey. * Use `create(PubkeySchema)` to create a new message. */ declare const PubkeySchema: GenMessage; /** * Signature represents a 64-byte signature value. * * @generated from message thru.common.v1.Signature */ type Signature = Message<"thru.common.v1.Signature"> & { /** * 64-byte signature buffer. * * @generated from field: bytes value = 1; */ value: Uint8Array; }; /** * Describes the message thru.common.v1.Signature. * Use `create(SignatureSchema)` to create a new message. */ declare const SignatureSchema: GenMessage; /** * TaPubkey represents a ta-encoded public key string (46 characters). * * @generated from message thru.common.v1.TaPubkey */ type TaPubkey = Message<"thru.common.v1.TaPubkey"> & { /** * 46-character ta-encoded public key string. * * @generated from field: string value = 1; */ value: string; }; /** * Describes the message thru.common.v1.TaPubkey. * Use `create(TaPubkeySchema)` to create a new message. */ declare const TaPubkeySchema: GenMessage; /** * TsSignature represents a ts-encoded signature string (90 characters). * * @generated from message thru.common.v1.TsSignature */ type TsSignature = Message<"thru.common.v1.TsSignature"> & { /** * 90-character ts-encoded signature string. * * @generated from field: string value = 1; */ value: string; }; /** * Describes the message thru.common.v1.TsSignature. * Use `create(TsSignatureSchema)` to create a new message. */ declare const TsSignatureSchema: GenMessage; /** * Describes the file thru/core/v1/account.proto. */ declare const file_thru_core_v1_account: GenFile; /** * AccountFlags enumerates boolean account capability flags. * * @generated from message thru.core.v1.AccountFlags */ type AccountFlags = Message<"thru.core.v1.AccountFlags"> & { /** * @generated from field: bool is_program = 1; */ isProgram: boolean; /** * @generated from field: bool is_privileged = 2; */ isPrivileged: boolean; /** * @generated from field: bool is_uncompressable = 3; */ isUncompressable: boolean; /** * @generated from field: bool is_ephemeral = 4; */ isEphemeral: boolean; /** * @generated from field: bool is_deleted = 5; */ isDeleted: boolean; /** * @generated from field: bool is_new = 6; */ isNew: boolean; /** * @generated from field: bool is_compressed = 7; */ isCompressed: boolean; }; /** * Describes the message thru.core.v1.AccountFlags. * Use `create(AccountFlagsSchema)` to create a new message. */ declare const AccountFlagsSchema: GenMessage; /** * AccountMeta captures metadata associated with an account. * * @generated from message thru.core.v1.AccountMeta */ type AccountMeta = Message<"thru.core.v1.AccountMeta"> & { /** * @generated from field: uint32 version = 1; */ version: number; /** * @generated from field: thru.core.v1.AccountFlags flags = 2; */ flags?: AccountFlags | undefined; /** * @generated from field: uint32 data_size = 3; */ dataSize: number; /** * Account sequence number * * @generated from field: uint64 seq = 4; */ seq: bigint; /** * @generated from field: thru.common.v1.Pubkey owner = 5; */ owner?: Pubkey | undefined; /** * @generated from field: uint64 balance = 6; */ balance: bigint; /** * @generated from field: uint64 nonce = 7; */ nonce: bigint; /** * The slot in which this account was last updated. * * @generated from field: optional uint64 last_updated_slot = 8; */ lastUpdatedSlot?: bigint | undefined; }; /** * Describes the message thru.core.v1.AccountMeta. * Use `create(AccountMetaSchema)` to create a new message. */ declare const AccountMetaSchema: GenMessage; /** * AccountData contains account data payloads. * * @generated from message thru.core.v1.AccountData */ type AccountData = Message<"thru.core.v1.AccountData"> & { /** * @generated from field: optional bytes data = 1; */ data?: Uint8Array | undefined; /** * @generated from field: optional bool compressed = 2; */ compressed?: boolean | undefined; /** * @generated from field: optional string compression_algorithm = 3; */ compressionAlgorithm?: string | undefined; }; /** * Describes the message thru.core.v1.AccountData. * Use `create(AccountDataSchema)` to create a new message. */ declare const AccountDataSchema: GenMessage; /** * DataSlice describes a contiguous range of account data to return. * * @generated from message thru.core.v1.DataSlice */ type DataSlice = Message<"thru.core.v1.DataSlice"> & { /** * @generated from field: uint32 offset = 1; */ offset: number; /** * @generated from field: uint32 length = 2; */ length: number; }; /** * Describes the message thru.core.v1.DataSlice. * Use `create(DataSliceSchema)` to create a new message. */ declare const DataSliceSchema: GenMessage; /** * AccountPage represents a 4KB chunk for streaming account data. * * @generated from message thru.core.v1.AccountPage */ type AccountPage = Message<"thru.core.v1.AccountPage"> & { /** * @generated from field: uint32 page_idx = 1; */ pageIdx: number; /** * @generated from field: uint32 page_size = 2; */ pageSize: number; /** * @generated from field: bytes page_data = 3; */ pageData: Uint8Array; /** * @generated from field: optional bool compressed = 4; */ compressed?: boolean | undefined; /** * @generated from field: optional string compression_algorithm = 5; */ compressionAlgorithm?: string | undefined; }; /** * Describes the message thru.core.v1.AccountPage. * Use `create(AccountPageSchema)` to create a new message. */ declare const AccountPageSchema: GenMessage; /** * VersionContextMetadata captures context for a returned account state. * * @generated from message thru.core.v1.VersionContextMetadata */ type VersionContextMetadata = Message<"thru.core.v1.VersionContextMetadata"> & { /** * @generated from field: optional uint64 slot = 1; */ slot?: bigint | undefined; /** * @generated from field: optional google.protobuf.Timestamp block_timestamp = 2; */ blockTimestamp?: Timestamp | undefined; /** * Per-account sequence number of the returned version. * * @generated from field: optional uint64 seq = 3; */ seq?: bigint | undefined; /** * Block offset of the transaction that wrote the returned version. * * @generated from field: optional uint32 block_offset = 4; */ blockOffset?: number | undefined; }; /** * Describes the message thru.core.v1.VersionContextMetadata. * Use `create(VersionContextMetadataSchema)` to create a new message. */ declare const VersionContextMetadataSchema: GenMessage; /** * Account models a fully decoded account resource. * * @generated from message thru.core.v1.Account */ type Account = Message<"thru.core.v1.Account"> & { /** * @generated from field: thru.common.v1.Pubkey address = 1; */ address?: Pubkey | undefined; /** * @generated from field: optional thru.core.v1.AccountMeta meta = 2; */ meta?: AccountMeta | undefined; /** * @generated from field: optional thru.core.v1.AccountData data = 3; */ data?: AccountData | undefined; /** * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4; */ versionContext?: VersionContextMetadata | undefined; /** * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 5; */ consensusStatus?: ConsensusStatus | undefined; }; /** * Describes the message thru.core.v1.Account. * Use `create(AccountSchema)` to create a new message. */ declare const AccountSchema: GenMessage; /** * RawAccount captures raw serialized account bytes. * * @generated from message thru.core.v1.RawAccount */ type RawAccount = Message<"thru.core.v1.RawAccount"> & { /** * @generated from field: thru.common.v1.Pubkey address = 1; */ address?: Pubkey | undefined; /** * @generated from field: bytes raw_meta = 2; */ rawMeta: Uint8Array; /** * @generated from field: optional bytes raw_data = 3; */ rawData?: Uint8Array | undefined; /** * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4; */ versionContext?: VersionContextMetadata | undefined; }; /** * Describes the message thru.core.v1.RawAccount. * Use `create(RawAccountSchema)` to create a new message. */ declare const RawAccountSchema: GenMessage; /** * AccountView controls which sections of account resources are returned. * * @generated from enum thru.core.v1.AccountView */ declare enum AccountView { /** * ACCOUNT_VIEW_UNSPECIFIED uses service defaults. * * @generated from enum value: ACCOUNT_VIEW_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * ACCOUNT_VIEW_PUBKEY_ONLY returns only the account address. * * @generated from enum value: ACCOUNT_VIEW_PUBKEY_ONLY = 1; */ PUBKEY_ONLY = 1, /** * ACCOUNT_VIEW_META_ONLY returns only account metadata. * * @generated from enum value: ACCOUNT_VIEW_META_ONLY = 2; */ META_ONLY = 2, /** * ACCOUNT_VIEW_DATA_ONLY returns only account data. * * @generated from enum value: ACCOUNT_VIEW_DATA_ONLY = 3; */ DATA_ONLY = 3, /** * ACCOUNT_VIEW_FULL returns address, metadata, and data. * * @generated from enum value: ACCOUNT_VIEW_FULL = 4; */ FULL = 4 } /** * Describes the enum thru.core.v1.AccountView. */ declare const AccountViewSchema: GenEnum; export { type Account as A, VersionContextMetadataSchema as B, ConsensusStatus as C, type DataSlice as D, VersionContextSchema as E, file_thru_common_v1_consensus as F, file_thru_common_v1_primitives as G, file_thru_core_v1_account as H, type Pubkey as P, type RawAccount as R, type Signature as S, type TaPubkey as T, type VersionContext as V, type AccountData as a, AccountDataSchema as b, type AccountFlags as c, AccountFlagsSchema as d, type AccountMeta as e, AccountMetaSchema as f, type AccountPage as g, AccountPageSchema as h, AccountSchema as i, AccountView as j, AccountViewSchema as k, ConsensusStatusSchema as l, type CurrentOrHistoricalVersion as m, CurrentOrHistoricalVersionSchema as n, type CurrentVersion as o, CurrentVersionSchema as p, DataSliceSchema as q, PubkeySchema as r, RawAccountSchema as s, SignatureSchema as t, type SlotSeq as u, SlotSeqSchema as v, TaPubkeySchema as w, type TsSignature as x, TsSignatureSchema as y, type VersionContextMetadata as z };