import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; export declare const protobufPackage = "solana.storage.ConfirmedBlock"; export declare enum RewardType { Unspecified = 0, Fee = 1, Rent = 2, Staking = 3, Voting = 4, UNRECOGNIZED = -1 } export declare function rewardTypeFromJSON(object: any): RewardType; export declare function rewardTypeToJSON(object: RewardType): string; export interface ConfirmedBlock { previousBlockhash: string; blockhash: string; parentSlot: string; transactions: ConfirmedTransaction[]; rewards: Reward[]; blockTime: UnixTimestamp | undefined; blockHeight: BlockHeight | undefined; numPartitions: NumPartitions | undefined; } export interface ConfirmedTransaction { transaction: Transaction | undefined; meta: TransactionStatusMeta | undefined; } export interface Transaction { signatures: Uint8Array[]; message: Message | undefined; } export interface Message { header: MessageHeader | undefined; accountKeys: Uint8Array[]; recentBlockhash: Uint8Array; instructions: CompiledInstruction[]; versioned: boolean; addressTableLookups: MessageAddressTableLookup[]; } export interface MessageHeader { numRequiredSignatures: number; numReadonlySignedAccounts: number; numReadonlyUnsignedAccounts: number; } export interface MessageAddressTableLookup { accountKey: Uint8Array; writableIndexes: Uint8Array; readonlyIndexes: Uint8Array; } export interface TransactionStatusMeta { err: TransactionError | undefined; fee: string; preBalances: string[]; postBalances: string[]; innerInstructions: InnerInstructions[]; innerInstructionsNone: boolean; logMessages: string[]; logMessagesNone: boolean; preTokenBalances: TokenBalance[]; postTokenBalances: TokenBalance[]; rewards: Reward[]; loadedWritableAddresses: Uint8Array[]; loadedReadonlyAddresses: Uint8Array[]; returnData: ReturnData | undefined; returnDataNone: boolean; /** * Sum of compute units consumed by all instructions. * Available since Solana v1.10.35 / v1.11.6. * Set to `None` for txs executed on earlier versions. */ computeUnitsConsumed?: string | undefined; /** Total transaction cost */ costUnits?: string | undefined; } export interface TransactionError { err: Uint8Array; } export interface InnerInstructions { index: number; instructions: InnerInstruction[]; } export interface InnerInstruction { programIdIndex: number; accounts: Uint8Array; data: Uint8Array; /** * Invocation stack height of an inner instruction. * Available since Solana v1.14.6 * Set to `None` for txs executed on earlier versions. */ stackHeight?: number | undefined; } export interface CompiledInstruction { programIdIndex: number; accounts: Uint8Array; data: Uint8Array; } export interface TokenBalance { accountIndex: number; mint: string; uiTokenAmount: UiTokenAmount | undefined; owner: string; programId: string; } export interface UiTokenAmount { uiAmount: number; decimals: number; amount: string; uiAmountString: string; } export interface ReturnData { programId: Uint8Array; data: Uint8Array; } export interface Reward { pubkey: string; lamports: string; postBalance: string; rewardType: RewardType; commission: string; } export interface Rewards { rewards: Reward[]; numPartitions: NumPartitions | undefined; } export interface UnixTimestamp { timestamp: string; } export interface BlockHeight { blockHeight: string; } export interface NumPartitions { numPartitions: string; } export declare const ConfirmedBlock: MessageFns; export declare const ConfirmedTransaction: MessageFns; export declare const Transaction: MessageFns; export declare const Message: MessageFns; export declare const MessageHeader: MessageFns; export declare const MessageAddressTableLookup: MessageFns; export declare const TransactionStatusMeta: MessageFns; export declare const TransactionError: MessageFns; export declare const InnerInstructions: MessageFns; export declare const InnerInstruction: MessageFns; export declare const CompiledInstruction: MessageFns; export declare const TokenBalance: MessageFns; export declare const UiTokenAmount: MessageFns; export declare const ReturnData: MessageFns; export declare const Reward: MessageFns; export declare const Rewards: MessageFns; export declare const UnixTimestamp: MessageFns; export declare const BlockHeight: MessageFns; export declare const NumPartitions: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } export {};