import { PoolFeesConfig, PoolFeesConfigArgs } from "../types/poolFeesConfig.js"; import "../types/index.js"; import { Account, Address, EncodedAccount, FetchAccountConfig, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, MaybeAccount, MaybeEncodedAccount, ReadonlyUint8Array, fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit"; //#region src/generated/accounts/config.d.ts declare const CONFIG_DISCRIMINATOR: ReadonlyUint8Array; declare function getConfigDiscriminatorBytes(): ReadonlyUint8Array; type Config = { discriminator: ReadonlyUint8Array; /** Vault config key */ vaultConfigKey: Address; /** Only pool_creator_authority can use the current config to initialize new pool. When it's Pubkey::default, it's a public config. */ poolCreatorAuthority: Address; /** Pool fee */ poolFees: PoolFeesConfig; /** Activation type */ activationType: number; /** Collect fee mode */ collectFeeMode: number; /** Config type mode, 0 for static, 1 for dynamic */ configType: number; /** padding 0 */ padding0: Array; /** config index */ index: bigint; /** sqrt min price */ sqrtMinPrice: bigint; /** sqrt max price */ sqrtMaxPrice: bigint; /** * Fee curve point * Padding for further use */ padding1: Array; }; type ConfigArgs = { /** Vault config key */ vaultConfigKey: Address; /** Only pool_creator_authority can use the current config to initialize new pool. When it's Pubkey::default, it's a public config. */ poolCreatorAuthority: Address; /** Pool fee */ poolFees: PoolFeesConfigArgs; /** Activation type */ activationType: number; /** Collect fee mode */ collectFeeMode: number; /** Config type mode, 0 for static, 1 for dynamic */ configType: number; /** padding 0 */ padding0: Array; /** config index */ index: number | bigint; /** sqrt min price */ sqrtMinPrice: number | bigint; /** sqrt max price */ sqrtMaxPrice: number | bigint; /** * Fee curve point * Padding for further use */ padding1: Array; }; /** Gets the encoder for {@link ConfigArgs} account data. */ declare function getConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Config} account data. */ declare function getConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Config} account data. */ declare function getConfigCodec(): FixedSizeCodec; declare function decodeConfig(encodedAccount: EncodedAccount): Account; declare function decodeConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; //#endregion export { CONFIG_DISCRIMINATOR, Config, ConfigArgs, decodeConfig, fetchAllConfig, fetchAllMaybeConfig, fetchConfig, fetchMaybeConfig, getConfigCodec, getConfigDecoder, getConfigDiscriminatorBytes, getConfigEncoder }; //# sourceMappingURL=config.d.ts.map