/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit"; export declare const PROTOCOL_DISCRIMINATOR: Uint8Array; export declare function getProtocolDiscriminatorBytes(): ReadonlyUint8Array; export type Protocol = { discriminator: ReadonlyUint8Array; /** The admin of the protocol. */ admin: Address; /** The operational state of the protocol. */ operationalState: number; /** Padding after the operational-state flags. */ padding1: ReadonlyUint8Array; /** The bump for the protocol. */ bump: number; /** 1 byte of padding to align future 8-byte fields on 8-byte boundaries. */ padding0: ReadonlyUint8Array; /** The pending admin for admin transfer. */ pendingAdmin: Address; /** The treasury that receives protocol fees. */ treasury: Address; }; export type ProtocolArgs = { /** The admin of the protocol. */ admin: Address; /** The operational state of the protocol. */ operationalState: number; /** Padding after the operational-state flags. */ padding1: ReadonlyUint8Array; /** The bump for the protocol. */ bump: number; /** 1 byte of padding to align future 8-byte fields on 8-byte boundaries. */ padding0: ReadonlyUint8Array; /** The pending admin for admin transfer. */ pendingAdmin: Address; /** The treasury that receives protocol fees. */ treasury: Address; }; /** Gets the encoder for {@link ProtocolArgs} account data. */ export declare function getProtocolEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Protocol} account data. */ export declare function getProtocolDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Protocol} account data. */ export declare function getProtocolCodec(): FixedSizeCodec; export declare function decodeProtocol(encodedAccount: EncodedAccount): Account; export declare function decodeProtocol(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchProtocol(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeProtocol(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllProtocol(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeProtocol(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getProtocolSize(): number; //# sourceMappingURL=protocol.d.ts.map