/** * 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 GLOBAL_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getGlobalConfigDiscriminatorBytes(): ReadonlyUint8Array; export type GlobalConfig = { discriminator: ReadonlyUint8Array; emergencyMode: bigint; blockDeposit: bigint; blockInvest: bigint; blockWithdraw: bigint; blockCollectFees: bigint; blockCollectRewards: bigint; blockSwapRewards: bigint; blockSwapUnevenVaults: number; blockEmergencySwap: number; minWithdrawalFeeBps: bigint; scopeProgramId: Address; scopePriceId: Address; swapRewardsDiscountBps: Array; actionsAuthority: Address; adminAuthority: Address; treasuryFeeVaults: Array
; tokenInfos: Address; blockLocalAdmin: bigint; minPerformanceFeeBps: bigint; minSwapUnevenSlippageToleranceBps: bigint; minReferencePriceSlippageToleranceBps: bigint; actionsAfterRebalanceDelaySeconds: bigint; treasuryFeeVaultReceiver: Address; padding: Array; }; export type GlobalConfigArgs = { emergencyMode: number | bigint; blockDeposit: number | bigint; blockInvest: number | bigint; blockWithdraw: number | bigint; blockCollectFees: number | bigint; blockCollectRewards: number | bigint; blockSwapRewards: number | bigint; blockSwapUnevenVaults: number; blockEmergencySwap: number; minWithdrawalFeeBps: number | bigint; scopeProgramId: Address; scopePriceId: Address; swapRewardsDiscountBps: Array; actionsAuthority: Address; adminAuthority: Address; treasuryFeeVaults: Array
; tokenInfos: Address; blockLocalAdmin: number | bigint; minPerformanceFeeBps: number | bigint; minSwapUnevenSlippageToleranceBps: number | bigint; minReferencePriceSlippageToleranceBps: number | bigint; actionsAfterRebalanceDelaySeconds: number | bigint; treasuryFeeVaultReceiver: Address; padding: Array; }; /** Gets the encoder for {@link GlobalConfigArgs} account data. */ export declare function getGlobalConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link GlobalConfig} account data. */ export declare function getGlobalConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link GlobalConfig} account data. */ export declare function getGlobalConfigCodec(): FixedSizeCodec; export declare function decodeGlobalConfig(encodedAccount: EncodedAccount): Account; export declare function decodeGlobalConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchGlobalConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeGlobalConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllGlobalConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeGlobalConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getGlobalConfigSize(): number; //# sourceMappingURL=globalConfig.d.ts.map