import * as _solana_kit from '@solana/kit'; import { Address, ReadonlyUint8Array, Codec, Base58EncodedBytes, Base64EncodedBytes, TransactionSigner, AccountRole, AccountMeta, AccountSignerMeta, ProgramDerivedAddress, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, Option, OptionOrNullable, TransactionMessage, TransactionMessageWithFeePayer } from '@solana/kit'; import { A as AmmConfig$1, P as Pool$1, a as Position$1, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$3, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, T as TransferAdminArgs, i as OracleConsultArgs, j as Observation, k as TradeDirection, l as SwapQuote, m as SwapQuoteExactOut, n as AddLiquidityQuote, o as RemoveLiquidityQuote, M as MarketCapValidationResult, p as MarketCapToCurveParamsInput, q as CurveParams, r as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, s as AddLiquidityEvent, t as AdminTransferredEvent, u as CollectFeesEvent, v as CollectProtocolFeesEvent, F as FeesUpdatedEvent, w as FetchOracleConfig, x as FetchPositionsConfig, H as HookErrorEvent, y as HookInvokedEvent, z as HookUpdatedEvent, B as OracleInitializedEvent, D as OracleUpdatedEvent, E as OracleWithAddress, J as PausedEvent, K as PoolInitializedEvent, L as PositionClosedEvent, N as PositionCreatedEvent, Q as PositionValue, U as PositionWithAddress, V as RemoveLiquidityEvent, W as SwapEvent, X as TwapResult, Y as UnpausedEvent, Z as VaultExcessWithdrawnEvent, _ as comparePoolAndOraclePrices, $ as consultTwap, a0 as fetchOracle, a1 as fetchOraclesBatch, a2 as fetchPoolPositions, a3 as fetchPosition$1, a4 as fetchPositionByParams, a5 as fetchPositionsBatch, a6 as fetchUserPositions, a7 as filterActivePositions, a8 as getOracleAddressFromPool, a9 as getOracleAge, aa as getOracleBufferStats, ab as getOracleDeviation, ac as getOracleForPool, ad as getOracleSpotPrices, ae as getPositionAddressFromParams, af as getPositionValue, ag as isOracleStale, ah as sortPositionsByShares } from '../oracle-D1wPWydZ.cjs'; import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core'; /** * @deprecated Use DEVNET_CPMM_PROGRAM_ID or pass an explicit deployment. */ declare const CPMM_PROGRAM_ID: Address; /** * Metaplex Token Metadata Program ID */ declare const TOKEN_METADATA_PROGRAM_ID: Address; /** Basis points denominator (10,000 = 100%) */ declare const BPS_DENOM = 10000n; /** Q64.64 fixed-point representation of 1.0 (2^64) */ declare const Q64_ONE: bigint; /** Current account version */ declare const ACCOUNT_VERSION = 1; /** Maximum number of programs in hook allowlist */ declare const MAX_HOOK_ALLOWLIST$1 = 32; /** Maximum number of oracle observations (TWAP buffer size) */ declare const MAX_ORACLE_OBSERVATIONS = 64; /** Seed for AmmConfig PDA: ['config'] */ declare const SEED_CONFIG$1 = "config"; /** Seed prefix for launch-migrated Pool PDA: ['pool', token0_mint, token1_mint] */ declare const SEED_POOL = "pool"; /** Seed prefix for spot Pool PDA: ['spot_pool', token0_mint, token1_mint, swap_fee_bps] */ declare const SEED_SPOT_POOL = "spot_pool"; /** Seed prefix for pool authority PDA: ['authority', pool] */ declare const SEED_AUTHORITY = "authority"; /** Seed prefix for Position PDA: ['position', pool, owner, position_id] */ declare const SEED_POSITION = "position"; /** Seed prefix for OracleState PDA: ['oracle', pool] */ declare const SEED_ORACLE = "oracle"; /** Seed prefix for protocol fee owner PDA: ['protocol_fee_owner', pool] */ declare const SEED_PROTOCOL_FEE_OWNER = "protocol_fee_owner"; /** Hook: called before swap */ declare const HF_BEFORE_SWAP$1: number; /** Hook: called after swap */ declare const HF_AFTER_SWAP$1: number; /** Hook flags supported by immutable spot pools */ declare const SPOT_HOOK_FLAG_MASK: number; /** Hook: called before add liquidity */ declare const HF_BEFORE_ADD_LIQ: number; /** Hook: called after add liquidity */ declare const HF_AFTER_ADD_LIQ: number; /** Hook: called before remove liquidity */ declare const HF_BEFORE_REMOVE_LIQ: number; /** Hook: called after remove liquidity */ declare const HF_AFTER_REMOVE_LIQ: number; /** Require an oracle account when invoking hooks */ declare const HF_REQUIRE_ORACLE: number; /** Preserve readonly signer metas when forwarding remaining accounts to hooks */ declare const HF_FORWARD_READONLY_SIGNERS$1: number; /** Hook return value indicating "no change" to fee parameter */ declare const HOOK_NO_CHANGE$1 = 65535; /** * Anchor instruction discriminator (first 8 bytes of SHA256("global:")) * These are computed at build time from the instruction names. */ declare const INSTRUCTION_DISCRIMINATORS: { readonly initializeConfig: Uint8Array; readonly initializePool: Uint8Array; readonly initializeOracle: Uint8Array; readonly createPosition: Uint8Array; readonly addLiquidity: Uint8Array; readonly removeLiquidity: Uint8Array; readonly swapExactIn: Uint8Array; readonly collectFees: Uint8Array; readonly collectProtocolFees: Uint8Array; readonly closePosition: Uint8Array; readonly oracleUpdate: Uint8Array; readonly oracleConsult: Uint8Array; readonly setHook: Uint8Array; readonly setFees: Uint8Array; readonly transferAdmin: Uint8Array; readonly pause: Uint8Array; readonly unpause: Uint8Array; readonly withdrawVaultExcess: Uint8Array; }; /** * Anchor account discriminator (first 8 bytes of SHA256("account:")) */ declare const ACCOUNT_DISCRIMINATORS: { readonly AmmConfig: Uint8Array; readonly Pool: Uint8Array; readonly Position: Uint8Array; readonly OracleState: Uint8Array; }; /** * Borsh serialization/deserialization for CPMM accounts and instructions * * This module provides encoding/decoding utilities for program accounts * and instruction data using Borsh-compatible binary formats. */ declare const observationCodec: Codec; declare const ammConfigDataCodec: Codec; declare const poolDataCodec: Codec; declare const positionDataCodec: Codec; declare const oracleStateDataCodec: Codec; /** * Decode AmmConfig from raw account data (including discriminator) */ declare function decodeAmmConfig$1(data: ReadonlyUint8Array): AmmConfig$1; /** * Decode Pool from raw account data (including discriminator) */ declare function decodePool$1(data: ReadonlyUint8Array): Pool$1; /** * Decode Position from raw account data (including discriminator) */ declare function decodePosition$1(data: ReadonlyUint8Array): Position$1; /** * Decode OracleState from raw account data (including discriminator) */ declare function decodeOracleState$2(data: ReadonlyUint8Array): OracleState$2; /** * Encode instruction data with discriminator prefix */ declare function encodeInstructionData(discriminator: Uint8Array, codec?: { encode: (args: T) => ReadonlyUint8Array | Uint8Array; }, args?: T): Uint8Array; type AddLiquidityArgsWithOracle = AddLiquidityArgs & { updateOracle?: boolean; }; declare const swapExactInArgsCodec: Codec; declare const addLiquidityArgsCodec: Codec; declare const removeLiquidityArgsCodec: Codec; declare const collectFeesArgsCodec: Codec; declare const collectProtocolFeesArgsCodec: Codec; declare const createPositionArgsCodec: Codec; declare const initializeConfigArgsCodec: Codec; declare const initializePoolArgsCodec: Codec; declare const initializeOracleArgsCodec: Codec; declare const setHookArgsCodec: Codec; declare const setFeesArgsCodec: Codec; declare const transferAdminArgsCodec: Codec; declare const oracleConsultArgsCodec: Codec; /** Encode SwapExactIn args */ declare function encodeSwapExactInArgs(args: SwapExactInArgs): Uint8Array; /** Encode AddLiquidity args */ declare function encodeAddLiquidityArgs(args: AddLiquidityArgsWithOracle): Uint8Array; /** Encode RemoveLiquidity args */ declare function encodeRemoveLiquidityArgs(args: RemoveLiquidityArgs): Uint8Array; /** Encode CollectFees args */ declare function encodeCollectFeesArgs(args: CollectFeesArgs): Uint8Array; /** Encode CollectProtocolFees args */ declare function encodeCollectProtocolFeesArgs(args: CollectProtocolFeesArgs): Uint8Array; /** Encode CreatePosition args */ declare function encodeCreatePositionArgs(args: CreatePositionArgs): Uint8Array; /** Encode InitializeConfig args */ declare function encodeInitializeConfigArgs(args: InitializeConfigArgs$3): Uint8Array; /** Encode InitializePool args */ declare function encodeInitializePoolArgs(args: InitializePoolArgs): Uint8Array; /** Encode InitializeOracle args */ declare function encodeInitializeOracleArgs(args: InitializeOracleArgs$1): Uint8Array; /** Encode SetHook args */ declare function encodeSetHookArgs(args: SetHookArgs): Uint8Array; /** Encode SetFees args */ declare function encodeSetFeesArgs(args: SetFeesArgs): Uint8Array; /** Encode TransferAdmin args */ declare function encodeTransferAdminArgs(args: TransferAdminArgs): Uint8Array; /** Encode OracleConsult args */ declare function encodeOracleConsultArgs(args: OracleConsultArgs): Uint8Array; type AddressOrTransactionSigner = Address | TransactionSigner; type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner; type AccountMetaRole = typeof AccountRole.READONLY | typeof AccountRole.WRITABLE | typeof AccountRole.READONLY_SIGNER | typeof AccountRole.WRITABLE_SIGNER; type EncodedProgramAccount = Readonly<{ pubkey: Address; account: Readonly<{ data: readonly [string, 'base64']; }>; }>; declare function isTransactionSigner(value: unknown): value is TransactionSigner; declare function getAddressFromAddressOrSigner(value: AddressOrTransactionSigner): Address; declare function getAddressFromRemainingAccount(account: RemainingAccount): Address; declare function createAccountMeta(value: AddressOrTransactionSigner, role: AccountMetaRole): AccountMeta | AccountSignerMeta; declare function createReadonlyRemainingAccountMeta(account: RemainingAccount): AccountMeta | AccountSignerMeta; declare function bytesToBase64(bytes: ReadonlyUint8Array): string; declare function bytesToBase64EncodedBytes(bytes: ReadonlyUint8Array): Base64EncodedBytes; declare function base64ToBytes(base64: string): Uint8Array; declare function addressToBase58EncodedBytes(address: Address): Base58EncodedBytes; declare function normalizeProgramAccountsResponse(response: unknown): EncodedProgramAccount[]; declare function warnAccountDecodeFailure(accountType: string, accountAddress: Address): void; /** * Sort two mints into canonical order (token0 < token1 by bytes) * This is required for Pool PDA derivation and instruction ordering. * * @param mint0 - First mint address * @param mint1 - Second mint address * @returns Tuple of [token0, token1] in canonical order * @throws Error if mints are equal */ declare function sortMints(mint0: Address, mint1: Address): [Address, Address]; /** * Check if mints are in canonical order */ declare function areMintsOrdered(mint0: Address, mint1: Address): boolean; /** * Derive the AmmConfig PDA address * Seeds: ['config'] */ declare function getConfigAddress$1(programId?: Address): Promise; /** * Derive the Pool PDA address for a token pair * Seeds: ['pool', token0_mint, token1_mint] * * Note: Mints will be automatically sorted if not in canonical order. */ declare function getPoolAddress(mint0: Address, mint1: Address, programId?: Address): Promise; /** * Derive the spot Pool PDA address for a token pair and immutable fee tier. * Seeds: ['spot_pool', token0_mint, token1_mint, swap_fee_bps_le] * * Note: Mints will be automatically sorted if not in canonical order. */ declare function getSpotPoolAddress(mint0: Address, mint1: Address, swapFeeBps: number, programId?: Address): Promise; /** * Derive the hooked spot Pool PDA for a token pair, fee tier, and immutable * swap-hook configuration. * Seeds: ['spot_pool', token0_mint, token1_mint, swap_fee_bps_le, hook_program, hook_flags_le] * * Note: Mints will be automatically sorted if not in canonical order. */ declare function getHookedSpotPoolAddress(mint0: Address, mint1: Address, swapFeeBps: number, hookProgram: Address, hookFlags: number, programId?: Address): Promise; /** * Derive the Pool authority PDA (vault owner) * Seeds: ['authority', pool] */ declare function getPoolAuthorityAddress(pool: Address, programId?: Address): Promise; /** * Derive the token0 vault PDA. * Seeds: ['vault0', pool] */ declare function getPoolVault0Address(pool: Address, programId?: Address): Promise; /** * Derive the token1 vault PDA. * Seeds: ['vault1', pool] */ declare function getPoolVault1Address(pool: Address, programId?: Address): Promise; /** * Derive the Position PDA address * Seeds: ['position', pool, owner, position_id_le_bytes] */ declare function getPositionAddress(pool: Address, owner: Address, positionId: bigint, programId?: Address): Promise; /** * Derive the OracleState PDA address * Seeds: ['oracle', pool] */ declare function getOracleAddress(pool: Address, programId?: Address): Promise; /** * Derive the protocol fee owner PDA address * Seeds: ['protocol_fee_owner', pool] */ declare function getProtocolFeeOwnerAddress(pool: Address, programId?: Address): Promise; /** * Derive the protocol fee position PDA address. * Seeds: ['position', pool, protocol_fee_owner, 0] */ declare function getProtocolFeePositionAddress(pool: Address, programId?: Address): Promise; /** * Derive all PDAs needed for pool initialization */ declare function getPoolInitAddresses(mint0: Address, mint1: Address, programId?: Address): Promise<{ token0: Address; token1: Address; pool: ProgramDerivedAddress; authority: ProgramDerivedAddress; vault0: ProgramDerivedAddress; vault1: ProgramDerivedAddress; config: ProgramDerivedAddress; protocolFeeOwner: ProgramDerivedAddress; protocolFeePosition: ProgramDerivedAddress; }>; /** * Derive all PDAs needed for swap operation */ declare function getSwapAddresses(pool: Address, programId?: Address): Promise<{ config: ProgramDerivedAddress; authority: ProgramDerivedAddress; oracle: ProgramDerivedAddress; }>; /** * Derive all PDAs needed for liquidity operations */ declare function getLiquidityAddresses(pool: Address, owner: Address, positionId: bigint, programId?: Address): Promise<{ config: ProgramDerivedAddress; authority: ProgramDerivedAddress; position: ProgramDerivedAddress; protocolFeeOwner: ProgramDerivedAddress; protocolFeePosition: ProgramDerivedAddress; oracle: ProgramDerivedAddress; }>; /** * Derive Metaplex Token Metadata PDA for a given mint. * * Seeds: ['metadata', token_metadata_program_id, mint] */ declare function getMetadataAddress(mint: Address): Promise; /** * Convert a Q64.64 fixed-point number to a decimal number */ declare function q64ToNumber(q64: bigint): number; /** * Convert a decimal number to Q64.64 fixed-point */ declare function numberToQ64(n: number): bigint; /** * Multiply two Q64.64 numbers, returning Q64.64 result */ declare function q64Mul(a: bigint, b: bigint): bigint; /** * Divide two Q64.64 numbers, returning Q64.64 result */ declare function q64Div(a: bigint, b: bigint): bigint; /** * Compute spot price (reserve1/reserve0) as Q64.64 * Price of token0 denominated in token1 */ declare function computePrice0Q64(reserve0: bigint, reserve1: bigint): bigint; /** * Compute spot price (reserve0/reserve1) as Q64.64 * Price of token1 denominated in token0 */ declare function computePrice1Q64(reserve0: bigint, reserve1: bigint): bigint; /** * Integer square root (floor) */ declare function isqrt(n: bigint): bigint; /** * Ceiling division: ceil(a / b) */ declare function ceilDiv(a: bigint, b: bigint): bigint; /** * Minimum of two bigints */ declare function minBigInt(a: bigint, b: bigint): bigint; /** * Maximum of two bigints */ declare function maxBigInt(a: bigint, b: bigint): bigint; /** * Convert a ratio of two bigints to a decimal number using Q64.64 precision */ declare function ratioToNumber(numerator: bigint, denominator: bigint): number; /** * Calculate swap output and fees for exact input amount * * Fee calculation (from spec): * - fee_total = floor(amount_in * fee_bps / 10_000) * - fee_dist = floor(fee_total * split_bps / 10_000) * - fee_comp = fee_total - fee_dist * - amount_in_eff = amount_in - fee_total * * CPMM output: * - amount_out = floor(amount_in_eff * reserve_out / (reserve_in + amount_in_eff)) */ declare function getSwapQuote(pool: Pool$1, amountIn: bigint, tradeDirection: TradeDirection): SwapQuote; /** * Calculate input amount needed for exact output (reverse quote) */ declare function getSwapQuoteExactOut(pool: Pool$1, amountOut: bigint, tradeDirection: TradeDirection): SwapQuoteExactOut; /** * Calculate shares and actual amounts for adding liquidity * * From spec: * - If initial: shares = floor_sqrt(amount0 * amount1) * - Else: shares = min(amount0 * totalShares / reserve0, amount1 * totalShares / reserve1) */ declare function getAddLiquidityQuote(pool: Pool$1, amount0Max: bigint, amount1Max: bigint): AddLiquidityQuote; /** * Calculate token amounts for removing liquidity * * From spec: * - amount0 = shares * reserve0 / totalShares * - amount1 = shares * reserve1 / totalShares */ declare function getRemoveLiquidityQuote(pool: Pool$1, sharesIn: bigint): RemoveLiquidityQuote; /** * Calculate accrued fees for a position * * From spec: * - delta = pool.fee_growth_global - position.fee_growth_last * - owed_inc = floor(position.shares * delta / 2^64) */ declare function calculateAccruedFees(shares: bigint, feeGrowthLastQ64: bigint, feeGrowthGlobalQ64: bigint): bigint; /** * Calculate pending fees for a position (both tokens) */ declare function getPendingFees(pool: Pool$1, position: { shares: bigint; feeGrowthLast0Q64: bigint; feeGrowthLast1Q64: bigint; feeOwed0: bigint; feeOwed1: bigint; }): { pending0: bigint; pending1: bigint; }; /** * Calculate spot price of token0 in terms of token1 */ declare function getSpotPrice0(pool: Pool$1): number; /** * Calculate spot price of token1 in terms of token0 */ declare function getSpotPrice1(pool: Pool$1): number; /** * Calculate k (constant product invariant) */ declare function getK(pool: Pool$1): bigint; /** * Calculate pool TVL in terms of one token * @param pool Pool data * @param side 0 = denominate in token0, 1 = denominate in token1 */ declare function getTvl(pool: Pool$1, side?: TradeDirection): bigint; /** * Calculate TWAP price from oracle observations * * TWAP = (cumulative_end - cumulative_start) / (timestamp_end - timestamp_start) */ declare function calculateTwap(cumulativeStart: bigint, cumulativeEnd: bigint, timestampStart: number, timestampEnd: number): bigint; /** * Calculate TWAP as a decimal number */ declare function calculateTwapNumber(cumulativeStart: bigint, cumulativeEnd: bigint, timestampStart: number, timestampEnd: number): number; /** * Market cap conversion utilities for Solana token launches. * * Converts between human-readable market cap values (USD) and the raw * curve parameters used by the initializer program. * * For an XYK bonding curve the marginal spot price at any point is: * * spotPrice (quote/base, raw units) = (quoteReserve + curveVirtualQuote) * / (baseReserve + curveVirtualBase) * * At launch open (quoteReserve = 0, baseReserve = baseForCurve): * * spotPrice = curveVirtualQuote / (baseForCurve + curveVirtualBase) * * Adjusted for decimals and numeraire price: * * spotPriceUSD = spotPrice * 10^(baseDecimals - quoteDecimals) * numerairePriceUSD * * Market cap (FDV) is then: * * marketCap = spotPriceUSD * (baseTotalSupply / 10^baseDecimals) */ /** * Convert a market cap (USD) and total supply to a per-token price (USD). * * @example * // $1M market cap, 1B tokens with 6 decimals * marketCapToTokenPrice(1_000_000, 1_000_000_000n * 10n**6n, 6) * // => 0.001 */ declare function marketCapToTokenPrice(marketCapUSD: number, baseTotalSupply: bigint, baseDecimals: number): number; /** * Validate market cap parameters and return warnings for unusual values. * Does not throw — callers can decide whether to surface warnings to users. * * @example * const { valid, warnings } = validateMarketCapParameters(500, supply, 6); * if (!valid) console.warn(warnings); */ declare function validateMarketCapParameters(marketCapUSD: number, baseTotalSupply: bigint, baseDecimals: number): MarketCapValidationResult; /** * Convert a market cap range (USD) to XYK curve virtual reserve parameters. * * Returns `{ curveVirtualBase, curveVirtualQuote }` for both the start (open) * and end (graduation) prices, ready to pass into `InitializeLaunchArgs`. * * `baseForCurve` is the number of base tokens allocated to the curve vault * (baseTotalSupply - baseForDistribution - baseForLiquidity). It determines * the correct initial spot price alongside the virtual reserves. * * `virtualBase` defaults to `baseForCurve`. A larger value gives finer price * granularity at the cost of a proportionally larger `curveVirtualQuote`. * * @example * const totalSupply = 1_000_000_000n * 10n ** 6n; * const { start, end } = marketCapToCurveParams({ * startMarketCapUSD: 100_000, * endMarketCapUSD: 5_000_000, * baseTotalSupply: totalSupply, * baseForCurve: totalSupply, // no distribution or liquidity allocation * baseDecimals: 6, * quoteDecimals: 9, // SOL * numerairePriceUSD: 150, * }); * // Use start.curveVirtualBase / start.curveVirtualQuote in InitializeLaunchArgs */ declare function marketCapToCurveParams(input: MarketCapToCurveParamsInput): { start: CurveParams; end: CurveParams; }; /** * Convert a single market cap (USD) to XYK curve virtual reserve parameters. * Use `marketCapToCurveParams` for a full start/end range. */ declare function marketCapToSingleCurveParams(marketCapUSD: number, baseTotalSupply: bigint, baseForCurve: bigint, baseDecimals: number, quoteDecimals: number, numerairePriceUSD: number, virtualBase?: bigint): CurveParams; /** * Derive the current market cap (USD) from live XYK curve state. * * Pass the virtual reserves from the `Launch` account and the current token * vault balances (`baseReserve`, `quoteReserve`) to get the live spot price. * * @example * const launch = await fetchLaunch(connection, launchAddress); * const [baseVaultBalance, quoteVaultBalance] = await Promise.all([ * getTokenAccountBalance(connection, launch.baseVault), * getTokenAccountBalance(connection, launch.quoteVault), * ]); * // baseReserve is the curve-available portion, excluding reserved allocations * const baseReserve = baseVaultBalance - launch.baseForDistribution - launch.baseForLiquidity; * const mcap = curveParamsToMarketCap({ * curveVirtualBase: launch.curveVirtualBase, * curveVirtualQuote: launch.curveVirtualQuote, * baseReserve, * quoteReserve: quoteVaultBalance, * baseTotalSupply: launch.baseTotalSupply, * baseDecimals: 6, * quoteDecimals: 9, * numerairePriceUSD: 150, * }); */ declare function curveParamsToMarketCap(input: CurveParamsToMarketCapInput): number; /** * CPMM program error codes * * These correspond to the CpmmError enum in the on-chain program. * Anchor errors start at 6000 (0x1770). */ declare enum CpmmErrorCode { /** Unauthorized - caller lacks required authority */ Unauthorized = 6000, /** Pool is currently locked (reentrancy protection) */ PoolLocked = 6001, /** Invalid fee value (exceeds max or invalid range) */ InvalidFee = 6002, /** Invalid fee split value (exceeds max or invalid range) */ InvalidFeeSplit = 6003, /** Invalid trade direction (must be 0 or 1) */ InvalidTradeDirection = 6004, /** Insufficient liquidity for operation */ InsufficientLiquidity = 6005, /** Output amount less than minimum (slippage exceeded) */ SlippageExceeded = 6006, /** Math operation overflowed */ MathOverflow = 6007, /** Mints not in canonical order */ InvalidMintOrder = 6008, /** Cannot create pool with identical tokens */ SameMintPair = 6009, /** Vault account invalid or mismatch */ InvalidVault = 6010, /** Position account invalid or mismatch */ InvalidPosition = 6011, /** Cannot close position with non-zero shares or fees */ PositionNotEmpty = 6012, /** Invalid route configuration */ InvalidRoute = 6013, /** Not supported in v0.1 */ NotSupportedInV0_1 = 6014, /** Oracle not initialized for this pool */ OracleNotInitialized = 6015, /** Zero shares out */ ZeroSharesOut = 6016, /** Hook rejected the operation */ HookRejected = 6017, /** Hook CPI call failed */ HookCpiFailed = 6018, /** Hook program account not provided */ HookProgramNotProvided = 6019, /** Hook program account is not executable */ HookProgramNotExecutable = 6020, /** Hook return data missing or wrong program id */ HookReturnDataMissing = 6021, /** Hook return data invalid length or could not deserialize */ HookReturnDataInvalid = 6022, /** Hook program not in allowlist */ HookNotAllowlisted = 6023, /** Pool has zero shares (no liquidity) */ TotalSharesZero = 6024, /** Amount cannot be zero */ AmountZero = 6025, /** Pool is paused by admin */ Paused = 6026, /** Internal invariant violation */ InvariantViolation = 6027, /** Invalid mint address */ InvalidMint = 6028, /** Invalid input parameter */ InvalidInput = 6029, /** Reentrancy detected */ Reentrancy = 6030, /** CPI calls into this program are forbidden */ CpiForbidden = 6031, /** Protocol fee position must be claimed via collect_protocol_fees */ UseCollectProtocolFees = 6032 } /** * Human-readable error messages */ declare const CPMM_ERROR_MESSAGES: Record; /** * Custom error class for CPMM program errors */ declare class CpmmError extends Error { readonly code: CpmmErrorCode; readonly logs?: string[] | undefined; constructor(code: CpmmErrorCode, logs?: string[] | undefined); /** * Get the error code name */ get codeName(): string; } /** * Parse error code from transaction logs */ declare function parseErrorFromLogs(logs: string[]): CpmmError | null; /** * Check if an error code is a CPMM error */ declare function isCpmmError(code: number): code is CpmmErrorCode; /** * Get error message from code */ declare function getErrorMessage(code: number): string; /** * 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 */ declare const CPMM_PROGRAM_ADDRESS: Address<"9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ">; /** * 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 */ declare const ADD_LIQUIDITY_DISCRIMINATOR: Uint8Array; declare function getAddLiquidityDiscriminatorBytes(): ReadonlyUint8Array; type AddLiquidityInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountOwner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountUser0 extends string ? WritableAccount : TAccountUser0, TAccountUser1 extends string ? WritableAccount : TAccountUser1, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountOracle extends string ? WritableAccount : TAccountOracle, ...TRemainingAccounts ]>; type AddLiquidityInstructionData = { discriminator: ReadonlyUint8Array; amount0Max: bigint; amount1Max: bigint; minSharesOut: bigint; updateOracle: boolean; }; type AddLiquidityInstructionDataArgs = { amount0Max: number | bigint; amount1Max: number | bigint; minSharesOut: number | bigint; updateOracle: boolean; }; declare function getAddLiquidityInstructionDataEncoder(): FixedSizeEncoder; declare function getAddLiquidityInstructionDataDecoder(): FixedSizeDecoder; declare function getAddLiquidityInstructionDataCodec(): FixedSizeCodec; type AddLiquidityAsyncInput = { config: Address; pool: Address; position: Address; protocolFeePosition: Address; owner: TransactionSigner; authority?: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; user0: Address; user1: Address; token0Program: Address; token1Program: Address; oracle?: Address; amount0Max: AddLiquidityInstructionDataArgs['amount0Max']; amount1Max: AddLiquidityInstructionDataArgs['amount1Max']; minSharesOut: AddLiquidityInstructionDataArgs['minSharesOut']; updateOracle: AddLiquidityInstructionDataArgs['updateOracle']; }; declare function getAddLiquidityInstructionAsync(input: AddLiquidityAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type AddLiquidityInput = { config: Address; pool: Address; position: Address; protocolFeePosition: Address; owner: TransactionSigner; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; user0: Address; user1: Address; token0Program: Address; token1Program: Address; oracle?: Address; amount0Max: AddLiquidityInstructionDataArgs['amount0Max']; amount1Max: AddLiquidityInstructionDataArgs['amount1Max']; minSharesOut: AddLiquidityInstructionDataArgs['minSharesOut']; updateOracle: AddLiquidityInstructionDataArgs['updateOracle']; }; declare function getAddLiquidityInstruction(input: AddLiquidityInput, config?: { programAddress?: TProgramAddress; }): AddLiquidityInstruction; type ParsedAddLiquidityInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; position: TAccountMetas[2]; protocolFeePosition: TAccountMetas[3]; owner: TAccountMetas[4]; authority: TAccountMetas[5]; vault0: TAccountMetas[6]; vault1: TAccountMetas[7]; token0Mint: TAccountMetas[8]; token1Mint: TAccountMetas[9]; user0: TAccountMetas[10]; user1: TAccountMetas[11]; token0Program: TAccountMetas[12]; token1Program: TAccountMetas[13]; oracle?: TAccountMetas[14] | undefined; }; data: AddLiquidityInstructionData; }; declare function parseAddLiquidityInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedAddLiquidityInstruction; /** * 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 */ declare const CLOSE_POSITION_DISCRIMINATOR: Uint8Array; declare function getClosePositionDiscriminatorBytes(): ReadonlyUint8Array; type ClosePositionInstruction = string, TAccountPosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountRentRecipient extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountOwner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner, TAccountRentRecipient extends string ? WritableAccount : TAccountRentRecipient, ...TRemainingAccounts ]>; type ClosePositionInstructionData = { discriminator: ReadonlyUint8Array; }; type ClosePositionInstructionDataArgs = {}; declare function getClosePositionInstructionDataEncoder(): FixedSizeEncoder; declare function getClosePositionInstructionDataDecoder(): FixedSizeDecoder; declare function getClosePositionInstructionDataCodec(): FixedSizeCodec; type ClosePositionInput = { pool: Address; position: Address; owner: TransactionSigner; rentRecipient: Address; }; declare function getClosePositionInstruction(input: ClosePositionInput, config?: { programAddress?: TProgramAddress; }): ClosePositionInstruction; type ParsedClosePositionInstruction = { programAddress: Address; accounts: { pool: TAccountMetas[0]; position: TAccountMetas[1]; owner: TAccountMetas[2]; rentRecipient: TAccountMetas[3]; }; data: ClosePositionInstructionData; }; declare function parseClosePositionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClosePositionInstruction; /** * 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 */ declare const COLLECT_FEES_DISCRIMINATOR: Uint8Array; declare function getCollectFeesDiscriminatorBytes(): ReadonlyUint8Array; type CollectFeesInstruction = string, TAccountPosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPool extends string ? WritableAccount : TAccountPool, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountOwner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountUser0 extends string ? WritableAccount : TAccountUser0, TAccountUser1 extends string ? WritableAccount : TAccountUser1, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, ...TRemainingAccounts ]>; type CollectFeesInstructionData = { discriminator: ReadonlyUint8Array; max0: bigint; max1: bigint; }; type CollectFeesInstructionDataArgs = { max0: number | bigint; max1: number | bigint; }; declare function getCollectFeesInstructionDataEncoder(): FixedSizeEncoder; declare function getCollectFeesInstructionDataDecoder(): FixedSizeDecoder; declare function getCollectFeesInstructionDataCodec(): FixedSizeCodec; type CollectFeesAsyncInput = { pool: Address; position: Address; owner: TransactionSigner; authority?: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; user0: Address; user1: Address; token0Program: Address; token1Program: Address; max0: CollectFeesInstructionDataArgs['max0']; max1: CollectFeesInstructionDataArgs['max1']; }; declare function getCollectFeesInstructionAsync(input: CollectFeesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type CollectFeesInput = { pool: Address; position: Address; owner: TransactionSigner; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; user0: Address; user1: Address; token0Program: Address; token1Program: Address; max0: CollectFeesInstructionDataArgs['max0']; max1: CollectFeesInstructionDataArgs['max1']; }; declare function getCollectFeesInstruction(input: CollectFeesInput, config?: { programAddress?: TProgramAddress; }): CollectFeesInstruction; type ParsedCollectFeesInstruction = { programAddress: Address; accounts: { pool: TAccountMetas[0]; position: TAccountMetas[1]; owner: TAccountMetas[2]; authority: TAccountMetas[3]; vault0: TAccountMetas[4]; vault1: TAccountMetas[5]; token0Mint: TAccountMetas[6]; token1Mint: TAccountMetas[7]; user0: TAccountMetas[8]; user1: TAccountMetas[9]; token0Program: TAccountMetas[10]; token1Program: TAccountMetas[11]; }; data: CollectFeesInstructionData; }; declare function parseCollectFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCollectFeesInstruction; /** * 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 */ declare const COLLECT_PROTOCOL_FEES_DISCRIMINATOR: Uint8Array; declare function getCollectProtocolFeesDiscriminatorBytes(): ReadonlyUint8Array; type CollectProtocolFeesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountRecipient0 extends string | AccountMeta = string, TAccountRecipient1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountRecipient0 extends string ? WritableAccount : TAccountRecipient0, TAccountRecipient1 extends string ? WritableAccount : TAccountRecipient1, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, ...TRemainingAccounts ]>; type CollectProtocolFeesInstructionData = { discriminator: ReadonlyUint8Array; max0: bigint; max1: bigint; }; type CollectProtocolFeesInstructionDataArgs = { max0: number | bigint; max1: number | bigint; }; declare function getCollectProtocolFeesInstructionDataEncoder(): FixedSizeEncoder; declare function getCollectProtocolFeesInstructionDataDecoder(): FixedSizeDecoder; declare function getCollectProtocolFeesInstructionDataCodec(): FixedSizeCodec; type CollectProtocolFeesAsyncInput = { config: Address; pool: Address; protocolFeePosition: Address; admin: TransactionSigner; authority?: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; recipient0: Address; recipient1: Address; token0Program: Address; token1Program: Address; max0: CollectProtocolFeesInstructionDataArgs['max0']; max1: CollectProtocolFeesInstructionDataArgs['max1']; }; declare function getCollectProtocolFeesInstructionAsync(input: CollectProtocolFeesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type CollectProtocolFeesInput = { config: Address; pool: Address; protocolFeePosition: Address; admin: TransactionSigner; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; recipient0: Address; recipient1: Address; token0Program: Address; token1Program: Address; max0: CollectProtocolFeesInstructionDataArgs['max0']; max1: CollectProtocolFeesInstructionDataArgs['max1']; }; declare function getCollectProtocolFeesInstruction(input: CollectProtocolFeesInput, config?: { programAddress?: TProgramAddress; }): CollectProtocolFeesInstruction; type ParsedCollectProtocolFeesInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; protocolFeePosition: TAccountMetas[2]; admin: TAccountMetas[3]; authority: TAccountMetas[4]; vault0: TAccountMetas[5]; vault1: TAccountMetas[6]; token0Mint: TAccountMetas[7]; token1Mint: TAccountMetas[8]; recipient0: TAccountMetas[9]; recipient1: TAccountMetas[10]; token0Program: TAccountMetas[11]; token1Program: TAccountMetas[12]; }; data: CollectProtocolFeesInstructionData; }; declare function parseCollectProtocolFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCollectProtocolFeesInstruction; /** * 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 */ declare const CREATE_POSITION_DISCRIMINATOR: Uint8Array; declare function getCreatePositionDiscriminatorBytes(): ReadonlyUint8Array; type CreatePositionInstruction = string, TAccountPosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountOwner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type CreatePositionInstructionData = { discriminator: ReadonlyUint8Array; positionId: bigint; }; type CreatePositionInstructionDataArgs = { positionId: number | bigint; }; declare function getCreatePositionInstructionDataEncoder(): FixedSizeEncoder; declare function getCreatePositionInstructionDataDecoder(): FixedSizeDecoder; declare function getCreatePositionInstructionDataCodec(): FixedSizeCodec; type CreatePositionAsyncInput = { pool: Address; position?: Address; owner: TransactionSigner; payer: TransactionSigner; systemProgram?: Address; positionId: CreatePositionInstructionDataArgs['positionId']; }; declare function getCreatePositionInstructionAsync(input: CreatePositionAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type CreatePositionInput = { pool: Address; position: Address; owner: TransactionSigner; payer: TransactionSigner; systemProgram?: Address; positionId: CreatePositionInstructionDataArgs['positionId']; }; declare function getCreatePositionInstruction(input: CreatePositionInput, config?: { programAddress?: TProgramAddress; }): CreatePositionInstruction; type ParsedCreatePositionInstruction = { programAddress: Address; accounts: { pool: TAccountMetas[0]; position: TAccountMetas[1]; owner: TAccountMetas[2]; payer: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: CreatePositionInstructionData; }; declare function parseCreatePositionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreatePositionInstruction; /** * 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 */ declare const INITIALIZE_CONFIG_DISCRIMINATOR$2: Uint8Array; declare function getInitializeConfigDiscriminatorBytes$2(): ReadonlyUint8Array; type InitializeConfigInstruction$2 = string, TAccountProgramData extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountProgramData extends string ? ReadonlyAccount : TAccountProgramData, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeConfigInstructionData$2 = { discriminator: ReadonlyUint8Array; admin: Address; maxSwapFeeBps: number; maxFeeSplitBps: number; protocolFeeEnabled: boolean; protocolFeeBps: number; hookAllowlist: Array
; }; type InitializeConfigInstructionDataArgs$2 = { admin: Address; maxSwapFeeBps: number; maxFeeSplitBps: number; protocolFeeEnabled: boolean; protocolFeeBps: number; hookAllowlist: Array
; }; declare function getInitializeConfigInstructionDataEncoder$2(): Encoder; declare function getInitializeConfigInstructionDataDecoder$2(): Decoder; declare function getInitializeConfigInstructionDataCodec$2(): Codec; type InitializeConfigAsyncInput$2 = { config?: Address; programData: Address; payer: TransactionSigner; systemProgram?: Address; admin: InitializeConfigInstructionDataArgs$2['admin']; maxSwapFeeBps: InitializeConfigInstructionDataArgs$2['maxSwapFeeBps']; maxFeeSplitBps: InitializeConfigInstructionDataArgs$2['maxFeeSplitBps']; protocolFeeEnabled: InitializeConfigInstructionDataArgs$2['protocolFeeEnabled']; protocolFeeBps: InitializeConfigInstructionDataArgs$2['protocolFeeBps']; hookAllowlist: InitializeConfigInstructionDataArgs$2['hookAllowlist']; }; declare function getInitializeConfigInstructionAsync$2(input: InitializeConfigAsyncInput$2, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeConfigInput$2 = { config: Address; programData: Address; payer: TransactionSigner; systemProgram?: Address; admin: InitializeConfigInstructionDataArgs$2['admin']; maxSwapFeeBps: InitializeConfigInstructionDataArgs$2['maxSwapFeeBps']; maxFeeSplitBps: InitializeConfigInstructionDataArgs$2['maxFeeSplitBps']; protocolFeeEnabled: InitializeConfigInstructionDataArgs$2['protocolFeeEnabled']; protocolFeeBps: InitializeConfigInstructionDataArgs$2['protocolFeeBps']; hookAllowlist: InitializeConfigInstructionDataArgs$2['hookAllowlist']; }; declare function getInitializeConfigInstruction$2(input: InitializeConfigInput$2, config?: { programAddress?: TProgramAddress; }): InitializeConfigInstruction$2; type ParsedInitializeConfigInstruction$2 = { programAddress: Address; accounts: { config: TAccountMetas[0]; programData: TAccountMetas[1]; payer: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: InitializeConfigInstructionData$2; }; declare function parseInitializeConfigInstruction$2(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeConfigInstruction$2; /** * 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 */ declare const INITIALIZE_ORACLE_DISCRIMINATOR$1: Uint8Array; declare function getInitializeOracleDiscriminatorBytes$1(): ReadonlyUint8Array; type InitializeOracleInstruction$1 = string, TAccountPool extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountOracle extends string ? WritableAccount : TAccountOracle, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeOracleInstructionData$1 = { discriminator: ReadonlyUint8Array; maxPriceChangeRatioQ64: bigint; observationIntervalSec: number; }; type InitializeOracleInstructionDataArgs$1 = { maxPriceChangeRatioQ64: number | bigint; observationIntervalSec: number; }; declare function getInitializeOracleInstructionDataEncoder$1(): FixedSizeEncoder; declare function getInitializeOracleInstructionDataDecoder$1(): FixedSizeDecoder; declare function getInitializeOracleInstructionDataCodec$1(): FixedSizeCodec; type InitializeOracleAsyncInput = { config: Address; pool: Address; oracle?: Address; admin: TransactionSigner; payer: TransactionSigner; systemProgram?: Address; maxPriceChangeRatioQ64: InitializeOracleInstructionDataArgs$1['maxPriceChangeRatioQ64']; observationIntervalSec: InitializeOracleInstructionDataArgs$1['observationIntervalSec']; }; declare function getInitializeOracleInstructionAsync(input: InitializeOracleAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeOracleInput$1 = { config: Address; pool: Address; oracle: Address; admin: TransactionSigner; payer: TransactionSigner; systemProgram?: Address; maxPriceChangeRatioQ64: InitializeOracleInstructionDataArgs$1['maxPriceChangeRatioQ64']; observationIntervalSec: InitializeOracleInstructionDataArgs$1['observationIntervalSec']; }; declare function getInitializeOracleInstruction$1(input: InitializeOracleInput$1, config?: { programAddress?: TProgramAddress; }): InitializeOracleInstruction$1; type ParsedInitializeOracleInstruction$1 = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; oracle: TAccountMetas[2]; admin: TAccountMetas[3]; payer: TAccountMetas[4]; systemProgram: TAccountMetas[5]; }; data: InitializeOracleInstructionData$1; }; declare function parseInitializeOracleInstruction$1(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeOracleInstruction$1; /** * 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 */ declare const INITIALIZE_POOL_DISCRIMINATOR: Uint8Array; declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array; type InitializePoolInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountProtocolFeeOwner extends string ? ReadonlyAccount : TAccountProtocolFeeOwner, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountMigrationAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountMigrationAuthority, ...TRemainingAccounts ]>; type InitializePoolInstructionData = { discriminator: ReadonlyUint8Array; mintA: Address; mintB: Address; initialSwapFeeBps: number; initialFeeSplitBps: number; liquidityMeasureTokenIndex: number; hookProgram: Address; hookFlags: number; }; type InitializePoolInstructionDataArgs = { mintA: Address; mintB: Address; initialSwapFeeBps: number; initialFeeSplitBps: number; liquidityMeasureTokenIndex: number; hookProgram: Address; hookFlags: number; }; declare function getInitializePoolInstructionDataEncoder(): FixedSizeEncoder; declare function getInitializePoolInstructionDataDecoder(): FixedSizeDecoder; declare function getInitializePoolInstructionDataCodec(): FixedSizeCodec; type InitializePoolAsyncInput = { config: Address; pool?: Address; protocolFeePosition?: Address; protocolFeeOwner?: Address; authority?: Address; vault0?: Address; vault1?: Address; token0Mint: Address; token1Mint: Address; payer: TransactionSigner; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; /** * Capability PDA owned by the trusted migrator program. Anchor enforces * `is_signer`; the handler verifies the pubkey matches the expected * derivation. Together these prove the CPI originated from the migrator. */ migrationAuthority: TransactionSigner; mintA: InitializePoolInstructionDataArgs['mintA']; mintB: InitializePoolInstructionDataArgs['mintB']; initialSwapFeeBps: InitializePoolInstructionDataArgs['initialSwapFeeBps']; initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps']; liquidityMeasureTokenIndex: InitializePoolInstructionDataArgs['liquidityMeasureTokenIndex']; hookProgram: InitializePoolInstructionDataArgs['hookProgram']; hookFlags: InitializePoolInstructionDataArgs['hookFlags']; }; declare function getInitializePoolInstructionAsync(input: InitializePoolAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializePoolInput = { config: Address; pool: Address; protocolFeePosition: Address; protocolFeeOwner: Address; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; payer: TransactionSigner; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; /** * Capability PDA owned by the trusted migrator program. Anchor enforces * `is_signer`; the handler verifies the pubkey matches the expected * derivation. Together these prove the CPI originated from the migrator. */ migrationAuthority: TransactionSigner; mintA: InitializePoolInstructionDataArgs['mintA']; mintB: InitializePoolInstructionDataArgs['mintB']; initialSwapFeeBps: InitializePoolInstructionDataArgs['initialSwapFeeBps']; initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps']; liquidityMeasureTokenIndex: InitializePoolInstructionDataArgs['liquidityMeasureTokenIndex']; hookProgram: InitializePoolInstructionDataArgs['hookProgram']; hookFlags: InitializePoolInstructionDataArgs['hookFlags']; }; declare function getInitializePoolInstruction(input: InitializePoolInput, config?: { programAddress?: TProgramAddress; }): InitializePoolInstruction; type ParsedInitializePoolInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; protocolFeePosition: TAccountMetas[2]; protocolFeeOwner: TAccountMetas[3]; authority: TAccountMetas[4]; vault0: TAccountMetas[5]; vault1: TAccountMetas[6]; token0Mint: TAccountMetas[7]; token1Mint: TAccountMetas[8]; payer: TAccountMetas[9]; token0Program: TAccountMetas[10]; token1Program: TAccountMetas[11]; systemProgram: TAccountMetas[12]; rent: TAccountMetas[13]; /** * Capability PDA owned by the trusted migrator program. Anchor enforces * `is_signer`; the handler verifies the pubkey matches the expected * derivation. Together these prove the CPI originated from the migrator. */ migrationAuthority: TAccountMetas[14]; }; data: InitializePoolInstructionData; }; declare function parseInitializePoolInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializePoolInstruction; /** * 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 */ declare const INITIALIZE_SPOT_POOL_DISCRIMINATOR: Uint8Array; declare function getInitializeSpotPoolDiscriminatorBytes(): ReadonlyUint8Array; type InitializeSpotPoolInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountProtocolFeeOwner extends string ? ReadonlyAccount : TAccountProtocolFeeOwner, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountMigrationAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountMigrationAuthority, ...TRemainingAccounts ]>; type InitializeSpotPoolInstructionData = { discriminator: ReadonlyUint8Array; mintA: Address; mintB: Address; swapFeeBps: number; }; type InitializeSpotPoolInstructionDataArgs = { mintA: Address; mintB: Address; swapFeeBps: number; }; declare function getInitializeSpotPoolInstructionDataEncoder(): FixedSizeEncoder; declare function getInitializeSpotPoolInstructionDataDecoder(): FixedSizeDecoder; declare function getInitializeSpotPoolInstructionDataCodec(): FixedSizeCodec; type InitializeSpotPoolAsyncInput = { config: Address; pool: Address; protocolFeePosition?: Address; protocolFeeOwner?: Address; authority?: Address; vault0?: Address; vault1?: Address; token0Mint: Address; token1Mint: Address; payer: TransactionSigner; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; migrationAuthority: TransactionSigner; mintA: InitializeSpotPoolInstructionDataArgs['mintA']; mintB: InitializeSpotPoolInstructionDataArgs['mintB']; swapFeeBps: InitializeSpotPoolInstructionDataArgs['swapFeeBps']; }; declare function getInitializeSpotPoolInstructionAsync(input: InitializeSpotPoolAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeSpotPoolInput = { config: Address; pool: Address; protocolFeePosition: Address; protocolFeeOwner: Address; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; payer: TransactionSigner; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; migrationAuthority: TransactionSigner; mintA: InitializeSpotPoolInstructionDataArgs['mintA']; mintB: InitializeSpotPoolInstructionDataArgs['mintB']; swapFeeBps: InitializeSpotPoolInstructionDataArgs['swapFeeBps']; }; declare function getInitializeSpotPoolInstruction(input: InitializeSpotPoolInput, config?: { programAddress?: TProgramAddress; }): InitializeSpotPoolInstruction; type ParsedInitializeSpotPoolInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; protocolFeePosition: TAccountMetas[2]; protocolFeeOwner: TAccountMetas[3]; authority: TAccountMetas[4]; vault0: TAccountMetas[5]; vault1: TAccountMetas[6]; token0Mint: TAccountMetas[7]; token1Mint: TAccountMetas[8]; payer: TAccountMetas[9]; token0Program: TAccountMetas[10]; token1Program: TAccountMetas[11]; systemProgram: TAccountMetas[12]; rent: TAccountMetas[13]; migrationAuthority: TAccountMetas[14]; }; data: InitializeSpotPoolInstructionData; }; declare function parseInitializeSpotPoolInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeSpotPoolInstruction; /** * 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 */ declare const INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR: Uint8Array; declare function getInitializeSpotPoolWithHookDiscriminatorBytes(): ReadonlyUint8Array; type InitializeSpotPoolWithHookInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta = string, TAccountHookProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountProtocolFeeOwner extends string ? ReadonlyAccount : TAccountProtocolFeeOwner, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountMigrationAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountMigrationAuthority, TAccountHookProgram extends string ? ReadonlyAccount : TAccountHookProgram, ...TRemainingAccounts ]>; type InitializeSpotPoolWithHookInstructionData = { discriminator: ReadonlyUint8Array; mintA: Address; mintB: Address; swapFeeBps: number; hookProgram: Address; hookFlags: number; }; type InitializeSpotPoolWithHookInstructionDataArgs = { mintA: Address; mintB: Address; swapFeeBps: number; hookProgram: Address; hookFlags: number; }; declare function getInitializeSpotPoolWithHookInstructionDataEncoder(): FixedSizeEncoder; declare function getInitializeSpotPoolWithHookInstructionDataDecoder(): FixedSizeDecoder; declare function getInitializeSpotPoolWithHookInstructionDataCodec(): FixedSizeCodec; type InitializeSpotPoolWithHookAsyncInput = { config: Address; pool: Address; protocolFeePosition?: Address; protocolFeeOwner?: Address; authority?: Address; vault0?: Address; vault1?: Address; token0Mint: Address; token1Mint: Address; payer: TransactionSigner; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; migrationAuthority: TransactionSigner; /** * `args.hook_program` and required to be executable, which rules out the * common way of bricking an immutable pool: a typo'd address that is not a * program at all. It does NOT prove the program implements the hook ABI — * an executable that never `set_return_data`s a 32-byte `HookResultV1` * still fails every before-swap CPI with `HookReturnDataMissing`. The * handler additionally rejects the pool's own token programs, which * `swap_exact_in`'s denylist would otherwise skip before they could be * bound as the hook program account. */ hookProgram: Address; mintA: InitializeSpotPoolWithHookInstructionDataArgs['mintA']; mintB: InitializeSpotPoolWithHookInstructionDataArgs['mintB']; swapFeeBps: InitializeSpotPoolWithHookInstructionDataArgs['swapFeeBps']; hookProgramArg: InitializeSpotPoolWithHookInstructionDataArgs['hookProgram']; hookFlags: InitializeSpotPoolWithHookInstructionDataArgs['hookFlags']; }; declare function getInitializeSpotPoolWithHookInstructionAsync(input: InitializeSpotPoolWithHookAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeSpotPoolWithHookInput = { config: Address; pool: Address; protocolFeePosition: Address; protocolFeeOwner: Address; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; payer: TransactionSigner; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; migrationAuthority: TransactionSigner; /** * `args.hook_program` and required to be executable, which rules out the * common way of bricking an immutable pool: a typo'd address that is not a * program at all. It does NOT prove the program implements the hook ABI — * an executable that never `set_return_data`s a 32-byte `HookResultV1` * still fails every before-swap CPI with `HookReturnDataMissing`. The * handler additionally rejects the pool's own token programs, which * `swap_exact_in`'s denylist would otherwise skip before they could be * bound as the hook program account. */ hookProgram: Address; mintA: InitializeSpotPoolWithHookInstructionDataArgs['mintA']; mintB: InitializeSpotPoolWithHookInstructionDataArgs['mintB']; swapFeeBps: InitializeSpotPoolWithHookInstructionDataArgs['swapFeeBps']; hookProgramArg: InitializeSpotPoolWithHookInstructionDataArgs['hookProgram']; hookFlags: InitializeSpotPoolWithHookInstructionDataArgs['hookFlags']; }; declare function getInitializeSpotPoolWithHookInstruction(input: InitializeSpotPoolWithHookInput, config?: { programAddress?: TProgramAddress; }): InitializeSpotPoolWithHookInstruction; type ParsedInitializeSpotPoolWithHookInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; protocolFeePosition: TAccountMetas[2]; protocolFeeOwner: TAccountMetas[3]; authority: TAccountMetas[4]; vault0: TAccountMetas[5]; vault1: TAccountMetas[6]; token0Mint: TAccountMetas[7]; token1Mint: TAccountMetas[8]; payer: TAccountMetas[9]; token0Program: TAccountMetas[10]; token1Program: TAccountMetas[11]; systemProgram: TAccountMetas[12]; rent: TAccountMetas[13]; migrationAuthority: TAccountMetas[14]; /** * `args.hook_program` and required to be executable, which rules out the * common way of bricking an immutable pool: a typo'd address that is not a * program at all. It does NOT prove the program implements the hook ABI — * an executable that never `set_return_data`s a 32-byte `HookResultV1` * still fails every before-swap CPI with `HookReturnDataMissing`. The * handler additionally rejects the pool's own token programs, which * `swap_exact_in`'s denylist would otherwise skip before they could be * bound as the hook program account. */ hookProgram: TAccountMetas[15]; }; data: InitializeSpotPoolWithHookInstructionData; }; declare function parseInitializeSpotPoolWithHookInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeSpotPoolWithHookInstruction; /** * 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 */ declare const ORACLE_CONSULT_DISCRIMINATOR: Uint8Array; declare function getOracleConsultDiscriminatorBytes(): ReadonlyUint8Array; type OracleConsultInstruction = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountOracle extends string ? ReadonlyAccount : TAccountOracle, ...TRemainingAccounts ]>; type OracleConsultInstructionData = { discriminator: ReadonlyUint8Array; windowSeconds: number; }; type OracleConsultInstructionDataArgs = { windowSeconds: number; }; declare function getOracleConsultInstructionDataEncoder(): FixedSizeEncoder; declare function getOracleConsultInstructionDataDecoder(): FixedSizeDecoder; declare function getOracleConsultInstructionDataCodec(): FixedSizeCodec; type OracleConsultAsyncInput = { pool: Address; oracle?: Address; windowSeconds: OracleConsultInstructionDataArgs['windowSeconds']; }; declare function getOracleConsultInstructionAsync(input: OracleConsultAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type OracleConsultInput = { pool: Address; oracle: Address; windowSeconds: OracleConsultInstructionDataArgs['windowSeconds']; }; declare function getOracleConsultInstruction(input: OracleConsultInput, config?: { programAddress?: TProgramAddress; }): OracleConsultInstruction; type ParsedOracleConsultInstruction = { programAddress: Address; accounts: { pool: TAccountMetas[0]; oracle: TAccountMetas[1]; }; data: OracleConsultInstructionData; }; declare function parseOracleConsultInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedOracleConsultInstruction; /** * 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 */ declare const ORACLE_UPDATE_DISCRIMINATOR: Uint8Array; declare function getOracleUpdateDiscriminatorBytes(): ReadonlyUint8Array; type OracleUpdateInstruction = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountOracle extends string ? WritableAccount : TAccountOracle, ...TRemainingAccounts ]>; type OracleUpdateInstructionData = { discriminator: ReadonlyUint8Array; }; type OracleUpdateInstructionDataArgs = {}; declare function getOracleUpdateInstructionDataEncoder(): FixedSizeEncoder; declare function getOracleUpdateInstructionDataDecoder(): FixedSizeDecoder; declare function getOracleUpdateInstructionDataCodec(): FixedSizeCodec; type OracleUpdateAsyncInput = { pool: Address; oracle?: Address; }; declare function getOracleUpdateInstructionAsync(input: OracleUpdateAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type OracleUpdateInput = { pool: Address; oracle: Address; }; declare function getOracleUpdateInstruction(input: OracleUpdateInput, config?: { programAddress?: TProgramAddress; }): OracleUpdateInstruction; type ParsedOracleUpdateInstruction = { programAddress: Address; accounts: { pool: TAccountMetas[0]; oracle: TAccountMetas[1]; }; data: OracleUpdateInstructionData; }; declare function parseOracleUpdateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedOracleUpdateInstruction; /** * 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 */ declare const PAUSE_DISCRIMINATOR: Uint8Array; declare function getPauseDiscriminatorBytes(): ReadonlyUint8Array; type PauseInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type PauseInstructionData = { discriminator: ReadonlyUint8Array; }; type PauseInstructionDataArgs = {}; declare function getPauseInstructionDataEncoder(): FixedSizeEncoder; declare function getPauseInstructionDataDecoder(): FixedSizeDecoder; declare function getPauseInstructionDataCodec(): FixedSizeCodec; type PauseInput = { config: Address; admin: TransactionSigner; }; declare function getPauseInstruction(input: PauseInput, config?: { programAddress?: TProgramAddress; }): PauseInstruction; type ParsedPauseInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; admin: TAccountMetas[1]; }; data: PauseInstructionData; }; declare function parsePauseInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPauseInstruction; /** * 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 */ declare const PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: Uint8Array; declare function getPreviewSwapExactInDiscriminatorBytes(): ReadonlyUint8Array; type PreviewSwapExactInInstruction = string, TAccountPool extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? ReadonlyAccount : TAccountPool, ...TRemainingAccounts ]>; type PreviewSwapExactInInstructionData = { discriminator: ReadonlyUint8Array; amountIn: bigint; tradeDirection: number; }; type PreviewSwapExactInInstructionDataArgs = { amountIn: number | bigint; tradeDirection: number; }; declare function getPreviewSwapExactInInstructionDataEncoder(): FixedSizeEncoder; declare function getPreviewSwapExactInInstructionDataDecoder(): FixedSizeDecoder; declare function getPreviewSwapExactInInstructionDataCodec(): FixedSizeCodec; type PreviewSwapExactInInput = { config: Address; pool: Address; amountIn: PreviewSwapExactInInstructionDataArgs['amountIn']; tradeDirection: PreviewSwapExactInInstructionDataArgs['tradeDirection']; }; declare function getPreviewSwapExactInInstruction(input: PreviewSwapExactInInput, config?: { programAddress?: TProgramAddress; }): PreviewSwapExactInInstruction; type ParsedPreviewSwapExactInInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; }; data: PreviewSwapExactInInstructionData; }; declare function parsePreviewSwapExactInInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPreviewSwapExactInInstruction; /** * 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 */ declare const REDEEM_PROTOCOL_SHARES_DISCRIMINATOR: Uint8Array; declare function getRedeemProtocolSharesDiscriminatorBytes(): ReadonlyUint8Array; type RedeemProtocolSharesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountRecipient0 extends string | AccountMeta = string, TAccountRecipient1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountRecipient0 extends string ? WritableAccount : TAccountRecipient0, TAccountRecipient1 extends string ? WritableAccount : TAccountRecipient1, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, ...TRemainingAccounts ]>; type RedeemProtocolSharesInstructionData = { discriminator: ReadonlyUint8Array; sharesIn: bigint; minAmount0Out: bigint; minAmount1Out: bigint; }; type RedeemProtocolSharesInstructionDataArgs = { sharesIn: number | bigint; minAmount0Out: number | bigint; minAmount1Out: number | bigint; }; declare function getRedeemProtocolSharesInstructionDataEncoder(): FixedSizeEncoder; declare function getRedeemProtocolSharesInstructionDataDecoder(): FixedSizeDecoder; declare function getRedeemProtocolSharesInstructionDataCodec(): FixedSizeCodec; type RedeemProtocolSharesAsyncInput = { config: Address; pool: Address; protocolFeePosition: Address; admin: TransactionSigner; authority?: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; recipient0: Address; recipient1: Address; token0Program: Address; token1Program: Address; sharesIn: RedeemProtocolSharesInstructionDataArgs['sharesIn']; minAmount0Out: RedeemProtocolSharesInstructionDataArgs['minAmount0Out']; minAmount1Out: RedeemProtocolSharesInstructionDataArgs['minAmount1Out']; }; declare function getRedeemProtocolSharesInstructionAsync(input: RedeemProtocolSharesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type RedeemProtocolSharesInput = { config: Address; pool: Address; protocolFeePosition: Address; admin: TransactionSigner; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; recipient0: Address; recipient1: Address; token0Program: Address; token1Program: Address; sharesIn: RedeemProtocolSharesInstructionDataArgs['sharesIn']; minAmount0Out: RedeemProtocolSharesInstructionDataArgs['minAmount0Out']; minAmount1Out: RedeemProtocolSharesInstructionDataArgs['minAmount1Out']; }; declare function getRedeemProtocolSharesInstruction(input: RedeemProtocolSharesInput, config?: { programAddress?: TProgramAddress; }): RedeemProtocolSharesInstruction; type ParsedRedeemProtocolSharesInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; protocolFeePosition: TAccountMetas[2]; admin: TAccountMetas[3]; authority: TAccountMetas[4]; vault0: TAccountMetas[5]; vault1: TAccountMetas[6]; token0Mint: TAccountMetas[7]; token1Mint: TAccountMetas[8]; recipient0: TAccountMetas[9]; recipient1: TAccountMetas[10]; token0Program: TAccountMetas[11]; token1Program: TAccountMetas[12]; }; data: RedeemProtocolSharesInstructionData; }; declare function parseRedeemProtocolSharesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRedeemProtocolSharesInstruction; /** * 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 */ declare const REMOVE_LIQUIDITY_DISCRIMINATOR: Uint8Array; declare function getRemoveLiquidityDiscriminatorBytes(): ReadonlyUint8Array; type RemoveLiquidityInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountOwner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountUser0 extends string ? WritableAccount : TAccountUser0, TAccountUser1 extends string ? WritableAccount : TAccountUser1, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountOracle extends string ? WritableAccount : TAccountOracle, ...TRemainingAccounts ]>; type RemoveLiquidityInstructionData = { discriminator: ReadonlyUint8Array; sharesIn: bigint; minAmount0Out: bigint; minAmount1Out: bigint; updateOracle: boolean; }; type RemoveLiquidityInstructionDataArgs = { sharesIn: number | bigint; minAmount0Out: number | bigint; minAmount1Out: number | bigint; updateOracle: boolean; }; declare function getRemoveLiquidityInstructionDataEncoder(): FixedSizeEncoder; declare function getRemoveLiquidityInstructionDataDecoder(): FixedSizeDecoder; declare function getRemoveLiquidityInstructionDataCodec(): FixedSizeCodec; type RemoveLiquidityAsyncInput = { config: Address; pool: Address; position: Address; protocolFeePosition: Address; owner: TransactionSigner; authority?: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; user0: Address; user1: Address; token0Program: Address; token1Program: Address; oracle?: Address; sharesIn: RemoveLiquidityInstructionDataArgs['sharesIn']; minAmount0Out: RemoveLiquidityInstructionDataArgs['minAmount0Out']; minAmount1Out: RemoveLiquidityInstructionDataArgs['minAmount1Out']; updateOracle: RemoveLiquidityInstructionDataArgs['updateOracle']; }; declare function getRemoveLiquidityInstructionAsync(input: RemoveLiquidityAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type RemoveLiquidityInput = { config: Address; pool: Address; position: Address; protocolFeePosition: Address; owner: TransactionSigner; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; user0: Address; user1: Address; token0Program: Address; token1Program: Address; oracle?: Address; sharesIn: RemoveLiquidityInstructionDataArgs['sharesIn']; minAmount0Out: RemoveLiquidityInstructionDataArgs['minAmount0Out']; minAmount1Out: RemoveLiquidityInstructionDataArgs['minAmount1Out']; updateOracle: RemoveLiquidityInstructionDataArgs['updateOracle']; }; declare function getRemoveLiquidityInstruction(input: RemoveLiquidityInput, config?: { programAddress?: TProgramAddress; }): RemoveLiquidityInstruction; type ParsedRemoveLiquidityInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; position: TAccountMetas[2]; protocolFeePosition: TAccountMetas[3]; owner: TAccountMetas[4]; authority: TAccountMetas[5]; vault0: TAccountMetas[6]; vault1: TAccountMetas[7]; token0Mint: TAccountMetas[8]; token1Mint: TAccountMetas[9]; user0: TAccountMetas[10]; user1: TAccountMetas[11]; token0Program: TAccountMetas[12]; token1Program: TAccountMetas[13]; oracle?: TAccountMetas[14] | undefined; }; data: RemoveLiquidityInstructionData; }; declare function parseRemoveLiquidityInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRemoveLiquidityInstruction; /** * 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 */ declare const SET_FEES_DISCRIMINATOR: Uint8Array; declare function getSetFeesDiscriminatorBytes(): ReadonlyUint8Array; type SetFeesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type SetFeesInstructionData = { discriminator: ReadonlyUint8Array; swapFeeBps: number; feeSplitBps: number; }; type SetFeesInstructionDataArgs = { swapFeeBps: number; feeSplitBps: number; }; declare function getSetFeesInstructionDataEncoder(): FixedSizeEncoder; declare function getSetFeesInstructionDataDecoder(): FixedSizeDecoder; declare function getSetFeesInstructionDataCodec(): FixedSizeCodec; type SetFeesInput = { config: Address; pool: Address; admin: TransactionSigner; swapFeeBps: SetFeesInstructionDataArgs['swapFeeBps']; feeSplitBps: SetFeesInstructionDataArgs['feeSplitBps']; }; declare function getSetFeesInstruction(input: SetFeesInput, config?: { programAddress?: TProgramAddress; }): SetFeesInstruction; type ParsedSetFeesInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; admin: TAccountMetas[2]; }; data: SetFeesInstructionData; }; declare function parseSetFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetFeesInstruction; /** * 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 */ declare const SET_HOOK_DISCRIMINATOR: Uint8Array; declare function getSetHookDiscriminatorBytes(): ReadonlyUint8Array; type SetHookInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type SetHookInstructionData = { discriminator: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; }; type SetHookInstructionDataArgs = { hookProgram: Address; hookFlags: number; }; declare function getSetHookInstructionDataEncoder(): FixedSizeEncoder; declare function getSetHookInstructionDataDecoder(): FixedSizeDecoder; declare function getSetHookInstructionDataCodec(): FixedSizeCodec; type SetHookInput = { config: Address; pool: Address; admin: TransactionSigner; hookProgram: SetHookInstructionDataArgs['hookProgram']; hookFlags: SetHookInstructionDataArgs['hookFlags']; }; declare function getSetHookInstruction(input: SetHookInput, config?: { programAddress?: TProgramAddress; }): SetHookInstruction; type ParsedSetHookInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; admin: TAccountMetas[2]; }; data: SetHookInstructionData; }; declare function parseSetHookInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetHookInstruction; /** * 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 */ declare const SWAP_EXACT_IN_DISCRIMINATOR: Uint8Array; declare function getSwapExactInDiscriminatorBytes(): ReadonlyUint8Array; type SwapExactInInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVaultIn extends string | AccountMeta = string, TAccountVaultOut extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUserIn extends string | AccountMeta = string, TAccountUserOut extends string | AccountMeta = string, TAccountTrader extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVaultIn extends string ? WritableAccount : TAccountVaultIn, TAccountVaultOut extends string ? WritableAccount : TAccountVaultOut, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountUserIn extends string ? WritableAccount : TAccountUserIn, TAccountUserOut extends string ? WritableAccount : TAccountUserOut, TAccountTrader extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountTrader, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountOracle extends string ? WritableAccount : TAccountOracle, ...TRemainingAccounts ]>; type SwapExactInInstructionData = { discriminator: ReadonlyUint8Array; amountIn: bigint; minAmountOut: bigint; tradeDirection: number; updateOracle: boolean; }; type SwapExactInInstructionDataArgs = { amountIn: number | bigint; minAmountOut: number | bigint; tradeDirection: number; updateOracle: boolean; }; declare function getSwapExactInInstructionDataEncoder(): FixedSizeEncoder; declare function getSwapExactInInstructionDataDecoder(): FixedSizeDecoder; declare function getSwapExactInInstructionDataCodec(): FixedSizeCodec; type SwapExactInAsyncInput = { config: Address; pool: Address; authority?: Address; vaultIn: Address; vaultOut: Address; token0Mint: Address; token1Mint: Address; userIn: Address; userOut: Address; trader: TransactionSigner; token0Program: Address; token1Program: Address; oracle?: Address; amountIn: SwapExactInInstructionDataArgs['amountIn']; minAmountOut: SwapExactInInstructionDataArgs['minAmountOut']; tradeDirection: SwapExactInInstructionDataArgs['tradeDirection']; updateOracle: SwapExactInInstructionDataArgs['updateOracle']; }; declare function getSwapExactInInstructionAsync(input: SwapExactInAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type SwapExactInInput$1 = { config: Address; pool: Address; authority: Address; vaultIn: Address; vaultOut: Address; token0Mint: Address; token1Mint: Address; userIn: Address; userOut: Address; trader: TransactionSigner; token0Program: Address; token1Program: Address; oracle?: Address; amountIn: SwapExactInInstructionDataArgs['amountIn']; minAmountOut: SwapExactInInstructionDataArgs['minAmountOut']; tradeDirection: SwapExactInInstructionDataArgs['tradeDirection']; updateOracle: SwapExactInInstructionDataArgs['updateOracle']; }; declare function getSwapExactInInstruction(input: SwapExactInInput$1, config?: { programAddress?: TProgramAddress; }): SwapExactInInstruction; type ParsedSwapExactInInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; authority: TAccountMetas[2]; vaultIn: TAccountMetas[3]; vaultOut: TAccountMetas[4]; token0Mint: TAccountMetas[5]; token1Mint: TAccountMetas[6]; userIn: TAccountMetas[7]; userOut: TAccountMetas[8]; trader: TAccountMetas[9]; token0Program: TAccountMetas[10]; token1Program: TAccountMetas[11]; oracle?: TAccountMetas[12] | undefined; }; data: SwapExactInInstructionData; }; declare function parseSwapExactInInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSwapExactInInstruction; /** * 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 */ declare const TRANSFER_ADMIN_DISCRIMINATOR: Uint8Array; declare function getTransferAdminDiscriminatorBytes(): ReadonlyUint8Array; type TransferAdminInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type TransferAdminInstructionData = { discriminator: ReadonlyUint8Array; newAdmin: Address; }; type TransferAdminInstructionDataArgs = { newAdmin: Address; }; declare function getTransferAdminInstructionDataEncoder(): FixedSizeEncoder; declare function getTransferAdminInstructionDataDecoder(): FixedSizeDecoder; declare function getTransferAdminInstructionDataCodec(): FixedSizeCodec; type TransferAdminInput = { config: Address; admin: TransactionSigner; newAdmin: TransferAdminInstructionDataArgs['newAdmin']; }; declare function getTransferAdminInstruction(input: TransferAdminInput, config?: { programAddress?: TProgramAddress; }): TransferAdminInstruction; type ParsedTransferAdminInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; admin: TAccountMetas[1]; }; data: TransferAdminInstructionData; }; declare function parseTransferAdminInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedTransferAdminInstruction; /** * 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 */ declare const UNPAUSE_DISCRIMINATOR: Uint8Array; declare function getUnpauseDiscriminatorBytes(): ReadonlyUint8Array; type UnpauseInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type UnpauseInstructionData = { discriminator: ReadonlyUint8Array; }; type UnpauseInstructionDataArgs = {}; declare function getUnpauseInstructionDataEncoder(): FixedSizeEncoder; declare function getUnpauseInstructionDataDecoder(): FixedSizeDecoder; declare function getUnpauseInstructionDataCodec(): FixedSizeCodec; type UnpauseInput = { config: Address; admin: TransactionSigner; }; declare function getUnpauseInstruction(input: UnpauseInput, config?: { programAddress?: TProgramAddress; }): UnpauseInstruction; type ParsedUnpauseInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; admin: TAccountMetas[1]; }; data: UnpauseInstructionData; }; declare function parseUnpauseInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUnpauseInstruction; /** * 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 */ declare const UPDATE_CONFIG_DISCRIMINATOR: Uint8Array; declare function getUpdateConfigDiscriminatorBytes(): ReadonlyUint8Array; type UpdateConfigInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type UpdateConfigInstructionData = { discriminator: ReadonlyUint8Array; maxSwapFeeBps: number; maxFeeSplitBps: number; protocolFeeEnabled: boolean; protocolFeeBps: number; hookAllowlist: Array
; }; type UpdateConfigInstructionDataArgs = { maxSwapFeeBps: number; maxFeeSplitBps: number; protocolFeeEnabled: boolean; protocolFeeBps: number; hookAllowlist: Array
; }; declare function getUpdateConfigInstructionDataEncoder(): Encoder; declare function getUpdateConfigInstructionDataDecoder(): Decoder; declare function getUpdateConfigInstructionDataCodec(): Codec; type UpdateConfigInput = { config: Address; admin: TransactionSigner; maxSwapFeeBps: UpdateConfigInstructionDataArgs['maxSwapFeeBps']; maxFeeSplitBps: UpdateConfigInstructionDataArgs['maxFeeSplitBps']; protocolFeeEnabled: UpdateConfigInstructionDataArgs['protocolFeeEnabled']; protocolFeeBps: UpdateConfigInstructionDataArgs['protocolFeeBps']; hookAllowlist: UpdateConfigInstructionDataArgs['hookAllowlist']; }; declare function getUpdateConfigInstruction(input: UpdateConfigInput, config?: { programAddress?: TProgramAddress; }): UpdateConfigInstruction; type ParsedUpdateConfigInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; admin: TAccountMetas[1]; }; data: UpdateConfigInstructionData; }; declare function parseUpdateConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateConfigInstruction; /** * 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 */ declare const WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: Uint8Array; declare function getWithdrawVaultExcessDiscriminatorBytes(): ReadonlyUint8Array; type WithdrawVaultExcessInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountAdminAta0 extends string | AccountMeta = string, TAccountAdminAta1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, TAccountVault0 extends string ? WritableAccount : TAccountVault0, TAccountVault1 extends string ? WritableAccount : TAccountVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountAdminAta0 extends string ? WritableAccount : TAccountAdminAta0, TAccountAdminAta1 extends string ? WritableAccount : TAccountAdminAta1, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, ...TRemainingAccounts ]>; type WithdrawVaultExcessInstructionData = { discriminator: ReadonlyUint8Array; }; type WithdrawVaultExcessInstructionDataArgs = {}; declare function getWithdrawVaultExcessInstructionDataEncoder(): FixedSizeEncoder; declare function getWithdrawVaultExcessInstructionDataDecoder(): FixedSizeDecoder; declare function getWithdrawVaultExcessInstructionDataCodec(): FixedSizeCodec; type WithdrawVaultExcessAsyncInput = { config: Address; pool: Address; admin: TransactionSigner; authority?: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; adminAta0?: Address; adminAta1?: Address; token0Program: Address; token1Program: Address; }; declare function getWithdrawVaultExcessInstructionAsync(input: WithdrawVaultExcessAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type WithdrawVaultExcessInput = { config: Address; pool: Address; admin: TransactionSigner; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; adminAta0: Address; adminAta1: Address; token0Program: Address; token1Program: Address; }; declare function getWithdrawVaultExcessInstruction(input: WithdrawVaultExcessInput, config?: { programAddress?: TProgramAddress; }): WithdrawVaultExcessInstruction; type ParsedWithdrawVaultExcessInstruction = { programAddress: Address; accounts: { config: TAccountMetas[0]; pool: TAccountMetas[1]; admin: TAccountMetas[2]; authority: TAccountMetas[3]; vault0: TAccountMetas[4]; vault1: TAccountMetas[5]; token0Mint: TAccountMetas[6]; token1Mint: TAccountMetas[7]; adminAta0: TAccountMetas[8]; adminAta1: TAccountMetas[9]; token0Program: TAccountMetas[10]; token1Program: TAccountMetas[11]; }; data: WithdrawVaultExcessInstructionData; }; declare function parseWithdrawVaultExcessInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWithdrawVaultExcessInstruction; /** * Helper to create swap instruction with simplified parameters */ declare function createSwapInstruction(params: { config: Address; pool: Address; authority: Address; vault0: Address; vault1: Address; token0Mint: Address; token1Mint: Address; userToken0: Address; userToken1: Address; user: Address | TransactionSigner; amountIn: bigint; minAmountOut: bigint; tradeDirection: TradeDirection; oracle?: Address; remainingAccounts?: RemainingAccount[]; updateOracle?: boolean; token0Program?: Address; token1Program?: Address; tokenProgram?: Address; programId?: Address; }): Instruction; declare const MAX_FEE_AMOUNT: bigint; /** * Pool fetching and utility functions for the CPMM SDK */ /** * Configuration for fetching pools */ interface FetchPoolsConfig { /** Program ID (defaults to CPMM program) */ programId?: Address; /** Commitment level */ commitment?: 'processed' | 'confirmed' | 'finalized'; } /** * Pool with its address */ interface PoolWithAddress { address: Address; account: Pool$1; } /** * Fetch and decode a single pool account * * @param rpc - Solana RPC client * @param address - Pool account address * @param config - Optional configuration * @returns Decoded pool data or null if not found * * @example * ```ts * const pool = await fetchPool(rpc, poolAddress); * if (pool) { * console.log(`Pool reserves: ${pool.reserve0} / ${pool.reserve1}`); * } * ``` */ declare function fetchPool$1(rpc: Rpc, address: Address, config?: FetchPoolsConfig): Promise; /** * Fetch all pool accounts for the CPMM program * * Uses getProgramAccounts with a discriminator filter for efficiency. * * @param rpc - Solana RPC client * @param config - Optional configuration * @returns Array of pools with their addresses * * @example * ```ts * const pools = await fetchAllPools(rpc); * console.log(`Found ${pools.length} pools`); * for (const { address, account } of pools) { * console.log(`Pool ${address}: ${account.token0Mint} / ${account.token1Mint}`); * } * ``` */ declare function fetchAllPools(rpc: GetProgramAccountsRpc, config?: FetchPoolsConfig): Promise; /** * Find a pool by its token pair mints * * Derives the pool PDA from the mints (automatically sorted) and fetches it. * * @param rpc - Solana RPC client * @param mint0 - First token mint * @param mint1 - Second token mint * @param config - Optional configuration * @returns Pool data with address, or null if not found * * @example * ```ts * const result = await getPoolByMints(rpc, usdcMint, wsolMint); * if (result) { * console.log(`Found pool at ${result.address}`); * console.log(`Swap fee: ${result.account.swapFeeBps} bps`); * } * ``` */ declare function getPoolByMints(rpc: Rpc, mint0: Address, mint1: Address, config?: FetchPoolsConfig): Promise; /** * Get multiple pools by their addresses in a single batch request * * @param rpc - Solana RPC client * @param addresses - Array of pool addresses to fetch * @param config - Optional configuration * @returns Map of address to pool (missing pools are not included) * * @example * ```ts * const poolMap = await fetchPoolsBatch(rpc, [pool1, pool2, pool3]); * for (const [addr, pool] of poolMap) { * console.log(`Pool ${addr}: TVL = ${pool.reserve0 + pool.reserve1}`); * } * ``` */ declare function fetchPoolsBatch(rpc: Rpc, addresses: Address[], config?: FetchPoolsConfig): Promise>; /** * Check if a pool exists for a token pair * * @param rpc - Solana RPC client * @param mint0 - First token mint * @param mint1 - Second token mint * @param config - Optional configuration * @returns true if pool exists, false otherwise */ declare function poolExists(rpc: Rpc, mint0: Address, mint1: Address, config?: FetchPoolsConfig): Promise; /** * Get the pool address for a token pair without fetching * * @param mint0 - First token mint * @param mint1 - Second token mint * @param programId - Program ID (defaults to CPMM program) * @returns Pool address and sorted mints */ declare function getPoolAddressFromMints(mint0: Address, mint1: Address, programId?: Address): Promise<{ poolAddress: Address; token0: Address; token1: Address; }>; /** * Filter pools by a specific token mint * * @param pools - Array of pools to filter * @param mint - Token mint to filter by * @returns Pools that contain the specified mint */ declare function filterPoolsByMint(pools: PoolWithAddress[], mint: Address): PoolWithAddress[]; /** * Sort pools by total reserves (proxy for TVL) * * @param pools - Array of pools to sort * @param descending - Sort descending (highest first) if true * @returns Sorted array (does not mutate input) */ declare function sortPoolsByReserves(pools: PoolWithAddress[], descending?: boolean): PoolWithAddress[]; /** * Config fetching and utilities for the CPMM SDK */ /** * Fetch and decode the AmmConfig account * * @param rpc - Solana RPC client * @param programId - Program ID (defaults to CPMM program) * @param commitment - Optional commitment level * @returns Decoded config data or null if not found */ declare function fetchConfig(rpc: Rpc, programId?: Address, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise; /** * Fetch config with its PDA address */ declare function fetchConfigWithAddress(rpc: Rpc, programId?: Address, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise<{ address: Address; account: AmmConfig$1; } | null>; declare const index$9_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS; declare const index$9_ACCOUNT_VERSION: typeof ACCOUNT_VERSION; declare const index$9_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR; type index$9_AccountMetaRole = AccountMetaRole; declare const index$9_AddLiquidityArgs: typeof AddLiquidityArgs; type index$9_AddLiquidityAsyncInput = AddLiquidityAsyncInput; declare const index$9_AddLiquidityEvent: typeof AddLiquidityEvent; type index$9_AddLiquidityInput = AddLiquidityInput; type index$9_AddLiquidityInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = AddLiquidityInstruction; type index$9_AddLiquidityInstructionData = AddLiquidityInstructionData; type index$9_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs; declare const index$9_AddLiquidityQuote: typeof AddLiquidityQuote; type index$9_AddressOrTransactionSigner = AddressOrTransactionSigner; declare const index$9_AdminTransferredEvent: typeof AdminTransferredEvent; declare const index$9_BPS_DENOM: typeof BPS_DENOM; declare const index$9_CLOSE_POSITION_DISCRIMINATOR: typeof CLOSE_POSITION_DISCRIMINATOR; declare const index$9_COLLECT_FEES_DISCRIMINATOR: typeof COLLECT_FEES_DISCRIMINATOR; declare const index$9_COLLECT_PROTOCOL_FEES_DISCRIMINATOR: typeof COLLECT_PROTOCOL_FEES_DISCRIMINATOR; declare const index$9_CPMM_ERROR_MESSAGES: typeof CPMM_ERROR_MESSAGES; declare const index$9_CPMM_PROGRAM_ID: typeof CPMM_PROGRAM_ID; declare const index$9_CREATE_POSITION_DISCRIMINATOR: typeof CREATE_POSITION_DISCRIMINATOR; type index$9_ClosePositionInput = ClosePositionInput; type index$9_ClosePositionInstruction = string, TAccountPosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountRentRecipient extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = ClosePositionInstruction; type index$9_ClosePositionInstructionData = ClosePositionInstructionData; type index$9_ClosePositionInstructionDataArgs = ClosePositionInstructionDataArgs; declare const index$9_CollectFeesArgs: typeof CollectFeesArgs; type index$9_CollectFeesAsyncInput = CollectFeesAsyncInput; declare const index$9_CollectFeesEvent: typeof CollectFeesEvent; type index$9_CollectFeesInput = CollectFeesInput; type index$9_CollectFeesInstruction = string, TAccountPosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = CollectFeesInstruction; type index$9_CollectFeesInstructionData = CollectFeesInstructionData; type index$9_CollectFeesInstructionDataArgs = CollectFeesInstructionDataArgs; declare const index$9_CollectProtocolFeesArgs: typeof CollectProtocolFeesArgs; type index$9_CollectProtocolFeesAsyncInput = CollectProtocolFeesAsyncInput; declare const index$9_CollectProtocolFeesEvent: typeof CollectProtocolFeesEvent; type index$9_CollectProtocolFeesInput = CollectProtocolFeesInput; type index$9_CollectProtocolFeesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountRecipient0 extends string | AccountMeta = string, TAccountRecipient1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = CollectProtocolFeesInstruction; type index$9_CollectProtocolFeesInstructionData = CollectProtocolFeesInstructionData; type index$9_CollectProtocolFeesInstructionDataArgs = CollectProtocolFeesInstructionDataArgs; type index$9_CpmmError = CpmmError; declare const index$9_CpmmError: typeof CpmmError; type index$9_CpmmErrorCode = CpmmErrorCode; declare const index$9_CpmmErrorCode: typeof CpmmErrorCode; declare const index$9_CreatePositionArgs: typeof CreatePositionArgs; type index$9_CreatePositionAsyncInput = CreatePositionAsyncInput; type index$9_CreatePositionInput = CreatePositionInput; type index$9_CreatePositionInstruction = string, TAccountPosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = CreatePositionInstruction; type index$9_CreatePositionInstructionData = CreatePositionInstructionData; type index$9_CreatePositionInstructionDataArgs = CreatePositionInstructionDataArgs; declare const index$9_CurveParams: typeof CurveParams; declare const index$9_CurveParamsToMarketCapInput: typeof CurveParamsToMarketCapInput; type index$9_EncodedProgramAccount = EncodedProgramAccount; declare const index$9_FeesUpdatedEvent: typeof FeesUpdatedEvent; declare const index$9_FetchOracleConfig: typeof FetchOracleConfig; type index$9_FetchPoolsConfig = FetchPoolsConfig; declare const index$9_FetchPositionsConfig: typeof FetchPositionsConfig; declare const index$9_HF_AFTER_ADD_LIQ: typeof HF_AFTER_ADD_LIQ; declare const index$9_HF_AFTER_REMOVE_LIQ: typeof HF_AFTER_REMOVE_LIQ; declare const index$9_HF_BEFORE_ADD_LIQ: typeof HF_BEFORE_ADD_LIQ; declare const index$9_HF_BEFORE_REMOVE_LIQ: typeof HF_BEFORE_REMOVE_LIQ; declare const index$9_HF_REQUIRE_ORACLE: typeof HF_REQUIRE_ORACLE; declare const index$9_HookErrorEvent: typeof HookErrorEvent; declare const index$9_HookInvokedEvent: typeof HookInvokedEvent; declare const index$9_HookUpdatedEvent: typeof HookUpdatedEvent; declare const index$9_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR; declare const index$9_INITIALIZE_SPOT_POOL_DISCRIMINATOR: typeof INITIALIZE_SPOT_POOL_DISCRIMINATOR; declare const index$9_INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR: typeof INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR; declare const index$9_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS; type index$9_InitializeOracleAsyncInput = InitializeOracleAsyncInput; declare const index$9_InitializePoolArgs: typeof InitializePoolArgs; type index$9_InitializePoolAsyncInput = InitializePoolAsyncInput; type index$9_InitializePoolInput = InitializePoolInput; type index$9_InitializePoolInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = InitializePoolInstruction; type index$9_InitializePoolInstructionData = InitializePoolInstructionData; type index$9_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs; type index$9_InitializeSpotPoolAsyncInput = InitializeSpotPoolAsyncInput; type index$9_InitializeSpotPoolInput = InitializeSpotPoolInput; type index$9_InitializeSpotPoolInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = InitializeSpotPoolInstruction; type index$9_InitializeSpotPoolInstructionData = InitializeSpotPoolInstructionData; type index$9_InitializeSpotPoolInstructionDataArgs = InitializeSpotPoolInstructionDataArgs; type index$9_InitializeSpotPoolWithHookAsyncInput = InitializeSpotPoolWithHookAsyncInput; type index$9_InitializeSpotPoolWithHookInput = InitializeSpotPoolWithHookInput; type index$9_InitializeSpotPoolWithHookInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta = string, TAccountHookProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = InitializeSpotPoolWithHookInstruction; type index$9_InitializeSpotPoolWithHookInstructionData = InitializeSpotPoolWithHookInstructionData; type index$9_InitializeSpotPoolWithHookInstructionDataArgs = InitializeSpotPoolWithHookInstructionDataArgs; declare const index$9_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT; declare const index$9_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS; declare const index$9_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput; declare const index$9_MarketCapValidationResult: typeof MarketCapValidationResult; declare const index$9_ORACLE_CONSULT_DISCRIMINATOR: typeof ORACLE_CONSULT_DISCRIMINATOR; declare const index$9_ORACLE_UPDATE_DISCRIMINATOR: typeof ORACLE_UPDATE_DISCRIMINATOR; declare const index$9_Observation: typeof Observation; declare const index$9_OracleConsultArgs: typeof OracleConsultArgs; type index$9_OracleConsultAsyncInput = OracleConsultAsyncInput; type index$9_OracleConsultInput = OracleConsultInput; type index$9_OracleConsultInstruction = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = OracleConsultInstruction; type index$9_OracleConsultInstructionData = OracleConsultInstructionData; type index$9_OracleConsultInstructionDataArgs = OracleConsultInstructionDataArgs; declare const index$9_OracleInitializedEvent: typeof OracleInitializedEvent; type index$9_OracleUpdateAsyncInput = OracleUpdateAsyncInput; type index$9_OracleUpdateInput = OracleUpdateInput; type index$9_OracleUpdateInstruction = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = OracleUpdateInstruction; type index$9_OracleUpdateInstructionData = OracleUpdateInstructionData; type index$9_OracleUpdateInstructionDataArgs = OracleUpdateInstructionDataArgs; declare const index$9_OracleUpdatedEvent: typeof OracleUpdatedEvent; declare const index$9_OracleWithAddress: typeof OracleWithAddress; declare const index$9_PAUSE_DISCRIMINATOR: typeof PAUSE_DISCRIMINATOR; declare const index$9_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: typeof PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR; type index$9_ParsedAddLiquidityInstruction = ParsedAddLiquidityInstruction; type index$9_ParsedClosePositionInstruction = ParsedClosePositionInstruction; type index$9_ParsedCollectFeesInstruction = ParsedCollectFeesInstruction; type index$9_ParsedCollectProtocolFeesInstruction = ParsedCollectProtocolFeesInstruction; type index$9_ParsedCreatePositionInstruction = ParsedCreatePositionInstruction; type index$9_ParsedInitializePoolInstruction = ParsedInitializePoolInstruction; type index$9_ParsedInitializeSpotPoolInstruction = ParsedInitializeSpotPoolInstruction; type index$9_ParsedInitializeSpotPoolWithHookInstruction = ParsedInitializeSpotPoolWithHookInstruction; type index$9_ParsedOracleConsultInstruction = ParsedOracleConsultInstruction; type index$9_ParsedOracleUpdateInstruction = ParsedOracleUpdateInstruction; type index$9_ParsedPauseInstruction = ParsedPauseInstruction; type index$9_ParsedPreviewSwapExactInInstruction = ParsedPreviewSwapExactInInstruction; type index$9_ParsedRedeemProtocolSharesInstruction = ParsedRedeemProtocolSharesInstruction; type index$9_ParsedRemoveLiquidityInstruction = ParsedRemoveLiquidityInstruction; type index$9_ParsedSetFeesInstruction = ParsedSetFeesInstruction; type index$9_ParsedSetHookInstruction = ParsedSetHookInstruction; type index$9_ParsedSwapExactInInstruction = ParsedSwapExactInInstruction; type index$9_ParsedTransferAdminInstruction = ParsedTransferAdminInstruction; type index$9_ParsedUnpauseInstruction = ParsedUnpauseInstruction; type index$9_ParsedUpdateConfigInstruction = ParsedUpdateConfigInstruction; type index$9_ParsedWithdrawVaultExcessInstruction = ParsedWithdrawVaultExcessInstruction; type index$9_PauseInput = PauseInput; type index$9_PauseInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = PauseInstruction; type index$9_PauseInstructionData = PauseInstructionData; type index$9_PauseInstructionDataArgs = PauseInstructionDataArgs; declare const index$9_PausedEvent: typeof PausedEvent; declare const index$9_PoolInitializedEvent: typeof PoolInitializedEvent; type index$9_PoolWithAddress = PoolWithAddress; declare const index$9_PositionClosedEvent: typeof PositionClosedEvent; declare const index$9_PositionCreatedEvent: typeof PositionCreatedEvent; declare const index$9_PositionValue: typeof PositionValue; declare const index$9_PositionWithAddress: typeof PositionWithAddress; type index$9_PreviewSwapExactInInput = PreviewSwapExactInInput; type index$9_PreviewSwapExactInInstruction = string, TAccountPool extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = PreviewSwapExactInInstruction; type index$9_PreviewSwapExactInInstructionData = PreviewSwapExactInInstructionData; type index$9_PreviewSwapExactInInstructionDataArgs = PreviewSwapExactInInstructionDataArgs; declare const index$9_Q64_ONE: typeof Q64_ONE; declare const index$9_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR: typeof REDEEM_PROTOCOL_SHARES_DISCRIMINATOR; declare const index$9_REMOVE_LIQUIDITY_DISCRIMINATOR: typeof REMOVE_LIQUIDITY_DISCRIMINATOR; type index$9_RedeemProtocolSharesAsyncInput = RedeemProtocolSharesAsyncInput; type index$9_RedeemProtocolSharesInput = RedeemProtocolSharesInput; type index$9_RedeemProtocolSharesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountRecipient0 extends string | AccountMeta = string, TAccountRecipient1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = RedeemProtocolSharesInstruction; type index$9_RedeemProtocolSharesInstructionData = RedeemProtocolSharesInstructionData; type index$9_RedeemProtocolSharesInstructionDataArgs = RedeemProtocolSharesInstructionDataArgs; type index$9_RemainingAccount = RemainingAccount; declare const index$9_RemoveLiquidityArgs: typeof RemoveLiquidityArgs; type index$9_RemoveLiquidityAsyncInput = RemoveLiquidityAsyncInput; declare const index$9_RemoveLiquidityEvent: typeof RemoveLiquidityEvent; type index$9_RemoveLiquidityInput = RemoveLiquidityInput; type index$9_RemoveLiquidityInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = RemoveLiquidityInstruction; type index$9_RemoveLiquidityInstructionData = RemoveLiquidityInstructionData; type index$9_RemoveLiquidityInstructionDataArgs = RemoveLiquidityInstructionDataArgs; declare const index$9_RemoveLiquidityQuote: typeof RemoveLiquidityQuote; declare const index$9_SEED_AUTHORITY: typeof SEED_AUTHORITY; declare const index$9_SEED_ORACLE: typeof SEED_ORACLE; declare const index$9_SEED_POOL: typeof SEED_POOL; declare const index$9_SEED_POSITION: typeof SEED_POSITION; declare const index$9_SEED_PROTOCOL_FEE_OWNER: typeof SEED_PROTOCOL_FEE_OWNER; declare const index$9_SEED_SPOT_POOL: typeof SEED_SPOT_POOL; declare const index$9_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR; declare const index$9_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR; declare const index$9_SPOT_HOOK_FLAG_MASK: typeof SPOT_HOOK_FLAG_MASK; declare const index$9_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR; declare const index$9_SetFeesArgs: typeof SetFeesArgs; type index$9_SetFeesInput = SetFeesInput; type index$9_SetFeesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = SetFeesInstruction; type index$9_SetFeesInstructionData = SetFeesInstructionData; type index$9_SetFeesInstructionDataArgs = SetFeesInstructionDataArgs; declare const index$9_SetHookArgs: typeof SetHookArgs; type index$9_SetHookInput = SetHookInput; type index$9_SetHookInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = SetHookInstruction; type index$9_SetHookInstructionData = SetHookInstructionData; type index$9_SetHookInstructionDataArgs = SetHookInstructionDataArgs; declare const index$9_SwapEvent: typeof SwapEvent; declare const index$9_SwapExactInArgs: typeof SwapExactInArgs; type index$9_SwapExactInAsyncInput = SwapExactInAsyncInput; type index$9_SwapExactInInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVaultIn extends string | AccountMeta = string, TAccountVaultOut extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountUserIn extends string | AccountMeta = string, TAccountUserOut extends string | AccountMeta = string, TAccountTrader extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = SwapExactInInstruction; type index$9_SwapExactInInstructionData = SwapExactInInstructionData; type index$9_SwapExactInInstructionDataArgs = SwapExactInInstructionDataArgs; declare const index$9_SwapQuote: typeof SwapQuote; declare const index$9_SwapQuoteExactOut: typeof SwapQuoteExactOut; declare const index$9_TOKEN_METADATA_PROGRAM_ID: typeof TOKEN_METADATA_PROGRAM_ID; declare const index$9_TRANSFER_ADMIN_DISCRIMINATOR: typeof TRANSFER_ADMIN_DISCRIMINATOR; declare const index$9_TradeDirection: typeof TradeDirection; declare const index$9_TransferAdminArgs: typeof TransferAdminArgs; type index$9_TransferAdminInput = TransferAdminInput; type index$9_TransferAdminInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = TransferAdminInstruction; type index$9_TransferAdminInstructionData = TransferAdminInstructionData; type index$9_TransferAdminInstructionDataArgs = TransferAdminInstructionDataArgs; declare const index$9_TwapResult: typeof TwapResult; declare const index$9_UNPAUSE_DISCRIMINATOR: typeof UNPAUSE_DISCRIMINATOR; declare const index$9_UPDATE_CONFIG_DISCRIMINATOR: typeof UPDATE_CONFIG_DISCRIMINATOR; type index$9_UnpauseInput = UnpauseInput; type index$9_UnpauseInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = UnpauseInstruction; type index$9_UnpauseInstructionData = UnpauseInstructionData; type index$9_UnpauseInstructionDataArgs = UnpauseInstructionDataArgs; declare const index$9_UnpausedEvent: typeof UnpausedEvent; type index$9_UpdateConfigInput = UpdateConfigInput; type index$9_UpdateConfigInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = UpdateConfigInstruction; type index$9_UpdateConfigInstructionData = UpdateConfigInstructionData; type index$9_UpdateConfigInstructionDataArgs = UpdateConfigInstructionDataArgs; declare const index$9_VaultExcessWithdrawnEvent: typeof VaultExcessWithdrawnEvent; declare const index$9_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: typeof WITHDRAW_VAULT_EXCESS_DISCRIMINATOR; type index$9_WithdrawVaultExcessAsyncInput = WithdrawVaultExcessAsyncInput; type index$9_WithdrawVaultExcessInput = WithdrawVaultExcessInput; type index$9_WithdrawVaultExcessInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountVault0 extends string | AccountMeta = string, TAccountVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountAdminAta0 extends string | AccountMeta = string, TAccountAdminAta1 extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = WithdrawVaultExcessInstruction; type index$9_WithdrawVaultExcessInstructionData = WithdrawVaultExcessInstructionData; type index$9_WithdrawVaultExcessInstructionDataArgs = WithdrawVaultExcessInstructionDataArgs; declare const index$9_addLiquidityArgsCodec: typeof addLiquidityArgsCodec; declare const index$9_addressToBase58EncodedBytes: typeof addressToBase58EncodedBytes; declare const index$9_ammConfigDataCodec: typeof ammConfigDataCodec; declare const index$9_areMintsOrdered: typeof areMintsOrdered; declare const index$9_base64ToBytes: typeof base64ToBytes; declare const index$9_bytesToBase64: typeof bytesToBase64; declare const index$9_bytesToBase64EncodedBytes: typeof bytesToBase64EncodedBytes; declare const index$9_calculateAccruedFees: typeof calculateAccruedFees; declare const index$9_calculateTwap: typeof calculateTwap; declare const index$9_calculateTwapNumber: typeof calculateTwapNumber; declare const index$9_ceilDiv: typeof ceilDiv; declare const index$9_collectFeesArgsCodec: typeof collectFeesArgsCodec; declare const index$9_collectProtocolFeesArgsCodec: typeof collectProtocolFeesArgsCodec; declare const index$9_comparePoolAndOraclePrices: typeof comparePoolAndOraclePrices; declare const index$9_computePrice0Q64: typeof computePrice0Q64; declare const index$9_computePrice1Q64: typeof computePrice1Q64; declare const index$9_consultTwap: typeof consultTwap; declare const index$9_createAccountMeta: typeof createAccountMeta; declare const index$9_createPositionArgsCodec: typeof createPositionArgsCodec; declare const index$9_createReadonlyRemainingAccountMeta: typeof createReadonlyRemainingAccountMeta; declare const index$9_createSwapInstruction: typeof createSwapInstruction; declare const index$9_curveParamsToMarketCap: typeof curveParamsToMarketCap; declare const index$9_encodeAddLiquidityArgs: typeof encodeAddLiquidityArgs; declare const index$9_encodeCollectFeesArgs: typeof encodeCollectFeesArgs; declare const index$9_encodeCollectProtocolFeesArgs: typeof encodeCollectProtocolFeesArgs; declare const index$9_encodeCreatePositionArgs: typeof encodeCreatePositionArgs; declare const index$9_encodeInitializeConfigArgs: typeof encodeInitializeConfigArgs; declare const index$9_encodeInitializeOracleArgs: typeof encodeInitializeOracleArgs; declare const index$9_encodeInitializePoolArgs: typeof encodeInitializePoolArgs; declare const index$9_encodeInstructionData: typeof encodeInstructionData; declare const index$9_encodeOracleConsultArgs: typeof encodeOracleConsultArgs; declare const index$9_encodeRemoveLiquidityArgs: typeof encodeRemoveLiquidityArgs; declare const index$9_encodeSetFeesArgs: typeof encodeSetFeesArgs; declare const index$9_encodeSetHookArgs: typeof encodeSetHookArgs; declare const index$9_encodeSwapExactInArgs: typeof encodeSwapExactInArgs; declare const index$9_encodeTransferAdminArgs: typeof encodeTransferAdminArgs; declare const index$9_fetchAllPools: typeof fetchAllPools; declare const index$9_fetchConfig: typeof fetchConfig; declare const index$9_fetchConfigWithAddress: typeof fetchConfigWithAddress; declare const index$9_fetchOracle: typeof fetchOracle; declare const index$9_fetchOraclesBatch: typeof fetchOraclesBatch; declare const index$9_fetchPoolPositions: typeof fetchPoolPositions; declare const index$9_fetchPoolsBatch: typeof fetchPoolsBatch; declare const index$9_fetchPositionByParams: typeof fetchPositionByParams; declare const index$9_fetchPositionsBatch: typeof fetchPositionsBatch; declare const index$9_fetchUserPositions: typeof fetchUserPositions; declare const index$9_filterActivePositions: typeof filterActivePositions; declare const index$9_filterPoolsByMint: typeof filterPoolsByMint; declare const index$9_getAddLiquidityDiscriminatorBytes: typeof getAddLiquidityDiscriminatorBytes; declare const index$9_getAddLiquidityInstruction: typeof getAddLiquidityInstruction; declare const index$9_getAddLiquidityInstructionAsync: typeof getAddLiquidityInstructionAsync; declare const index$9_getAddLiquidityInstructionDataCodec: typeof getAddLiquidityInstructionDataCodec; declare const index$9_getAddLiquidityInstructionDataDecoder: typeof getAddLiquidityInstructionDataDecoder; declare const index$9_getAddLiquidityInstructionDataEncoder: typeof getAddLiquidityInstructionDataEncoder; declare const index$9_getAddLiquidityQuote: typeof getAddLiquidityQuote; declare const index$9_getAddressFromAddressOrSigner: typeof getAddressFromAddressOrSigner; declare const index$9_getAddressFromRemainingAccount: typeof getAddressFromRemainingAccount; declare const index$9_getClosePositionDiscriminatorBytes: typeof getClosePositionDiscriminatorBytes; declare const index$9_getClosePositionInstruction: typeof getClosePositionInstruction; declare const index$9_getClosePositionInstructionDataCodec: typeof getClosePositionInstructionDataCodec; declare const index$9_getClosePositionInstructionDataDecoder: typeof getClosePositionInstructionDataDecoder; declare const index$9_getClosePositionInstructionDataEncoder: typeof getClosePositionInstructionDataEncoder; declare const index$9_getCollectFeesDiscriminatorBytes: typeof getCollectFeesDiscriminatorBytes; declare const index$9_getCollectFeesInstruction: typeof getCollectFeesInstruction; declare const index$9_getCollectFeesInstructionAsync: typeof getCollectFeesInstructionAsync; declare const index$9_getCollectFeesInstructionDataCodec: typeof getCollectFeesInstructionDataCodec; declare const index$9_getCollectFeesInstructionDataDecoder: typeof getCollectFeesInstructionDataDecoder; declare const index$9_getCollectFeesInstructionDataEncoder: typeof getCollectFeesInstructionDataEncoder; declare const index$9_getCollectProtocolFeesDiscriminatorBytes: typeof getCollectProtocolFeesDiscriminatorBytes; declare const index$9_getCollectProtocolFeesInstruction: typeof getCollectProtocolFeesInstruction; declare const index$9_getCollectProtocolFeesInstructionAsync: typeof getCollectProtocolFeesInstructionAsync; declare const index$9_getCollectProtocolFeesInstructionDataCodec: typeof getCollectProtocolFeesInstructionDataCodec; declare const index$9_getCollectProtocolFeesInstructionDataDecoder: typeof getCollectProtocolFeesInstructionDataDecoder; declare const index$9_getCollectProtocolFeesInstructionDataEncoder: typeof getCollectProtocolFeesInstructionDataEncoder; declare const index$9_getCreatePositionDiscriminatorBytes: typeof getCreatePositionDiscriminatorBytes; declare const index$9_getCreatePositionInstruction: typeof getCreatePositionInstruction; declare const index$9_getCreatePositionInstructionAsync: typeof getCreatePositionInstructionAsync; declare const index$9_getCreatePositionInstructionDataCodec: typeof getCreatePositionInstructionDataCodec; declare const index$9_getCreatePositionInstructionDataDecoder: typeof getCreatePositionInstructionDataDecoder; declare const index$9_getCreatePositionInstructionDataEncoder: typeof getCreatePositionInstructionDataEncoder; declare const index$9_getErrorMessage: typeof getErrorMessage; declare const index$9_getHookedSpotPoolAddress: typeof getHookedSpotPoolAddress; declare const index$9_getInitializeOracleInstructionAsync: typeof getInitializeOracleInstructionAsync; declare const index$9_getInitializePoolDiscriminatorBytes: typeof getInitializePoolDiscriminatorBytes; declare const index$9_getInitializePoolInstruction: typeof getInitializePoolInstruction; declare const index$9_getInitializePoolInstructionAsync: typeof getInitializePoolInstructionAsync; declare const index$9_getInitializePoolInstructionDataCodec: typeof getInitializePoolInstructionDataCodec; declare const index$9_getInitializePoolInstructionDataDecoder: typeof getInitializePoolInstructionDataDecoder; declare const index$9_getInitializePoolInstructionDataEncoder: typeof getInitializePoolInstructionDataEncoder; declare const index$9_getInitializeSpotPoolDiscriminatorBytes: typeof getInitializeSpotPoolDiscriminatorBytes; declare const index$9_getInitializeSpotPoolInstruction: typeof getInitializeSpotPoolInstruction; declare const index$9_getInitializeSpotPoolInstructionAsync: typeof getInitializeSpotPoolInstructionAsync; declare const index$9_getInitializeSpotPoolInstructionDataCodec: typeof getInitializeSpotPoolInstructionDataCodec; declare const index$9_getInitializeSpotPoolInstructionDataDecoder: typeof getInitializeSpotPoolInstructionDataDecoder; declare const index$9_getInitializeSpotPoolInstructionDataEncoder: typeof getInitializeSpotPoolInstructionDataEncoder; declare const index$9_getInitializeSpotPoolWithHookDiscriminatorBytes: typeof getInitializeSpotPoolWithHookDiscriminatorBytes; declare const index$9_getInitializeSpotPoolWithHookInstruction: typeof getInitializeSpotPoolWithHookInstruction; declare const index$9_getInitializeSpotPoolWithHookInstructionAsync: typeof getInitializeSpotPoolWithHookInstructionAsync; declare const index$9_getInitializeSpotPoolWithHookInstructionDataCodec: typeof getInitializeSpotPoolWithHookInstructionDataCodec; declare const index$9_getInitializeSpotPoolWithHookInstructionDataDecoder: typeof getInitializeSpotPoolWithHookInstructionDataDecoder; declare const index$9_getInitializeSpotPoolWithHookInstructionDataEncoder: typeof getInitializeSpotPoolWithHookInstructionDataEncoder; declare const index$9_getK: typeof getK; declare const index$9_getLiquidityAddresses: typeof getLiquidityAddresses; declare const index$9_getMetadataAddress: typeof getMetadataAddress; declare const index$9_getOracleAddress: typeof getOracleAddress; declare const index$9_getOracleAddressFromPool: typeof getOracleAddressFromPool; declare const index$9_getOracleAge: typeof getOracleAge; declare const index$9_getOracleBufferStats: typeof getOracleBufferStats; declare const index$9_getOracleConsultDiscriminatorBytes: typeof getOracleConsultDiscriminatorBytes; declare const index$9_getOracleConsultInstruction: typeof getOracleConsultInstruction; declare const index$9_getOracleConsultInstructionAsync: typeof getOracleConsultInstructionAsync; declare const index$9_getOracleConsultInstructionDataCodec: typeof getOracleConsultInstructionDataCodec; declare const index$9_getOracleConsultInstructionDataDecoder: typeof getOracleConsultInstructionDataDecoder; declare const index$9_getOracleConsultInstructionDataEncoder: typeof getOracleConsultInstructionDataEncoder; declare const index$9_getOracleDeviation: typeof getOracleDeviation; declare const index$9_getOracleForPool: typeof getOracleForPool; declare const index$9_getOracleSpotPrices: typeof getOracleSpotPrices; declare const index$9_getOracleUpdateDiscriminatorBytes: typeof getOracleUpdateDiscriminatorBytes; declare const index$9_getOracleUpdateInstruction: typeof getOracleUpdateInstruction; declare const index$9_getOracleUpdateInstructionAsync: typeof getOracleUpdateInstructionAsync; declare const index$9_getOracleUpdateInstructionDataCodec: typeof getOracleUpdateInstructionDataCodec; declare const index$9_getOracleUpdateInstructionDataDecoder: typeof getOracleUpdateInstructionDataDecoder; declare const index$9_getOracleUpdateInstructionDataEncoder: typeof getOracleUpdateInstructionDataEncoder; declare const index$9_getPauseDiscriminatorBytes: typeof getPauseDiscriminatorBytes; declare const index$9_getPauseInstruction: typeof getPauseInstruction; declare const index$9_getPauseInstructionDataCodec: typeof getPauseInstructionDataCodec; declare const index$9_getPauseInstructionDataDecoder: typeof getPauseInstructionDataDecoder; declare const index$9_getPauseInstructionDataEncoder: typeof getPauseInstructionDataEncoder; declare const index$9_getPendingFees: typeof getPendingFees; declare const index$9_getPoolAddress: typeof getPoolAddress; declare const index$9_getPoolAddressFromMints: typeof getPoolAddressFromMints; declare const index$9_getPoolAuthorityAddress: typeof getPoolAuthorityAddress; declare const index$9_getPoolByMints: typeof getPoolByMints; declare const index$9_getPoolInitAddresses: typeof getPoolInitAddresses; declare const index$9_getPoolVault0Address: typeof getPoolVault0Address; declare const index$9_getPoolVault1Address: typeof getPoolVault1Address; declare const index$9_getPositionAddress: typeof getPositionAddress; declare const index$9_getPositionAddressFromParams: typeof getPositionAddressFromParams; declare const index$9_getPositionValue: typeof getPositionValue; declare const index$9_getPreviewSwapExactInDiscriminatorBytes: typeof getPreviewSwapExactInDiscriminatorBytes; declare const index$9_getPreviewSwapExactInInstruction: typeof getPreviewSwapExactInInstruction; declare const index$9_getPreviewSwapExactInInstructionDataCodec: typeof getPreviewSwapExactInInstructionDataCodec; declare const index$9_getPreviewSwapExactInInstructionDataDecoder: typeof getPreviewSwapExactInInstructionDataDecoder; declare const index$9_getPreviewSwapExactInInstructionDataEncoder: typeof getPreviewSwapExactInInstructionDataEncoder; declare const index$9_getProtocolFeeOwnerAddress: typeof getProtocolFeeOwnerAddress; declare const index$9_getProtocolFeePositionAddress: typeof getProtocolFeePositionAddress; declare const index$9_getRedeemProtocolSharesDiscriminatorBytes: typeof getRedeemProtocolSharesDiscriminatorBytes; declare const index$9_getRedeemProtocolSharesInstruction: typeof getRedeemProtocolSharesInstruction; declare const index$9_getRedeemProtocolSharesInstructionAsync: typeof getRedeemProtocolSharesInstructionAsync; declare const index$9_getRedeemProtocolSharesInstructionDataCodec: typeof getRedeemProtocolSharesInstructionDataCodec; declare const index$9_getRedeemProtocolSharesInstructionDataDecoder: typeof getRedeemProtocolSharesInstructionDataDecoder; declare const index$9_getRedeemProtocolSharesInstructionDataEncoder: typeof getRedeemProtocolSharesInstructionDataEncoder; declare const index$9_getRemoveLiquidityDiscriminatorBytes: typeof getRemoveLiquidityDiscriminatorBytes; declare const index$9_getRemoveLiquidityInstruction: typeof getRemoveLiquidityInstruction; declare const index$9_getRemoveLiquidityInstructionAsync: typeof getRemoveLiquidityInstructionAsync; declare const index$9_getRemoveLiquidityInstructionDataCodec: typeof getRemoveLiquidityInstructionDataCodec; declare const index$9_getRemoveLiquidityInstructionDataDecoder: typeof getRemoveLiquidityInstructionDataDecoder; declare const index$9_getRemoveLiquidityInstructionDataEncoder: typeof getRemoveLiquidityInstructionDataEncoder; declare const index$9_getRemoveLiquidityQuote: typeof getRemoveLiquidityQuote; declare const index$9_getSetFeesDiscriminatorBytes: typeof getSetFeesDiscriminatorBytes; declare const index$9_getSetFeesInstruction: typeof getSetFeesInstruction; declare const index$9_getSetFeesInstructionDataCodec: typeof getSetFeesInstructionDataCodec; declare const index$9_getSetFeesInstructionDataDecoder: typeof getSetFeesInstructionDataDecoder; declare const index$9_getSetFeesInstructionDataEncoder: typeof getSetFeesInstructionDataEncoder; declare const index$9_getSetHookDiscriminatorBytes: typeof getSetHookDiscriminatorBytes; declare const index$9_getSetHookInstruction: typeof getSetHookInstruction; declare const index$9_getSetHookInstructionDataCodec: typeof getSetHookInstructionDataCodec; declare const index$9_getSetHookInstructionDataDecoder: typeof getSetHookInstructionDataDecoder; declare const index$9_getSetHookInstructionDataEncoder: typeof getSetHookInstructionDataEncoder; declare const index$9_getSpotPoolAddress: typeof getSpotPoolAddress; declare const index$9_getSpotPrice0: typeof getSpotPrice0; declare const index$9_getSpotPrice1: typeof getSpotPrice1; declare const index$9_getSwapAddresses: typeof getSwapAddresses; declare const index$9_getSwapExactInDiscriminatorBytes: typeof getSwapExactInDiscriminatorBytes; declare const index$9_getSwapExactInInstruction: typeof getSwapExactInInstruction; declare const index$9_getSwapExactInInstructionAsync: typeof getSwapExactInInstructionAsync; declare const index$9_getSwapExactInInstructionDataCodec: typeof getSwapExactInInstructionDataCodec; declare const index$9_getSwapExactInInstructionDataDecoder: typeof getSwapExactInInstructionDataDecoder; declare const index$9_getSwapExactInInstructionDataEncoder: typeof getSwapExactInInstructionDataEncoder; declare const index$9_getSwapQuote: typeof getSwapQuote; declare const index$9_getSwapQuoteExactOut: typeof getSwapQuoteExactOut; declare const index$9_getTransferAdminDiscriminatorBytes: typeof getTransferAdminDiscriminatorBytes; declare const index$9_getTransferAdminInstruction: typeof getTransferAdminInstruction; declare const index$9_getTransferAdminInstructionDataCodec: typeof getTransferAdminInstructionDataCodec; declare const index$9_getTransferAdminInstructionDataDecoder: typeof getTransferAdminInstructionDataDecoder; declare const index$9_getTransferAdminInstructionDataEncoder: typeof getTransferAdminInstructionDataEncoder; declare const index$9_getTvl: typeof getTvl; declare const index$9_getUnpauseDiscriminatorBytes: typeof getUnpauseDiscriminatorBytes; declare const index$9_getUnpauseInstruction: typeof getUnpauseInstruction; declare const index$9_getUnpauseInstructionDataCodec: typeof getUnpauseInstructionDataCodec; declare const index$9_getUnpauseInstructionDataDecoder: typeof getUnpauseInstructionDataDecoder; declare const index$9_getUnpauseInstructionDataEncoder: typeof getUnpauseInstructionDataEncoder; declare const index$9_getUpdateConfigDiscriminatorBytes: typeof getUpdateConfigDiscriminatorBytes; declare const index$9_getUpdateConfigInstruction: typeof getUpdateConfigInstruction; declare const index$9_getUpdateConfigInstructionDataCodec: typeof getUpdateConfigInstructionDataCodec; declare const index$9_getUpdateConfigInstructionDataDecoder: typeof getUpdateConfigInstructionDataDecoder; declare const index$9_getUpdateConfigInstructionDataEncoder: typeof getUpdateConfigInstructionDataEncoder; declare const index$9_getWithdrawVaultExcessDiscriminatorBytes: typeof getWithdrawVaultExcessDiscriminatorBytes; declare const index$9_getWithdrawVaultExcessInstruction: typeof getWithdrawVaultExcessInstruction; declare const index$9_getWithdrawVaultExcessInstructionAsync: typeof getWithdrawVaultExcessInstructionAsync; declare const index$9_getWithdrawVaultExcessInstructionDataCodec: typeof getWithdrawVaultExcessInstructionDataCodec; declare const index$9_getWithdrawVaultExcessInstructionDataDecoder: typeof getWithdrawVaultExcessInstructionDataDecoder; declare const index$9_getWithdrawVaultExcessInstructionDataEncoder: typeof getWithdrawVaultExcessInstructionDataEncoder; declare const index$9_initializeConfigArgsCodec: typeof initializeConfigArgsCodec; declare const index$9_initializeOracleArgsCodec: typeof initializeOracleArgsCodec; declare const index$9_initializePoolArgsCodec: typeof initializePoolArgsCodec; declare const index$9_isCpmmError: typeof isCpmmError; declare const index$9_isOracleStale: typeof isOracleStale; declare const index$9_isTransactionSigner: typeof isTransactionSigner; declare const index$9_isqrt: typeof isqrt; declare const index$9_marketCapToCurveParams: typeof marketCapToCurveParams; declare const index$9_marketCapToSingleCurveParams: typeof marketCapToSingleCurveParams; declare const index$9_marketCapToTokenPrice: typeof marketCapToTokenPrice; declare const index$9_maxBigInt: typeof maxBigInt; declare const index$9_minBigInt: typeof minBigInt; declare const index$9_normalizeProgramAccountsResponse: typeof normalizeProgramAccountsResponse; declare const index$9_numberToQ64: typeof numberToQ64; declare const index$9_observationCodec: typeof observationCodec; declare const index$9_oracleConsultArgsCodec: typeof oracleConsultArgsCodec; declare const index$9_oracleStateDataCodec: typeof oracleStateDataCodec; declare const index$9_parseAddLiquidityInstruction: typeof parseAddLiquidityInstruction; declare const index$9_parseClosePositionInstruction: typeof parseClosePositionInstruction; declare const index$9_parseCollectFeesInstruction: typeof parseCollectFeesInstruction; declare const index$9_parseCollectProtocolFeesInstruction: typeof parseCollectProtocolFeesInstruction; declare const index$9_parseCreatePositionInstruction: typeof parseCreatePositionInstruction; declare const index$9_parseErrorFromLogs: typeof parseErrorFromLogs; declare const index$9_parseInitializePoolInstruction: typeof parseInitializePoolInstruction; declare const index$9_parseInitializeSpotPoolInstruction: typeof parseInitializeSpotPoolInstruction; declare const index$9_parseInitializeSpotPoolWithHookInstruction: typeof parseInitializeSpotPoolWithHookInstruction; declare const index$9_parseOracleConsultInstruction: typeof parseOracleConsultInstruction; declare const index$9_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction; declare const index$9_parsePauseInstruction: typeof parsePauseInstruction; declare const index$9_parsePreviewSwapExactInInstruction: typeof parsePreviewSwapExactInInstruction; declare const index$9_parseRedeemProtocolSharesInstruction: typeof parseRedeemProtocolSharesInstruction; declare const index$9_parseRemoveLiquidityInstruction: typeof parseRemoveLiquidityInstruction; declare const index$9_parseSetFeesInstruction: typeof parseSetFeesInstruction; declare const index$9_parseSetHookInstruction: typeof parseSetHookInstruction; declare const index$9_parseSwapExactInInstruction: typeof parseSwapExactInInstruction; declare const index$9_parseTransferAdminInstruction: typeof parseTransferAdminInstruction; declare const index$9_parseUnpauseInstruction: typeof parseUnpauseInstruction; declare const index$9_parseUpdateConfigInstruction: typeof parseUpdateConfigInstruction; declare const index$9_parseWithdrawVaultExcessInstruction: typeof parseWithdrawVaultExcessInstruction; declare const index$9_poolDataCodec: typeof poolDataCodec; declare const index$9_poolExists: typeof poolExists; declare const index$9_positionDataCodec: typeof positionDataCodec; declare const index$9_q64Div: typeof q64Div; declare const index$9_q64Mul: typeof q64Mul; declare const index$9_q64ToNumber: typeof q64ToNumber; declare const index$9_ratioToNumber: typeof ratioToNumber; declare const index$9_removeLiquidityArgsCodec: typeof removeLiquidityArgsCodec; declare const index$9_setFeesArgsCodec: typeof setFeesArgsCodec; declare const index$9_setHookArgsCodec: typeof setHookArgsCodec; declare const index$9_sortMints: typeof sortMints; declare const index$9_sortPoolsByReserves: typeof sortPoolsByReserves; declare const index$9_sortPositionsByShares: typeof sortPositionsByShares; declare const index$9_swapExactInArgsCodec: typeof swapExactInArgsCodec; declare const index$9_transferAdminArgsCodec: typeof transferAdminArgsCodec; declare const index$9_validateMarketCapParameters: typeof validateMarketCapParameters; declare const index$9_warnAccountDecodeFailure: typeof warnAccountDecodeFailure; declare namespace index$9 { export { index$9_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$9_ACCOUNT_VERSION as ACCOUNT_VERSION, index$9_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, type index$9_AccountMetaRole as AccountMetaRole, index$9_AddLiquidityArgs as AddLiquidityArgs, type index$9_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$9_AddLiquidityEvent as AddLiquidityEvent, type index$9_AddLiquidityInput as AddLiquidityInput, type index$9_AddLiquidityInstruction as AddLiquidityInstruction, type index$9_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$9_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$9_AddLiquidityQuote as AddLiquidityQuote, type index$9_AddressOrTransactionSigner as AddressOrTransactionSigner, index$9_AdminTransferredEvent as AdminTransferredEvent, AmmConfig$1 as AmmConfig, index$9_BPS_DENOM as BPS_DENOM, index$9_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$9_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$9_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$9_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$9_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$9_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$9_ClosePositionInput as ClosePositionInput, type index$9_ClosePositionInstruction as ClosePositionInstruction, type index$9_ClosePositionInstructionData as ClosePositionInstructionData, type index$9_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$9_CollectFeesArgs as CollectFeesArgs, type index$9_CollectFeesAsyncInput as CollectFeesAsyncInput, index$9_CollectFeesEvent as CollectFeesEvent, type index$9_CollectFeesInput as CollectFeesInput, type index$9_CollectFeesInstruction as CollectFeesInstruction, type index$9_CollectFeesInstructionData as CollectFeesInstructionData, type index$9_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$9_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$9_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$9_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$9_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$9_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$9_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$9_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$9_CpmmError as CpmmError, index$9_CpmmErrorCode as CpmmErrorCode, index$9_CreatePositionArgs as CreatePositionArgs, type index$9_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$9_CreatePositionInput as CreatePositionInput, type index$9_CreatePositionInstruction as CreatePositionInstruction, type index$9_CreatePositionInstructionData as CreatePositionInstructionData, type index$9_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$9_CurveParams as CurveParams, index$9_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, type index$9_EncodedProgramAccount as EncodedProgramAccount, index$9_FeesUpdatedEvent as FeesUpdatedEvent, index$9_FetchOracleConfig as FetchOracleConfig, type index$9_FetchPoolsConfig as FetchPoolsConfig, index$9_FetchPositionsConfig as FetchPositionsConfig, index$9_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$9_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$9_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$9_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$9_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$9_HookErrorEvent as HookErrorEvent, index$9_HookInvokedEvent as HookInvokedEvent, index$9_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$2 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$9_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$9_INITIALIZE_SPOT_POOL_DISCRIMINATOR as INITIALIZE_SPOT_POOL_DISCRIMINATOR, index$9_INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR as INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR, index$9_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$3 as InitializeConfigArgs, type InitializeConfigAsyncInput$2 as InitializeConfigAsyncInput, type InitializeConfigInput$2 as InitializeConfigInput, type InitializeConfigInstruction$2 as InitializeConfigInstruction, type InitializeConfigInstructionData$2 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$2 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$9_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$9_InitializePoolArgs as InitializePoolArgs, type index$9_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$9_InitializePoolInput as InitializePoolInput, type index$9_InitializePoolInstruction as InitializePoolInstruction, type index$9_InitializePoolInstructionData as InitializePoolInstructionData, type index$9_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, type index$9_InitializeSpotPoolAsyncInput as InitializeSpotPoolAsyncInput, type index$9_InitializeSpotPoolInput as InitializeSpotPoolInput, type index$9_InitializeSpotPoolInstruction as InitializeSpotPoolInstruction, type index$9_InitializeSpotPoolInstructionData as InitializeSpotPoolInstructionData, type index$9_InitializeSpotPoolInstructionDataArgs as InitializeSpotPoolInstructionDataArgs, type index$9_InitializeSpotPoolWithHookAsyncInput as InitializeSpotPoolWithHookAsyncInput, type index$9_InitializeSpotPoolWithHookInput as InitializeSpotPoolWithHookInput, type index$9_InitializeSpotPoolWithHookInstruction as InitializeSpotPoolWithHookInstruction, type index$9_InitializeSpotPoolWithHookInstructionData as InitializeSpotPoolWithHookInstructionData, type index$9_InitializeSpotPoolWithHookInstructionDataArgs as InitializeSpotPoolWithHookInstructionDataArgs, index$9_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$9_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$9_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$9_MarketCapValidationResult as MarketCapValidationResult, index$9_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$9_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$9_Observation as Observation, index$9_OracleConsultArgs as OracleConsultArgs, type index$9_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$9_OracleConsultInput as OracleConsultInput, type index$9_OracleConsultInstruction as OracleConsultInstruction, type index$9_OracleConsultInstructionData as OracleConsultInstructionData, type index$9_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$9_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$9_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$9_OracleUpdateInput as OracleUpdateInput, type index$9_OracleUpdateInstruction as OracleUpdateInstruction, type index$9_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$9_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$9_OracleUpdatedEvent as OracleUpdatedEvent, index$9_OracleWithAddress as OracleWithAddress, index$9_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$9_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$9_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$9_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$9_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$9_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$9_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$2 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$9_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$9_ParsedInitializeSpotPoolInstruction as ParsedInitializeSpotPoolInstruction, type index$9_ParsedInitializeSpotPoolWithHookInstruction as ParsedInitializeSpotPoolWithHookInstruction, type index$9_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$9_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$9_ParsedPauseInstruction as ParsedPauseInstruction, type index$9_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$9_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$9_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$9_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$9_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$9_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$9_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$9_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$9_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$9_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$9_PauseInput as PauseInput, type index$9_PauseInstruction as PauseInstruction, type index$9_PauseInstructionData as PauseInstructionData, type index$9_PauseInstructionDataArgs as PauseInstructionDataArgs, index$9_PausedEvent as PausedEvent, Pool$1 as Pool, index$9_PoolInitializedEvent as PoolInitializedEvent, type index$9_PoolWithAddress as PoolWithAddress, Position$1 as Position, index$9_PositionClosedEvent as PositionClosedEvent, index$9_PositionCreatedEvent as PositionCreatedEvent, index$9_PositionValue as PositionValue, index$9_PositionWithAddress as PositionWithAddress, type index$9_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$9_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$9_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$9_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$9_Q64_ONE as Q64_ONE, index$9_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$9_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$9_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$9_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$9_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$9_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$9_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, type index$9_RemainingAccount as RemainingAccount, index$9_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$9_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$9_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$9_RemoveLiquidityInput as RemoveLiquidityInput, type index$9_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$9_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$9_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$9_RemoveLiquidityQuote as RemoveLiquidityQuote, index$9_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$9_SEED_ORACLE as SEED_ORACLE, index$9_SEED_POOL as SEED_POOL, index$9_SEED_POSITION as SEED_POSITION, index$9_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$9_SEED_SPOT_POOL as SEED_SPOT_POOL, index$9_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$9_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$9_SPOT_HOOK_FLAG_MASK as SPOT_HOOK_FLAG_MASK, index$9_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$9_SetFeesArgs as SetFeesArgs, type index$9_SetFeesInput as SetFeesInput, type index$9_SetFeesInstruction as SetFeesInstruction, type index$9_SetFeesInstructionData as SetFeesInstructionData, type index$9_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$9_SetHookArgs as SetHookArgs, type index$9_SetHookInput as SetHookInput, type index$9_SetHookInstruction as SetHookInstruction, type index$9_SetHookInstructionData as SetHookInstructionData, type index$9_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$9_SwapEvent as SwapEvent, index$9_SwapExactInArgs as SwapExactInArgs, type index$9_SwapExactInAsyncInput as SwapExactInAsyncInput, type SwapExactInInput$1 as SwapExactInInput, type index$9_SwapExactInInstruction as SwapExactInInstruction, type index$9_SwapExactInInstructionData as SwapExactInInstructionData, type index$9_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$9_SwapQuote as SwapQuote, index$9_SwapQuoteExactOut as SwapQuoteExactOut, index$9_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$9_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$9_TradeDirection as TradeDirection, index$9_TransferAdminArgs as TransferAdminArgs, type index$9_TransferAdminInput as TransferAdminInput, type index$9_TransferAdminInstruction as TransferAdminInstruction, type index$9_TransferAdminInstructionData as TransferAdminInstructionData, type index$9_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$9_TwapResult as TwapResult, index$9_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$9_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$9_UnpauseInput as UnpauseInput, type index$9_UnpauseInstruction as UnpauseInstruction, type index$9_UnpauseInstructionData as UnpauseInstructionData, type index$9_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$9_UnpausedEvent as UnpausedEvent, type index$9_UpdateConfigInput as UpdateConfigInput, type index$9_UpdateConfigInstruction as UpdateConfigInstruction, type index$9_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$9_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$9_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$9_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$9_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$9_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$9_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$9_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$9_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$9_addLiquidityArgsCodec as addLiquidityArgsCodec, index$9_addressToBase58EncodedBytes as addressToBase58EncodedBytes, index$9_ammConfigDataCodec as ammConfigDataCodec, index$9_areMintsOrdered as areMintsOrdered, index$9_base64ToBytes as base64ToBytes, index$9_bytesToBase64 as bytesToBase64, index$9_bytesToBase64EncodedBytes as bytesToBase64EncodedBytes, index$9_calculateAccruedFees as calculateAccruedFees, index$9_calculateTwap as calculateTwap, index$9_calculateTwapNumber as calculateTwapNumber, index$9_ceilDiv as ceilDiv, index$9_collectFeesArgsCodec as collectFeesArgsCodec, index$9_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$9_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$9_computePrice0Q64 as computePrice0Q64, index$9_computePrice1Q64 as computePrice1Q64, index$9_consultTwap as consultTwap, index$9_createAccountMeta as createAccountMeta, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$2 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$9_createPositionArgsCodec as createPositionArgsCodec, index$9_createReadonlyRemainingAccountMeta as createReadonlyRemainingAccountMeta, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$9_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$9_curveParamsToMarketCap as curveParamsToMarketCap, decodeAmmConfig$1 as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, decodePool$1 as decodePool, decodePosition$1 as decodePosition, index$9_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$9_encodeCollectFeesArgs as encodeCollectFeesArgs, index$9_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$9_encodeCreatePositionArgs as encodeCreatePositionArgs, index$9_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$9_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$9_encodeInitializePoolArgs as encodeInitializePoolArgs, index$9_encodeInstructionData as encodeInstructionData, index$9_encodeOracleConsultArgs as encodeOracleConsultArgs, index$9_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$9_encodeSetFeesArgs as encodeSetFeesArgs, index$9_encodeSetHookArgs as encodeSetHookArgs, index$9_encodeSwapExactInArgs as encodeSwapExactInArgs, index$9_encodeTransferAdminArgs as encodeTransferAdminArgs, index$9_fetchAllPools as fetchAllPools, index$9_fetchConfig as fetchConfig, index$9_fetchConfigWithAddress as fetchConfigWithAddress, index$9_fetchOracle as fetchOracle, index$9_fetchOraclesBatch as fetchOraclesBatch, fetchPool$1 as fetchPool, index$9_fetchPoolPositions as fetchPoolPositions, index$9_fetchPoolsBatch as fetchPoolsBatch, fetchPosition$1 as fetchPosition, index$9_fetchPositionByParams as fetchPositionByParams, index$9_fetchPositionsBatch as fetchPositionsBatch, index$9_fetchUserPositions as fetchUserPositions, index$9_filterActivePositions as filterActivePositions, index$9_filterPoolsByMint as filterPoolsByMint, index$9_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$9_getAddLiquidityInstruction as getAddLiquidityInstruction, index$9_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$9_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$9_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$9_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$9_getAddLiquidityQuote as getAddLiquidityQuote, index$9_getAddressFromAddressOrSigner as getAddressFromAddressOrSigner, index$9_getAddressFromRemainingAccount as getAddressFromRemainingAccount, index$9_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$9_getClosePositionInstruction as getClosePositionInstruction, index$9_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$9_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$9_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$9_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$9_getCollectFeesInstruction as getCollectFeesInstruction, index$9_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$9_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$9_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$9_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$9_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$9_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$9_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$9_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$9_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$9_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$9_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$9_getCreatePositionInstruction as getCreatePositionInstruction, index$9_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$9_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$9_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$9_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$9_getErrorMessage as getErrorMessage, index$9_getHookedSpotPoolAddress as getHookedSpotPoolAddress, getInitializeConfigDiscriminatorBytes$2 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$2 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$2 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$2 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$2 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$2 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$9_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$9_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$9_getInitializePoolInstruction as getInitializePoolInstruction, index$9_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$9_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$9_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$9_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$9_getInitializeSpotPoolDiscriminatorBytes as getInitializeSpotPoolDiscriminatorBytes, index$9_getInitializeSpotPoolInstruction as getInitializeSpotPoolInstruction, index$9_getInitializeSpotPoolInstructionAsync as getInitializeSpotPoolInstructionAsync, index$9_getInitializeSpotPoolInstructionDataCodec as getInitializeSpotPoolInstructionDataCodec, index$9_getInitializeSpotPoolInstructionDataDecoder as getInitializeSpotPoolInstructionDataDecoder, index$9_getInitializeSpotPoolInstructionDataEncoder as getInitializeSpotPoolInstructionDataEncoder, index$9_getInitializeSpotPoolWithHookDiscriminatorBytes as getInitializeSpotPoolWithHookDiscriminatorBytes, index$9_getInitializeSpotPoolWithHookInstruction as getInitializeSpotPoolWithHookInstruction, index$9_getInitializeSpotPoolWithHookInstructionAsync as getInitializeSpotPoolWithHookInstructionAsync, index$9_getInitializeSpotPoolWithHookInstructionDataCodec as getInitializeSpotPoolWithHookInstructionDataCodec, index$9_getInitializeSpotPoolWithHookInstructionDataDecoder as getInitializeSpotPoolWithHookInstructionDataDecoder, index$9_getInitializeSpotPoolWithHookInstructionDataEncoder as getInitializeSpotPoolWithHookInstructionDataEncoder, index$9_getK as getK, index$9_getLiquidityAddresses as getLiquidityAddresses, index$9_getMetadataAddress as getMetadataAddress, index$9_getOracleAddress as getOracleAddress, index$9_getOracleAddressFromPool as getOracleAddressFromPool, index$9_getOracleAge as getOracleAge, index$9_getOracleBufferStats as getOracleBufferStats, index$9_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$9_getOracleConsultInstruction as getOracleConsultInstruction, index$9_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$9_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$9_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$9_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$9_getOracleDeviation as getOracleDeviation, index$9_getOracleForPool as getOracleForPool, index$9_getOracleSpotPrices as getOracleSpotPrices, index$9_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$9_getOracleUpdateInstruction as getOracleUpdateInstruction, index$9_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$9_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$9_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$9_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$9_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$9_getPauseInstruction as getPauseInstruction, index$9_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$9_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$9_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$9_getPendingFees as getPendingFees, index$9_getPoolAddress as getPoolAddress, index$9_getPoolAddressFromMints as getPoolAddressFromMints, index$9_getPoolAuthorityAddress as getPoolAuthorityAddress, index$9_getPoolByMints as getPoolByMints, index$9_getPoolInitAddresses as getPoolInitAddresses, index$9_getPoolVault0Address as getPoolVault0Address, index$9_getPoolVault1Address as getPoolVault1Address, index$9_getPositionAddress as getPositionAddress, index$9_getPositionAddressFromParams as getPositionAddressFromParams, index$9_getPositionValue as getPositionValue, index$9_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$9_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$9_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$9_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$9_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$9_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$9_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$9_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$9_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$9_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$9_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$9_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$9_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$9_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$9_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$9_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$9_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$9_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$9_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$9_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$9_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$9_getSetFeesInstruction as getSetFeesInstruction, index$9_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$9_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$9_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$9_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$9_getSetHookInstruction as getSetHookInstruction, index$9_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$9_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$9_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$9_getSpotPoolAddress as getSpotPoolAddress, index$9_getSpotPrice0 as getSpotPrice0, index$9_getSpotPrice1 as getSpotPrice1, index$9_getSwapAddresses as getSwapAddresses, index$9_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$9_getSwapExactInInstruction as getSwapExactInInstruction, index$9_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$9_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$9_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$9_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$9_getSwapQuote as getSwapQuote, index$9_getSwapQuoteExactOut as getSwapQuoteExactOut, index$9_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$9_getTransferAdminInstruction as getTransferAdminInstruction, index$9_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$9_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$9_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$9_getTvl as getTvl, index$9_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$9_getUnpauseInstruction as getUnpauseInstruction, index$9_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$9_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$9_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$9_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$9_getUpdateConfigInstruction as getUpdateConfigInstruction, index$9_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$9_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$9_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$9_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$9_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$9_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$9_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$9_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$9_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$9_initializeConfigArgsCodec as initializeConfigArgsCodec, index$9_initializeOracleArgsCodec as initializeOracleArgsCodec, index$9_initializePoolArgsCodec as initializePoolArgsCodec, index$9_isCpmmError as isCpmmError, index$9_isOracleStale as isOracleStale, index$9_isTransactionSigner as isTransactionSigner, index$9_isqrt as isqrt, index$9_marketCapToCurveParams as marketCapToCurveParams, index$9_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$9_marketCapToTokenPrice as marketCapToTokenPrice, index$9_maxBigInt as maxBigInt, index$9_minBigInt as minBigInt, index$9_normalizeProgramAccountsResponse as normalizeProgramAccountsResponse, index$9_numberToQ64 as numberToQ64, index$9_observationCodec as observationCodec, index$9_oracleConsultArgsCodec as oracleConsultArgsCodec, index$9_oracleStateDataCodec as oracleStateDataCodec, index$9_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$9_parseClosePositionInstruction as parseClosePositionInstruction, index$9_parseCollectFeesInstruction as parseCollectFeesInstruction, index$9_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$9_parseCreatePositionInstruction as parseCreatePositionInstruction, index$9_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$2 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$9_parseInitializePoolInstruction as parseInitializePoolInstruction, index$9_parseInitializeSpotPoolInstruction as parseInitializeSpotPoolInstruction, index$9_parseInitializeSpotPoolWithHookInstruction as parseInitializeSpotPoolWithHookInstruction, index$9_parseOracleConsultInstruction as parseOracleConsultInstruction, index$9_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$9_parsePauseInstruction as parsePauseInstruction, index$9_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$9_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$9_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$9_parseSetFeesInstruction as parseSetFeesInstruction, index$9_parseSetHookInstruction as parseSetHookInstruction, index$9_parseSwapExactInInstruction as parseSwapExactInInstruction, index$9_parseTransferAdminInstruction as parseTransferAdminInstruction, index$9_parseUnpauseInstruction as parseUnpauseInstruction, index$9_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$9_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$9_poolDataCodec as poolDataCodec, index$9_poolExists as poolExists, index$9_positionDataCodec as positionDataCodec, index$9_q64Div as q64Div, index$9_q64Mul as q64Mul, index$9_q64ToNumber as q64ToNumber, index$9_ratioToNumber as ratioToNumber, index$9_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$9_setFeesArgsCodec as setFeesArgsCodec, index$9_setHookArgsCodec as setHookArgsCodec, index$9_sortMints as sortMints, index$9_sortPoolsByReserves as sortPoolsByReserves, index$9_sortPositionsByShares as sortPositionsByShares, index$9_swapExactInArgsCodec as swapExactInArgsCodec, index$9_transferAdminArgsCodec as transferAdminArgsCodec, index$9_validateMarketCapParameters as validateMarketCapParameters, index$9_warnAccountDecodeFailure as warnAccountDecodeFailure }; } /** * 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 */ declare const COSIGNER_CONFIG_DISCRIMINATOR: Uint8Array; declare function getCosignerConfigDiscriminatorBytes(): ReadonlyUint8Array; type CosignerConfig = { discriminator: ReadonlyUint8Array; adminAuthority: Address; cosignerCount: number; bump: number; version: number; reserved: ReadonlyUint8Array; cosigners: Array
; }; type CosignerConfigArgs = { adminAuthority: Address; cosignerCount: number; bump: number; version: number; reserved: ReadonlyUint8Array; cosigners: Array
; }; /** Gets the encoder for {@link CosignerConfigArgs} account data. */ declare function getCosignerConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link CosignerConfig} account data. */ declare function getCosignerConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link CosignerConfig} account data. */ declare function getCosignerConfigCodec(): FixedSizeCodec; declare function decodeCosignerConfig(encodedAccount: EncodedAccount): Account; declare function decodeCosignerConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchCosignerConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeCosignerConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllCosignerConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeCosignerConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getCosignerConfigSize(): number; /** * 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 */ /** InvalidInstructionData: Invalid instruction data */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_INSTRUCTION_DATA = 6000; /** InvalidScheduleData: Invalid schedule payload */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_SCHEDULE_DATA = 6001; /** InvalidFee: Invalid fee */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_FEE = 6002; /** InvalidDuration: Invalid fee duration */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_DURATION = 6003; /** ArithmeticOverflow: Arithmetic overflow */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__ARITHMETIC_OVERFLOW = 6004; /** InvalidAuthority: Invalid hook authority */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_AUTHORITY = 6005; /** InvalidConfig: Invalid cosigner hook config */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_CONFIG = 6006; /** InvalidCosigner: Invalid cosigner key */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_COSIGNER = 6007; /** CosignerAlreadyExists: Cosigner already exists */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_ALREADY_EXISTS = 6008; /** CosignerNotFound: Cosigner not found */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_NOT_FOUND = 6009; /** CosignerListFull: Cosigner list is full */ declare const DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_LIST_FULL = 6010; type DopplerLaunchHookV1Error = typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__ARITHMETIC_OVERFLOW | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_ALREADY_EXISTS | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_LIST_FULL | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_NOT_FOUND | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_AUTHORITY | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_CONFIG | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_COSIGNER | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_DURATION | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_FEE | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_INSTRUCTION_DATA | typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_SCHEDULE_DATA; declare function getDopplerLaunchHookV1ErrorMessage(code: DopplerLaunchHookV1Error): string; declare function isDopplerLaunchHookV1Error(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * 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 */ declare const DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ADDRESS: Address<"HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i">; declare enum DopplerLaunchHookV1Account { CosignerConfig = 0 } declare function identifyDopplerLaunchHookV1Account(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerLaunchHookV1Account; declare enum DopplerLaunchHookV1Instruction { AddCosigner = 0, InitializeConfig = 1, RemoveCosigner = 2, SetAuthority = 3 } declare function identifyDopplerLaunchHookV1Instruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerLaunchHookV1Instruction; type ParsedDopplerLaunchHookV1Instruction = ({ instructionType: DopplerLaunchHookV1Instruction.AddCosigner; } & ParsedAddCosignerInstruction$1) | ({ instructionType: DopplerLaunchHookV1Instruction.InitializeConfig; } & ParsedInitializeConfigInstruction$1) | ({ instructionType: DopplerLaunchHookV1Instruction.RemoveCosigner; } & ParsedRemoveCosignerInstruction$1) | ({ instructionType: DopplerLaunchHookV1Instruction.SetAuthority; } & ParsedSetAuthorityInstruction$1); declare function parseDopplerLaunchHookV1Instruction(instruction: Instruction & InstructionWithData): ParsedDopplerLaunchHookV1Instruction; type DopplerLaunchHookV1Plugin = { accounts: DopplerLaunchHookV1PluginAccounts; instructions: DopplerLaunchHookV1PluginInstructions; }; type DopplerLaunchHookV1PluginAccounts = { cosignerConfig: ReturnType & SelfFetchFunctions; }; type DopplerLaunchHookV1PluginInstructions = { addCosigner: (input: AddCosignerAsyncInput$1) => ReturnType & SelfPlanAndSendFunctions; initializeConfig: (input: MakeOptional$4) => ReturnType & SelfPlanAndSendFunctions; removeCosigner: (input: RemoveCosignerAsyncInput$1) => ReturnType & SelfPlanAndSendFunctions; setAuthority: (input: SetAuthorityAsyncInput$1) => ReturnType & SelfPlanAndSendFunctions; }; type DopplerLaunchHookV1PluginRequirements = ClientWithRpc & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending; declare function dopplerLaunchHookV1Program(): (client: T) => T & { dopplerLaunchHookV1: DopplerLaunchHookV1Plugin; }; type MakeOptional$4 = Omit & Partial>; /** * 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 */ declare const ADD_COSIGNER_DISCRIMINATOR$1: Uint8Array; declare function getAddCosignerDiscriminatorBytes$1(): ReadonlyUint8Array; type AddCosignerInstruction$1 = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, ...TRemainingAccounts ]>; type AddCosignerInstructionData$1 = { discriminator: ReadonlyUint8Array; cosigner: Address; }; type AddCosignerInstructionDataArgs$1 = { cosigner: Address; }; declare function getAddCosignerInstructionDataEncoder$1(): FixedSizeEncoder; declare function getAddCosignerInstructionDataDecoder$1(): FixedSizeDecoder; declare function getAddCosignerInstructionDataCodec$1(): FixedSizeCodec; type AddCosignerAsyncInput$1 = { adminAuthority: TransactionSigner; config?: Address; cosigner: AddCosignerInstructionDataArgs$1['cosigner']; }; declare function getAddCosignerInstructionAsync$1(input: AddCosignerAsyncInput$1, config?: { programAddress?: TProgramAddress; }): Promise>; type AddCosignerInput$1 = { adminAuthority: TransactionSigner; config: Address; cosigner: AddCosignerInstructionDataArgs$1['cosigner']; }; declare function getAddCosignerInstruction$1(input: AddCosignerInput$1, config?: { programAddress?: TProgramAddress; }): AddCosignerInstruction$1; type ParsedAddCosignerInstruction$1 = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; config: TAccountMetas[1]; }; data: AddCosignerInstructionData$1; }; declare function parseAddCosignerInstruction$1(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedAddCosignerInstruction$1; /** * 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 */ declare const INITIALIZE_CONFIG_DISCRIMINATOR$1: Uint8Array; declare function getInitializeConfigDiscriminatorBytes$1(): ReadonlyUint8Array; type InitializeConfigInstruction$1 = string, TAccountAdminAuthority extends string | AccountMeta = string, TAccountConfig extends string | AccountMeta = string, TAccountProgramData extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountProgramData extends string ? ReadonlyAccount : TAccountProgramData, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeConfigInstructionData$1 = { discriminator: ReadonlyUint8Array; cosigners: Array
; }; type InitializeConfigInstructionDataArgs$1 = { cosigners: Array
; }; declare function getInitializeConfigInstructionDataEncoder$1(): Encoder; declare function getInitializeConfigInstructionDataDecoder$1(): Decoder; declare function getInitializeConfigInstructionDataCodec$1(): Codec; type InitializeConfigAsyncInput$1 = { payer: TransactionSigner; adminAuthority: TransactionSigner; config?: Address; programData: Address; systemProgram?: Address; cosigners: InitializeConfigInstructionDataArgs$1['cosigners']; }; declare function getInitializeConfigInstructionAsync$1(input: InitializeConfigAsyncInput$1, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeConfigInput$1 = { payer: TransactionSigner; adminAuthority: TransactionSigner; config: Address; programData: Address; systemProgram?: Address; cosigners: InitializeConfigInstructionDataArgs$1['cosigners']; }; declare function getInitializeConfigInstruction$1(input: InitializeConfigInput$1, config?: { programAddress?: TProgramAddress; }): InitializeConfigInstruction$1; type ParsedInitializeConfigInstruction$1 = { programAddress: Address; accounts: { payer: TAccountMetas[0]; adminAuthority: TAccountMetas[1]; config: TAccountMetas[2]; programData: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: InitializeConfigInstructionData$1; }; declare function parseInitializeConfigInstruction$1(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeConfigInstruction$1; /** * 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 */ declare const REMOVE_COSIGNER_DISCRIMINATOR$1: Uint8Array; declare function getRemoveCosignerDiscriminatorBytes$1(): ReadonlyUint8Array; type RemoveCosignerInstruction$1 = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, ...TRemainingAccounts ]>; type RemoveCosignerInstructionData$1 = { discriminator: ReadonlyUint8Array; cosigner: Address; }; type RemoveCosignerInstructionDataArgs$1 = { cosigner: Address; }; declare function getRemoveCosignerInstructionDataEncoder$1(): FixedSizeEncoder; declare function getRemoveCosignerInstructionDataDecoder$1(): FixedSizeDecoder; declare function getRemoveCosignerInstructionDataCodec$1(): FixedSizeCodec; type RemoveCosignerAsyncInput$1 = { adminAuthority: TransactionSigner; config?: Address; cosigner: RemoveCosignerInstructionDataArgs$1['cosigner']; }; declare function getRemoveCosignerInstructionAsync$1(input: RemoveCosignerAsyncInput$1, config?: { programAddress?: TProgramAddress; }): Promise>; type RemoveCosignerInput$1 = { adminAuthority: TransactionSigner; config: Address; cosigner: RemoveCosignerInstructionDataArgs$1['cosigner']; }; declare function getRemoveCosignerInstruction$1(input: RemoveCosignerInput$1, config?: { programAddress?: TProgramAddress; }): RemoveCosignerInstruction$1; type ParsedRemoveCosignerInstruction$1 = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; config: TAccountMetas[1]; }; data: RemoveCosignerInstructionData$1; }; declare function parseRemoveCosignerInstruction$1(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRemoveCosignerInstruction$1; /** * 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 */ declare const SET_AUTHORITY_DISCRIMINATOR$1: Uint8Array; declare function getSetAuthorityDiscriminatorBytes$1(): ReadonlyUint8Array; type SetAuthorityInstruction$1 = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, ...TRemainingAccounts ]>; type SetAuthorityInstructionData$1 = { discriminator: ReadonlyUint8Array; adminAuthority: Address; }; type SetAuthorityInstructionDataArgs$1 = { adminAuthority: Address; }; declare function getSetAuthorityInstructionDataEncoder$1(): FixedSizeEncoder; declare function getSetAuthorityInstructionDataDecoder$1(): FixedSizeDecoder; declare function getSetAuthorityInstructionDataCodec$1(): FixedSizeCodec; type SetAuthorityAsyncInput$1 = { adminAuthority: TransactionSigner; config?: Address; adminAuthorityArg: SetAuthorityInstructionDataArgs$1['adminAuthority']; }; declare function getSetAuthorityInstructionAsync$1(input: SetAuthorityAsyncInput$1, config?: { programAddress?: TProgramAddress; }): Promise>; type SetAuthorityInput$1 = { adminAuthority: TransactionSigner; config: Address; adminAuthorityArg: SetAuthorityInstructionDataArgs$1['adminAuthority']; }; declare function getSetAuthorityInstruction$1(input: SetAuthorityInput$1, config?: { programAddress?: TProgramAddress; }): SetAuthorityInstruction$1; type ParsedSetAuthorityInstruction$1 = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; config: TAccountMetas[1]; }; data: SetAuthorityInstructionData$1; }; declare function parseSetAuthorityInstruction$1(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetAuthorityInstruction$1; /** * 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 */ type CosignerArg$1 = { cosigner: Address; }; type CosignerArgArgs$1 = CosignerArg$1; declare function getCosignerArgEncoder$1(): FixedSizeEncoder; declare function getCosignerArgDecoder$1(): FixedSizeDecoder; declare function getCosignerArgCodec$1(): FixedSizeCodec; /** * 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 */ type InitializeConfigArgs$2 = { cosigners: Array
; }; type InitializeConfigArgsArgs$2 = InitializeConfigArgs$2; declare function getInitializeConfigArgsEncoder$2(): Encoder; declare function getInitializeConfigArgsDecoder$2(): Decoder; declare function getInitializeConfigArgsCodec$2(): Codec; /** * 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 */ type SetAuthorityArgs$1 = { adminAuthority: Address; }; type SetAuthorityArgsArgs$1 = SetAuthorityArgs$1; declare function getSetAuthorityArgsEncoder$1(): FixedSizeEncoder; declare function getSetAuthorityArgsDecoder$1(): FixedSizeDecoder; declare function getSetAuthorityArgsCodec$1(): FixedSizeCodec; declare const resolvedManagedCosignerGateBrand: unique symbol; type ResolveManagedCosignerGateInput = { /** * Unix timestamp after which swaps no longer require the managed cosigner. * Omit or set to null for an indefinite gate. */ expiresAt?: bigint | number | null; programId?: Address; }; type ResolvedManagedCosignerGate = { readonly programId: Address; readonly config: Address; readonly cosigner: Address; readonly activeCosigners: readonly Address[]; readonly expiresAt?: bigint | number | null; readonly [resolvedManagedCosignerGateBrand]: true; }; declare function isResolvedManagedCosignerGate(value: unknown): value is ResolvedManagedCosignerGate; /** * Resolves a Doppler-managed cosigner gate for launch construction. * * Each launch commits one signer account for deterministic swap account * reconstruction. The first active config entry is the deployment's canonical * signer for newly created launches. */ declare function resolveManagedCosignerGate$1(rpc: Rpc, input?: ResolveManagedCosignerGateInput): Promise; /** Default Doppler launch hook v1 program for devnet deployments. */ declare const DEVNET_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID: Address; declare const DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID: Address; declare const SEED_DOPPLER_LAUNCH_HOOK_V1_CONFIG = "cosigner_hook_config"; declare const MAX_COSIGNERS = 32; declare const GATE_EXPIRY_DISABLED = 0; declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1; declare const GATE_EXPIRY_SLOT = 2; declare const GATE_EXPIRY_PAYLOAD_VERSION = 1; declare const GATE_EXPIRY_HEADER_LEN = 10; declare const GATE_EXPIRY_PAYLOAD_LEN = 42; declare const DYNAMIC_FEE_SCHEDULE_MAGIC: Uint8Array; declare const DYNAMIC_FEE_SCHEDULE_VERSION = 1; declare const DYNAMIC_FEE_SCHEDULE_LEN = 32; declare const DYNAMIC_FEE_SCHEDULE_HEADER_LEN = 16; declare const DYNAMIC_FEE_SCHEDULE_MAX_BPS = 10000; type CosignerGateClock = { unixTimestamp?: bigint | number; slot?: bigint | number; }; type CosignerGateExpiry = { mode: number; value: bigint; cosigner?: Address; }; type CosignerGateExpiryArgs = { mode: typeof GATE_EXPIRY_DISABLED; value: bigint | number; cosigner?: never; } | { mode: typeof GATE_EXPIRY_UNIX_TIMESTAMP | typeof GATE_EXPIRY_SLOT; value: bigint | number; cosigner: Address; }; type CosignerGateStatus = { gateEnforced: boolean; expiryMode: number; expiryValue: bigint; reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode'; }; declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array; declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null; declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus; declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean; type DynamicFeeScheduleArgs = { /** * Unix timestamp for the schedule start. Use 0 to let the hook normalize the * start to the launch creation timestamp during BEFORE_CREATE. */ startingTime: bigint | number; startFeeBps: number; endFeeBps: number; durationSeconds: bigint | number; }; type DopplerLaunchHookV1PayloadArgs = { schedule?: DynamicFeeScheduleArgs | null; gateExpiry?: CosignerGateExpiryArgs | null; }; type DopplerLaunchHookV1RemainingAccounts = { signedHookRemainingAccounts: RemainingAccount[]; unsignedHookRemainingAccounts: Address[]; hookRemainingAccountsHash: Uint8Array; }; declare function validateDynamicFeeScheduleArgs(schedule: DynamicFeeScheduleArgs): { startingTime: bigint; durationSeconds: bigint; }; declare function encodeDynamicFeeSchedule(schedule: DynamicFeeScheduleArgs): Uint8Array; declare function encodeDopplerLaunchHookV1Payload(args?: DopplerLaunchHookV1PayloadArgs): Uint8Array; declare function encodeDynamicFeeCosignerGatePayload(args: { value: bigint | number; mode: Exclude; cosigner: Address; }): Uint8Array; declare function getDopplerLaunchHookV1RemainingAccounts({ namespace, config, cosigner, }: { namespace: Address; config?: Address; cosigner?: AddressOrTransactionSigner; }): DopplerLaunchHookV1RemainingAccounts; declare function getDopplerLaunchHookV1RemainingAccountAddresses({ namespace, config, cosigner, }: { namespace: Address; config?: Address; cosigner?: AddressOrTransactionSigner; }): Address[]; declare function isDynamicFeeSchedulePayload(payload: ReadonlyUint8Array): boolean; declare function getDopplerLaunchHookV1ConfigAddress(programId?: Address): Promise; declare const index$8_COSIGNER_CONFIG_DISCRIMINATOR: typeof COSIGNER_CONFIG_DISCRIMINATOR; type index$8_CosignerConfig = CosignerConfig; type index$8_CosignerConfigArgs = CosignerConfigArgs; type index$8_CosignerGateClock = CosignerGateClock; type index$8_CosignerGateExpiry = CosignerGateExpiry; type index$8_CosignerGateExpiryArgs = CosignerGateExpiryArgs; type index$8_CosignerGateStatus = CosignerGateStatus; declare const index$8_DEVNET_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID: typeof DEVNET_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__ARITHMETIC_OVERFLOW: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__ARITHMETIC_OVERFLOW; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_ALREADY_EXISTS: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_ALREADY_EXISTS; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_LIST_FULL: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_LIST_FULL; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_NOT_FOUND: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_NOT_FOUND; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_AUTHORITY: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_AUTHORITY; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_CONFIG: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_CONFIG; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_COSIGNER: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_COSIGNER; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_DURATION: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_DURATION; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_FEE: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_FEE; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_INSTRUCTION_DATA: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_INSTRUCTION_DATA; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_SCHEDULE_DATA: typeof DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_SCHEDULE_DATA; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ADDRESS: typeof DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ADDRESS; declare const index$8_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID: typeof DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID; declare const index$8_DYNAMIC_FEE_SCHEDULE_HEADER_LEN: typeof DYNAMIC_FEE_SCHEDULE_HEADER_LEN; declare const index$8_DYNAMIC_FEE_SCHEDULE_LEN: typeof DYNAMIC_FEE_SCHEDULE_LEN; declare const index$8_DYNAMIC_FEE_SCHEDULE_MAGIC: typeof DYNAMIC_FEE_SCHEDULE_MAGIC; declare const index$8_DYNAMIC_FEE_SCHEDULE_MAX_BPS: typeof DYNAMIC_FEE_SCHEDULE_MAX_BPS; declare const index$8_DYNAMIC_FEE_SCHEDULE_VERSION: typeof DYNAMIC_FEE_SCHEDULE_VERSION; type index$8_DopplerLaunchHookV1Account = DopplerLaunchHookV1Account; declare const index$8_DopplerLaunchHookV1Account: typeof DopplerLaunchHookV1Account; type index$8_DopplerLaunchHookV1Error = DopplerLaunchHookV1Error; type index$8_DopplerLaunchHookV1Instruction = DopplerLaunchHookV1Instruction; declare const index$8_DopplerLaunchHookV1Instruction: typeof DopplerLaunchHookV1Instruction; type index$8_DopplerLaunchHookV1PayloadArgs = DopplerLaunchHookV1PayloadArgs; type index$8_DopplerLaunchHookV1Plugin = DopplerLaunchHookV1Plugin; type index$8_DopplerLaunchHookV1PluginAccounts = DopplerLaunchHookV1PluginAccounts; type index$8_DopplerLaunchHookV1PluginInstructions = DopplerLaunchHookV1PluginInstructions; type index$8_DopplerLaunchHookV1PluginRequirements = DopplerLaunchHookV1PluginRequirements; type index$8_DopplerLaunchHookV1RemainingAccounts = DopplerLaunchHookV1RemainingAccounts; type index$8_DynamicFeeScheduleArgs = DynamicFeeScheduleArgs; declare const index$8_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED; declare const index$8_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN; declare const index$8_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN; declare const index$8_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION; declare const index$8_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT; declare const index$8_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP; declare const index$8_MAX_COSIGNERS: typeof MAX_COSIGNERS; type index$8_ParsedDopplerLaunchHookV1Instruction = ParsedDopplerLaunchHookV1Instruction; type index$8_ResolveManagedCosignerGateInput = ResolveManagedCosignerGateInput; type index$8_ResolvedManagedCosignerGate = ResolvedManagedCosignerGate; declare const index$8_SEED_DOPPLER_LAUNCH_HOOK_V1_CONFIG: typeof SEED_DOPPLER_LAUNCH_HOOK_V1_CONFIG; declare const index$8_decodeCosignerConfig: typeof decodeCosignerConfig; declare const index$8_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload; declare const index$8_dopplerLaunchHookV1Program: typeof dopplerLaunchHookV1Program; declare const index$8_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload; declare const index$8_encodeDopplerLaunchHookV1Payload: typeof encodeDopplerLaunchHookV1Payload; declare const index$8_encodeDynamicFeeCosignerGatePayload: typeof encodeDynamicFeeCosignerGatePayload; declare const index$8_encodeDynamicFeeSchedule: typeof encodeDynamicFeeSchedule; declare const index$8_fetchAllCosignerConfig: typeof fetchAllCosignerConfig; declare const index$8_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig; declare const index$8_fetchCosignerConfig: typeof fetchCosignerConfig; declare const index$8_fetchMaybeCosignerConfig: typeof fetchMaybeCosignerConfig; declare const index$8_getCosignerConfigCodec: typeof getCosignerConfigCodec; declare const index$8_getCosignerConfigDecoder: typeof getCosignerConfigDecoder; declare const index$8_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes; declare const index$8_getCosignerConfigEncoder: typeof getCosignerConfigEncoder; declare const index$8_getCosignerConfigSize: typeof getCosignerConfigSize; declare const index$8_getCosignerGateStatus: typeof getCosignerGateStatus; declare const index$8_getDopplerLaunchHookV1ConfigAddress: typeof getDopplerLaunchHookV1ConfigAddress; declare const index$8_getDopplerLaunchHookV1ErrorMessage: typeof getDopplerLaunchHookV1ErrorMessage; declare const index$8_getDopplerLaunchHookV1RemainingAccountAddresses: typeof getDopplerLaunchHookV1RemainingAccountAddresses; declare const index$8_getDopplerLaunchHookV1RemainingAccounts: typeof getDopplerLaunchHookV1RemainingAccounts; declare const index$8_identifyDopplerLaunchHookV1Account: typeof identifyDopplerLaunchHookV1Account; declare const index$8_identifyDopplerLaunchHookV1Instruction: typeof identifyDopplerLaunchHookV1Instruction; declare const index$8_isCosignerGateEnforced: typeof isCosignerGateEnforced; declare const index$8_isDopplerLaunchHookV1Error: typeof isDopplerLaunchHookV1Error; declare const index$8_isDynamicFeeSchedulePayload: typeof isDynamicFeeSchedulePayload; declare const index$8_isResolvedManagedCosignerGate: typeof isResolvedManagedCosignerGate; declare const index$8_parseDopplerLaunchHookV1Instruction: typeof parseDopplerLaunchHookV1Instruction; declare const index$8_validateDynamicFeeScheduleArgs: typeof validateDynamicFeeScheduleArgs; declare namespace index$8 { export { ADD_COSIGNER_DISCRIMINATOR$1 as ADD_COSIGNER_DISCRIMINATOR, type AddCosignerAsyncInput$1 as AddCosignerAsyncInput, type AddCosignerInput$1 as AddCosignerInput, type AddCosignerInstruction$1 as AddCosignerInstruction, type AddCosignerInstructionData$1 as AddCosignerInstructionData, type AddCosignerInstructionDataArgs$1 as AddCosignerInstructionDataArgs, index$8_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, type CosignerArg$1 as CosignerArg, type CosignerArgArgs$1 as CosignerArgArgs, type index$8_CosignerConfig as CosignerConfig, type index$8_CosignerConfigArgs as CosignerConfigArgs, type index$8_CosignerGateClock as CosignerGateClock, type index$8_CosignerGateExpiry as CosignerGateExpiry, type index$8_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$8_CosignerGateStatus as CosignerGateStatus, index$8_DEVNET_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID as DEVNET_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__ARITHMETIC_OVERFLOW as DOPPLER_LAUNCH_HOOK_V1_ERROR__ARITHMETIC_OVERFLOW, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_ALREADY_EXISTS as DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_ALREADY_EXISTS, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_LIST_FULL as DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_LIST_FULL, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_NOT_FOUND as DOPPLER_LAUNCH_HOOK_V1_ERROR__COSIGNER_NOT_FOUND, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_AUTHORITY as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_AUTHORITY, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_CONFIG as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_CONFIG, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_COSIGNER as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_COSIGNER, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_DURATION as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_DURATION, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_FEE as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_FEE, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_INSTRUCTION_DATA as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_INSTRUCTION_DATA, index$8_DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_SCHEDULE_DATA as DOPPLER_LAUNCH_HOOK_V1_ERROR__INVALID_SCHEDULE_DATA, index$8_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ADDRESS as DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ADDRESS, index$8_DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID as DOPPLER_LAUNCH_HOOK_V1_PROGRAM_ID, index$8_DYNAMIC_FEE_SCHEDULE_HEADER_LEN as DYNAMIC_FEE_SCHEDULE_HEADER_LEN, index$8_DYNAMIC_FEE_SCHEDULE_LEN as DYNAMIC_FEE_SCHEDULE_LEN, index$8_DYNAMIC_FEE_SCHEDULE_MAGIC as DYNAMIC_FEE_SCHEDULE_MAGIC, index$8_DYNAMIC_FEE_SCHEDULE_MAX_BPS as DYNAMIC_FEE_SCHEDULE_MAX_BPS, index$8_DYNAMIC_FEE_SCHEDULE_VERSION as DYNAMIC_FEE_SCHEDULE_VERSION, index$8_DopplerLaunchHookV1Account as DopplerLaunchHookV1Account, type index$8_DopplerLaunchHookV1Error as DopplerLaunchHookV1Error, index$8_DopplerLaunchHookV1Instruction as DopplerLaunchHookV1Instruction, type index$8_DopplerLaunchHookV1PayloadArgs as DopplerLaunchHookV1PayloadArgs, type index$8_DopplerLaunchHookV1Plugin as DopplerLaunchHookV1Plugin, type index$8_DopplerLaunchHookV1PluginAccounts as DopplerLaunchHookV1PluginAccounts, type index$8_DopplerLaunchHookV1PluginInstructions as DopplerLaunchHookV1PluginInstructions, type index$8_DopplerLaunchHookV1PluginRequirements as DopplerLaunchHookV1PluginRequirements, type index$8_DopplerLaunchHookV1RemainingAccounts as DopplerLaunchHookV1RemainingAccounts, type index$8_DynamicFeeScheduleArgs as DynamicFeeScheduleArgs, index$8_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$8_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$8_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$8_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$8_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$8_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigArgsArgs$2 as InitializeConfigArgsArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, index$8_MAX_COSIGNERS as MAX_COSIGNERS, type ParsedAddCosignerInstruction$1 as ParsedAddCosignerInstruction, type index$8_ParsedDopplerLaunchHookV1Instruction as ParsedDopplerLaunchHookV1Instruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedRemoveCosignerInstruction$1 as ParsedRemoveCosignerInstruction, type ParsedSetAuthorityInstruction$1 as ParsedSetAuthorityInstruction, REMOVE_COSIGNER_DISCRIMINATOR$1 as REMOVE_COSIGNER_DISCRIMINATOR, type RemoveCosignerAsyncInput$1 as RemoveCosignerAsyncInput, type RemoveCosignerInput$1 as RemoveCosignerInput, type RemoveCosignerInstruction$1 as RemoveCosignerInstruction, type RemoveCosignerInstructionData$1 as RemoveCosignerInstructionData, type RemoveCosignerInstructionDataArgs$1 as RemoveCosignerInstructionDataArgs, type index$8_ResolveManagedCosignerGateInput as ResolveManagedCosignerGateInput, type index$8_ResolvedManagedCosignerGate as ResolvedManagedCosignerGate, index$8_SEED_DOPPLER_LAUNCH_HOOK_V1_CONFIG as SEED_DOPPLER_LAUNCH_HOOK_V1_CONFIG, SET_AUTHORITY_DISCRIMINATOR$1 as SET_AUTHORITY_DISCRIMINATOR, type SetAuthorityArgs$1 as SetAuthorityArgs, type SetAuthorityArgsArgs$1 as SetAuthorityArgsArgs, type SetAuthorityAsyncInput$1 as SetAuthorityAsyncInput, type SetAuthorityInput$1 as SetAuthorityInput, type SetAuthorityInstruction$1 as SetAuthorityInstruction, type SetAuthorityInstructionData$1 as SetAuthorityInstructionData, type SetAuthorityInstructionDataArgs$1 as SetAuthorityInstructionDataArgs, index$8_decodeCosignerConfig as decodeCosignerConfig, index$8_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$8_dopplerLaunchHookV1Program as dopplerLaunchHookV1Program, index$8_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$8_encodeDopplerLaunchHookV1Payload as encodeDopplerLaunchHookV1Payload, index$8_encodeDynamicFeeCosignerGatePayload as encodeDynamicFeeCosignerGatePayload, index$8_encodeDynamicFeeSchedule as encodeDynamicFeeSchedule, index$8_fetchAllCosignerConfig as fetchAllCosignerConfig, index$8_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$8_fetchCosignerConfig as fetchCosignerConfig, index$8_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, getAddCosignerDiscriminatorBytes$1 as getAddCosignerDiscriminatorBytes, getAddCosignerInstruction$1 as getAddCosignerInstruction, getAddCosignerInstructionAsync$1 as getAddCosignerInstructionAsync, getAddCosignerInstructionDataCodec$1 as getAddCosignerInstructionDataCodec, getAddCosignerInstructionDataDecoder$1 as getAddCosignerInstructionDataDecoder, getAddCosignerInstructionDataEncoder$1 as getAddCosignerInstructionDataEncoder, getCosignerArgCodec$1 as getCosignerArgCodec, getCosignerArgDecoder$1 as getCosignerArgDecoder, getCosignerArgEncoder$1 as getCosignerArgEncoder, index$8_getCosignerConfigCodec as getCosignerConfigCodec, index$8_getCosignerConfigDecoder as getCosignerConfigDecoder, index$8_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$8_getCosignerConfigEncoder as getCosignerConfigEncoder, index$8_getCosignerConfigSize as getCosignerConfigSize, index$8_getCosignerGateStatus as getCosignerGateStatus, index$8_getDopplerLaunchHookV1ConfigAddress as getDopplerLaunchHookV1ConfigAddress, index$8_getDopplerLaunchHookV1ErrorMessage as getDopplerLaunchHookV1ErrorMessage, index$8_getDopplerLaunchHookV1RemainingAccountAddresses as getDopplerLaunchHookV1RemainingAccountAddresses, index$8_getDopplerLaunchHookV1RemainingAccounts as getDopplerLaunchHookV1RemainingAccounts, getInitializeConfigArgsCodec$2 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$2 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$2 as getInitializeConfigArgsEncoder, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getRemoveCosignerDiscriminatorBytes$1 as getRemoveCosignerDiscriminatorBytes, getRemoveCosignerInstruction$1 as getRemoveCosignerInstruction, getRemoveCosignerInstructionAsync$1 as getRemoveCosignerInstructionAsync, getRemoveCosignerInstructionDataCodec$1 as getRemoveCosignerInstructionDataCodec, getRemoveCosignerInstructionDataDecoder$1 as getRemoveCosignerInstructionDataDecoder, getRemoveCosignerInstructionDataEncoder$1 as getRemoveCosignerInstructionDataEncoder, getSetAuthorityArgsCodec$1 as getSetAuthorityArgsCodec, getSetAuthorityArgsDecoder$1 as getSetAuthorityArgsDecoder, getSetAuthorityArgsEncoder$1 as getSetAuthorityArgsEncoder, getSetAuthorityDiscriminatorBytes$1 as getSetAuthorityDiscriminatorBytes, getSetAuthorityInstruction$1 as getSetAuthorityInstruction, getSetAuthorityInstructionAsync$1 as getSetAuthorityInstructionAsync, getSetAuthorityInstructionDataCodec$1 as getSetAuthorityInstructionDataCodec, getSetAuthorityInstructionDataDecoder$1 as getSetAuthorityInstructionDataDecoder, getSetAuthorityInstructionDataEncoder$1 as getSetAuthorityInstructionDataEncoder, index$8_identifyDopplerLaunchHookV1Account as identifyDopplerLaunchHookV1Account, index$8_identifyDopplerLaunchHookV1Instruction as identifyDopplerLaunchHookV1Instruction, index$8_isCosignerGateEnforced as isCosignerGateEnforced, index$8_isDopplerLaunchHookV1Error as isDopplerLaunchHookV1Error, index$8_isDynamicFeeSchedulePayload as isDynamicFeeSchedulePayload, index$8_isResolvedManagedCosignerGate as isResolvedManagedCosignerGate, parseAddCosignerInstruction$1 as parseAddCosignerInstruction, index$8_parseDopplerLaunchHookV1Instruction as parseDopplerLaunchHookV1Instruction, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseRemoveCosignerInstruction$1 as parseRemoveCosignerInstruction, parseSetAuthorityInstruction$1 as parseSetAuthorityInstruction, resolveManagedCosignerGate$1 as resolveManagedCosignerGate, index$8_validateDynamicFeeScheduleArgs as validateDynamicFeeScheduleArgs }; } /** * 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 */ declare const HOOK_CONFIG_DISCRIMINATOR: Uint8Array; declare function getHookConfigDiscriminatorBytes(): ReadonlyUint8Array; type HookConfig = { discriminator: ReadonlyUint8Array; adminAuthority: Address; initializerProgram: Address; rehypeRouterProgram: Address; cosignerCount: number; bump: number; version: number; reserved: ReadonlyUint8Array; cosigners: Array
; }; type HookConfigArgs = { adminAuthority: Address; initializerProgram: Address; rehypeRouterProgram: Address; cosignerCount: number; bump: number; version: number; reserved: ReadonlyUint8Array; cosigners: Array
; }; /** Gets the encoder for {@link HookConfigArgs} account data. */ declare function getHookConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link HookConfig} account data. */ declare function getHookConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link HookConfig} account data. */ declare function getHookConfigCodec(): FixedSizeCodec; declare function decodeHookConfig(encodedAccount: EncodedAccount): Account; declare function decodeHookConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchHookConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeHookConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllHookConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeHookConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getHookConfigSize(): number; /** * 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 */ /** InvalidInstructionData: Invalid instruction data */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_INSTRUCTION_DATA = 6000; /** InvalidPayload: Invalid hook payload */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_PAYLOAD = 6001; /** InvalidFeeSchedule: Invalid dynamic fee schedule */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE_SCHEDULE = 6002; /** InvalidFee: Invalid swap fee */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE = 6003; /** ArithmeticOverflow: Arithmetic overflow */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__ARITHMETIC_OVERFLOW = 6004; /** InvalidAuthority: Invalid hook authority */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_AUTHORITY = 6005; /** InvalidConfig: Invalid hook config */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_CONFIG = 6006; /** InvalidCosigner: Invalid cosigner */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_COSIGNER = 6007; /** CosignerAlreadyExists: Cosigner already exists */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_ALREADY_EXISTS = 6008; /** CosignerNotFound: Cosigner not found */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_NOT_FOUND = 6009; /** CosignerListFull: Cosigner list is full */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_LIST_FULL = 6010; /** MissingAccount: Missing hook account */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__MISSING_ACCOUNT = 6011; /** UnexpectedAccount: Unexpected hook account */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__UNEXPECTED_ACCOUNT = 6012; /** InvalidLaunchContext: Invalid initializer launch context */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_LAUNCH_CONTEXT = 6013; /** InvalidRehypeState: Invalid Rehype state */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_REHYPE_STATE = 6014; /** SettlementIncomplete: Rehype settlement is incomplete */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__SETTLEMENT_INCOMPLETE = 6015; /** CosignerRequired: Cosigner approval is required */ declare const DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_REQUIRED = 6016; type DopplerLaunchHookV2Error = typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__ARITHMETIC_OVERFLOW | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_ALREADY_EXISTS | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_LIST_FULL | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_NOT_FOUND | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_REQUIRED | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_AUTHORITY | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_CONFIG | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_COSIGNER | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE_SCHEDULE | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_INSTRUCTION_DATA | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_LAUNCH_CONTEXT | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_PAYLOAD | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_REHYPE_STATE | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__MISSING_ACCOUNT | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__SETTLEMENT_INCOMPLETE | typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__UNEXPECTED_ACCOUNT; declare function getDopplerLaunchHookV2ErrorMessage(code: DopplerLaunchHookV2Error): string; declare function isDopplerLaunchHookV2Error(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * 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 */ declare const DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ADDRESS: Address<"7ZueM1Tef2QA5zrFtVJMDM8MFqkoeG8fog1mXPgmLGH1">; declare enum DopplerLaunchHookV2Account { HookConfig = 0 } declare function identifyDopplerLaunchHookV2Account(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerLaunchHookV2Account; declare enum DopplerLaunchHookV2Instruction { AddCosigner = 0, InitializeConfig = 1, RemoveCosigner = 2, SetAuthority = 3 } declare function identifyDopplerLaunchHookV2Instruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerLaunchHookV2Instruction; type ParsedDopplerLaunchHookV2Instruction = ({ instructionType: DopplerLaunchHookV2Instruction.AddCosigner; } & ParsedAddCosignerInstruction) | ({ instructionType: DopplerLaunchHookV2Instruction.InitializeConfig; } & ParsedInitializeConfigInstruction) | ({ instructionType: DopplerLaunchHookV2Instruction.RemoveCosigner; } & ParsedRemoveCosignerInstruction) | ({ instructionType: DopplerLaunchHookV2Instruction.SetAuthority; } & ParsedSetAuthorityInstruction); declare function parseDopplerLaunchHookV2Instruction(instruction: Instruction & InstructionWithData): ParsedDopplerLaunchHookV2Instruction; type DopplerLaunchHookV2Plugin = { accounts: DopplerLaunchHookV2PluginAccounts; instructions: DopplerLaunchHookV2PluginInstructions; }; type DopplerLaunchHookV2PluginAccounts = { hookConfig: ReturnType & SelfFetchFunctions; }; type DopplerLaunchHookV2PluginInstructions = { addCosigner: (input: AddCosignerAsyncInput) => ReturnType & SelfPlanAndSendFunctions; initializeConfig: (input: MakeOptional$3) => ReturnType & SelfPlanAndSendFunctions; removeCosigner: (input: RemoveCosignerAsyncInput) => ReturnType & SelfPlanAndSendFunctions; setAuthority: (input: SetAuthorityAsyncInput) => ReturnType & SelfPlanAndSendFunctions; }; type DopplerLaunchHookV2PluginRequirements = ClientWithRpc & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending; declare function dopplerLaunchHookV2Program(): (client: T) => T & { dopplerLaunchHookV2: DopplerLaunchHookV2Plugin; }; type MakeOptional$3 = Omit & Partial>; /** * 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 */ declare const ADD_COSIGNER_DISCRIMINATOR: Uint8Array; declare function getAddCosignerDiscriminatorBytes(): ReadonlyUint8Array; type AddCosignerInstruction = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, ...TRemainingAccounts ]>; type AddCosignerInstructionData = { discriminator: ReadonlyUint8Array; cosigner: Address; }; type AddCosignerInstructionDataArgs = { cosigner: Address; }; declare function getAddCosignerInstructionDataEncoder(): FixedSizeEncoder; declare function getAddCosignerInstructionDataDecoder(): FixedSizeDecoder; declare function getAddCosignerInstructionDataCodec(): FixedSizeCodec; type AddCosignerAsyncInput = { adminAuthority: TransactionSigner; config?: Address; cosigner: AddCosignerInstructionDataArgs['cosigner']; }; declare function getAddCosignerInstructionAsync(input: AddCosignerAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type AddCosignerInput = { adminAuthority: TransactionSigner; config: Address; cosigner: AddCosignerInstructionDataArgs['cosigner']; }; declare function getAddCosignerInstruction(input: AddCosignerInput, config?: { programAddress?: TProgramAddress; }): AddCosignerInstruction; type ParsedAddCosignerInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; config: TAccountMetas[1]; }; data: AddCosignerInstructionData; }; declare function parseAddCosignerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedAddCosignerInstruction; /** * 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 */ declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array; declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array; type InitializeConfigInstruction = string, TAccountAdminAuthority extends string | AccountMeta = string, TAccountInitializerProgram extends string | AccountMeta = string, TAccountRehypeRouterProgram extends string | AccountMeta = string, TAccountConfig extends string | AccountMeta = string, TAccountProgramData extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountInitializerProgram extends string ? ReadonlyAccount : TAccountInitializerProgram, TAccountRehypeRouterProgram extends string ? ReadonlyAccount : TAccountRehypeRouterProgram, TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountProgramData extends string ? ReadonlyAccount : TAccountProgramData, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeConfigInstructionData = { discriminator: ReadonlyUint8Array; cosigners: Array
; }; type InitializeConfigInstructionDataArgs = { cosigners: Array
; }; declare function getInitializeConfigInstructionDataEncoder(): Encoder; declare function getInitializeConfigInstructionDataDecoder(): Decoder; declare function getInitializeConfigInstructionDataCodec(): Codec; type InitializeConfigAsyncInput = { payer: TransactionSigner; adminAuthority: TransactionSigner; initializerProgram: Address; rehypeRouterProgram: Address; config?: Address; programData: Address; systemProgram?: Address; cosigners: InitializeConfigInstructionDataArgs['cosigners']; }; declare function getInitializeConfigInstructionAsync(input: InitializeConfigAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeConfigInput = { payer: TransactionSigner; adminAuthority: TransactionSigner; initializerProgram: Address; rehypeRouterProgram: Address; config: Address; programData: Address; systemProgram?: Address; cosigners: InitializeConfigInstructionDataArgs['cosigners']; }; declare function getInitializeConfigInstruction(input: InitializeConfigInput, config?: { programAddress?: TProgramAddress; }): InitializeConfigInstruction; type ParsedInitializeConfigInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; adminAuthority: TAccountMetas[1]; initializerProgram: TAccountMetas[2]; rehypeRouterProgram: TAccountMetas[3]; config: TAccountMetas[4]; programData: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: InitializeConfigInstructionData; }; declare function parseInitializeConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeConfigInstruction; /** * 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 */ declare const REMOVE_COSIGNER_DISCRIMINATOR: Uint8Array; declare function getRemoveCosignerDiscriminatorBytes(): ReadonlyUint8Array; type RemoveCosignerInstruction = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, ...TRemainingAccounts ]>; type RemoveCosignerInstructionData = { discriminator: ReadonlyUint8Array; cosigner: Address; }; type RemoveCosignerInstructionDataArgs = { cosigner: Address; }; declare function getRemoveCosignerInstructionDataEncoder(): FixedSizeEncoder; declare function getRemoveCosignerInstructionDataDecoder(): FixedSizeDecoder; declare function getRemoveCosignerInstructionDataCodec(): FixedSizeCodec; type RemoveCosignerAsyncInput = { adminAuthority: TransactionSigner; config?: Address; cosigner: RemoveCosignerInstructionDataArgs['cosigner']; }; declare function getRemoveCosignerInstructionAsync(input: RemoveCosignerAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type RemoveCosignerInput = { adminAuthority: TransactionSigner; config: Address; cosigner: RemoveCosignerInstructionDataArgs['cosigner']; }; declare function getRemoveCosignerInstruction(input: RemoveCosignerInput, config?: { programAddress?: TProgramAddress; }): RemoveCosignerInstruction; type ParsedRemoveCosignerInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; config: TAccountMetas[1]; }; data: RemoveCosignerInstructionData; }; declare function parseRemoveCosignerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRemoveCosignerInstruction; /** * 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 */ declare const SET_AUTHORITY_DISCRIMINATOR: Uint8Array; declare function getSetAuthorityDiscriminatorBytes(): ReadonlyUint8Array; type SetAuthorityInstruction = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountConfig extends string ? WritableAccount : TAccountConfig, ...TRemainingAccounts ]>; type SetAuthorityInstructionData = { discriminator: ReadonlyUint8Array; adminAuthority: Address; }; type SetAuthorityInstructionDataArgs = { adminAuthority: Address; }; declare function getSetAuthorityInstructionDataEncoder(): FixedSizeEncoder; declare function getSetAuthorityInstructionDataDecoder(): FixedSizeDecoder; declare function getSetAuthorityInstructionDataCodec(): FixedSizeCodec; type SetAuthorityAsyncInput = { adminAuthority: TransactionSigner; config?: Address; adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority']; }; declare function getSetAuthorityInstructionAsync(input: SetAuthorityAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type SetAuthorityInput = { adminAuthority: TransactionSigner; config: Address; adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority']; }; declare function getSetAuthorityInstruction(input: SetAuthorityInput, config?: { programAddress?: TProgramAddress; }): SetAuthorityInstruction; type ParsedSetAuthorityInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; config: TAccountMetas[1]; }; data: SetAuthorityInstructionData; }; declare function parseSetAuthorityInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetAuthorityInstruction; /** * 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 */ type CosignerArg = { cosigner: Address; }; type CosignerArgArgs = CosignerArg; declare function getCosignerArgEncoder(): FixedSizeEncoder; declare function getCosignerArgDecoder(): FixedSizeDecoder; declare function getCosignerArgCodec(): FixedSizeCodec; /** * 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 */ type InitializeConfigArgs$1 = { cosigners: Array
; }; type InitializeConfigArgsArgs$1 = InitializeConfigArgs$1; declare function getInitializeConfigArgsEncoder$1(): Encoder; declare function getInitializeConfigArgsDecoder$1(): Decoder; declare function getInitializeConfigArgsCodec$1(): Codec; /** * 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 */ type SetAuthorityArgs = { adminAuthority: Address; }; type SetAuthorityArgsArgs = SetAuthorityArgs; declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder; declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder; declare function getSetAuthorityArgsCodec(): FixedSizeCodec; declare const resolvedManagedCosignerGateV2Brand: unique symbol; type ResolveManagedCosignerGateV2Input = { /** Unix timestamp after which the gate is inactive. Omit for no expiry. */ expiresAt?: bigint | number | null; programId?: Address; initializerProgram?: Address; feeRehypothecationRouterProgram?: Address; }; type ResolvedManagedCosignerGateV2 = { readonly programId: Address; readonly config: Address; readonly cosigner: Address; readonly activeCosigners: readonly Address[]; readonly expiresAt: bigint; readonly [resolvedManagedCosignerGateV2Brand]: true; }; declare function isResolvedManagedCosignerGateV2(value: unknown): value is ResolvedManagedCosignerGateV2; declare function resolveManagedCosignerGate(rpc: Rpc, input?: ResolveManagedCosignerGateV2Input): Promise; declare const DEVNET_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID: Address; declare const DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID: Address; declare const DOPPLER_LAUNCH_HOOK_V2_CONFIG_SEED = "doppler_launch_hook_v2"; declare const DOPPLER_LAUNCH_HOOK_V2_MAX_COSIGNERS = 32; declare const DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_MAGIC: Uint8Array; declare const DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_VERSION = 2; declare const DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_LEN = 112; declare const DOPPLER_LAUNCH_HOOK_V2_FEATURE_DYNAMIC_FEE: number; declare const DOPPLER_LAUNCH_HOOK_V2_FEATURE_COSIGN_GATE: number; declare const DOPPLER_LAUNCH_HOOK_V2_FEATURE_FEE_REHYPOTHECATION: number; declare const DOPPLER_LAUNCH_HOOK_V2_FEATURE_MASK: number; declare const DOPPLER_LAUNCH_HOOK_V2_GATE_DISABLED = 0; declare const DOPPLER_LAUNCH_HOOK_V2_GATE_UNIX_TIMESTAMP = 1; declare const DOPPLER_LAUNCH_HOOK_V2_GATE_SLOT = 2; type DopplerLaunchHookV2GateArgs = { mode: typeof DOPPLER_LAUNCH_HOOK_V2_GATE_UNIX_TIMESTAMP | typeof DOPPLER_LAUNCH_HOOK_V2_GATE_SLOT; value: bigint | number; cosigner: Address; }; type DopplerLaunchHookV2PayloadArgs = { dynamicFee?: DynamicFeeScheduleArgs | null; cosignerGate?: DopplerLaunchHookV2GateArgs | null; feeRehypothecationState?: Address | null; }; type DecodedDopplerLaunchHookV2Payload = { featureFlags: number; dynamicFee: DynamicFeeScheduleArgs | null; cosignerGate: DopplerLaunchHookV2GateArgs | null; feeRehypothecationState: Address | null; }; type DopplerLaunchHookV2RemainingAccounts = { signedHookRemainingAccounts: RemainingAccount[]; unsignedHookRemainingAccounts: Address[]; hookRemainingAccountsHash: Uint8Array; }; declare function encodeDopplerLaunchHookV2Payload(args?: DopplerLaunchHookV2PayloadArgs): Uint8Array; declare function decodeDopplerLaunchHookV2Payload(payload: ReadonlyUint8Array): DecodedDopplerLaunchHookV2Payload; declare function getDopplerLaunchHookV2RemainingAccounts({ namespace, config, feeRehypothecationState, settlementSigner, cosigner, }: { namespace: Address; config: Address; feeRehypothecationState?: Address; settlementSigner?: Address; cosigner?: AddressOrTransactionSigner; }): DopplerLaunchHookV2RemainingAccounts; declare function getDopplerLaunchHookV2ConfigAddress(programId?: Address): Promise; declare const index$7_ADD_COSIGNER_DISCRIMINATOR: typeof ADD_COSIGNER_DISCRIMINATOR; type index$7_AddCosignerAsyncInput = AddCosignerAsyncInput; type index$7_AddCosignerInput = AddCosignerInput; type index$7_AddCosignerInstruction = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = AddCosignerInstruction; type index$7_AddCosignerInstructionData = AddCosignerInstructionData; type index$7_AddCosignerInstructionDataArgs = AddCosignerInstructionDataArgs; type index$7_CosignerArg = CosignerArg; type index$7_CosignerArgArgs = CosignerArgArgs; declare const index$7_DEVNET_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID: typeof DEVNET_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_CONFIG_SEED: typeof DOPPLER_LAUNCH_HOOK_V2_CONFIG_SEED; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__ARITHMETIC_OVERFLOW: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__ARITHMETIC_OVERFLOW; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_ALREADY_EXISTS: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_ALREADY_EXISTS; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_LIST_FULL: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_LIST_FULL; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_NOT_FOUND: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_NOT_FOUND; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_REQUIRED: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_REQUIRED; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_AUTHORITY: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_AUTHORITY; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_CONFIG: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_CONFIG; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_COSIGNER: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_COSIGNER; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE_SCHEDULE: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE_SCHEDULE; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_INSTRUCTION_DATA: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_INSTRUCTION_DATA; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_LAUNCH_CONTEXT: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_LAUNCH_CONTEXT; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_PAYLOAD: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_PAYLOAD; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_REHYPE_STATE: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_REHYPE_STATE; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__MISSING_ACCOUNT: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__MISSING_ACCOUNT; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__SETTLEMENT_INCOMPLETE: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__SETTLEMENT_INCOMPLETE; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__UNEXPECTED_ACCOUNT: typeof DOPPLER_LAUNCH_HOOK_V2_ERROR__UNEXPECTED_ACCOUNT; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_COSIGN_GATE: typeof DOPPLER_LAUNCH_HOOK_V2_FEATURE_COSIGN_GATE; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_DYNAMIC_FEE: typeof DOPPLER_LAUNCH_HOOK_V2_FEATURE_DYNAMIC_FEE; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_FEE_REHYPOTHECATION: typeof DOPPLER_LAUNCH_HOOK_V2_FEATURE_FEE_REHYPOTHECATION; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_MASK: typeof DOPPLER_LAUNCH_HOOK_V2_FEATURE_MASK; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_GATE_DISABLED: typeof DOPPLER_LAUNCH_HOOK_V2_GATE_DISABLED; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_GATE_SLOT: typeof DOPPLER_LAUNCH_HOOK_V2_GATE_SLOT; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_GATE_UNIX_TIMESTAMP: typeof DOPPLER_LAUNCH_HOOK_V2_GATE_UNIX_TIMESTAMP; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_MAX_COSIGNERS: typeof DOPPLER_LAUNCH_HOOK_V2_MAX_COSIGNERS; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_LEN: typeof DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_LEN; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_MAGIC: typeof DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_MAGIC; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_VERSION: typeof DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_VERSION; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ADDRESS: typeof DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ADDRESS; declare const index$7_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID: typeof DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID; type index$7_DecodedDopplerLaunchHookV2Payload = DecodedDopplerLaunchHookV2Payload; type index$7_DopplerLaunchHookV2Account = DopplerLaunchHookV2Account; declare const index$7_DopplerLaunchHookV2Account: typeof DopplerLaunchHookV2Account; type index$7_DopplerLaunchHookV2Error = DopplerLaunchHookV2Error; type index$7_DopplerLaunchHookV2GateArgs = DopplerLaunchHookV2GateArgs; type index$7_DopplerLaunchHookV2Instruction = DopplerLaunchHookV2Instruction; declare const index$7_DopplerLaunchHookV2Instruction: typeof DopplerLaunchHookV2Instruction; type index$7_DopplerLaunchHookV2PayloadArgs = DopplerLaunchHookV2PayloadArgs; type index$7_DopplerLaunchHookV2Plugin = DopplerLaunchHookV2Plugin; type index$7_DopplerLaunchHookV2PluginAccounts = DopplerLaunchHookV2PluginAccounts; type index$7_DopplerLaunchHookV2PluginInstructions = DopplerLaunchHookV2PluginInstructions; type index$7_DopplerLaunchHookV2PluginRequirements = DopplerLaunchHookV2PluginRequirements; type index$7_DopplerLaunchHookV2RemainingAccounts = DopplerLaunchHookV2RemainingAccounts; declare const index$7_HOOK_CONFIG_DISCRIMINATOR: typeof HOOK_CONFIG_DISCRIMINATOR; type index$7_HookConfig = HookConfig; type index$7_HookConfigArgs = HookConfigArgs; declare const index$7_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR; type index$7_InitializeConfigAsyncInput = InitializeConfigAsyncInput; type index$7_InitializeConfigInput = InitializeConfigInput; type index$7_InitializeConfigInstruction = string, TAccountAdminAuthority extends string | AccountMeta = string, TAccountInitializerProgram extends string | AccountMeta = string, TAccountRehypeRouterProgram extends string | AccountMeta = string, TAccountConfig extends string | AccountMeta = string, TAccountProgramData extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = InitializeConfigInstruction; type index$7_InitializeConfigInstructionData = InitializeConfigInstructionData; type index$7_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs; type index$7_ParsedAddCosignerInstruction = ParsedAddCosignerInstruction; type index$7_ParsedDopplerLaunchHookV2Instruction = ParsedDopplerLaunchHookV2Instruction; type index$7_ParsedInitializeConfigInstruction = ParsedInitializeConfigInstruction; type index$7_ParsedRemoveCosignerInstruction = ParsedRemoveCosignerInstruction; type index$7_ParsedSetAuthorityInstruction = ParsedSetAuthorityInstruction; declare const index$7_REMOVE_COSIGNER_DISCRIMINATOR: typeof REMOVE_COSIGNER_DISCRIMINATOR; type index$7_RemoveCosignerAsyncInput = RemoveCosignerAsyncInput; type index$7_RemoveCosignerInput = RemoveCosignerInput; type index$7_RemoveCosignerInstruction = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = RemoveCosignerInstruction; type index$7_RemoveCosignerInstructionData = RemoveCosignerInstructionData; type index$7_RemoveCosignerInstructionDataArgs = RemoveCosignerInstructionDataArgs; type index$7_ResolveManagedCosignerGateV2Input = ResolveManagedCosignerGateV2Input; type index$7_ResolvedManagedCosignerGateV2 = ResolvedManagedCosignerGateV2; declare const index$7_SET_AUTHORITY_DISCRIMINATOR: typeof SET_AUTHORITY_DISCRIMINATOR; type index$7_SetAuthorityArgs = SetAuthorityArgs; type index$7_SetAuthorityArgsArgs = SetAuthorityArgsArgs; type index$7_SetAuthorityAsyncInput = SetAuthorityAsyncInput; type index$7_SetAuthorityInput = SetAuthorityInput; type index$7_SetAuthorityInstruction = string, TAccountConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = SetAuthorityInstruction; type index$7_SetAuthorityInstructionData = SetAuthorityInstructionData; type index$7_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs; declare const index$7_decodeDopplerLaunchHookV2Payload: typeof decodeDopplerLaunchHookV2Payload; declare const index$7_decodeHookConfig: typeof decodeHookConfig; declare const index$7_dopplerLaunchHookV2Program: typeof dopplerLaunchHookV2Program; declare const index$7_encodeDopplerLaunchHookV2Payload: typeof encodeDopplerLaunchHookV2Payload; declare const index$7_fetchAllHookConfig: typeof fetchAllHookConfig; declare const index$7_fetchAllMaybeHookConfig: typeof fetchAllMaybeHookConfig; declare const index$7_fetchHookConfig: typeof fetchHookConfig; declare const index$7_fetchMaybeHookConfig: typeof fetchMaybeHookConfig; declare const index$7_getAddCosignerDiscriminatorBytes: typeof getAddCosignerDiscriminatorBytes; declare const index$7_getAddCosignerInstruction: typeof getAddCosignerInstruction; declare const index$7_getAddCosignerInstructionAsync: typeof getAddCosignerInstructionAsync; declare const index$7_getAddCosignerInstructionDataCodec: typeof getAddCosignerInstructionDataCodec; declare const index$7_getAddCosignerInstructionDataDecoder: typeof getAddCosignerInstructionDataDecoder; declare const index$7_getAddCosignerInstructionDataEncoder: typeof getAddCosignerInstructionDataEncoder; declare const index$7_getCosignerArgCodec: typeof getCosignerArgCodec; declare const index$7_getCosignerArgDecoder: typeof getCosignerArgDecoder; declare const index$7_getCosignerArgEncoder: typeof getCosignerArgEncoder; declare const index$7_getDopplerLaunchHookV2ConfigAddress: typeof getDopplerLaunchHookV2ConfigAddress; declare const index$7_getDopplerLaunchHookV2ErrorMessage: typeof getDopplerLaunchHookV2ErrorMessage; declare const index$7_getDopplerLaunchHookV2RemainingAccounts: typeof getDopplerLaunchHookV2RemainingAccounts; declare const index$7_getHookConfigCodec: typeof getHookConfigCodec; declare const index$7_getHookConfigDecoder: typeof getHookConfigDecoder; declare const index$7_getHookConfigDiscriminatorBytes: typeof getHookConfigDiscriminatorBytes; declare const index$7_getHookConfigEncoder: typeof getHookConfigEncoder; declare const index$7_getHookConfigSize: typeof getHookConfigSize; declare const index$7_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes; declare const index$7_getInitializeConfigInstruction: typeof getInitializeConfigInstruction; declare const index$7_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync; declare const index$7_getInitializeConfigInstructionDataCodec: typeof getInitializeConfigInstructionDataCodec; declare const index$7_getInitializeConfigInstructionDataDecoder: typeof getInitializeConfigInstructionDataDecoder; declare const index$7_getInitializeConfigInstructionDataEncoder: typeof getInitializeConfigInstructionDataEncoder; declare const index$7_getRemoveCosignerDiscriminatorBytes: typeof getRemoveCosignerDiscriminatorBytes; declare const index$7_getRemoveCosignerInstruction: typeof getRemoveCosignerInstruction; declare const index$7_getRemoveCosignerInstructionAsync: typeof getRemoveCosignerInstructionAsync; declare const index$7_getRemoveCosignerInstructionDataCodec: typeof getRemoveCosignerInstructionDataCodec; declare const index$7_getRemoveCosignerInstructionDataDecoder: typeof getRemoveCosignerInstructionDataDecoder; declare const index$7_getRemoveCosignerInstructionDataEncoder: typeof getRemoveCosignerInstructionDataEncoder; declare const index$7_getSetAuthorityArgsCodec: typeof getSetAuthorityArgsCodec; declare const index$7_getSetAuthorityArgsDecoder: typeof getSetAuthorityArgsDecoder; declare const index$7_getSetAuthorityArgsEncoder: typeof getSetAuthorityArgsEncoder; declare const index$7_getSetAuthorityDiscriminatorBytes: typeof getSetAuthorityDiscriminatorBytes; declare const index$7_getSetAuthorityInstruction: typeof getSetAuthorityInstruction; declare const index$7_getSetAuthorityInstructionAsync: typeof getSetAuthorityInstructionAsync; declare const index$7_getSetAuthorityInstructionDataCodec: typeof getSetAuthorityInstructionDataCodec; declare const index$7_getSetAuthorityInstructionDataDecoder: typeof getSetAuthorityInstructionDataDecoder; declare const index$7_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder; declare const index$7_identifyDopplerLaunchHookV2Account: typeof identifyDopplerLaunchHookV2Account; declare const index$7_identifyDopplerLaunchHookV2Instruction: typeof identifyDopplerLaunchHookV2Instruction; declare const index$7_isDopplerLaunchHookV2Error: typeof isDopplerLaunchHookV2Error; declare const index$7_isResolvedManagedCosignerGateV2: typeof isResolvedManagedCosignerGateV2; declare const index$7_parseAddCosignerInstruction: typeof parseAddCosignerInstruction; declare const index$7_parseDopplerLaunchHookV2Instruction: typeof parseDopplerLaunchHookV2Instruction; declare const index$7_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction; declare const index$7_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction; declare const index$7_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction; declare const index$7_resolveManagedCosignerGate: typeof resolveManagedCosignerGate; declare namespace index$7 { export { index$7_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$7_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$7_AddCosignerInput as AddCosignerInput, type index$7_AddCosignerInstruction as AddCosignerInstruction, type index$7_AddCosignerInstructionData as AddCosignerInstructionData, type index$7_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, type index$7_CosignerArg as CosignerArg, type index$7_CosignerArgArgs as CosignerArgArgs, index$7_DEVNET_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID as DEVNET_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID, index$7_DOPPLER_LAUNCH_HOOK_V2_CONFIG_SEED as DOPPLER_LAUNCH_HOOK_V2_CONFIG_SEED, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__ARITHMETIC_OVERFLOW as DOPPLER_LAUNCH_HOOK_V2_ERROR__ARITHMETIC_OVERFLOW, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_ALREADY_EXISTS as DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_ALREADY_EXISTS, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_LIST_FULL as DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_LIST_FULL, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_NOT_FOUND as DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_NOT_FOUND, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_REQUIRED as DOPPLER_LAUNCH_HOOK_V2_ERROR__COSIGNER_REQUIRED, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_AUTHORITY as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_AUTHORITY, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_CONFIG as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_CONFIG, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_COSIGNER as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_COSIGNER, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE_SCHEDULE as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_FEE_SCHEDULE, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_INSTRUCTION_DATA as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_INSTRUCTION_DATA, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_LAUNCH_CONTEXT as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_LAUNCH_CONTEXT, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_PAYLOAD as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_PAYLOAD, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_REHYPE_STATE as DOPPLER_LAUNCH_HOOK_V2_ERROR__INVALID_REHYPE_STATE, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__MISSING_ACCOUNT as DOPPLER_LAUNCH_HOOK_V2_ERROR__MISSING_ACCOUNT, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__SETTLEMENT_INCOMPLETE as DOPPLER_LAUNCH_HOOK_V2_ERROR__SETTLEMENT_INCOMPLETE, index$7_DOPPLER_LAUNCH_HOOK_V2_ERROR__UNEXPECTED_ACCOUNT as DOPPLER_LAUNCH_HOOK_V2_ERROR__UNEXPECTED_ACCOUNT, index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_COSIGN_GATE as DOPPLER_LAUNCH_HOOK_V2_FEATURE_COSIGN_GATE, index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_DYNAMIC_FEE as DOPPLER_LAUNCH_HOOK_V2_FEATURE_DYNAMIC_FEE, index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_FEE_REHYPOTHECATION as DOPPLER_LAUNCH_HOOK_V2_FEATURE_FEE_REHYPOTHECATION, index$7_DOPPLER_LAUNCH_HOOK_V2_FEATURE_MASK as DOPPLER_LAUNCH_HOOK_V2_FEATURE_MASK, index$7_DOPPLER_LAUNCH_HOOK_V2_GATE_DISABLED as DOPPLER_LAUNCH_HOOK_V2_GATE_DISABLED, index$7_DOPPLER_LAUNCH_HOOK_V2_GATE_SLOT as DOPPLER_LAUNCH_HOOK_V2_GATE_SLOT, index$7_DOPPLER_LAUNCH_HOOK_V2_GATE_UNIX_TIMESTAMP as DOPPLER_LAUNCH_HOOK_V2_GATE_UNIX_TIMESTAMP, index$7_DOPPLER_LAUNCH_HOOK_V2_MAX_COSIGNERS as DOPPLER_LAUNCH_HOOK_V2_MAX_COSIGNERS, index$7_DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_LEN as DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_LEN, index$7_DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_MAGIC as DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_MAGIC, index$7_DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_VERSION as DOPPLER_LAUNCH_HOOK_V2_PAYLOAD_VERSION, index$7_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ADDRESS as DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ADDRESS, index$7_DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID as DOPPLER_LAUNCH_HOOK_V2_PROGRAM_ID, type index$7_DecodedDopplerLaunchHookV2Payload as DecodedDopplerLaunchHookV2Payload, index$7_DopplerLaunchHookV2Account as DopplerLaunchHookV2Account, type index$7_DopplerLaunchHookV2Error as DopplerLaunchHookV2Error, type index$7_DopplerLaunchHookV2GateArgs as DopplerLaunchHookV2GateArgs, index$7_DopplerLaunchHookV2Instruction as DopplerLaunchHookV2Instruction, type index$7_DopplerLaunchHookV2PayloadArgs as DopplerLaunchHookV2PayloadArgs, type index$7_DopplerLaunchHookV2Plugin as DopplerLaunchHookV2Plugin, type index$7_DopplerLaunchHookV2PluginAccounts as DopplerLaunchHookV2PluginAccounts, type index$7_DopplerLaunchHookV2PluginInstructions as DopplerLaunchHookV2PluginInstructions, type index$7_DopplerLaunchHookV2PluginRequirements as DopplerLaunchHookV2PluginRequirements, type index$7_DopplerLaunchHookV2RemainingAccounts as DopplerLaunchHookV2RemainingAccounts, index$7_HOOK_CONFIG_DISCRIMINATOR as HOOK_CONFIG_DISCRIMINATOR, type index$7_HookConfig as HookConfig, type index$7_HookConfigArgs as HookConfigArgs, index$7_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$7_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$7_InitializeConfigInput as InitializeConfigInput, type index$7_InitializeConfigInstruction as InitializeConfigInstruction, type index$7_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$7_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, type index$7_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$7_ParsedDopplerLaunchHookV2Instruction as ParsedDopplerLaunchHookV2Instruction, type index$7_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$7_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$7_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$7_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$7_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$7_RemoveCosignerInput as RemoveCosignerInput, type index$7_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$7_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$7_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, type index$7_ResolveManagedCosignerGateV2Input as ResolveManagedCosignerGateV2Input, type index$7_ResolvedManagedCosignerGateV2 as ResolvedManagedCosignerGateV2, index$7_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$7_SetAuthorityArgs as SetAuthorityArgs, type index$7_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$7_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$7_SetAuthorityInput as SetAuthorityInput, type index$7_SetAuthorityInstruction as SetAuthorityInstruction, type index$7_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$7_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$7_decodeDopplerLaunchHookV2Payload as decodeDopplerLaunchHookV2Payload, index$7_decodeHookConfig as decodeHookConfig, index$7_dopplerLaunchHookV2Program as dopplerLaunchHookV2Program, index$7_encodeDopplerLaunchHookV2Payload as encodeDopplerLaunchHookV2Payload, index$7_fetchAllHookConfig as fetchAllHookConfig, index$7_fetchAllMaybeHookConfig as fetchAllMaybeHookConfig, index$7_fetchHookConfig as fetchHookConfig, index$7_fetchMaybeHookConfig as fetchMaybeHookConfig, index$7_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$7_getAddCosignerInstruction as getAddCosignerInstruction, index$7_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$7_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$7_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$7_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$7_getCosignerArgCodec as getCosignerArgCodec, index$7_getCosignerArgDecoder as getCosignerArgDecoder, index$7_getCosignerArgEncoder as getCosignerArgEncoder, index$7_getDopplerLaunchHookV2ConfigAddress as getDopplerLaunchHookV2ConfigAddress, index$7_getDopplerLaunchHookV2ErrorMessage as getDopplerLaunchHookV2ErrorMessage, index$7_getDopplerLaunchHookV2RemainingAccounts as getDopplerLaunchHookV2RemainingAccounts, index$7_getHookConfigCodec as getHookConfigCodec, index$7_getHookConfigDecoder as getHookConfigDecoder, index$7_getHookConfigDiscriminatorBytes as getHookConfigDiscriminatorBytes, index$7_getHookConfigEncoder as getHookConfigEncoder, index$7_getHookConfigSize as getHookConfigSize, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$7_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$7_getInitializeConfigInstruction as getInitializeConfigInstruction, index$7_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$7_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$7_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$7_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$7_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$7_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$7_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$7_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$7_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$7_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$7_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$7_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$7_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$7_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$7_getSetAuthorityInstruction as getSetAuthorityInstruction, index$7_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$7_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$7_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$7_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$7_identifyDopplerLaunchHookV2Account as identifyDopplerLaunchHookV2Account, index$7_identifyDopplerLaunchHookV2Instruction as identifyDopplerLaunchHookV2Instruction, index$7_isDopplerLaunchHookV2Error as isDopplerLaunchHookV2Error, index$7_isResolvedManagedCosignerGateV2 as isResolvedManagedCosignerGateV2, index$7_parseAddCosignerInstruction as parseAddCosignerInstruction, index$7_parseDopplerLaunchHookV2Instruction as parseDopplerLaunchHookV2Instruction, index$7_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$7_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$7_parseSetAuthorityInstruction as parseSetAuthorityInstruction, index$7_resolveManagedCosignerGate as resolveManagedCosignerGate }; } /** * 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 */ declare const AMM_CONFIG_DISCRIMINATOR: Uint8Array; declare function getAmmConfigDiscriminatorBytes(): ReadonlyUint8Array; type AmmConfig = { discriminator: ReadonlyUint8Array; admin: Address; paused: boolean; hookAllowlistLen: number; hookAllowlist: Array
; maxSwapFeeBps: number; maxFeeSplitBps: number; protocolFeeEnabled: boolean; protocolFeeBps: number; version: number; reserved: ReadonlyUint8Array; }; type AmmConfigArgs = { admin: Address; paused: boolean; hookAllowlistLen: number; hookAllowlist: Array
; maxSwapFeeBps: number; maxFeeSplitBps: number; protocolFeeEnabled: boolean; protocolFeeBps: number; version: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link AmmConfigArgs} account data. */ declare function getAmmConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link AmmConfig} account data. */ declare function getAmmConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link AmmConfig} account data. */ declare function getAmmConfigCodec(): FixedSizeCodec; declare function decodeAmmConfig(encodedAccount: EncodedAccount): Account; declare function decodeAmmConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchAmmConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeAmmConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllAmmConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeAmmConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getAmmConfigSize(): number; /** * 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 */ declare const INIT_CONFIG_DISCRIMINATOR$1: Uint8Array; declare function getInitConfigDiscriminatorBytes$1(): ReadonlyUint8Array; type InitConfig$2 = { discriminator: ReadonlyUint8Array; admin: Address; migratorAllowlistLen: number; migratorAllowlist: Array
; hookAllowlistLen: number; hookAllowlist: Array
; bump: number; version: number; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; reserved: ReadonlyUint8Array; }; type InitConfigArgs$2 = { admin: Address; migratorAllowlistLen: number; migratorAllowlist: Array
; hookAllowlistLen: number; hookAllowlist: Array
; bump: number; version: number; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link InitConfigArgs} account data. */ declare function getInitConfigEncoder$2(): FixedSizeEncoder; /** Gets the decoder for {@link InitConfig} account data. */ declare function getInitConfigDecoder$2(): FixedSizeDecoder; /** Gets the codec for {@link InitConfig} account data. */ declare function getInitConfigCodec$2(): FixedSizeCodec; declare function decodeInitConfig$1(encodedAccount: EncodedAccount): Account; declare function decodeInitConfig$1(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchInitConfig$1(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeInitConfig$1(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllInitConfig$1(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeInitConfig$1(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getInitConfigSize$2(): number; /** * 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 */ type FeeBeneficiary$1 = { wallet: Address; shareBps: number; pad: ReadonlyUint8Array; }; type FeeBeneficiaryArgs$1 = FeeBeneficiary$1; declare function getFeeBeneficiaryEncoder(): FixedSizeEncoder; declare function getFeeBeneficiaryDecoder(): FixedSizeDecoder; declare function getFeeBeneficiaryCodec(): FixedSizeCodec; /** * 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 */ type FeeRoute = { assetBuybackBps: number; numeraireBuybackBps: number; beneficiaryBps: number; lpBps: number; }; type FeeRouteArgs = FeeRoute; declare function getFeeRouteEncoder(): FixedSizeEncoder; declare function getFeeRouteDecoder(): FixedSizeDecoder; declare function getFeeRouteCodec(): FixedSizeCodec; /** * 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 */ type FeeRoutingMatrix = { assetFees: FeeRoute; numeraireFees: FeeRoute; }; type FeeRoutingMatrixArgs = { assetFees: FeeRouteArgs; numeraireFees: FeeRouteArgs; }; declare function getFeeRoutingMatrixEncoder(): FixedSizeEncoder; declare function getFeeRoutingMatrixDecoder(): FixedSizeDecoder; declare function getFeeRoutingMatrixCodec(): FixedSizeCodec; /** * 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 */ type InitializeRehypeArgs = { namespace: Address; launchId: ReadonlyUint8Array; buybackDestination: Address; settlementAuthority: Address; routingMode: number; feeRouting: FeeRoutingMatrix; beneficiaries: Array; }; type InitializeRehypeArgsArgs = { namespace: Address; launchId: ReadonlyUint8Array; buybackDestination: Address; settlementAuthority: Address; routingMode: number; feeRouting: FeeRoutingMatrixArgs; beneficiaries: Array; }; declare function getInitializeRehypeArgsEncoder(): Encoder; declare function getInitializeRehypeArgsDecoder(): Decoder; declare function getInitializeRehypeArgsCodec(): Codec; /** * 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 */ type LpRebalanceArgs = { /** Uses Initializer semantics: buy is quote-to-base and sell is base-to-quote. */ tradeDirection: number; amountIn: bigint; minAmountOut: bigint; }; type LpRebalanceArgsArgs = { /** Uses Initializer semantics: buy is quote-to-base and sell is base-to-quote. */ tradeDirection: number; amountIn: number | bigint; minAmountOut: number | bigint; }; declare function getLpRebalanceArgsEncoder(): FixedSizeEncoder; declare function getLpRebalanceArgsDecoder(): FixedSizeDecoder; declare function getLpRebalanceArgsCodec(): FixedSizeCodec; /** * 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 */ /** Variable-length payload buffer. */ type PayloadBuf$3 = { len: number; bytes: ReadonlyUint8Array; }; type PayloadBufArgs$3 = PayloadBuf$3; declare function getPayloadBufEncoder$2(): FixedSizeEncoder; declare function getPayloadBufDecoder$2(): FixedSizeDecoder; declare function getPayloadBufCodec$2(): FixedSizeCodec; /** * 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 */ type RehypeBeneficiary = { wallet: Address; shareBps: number; padding: ReadonlyUint8Array; }; type RehypeBeneficiaryArgs = RehypeBeneficiary; declare function getRehypeBeneficiaryEncoder(): FixedSizeEncoder; declare function getRehypeBeneficiaryDecoder(): FixedSizeDecoder; declare function getRehypeBeneficiaryCodec(): FixedSizeCodec; /** * 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 */ type RehypeBeneficiaryInput = { wallet: Address; shareBps: number; }; type RehypeBeneficiaryInputArgs = RehypeBeneficiaryInput; declare function getRehypeBeneficiaryInputEncoder(): FixedSizeEncoder; declare function getRehypeBeneficiaryInputDecoder(): FixedSizeDecoder; declare function getRehypeBeneficiaryInputCodec(): FixedSizeCodec; /** * 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 */ type RehypeBeneficiaryReplaced = { rehypeState: Address; currentWallet: Address; newWallet: Address; }; type RehypeBeneficiaryReplacedArgs = RehypeBeneficiaryReplaced; declare function getRehypeBeneficiaryReplacedEncoder(): FixedSizeEncoder; declare function getRehypeBeneficiaryReplacedDecoder(): FixedSizeDecoder; declare function getRehypeBeneficiaryReplacedCodec(): FixedSizeCodec; /** * 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 */ type RehypeFeesClaimed = { rehypeState: Address; beneficiary: Address; baseAmount: bigint; quoteAmount: bigint; }; type RehypeFeesClaimedArgs = { rehypeState: Address; beneficiary: Address; baseAmount: number | bigint; quoteAmount: number | bigint; }; declare function getRehypeFeesClaimedEncoder(): FixedSizeEncoder; declare function getRehypeFeesClaimedDecoder(): FixedSizeDecoder; declare function getRehypeFeesClaimedCodec(): FixedSizeCodec; /** * 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 */ type RehypeInitialized = { rehypeState: Address; launch: Address; baseMint: Address; quoteMint: Address; hookProgram: Address; }; type RehypeInitializedArgs = RehypeInitialized; declare function getRehypeInitializedEncoder(): FixedSizeEncoder; declare function getRehypeInitializedDecoder(): FixedSizeDecoder; declare function getRehypeInitializedCodec(): FixedSizeCodec; /** * 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 */ type RehypeSettled = { rehypeState: Address; launch: Address; claimedBase: bigint; claimedQuote: bigint; beneficiaryBase: bigint; beneficiaryQuote: bigint; lpBase: bigint; lpQuote: bigint; }; type RehypeSettledArgs = { rehypeState: Address; launch: Address; claimedBase: number | bigint; claimedQuote: number | bigint; beneficiaryBase: number | bigint; beneficiaryQuote: number | bigint; lpBase: number | bigint; lpQuote: number | bigint; }; declare function getRehypeSettledEncoder(): FixedSizeEncoder; declare function getRehypeSettledDecoder(): FixedSizeDecoder; declare function getRehypeSettledCodec(): FixedSizeCodec; /** * 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 */ type SettleFeesArgs = { minBaseToQuoteOut: bigint; minQuoteToBaseOut: bigint; }; type SettleFeesArgsArgs = { minBaseToQuoteOut: number | bigint; minQuoteToBaseOut: number | bigint; }; declare function getSettleFeesArgsEncoder(): FixedSizeEncoder; declare function getSettleFeesArgsDecoder(): FixedSizeDecoder; declare function getSettleFeesArgsCodec(): FixedSizeCodec; /** * 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 */ type SettleMigratedFeesArgs = { minBaseToQuoteOut: bigint; minQuoteToBaseOut: bigint; lpRebalance: Option; minLpSharesOut: bigint; }; type SettleMigratedFeesArgsArgs = { minBaseToQuoteOut: number | bigint; minQuoteToBaseOut: number | bigint; lpRebalance: OptionOrNullable; minLpSharesOut: number | bigint; }; declare function getSettleMigratedFeesArgsEncoder(): Encoder; declare function getSettleMigratedFeesArgsDecoder(): Decoder; declare function getSettleMigratedFeesArgsCodec(): Codec; /** * 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 */ declare const LAUNCH_DISCRIMINATOR$2: Uint8Array; declare function getLaunchDiscriminatorBytes$2(): ReadonlyUint8Array; type Launch$3 = { discriminator: ReadonlyUint8Array; authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: bigint; baseForDistribution: bigint; baseForLiquidity: bigint; baseForCurve: bigint; curveVirtualBase: bigint; curveVirtualQuote: bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBuf$3; migratorProgram: Address; migratorInitPayload: PayloadBuf$3; migratorMigratePayload: PayloadBuf$3; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBuf$3; createdAt: bigint; reserved: ReadonlyUint8Array; }; type LaunchArgs$3 = { authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: number | bigint; baseForDistribution: number | bigint; baseForLiquidity: number | bigint; baseForCurve: number | bigint; curveVirtualBase: number | bigint; curveVirtualQuote: number | bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBufArgs$3; migratorProgram: Address; migratorInitPayload: PayloadBufArgs$3; migratorMigratePayload: PayloadBufArgs$3; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBufArgs$3; createdAt: number | bigint; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link LaunchArgs} account data. */ declare function getLaunchEncoder$3(): FixedSizeEncoder; /** Gets the decoder for {@link Launch} account data. */ declare function getLaunchDecoder$3(): FixedSizeDecoder; /** Gets the codec for {@link Launch} account data. */ declare function getLaunchCodec$3(): FixedSizeCodec; declare function decodeLaunch$2(encodedAccount: EncodedAccount): Account; declare function decodeLaunch$2(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchLaunch$3(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeLaunch$2(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllLaunch$2(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeLaunch$2(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getLaunchSize$2(): number; /** * 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 */ declare const LAUNCH_FEE_STATE_DISCRIMINATOR: Uint8Array; declare function getLaunchFeeStateDiscriminatorBytes(): ReadonlyUint8Array; type LaunchFeeState$1 = { discriminator: ReadonlyUint8Array; launch: Address; beneficiaryLen: number; bump: number; protocolFeeBps: number; swapFeeBps: number; version: number; pad0: ReadonlyUint8Array; beneficiaries: Array; cumulatedBaseFees: bigint; cumulatedQuoteFees: bigint; distributedProtocolBaseFees: bigint; distributedProtocolQuoteFees: bigint; distributedBaseByBeneficiary: Array; distributedQuoteByBeneficiary: Array; reserved: ReadonlyUint8Array; }; type LaunchFeeStateArgs$1 = { launch: Address; beneficiaryLen: number; bump: number; protocolFeeBps: number; swapFeeBps: number; version: number; pad0: ReadonlyUint8Array; beneficiaries: Array; cumulatedBaseFees: number | bigint; cumulatedQuoteFees: number | bigint; distributedProtocolBaseFees: number | bigint; distributedProtocolQuoteFees: number | bigint; distributedBaseByBeneficiary: Array; distributedQuoteByBeneficiary: Array; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link LaunchFeeStateArgs} account data. */ declare function getLaunchFeeStateEncoder$1(): FixedSizeEncoder; /** Gets the decoder for {@link LaunchFeeState} account data. */ declare function getLaunchFeeStateDecoder$1(): FixedSizeDecoder; /** Gets the codec for {@link LaunchFeeState} account data. */ declare function getLaunchFeeStateCodec$1(): FixedSizeCodec; declare function decodeLaunchFeeState(encodedAccount: EncodedAccount): Account; declare function decodeLaunchFeeState(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchLaunchFeeState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeLaunchFeeState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllLaunchFeeState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeLaunchFeeState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getLaunchFeeStateSize(): number; /** * 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 */ declare const POOL_DISCRIMINATOR: Uint8Array; declare function getPoolDiscriminatorBytes(): ReadonlyUint8Array; type Pool = { discriminator: ReadonlyUint8Array; config: Address; token0Mint: Address; token1Mint: Address; vault0: Address; vault1: Address; authority: Address; bump: number; reserve0: bigint; reserve1: bigint; totalShares: bigint; swapFeeBps: number; feeSplitBps: number; feeGrowthGlobal0Q64: bigint; feeGrowthGlobal1Q64: bigint; feesUnclaimed0: bigint; feesUnclaimed1: bigint; hookProgram: Address; hookFlags: number; liquidityMeasureTokenIndex: number; kLast: bigint; protocolFeePosition: Address; locked: number; version: number; reserved: ReadonlyUint8Array; }; type PoolArgs = { config: Address; token0Mint: Address; token1Mint: Address; vault0: Address; vault1: Address; authority: Address; bump: number; reserve0: number | bigint; reserve1: number | bigint; totalShares: number | bigint; swapFeeBps: number; feeSplitBps: number; feeGrowthGlobal0Q64: number | bigint; feeGrowthGlobal1Q64: number | bigint; feesUnclaimed0: number | bigint; feesUnclaimed1: number | bigint; hookProgram: Address; hookFlags: number; liquidityMeasureTokenIndex: number; kLast: number | bigint; protocolFeePosition: Address; locked: number; version: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link PoolArgs} account data. */ declare function getPoolEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Pool} account data. */ declare function getPoolDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Pool} account data. */ declare function getPoolCodec(): FixedSizeCodec; declare function decodePool(encodedAccount: EncodedAccount): Account; declare function decodePool(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchPool(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybePool(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllPool(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybePool(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getPoolSize(): number; /** * 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 */ declare const POSITION_DISCRIMINATOR: Uint8Array; declare function getPositionDiscriminatorBytes(): ReadonlyUint8Array; type Position = { discriminator: ReadonlyUint8Array; pool: Address; owner: Address; positionId: bigint; shares: bigint; feeGrowthLast0Q64: bigint; feeGrowthLast1Q64: bigint; feeOwed0: bigint; feeOwed1: bigint; version: number; reserved: ReadonlyUint8Array; }; type PositionArgs = { pool: Address; owner: Address; positionId: number | bigint; shares: number | bigint; feeGrowthLast0Q64: number | bigint; feeGrowthLast1Q64: number | bigint; feeOwed0: number | bigint; feeOwed1: number | bigint; version: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link PositionArgs} account data. */ declare function getPositionEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Position} account data. */ declare function getPositionDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Position} account data. */ declare function getPositionCodec(): FixedSizeCodec; declare function decodePosition(encodedAccount: EncodedAccount): Account; declare function decodePosition(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchPosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybePosition(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllPosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybePosition(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getPositionSize(): number; /** * 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 */ declare const REHYPE_STATE_DISCRIMINATOR: Uint8Array; declare function getRehypeStateDiscriminatorBytes(): ReadonlyUint8Array; type RehypeState = { discriminator: ReadonlyUint8Array; launch: Address; baseMint: Address; quoteMint: Address; hookProgram: Address; buybackDestination: Address; feeRouting: FeeRoutingMatrix; beneficiaries: Array; cumulativeBeneficiaryBase: bigint; cumulativeBeneficiaryQuote: bigint; distributedBaseByBeneficiary: Array; distributedQuoteByBeneficiary: Array; pendingCrossBase: bigint; pendingCrossQuote: bigint; pendingLpBase: bigint; pendingLpQuote: bigint; inflightAmountIn: bigint; inflightExpectedAmountOut: bigint; version: number; bump: number; authorityBump: number; settlementSignerBump: number; routingMode: number; beneficiaryCount: number; inflightKind: number; inflightDirection: number; settlementAuthority: Address; cumulativeRoutedBaseFees: bigint; cumulativeRoutedQuoteFees: bigint; reserved: ReadonlyUint8Array; }; type RehypeStateArgs = { launch: Address; baseMint: Address; quoteMint: Address; hookProgram: Address; buybackDestination: Address; feeRouting: FeeRoutingMatrixArgs; beneficiaries: Array; cumulativeBeneficiaryBase: number | bigint; cumulativeBeneficiaryQuote: number | bigint; distributedBaseByBeneficiary: Array; distributedQuoteByBeneficiary: Array; pendingCrossBase: number | bigint; pendingCrossQuote: number | bigint; pendingLpBase: number | bigint; pendingLpQuote: number | bigint; inflightAmountIn: number | bigint; inflightExpectedAmountOut: number | bigint; version: number; bump: number; authorityBump: number; settlementSignerBump: number; routingMode: number; beneficiaryCount: number; inflightKind: number; inflightDirection: number; settlementAuthority: Address; cumulativeRoutedBaseFees: number | bigint; cumulativeRoutedQuoteFees: number | bigint; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link RehypeStateArgs} account data. */ declare function getRehypeStateEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link RehypeState} account data. */ declare function getRehypeStateDecoder(): FixedSizeDecoder; /** Gets the codec for {@link RehypeState} account data. */ declare function getRehypeStateCodec(): FixedSizeCodec; declare function decodeRehypeState(encodedAccount: EncodedAccount): Account; declare function decodeRehypeState(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchRehypeState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeRehypeState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllRehypeState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeRehypeState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getRehypeStateSize(): number; /** * 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 */ /** InvalidConfig: Invalid Rehype configuration */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_CONFIG = 6000; /** InvalidBeneficiary: Invalid Rehype beneficiary */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_BENEFICIARY = 6001; /** InvalidFeeRouting: Invalid fee routing matrix */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_FEE_ROUTING = 6002; /** InvalidRoutingMode: Invalid routing mode */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_ROUTING_MODE = 6003; /** InvalidLaunch: Invalid Initializer launch */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH = 6004; /** InvalidLaunchFeeState: Invalid launch fee state */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH_FEE_STATE = 6005; /** InvalidMint: Invalid mint */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_MINT = 6006; /** InvalidTokenAccount: Invalid token account */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_TOKEN_ACCOUNT = 6007; /** InvalidHookAccounts: Invalid hook remaining accounts */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_HOOK_ACCOUNTS = 6008; /** ArithmeticOverflow: Arithmetic overflow */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__ARITHMETIC_OVERFLOW = 6009; /** NoFeesAvailable: No fees are available */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__NO_FEES_AVAILABLE = 6010; /** SettlementInProgress: Rehype settlement is already in progress */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__SETTLEMENT_IN_PROGRESS = 6011; /** QuoteMismatch: Internal swap quote mismatch */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__QUOTE_MISMATCH = 6012; /** BalanceMismatch: Internal swap balance mismatch */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__BALANCE_MISMATCH = 6013; /** InvalidPhase: Launch phase does not support this settlement */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_PHASE = 6014; /** UnclaimedFees: Beneficiary has unclaimed fees */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__UNCLAIMED_FEES = 6015; /** UnauthorizedSettlement: Only the configured settlement authority may settle fees */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__UNAUTHORIZED_SETTLEMENT = 6016; /** SlippageProtectionRequired: A positive minimum output is required for a fillable conversion */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_PROTECTION_REQUIRED = 6017; /** SlippageExceeded: Settlement conversion output is below the requested minimum */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_EXCEEDED = 6018; /** InvalidPool: Invalid migrated CPMM pool accounts */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POOL = 6019; /** InvalidPosition: Invalid Router CPMM position */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POSITION = 6020; /** InvalidLpRebalance: Invalid LP rebalance parameters */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LP_REBALANCE = 6021; /** LpRebalanceWorsened: LP rebalance reduced the amount of liquidity that can be added */ declare const DOPPLER_REHYPE_ROUTER_V1_ERROR__LP_REBALANCE_WORSENED = 6022; type DopplerRehypeRouterV1Error = typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__ARITHMETIC_OVERFLOW | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__BALANCE_MISMATCH | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_BENEFICIARY | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_CONFIG | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_FEE_ROUTING | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_HOOK_ACCOUNTS | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH_FEE_STATE | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LP_REBALANCE | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_MINT | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_PHASE | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POOL | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POSITION | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_ROUTING_MODE | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_TOKEN_ACCOUNT | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__LP_REBALANCE_WORSENED | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__NO_FEES_AVAILABLE | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__QUOTE_MISMATCH | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__SETTLEMENT_IN_PROGRESS | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_EXCEEDED | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_PROTECTION_REQUIRED | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__UNAUTHORIZED_SETTLEMENT | typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__UNCLAIMED_FEES; declare function getDopplerRehypeRouterV1ErrorMessage(code: DopplerRehypeRouterV1Error): string; declare function isDopplerRehypeRouterV1Error(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * 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 */ declare const DOPPLER_REHYPE_ROUTER_V1_PROGRAM_ADDRESS: Address<"BpHX6orJ73qCvsfKkSMARQtqJvSPfqXNUfoes5rMND1D">; declare enum DopplerRehypeRouterV1Account { AmmConfig = 0, InitConfig = 1, Launch = 2, LaunchFeeState = 3, Pool = 4, Position = 5, RehypeState = 6 } declare function identifyDopplerRehypeRouterV1Account(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerRehypeRouterV1Account; declare enum DopplerRehypeRouterV1Instruction { ClaimFees = 0, InitializeRehype = 1, ReplaceBeneficiary = 2, SettleFees = 3, SettleMigratedFees = 4 } declare function identifyDopplerRehypeRouterV1Instruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerRehypeRouterV1Instruction; type ParsedDopplerRehypeRouterV1Instruction = ({ instructionType: DopplerRehypeRouterV1Instruction.ClaimFees; } & ParsedClaimFeesInstruction) | ({ instructionType: DopplerRehypeRouterV1Instruction.InitializeRehype; } & ParsedInitializeRehypeInstruction) | ({ instructionType: DopplerRehypeRouterV1Instruction.ReplaceBeneficiary; } & ParsedReplaceBeneficiaryInstruction) | ({ instructionType: DopplerRehypeRouterV1Instruction.SettleFees; } & ParsedSettleFeesInstruction) | ({ instructionType: DopplerRehypeRouterV1Instruction.SettleMigratedFees; } & ParsedSettleMigratedFeesInstruction); declare function parseDopplerRehypeRouterV1Instruction(instruction: Instruction & InstructionWithData): ParsedDopplerRehypeRouterV1Instruction; type DopplerRehypeRouterV1Plugin = { accounts: DopplerRehypeRouterV1PluginAccounts; instructions: DopplerRehypeRouterV1PluginInstructions; }; type DopplerRehypeRouterV1PluginAccounts = { ammConfig: ReturnType & SelfFetchFunctions; initConfig: ReturnType & SelfFetchFunctions; launch: ReturnType & SelfFetchFunctions; launchFeeState: ReturnType & SelfFetchFunctions; pool: ReturnType & SelfFetchFunctions; position: ReturnType & SelfFetchFunctions; rehypeState: ReturnType & SelfFetchFunctions; }; type DopplerRehypeRouterV1PluginInstructions = { claimFees: (input: MakeOptional$2) => ReturnType & SelfPlanAndSendFunctions; initializeRehype: (input: MakeOptional$2) => ReturnType & SelfPlanAndSendFunctions; replaceBeneficiary: (input: ReplaceBeneficiaryAsyncInput) => ReturnType & SelfPlanAndSendFunctions; settleFees: (input: SettleFeesAsyncInput) => ReturnType & SelfPlanAndSendFunctions; settleMigratedFees: (input: SettleMigratedFeesAsyncInput) => ReturnType & SelfPlanAndSendFunctions; }; type DopplerRehypeRouterV1PluginRequirements = ClientWithRpc & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending; declare function dopplerRehypeRouterV1Program(): (client: T) => T & { dopplerRehypeRouterV1: DopplerRehypeRouterV1Plugin; }; type MakeOptional$2 = Omit & Partial>; /** * 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 */ declare const CLAIM_FEES_DISCRIMINATOR: Uint8Array; declare function getClaimFeesDiscriminatorBytes(): ReadonlyUint8Array; type ClaimFeesInstruction$1 = string, TAccountBeneficiary extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountRouterBaseAta extends string | AccountMeta = string, TAccountRouterQuoteAta extends string | AccountMeta = string, TAccountBeneficiaryBaseAta extends string | AccountMeta = string, TAccountBeneficiaryQuoteAta extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBeneficiary extends string ? ReadonlyAccount : TAccountBeneficiary, TAccountRehypeState extends string ? WritableAccount : TAccountRehypeState, TAccountRehypeAuthority extends string ? ReadonlyAccount : TAccountRehypeAuthority, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountRouterBaseAta extends string ? WritableAccount : TAccountRouterBaseAta, TAccountRouterQuoteAta extends string ? WritableAccount : TAccountRouterQuoteAta, TAccountBeneficiaryBaseAta extends string ? WritableAccount : TAccountBeneficiaryBaseAta, TAccountBeneficiaryQuoteAta extends string ? WritableAccount : TAccountBeneficiaryQuoteAta, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type ClaimFeesInstructionData = { discriminator: ReadonlyUint8Array; beneficiaryIndex: number; }; type ClaimFeesInstructionDataArgs$1 = { beneficiaryIndex: number; }; declare function getClaimFeesInstructionDataEncoder(): FixedSizeEncoder; declare function getClaimFeesInstructionDataDecoder(): FixedSizeDecoder; declare function getClaimFeesInstructionDataCodec(): FixedSizeCodec; type ClaimFeesAsyncInput$1 = { payer: TransactionSigner; beneficiary: Address; rehypeState?: Address; rehypeAuthority?: Address; baseMint: Address; quoteMint: Address; routerBaseAta?: Address; routerQuoteAta?: Address; beneficiaryBaseAta?: Address; beneficiaryQuoteAta?: Address; baseTokenProgram: Address; quoteTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; beneficiaryIndex: ClaimFeesInstructionDataArgs$1['beneficiaryIndex']; }; declare function getClaimFeesInstructionAsync$1(input: ClaimFeesAsyncInput$1, config?: { programAddress?: TProgramAddress; }): Promise>; type ClaimFeesInput = { payer: TransactionSigner; beneficiary: Address; rehypeState: Address; rehypeAuthority: Address; baseMint: Address; quoteMint: Address; routerBaseAta: Address; routerQuoteAta: Address; beneficiaryBaseAta: Address; beneficiaryQuoteAta: Address; baseTokenProgram: Address; quoteTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; beneficiaryIndex: ClaimFeesInstructionDataArgs$1['beneficiaryIndex']; }; declare function getClaimFeesInstruction(input: ClaimFeesInput, config?: { programAddress?: TProgramAddress; }): ClaimFeesInstruction$1; type ParsedClaimFeesInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; beneficiary: TAccountMetas[1]; rehypeState: TAccountMetas[2]; rehypeAuthority: TAccountMetas[3]; baseMint: TAccountMetas[4]; quoteMint: TAccountMetas[5]; routerBaseAta: TAccountMetas[6]; routerQuoteAta: TAccountMetas[7]; beneficiaryBaseAta: TAccountMetas[8]; beneficiaryQuoteAta: TAccountMetas[9]; baseTokenProgram: TAccountMetas[10]; quoteTokenProgram: TAccountMetas[11]; associatedTokenProgram: TAccountMetas[12]; systemProgram: TAccountMetas[13]; }; data: ClaimFeesInstructionData; }; declare function parseClaimFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClaimFeesInstruction; /** * 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 */ declare const INITIALIZE_REHYPE_DISCRIMINATOR: Uint8Array; declare function getInitializeRehypeDiscriminatorBytes(): ReadonlyUint8Array; type InitializeRehypeInstruction = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountHookProgram extends string | AccountMeta = string, TAccountInitializerProgram extends string | AccountMeta = '4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1', TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountSettlementSigner extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBaseMint extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountHookProgram extends string ? ReadonlyAccount : TAccountHookProgram, TAccountInitializerProgram extends string ? ReadonlyAccount : TAccountInitializerProgram, TAccountRehypeState extends string ? WritableAccount : TAccountRehypeState, TAccountRehypeAuthority extends string ? ReadonlyAccount : TAccountRehypeAuthority, TAccountSettlementSigner extends string ? ReadonlyAccount : TAccountSettlementSigner, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeRehypeInstructionData = { discriminator: ReadonlyUint8Array; namespace: Address; launchId: ReadonlyUint8Array; buybackDestination: Address; settlementAuthority: Address; routingMode: number; feeRouting: FeeRoutingMatrix; beneficiaries: Array; }; type InitializeRehypeInstructionDataArgs = { namespace: Address; launchId: ReadonlyUint8Array; buybackDestination: Address; settlementAuthority: Address; routingMode: number; feeRouting: FeeRoutingMatrixArgs; beneficiaries: Array; }; declare function getInitializeRehypeInstructionDataEncoder(): Encoder; declare function getInitializeRehypeInstructionDataDecoder(): Decoder; declare function getInitializeRehypeInstructionDataCodec(): Codec; type InitializeRehypeAsyncInput = { payer: TransactionSigner; /** Future launch mint. Its signature prevents another caller from claiming this state PDA. */ baseMint: TransactionSigner; quoteMint: Address; hookProgram: Address; initializerProgram?: Address; rehypeState?: Address; rehypeAuthority?: Address; settlementSigner?: Address; systemProgram?: Address; namespace: InitializeRehypeInstructionDataArgs['namespace']; launchId: InitializeRehypeInstructionDataArgs['launchId']; buybackDestination: InitializeRehypeInstructionDataArgs['buybackDestination']; settlementAuthority: InitializeRehypeInstructionDataArgs['settlementAuthority']; routingMode: InitializeRehypeInstructionDataArgs['routingMode']; feeRouting: InitializeRehypeInstructionDataArgs['feeRouting']; beneficiaries: InitializeRehypeInstructionDataArgs['beneficiaries']; }; declare function getInitializeRehypeInstructionAsync(input: InitializeRehypeAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeRehypeInput = { payer: TransactionSigner; /** Future launch mint. Its signature prevents another caller from claiming this state PDA. */ baseMint: TransactionSigner; quoteMint: Address; hookProgram: Address; initializerProgram?: Address; rehypeState: Address; rehypeAuthority: Address; settlementSigner: Address; systemProgram?: Address; namespace: InitializeRehypeInstructionDataArgs['namespace']; launchId: InitializeRehypeInstructionDataArgs['launchId']; buybackDestination: InitializeRehypeInstructionDataArgs['buybackDestination']; settlementAuthority: InitializeRehypeInstructionDataArgs['settlementAuthority']; routingMode: InitializeRehypeInstructionDataArgs['routingMode']; feeRouting: InitializeRehypeInstructionDataArgs['feeRouting']; beneficiaries: InitializeRehypeInstructionDataArgs['beneficiaries']; }; declare function getInitializeRehypeInstruction(input: InitializeRehypeInput, config?: { programAddress?: TProgramAddress; }): InitializeRehypeInstruction; type ParsedInitializeRehypeInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; /** Future launch mint. Its signature prevents another caller from claiming this state PDA. */ baseMint: TAccountMetas[1]; quoteMint: TAccountMetas[2]; hookProgram: TAccountMetas[3]; initializerProgram: TAccountMetas[4]; rehypeState: TAccountMetas[5]; rehypeAuthority: TAccountMetas[6]; settlementSigner: TAccountMetas[7]; systemProgram: TAccountMetas[8]; }; data: InitializeRehypeInstructionData; }; declare function parseInitializeRehypeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeRehypeInstruction; /** * 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 */ declare const REPLACE_BENEFICIARY_DISCRIMINATOR: Uint8Array; declare function getReplaceBeneficiaryDiscriminatorBytes(): ReadonlyUint8Array; type ReplaceBeneficiaryInstruction = string, TAccountBaseMint extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountCurrentBeneficiary extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountCurrentBeneficiary, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountRehypeState extends string ? WritableAccount : TAccountRehypeState, ...TRemainingAccounts ]>; type ReplaceBeneficiaryInstructionData = { discriminator: ReadonlyUint8Array; newWallet: Address; }; type ReplaceBeneficiaryInstructionDataArgs = { newWallet: Address; }; declare function getReplaceBeneficiaryInstructionDataEncoder(): FixedSizeEncoder; declare function getReplaceBeneficiaryInstructionDataDecoder(): FixedSizeDecoder; declare function getReplaceBeneficiaryInstructionDataCodec(): FixedSizeCodec; type ReplaceBeneficiaryAsyncInput = { currentBeneficiary: TransactionSigner; /** Used to derive and validate the canonical Rehype state PDA. */ baseMint: Address; rehypeState?: Address; newWallet: ReplaceBeneficiaryInstructionDataArgs['newWallet']; }; declare function getReplaceBeneficiaryInstructionAsync(input: ReplaceBeneficiaryAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type ReplaceBeneficiaryInput = { currentBeneficiary: TransactionSigner; /** Used to derive and validate the canonical Rehype state PDA. */ baseMint: Address; rehypeState: Address; newWallet: ReplaceBeneficiaryInstructionDataArgs['newWallet']; }; declare function getReplaceBeneficiaryInstruction(input: ReplaceBeneficiaryInput, config?: { programAddress?: TProgramAddress; }): ReplaceBeneficiaryInstruction; type ParsedReplaceBeneficiaryInstruction = { programAddress: Address; accounts: { currentBeneficiary: TAccountMetas[0]; /** Used to derive and validate the canonical Rehype state PDA. */ baseMint: TAccountMetas[1]; rehypeState: TAccountMetas[2]; }; data: ReplaceBeneficiaryInstructionData; }; declare function parseReplaceBeneficiaryInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedReplaceBeneficiaryInstruction; /** * 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 */ declare const SETTLE_FEES_DISCRIMINATOR: Uint8Array; declare function getSettleFeesDiscriminatorBytes(): ReadonlyUint8Array; type SettleFeesInstruction = string, TAccountInitializerProgram extends string | AccountMeta = '4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1', TAccountInitializerConfig extends string | AccountMeta = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountSettlementSigner extends string | AccountMeta = string, TAccountRouterBaseAta extends string | AccountMeta = string, TAccountRouterQuoteAta extends string | AccountMeta = string, TAccountBuybackDestination extends string | AccountMeta = string, TAccountBuybackBaseAta extends string | AccountMeta = string, TAccountBuybackQuoteAta extends string | AccountMeta = string, TAccountNamespace extends string | AccountMeta = string, TAccountHookConfig extends string | AccountMeta = string, TAccountHookProgram extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountGateCosigner extends string | AccountMeta = string, TAccountCosignGateControl extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountSettlementAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountSettlementAuthority, TAccountInitializerProgram extends string ? ReadonlyAccount : TAccountInitializerProgram, TAccountInitializerConfig extends string ? ReadonlyAccount : TAccountInitializerConfig, TAccountLaunch extends string ? WritableAccount : TAccountLaunch, TAccountLaunchFeeState extends string ? WritableAccount : TAccountLaunchFeeState, TAccountLaunchAuthority extends string ? ReadonlyAccount : TAccountLaunchAuthority, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount : TAccountQuoteVault, TAccountRehypeState extends string ? WritableAccount : TAccountRehypeState, TAccountRehypeAuthority extends string ? ReadonlyAccount : TAccountRehypeAuthority, TAccountSettlementSigner extends string ? ReadonlyAccount : TAccountSettlementSigner, TAccountRouterBaseAta extends string ? WritableAccount : TAccountRouterBaseAta, TAccountRouterQuoteAta extends string ? WritableAccount : TAccountRouterQuoteAta, TAccountBuybackDestination extends string ? ReadonlyAccount : TAccountBuybackDestination, TAccountBuybackBaseAta extends string ? WritableAccount : TAccountBuybackBaseAta, TAccountBuybackQuoteAta extends string ? WritableAccount : TAccountBuybackQuoteAta, TAccountNamespace extends string ? ReadonlyAccount : TAccountNamespace, TAccountHookConfig extends string ? ReadonlyAccount : TAccountHookConfig, TAccountHookProgram extends string ? ReadonlyAccount : TAccountHookProgram, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountGateCosigner extends string ? ReadonlyAccount : TAccountGateCosigner, TAccountCosignGateControl extends string ? ReadonlyAccount : TAccountCosignGateControl, ...TRemainingAccounts ]>; type SettleFeesInstructionData = { discriminator: ReadonlyUint8Array; minBaseToQuoteOut: bigint; minQuoteToBaseOut: bigint; }; type SettleFeesInstructionDataArgs = { minBaseToQuoteOut: number | bigint; minQuoteToBaseOut: number | bigint; }; declare function getSettleFeesInstructionDataEncoder(): FixedSizeEncoder; declare function getSettleFeesInstructionDataDecoder(): FixedSizeDecoder; declare function getSettleFeesInstructionDataCodec(): FixedSizeCodec; type SettleFeesAsyncInput = { settlementAuthority: TransactionSigner; initializerProgram?: Address; initializerConfig: Address; launch: Address; launchFeeState: Address; launchAuthority: Address; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; rehypeState?: Address; rehypeAuthority?: Address; settlementSigner?: Address; routerBaseAta?: Address; routerQuoteAta?: Address; buybackDestination: Address; buybackBaseAta: Address; buybackQuoteAta: Address; namespace: Address; hookConfig: Address; hookProgram: Address; baseTokenProgram: Address; quoteTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; gateCosigner?: Address; cosignGateControl?: Address; minBaseToQuoteOut: SettleFeesInstructionDataArgs['minBaseToQuoteOut']; minQuoteToBaseOut: SettleFeesInstructionDataArgs['minQuoteToBaseOut']; }; declare function getSettleFeesInstructionAsync(input: SettleFeesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type SettleFeesInput = { settlementAuthority: TransactionSigner; initializerProgram?: Address; initializerConfig: Address; launch: Address; launchFeeState: Address; launchAuthority: Address; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; rehypeState: Address; rehypeAuthority: Address; settlementSigner: Address; routerBaseAta: Address; routerQuoteAta: Address; buybackDestination: Address; buybackBaseAta: Address; buybackQuoteAta: Address; namespace: Address; hookConfig: Address; hookProgram: Address; baseTokenProgram: Address; quoteTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; gateCosigner?: Address; cosignGateControl?: Address; minBaseToQuoteOut: SettleFeesInstructionDataArgs['minBaseToQuoteOut']; minQuoteToBaseOut: SettleFeesInstructionDataArgs['minQuoteToBaseOut']; }; declare function getSettleFeesInstruction(input: SettleFeesInput, config?: { programAddress?: TProgramAddress; }): SettleFeesInstruction; type ParsedSettleFeesInstruction = { programAddress: Address; accounts: { settlementAuthority: TAccountMetas[0]; initializerProgram: TAccountMetas[1]; initializerConfig: TAccountMetas[2]; launch: TAccountMetas[3]; launchFeeState: TAccountMetas[4]; launchAuthority: TAccountMetas[5]; baseMint: TAccountMetas[6]; quoteMint: TAccountMetas[7]; baseVault: TAccountMetas[8]; quoteVault: TAccountMetas[9]; rehypeState: TAccountMetas[10]; rehypeAuthority: TAccountMetas[11]; settlementSigner: TAccountMetas[12]; routerBaseAta: TAccountMetas[13]; routerQuoteAta: TAccountMetas[14]; buybackDestination: TAccountMetas[15]; buybackBaseAta: TAccountMetas[16]; buybackQuoteAta: TAccountMetas[17]; namespace: TAccountMetas[18]; hookConfig: TAccountMetas[19]; hookProgram: TAccountMetas[20]; baseTokenProgram: TAccountMetas[21]; quoteTokenProgram: TAccountMetas[22]; associatedTokenProgram: TAccountMetas[23]; systemProgram: TAccountMetas[24]; gateCosigner?: TAccountMetas[25] | undefined; cosignGateControl?: TAccountMetas[26] | undefined; }; data: SettleFeesInstructionData; }; declare function parseSettleFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSettleFeesInstruction; /** * 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 */ declare const SETTLE_MIGRATED_FEES_DISCRIMINATOR: Uint8Array; declare function getSettleMigratedFeesDiscriminatorBytes(): ReadonlyUint8Array; type SettleMigratedFeesInstruction = string, TAccountInitializerProgram extends string | AccountMeta = '4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1', TAccountInitializerConfig extends string | AccountMeta = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountLaunchBaseVault extends string | AccountMeta = string, TAccountLaunchQuoteVault extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountRouterBaseAta extends string | AccountMeta = string, TAccountRouterQuoteAta extends string | AccountMeta = string, TAccountBuybackDestination extends string | AccountMeta = string, TAccountBuybackBaseAta extends string | AccountMeta = string, TAccountBuybackQuoteAta extends string | AccountMeta = string, TAccountCpmmProgram extends string | AccountMeta = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountCpmmConfig extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountPoolAuthority extends string | AccountMeta = string, TAccountPoolVault0 extends string | AccountMeta = string, TAccountPoolVault1 extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountRouterLpPosition extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountSettlementAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountSettlementAuthority, TAccountInitializerProgram extends string ? ReadonlyAccount : TAccountInitializerProgram, TAccountInitializerConfig extends string ? ReadonlyAccount : TAccountInitializerConfig, TAccountLaunch extends string ? WritableAccount : TAccountLaunch, TAccountLaunchFeeState extends string ? WritableAccount : TAccountLaunchFeeState, TAccountLaunchAuthority extends string ? ReadonlyAccount : TAccountLaunchAuthority, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountLaunchBaseVault extends string ? WritableAccount : TAccountLaunchBaseVault, TAccountLaunchQuoteVault extends string ? WritableAccount : TAccountLaunchQuoteVault, TAccountRehypeState extends string ? WritableAccount : TAccountRehypeState, TAccountRehypeAuthority extends string ? ReadonlyAccount : TAccountRehypeAuthority, TAccountRouterBaseAta extends string ? WritableAccount : TAccountRouterBaseAta, TAccountRouterQuoteAta extends string ? WritableAccount : TAccountRouterQuoteAta, TAccountBuybackDestination extends string ? ReadonlyAccount : TAccountBuybackDestination, TAccountBuybackBaseAta extends string ? WritableAccount : TAccountBuybackBaseAta, TAccountBuybackQuoteAta extends string ? WritableAccount : TAccountBuybackQuoteAta, TAccountCpmmProgram extends string ? ReadonlyAccount : TAccountCpmmProgram, TAccountCpmmConfig extends string ? ReadonlyAccount : TAccountCpmmConfig, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountPoolAuthority extends string ? ReadonlyAccount : TAccountPoolAuthority, TAccountPoolVault0 extends string ? WritableAccount : TAccountPoolVault0, TAccountPoolVault1 extends string ? WritableAccount : TAccountPoolVault1, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountRouterLpPosition extends string ? WritableAccount : TAccountRouterLpPosition, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountOracle extends string ? WritableAccount : TAccountOracle, ...TRemainingAccounts ]>; type SettleMigratedFeesInstructionData = { discriminator: ReadonlyUint8Array; minBaseToQuoteOut: bigint; minQuoteToBaseOut: bigint; lpRebalance: Option; minLpSharesOut: bigint; }; type SettleMigratedFeesInstructionDataArgs = { minBaseToQuoteOut: number | bigint; minQuoteToBaseOut: number | bigint; lpRebalance: OptionOrNullable; minLpSharesOut: number | bigint; }; declare function getSettleMigratedFeesInstructionDataEncoder(): Encoder; declare function getSettleMigratedFeesInstructionDataDecoder(): Decoder; declare function getSettleMigratedFeesInstructionDataCodec(): Codec; type SettleMigratedFeesAsyncInput = { settlementAuthority: TransactionSigner; initializerProgram?: Address; initializerConfig: Address; launch: Address; launchFeeState: Address; launchAuthority: Address; baseMint: Address; quoteMint: Address; launchBaseVault: Address; launchQuoteVault: Address; rehypeState?: Address; rehypeAuthority?: Address; routerBaseAta?: Address; routerQuoteAta?: Address; buybackDestination: Address; buybackBaseAta: Address; buybackQuoteAta: Address; cpmmProgram?: Address; cpmmConfig: Address; pool: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; protocolFeePosition: Address; routerLpPosition: Address; baseTokenProgram: Address; quoteTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; oracle?: Address; minBaseToQuoteOut: SettleMigratedFeesInstructionDataArgs['minBaseToQuoteOut']; minQuoteToBaseOut: SettleMigratedFeesInstructionDataArgs['minQuoteToBaseOut']; lpRebalance: SettleMigratedFeesInstructionDataArgs['lpRebalance']; minLpSharesOut: SettleMigratedFeesInstructionDataArgs['minLpSharesOut']; }; declare function getSettleMigratedFeesInstructionAsync(input: SettleMigratedFeesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type SettleMigratedFeesInput = { settlementAuthority: TransactionSigner; initializerProgram?: Address; initializerConfig: Address; launch: Address; launchFeeState: Address; launchAuthority: Address; baseMint: Address; quoteMint: Address; launchBaseVault: Address; launchQuoteVault: Address; rehypeState: Address; rehypeAuthority: Address; routerBaseAta: Address; routerQuoteAta: Address; buybackDestination: Address; buybackBaseAta: Address; buybackQuoteAta: Address; cpmmProgram?: Address; cpmmConfig: Address; pool: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; protocolFeePosition: Address; routerLpPosition: Address; baseTokenProgram: Address; quoteTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; oracle?: Address; minBaseToQuoteOut: SettleMigratedFeesInstructionDataArgs['minBaseToQuoteOut']; minQuoteToBaseOut: SettleMigratedFeesInstructionDataArgs['minQuoteToBaseOut']; lpRebalance: SettleMigratedFeesInstructionDataArgs['lpRebalance']; minLpSharesOut: SettleMigratedFeesInstructionDataArgs['minLpSharesOut']; }; declare function getSettleMigratedFeesInstruction(input: SettleMigratedFeesInput, config?: { programAddress?: TProgramAddress; }): SettleMigratedFeesInstruction; type ParsedSettleMigratedFeesInstruction = { programAddress: Address; accounts: { settlementAuthority: TAccountMetas[0]; initializerProgram: TAccountMetas[1]; initializerConfig: TAccountMetas[2]; launch: TAccountMetas[3]; launchFeeState: TAccountMetas[4]; launchAuthority: TAccountMetas[5]; baseMint: TAccountMetas[6]; quoteMint: TAccountMetas[7]; launchBaseVault: TAccountMetas[8]; launchQuoteVault: TAccountMetas[9]; rehypeState: TAccountMetas[10]; rehypeAuthority: TAccountMetas[11]; routerBaseAta: TAccountMetas[12]; routerQuoteAta: TAccountMetas[13]; buybackDestination: TAccountMetas[14]; buybackBaseAta: TAccountMetas[15]; buybackQuoteAta: TAccountMetas[16]; cpmmProgram: TAccountMetas[17]; cpmmConfig: TAccountMetas[18]; pool: TAccountMetas[19]; poolAuthority: TAccountMetas[20]; poolVault0: TAccountMetas[21]; poolVault1: TAccountMetas[22]; protocolFeePosition: TAccountMetas[23]; routerLpPosition: TAccountMetas[24]; baseTokenProgram: TAccountMetas[25]; quoteTokenProgram: TAccountMetas[26]; associatedTokenProgram: TAccountMetas[27]; systemProgram: TAccountMetas[28]; oracle?: TAccountMetas[29] | undefined; }; data: SettleMigratedFeesInstructionData; }; declare function parseSettleMigratedFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSettleMigratedFeesInstruction; declare const index$6_AMM_CONFIG_DISCRIMINATOR: typeof AMM_CONFIG_DISCRIMINATOR; type index$6_AmmConfig = AmmConfig; type index$6_AmmConfigArgs = AmmConfigArgs; declare const index$6_CLAIM_FEES_DISCRIMINATOR: typeof CLAIM_FEES_DISCRIMINATOR; type index$6_ClaimFeesInput = ClaimFeesInput; type index$6_ClaimFeesInstructionData = ClaimFeesInstructionData; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__ARITHMETIC_OVERFLOW: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__ARITHMETIC_OVERFLOW; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__BALANCE_MISMATCH: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__BALANCE_MISMATCH; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_BENEFICIARY: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_BENEFICIARY; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_CONFIG: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_CONFIG; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_FEE_ROUTING: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_FEE_ROUTING; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_HOOK_ACCOUNTS: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_HOOK_ACCOUNTS; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH_FEE_STATE: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH_FEE_STATE; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LP_REBALANCE: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LP_REBALANCE; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_MINT: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_MINT; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_PHASE: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_PHASE; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POOL: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POOL; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POSITION: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POSITION; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_ROUTING_MODE: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_ROUTING_MODE; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_TOKEN_ACCOUNT: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_TOKEN_ACCOUNT; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__LP_REBALANCE_WORSENED: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__LP_REBALANCE_WORSENED; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__NO_FEES_AVAILABLE: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__NO_FEES_AVAILABLE; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__QUOTE_MISMATCH: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__QUOTE_MISMATCH; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__SETTLEMENT_IN_PROGRESS: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__SETTLEMENT_IN_PROGRESS; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_EXCEEDED: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_EXCEEDED; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_PROTECTION_REQUIRED: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_PROTECTION_REQUIRED; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__UNAUTHORIZED_SETTLEMENT: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__UNAUTHORIZED_SETTLEMENT; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__UNCLAIMED_FEES: typeof DOPPLER_REHYPE_ROUTER_V1_ERROR__UNCLAIMED_FEES; declare const index$6_DOPPLER_REHYPE_ROUTER_V1_PROGRAM_ADDRESS: typeof DOPPLER_REHYPE_ROUTER_V1_PROGRAM_ADDRESS; type index$6_DopplerRehypeRouterV1Account = DopplerRehypeRouterV1Account; declare const index$6_DopplerRehypeRouterV1Account: typeof DopplerRehypeRouterV1Account; type index$6_DopplerRehypeRouterV1Error = DopplerRehypeRouterV1Error; type index$6_DopplerRehypeRouterV1Instruction = DopplerRehypeRouterV1Instruction; declare const index$6_DopplerRehypeRouterV1Instruction: typeof DopplerRehypeRouterV1Instruction; type index$6_DopplerRehypeRouterV1Plugin = DopplerRehypeRouterV1Plugin; type index$6_DopplerRehypeRouterV1PluginAccounts = DopplerRehypeRouterV1PluginAccounts; type index$6_DopplerRehypeRouterV1PluginInstructions = DopplerRehypeRouterV1PluginInstructions; type index$6_DopplerRehypeRouterV1PluginRequirements = DopplerRehypeRouterV1PluginRequirements; type index$6_FeeRoute = FeeRoute; type index$6_FeeRouteArgs = FeeRouteArgs; type index$6_FeeRoutingMatrix = FeeRoutingMatrix; type index$6_FeeRoutingMatrixArgs = FeeRoutingMatrixArgs; declare const index$6_INITIALIZE_REHYPE_DISCRIMINATOR: typeof INITIALIZE_REHYPE_DISCRIMINATOR; type index$6_InitializeRehypeArgs = InitializeRehypeArgs; type index$6_InitializeRehypeArgsArgs = InitializeRehypeArgsArgs; type index$6_InitializeRehypeAsyncInput = InitializeRehypeAsyncInput; type index$6_InitializeRehypeInput = InitializeRehypeInput; type index$6_InitializeRehypeInstruction = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountHookProgram extends string | AccountMeta = string, TAccountInitializerProgram extends string | AccountMeta = '4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1', TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountSettlementSigner extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = InitializeRehypeInstruction; type index$6_InitializeRehypeInstructionData = InitializeRehypeInstructionData; type index$6_InitializeRehypeInstructionDataArgs = InitializeRehypeInstructionDataArgs; declare const index$6_LAUNCH_FEE_STATE_DISCRIMINATOR: typeof LAUNCH_FEE_STATE_DISCRIMINATOR; type index$6_LpRebalanceArgs = LpRebalanceArgs; type index$6_LpRebalanceArgsArgs = LpRebalanceArgsArgs; declare const index$6_POOL_DISCRIMINATOR: typeof POOL_DISCRIMINATOR; declare const index$6_POSITION_DISCRIMINATOR: typeof POSITION_DISCRIMINATOR; type index$6_ParsedClaimFeesInstruction = ParsedClaimFeesInstruction; type index$6_ParsedDopplerRehypeRouterV1Instruction = ParsedDopplerRehypeRouterV1Instruction; type index$6_ParsedInitializeRehypeInstruction = ParsedInitializeRehypeInstruction; type index$6_ParsedReplaceBeneficiaryInstruction = ParsedReplaceBeneficiaryInstruction; type index$6_ParsedSettleFeesInstruction = ParsedSettleFeesInstruction; type index$6_ParsedSettleMigratedFeesInstruction = ParsedSettleMigratedFeesInstruction; type index$6_Pool = Pool; type index$6_PoolArgs = PoolArgs; type index$6_Position = Position; type index$6_PositionArgs = PositionArgs; declare const index$6_REHYPE_STATE_DISCRIMINATOR: typeof REHYPE_STATE_DISCRIMINATOR; declare const index$6_REPLACE_BENEFICIARY_DISCRIMINATOR: typeof REPLACE_BENEFICIARY_DISCRIMINATOR; type index$6_RehypeBeneficiary = RehypeBeneficiary; type index$6_RehypeBeneficiaryArgs = RehypeBeneficiaryArgs; type index$6_RehypeBeneficiaryInput = RehypeBeneficiaryInput; type index$6_RehypeBeneficiaryInputArgs = RehypeBeneficiaryInputArgs; type index$6_RehypeBeneficiaryReplaced = RehypeBeneficiaryReplaced; type index$6_RehypeBeneficiaryReplacedArgs = RehypeBeneficiaryReplacedArgs; type index$6_RehypeFeesClaimed = RehypeFeesClaimed; type index$6_RehypeFeesClaimedArgs = RehypeFeesClaimedArgs; type index$6_RehypeInitialized = RehypeInitialized; type index$6_RehypeInitializedArgs = RehypeInitializedArgs; type index$6_RehypeSettled = RehypeSettled; type index$6_RehypeSettledArgs = RehypeSettledArgs; type index$6_RehypeState = RehypeState; type index$6_RehypeStateArgs = RehypeStateArgs; type index$6_ReplaceBeneficiaryAsyncInput = ReplaceBeneficiaryAsyncInput; type index$6_ReplaceBeneficiaryInput = ReplaceBeneficiaryInput; type index$6_ReplaceBeneficiaryInstruction = string, TAccountBaseMint extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = ReplaceBeneficiaryInstruction; type index$6_ReplaceBeneficiaryInstructionData = ReplaceBeneficiaryInstructionData; type index$6_ReplaceBeneficiaryInstructionDataArgs = ReplaceBeneficiaryInstructionDataArgs; declare const index$6_SETTLE_FEES_DISCRIMINATOR: typeof SETTLE_FEES_DISCRIMINATOR; declare const index$6_SETTLE_MIGRATED_FEES_DISCRIMINATOR: typeof SETTLE_MIGRATED_FEES_DISCRIMINATOR; type index$6_SettleFeesArgs = SettleFeesArgs; type index$6_SettleFeesArgsArgs = SettleFeesArgsArgs; type index$6_SettleFeesAsyncInput = SettleFeesAsyncInput; type index$6_SettleFeesInput = SettleFeesInput; type index$6_SettleFeesInstruction = string, TAccountInitializerProgram extends string | AccountMeta = '4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1', TAccountInitializerConfig extends string | AccountMeta = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountSettlementSigner extends string | AccountMeta = string, TAccountRouterBaseAta extends string | AccountMeta = string, TAccountRouterQuoteAta extends string | AccountMeta = string, TAccountBuybackDestination extends string | AccountMeta = string, TAccountBuybackBaseAta extends string | AccountMeta = string, TAccountBuybackQuoteAta extends string | AccountMeta = string, TAccountNamespace extends string | AccountMeta = string, TAccountHookConfig extends string | AccountMeta = string, TAccountHookProgram extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountGateCosigner extends string | AccountMeta = string, TAccountCosignGateControl extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = SettleFeesInstruction; type index$6_SettleFeesInstructionData = SettleFeesInstructionData; type index$6_SettleFeesInstructionDataArgs = SettleFeesInstructionDataArgs; type index$6_SettleMigratedFeesArgs = SettleMigratedFeesArgs; type index$6_SettleMigratedFeesArgsArgs = SettleMigratedFeesArgsArgs; type index$6_SettleMigratedFeesAsyncInput = SettleMigratedFeesAsyncInput; type index$6_SettleMigratedFeesInput = SettleMigratedFeesInput; type index$6_SettleMigratedFeesInstruction = string, TAccountInitializerProgram extends string | AccountMeta = '4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1', TAccountInitializerConfig extends string | AccountMeta = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountLaunchBaseVault extends string | AccountMeta = string, TAccountLaunchQuoteVault extends string | AccountMeta = string, TAccountRehypeState extends string | AccountMeta = string, TAccountRehypeAuthority extends string | AccountMeta = string, TAccountRouterBaseAta extends string | AccountMeta = string, TAccountRouterQuoteAta extends string | AccountMeta = string, TAccountBuybackDestination extends string | AccountMeta = string, TAccountBuybackBaseAta extends string | AccountMeta = string, TAccountBuybackQuoteAta extends string | AccountMeta = string, TAccountCpmmProgram extends string | AccountMeta = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountCpmmConfig extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountPoolAuthority extends string | AccountMeta = string, TAccountPoolVault0 extends string | AccountMeta = string, TAccountPoolVault1 extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountRouterLpPosition extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountOracle extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = SettleMigratedFeesInstruction; type index$6_SettleMigratedFeesInstructionData = SettleMigratedFeesInstructionData; type index$6_SettleMigratedFeesInstructionDataArgs = SettleMigratedFeesInstructionDataArgs; declare const index$6_decodeAmmConfig: typeof decodeAmmConfig; declare const index$6_decodeLaunchFeeState: typeof decodeLaunchFeeState; declare const index$6_decodePool: typeof decodePool; declare const index$6_decodePosition: typeof decodePosition; declare const index$6_decodeRehypeState: typeof decodeRehypeState; declare const index$6_dopplerRehypeRouterV1Program: typeof dopplerRehypeRouterV1Program; declare const index$6_fetchAllAmmConfig: typeof fetchAllAmmConfig; declare const index$6_fetchAllLaunchFeeState: typeof fetchAllLaunchFeeState; declare const index$6_fetchAllMaybeAmmConfig: typeof fetchAllMaybeAmmConfig; declare const index$6_fetchAllMaybeLaunchFeeState: typeof fetchAllMaybeLaunchFeeState; declare const index$6_fetchAllMaybePool: typeof fetchAllMaybePool; declare const index$6_fetchAllMaybePosition: typeof fetchAllMaybePosition; declare const index$6_fetchAllMaybeRehypeState: typeof fetchAllMaybeRehypeState; declare const index$6_fetchAllPool: typeof fetchAllPool; declare const index$6_fetchAllPosition: typeof fetchAllPosition; declare const index$6_fetchAllRehypeState: typeof fetchAllRehypeState; declare const index$6_fetchAmmConfig: typeof fetchAmmConfig; declare const index$6_fetchLaunchFeeState: typeof fetchLaunchFeeState; declare const index$6_fetchMaybeAmmConfig: typeof fetchMaybeAmmConfig; declare const index$6_fetchMaybeLaunchFeeState: typeof fetchMaybeLaunchFeeState; declare const index$6_fetchMaybePool: typeof fetchMaybePool; declare const index$6_fetchMaybePosition: typeof fetchMaybePosition; declare const index$6_fetchMaybeRehypeState: typeof fetchMaybeRehypeState; declare const index$6_fetchPool: typeof fetchPool; declare const index$6_fetchPosition: typeof fetchPosition; declare const index$6_fetchRehypeState: typeof fetchRehypeState; declare const index$6_getAmmConfigCodec: typeof getAmmConfigCodec; declare const index$6_getAmmConfigDecoder: typeof getAmmConfigDecoder; declare const index$6_getAmmConfigDiscriminatorBytes: typeof getAmmConfigDiscriminatorBytes; declare const index$6_getAmmConfigEncoder: typeof getAmmConfigEncoder; declare const index$6_getAmmConfigSize: typeof getAmmConfigSize; declare const index$6_getClaimFeesDiscriminatorBytes: typeof getClaimFeesDiscriminatorBytes; declare const index$6_getClaimFeesInstruction: typeof getClaimFeesInstruction; declare const index$6_getClaimFeesInstructionDataCodec: typeof getClaimFeesInstructionDataCodec; declare const index$6_getClaimFeesInstructionDataDecoder: typeof getClaimFeesInstructionDataDecoder; declare const index$6_getClaimFeesInstructionDataEncoder: typeof getClaimFeesInstructionDataEncoder; declare const index$6_getDopplerRehypeRouterV1ErrorMessage: typeof getDopplerRehypeRouterV1ErrorMessage; declare const index$6_getFeeBeneficiaryCodec: typeof getFeeBeneficiaryCodec; declare const index$6_getFeeBeneficiaryDecoder: typeof getFeeBeneficiaryDecoder; declare const index$6_getFeeBeneficiaryEncoder: typeof getFeeBeneficiaryEncoder; declare const index$6_getFeeRouteCodec: typeof getFeeRouteCodec; declare const index$6_getFeeRouteDecoder: typeof getFeeRouteDecoder; declare const index$6_getFeeRouteEncoder: typeof getFeeRouteEncoder; declare const index$6_getFeeRoutingMatrixCodec: typeof getFeeRoutingMatrixCodec; declare const index$6_getFeeRoutingMatrixDecoder: typeof getFeeRoutingMatrixDecoder; declare const index$6_getFeeRoutingMatrixEncoder: typeof getFeeRoutingMatrixEncoder; declare const index$6_getInitializeRehypeArgsCodec: typeof getInitializeRehypeArgsCodec; declare const index$6_getInitializeRehypeArgsDecoder: typeof getInitializeRehypeArgsDecoder; declare const index$6_getInitializeRehypeArgsEncoder: typeof getInitializeRehypeArgsEncoder; declare const index$6_getInitializeRehypeDiscriminatorBytes: typeof getInitializeRehypeDiscriminatorBytes; declare const index$6_getInitializeRehypeInstruction: typeof getInitializeRehypeInstruction; declare const index$6_getInitializeRehypeInstructionAsync: typeof getInitializeRehypeInstructionAsync; declare const index$6_getInitializeRehypeInstructionDataCodec: typeof getInitializeRehypeInstructionDataCodec; declare const index$6_getInitializeRehypeInstructionDataDecoder: typeof getInitializeRehypeInstructionDataDecoder; declare const index$6_getInitializeRehypeInstructionDataEncoder: typeof getInitializeRehypeInstructionDataEncoder; declare const index$6_getLaunchFeeStateDiscriminatorBytes: typeof getLaunchFeeStateDiscriminatorBytes; declare const index$6_getLaunchFeeStateSize: typeof getLaunchFeeStateSize; declare const index$6_getLpRebalanceArgsCodec: typeof getLpRebalanceArgsCodec; declare const index$6_getLpRebalanceArgsDecoder: typeof getLpRebalanceArgsDecoder; declare const index$6_getLpRebalanceArgsEncoder: typeof getLpRebalanceArgsEncoder; declare const index$6_getPoolCodec: typeof getPoolCodec; declare const index$6_getPoolDecoder: typeof getPoolDecoder; declare const index$6_getPoolDiscriminatorBytes: typeof getPoolDiscriminatorBytes; declare const index$6_getPoolEncoder: typeof getPoolEncoder; declare const index$6_getPoolSize: typeof getPoolSize; declare const index$6_getPositionCodec: typeof getPositionCodec; declare const index$6_getPositionDecoder: typeof getPositionDecoder; declare const index$6_getPositionDiscriminatorBytes: typeof getPositionDiscriminatorBytes; declare const index$6_getPositionEncoder: typeof getPositionEncoder; declare const index$6_getPositionSize: typeof getPositionSize; declare const index$6_getRehypeBeneficiaryCodec: typeof getRehypeBeneficiaryCodec; declare const index$6_getRehypeBeneficiaryDecoder: typeof getRehypeBeneficiaryDecoder; declare const index$6_getRehypeBeneficiaryEncoder: typeof getRehypeBeneficiaryEncoder; declare const index$6_getRehypeBeneficiaryInputCodec: typeof getRehypeBeneficiaryInputCodec; declare const index$6_getRehypeBeneficiaryInputDecoder: typeof getRehypeBeneficiaryInputDecoder; declare const index$6_getRehypeBeneficiaryInputEncoder: typeof getRehypeBeneficiaryInputEncoder; declare const index$6_getRehypeBeneficiaryReplacedCodec: typeof getRehypeBeneficiaryReplacedCodec; declare const index$6_getRehypeBeneficiaryReplacedDecoder: typeof getRehypeBeneficiaryReplacedDecoder; declare const index$6_getRehypeBeneficiaryReplacedEncoder: typeof getRehypeBeneficiaryReplacedEncoder; declare const index$6_getRehypeFeesClaimedCodec: typeof getRehypeFeesClaimedCodec; declare const index$6_getRehypeFeesClaimedDecoder: typeof getRehypeFeesClaimedDecoder; declare const index$6_getRehypeFeesClaimedEncoder: typeof getRehypeFeesClaimedEncoder; declare const index$6_getRehypeInitializedCodec: typeof getRehypeInitializedCodec; declare const index$6_getRehypeInitializedDecoder: typeof getRehypeInitializedDecoder; declare const index$6_getRehypeInitializedEncoder: typeof getRehypeInitializedEncoder; declare const index$6_getRehypeSettledCodec: typeof getRehypeSettledCodec; declare const index$6_getRehypeSettledDecoder: typeof getRehypeSettledDecoder; declare const index$6_getRehypeSettledEncoder: typeof getRehypeSettledEncoder; declare const index$6_getRehypeStateCodec: typeof getRehypeStateCodec; declare const index$6_getRehypeStateDecoder: typeof getRehypeStateDecoder; declare const index$6_getRehypeStateDiscriminatorBytes: typeof getRehypeStateDiscriminatorBytes; declare const index$6_getRehypeStateEncoder: typeof getRehypeStateEncoder; declare const index$6_getRehypeStateSize: typeof getRehypeStateSize; declare const index$6_getReplaceBeneficiaryDiscriminatorBytes: typeof getReplaceBeneficiaryDiscriminatorBytes; declare const index$6_getReplaceBeneficiaryInstruction: typeof getReplaceBeneficiaryInstruction; declare const index$6_getReplaceBeneficiaryInstructionAsync: typeof getReplaceBeneficiaryInstructionAsync; declare const index$6_getReplaceBeneficiaryInstructionDataCodec: typeof getReplaceBeneficiaryInstructionDataCodec; declare const index$6_getReplaceBeneficiaryInstructionDataDecoder: typeof getReplaceBeneficiaryInstructionDataDecoder; declare const index$6_getReplaceBeneficiaryInstructionDataEncoder: typeof getReplaceBeneficiaryInstructionDataEncoder; declare const index$6_getSettleFeesArgsCodec: typeof getSettleFeesArgsCodec; declare const index$6_getSettleFeesArgsDecoder: typeof getSettleFeesArgsDecoder; declare const index$6_getSettleFeesArgsEncoder: typeof getSettleFeesArgsEncoder; declare const index$6_getSettleFeesDiscriminatorBytes: typeof getSettleFeesDiscriminatorBytes; declare const index$6_getSettleFeesInstruction: typeof getSettleFeesInstruction; declare const index$6_getSettleFeesInstructionAsync: typeof getSettleFeesInstructionAsync; declare const index$6_getSettleFeesInstructionDataCodec: typeof getSettleFeesInstructionDataCodec; declare const index$6_getSettleFeesInstructionDataDecoder: typeof getSettleFeesInstructionDataDecoder; declare const index$6_getSettleFeesInstructionDataEncoder: typeof getSettleFeesInstructionDataEncoder; declare const index$6_getSettleMigratedFeesArgsCodec: typeof getSettleMigratedFeesArgsCodec; declare const index$6_getSettleMigratedFeesArgsDecoder: typeof getSettleMigratedFeesArgsDecoder; declare const index$6_getSettleMigratedFeesArgsEncoder: typeof getSettleMigratedFeesArgsEncoder; declare const index$6_getSettleMigratedFeesDiscriminatorBytes: typeof getSettleMigratedFeesDiscriminatorBytes; declare const index$6_getSettleMigratedFeesInstruction: typeof getSettleMigratedFeesInstruction; declare const index$6_getSettleMigratedFeesInstructionAsync: typeof getSettleMigratedFeesInstructionAsync; declare const index$6_getSettleMigratedFeesInstructionDataCodec: typeof getSettleMigratedFeesInstructionDataCodec; declare const index$6_getSettleMigratedFeesInstructionDataDecoder: typeof getSettleMigratedFeesInstructionDataDecoder; declare const index$6_getSettleMigratedFeesInstructionDataEncoder: typeof getSettleMigratedFeesInstructionDataEncoder; declare const index$6_identifyDopplerRehypeRouterV1Account: typeof identifyDopplerRehypeRouterV1Account; declare const index$6_identifyDopplerRehypeRouterV1Instruction: typeof identifyDopplerRehypeRouterV1Instruction; declare const index$6_isDopplerRehypeRouterV1Error: typeof isDopplerRehypeRouterV1Error; declare const index$6_parseClaimFeesInstruction: typeof parseClaimFeesInstruction; declare const index$6_parseDopplerRehypeRouterV1Instruction: typeof parseDopplerRehypeRouterV1Instruction; declare const index$6_parseInitializeRehypeInstruction: typeof parseInitializeRehypeInstruction; declare const index$6_parseReplaceBeneficiaryInstruction: typeof parseReplaceBeneficiaryInstruction; declare const index$6_parseSettleFeesInstruction: typeof parseSettleFeesInstruction; declare const index$6_parseSettleMigratedFeesInstruction: typeof parseSettleMigratedFeesInstruction; declare namespace index$6 { export { index$6_AMM_CONFIG_DISCRIMINATOR as AMM_CONFIG_DISCRIMINATOR, type index$6_AmmConfig as AmmConfig, type index$6_AmmConfigArgs as AmmConfigArgs, index$6_CLAIM_FEES_DISCRIMINATOR as CLAIM_FEES_DISCRIMINATOR, type ClaimFeesAsyncInput$1 as ClaimFeesAsyncInput, type index$6_ClaimFeesInput as ClaimFeesInput, type ClaimFeesInstruction$1 as ClaimFeesInstruction, type index$6_ClaimFeesInstructionData as ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs$1 as ClaimFeesInstructionDataArgs, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__ARITHMETIC_OVERFLOW as DOPPLER_REHYPE_ROUTER_V1_ERROR__ARITHMETIC_OVERFLOW, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__BALANCE_MISMATCH as DOPPLER_REHYPE_ROUTER_V1_ERROR__BALANCE_MISMATCH, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_BENEFICIARY as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_BENEFICIARY, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_CONFIG as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_CONFIG, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_FEE_ROUTING as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_FEE_ROUTING, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_HOOK_ACCOUNTS as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_HOOK_ACCOUNTS, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH_FEE_STATE as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LAUNCH_FEE_STATE, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LP_REBALANCE as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_LP_REBALANCE, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_MINT as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_MINT, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_PHASE as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_PHASE, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POOL as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POOL, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POSITION as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_POSITION, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_ROUTING_MODE as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_ROUTING_MODE, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_TOKEN_ACCOUNT as DOPPLER_REHYPE_ROUTER_V1_ERROR__INVALID_TOKEN_ACCOUNT, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__LP_REBALANCE_WORSENED as DOPPLER_REHYPE_ROUTER_V1_ERROR__LP_REBALANCE_WORSENED, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__NO_FEES_AVAILABLE as DOPPLER_REHYPE_ROUTER_V1_ERROR__NO_FEES_AVAILABLE, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__QUOTE_MISMATCH as DOPPLER_REHYPE_ROUTER_V1_ERROR__QUOTE_MISMATCH, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__SETTLEMENT_IN_PROGRESS as DOPPLER_REHYPE_ROUTER_V1_ERROR__SETTLEMENT_IN_PROGRESS, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_EXCEEDED as DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_EXCEEDED, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_PROTECTION_REQUIRED as DOPPLER_REHYPE_ROUTER_V1_ERROR__SLIPPAGE_PROTECTION_REQUIRED, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__UNAUTHORIZED_SETTLEMENT as DOPPLER_REHYPE_ROUTER_V1_ERROR__UNAUTHORIZED_SETTLEMENT, index$6_DOPPLER_REHYPE_ROUTER_V1_ERROR__UNCLAIMED_FEES as DOPPLER_REHYPE_ROUTER_V1_ERROR__UNCLAIMED_FEES, index$6_DOPPLER_REHYPE_ROUTER_V1_PROGRAM_ADDRESS as DOPPLER_REHYPE_ROUTER_V1_PROGRAM_ADDRESS, index$6_DopplerRehypeRouterV1Account as DopplerRehypeRouterV1Account, type index$6_DopplerRehypeRouterV1Error as DopplerRehypeRouterV1Error, index$6_DopplerRehypeRouterV1Instruction as DopplerRehypeRouterV1Instruction, type index$6_DopplerRehypeRouterV1Plugin as DopplerRehypeRouterV1Plugin, type index$6_DopplerRehypeRouterV1PluginAccounts as DopplerRehypeRouterV1PluginAccounts, type index$6_DopplerRehypeRouterV1PluginInstructions as DopplerRehypeRouterV1PluginInstructions, type index$6_DopplerRehypeRouterV1PluginRequirements as DopplerRehypeRouterV1PluginRequirements, type FeeBeneficiary$1 as FeeBeneficiary, type FeeBeneficiaryArgs$1 as FeeBeneficiaryArgs, type index$6_FeeRoute as FeeRoute, type index$6_FeeRouteArgs as FeeRouteArgs, type index$6_FeeRoutingMatrix as FeeRoutingMatrix, type index$6_FeeRoutingMatrixArgs as FeeRoutingMatrixArgs, index$6_INITIALIZE_REHYPE_DISCRIMINATOR as INITIALIZE_REHYPE_DISCRIMINATOR, INIT_CONFIG_DISCRIMINATOR$1 as INIT_CONFIG_DISCRIMINATOR, type InitConfig$2 as InitConfig, type InitConfigArgs$2 as InitConfigArgs, type index$6_InitializeRehypeArgs as InitializeRehypeArgs, type index$6_InitializeRehypeArgsArgs as InitializeRehypeArgsArgs, type index$6_InitializeRehypeAsyncInput as InitializeRehypeAsyncInput, type index$6_InitializeRehypeInput as InitializeRehypeInput, type index$6_InitializeRehypeInstruction as InitializeRehypeInstruction, type index$6_InitializeRehypeInstructionData as InitializeRehypeInstructionData, type index$6_InitializeRehypeInstructionDataArgs as InitializeRehypeInstructionDataArgs, LAUNCH_DISCRIMINATOR$2 as LAUNCH_DISCRIMINATOR, index$6_LAUNCH_FEE_STATE_DISCRIMINATOR as LAUNCH_FEE_STATE_DISCRIMINATOR, type Launch$3 as Launch, type LaunchArgs$3 as LaunchArgs, type LaunchFeeState$1 as LaunchFeeState, type LaunchFeeStateArgs$1 as LaunchFeeStateArgs, type index$6_LpRebalanceArgs as LpRebalanceArgs, type index$6_LpRebalanceArgsArgs as LpRebalanceArgsArgs, index$6_POOL_DISCRIMINATOR as POOL_DISCRIMINATOR, index$6_POSITION_DISCRIMINATOR as POSITION_DISCRIMINATOR, type index$6_ParsedClaimFeesInstruction as ParsedClaimFeesInstruction, type index$6_ParsedDopplerRehypeRouterV1Instruction as ParsedDopplerRehypeRouterV1Instruction, type index$6_ParsedInitializeRehypeInstruction as ParsedInitializeRehypeInstruction, type index$6_ParsedReplaceBeneficiaryInstruction as ParsedReplaceBeneficiaryInstruction, type index$6_ParsedSettleFeesInstruction as ParsedSettleFeesInstruction, type index$6_ParsedSettleMigratedFeesInstruction as ParsedSettleMigratedFeesInstruction, type PayloadBuf$3 as PayloadBuf, type PayloadBufArgs$3 as PayloadBufArgs, type index$6_Pool as Pool, type index$6_PoolArgs as PoolArgs, type index$6_Position as Position, type index$6_PositionArgs as PositionArgs, index$6_REHYPE_STATE_DISCRIMINATOR as REHYPE_STATE_DISCRIMINATOR, index$6_REPLACE_BENEFICIARY_DISCRIMINATOR as REPLACE_BENEFICIARY_DISCRIMINATOR, type index$6_RehypeBeneficiary as RehypeBeneficiary, type index$6_RehypeBeneficiaryArgs as RehypeBeneficiaryArgs, type index$6_RehypeBeneficiaryInput as RehypeBeneficiaryInput, type index$6_RehypeBeneficiaryInputArgs as RehypeBeneficiaryInputArgs, type index$6_RehypeBeneficiaryReplaced as RehypeBeneficiaryReplaced, type index$6_RehypeBeneficiaryReplacedArgs as RehypeBeneficiaryReplacedArgs, type index$6_RehypeFeesClaimed as RehypeFeesClaimed, type index$6_RehypeFeesClaimedArgs as RehypeFeesClaimedArgs, type index$6_RehypeInitialized as RehypeInitialized, type index$6_RehypeInitializedArgs as RehypeInitializedArgs, type index$6_RehypeSettled as RehypeSettled, type index$6_RehypeSettledArgs as RehypeSettledArgs, type index$6_RehypeState as RehypeState, type index$6_RehypeStateArgs as RehypeStateArgs, type index$6_ReplaceBeneficiaryAsyncInput as ReplaceBeneficiaryAsyncInput, type index$6_ReplaceBeneficiaryInput as ReplaceBeneficiaryInput, type index$6_ReplaceBeneficiaryInstruction as ReplaceBeneficiaryInstruction, type index$6_ReplaceBeneficiaryInstructionData as ReplaceBeneficiaryInstructionData, type index$6_ReplaceBeneficiaryInstructionDataArgs as ReplaceBeneficiaryInstructionDataArgs, index$6_SETTLE_FEES_DISCRIMINATOR as SETTLE_FEES_DISCRIMINATOR, index$6_SETTLE_MIGRATED_FEES_DISCRIMINATOR as SETTLE_MIGRATED_FEES_DISCRIMINATOR, type index$6_SettleFeesArgs as SettleFeesArgs, type index$6_SettleFeesArgsArgs as SettleFeesArgsArgs, type index$6_SettleFeesAsyncInput as SettleFeesAsyncInput, type index$6_SettleFeesInput as SettleFeesInput, type index$6_SettleFeesInstruction as SettleFeesInstruction, type index$6_SettleFeesInstructionData as SettleFeesInstructionData, type index$6_SettleFeesInstructionDataArgs as SettleFeesInstructionDataArgs, type index$6_SettleMigratedFeesArgs as SettleMigratedFeesArgs, type index$6_SettleMigratedFeesArgsArgs as SettleMigratedFeesArgsArgs, type index$6_SettleMigratedFeesAsyncInput as SettleMigratedFeesAsyncInput, type index$6_SettleMigratedFeesInput as SettleMigratedFeesInput, type index$6_SettleMigratedFeesInstruction as SettleMigratedFeesInstruction, type index$6_SettleMigratedFeesInstructionData as SettleMigratedFeesInstructionData, type index$6_SettleMigratedFeesInstructionDataArgs as SettleMigratedFeesInstructionDataArgs, index$6_decodeAmmConfig as decodeAmmConfig, decodeInitConfig$1 as decodeInitConfig, decodeLaunch$2 as decodeLaunch, index$6_decodeLaunchFeeState as decodeLaunchFeeState, index$6_decodePool as decodePool, index$6_decodePosition as decodePosition, index$6_decodeRehypeState as decodeRehypeState, index$6_dopplerRehypeRouterV1Program as dopplerRehypeRouterV1Program, index$6_fetchAllAmmConfig as fetchAllAmmConfig, fetchAllInitConfig$1 as fetchAllInitConfig, fetchAllLaunch$2 as fetchAllLaunch, index$6_fetchAllLaunchFeeState as fetchAllLaunchFeeState, index$6_fetchAllMaybeAmmConfig as fetchAllMaybeAmmConfig, fetchAllMaybeInitConfig$1 as fetchAllMaybeInitConfig, fetchAllMaybeLaunch$2 as fetchAllMaybeLaunch, index$6_fetchAllMaybeLaunchFeeState as fetchAllMaybeLaunchFeeState, index$6_fetchAllMaybePool as fetchAllMaybePool, index$6_fetchAllMaybePosition as fetchAllMaybePosition, index$6_fetchAllMaybeRehypeState as fetchAllMaybeRehypeState, index$6_fetchAllPool as fetchAllPool, index$6_fetchAllPosition as fetchAllPosition, index$6_fetchAllRehypeState as fetchAllRehypeState, index$6_fetchAmmConfig as fetchAmmConfig, fetchInitConfig$1 as fetchInitConfig, fetchLaunch$3 as fetchLaunch, index$6_fetchLaunchFeeState as fetchLaunchFeeState, index$6_fetchMaybeAmmConfig as fetchMaybeAmmConfig, fetchMaybeInitConfig$1 as fetchMaybeInitConfig, fetchMaybeLaunch$2 as fetchMaybeLaunch, index$6_fetchMaybeLaunchFeeState as fetchMaybeLaunchFeeState, index$6_fetchMaybePool as fetchMaybePool, index$6_fetchMaybePosition as fetchMaybePosition, index$6_fetchMaybeRehypeState as fetchMaybeRehypeState, index$6_fetchPool as fetchPool, index$6_fetchPosition as fetchPosition, index$6_fetchRehypeState as fetchRehypeState, index$6_getAmmConfigCodec as getAmmConfigCodec, index$6_getAmmConfigDecoder as getAmmConfigDecoder, index$6_getAmmConfigDiscriminatorBytes as getAmmConfigDiscriminatorBytes, index$6_getAmmConfigEncoder as getAmmConfigEncoder, index$6_getAmmConfigSize as getAmmConfigSize, index$6_getClaimFeesDiscriminatorBytes as getClaimFeesDiscriminatorBytes, index$6_getClaimFeesInstruction as getClaimFeesInstruction, getClaimFeesInstructionAsync$1 as getClaimFeesInstructionAsync, index$6_getClaimFeesInstructionDataCodec as getClaimFeesInstructionDataCodec, index$6_getClaimFeesInstructionDataDecoder as getClaimFeesInstructionDataDecoder, index$6_getClaimFeesInstructionDataEncoder as getClaimFeesInstructionDataEncoder, index$6_getDopplerRehypeRouterV1ErrorMessage as getDopplerRehypeRouterV1ErrorMessage, index$6_getFeeBeneficiaryCodec as getFeeBeneficiaryCodec, index$6_getFeeBeneficiaryDecoder as getFeeBeneficiaryDecoder, index$6_getFeeBeneficiaryEncoder as getFeeBeneficiaryEncoder, index$6_getFeeRouteCodec as getFeeRouteCodec, index$6_getFeeRouteDecoder as getFeeRouteDecoder, index$6_getFeeRouteEncoder as getFeeRouteEncoder, index$6_getFeeRoutingMatrixCodec as getFeeRoutingMatrixCodec, index$6_getFeeRoutingMatrixDecoder as getFeeRoutingMatrixDecoder, index$6_getFeeRoutingMatrixEncoder as getFeeRoutingMatrixEncoder, getInitConfigCodec$2 as getInitConfigCodec, getInitConfigDecoder$2 as getInitConfigDecoder, getInitConfigDiscriminatorBytes$1 as getInitConfigDiscriminatorBytes, getInitConfigEncoder$2 as getInitConfigEncoder, getInitConfigSize$2 as getInitConfigSize, index$6_getInitializeRehypeArgsCodec as getInitializeRehypeArgsCodec, index$6_getInitializeRehypeArgsDecoder as getInitializeRehypeArgsDecoder, index$6_getInitializeRehypeArgsEncoder as getInitializeRehypeArgsEncoder, index$6_getInitializeRehypeDiscriminatorBytes as getInitializeRehypeDiscriminatorBytes, index$6_getInitializeRehypeInstruction as getInitializeRehypeInstruction, index$6_getInitializeRehypeInstructionAsync as getInitializeRehypeInstructionAsync, index$6_getInitializeRehypeInstructionDataCodec as getInitializeRehypeInstructionDataCodec, index$6_getInitializeRehypeInstructionDataDecoder as getInitializeRehypeInstructionDataDecoder, index$6_getInitializeRehypeInstructionDataEncoder as getInitializeRehypeInstructionDataEncoder, getLaunchCodec$3 as getLaunchCodec, getLaunchDecoder$3 as getLaunchDecoder, getLaunchDiscriminatorBytes$2 as getLaunchDiscriminatorBytes, getLaunchEncoder$3 as getLaunchEncoder, getLaunchFeeStateCodec$1 as getLaunchFeeStateCodec, getLaunchFeeStateDecoder$1 as getLaunchFeeStateDecoder, index$6_getLaunchFeeStateDiscriminatorBytes as getLaunchFeeStateDiscriminatorBytes, getLaunchFeeStateEncoder$1 as getLaunchFeeStateEncoder, index$6_getLaunchFeeStateSize as getLaunchFeeStateSize, getLaunchSize$2 as getLaunchSize, index$6_getLpRebalanceArgsCodec as getLpRebalanceArgsCodec, index$6_getLpRebalanceArgsDecoder as getLpRebalanceArgsDecoder, index$6_getLpRebalanceArgsEncoder as getLpRebalanceArgsEncoder, getPayloadBufCodec$2 as getPayloadBufCodec, getPayloadBufDecoder$2 as getPayloadBufDecoder, getPayloadBufEncoder$2 as getPayloadBufEncoder, index$6_getPoolCodec as getPoolCodec, index$6_getPoolDecoder as getPoolDecoder, index$6_getPoolDiscriminatorBytes as getPoolDiscriminatorBytes, index$6_getPoolEncoder as getPoolEncoder, index$6_getPoolSize as getPoolSize, index$6_getPositionCodec as getPositionCodec, index$6_getPositionDecoder as getPositionDecoder, index$6_getPositionDiscriminatorBytes as getPositionDiscriminatorBytes, index$6_getPositionEncoder as getPositionEncoder, index$6_getPositionSize as getPositionSize, index$6_getRehypeBeneficiaryCodec as getRehypeBeneficiaryCodec, index$6_getRehypeBeneficiaryDecoder as getRehypeBeneficiaryDecoder, index$6_getRehypeBeneficiaryEncoder as getRehypeBeneficiaryEncoder, index$6_getRehypeBeneficiaryInputCodec as getRehypeBeneficiaryInputCodec, index$6_getRehypeBeneficiaryInputDecoder as getRehypeBeneficiaryInputDecoder, index$6_getRehypeBeneficiaryInputEncoder as getRehypeBeneficiaryInputEncoder, index$6_getRehypeBeneficiaryReplacedCodec as getRehypeBeneficiaryReplacedCodec, index$6_getRehypeBeneficiaryReplacedDecoder as getRehypeBeneficiaryReplacedDecoder, index$6_getRehypeBeneficiaryReplacedEncoder as getRehypeBeneficiaryReplacedEncoder, index$6_getRehypeFeesClaimedCodec as getRehypeFeesClaimedCodec, index$6_getRehypeFeesClaimedDecoder as getRehypeFeesClaimedDecoder, index$6_getRehypeFeesClaimedEncoder as getRehypeFeesClaimedEncoder, index$6_getRehypeInitializedCodec as getRehypeInitializedCodec, index$6_getRehypeInitializedDecoder as getRehypeInitializedDecoder, index$6_getRehypeInitializedEncoder as getRehypeInitializedEncoder, index$6_getRehypeSettledCodec as getRehypeSettledCodec, index$6_getRehypeSettledDecoder as getRehypeSettledDecoder, index$6_getRehypeSettledEncoder as getRehypeSettledEncoder, index$6_getRehypeStateCodec as getRehypeStateCodec, index$6_getRehypeStateDecoder as getRehypeStateDecoder, index$6_getRehypeStateDiscriminatorBytes as getRehypeStateDiscriminatorBytes, index$6_getRehypeStateEncoder as getRehypeStateEncoder, index$6_getRehypeStateSize as getRehypeStateSize, index$6_getReplaceBeneficiaryDiscriminatorBytes as getReplaceBeneficiaryDiscriminatorBytes, index$6_getReplaceBeneficiaryInstruction as getReplaceBeneficiaryInstruction, index$6_getReplaceBeneficiaryInstructionAsync as getReplaceBeneficiaryInstructionAsync, index$6_getReplaceBeneficiaryInstructionDataCodec as getReplaceBeneficiaryInstructionDataCodec, index$6_getReplaceBeneficiaryInstructionDataDecoder as getReplaceBeneficiaryInstructionDataDecoder, index$6_getReplaceBeneficiaryInstructionDataEncoder as getReplaceBeneficiaryInstructionDataEncoder, index$6_getSettleFeesArgsCodec as getSettleFeesArgsCodec, index$6_getSettleFeesArgsDecoder as getSettleFeesArgsDecoder, index$6_getSettleFeesArgsEncoder as getSettleFeesArgsEncoder, index$6_getSettleFeesDiscriminatorBytes as getSettleFeesDiscriminatorBytes, index$6_getSettleFeesInstruction as getSettleFeesInstruction, index$6_getSettleFeesInstructionAsync as getSettleFeesInstructionAsync, index$6_getSettleFeesInstructionDataCodec as getSettleFeesInstructionDataCodec, index$6_getSettleFeesInstructionDataDecoder as getSettleFeesInstructionDataDecoder, index$6_getSettleFeesInstructionDataEncoder as getSettleFeesInstructionDataEncoder, index$6_getSettleMigratedFeesArgsCodec as getSettleMigratedFeesArgsCodec, index$6_getSettleMigratedFeesArgsDecoder as getSettleMigratedFeesArgsDecoder, index$6_getSettleMigratedFeesArgsEncoder as getSettleMigratedFeesArgsEncoder, index$6_getSettleMigratedFeesDiscriminatorBytes as getSettleMigratedFeesDiscriminatorBytes, index$6_getSettleMigratedFeesInstruction as getSettleMigratedFeesInstruction, index$6_getSettleMigratedFeesInstructionAsync as getSettleMigratedFeesInstructionAsync, index$6_getSettleMigratedFeesInstructionDataCodec as getSettleMigratedFeesInstructionDataCodec, index$6_getSettleMigratedFeesInstructionDataDecoder as getSettleMigratedFeesInstructionDataDecoder, index$6_getSettleMigratedFeesInstructionDataEncoder as getSettleMigratedFeesInstructionDataEncoder, index$6_identifyDopplerRehypeRouterV1Account as identifyDopplerRehypeRouterV1Account, index$6_identifyDopplerRehypeRouterV1Instruction as identifyDopplerRehypeRouterV1Instruction, index$6_isDopplerRehypeRouterV1Error as isDopplerRehypeRouterV1Error, index$6_parseClaimFeesInstruction as parseClaimFeesInstruction, index$6_parseDopplerRehypeRouterV1Instruction as parseDopplerRehypeRouterV1Instruction, index$6_parseInitializeRehypeInstruction as parseInitializeRehypeInstruction, index$6_parseReplaceBeneficiaryInstruction as parseReplaceBeneficiaryInstruction, index$6_parseSettleFeesInstruction as parseSettleFeesInstruction, index$6_parseSettleMigratedFeesInstruction as parseSettleMigratedFeesInstruction }; } interface SolanaCpmmProgramAddresses { cpmmProgram: Address; initializerProgram: Address; cpmmMigratorProgram: Address; dopplerLaunchHookV1Program: Address; } interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses { cpmmConfig: Address; initializerConfig: Address; } interface SolanaFeeRehypothecationProgramAddresses { initializerProgram: Address; dopplerLaunchHookV2Program: Address; dopplerRehypeRouterV1Program: Address; } interface SolanaFeeRehypothecationDeployment extends SolanaFeeRehypothecationProgramAddresses { initializerConfig: Address; dopplerLaunchHookV2Config: Address; } declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses; declare const DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses; declare const DOPPLER_SOLANA_DEVNET_FEE_REHYPOTHECATION_PROGRAM_ADDRESSES: SolanaFeeRehypothecationProgramAddresses; declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise; declare function deriveSolanaFeeRehypothecationDeployment(programs?: SolanaFeeRehypothecationProgramAddresses): Promise; type PrepareFeeRehypothecationClaimInput = { rpc: Rpc; baseMint: Address; beneficiary: Address; payer: TransactionSigner; deployment?: SolanaFeeRehypothecationDeployment; }; type PrepareFeeRehypothecationClaimResult = { instruction: Instruction; beneficiaryIndex: number; pendingBaseFees: bigint; pendingQuoteFees: bigint; }; declare function prepareClaim$1(input: PrepareFeeRehypothecationClaimInput): Promise; /** * 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 */ type CreateSpotPoolArgs = { swapFeeBps: number; positionId: bigint; amount0Max: bigint; amount1Max: bigint; minSharesOut: bigint; /** * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path). * Any other value creates a hooked spot pool whose address commits to the * hook program and flags. */ hookProgram: Address; hookFlags: number; }; type CreateSpotPoolArgsArgs = { swapFeeBps: number; positionId: number | bigint; amount0Max: number | bigint; amount1Max: number | bigint; minSharesOut: number | bigint; /** * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path). * Any other value creates a hooked spot pool whose address commits to the * hook program and flags. */ hookProgram: Address; hookFlags: number; }; declare function getCreateSpotPoolArgsEncoder(): FixedSizeEncoder; declare function getCreateSpotPoolArgsDecoder(): FixedSizeDecoder; declare function getCreateSpotPoolArgsCodec(): FixedSizeCodec; /** * 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 */ /** * Arguments for migrate instruction. * These are deserialized from the migrator_migrate_payload passed by initializer. */ type MigrateArgs = { /** Base tokens reserved for distribution to recipients */ baseForDistribution: bigint; /** Base tokens reserved for CPMM liquidity */ baseForLiquidity: bigint; }; type MigrateArgsArgs = { /** Base tokens reserved for distribution to recipients */ baseForDistribution: number | bigint; /** Base tokens reserved for CPMM liquidity */ baseForLiquidity: number | bigint; }; declare function getMigrateArgsEncoder(): FixedSizeEncoder; declare function getMigrateArgsDecoder(): FixedSizeDecoder; declare function getMigrateArgsCodec(): FixedSizeCodec; /** * 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 */ type MigratedPoolHookConfig = { hookProgram: Address; hookFlags: number; }; type MigratedPoolHookConfigArgs = MigratedPoolHookConfig; /** * 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 */ type Recipient = { wallet: Address; amount: bigint; }; type RecipientArgs = { wallet: Address; amount: number | bigint; }; declare function getRecipientEncoder(): FixedSizeEncoder; declare function getRecipientDecoder(): FixedSizeDecoder; declare function getRecipientCodec(): FixedSizeCodec; /** * 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 */ /** * Arguments for register_launch instruction. * These are deserialized from the migrator_init_payload passed by initializer. */ type RegisterLaunchArgs = { cpmmConfig: Address; initialSwapFeeBps: number; initialFeeSplitBps: number; recipients: Array; minRaiseQuote: bigint; minMigrationPriceQ64Opt: Option; migratedPoolHookConfig: Option; }; type RegisterLaunchArgsArgs = { cpmmConfig: Address; initialSwapFeeBps: number; initialFeeSplitBps: number; recipients: Array; minRaiseQuote: number | bigint; minMigrationPriceQ64Opt: OptionOrNullable; migratedPoolHookConfig: OptionOrNullable; }; declare function getRegisterLaunchArgsEncoder(): Encoder; declare function getRegisterLaunchArgsDecoder(): Decoder; declare function getRegisterLaunchArgsCodec(): Codec; /** * 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 */ type SpotPoolCreated = { pool: Address; owner: Address; token0Mint: Address; token1Mint: Address; amount0Max: bigint; amount1Max: bigint; swapFeeBps: number; hookProgram: Address; hookFlags: number; }; type SpotPoolCreatedArgs = { pool: Address; owner: Address; token0Mint: Address; token1Mint: Address; amount0Max: number | bigint; amount1Max: number | bigint; swapFeeBps: number; hookProgram: Address; hookFlags: number; }; /** * 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 */ type CpmmMigratorState = { discriminator: ReadonlyUint8Array; /** The launch this state is associated with */ launch: Address; /** Admin who registered this launch (receives unsold curve base tokens) */ admin: Address; /** CPMM config to use for pool initialization */ cpmmConfig: Address; /** Initial swap fee for the CPMM pool (basis points) */ initialSwapFeeBps: number; /** Initial fee split for the CPMM pool (basis points) */ initialFeeSplitBps: number; /** Padding for alignment */ pad0: ReadonlyUint8Array; /** Hook program to set on the migrated CPMM pool */ migratedPoolHookProgram: Address; /** Hook flags to set on the migrated CPMM pool */ migratedPoolHookFlags: number; /** Recipients for base token distribution at migration */ recipients: Array; /** Minimum quote tokens required to migrate */ minRaiseQuote: bigint; /** Optional minimum price floor (Q64 fixed point) */ minMigrationPriceQ64Opt: Option; /** Whether this launch has been migrated */ isMigrated: boolean; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; type CpmmMigratorStateArgs = { /** The launch this state is associated with */ launch: Address; /** Admin who registered this launch (receives unsold curve base tokens) */ admin: Address; /** CPMM config to use for pool initialization */ cpmmConfig: Address; /** Initial swap fee for the CPMM pool (basis points) */ initialSwapFeeBps: number; /** Initial fee split for the CPMM pool (basis points) */ initialFeeSplitBps: number; /** Padding for alignment */ pad0: ReadonlyUint8Array; /** Hook program to set on the migrated CPMM pool */ migratedPoolHookProgram: Address; /** Hook flags to set on the migrated CPMM pool */ migratedPoolHookFlags: number; /** Recipients for base token distribution at migration */ recipients: Array; /** Minimum quote tokens required to migrate */ minRaiseQuote: number | bigint; /** Optional minimum price floor (Q64 fixed point) */ minMigrationPriceQ64Opt: OptionOrNullable; /** Whether this launch has been migrated */ isMigrated: boolean; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link CpmmMigratorStateArgs} account data. */ declare function getCpmmMigratorStateEncoder(): Encoder; /** Gets the decoder for {@link CpmmMigratorState} account data. */ declare function getCpmmMigratorStateDecoder(): Decoder; /** Gets the codec for {@link CpmmMigratorState} account data. */ declare function getCpmmMigratorStateCodec(): Codec; /** * 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 */ declare const CPMM_MIGRATOR_PROGRAM_ADDRESS: Address<"7WMUTNC41eMCo6eGH5Sy2xbgE3AycvLbFPo95AU9CSUd">; /** * 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 */ type CreateSpotPoolInstruction$1 = string, TAccountPayer extends string | AccountMeta = string, TAccountLiquidityOwner extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountPoolAuthority extends string | AccountMeta = string, TAccountPoolVault0 extends string | AccountMeta = string, TAccountPoolVault1 extends string | AccountMeta = string, TAccountProtocolFeeOwner extends string | AccountMeta = string, TAccountProtocolFeePosition extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountUser0 extends string | AccountMeta = string, TAccountUser1 extends string | AccountMeta = string, TAccountCpmmProgram extends string | AccountMeta = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountMigrationAuthority extends string | AccountMeta = string, TAccountToken0Program extends string | AccountMeta = string, TAccountToken1Program extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountHookProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountCpmmConfig extends string ? ReadonlyAccount : TAccountCpmmConfig, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountLiquidityOwner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountLiquidityOwner, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountPoolAuthority extends string ? ReadonlyAccount : TAccountPoolAuthority, TAccountPoolVault0 extends string ? WritableAccount : TAccountPoolVault0, TAccountPoolVault1 extends string ? WritableAccount : TAccountPoolVault1, TAccountProtocolFeeOwner extends string ? ReadonlyAccount : TAccountProtocolFeeOwner, TAccountProtocolFeePosition extends string ? WritableAccount : TAccountProtocolFeePosition, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountUser0 extends string ? WritableAccount : TAccountUser0, TAccountUser1 extends string ? WritableAccount : TAccountUser1, TAccountCpmmProgram extends string ? ReadonlyAccount : TAccountCpmmProgram, TAccountMigrationAuthority extends string ? ReadonlyAccount : TAccountMigrationAuthority, TAccountToken0Program extends string ? ReadonlyAccount : TAccountToken0Program, TAccountToken1Program extends string ? ReadonlyAccount : TAccountToken1Program, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountHookProgram extends string ? ReadonlyAccount : TAccountHookProgram, ...TRemainingAccounts ]>; type CreateSpotPoolInstructionData = { discriminator: ReadonlyUint8Array; swapFeeBps: number; positionId: bigint; amount0Max: bigint; amount1Max: bigint; minSharesOut: bigint; /** * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path). * Any other value creates a hooked spot pool whose address commits to the * hook program and flags. */ hookProgram: Address; hookFlags: number; }; type CreateSpotPoolInstructionDataArgs = { swapFeeBps: number; positionId: number | bigint; amount0Max: number | bigint; amount1Max: number | bigint; minSharesOut: number | bigint; /** * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path). * Any other value creates a hooked spot pool whose address commits to the * hook program and flags. */ hookProgram: Address; hookFlags: number; }; declare function getCreateSpotPoolInstructionDataEncoder(): FixedSizeEncoder; declare function getCreateSpotPoolInstructionDataDecoder(): FixedSizeDecoder; declare function getCreateSpotPoolInstructionDataCodec(): FixedSizeCodec; type CreateSpotPoolAsyncInput = { cpmmConfig: Address; payer: TransactionSigner; liquidityOwner: TransactionSigner; token0Mint: Address; token1Mint: Address; pool: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; protocolFeeOwner: Address; protocolFeePosition: Address; position: Address; user0: Address; user1: Address; cpmmProgram?: Address; migrationAuthority?: Address; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; /** * Omit it entirely for a hookless pool. When present it must equal * `args.hook_program`; CPMM additionally requires it to be executable. */ hookProgram?: Address; swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps']; positionId: CreateSpotPoolInstructionDataArgs['positionId']; amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max']; amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max']; minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut']; hookProgramArg: CreateSpotPoolInstructionDataArgs['hookProgram']; hookFlags: CreateSpotPoolInstructionDataArgs['hookFlags']; }; declare function getCreateSpotPoolInstructionAsync(input: CreateSpotPoolAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type CreateSpotPoolInput = { cpmmConfig: Address; payer: TransactionSigner; liquidityOwner: TransactionSigner; token0Mint: Address; token1Mint: Address; pool: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; protocolFeeOwner: Address; protocolFeePosition: Address; position: Address; user0: Address; user1: Address; cpmmProgram?: Address; migrationAuthority: Address; token0Program: Address; token1Program: Address; systemProgram?: Address; rent?: Address; /** * Omit it entirely for a hookless pool. When present it must equal * `args.hook_program`; CPMM additionally requires it to be executable. */ hookProgram?: Address; swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps']; positionId: CreateSpotPoolInstructionDataArgs['positionId']; amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max']; amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max']; minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut']; hookProgramArg: CreateSpotPoolInstructionDataArgs['hookProgram']; hookFlags: CreateSpotPoolInstructionDataArgs['hookFlags']; }; declare function getCreateSpotPoolInstruction(input: CreateSpotPoolInput, config?: { programAddress?: TProgramAddress; }): CreateSpotPoolInstruction$1; declare const CPMM_MIGRATOR_PROGRAM_ID: Address; declare const SEED_STATE = "state"; declare const SEED_MIGRATION_AUTHORITY = "migration_authority"; declare const MAX_RECIPIENTS = 2; declare const CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: { readonly createSpotPool: Uint8Array; readonly registerLaunch: Uint8Array; readonly migrate: Uint8Array; }; declare const CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: { readonly CpmmMigratorState: Uint8Array; }; declare function getCpmmMigratorStateAddress(launch: Address, programId?: Address): Promise; declare function getCpmmMigrationAuthorityAddress(programId?: Address): Promise; declare function fetchCpmmMigratorState(rpc: Rpc, address: Address): Promise; type DeriveSpotPoolAccountsInput = { tokenAMint: Address; tokenBMint: Address; swapFeeBps: number; liquidityOwner: Address; tokenAProgram?: Address; tokenBProgram?: Address; tokenAAccount?: Address; tokenBAccount?: Address; token0Account?: Address; token1Account?: Address; positionId?: number | bigint; /** Optional allowlisted hook program. Set hookFlags when provided. */ hookProgram?: Address; /** Immutable swap-phase flags: HF_BEFORE_SWAP, HF_AFTER_SWAP, or both. */ hookFlags?: number; cpmmProgram?: Address; cpmmMigratorProgram?: Address; }; type SpotPoolAccounts = { cpmmConfig: Address; token0Mint: Address; token1Mint: Address; token0Program: Address; token1Program: Address; pool: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; protocolFeeOwner: Address; protocolFeePosition: Address; position: Address; user0: Address; user1: Address; migrationAuthority: Address; }; type AddressOrSigner$7 = Address | TransactionSigner; type CreateSpotPoolInstructionInput = Omit & { payer: AddressOrSigner$7; tokenAAmount: CreateSpotPoolInstructionDataArgs['amount0Max']; tokenBAmount: CreateSpotPoolInstructionDataArgs['amount1Max']; swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps']; minSharesOut?: CreateSpotPoolInstructionDataArgs['minSharesOut']; liquidityOwner?: AddressOrSigner$7; systemProgram?: Address; rent?: Address; }; type CreateSpotPoolInstruction = Instruction & InstructionWithAccounts<(AccountMeta | AccountSignerMeta)[]> & InstructionWithData; declare function deriveSpotPoolAccounts({ tokenAMint, tokenBMint, swapFeeBps, liquidityOwner, tokenAProgram, tokenBProgram, tokenAAccount, tokenBAccount, token0Account, token1Account, positionId, hookProgram, hookFlags, cpmmProgram, cpmmMigratorProgram, }: DeriveSpotPoolAccountsInput): Promise; declare function createSpotPoolInstruction(input: CreateSpotPoolInstructionInput): Promise; interface CpmmMigrationRemainingAccountsInput { launch: Address; baseMint: Address; quoteMint: Address; launchAuthority: Address; adminBaseAta: Address; adminQuoteAta: Address; recipientAtas: Address[]; cpmmProgram?: Address; cpmmMigratorProgram?: Address; } interface CpmmMigrationRemainingAccounts { addresses: Address[]; metas: AccountMeta[]; hash: Uint8Array; cpmmMigrationState: Address; cpmmConfig: Address; adminBaseAta: Address; adminQuoteAta: Address; recipientAtas: Address[]; pool: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; protocolFeeOwner: Address; protocolFeePosition: Address; launchLpPosition: Address; migrationAuthority: Address; } declare function buildCpmmMigrationRemainingAccounts({ launch, baseMint, quoteMint, launchAuthority, adminBaseAta, adminQuoteAta, recipientAtas, cpmmProgram, cpmmMigratorProgram, }: CpmmMigrationRemainingAccountsInput): Promise; declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRemainingAccountsInput): Promise; type RegisterLaunchPayloadArgs = Omit & Partial>; type CreateSpotPoolPayloadArgs = Omit & Partial>; declare function encodeCreateSpotPoolPayload(args: CreateSpotPoolPayloadArgs): Uint8Array; declare function encodeRegisterLaunchPayload(args: RegisterLaunchPayloadArgs): Uint8Array; declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array; declare const index$5_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS; declare const index$5_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: typeof CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS; declare const index$5_CPMM_MIGRATOR_PROGRAM_ID: typeof CPMM_MIGRATOR_PROGRAM_ID; type index$5_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts; type index$5_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput; type index$5_CpmmMigratorState = CpmmMigratorState; type index$5_CpmmMigratorStateArgs = CpmmMigratorStateArgs; type index$5_CreateSpotPoolArgs = CreateSpotPoolArgs; type index$5_CreateSpotPoolArgsArgs = CreateSpotPoolArgsArgs; type index$5_CreateSpotPoolInstruction = CreateSpotPoolInstruction; type index$5_CreateSpotPoolInstructionInput = CreateSpotPoolInstructionInput; type index$5_CreateSpotPoolPayloadArgs = CreateSpotPoolPayloadArgs; type index$5_DeriveSpotPoolAccountsInput = DeriveSpotPoolAccountsInput; declare const index$5_MAX_RECIPIENTS: typeof MAX_RECIPIENTS; type index$5_MigrateArgs = MigrateArgs; type index$5_MigrateArgsArgs = MigrateArgsArgs; type index$5_MigratedPoolHookConfig = MigratedPoolHookConfig; type index$5_MigratedPoolHookConfigArgs = MigratedPoolHookConfigArgs; type index$5_Recipient = Recipient; type index$5_RecipientArgs = RecipientArgs; type index$5_RegisterLaunchArgs = RegisterLaunchArgs; type index$5_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs; type index$5_RegisterLaunchPayloadArgs = RegisterLaunchPayloadArgs; declare const index$5_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY; declare const index$5_SEED_STATE: typeof SEED_STATE; type index$5_SpotPoolAccounts = SpotPoolAccounts; type index$5_SpotPoolCreated = SpotPoolCreated; type index$5_SpotPoolCreatedArgs = SpotPoolCreatedArgs; declare const index$5_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts; declare const index$5_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash; declare const index$5_createSpotPoolInstruction: typeof createSpotPoolInstruction; declare const index$5_deriveSpotPoolAccounts: typeof deriveSpotPoolAccounts; declare const index$5_encodeCreateSpotPoolPayload: typeof encodeCreateSpotPoolPayload; declare const index$5_encodeMigratePayload: typeof encodeMigratePayload; declare const index$5_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload; declare const index$5_fetchCpmmMigratorState: typeof fetchCpmmMigratorState; declare const index$5_getCpmmMigrationAuthorityAddress: typeof getCpmmMigrationAuthorityAddress; declare const index$5_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAddress; declare const index$5_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec; declare const index$5_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder; declare const index$5_getCpmmMigratorStateEncoder: typeof getCpmmMigratorStateEncoder; declare const index$5_getCreateSpotPoolArgsCodec: typeof getCreateSpotPoolArgsCodec; declare const index$5_getCreateSpotPoolArgsDecoder: typeof getCreateSpotPoolArgsDecoder; declare const index$5_getCreateSpotPoolArgsEncoder: typeof getCreateSpotPoolArgsEncoder; declare const index$5_getCreateSpotPoolInstruction: typeof getCreateSpotPoolInstruction; declare const index$5_getCreateSpotPoolInstructionAsync: typeof getCreateSpotPoolInstructionAsync; declare const index$5_getCreateSpotPoolInstructionDataCodec: typeof getCreateSpotPoolInstructionDataCodec; declare const index$5_getCreateSpotPoolInstructionDataDecoder: typeof getCreateSpotPoolInstructionDataDecoder; declare const index$5_getCreateSpotPoolInstructionDataEncoder: typeof getCreateSpotPoolInstructionDataEncoder; declare const index$5_getMigrateArgsCodec: typeof getMigrateArgsCodec; declare const index$5_getMigrateArgsDecoder: typeof getMigrateArgsDecoder; declare const index$5_getMigrateArgsEncoder: typeof getMigrateArgsEncoder; declare const index$5_getRecipientCodec: typeof getRecipientCodec; declare const index$5_getRecipientDecoder: typeof getRecipientDecoder; declare const index$5_getRecipientEncoder: typeof getRecipientEncoder; declare const index$5_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCodec; declare const index$5_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder; declare const index$5_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder; declare namespace index$5 { export { type AddressOrSigner$7 as AddressOrSigner, index$5_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$5_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$5_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$5_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$5_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$5_CpmmMigratorState as CpmmMigratorState, type index$5_CpmmMigratorStateArgs as CpmmMigratorStateArgs, type index$5_CreateSpotPoolArgs as CreateSpotPoolArgs, type index$5_CreateSpotPoolArgsArgs as CreateSpotPoolArgsArgs, type index$5_CreateSpotPoolInstruction as CreateSpotPoolInstruction, type index$5_CreateSpotPoolInstructionInput as CreateSpotPoolInstructionInput, type index$5_CreateSpotPoolPayloadArgs as CreateSpotPoolPayloadArgs, type index$5_DeriveSpotPoolAccountsInput as DeriveSpotPoolAccountsInput, index$5_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$5_MigrateArgs as MigrateArgs, type index$5_MigrateArgsArgs as MigrateArgsArgs, type index$5_MigratedPoolHookConfig as MigratedPoolHookConfig, type index$5_MigratedPoolHookConfigArgs as MigratedPoolHookConfigArgs, type index$5_Recipient as Recipient, type index$5_RecipientArgs as RecipientArgs, type index$5_RegisterLaunchArgs as RegisterLaunchArgs, type index$5_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, type index$5_RegisterLaunchPayloadArgs as RegisterLaunchPayloadArgs, index$5_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$5_SEED_STATE as SEED_STATE, type index$5_SpotPoolAccounts as SpotPoolAccounts, type index$5_SpotPoolCreated as SpotPoolCreated, type index$5_SpotPoolCreatedArgs as SpotPoolCreatedArgs, index$5_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$5_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$5_createSpotPoolInstruction as createSpotPoolInstruction, index$5_deriveSpotPoolAccounts as deriveSpotPoolAccounts, index$5_encodeCreateSpotPoolPayload as encodeCreateSpotPoolPayload, index$5_encodeMigratePayload as encodeMigratePayload, index$5_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$5_fetchCpmmMigratorState as fetchCpmmMigratorState, index$5_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$5_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$5_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$5_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$5_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$5_getCreateSpotPoolArgsCodec as getCreateSpotPoolArgsCodec, index$5_getCreateSpotPoolArgsDecoder as getCreateSpotPoolArgsDecoder, index$5_getCreateSpotPoolArgsEncoder as getCreateSpotPoolArgsEncoder, index$5_getCreateSpotPoolInstruction as getCreateSpotPoolInstruction, index$5_getCreateSpotPoolInstructionAsync as getCreateSpotPoolInstructionAsync, index$5_getCreateSpotPoolInstructionDataCodec as getCreateSpotPoolInstructionDataCodec, index$5_getCreateSpotPoolInstructionDataDecoder as getCreateSpotPoolInstructionDataDecoder, index$5_getCreateSpotPoolInstructionDataEncoder as getCreateSpotPoolInstructionDataEncoder, index$5_getMigrateArgsCodec as getMigrateArgsCodec, index$5_getMigrateArgsDecoder as getMigrateArgsDecoder, index$5_getMigrateArgsEncoder as getMigrateArgsEncoder, index$5_getRecipientCodec as getRecipientCodec, index$5_getRecipientDecoder as getRecipientDecoder, index$5_getRecipientEncoder as getRecipientEncoder, index$5_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$5_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$5_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder }; } /** * 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 */ type InitConfig$1 = { discriminator: ReadonlyUint8Array; admin: Address; migratorAllowlistLen: number; migratorAllowlist: Array
; hookAllowlistLen: number; hookAllowlist: Array
; bump: number; version: number; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; reserved: ReadonlyUint8Array; }; type InitConfigArgs$1 = { admin: Address; migratorAllowlistLen: number; migratorAllowlist: Array
; hookAllowlistLen: number; hookAllowlist: Array
; bump: number; version: number; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link InitConfigArgs} account data. */ declare function getInitConfigEncoder$1(): FixedSizeEncoder; /** Gets the decoder for {@link InitConfig} account data. */ declare function getInitConfigDecoder$1(): FixedSizeDecoder; /** Gets the codec for {@link InitConfig} account data. */ declare function getInitConfigCodec$1(): FixedSizeCodec; declare function getInitConfigSize$1(): number; /** * 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 */ type FeeBeneficiary = { wallet: Address; shareBps: number; pad: ReadonlyUint8Array; }; type FeeBeneficiaryArgs = FeeBeneficiary; /** * 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 */ type FeeBeneficiaryInput = { wallet: Address; shareBps: number; }; type FeeBeneficiaryInputArgs = FeeBeneficiaryInput; /** * 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 */ declare enum FeeClaimRole { Protocol = 0, Beneficiary = 1 } type FeeClaimRoleArgs = FeeClaimRole; /** * 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 */ type InitializeConfigArgs = { migratorAllowlist: Array
; hookAllowlist: Array
; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; }; type InitializeConfigArgsArgs = InitializeConfigArgs; declare function getInitializeConfigArgsEncoder(): Encoder; declare function getInitializeConfigArgsDecoder(): Decoder; declare function getInitializeConfigArgsCodec(): Codec; /** * 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 */ type InitializeLaunchArgs = { namespace: Address; launchId: ReadonlyUint8Array; baseDecimals: number; baseTotalSupply: bigint; baseForDistribution: bigint; baseForLiquidity: bigint; curveVirtualBase: bigint; curveVirtualQuote: bigint; swapFeeBps: number; curveKind: number; curveParams: ReadonlyUint8Array; allowBuy: number; allowSell: number; hookFlags: number; hookPayload: ReadonlyUint8Array; hookCreateRemainingAccountsLen: number; migratorInitPayload: ReadonlyUint8Array; migratorMigratePayload: ReadonlyUint8Array; /** * Commitment hash for initialize_launch hook remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ hookCreateRemainingAccountsHash: ReadonlyUint8Array; /** * Commitment hash for swap/preview hook remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ hookRemainingAccountsHash: ReadonlyUint8Array; /** * Commitment hash for migrator-init remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ migratorInitRemainingAccountsHash: ReadonlyUint8Array; /** * Commitment hash for migrator-migrate remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ migratorRemainingAccountsHash: ReadonlyUint8Array; /** Token name for on-chain metadata. If empty, metadata creation is skipped. */ metadataName: string; /** Token symbol for on-chain metadata. */ metadataSymbol: string; /** Metadata JSON URI for on-chain metadata. */ metadataUri: string; feeBeneficiaries: Array; }; type InitializeLaunchArgsArgs = { namespace: Address; launchId: ReadonlyUint8Array; baseDecimals: number; baseTotalSupply: number | bigint; baseForDistribution: number | bigint; baseForLiquidity: number | bigint; curveVirtualBase: number | bigint; curveVirtualQuote: number | bigint; swapFeeBps: number; curveKind: number; curveParams: ReadonlyUint8Array; allowBuy: number; allowSell: number; hookFlags: number; hookPayload: ReadonlyUint8Array; hookCreateRemainingAccountsLen: number; migratorInitPayload: ReadonlyUint8Array; migratorMigratePayload: ReadonlyUint8Array; /** * Commitment hash for initialize_launch hook remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ hookCreateRemainingAccountsHash: ReadonlyUint8Array; /** * Commitment hash for swap/preview hook remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ hookRemainingAccountsHash: ReadonlyUint8Array; /** * Commitment hash for migrator-init remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ migratorInitRemainingAccountsHash: ReadonlyUint8Array; /** * Commitment hash for migrator-migrate remaining accounts. * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n). */ migratorRemainingAccountsHash: ReadonlyUint8Array; /** Token name for on-chain metadata. If empty, metadata creation is skipped. */ metadataName: string; /** Token symbol for on-chain metadata. */ metadataSymbol: string; /** Metadata JSON URI for on-chain metadata. */ metadataUri: string; feeBeneficiaries: Array; }; declare function getInitializeLaunchArgsEncoder(): Encoder; declare function getInitializeLaunchArgsDecoder(): Decoder; declare function getInitializeLaunchArgsCodec(): Codec; /** * 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 */ type PayloadBuf$2 = { len: number; bytes: ReadonlyUint8Array; }; type PayloadBufArgs$2 = PayloadBuf$2; /** * 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 */ type Launch$2 = { discriminator: ReadonlyUint8Array; authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: bigint; baseForDistribution: bigint; baseForLiquidity: bigint; baseForCurve: bigint; curveVirtualBase: bigint; curveVirtualQuote: bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBuf$2; migratorProgram: Address; migratorInitPayload: PayloadBuf$2; migratorMigratePayload: PayloadBuf$2; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBuf$2; createdAt: bigint; reserved: ReadonlyUint8Array; }; type LaunchArgs$2 = { authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: number | bigint; baseForDistribution: number | bigint; baseForLiquidity: number | bigint; baseForCurve: number | bigint; curveVirtualBase: number | bigint; curveVirtualQuote: number | bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBufArgs$2; migratorProgram: Address; migratorInitPayload: PayloadBufArgs$2; migratorMigratePayload: PayloadBufArgs$2; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBufArgs$2; createdAt: number | bigint; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link LaunchArgs} account data. */ declare function getLaunchEncoder$2(): FixedSizeEncoder; /** Gets the decoder for {@link Launch} account data. */ declare function getLaunchDecoder$2(): FixedSizeDecoder; /** Gets the codec for {@link Launch} account data. */ declare function getLaunchCodec$2(): FixedSizeCodec; /** * 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 */ type LaunchFeeState = { discriminator: ReadonlyUint8Array; launch: Address; beneficiaryLen: number; bump: number; protocolFeeBps: number; swapFeeBps: number; version: number; pad0: ReadonlyUint8Array; beneficiaries: Array; cumulatedBaseFees: bigint; cumulatedQuoteFees: bigint; distributedProtocolBaseFees: bigint; distributedProtocolQuoteFees: bigint; distributedBaseByBeneficiary: Array; distributedQuoteByBeneficiary: Array; reserved: ReadonlyUint8Array; }; type LaunchFeeStateArgs = { launch: Address; beneficiaryLen: number; bump: number; protocolFeeBps: number; swapFeeBps: number; version: number; pad0: ReadonlyUint8Array; beneficiaries: Array; cumulatedBaseFees: number | bigint; cumulatedQuoteFees: number | bigint; distributedProtocolBaseFees: number | bigint; distributedProtocolQuoteFees: number | bigint; distributedBaseByBeneficiary: Array; distributedQuoteByBeneficiary: Array; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link LaunchFeeStateArgs} account data. */ declare function getLaunchFeeStateEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link LaunchFeeState} account data. */ declare function getLaunchFeeStateDecoder(): FixedSizeDecoder; /** Gets the codec for {@link LaunchFeeState} account data. */ declare function getLaunchFeeStateCodec(): FixedSizeCodec; /** * 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 */ declare const INITIALIZER_PROGRAM_ADDRESS: Address<"4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1">; /** * 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 */ type ClaimFeesInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountRecipientBaseAta extends string | AccountMeta = string, TAccountRecipientQuoteAta extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountLaunchFeeState extends string ? WritableAccount : TAccountLaunchFeeState, TAccountLaunchAuthority extends string ? ReadonlyAccount : TAccountLaunchAuthority, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount : TAccountQuoteVault, TAccountRecipientBaseAta extends string ? WritableAccount : TAccountRecipientBaseAta, TAccountRecipientQuoteAta extends string ? WritableAccount : TAccountRecipientQuoteAta, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, ...TRemainingAccounts ]>; type ClaimFeesInstructionDataArgs = { role: FeeClaimRoleArgs; }; type ClaimFeesAsyncInput = { config?: Address; launch: Address; launchFeeState?: Address; launchAuthority?: Address; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; recipientBaseAta: Address; recipientQuoteAta: Address; baseTokenProgram: Address; quoteTokenProgram: Address; role: ClaimFeesInstructionDataArgs['role']; }; declare function getClaimFeesInstructionAsync(input: ClaimFeesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; /** * 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 */ type FundVestingInstruction = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountVestingConfig extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountVestingVault extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountLaunch extends string ? WritableAccount : TAccountLaunch, TAccountLaunchAuthority extends string ? ReadonlyAccount : TAccountLaunchAuthority, TAccountVestingConfig extends string ? ReadonlyAccount : TAccountVestingConfig, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountBaseVault extends string ? WritableAccount : TAccountBaseVault, TAccountVestingVault extends string ? WritableAccount : TAccountVestingVault, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type FundVestingAsyncInput = { launch: Address; launchAuthority: Address; vestingConfig?: Address; baseMint: Address; baseVault: Address; vestingVault?: Address; payer: TransactionSigner; baseTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; }; declare function getFundVestingInstructionAsync(input: FundVestingAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; /** * 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 */ type HarvestMigratedFeesInstruction = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountLaunchLpPosition extends string | AccountMeta = string, TAccountPoolAuthority extends string | AccountMeta = string, TAccountPoolVault0 extends string | AccountMeta = string, TAccountPoolVault1 extends string | AccountMeta = string, TAccountToken0Mint extends string | AccountMeta = string, TAccountToken1Mint extends string | AccountMeta = string, TAccountCpmmProgram extends string | AccountMeta = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountLaunchFeeState extends string ? WritableAccount : TAccountLaunchFeeState, TAccountLaunchAuthority extends string ? ReadonlyAccount : TAccountLaunchAuthority, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount : TAccountQuoteVault, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountLaunchLpPosition extends string ? WritableAccount : TAccountLaunchLpPosition, TAccountPoolAuthority extends string ? ReadonlyAccount : TAccountPoolAuthority, TAccountPoolVault0 extends string ? WritableAccount : TAccountPoolVault0, TAccountPoolVault1 extends string ? WritableAccount : TAccountPoolVault1, TAccountToken0Mint extends string ? ReadonlyAccount : TAccountToken0Mint, TAccountToken1Mint extends string ? ReadonlyAccount : TAccountToken1Mint, TAccountCpmmProgram extends string ? ReadonlyAccount : TAccountCpmmProgram, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, ...TRemainingAccounts ]>; type HarvestMigratedFeesAsyncInput = { launch: Address; launchFeeState?: Address; launchAuthority?: Address; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; pool: Address; launchLpPosition: Address; poolAuthority: Address; poolVault0: Address; poolVault1: Address; token0Mint: Address; token1Mint: Address; cpmmProgram?: Address; baseTokenProgram: Address; quoteTokenProgram: Address; }; declare function getHarvestMigratedFeesInstructionAsync(input: HarvestMigratedFeesAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; /** * 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 */ type ReplaceFeeBeneficiaryInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchFeeState extends string | AccountMeta = string, TAccountCurrentBeneficiary extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? ReadonlyAccount : TAccountConfig, TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountLaunchFeeState extends string ? WritableAccount : TAccountLaunchFeeState, TAccountCurrentBeneficiary extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountCurrentBeneficiary, ...TRemainingAccounts ]>; type ReplaceFeeBeneficiaryInstructionDataArgs = { newBeneficiary: Address; }; type ReplaceFeeBeneficiaryAsyncInput = { config?: Address; launch: Address; launchFeeState?: Address; currentBeneficiary: TransactionSigner; newBeneficiary: ReplaceFeeBeneficiaryInstructionDataArgs['newBeneficiary']; }; declare function getReplaceFeeBeneficiaryInstructionAsync(input: ReplaceFeeBeneficiaryAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; /** * 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 */ type SetFeePolicyInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; type SetFeePolicyInstructionDataArgs = { protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; }; type SetFeePolicyAsyncInput = { config?: Address; admin: TransactionSigner; protocolFeeBps: SetFeePolicyInstructionDataArgs['protocolFeeBps']; minSwapFeeBps: SetFeePolicyInstructionDataArgs['minSwapFeeBps']; maxSwapFeeBps: SetFeePolicyInstructionDataArgs['maxSwapFeeBps']; }; declare function getSetFeePolicyInstructionAsync(input: SetFeePolicyAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; /** * Public params for createInitializeLaunchInstruction. * - allowBuy / allowSell are boolean; converted to u8 wire format (1/0). * - migratorProgram is omitted — it is derived from accounts.migratorProgram * so callers do not need to repeat it in both the accounts object and args. */ type InitializeLaunchParams = Omit & { allowBuy: boolean; allowSell: boolean; swapFeeBps?: number; /** @deprecated Use swapFeeBps. */ curveFeeBps?: number; feeBeneficiaries?: InitializeLaunchArgsArgs['feeBeneficiaries']; hookCreateRemainingAccountsLen?: number; hookCreateRemainingAccountsHash?: ReadonlyUint8Array; }; type AddressOrSigner$6 = AddressOrTransactionSigner; type ReadonlyRemainingAccount = AddressOrSigner$6; /** * Derive the Metaplex token metadata PDA for a given mint. * Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint] * * Pass the result as `metadataAccount` in InitializeLaunchAccounts * whenever `metadataName` is non-empty. */ declare function getTokenMetadataAddress(mint: Address): Promise
; interface InitializeLaunchAccounts { config: Address; launch: Address; launchAuthority: Address; baseMint: AddressOrSigner$6; quoteMint: Address; baseVault: AddressOrSigner$6; quoteVault: AddressOrSigner$6; launchFeeState?: Address; payer: AddressOrSigner$6; authority?: AddressOrSigner$6; hookProgram?: Address; migratorProgram?: Address; baseTokenProgram?: Address; quoteTokenProgram?: Address; systemProgram?: Address; rent: Address; /** Required when args.metadataName is non-empty. Derive with getTokenMetadataAddress(baseMint). */ metadataAccount?: Address; metadataProgram?: Address; /** Immutable vesting config committed to this launch. */ vestingConfig?: Address; /** Required when migratorProgram is the CPMM migrator. */ cpmmConfig?: Address; /** * Remaining accounts committed to initialize_launch create hooks. * These are forwarded as readonly metas; TransactionSigner values are * forwarded as readonly signers. */ hookCreateRemainingAccounts?: ReadonlyArray; } declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise; type AddressOrSigner$5 = InitializeLaunchAccounts['baseMint']; type LaunchTokenPrograms = { baseTokenProgram: Address; quoteTokenProgram: Address; }; type LaunchSupply = { baseDecimals: number; baseTotalSupply: bigint; baseForDistribution: bigint; baseForLiquidity: bigint; }; type XykCurveConfig = { curveVirtualBase: bigint; curveVirtualQuote: bigint; swapFeeBps: number; }; type LaunchMetadata = { metadataName: string; metadataSymbol: string; metadataUri: string; }; type CreateLaunchAccountSigners = { baseMint: AddressOrSigner$5; quoteMint: Address; baseVault: AddressOrSigner$5; quoteVault: AddressOrSigner$5; }; type CreateLaunchCpmmMigrationConfig = { enabled?: true; kind?: 'cpmm'; program?: Address; cpmmProgram?: Address; admin?: Address; adminBaseAta?: Address; adminQuoteAta?: Address; recipientAtas?: ReadonlyArray
; recipients?: ReadonlyArray; minRaiseQuote?: number | bigint; minMigrationPriceQ64Opt?: number | bigint | null; migratedPoolHookConfig?: MigratedPoolHookConfigArgs | null; initialSwapFeeBps?: number; initialFeeSplitBps?: number; baseForDistribution?: number | bigint; baseForLiquidity?: number | bigint; }; type CreateLaunchCustomMigrationConfig = { enabled?: true; kind: 'custom'; program: Address; initPayload?: ReadonlyUint8Array; migratePayload?: ReadonlyUint8Array; cpmmConfig?: Address; initRemainingAccounts?: ReadonlyArray; initRemainingAccountsHash?: ReadonlyUint8Array; remainingAccounts?: ReadonlyArray; remainingAccountsHash?: ReadonlyUint8Array; }; type CreateLaunchMigrationConfig = CreateLaunchCpmmMigrationConfig | CreateLaunchCustomMigrationConfig; type CreateLaunchAddresses = { config: Address; launch: Address; launchAuthority: Address; launchFeeState: Address; metadataAccount?: Address; }; type DeriveCreateLaunchAddressesInput = { deployment?: Pick; programId?: Address; config?: Address; namespace: Address; launchId: Uint8Array; baseMint: AddressOrSigner$5; metadata?: LaunchMetadata | null; metadataAccount?: Address; }; type CreateLaunchInput = { deployment?: Pick & Partial>; programId?: Address; config?: Address; namespace?: Address; launchId?: Uint8Array; addresses?: CreateLaunchAddresses; launchAccounts: CreateLaunchAccountSigners; payer: AddressOrSigner$5; authority?: AddressOrSigner$5; supply: LaunchSupply; curve: XykCurveConfig; tokenPrograms?: Partial; /** * Enables the Doppler-managed cosigner gate. Resolve this value with * `dopplerLaunchHookV1.resolveManagedCosignerGate` before constructing the launch. */ cosignerGate?: ResolvedManagedCosignerGate | null; dynamicFee?: DynamicFeeScheduleArgs | null; migration?: boolean | CreateLaunchMigrationConfig | null; metadata?: LaunchMetadata | null; /** Pre-initialized immutable vesting config for the reserved base allocation. */ vestingConfig?: Address; feeBeneficiaries?: InitializeLaunchParams['feeBeneficiaries']; allowBuy?: boolean; allowSell?: boolean; systemProgram?: Address; rent?: Address; metadataProgram?: Address; }; type CreateLaunchResult = { namespace: Address; launchId: Uint8Array; addresses: CreateLaunchAddresses; instruction: Instruction; cpmmMigration?: CpmmMigrationRemainingAccounts; cosignerGate?: ResolvedManagedCosignerGate; }; declare const launchTokenPrograms: { readonly splToken: () => LaunchTokenPrograms; readonly token2022Base: () => LaunchTokenPrograms; }; declare function createLaunchId(): Uint8Array; declare function deriveCreateLaunchAddresses(input: DeriveCreateLaunchAddressesInput): Promise; declare function createLaunch(input: CreateLaunchInput): Promise; type SolanaRemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner; type CurveSwapHook = { program: Address; remainingAccounts?: ReadonlyArray; }; type AddressOrSigner$4 = Address | TransactionSigner; type CurveSwapExactInInput = { deployment?: Pick & Partial>; programId?: Address; launch: Address; launchAuthority: Address; baseVault: Address; quoteVault: Address; launchFeeState: Address; baseMint: Address; quoteMint: Address; payer: TransactionSigner; user?: AddressOrSigner$4; amountIn: bigint; minAmountOut: bigint; tradeDirection: 0 | 1; hook?: CurveSwapHook; remainingAccounts?: ReadonlyArray; baseTokenProgram?: Address; quoteTokenProgram?: Address; wrapSol?: boolean; }; type CurveSwapExactInResult = { userBaseAccount: Address; userQuoteAccount: Address; userIn: Address; userOut: Address; setupInstructions: Instruction[]; swapInstruction: Instruction; instructions: Instruction[]; }; type SwapExactInBaseInput = { deployment?: Pick; programId?: Address; config?: Address; payer: TransactionSigner; user?: AddressOrSigner$4; amountIn: bigint; tradeDirection: TradeDirection; minAmountOut?: bigint; slippageBps?: number | bigint; token0Program?: Address; token1Program?: Address; tokenProgram?: Address; oracle?: Address; remainingAccounts?: ReadonlyArray; updateOracle?: boolean; }; type SwapExactInInput = (SwapExactInBaseInput & { pool: PoolWithAddress; rpc?: never; mintA?: never; mintB?: never; }) | (SwapExactInBaseInput & { rpc: Rpc; mintA: Address; mintB: Address; pool?: never; }); type SwapExactInResult = { pool: PoolWithAddress; quote: SwapQuote; minAmountOut: bigint; userToken0: Address; userToken1: Address; userIn: Address; userOut: Address; setupInstructions: Instruction[]; swapInstruction: Instruction; instructions: Instruction[]; }; declare function curveSwapExactIn(input: CurveSwapExactInInput): Promise; declare function swapExactIn(input: SwapExactInInput): Promise; declare function getFeeRehypothecationStateAddress(baseMint: Address, programId?: Address): Promise; declare function getFeeRehypothecationAuthorityAddress(state: Address, programId?: Address): Promise; declare function getFeeRehypothecationSettlementSignerAddress(state: Address, programId?: Address): Promise; type FeeRehypothecationAddresses = { state: Address; authority: Address; settlementSigner: Address; }; declare function deriveFeeRehypothecationAddresses(baseMint: Address, programId?: Address): Promise; declare const FEE_REHYPOTHECATION_BPS_DENOMINATOR = 10000; declare const MAX_FEE_REHYPOTHECATION_BENEFICIARIES = 8; declare const FEE_REHYPOTHECATION_ROUTING_MODE_DIRECT_BUYBACK = 0; declare const FEE_REHYPOTHECATION_ROUTING_MODE_TO_BENEFICIARIES = 1; type FeeRehypothecationStrategy = { routingMode: typeof FEE_REHYPOTHECATION_ROUTING_MODE_DIRECT_BUYBACK | typeof FEE_REHYPOTHECATION_ROUTING_MODE_TO_BENEFICIARIES; feeRouting: FeeRoutingMatrixArgs; }; declare function allFeesToBeneficiariesInAsset(): FeeRehypothecationStrategy; declare function allFeesToBeneficiariesInNumeraire(): FeeRehypothecationStrategy; declare function inKindBeneficiaryFees(): FeeRehypothecationStrategy; declare function balancedFourBucket(): FeeRehypothecationStrategy; declare function validateFeeRehypothecationStrategy(strategy: FeeRehypothecationStrategy): void; declare function feeRehypothecationRequiresBeneficiaries(strategy: FeeRehypothecationStrategy): boolean; declare function validateAndSortFeeRehypothecationBeneficiaries(beneficiaries: ReadonlyArray, strategy?: FeeRehypothecationStrategy): RehypeBeneficiaryInputArgs[]; /** * 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 */ type ClaimArgs = { scheduleId: Option; amount: bigint; }; type ClaimArgsArgs = { scheduleId: OptionOrNullable; amount: number | bigint; }; declare function getClaimArgsEncoder(): Encoder; declare function getClaimArgsDecoder(): Decoder; declare function getClaimArgsCodec(): Codec; /** * 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 */ type InitializeVestingArgs = { initialSupply: bigint; schedules: Array; allocations: Array; }; type InitializeVestingArgsArgs = { initialSupply: number | bigint; schedules: Array; allocations: Array; }; declare function getInitializeVestingArgsEncoder(): Encoder; declare function getInitializeVestingArgsDecoder(): Decoder; declare function getInitializeVestingArgsCodec(): Codec; /** * 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 */ /** Variable-length payload buffer. */ type PayloadBuf$1 = { len: number; bytes: ReadonlyUint8Array; }; type PayloadBufArgs$1 = PayloadBuf$1; declare function getPayloadBufEncoder$1(): FixedSizeEncoder; declare function getPayloadBufDecoder$1(): FixedSizeDecoder; declare function getPayloadBufCodec$1(): FixedSizeCodec; /** * 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 */ type TokensReleased = { vestingConfig: Address; launch: Address; beneficiary: Address; scheduleId: number; amount: bigint; }; type TokensReleasedArgs = { vestingConfig: Address; launch: Address; beneficiary: Address; scheduleId: number; amount: number | bigint; }; declare function getTokensReleasedEncoder(): FixedSizeEncoder; declare function getTokensReleasedDecoder(): FixedSizeDecoder; declare function getTokensReleasedCodec(): FixedSizeCodec; /** * 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 */ type VestingAllocation = { beneficiary: Address; scheduleId: number; padding: ReadonlyUint8Array; totalAmount: bigint; releasedAmount: bigint; }; type VestingAllocationArgs = { beneficiary: Address; scheduleId: number; padding: ReadonlyUint8Array; totalAmount: number | bigint; releasedAmount: number | bigint; }; declare function getVestingAllocationEncoder(): FixedSizeEncoder; declare function getVestingAllocationDecoder(): FixedSizeDecoder; declare function getVestingAllocationCodec(): FixedSizeCodec; /** * 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 */ type VestingAllocationInput = { beneficiary: Address; scheduleId: number; amount: bigint; }; type VestingAllocationInputArgs = { beneficiary: Address; scheduleId: number; amount: number | bigint; }; declare function getVestingAllocationInputEncoder(): FixedSizeEncoder; declare function getVestingAllocationInputDecoder(): FixedSizeDecoder; declare function getVestingAllocationInputCodec(): FixedSizeCodec; /** * 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 */ type VestingInitialized = { vestingConfig: Address; launch: Address; baseMint: Address; totalAllocation: bigint; scheduleCount: number; allocationCount: number; }; type VestingInitializedArgs = { vestingConfig: Address; launch: Address; baseMint: Address; totalAllocation: number | bigint; scheduleCount: number; allocationCount: number; }; declare function getVestingInitializedEncoder(): FixedSizeEncoder; declare function getVestingInitializedDecoder(): FixedSizeDecoder; declare function getVestingInitializedCodec(): FixedSizeCodec; /** * 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 */ type VestingSchedule = { cliffSeconds: bigint; durationSeconds: bigint; }; type VestingScheduleArgs = { cliffSeconds: number | bigint; durationSeconds: number | bigint; }; declare function getVestingScheduleEncoder(): FixedSizeEncoder; declare function getVestingScheduleDecoder(): FixedSizeDecoder; declare function getVestingScheduleCodec(): FixedSizeCodec; /** * 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 */ declare const LAUNCH_DISCRIMINATOR$1: Uint8Array; declare function getLaunchDiscriminatorBytes$1(): ReadonlyUint8Array; type Launch$1 = { discriminator: ReadonlyUint8Array; authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: bigint; baseForDistribution: bigint; baseForLiquidity: bigint; baseForCurve: bigint; curveVirtualBase: bigint; curveVirtualQuote: bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBuf$1; migratorProgram: Address; migratorInitPayload: PayloadBuf$1; migratorMigratePayload: PayloadBuf$1; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBuf$1; createdAt: bigint; reserved: ReadonlyUint8Array; }; type LaunchArgs$1 = { authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: number | bigint; baseForDistribution: number | bigint; baseForLiquidity: number | bigint; baseForCurve: number | bigint; curveVirtualBase: number | bigint; curveVirtualQuote: number | bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBufArgs$1; migratorProgram: Address; migratorInitPayload: PayloadBufArgs$1; migratorMigratePayload: PayloadBufArgs$1; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBufArgs$1; createdAt: number | bigint; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link LaunchArgs} account data. */ declare function getLaunchEncoder$1(): FixedSizeEncoder; /** Gets the decoder for {@link Launch} account data. */ declare function getLaunchDecoder$1(): FixedSizeDecoder; /** Gets the codec for {@link Launch} account data. */ declare function getLaunchCodec$1(): FixedSizeCodec; declare function decodeLaunch$1(encodedAccount: EncodedAccount): Account; declare function decodeLaunch$1(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchLaunch$2(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeLaunch$1(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllLaunch$1(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeLaunch$1(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getLaunchSize$1(): number; /** * 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 */ declare const VESTING_CONFIG_DISCRIMINATOR: Uint8Array; declare function getVestingConfigDiscriminatorBytes(): ReadonlyUint8Array; type VestingConfig = { discriminator: ReadonlyUint8Array; launch: Address; baseMint: Address; baseTokenProgram: Address; initialSupply: bigint; totalAllocation: bigint; schedules: Array; allocations: Array; version: number; bump: number; scheduleCount: number; allocationCount: number; reserved: ReadonlyUint8Array; }; type VestingConfigArgs = { launch: Address; baseMint: Address; baseTokenProgram: Address; initialSupply: number | bigint; totalAllocation: number | bigint; schedules: Array; allocations: Array; version: number; bump: number; scheduleCount: number; allocationCount: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link VestingConfigArgs} account data. */ declare function getVestingConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link VestingConfig} account data. */ declare function getVestingConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link VestingConfig} account data. */ declare function getVestingConfigCodec(): FixedSizeCodec; declare function decodeVestingConfig(encodedAccount: EncodedAccount): Account; declare function decodeVestingConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchVestingConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeVestingConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllVestingConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeVestingConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getVestingConfigSize(): number; /** * 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 */ /** InvalidConfig: Invalid vesting configuration */ declare const DOPPLER_VESTING_ERROR__INVALID_CONFIG = 6000; /** TooManySchedules: Too many vesting schedules */ declare const DOPPLER_VESTING_ERROR__TOO_MANY_SCHEDULES = 6001; /** TooManyAllocations: Too many vesting allocations */ declare const DOPPLER_VESTING_ERROR__TOO_MANY_ALLOCATIONS = 6002; /** InvalidSchedule: Invalid vesting schedule */ declare const DOPPLER_VESTING_ERROR__INVALID_SCHEDULE = 6003; /** InvalidAllocation: Invalid vesting allocation */ declare const DOPPLER_VESTING_ERROR__INVALID_ALLOCATION = 6004; /** AllocationCapExceeded: Vesting allocation exceeds the permitted supply cap */ declare const DOPPLER_VESTING_ERROR__ALLOCATION_CAP_EXCEEDED = 6005; /** ArithmeticOverflow: Arithmetic overflow */ declare const DOPPLER_VESTING_ERROR__ARITHMETIC_OVERFLOW = 6006; /** InvalidLaunch: Invalid Initializer launch */ declare const DOPPLER_VESTING_ERROR__INVALID_LAUNCH = 6007; /** InvalidMint: Invalid base mint */ declare const DOPPLER_VESTING_ERROR__INVALID_MINT = 6008; /** InvalidTokenProgram: Invalid base token program */ declare const DOPPLER_VESTING_ERROR__INVALID_TOKEN_PROGRAM = 6009; /** VestingNotFunded: The launch has not funded vesting */ declare const DOPPLER_VESTING_ERROR__VESTING_NOT_FUNDED = 6010; /** InvalidBeneficiary: Invalid vesting beneficiary */ declare const DOPPLER_VESTING_ERROR__INVALID_BENEFICIARY = 6011; /** UnknownSchedule: Unknown vesting schedule */ declare const DOPPLER_VESTING_ERROR__UNKNOWN_SCHEDULE = 6012; /** NoTokensAvailable: No vested tokens are currently available */ declare const DOPPLER_VESTING_ERROR__NO_TOKENS_AVAILABLE = 6013; /** InsufficientAvailableAmount: Requested amount exceeds the vested amount available */ declare const DOPPLER_VESTING_ERROR__INSUFFICIENT_AVAILABLE_AMOUNT = 6014; type DopplerVestingError = typeof DOPPLER_VESTING_ERROR__ALLOCATION_CAP_EXCEEDED | typeof DOPPLER_VESTING_ERROR__ARITHMETIC_OVERFLOW | typeof DOPPLER_VESTING_ERROR__INSUFFICIENT_AVAILABLE_AMOUNT | typeof DOPPLER_VESTING_ERROR__INVALID_ALLOCATION | typeof DOPPLER_VESTING_ERROR__INVALID_BENEFICIARY | typeof DOPPLER_VESTING_ERROR__INVALID_CONFIG | typeof DOPPLER_VESTING_ERROR__INVALID_LAUNCH | typeof DOPPLER_VESTING_ERROR__INVALID_MINT | typeof DOPPLER_VESTING_ERROR__INVALID_SCHEDULE | typeof DOPPLER_VESTING_ERROR__INVALID_TOKEN_PROGRAM | typeof DOPPLER_VESTING_ERROR__NO_TOKENS_AVAILABLE | typeof DOPPLER_VESTING_ERROR__TOO_MANY_ALLOCATIONS | typeof DOPPLER_VESTING_ERROR__TOO_MANY_SCHEDULES | typeof DOPPLER_VESTING_ERROR__UNKNOWN_SCHEDULE | typeof DOPPLER_VESTING_ERROR__VESTING_NOT_FUNDED; declare function getDopplerVestingErrorMessage(code: DopplerVestingError): string; declare function isDopplerVestingError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * 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 */ declare const DOPPLER_VESTING_PROGRAM_ADDRESS: Address<"2dhWRsojcuJbEJ2uaB6ayGwXz6PcFaPGpjnqP9Bawead">; declare enum DopplerVestingAccount { Launch = 0, VestingConfig = 1 } declare function identifyDopplerVestingAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerVestingAccount; declare enum DopplerVestingInstruction { Claim = 0, InitializeVesting = 1 } declare function identifyDopplerVestingInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): DopplerVestingInstruction; type ParsedDopplerVestingInstruction = ({ instructionType: DopplerVestingInstruction.Claim; } & ParsedClaimInstruction$1) | ({ instructionType: DopplerVestingInstruction.InitializeVesting; } & ParsedInitializeVestingInstruction); declare function parseDopplerVestingInstruction(instruction: Instruction & InstructionWithData): ParsedDopplerVestingInstruction; type DopplerVestingPlugin = { accounts: DopplerVestingPluginAccounts; instructions: DopplerVestingPluginInstructions; }; type DopplerVestingPluginAccounts = { launch: ReturnType & SelfFetchFunctions; vestingConfig: ReturnType & SelfFetchFunctions; }; type DopplerVestingPluginInstructions = { claim: (input: MakeOptional$1) => ReturnType & SelfPlanAndSendFunctions; initializeVesting: (input: MakeOptional$1) => ReturnType & SelfPlanAndSendFunctions; }; type DopplerVestingPluginRequirements = ClientWithRpc & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending; declare function dopplerVestingProgram(): (client: T) => T & { dopplerVesting: DopplerVestingPlugin; }; type MakeOptional$1 = Omit & Partial>; /** * 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 */ declare const CLAIM_DISCRIMINATOR$1: Uint8Array; declare function getClaimDiscriminatorBytes$1(): ReadonlyUint8Array; type ClaimInstruction$1 = string, TAccountBeneficiary extends string | AccountMeta = string, TAccountLaunch extends string | AccountMeta = string, TAccountVestingConfig extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountVestingVault extends string | AccountMeta = string, TAccountBeneficiaryTokenAccount extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountAssociatedTokenProgram extends string | AccountMeta = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBeneficiary extends string ? ReadonlyAccount : TAccountBeneficiary, TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountVestingConfig extends string ? WritableAccount : TAccountVestingConfig, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountVestingVault extends string ? WritableAccount : TAccountVestingVault, TAccountBeneficiaryTokenAccount extends string ? WritableAccount : TAccountBeneficiaryTokenAccount, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type ClaimInstructionData$1 = { discriminator: ReadonlyUint8Array; scheduleId: Option; amount: bigint; }; type ClaimInstructionDataArgs$1 = { scheduleId: OptionOrNullable; amount: number | bigint; }; declare function getClaimInstructionDataEncoder$1(): Encoder; declare function getClaimInstructionDataDecoder$1(): Decoder; declare function getClaimInstructionDataCodec$1(): Codec; type ClaimAsyncInput$1 = { payer: TransactionSigner; beneficiary: Address; launch: Address; vestingConfig?: Address; baseMint: Address; vestingVault?: Address; beneficiaryTokenAccount?: Address; baseTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; scheduleId: ClaimInstructionDataArgs$1['scheduleId']; amount: ClaimInstructionDataArgs$1['amount']; }; declare function getClaimInstructionAsync$1(input: ClaimAsyncInput$1, config?: { programAddress?: TProgramAddress; }): Promise>; type ClaimInput$1 = { payer: TransactionSigner; beneficiary: Address; launch: Address; vestingConfig: Address; baseMint: Address; vestingVault: Address; beneficiaryTokenAccount: Address; baseTokenProgram: Address; associatedTokenProgram?: Address; systemProgram?: Address; scheduleId: ClaimInstructionDataArgs$1['scheduleId']; amount: ClaimInstructionDataArgs$1['amount']; }; declare function getClaimInstruction$1(input: ClaimInput$1, config?: { programAddress?: TProgramAddress; }): ClaimInstruction$1; type ParsedClaimInstruction$1 = { programAddress: Address; accounts: { payer: TAccountMetas[0]; beneficiary: TAccountMetas[1]; launch: TAccountMetas[2]; vestingConfig: TAccountMetas[3]; baseMint: TAccountMetas[4]; vestingVault: TAccountMetas[5]; beneficiaryTokenAccount: TAccountMetas[6]; baseTokenProgram: TAccountMetas[7]; associatedTokenProgram: TAccountMetas[8]; systemProgram: TAccountMetas[9]; }; data: ClaimInstructionData$1; }; declare function parseClaimInstruction$1(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClaimInstruction$1; /** * 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 */ declare const INITIALIZE_VESTING_DISCRIMINATOR: Uint8Array; declare function getInitializeVestingDiscriminatorBytes(): ReadonlyUint8Array; type InitializeVestingInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountVestingConfig extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountBaseMint extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountBaseMint, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountVestingConfig extends string ? WritableAccount : TAccountVestingConfig, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeVestingInstructionData = { discriminator: ReadonlyUint8Array; initialSupply: bigint; schedules: Array; allocations: Array; }; type InitializeVestingInstructionDataArgs = { initialSupply: number | bigint; schedules: Array; allocations: Array; }; declare function getInitializeVestingInstructionDataEncoder(): Encoder; declare function getInitializeVestingInstructionDataDecoder(): Decoder; declare function getInitializeVestingInstructionDataCodec(): Codec; type InitializeVestingAsyncInput = { payer: TransactionSigner; launch: Address; /** Future launch mint. Its signature prevents another caller from claiming this config PDA. */ baseMint: TransactionSigner; baseTokenProgram: Address; vestingConfig?: Address; systemProgram?: Address; initialSupply: InitializeVestingInstructionDataArgs['initialSupply']; schedules: InitializeVestingInstructionDataArgs['schedules']; allocations: InitializeVestingInstructionDataArgs['allocations']; }; declare function getInitializeVestingInstructionAsync(input: InitializeVestingAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type InitializeVestingInput = { payer: TransactionSigner; launch: Address; /** Future launch mint. Its signature prevents another caller from claiming this config PDA. */ baseMint: TransactionSigner; baseTokenProgram: Address; vestingConfig: Address; systemProgram?: Address; initialSupply: InitializeVestingInstructionDataArgs['initialSupply']; schedules: InitializeVestingInstructionDataArgs['schedules']; allocations: InitializeVestingInstructionDataArgs['allocations']; }; declare function getInitializeVestingInstruction(input: InitializeVestingInput, config?: { programAddress?: TProgramAddress; }): InitializeVestingInstruction; type ParsedInitializeVestingInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; launch: TAccountMetas[1]; /** Future launch mint. Its signature prevents another caller from claiming this config PDA. */ baseMint: TAccountMetas[2]; baseTokenProgram: TAccountMetas[3]; vestingConfig: TAccountMetas[4]; systemProgram: TAccountMetas[5]; }; data: InitializeVestingInstructionData; }; declare function parseInitializeVestingInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeVestingInstruction; declare function getVestingConfigAddress(launch: Address, baseMint: Address, programId?: Address): Promise; declare function getVestingVaultAddress(vestingConfig: Address, baseMint: Address, baseTokenProgram: Address): Promise; declare function getVestingBeneficiaryTokenAccountAddress(beneficiary: Address, baseMint: Address, baseTokenProgram: Address): Promise; type VestingAddresses = { config: Address; vault: Address; }; declare function deriveVestingAddresses(launch: Address, baseMint: Address, baseTokenProgram: Address, programId?: Address): Promise; type VestingPlan = { schedules: ReadonlyArray; allocations: ReadonlyArray; }; type PrepareLaunchBaseInput = Omit; type PrepareFeeRehypothecationLaunchInput = PrepareLaunchBaseInput & { deployment?: SolanaFeeRehypothecationDeployment; launchAccounts: Omit & { baseMint: TransactionSigner; }; payer: TransactionSigner; authority: TransactionSigner; buybackDestination: Address; settlementAuthority: Address; beneficiaries: ReadonlyArray; strategy: FeeRehypothecationStrategy; dynamicFee?: DynamicFeeScheduleArgs | null; cosignerGate?: ResolvedManagedCosignerGateV2 | null; /** Immutable vesting funded from the launch's initial base supply. */ vesting?: VestingPlan; /** Vesting deployment override for custom protocol deployments. */ vestingProgram?: Address; }; type PreparedFeeRehypothecationVesting = { addresses: VestingAddresses; totalAllocation: bigint; initializeInstruction: Instruction; fundInstruction: Instruction; }; type PrepareFeeRehypothecationLaunchResult = { namespace: Address; launchId: Uint8Array; launchAddresses: CreateLaunchAddresses; routingAddresses: FeeRehypothecationAddresses; initializeRoutingInstruction: Instruction; initializeLaunchInstruction: Instruction; vesting?: PreparedFeeRehypothecationVesting; unsignedSwapHook: CurveSwapHook; /** Pass the configured signer while the gate is active; omit it after expiry. */ getSwapHook(cosigner?: TransactionSigner): CurveSwapHook; }; declare function prepareLaunch$1(input: PrepareFeeRehypothecationLaunchInput): Promise; declare function calculateFeeEntitlement(cumulativeFees: bigint, shareBps: number): bigint; declare function calculateInitializerBeneficiaryEntitlement(cumulativeFees: bigint, protocolFeeBps: number, beneficiaryShareBps: number): bigint; declare function calculatePendingInitializerFees({ cumulativeFees, distributedProtocolFees, distributedBeneficiaryFees, }: { cumulativeFees: bigint; distributedProtocolFees: bigint; distributedBeneficiaryFees: ReadonlyArray; }): bigint; declare function splitCumulativeFeeIncrement(route: FeeRouteArgs, cumulativeFees: bigint, claimedFees: bigint): readonly [bigint, bigint, bigint, bigint]; declare function quoteZeroFeeExactIn({ amountIn, reserveIn, reserveOut, virtualIn, virtualOut, }: { amountIn: bigint; reserveIn: bigint; reserveOut: bigint; virtualIn: bigint; virtualOut: bigint; }): bigint; declare function calculateMinimumOutput(expectedAmountOut: bigint, slippageBps?: number): bigint; declare function resolveProtectedMinimumOutput({ expectedAmountOut, minimumAmountOut, slippageBps, }: { expectedAmountOut: bigint; minimumAmountOut?: bigint; slippageBps?: number; }): bigint; declare function calculateBeneficiaryEntitlement({ cumulativeFees, beneficiarySharesBps, beneficiaryIndex, }: { cumulativeFees: bigint; beneficiarySharesBps: ReadonlyArray; beneficiaryIndex: number; }): bigint; type Commitment = 'processed' | 'confirmed' | 'finalized'; type FeeRehypothecationRpc = Rpc; type PrepareFeeRehypothecationSettlementInput = { rpc: FeeRehypothecationRpc; launch: Address; settlementAuthority: TransactionSigner; deployment?: SolanaFeeRehypothecationDeployment; slippageBps?: number; minBaseToQuoteOut?: bigint; minQuoteToBaseOut?: bigint; commitment?: Commitment; }; type FeeRehypothecationSettlementQuote = { claimedBaseFees: bigint; claimedQuoteFees: bigint; baseToQuoteAmountIn: bigint; baseToQuoteExpectedAmountOut: bigint; minBaseToQuoteOut: bigint; quoteToBaseAmountIn: bigint; quoteToBaseExpectedAmountOut: bigint; minQuoteToBaseOut: bigint; }; type PrepareFeeRehypothecationSettlementResult = { instruction: Instruction; quote: FeeRehypothecationSettlementQuote; addresses: { state: Address; authority: Address; settlementSigner: Address; routerBaseAta: Address; routerQuoteAta: Address; buybackBaseAta: Address; buybackQuoteAta: Address; }; }; declare function prepareSettlement(input: PrepareFeeRehypothecationSettlementInput): Promise; declare const index$4_FEE_REHYPOTHECATION_BPS_DENOMINATOR: typeof FEE_REHYPOTHECATION_BPS_DENOMINATOR; declare const index$4_FEE_REHYPOTHECATION_ROUTING_MODE_DIRECT_BUYBACK: typeof FEE_REHYPOTHECATION_ROUTING_MODE_DIRECT_BUYBACK; declare const index$4_FEE_REHYPOTHECATION_ROUTING_MODE_TO_BENEFICIARIES: typeof FEE_REHYPOTHECATION_ROUTING_MODE_TO_BENEFICIARIES; type index$4_FeeRehypothecationAddresses = FeeRehypothecationAddresses; type index$4_FeeRehypothecationRpc = FeeRehypothecationRpc; type index$4_FeeRehypothecationSettlementQuote = FeeRehypothecationSettlementQuote; type index$4_FeeRehypothecationStrategy = FeeRehypothecationStrategy; declare const index$4_MAX_FEE_REHYPOTHECATION_BENEFICIARIES: typeof MAX_FEE_REHYPOTHECATION_BENEFICIARIES; type index$4_PrepareFeeRehypothecationClaimInput = PrepareFeeRehypothecationClaimInput; type index$4_PrepareFeeRehypothecationClaimResult = PrepareFeeRehypothecationClaimResult; type index$4_PrepareFeeRehypothecationLaunchInput = PrepareFeeRehypothecationLaunchInput; type index$4_PrepareFeeRehypothecationLaunchResult = PrepareFeeRehypothecationLaunchResult; type index$4_PrepareFeeRehypothecationSettlementInput = PrepareFeeRehypothecationSettlementInput; type index$4_PrepareFeeRehypothecationSettlementResult = PrepareFeeRehypothecationSettlementResult; type index$4_PreparedFeeRehypothecationVesting = PreparedFeeRehypothecationVesting; declare const index$4_allFeesToBeneficiariesInAsset: typeof allFeesToBeneficiariesInAsset; declare const index$4_allFeesToBeneficiariesInNumeraire: typeof allFeesToBeneficiariesInNumeraire; declare const index$4_balancedFourBucket: typeof balancedFourBucket; declare const index$4_calculateBeneficiaryEntitlement: typeof calculateBeneficiaryEntitlement; declare const index$4_calculateFeeEntitlement: typeof calculateFeeEntitlement; declare const index$4_calculateInitializerBeneficiaryEntitlement: typeof calculateInitializerBeneficiaryEntitlement; declare const index$4_calculateMinimumOutput: typeof calculateMinimumOutput; declare const index$4_calculatePendingInitializerFees: typeof calculatePendingInitializerFees; declare const index$4_deriveFeeRehypothecationAddresses: typeof deriveFeeRehypothecationAddresses; declare const index$4_feeRehypothecationRequiresBeneficiaries: typeof feeRehypothecationRequiresBeneficiaries; declare const index$4_getFeeRehypothecationAuthorityAddress: typeof getFeeRehypothecationAuthorityAddress; declare const index$4_getFeeRehypothecationSettlementSignerAddress: typeof getFeeRehypothecationSettlementSignerAddress; declare const index$4_getFeeRehypothecationStateAddress: typeof getFeeRehypothecationStateAddress; declare const index$4_inKindBeneficiaryFees: typeof inKindBeneficiaryFees; declare const index$4_prepareSettlement: typeof prepareSettlement; declare const index$4_quoteZeroFeeExactIn: typeof quoteZeroFeeExactIn; declare const index$4_resolveProtectedMinimumOutput: typeof resolveProtectedMinimumOutput; declare const index$4_splitCumulativeFeeIncrement: typeof splitCumulativeFeeIncrement; declare const index$4_validateAndSortFeeRehypothecationBeneficiaries: typeof validateAndSortFeeRehypothecationBeneficiaries; declare const index$4_validateFeeRehypothecationStrategy: typeof validateFeeRehypothecationStrategy; declare namespace index$4 { export { index$4_FEE_REHYPOTHECATION_BPS_DENOMINATOR as FEE_REHYPOTHECATION_BPS_DENOMINATOR, index$4_FEE_REHYPOTHECATION_ROUTING_MODE_DIRECT_BUYBACK as FEE_REHYPOTHECATION_ROUTING_MODE_DIRECT_BUYBACK, index$4_FEE_REHYPOTHECATION_ROUTING_MODE_TO_BENEFICIARIES as FEE_REHYPOTHECATION_ROUTING_MODE_TO_BENEFICIARIES, type index$4_FeeRehypothecationAddresses as FeeRehypothecationAddresses, type index$4_FeeRehypothecationRpc as FeeRehypothecationRpc, type index$4_FeeRehypothecationSettlementQuote as FeeRehypothecationSettlementQuote, type index$4_FeeRehypothecationStrategy as FeeRehypothecationStrategy, index$4_MAX_FEE_REHYPOTHECATION_BENEFICIARIES as MAX_FEE_REHYPOTHECATION_BENEFICIARIES, type index$4_PrepareFeeRehypothecationClaimInput as PrepareFeeRehypothecationClaimInput, type index$4_PrepareFeeRehypothecationClaimResult as PrepareFeeRehypothecationClaimResult, type index$4_PrepareFeeRehypothecationLaunchInput as PrepareFeeRehypothecationLaunchInput, type index$4_PrepareFeeRehypothecationLaunchResult as PrepareFeeRehypothecationLaunchResult, type index$4_PrepareFeeRehypothecationSettlementInput as PrepareFeeRehypothecationSettlementInput, type index$4_PrepareFeeRehypothecationSettlementResult as PrepareFeeRehypothecationSettlementResult, type index$4_PreparedFeeRehypothecationVesting as PreparedFeeRehypothecationVesting, index$4_allFeesToBeneficiariesInAsset as allFeesToBeneficiariesInAsset, index$4_allFeesToBeneficiariesInNumeraire as allFeesToBeneficiariesInNumeraire, index$4_balancedFourBucket as balancedFourBucket, index$4_calculateBeneficiaryEntitlement as calculateBeneficiaryEntitlement, index$4_calculateFeeEntitlement as calculateFeeEntitlement, index$4_calculateInitializerBeneficiaryEntitlement as calculateInitializerBeneficiaryEntitlement, index$4_calculateMinimumOutput as calculateMinimumOutput, index$4_calculatePendingInitializerFees as calculatePendingInitializerFees, index$4_deriveFeeRehypothecationAddresses as deriveFeeRehypothecationAddresses, index$4_feeRehypothecationRequiresBeneficiaries as feeRehypothecationRequiresBeneficiaries, index$4_getFeeRehypothecationAuthorityAddress as getFeeRehypothecationAuthorityAddress, index$4_getFeeRehypothecationSettlementSignerAddress as getFeeRehypothecationSettlementSignerAddress, index$4_getFeeRehypothecationStateAddress as getFeeRehypothecationStateAddress, index$4_inKindBeneficiaryFees as inKindBeneficiaryFees, prepareClaim$1 as prepareClaim, prepareLaunch$1 as prepareLaunch, index$4_prepareSettlement as prepareSettlement, index$4_quoteZeroFeeExactIn as quoteZeroFeeExactIn, index$4_resolveProtectedMinimumOutput as resolveProtectedMinimumOutput, index$4_splitCumulativeFeeIncrement as splitCumulativeFeeIncrement, index$4_validateAndSortFeeRehypothecationBeneficiaries as validateAndSortFeeRehypothecationBeneficiaries, index$4_validateFeeRehypothecationStrategy as validateFeeRehypothecationStrategy }; } /** * Program ID for the Initializer program. * * Source of truth: programs/initializer/src/lib.rs */ declare const INITIALIZER_PROGRAM_ID: Address; declare const BPF_LOADER_UPGRADEABLE_PROGRAM_ID: Address; /** * Hook program for prediction market launches. * Invoked during bonding curve swaps and previews as a pre/post-swap hook. * * Source of truth: programs/prediction_hook/src/lib.rs */ declare const PREDICTION_HOOK_PROGRAM_ID: Address; declare const SEED_CONFIG = "config"; declare const SEED_LAUNCH = "launch"; declare const SEED_LAUNCH_AUTHORITY = "launch_authority"; declare const SEED_LAUNCH_FEE_STATE = "launch_fee_state"; /** * Commitment hash for an empty remaining-accounts list — keccak256 of [0,0,0,0]. * Pass this for hookRemainingAccountsHash and migratorRemainingAccountsHash * when no extra accounts are needed at that hook's invocation time. */ declare const EMPTY_REMAINING_ACCOUNTS_HASH: Uint8Array; declare const MAX_MIGRATOR_ALLOWLIST = 32; declare const MAX_HOOK_ALLOWLIST = 32; declare const MAX_PAYLOAD = 256; declare const PHASE_TRADING = 0; declare const PHASE_MIGRATED = 1; declare const PHASE_ABORTED = 2; declare const TRADE_DIRECTION_BUY = 0; declare const TRADE_DIRECTION_SELL = 1; declare const CURVE_KIND_XYK = 0; declare const CURVE_PARAMS_FORMAT_XYK_V0 = 0; declare const HF_BEFORE_SWAP: number; declare const HF_AFTER_SWAP: number; declare const HF_BEFORE_CREATE: number; declare const HF_AFTER_CREATE: number; declare const HF_BEFORE_MIGRATE: number; declare const HF_AFTER_MIGRATE: number; declare const HF_FORWARD_READONLY_SIGNERS: number; declare const HF_LAUNCH_CONTEXT_V2: number; declare const HOOK_NO_CHANGE = 65535; declare const INITIALIZER_INSTRUCTION_DISCRIMINATORS: { readonly initializeConfig: Uint8Array; readonly setMigratorAllowlist: Uint8Array; readonly setHookAllowlist: Uint8Array; readonly initializeLaunch: Uint8Array; readonly curveSwapExactIn: Uint8Array; readonly migrateLaunch: Uint8Array; readonly previewSwapExactIn: Uint8Array; readonly previewMigration: Uint8Array; }; declare const INITIALIZER_ACCOUNT_DISCRIMINATORS: { readonly InitConfig: Uint8Array; readonly Launch: Uint8Array; readonly LaunchFeeState: Uint8Array; }; declare function encodeU64LE(value: bigint): Uint8Array; /** * Derive the InitConfig PDA address. * Seeds: ['config'] */ declare function getConfigAddress(programId?: Address): Promise; /** * Derive the ProgramData PDA for an upgradeable program. * Seeds: [initializer_program_id] with program = BPFLoaderUpgradeable. */ declare function getProgramDataAddress(programId?: Address): Promise; /** * Derive the Launch PDA address. * Seeds: ['launch', namespace, launch_id_bytes_32] */ declare function getLaunchAddress(namespace: Address, launchId: Uint8Array, programId?: Address): Promise; /** * Derive the Launch authority PDA address. * Seeds: ['launch_authority', launch] */ declare function getLaunchAuthorityAddress(launch: Address, programId?: Address): Promise; /** * Derive the LaunchFeeState PDA address. * Seeds: ['launch_fee_state', launch] */ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address): Promise; /** * Convenience helper for the common pattern: embed a u64 into a 32-byte launch_id. */ declare function launchIdFromU64(launchId: bigint): Uint8Array; type AddressOrSigner$3 = AddressOrTransactionSigner; interface InitializeConfigAccounts { admin: AddressOrSigner$3; config: Address; programData: Address; systemProgram?: Address; } declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction; type AddressOrSigner$2 = AddressOrTransactionSigner; interface SetMigratorAllowlistAccounts { admin: AddressOrSigner$2; config: Address; } declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction; type AddressOrSigner$1 = AddressOrTransactionSigner; interface SetHookAllowlistAccounts { admin: AddressOrSigner$1; config: Address; } declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction; interface CurveSwapExactInAccounts { launch: Address; launchAuthority: Address; baseVault: Address; quoteVault: Address; userBaseAccount: Address; userQuoteAccount: Address; baseMint: Address; quoteMint: Address; user: AddressOrTransactionSigner; /** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */ hookProgram?: Address; launchFeeState: Address; baseTokenProgram?: Address; quoteTokenProgram?: Address; remainingAccounts?: RemainingAccount[]; } declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: { amountIn: bigint; minAmountOut: bigint; tradeDirection: number; }, programId?: Address): Instruction; type AddressOrSigner = AddressOrTransactionSigner; interface MigrateLaunchAccounts { config: Address; launch: Address; launchAuthority: Address; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; launchFeeState: Address; migratorProgram: Address; payer: AddressOrSigner; baseTokenProgram?: Address; quoteTokenProgram?: Address; systemProgram?: Address; rent: Address; } declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction; interface PreviewSwapExactInResult { amountOut: bigint; feePaid: bigint; } interface PreviewSwapExactInAccounts { launch: Address; launchFeeState: Address; baseVault: Address; quoteVault: Address; hookProgram?: Address; remainingAccounts?: RemainingAccount[]; } declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: { amountIn: bigint; tradeDirection: number; }, programId?: Address): Instruction; declare function decodePreviewSwapExactInResult(data: Uint8Array): PreviewSwapExactInResult; interface PreviewMigrationResult { baseVaultAmount: bigint; quoteVaultAmount: bigint; baseMintSupply: bigint; } interface PreviewMigrationAccounts { launch: Address; baseMint: Address; baseVault: Address; quoteVault: Address; } declare function createPreviewMigrationInstruction(accounts: PreviewMigrationAccounts, programId?: Address): Instruction; declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigrationResult; /** * Compute the remaining-accounts commitment hash used by the Initializer program. * * Algorithm: keccak256(u32_len_le || pubkey_0 || ... || pubkey_n) * * This matches compute_remaining_accounts_hash in * programs/initializer/src/instructions/launch_common.rs. * * Commit the result as hookRemainingAccountsHash or migratorRemainingAccountsHash * when calling initializeLaunch. At migrate_launch (or hook invoke) time, pass the * same accounts in the same order as remaining accounts — the program verifies they match. * * For an empty account list use EMPTY_REMAINING_ACCOUNTS_HASH instead. */ declare function computeRemainingAccountsHash(addresses: Address[]): Uint8Array; /** * Compute the fee charged by initializer bonding-curve exact-in swaps. * * The initializer program rounds swap fees up, so small non-zero trades with a * non-zero fee rate still pay at least one atom. */ declare function getCurveSwapFeeAmount(amountIn: bigint, swapFeeBps: number): bigint; /** * Returns a human-readable label for a launch phase value. * Falls back to the numeric string for any unrecognised phase. */ declare function phaseLabel(phase: number): string; declare const DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND = 20; declare function getInstructionLookupTableAddresses(instructions: Instruction | readonly Instruction[]): Address[]; interface BuildAddressLookupTableSetupInstructionsInput { authority: TransactionSigner; payer: TransactionSigner; recentSlot: number | bigint; addresses: readonly Address[]; addressesPerExtendInstruction?: number; } interface BuildAddressLookupTableSetupInstructionsResult { lookupTableAddress: Address; createInstruction: Instruction; extendInstructions: Instruction[]; addresses: Address[]; } declare function buildAddressLookupTableSetupInstructions({ authority, payer, recentSlot, addresses, addressesPerExtendInstruction, }: BuildAddressLookupTableSetupInstructionsInput): Promise; declare function compressTransactionMessageWithLookupTable>(transactionMessage: TTransactionMessage, { lookupTableAddress, addresses, }: { lookupTableAddress: Address; addresses: readonly Address[]; }): TTransactionMessage | (TTransactionMessage extends { readonly instructions: readonly (infer TInstruction extends Instruction)[]; } ? Omit & { readonly instructions: readonly (TInstruction extends Instruction | _solana_kit.AccountLookupMeta)[]> ? Instruction ? _solana_kit.AccountMeta | _solana_kit.AccountLookupMeta : TAccounts[K]; }> : TInstruction)[]; } : TTransactionMessage); declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232; interface TransactionSizeReport { size: number; limit: number; overBy: number; fits: boolean; } interface TransactionSizeAssertOptions { label?: string; metadataBytes?: number; } type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer; declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport; declare function measureTransactionMessageSizeWithLookupTable>(transactionMessage: TTransactionMessage, lookupTable: { lookupTableAddress: Address; addresses: readonly Address[]; }): TransactionSizeReport; declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport; declare function assertTransactionMessageFitsWithLookupTable>(transactionMessage: TTransactionMessage, lookupTable: { lookupTableAddress: Address; addresses: readonly Address[]; }, options?: TransactionSizeAssertOptions): TransactionSizeReport; /** * Launch fetching functions for the Initializer SDK */ interface FetchLaunchesConfig { programId?: Address; commitment?: 'processed' | 'confirmed' | 'finalized'; } interface LaunchWithAddress { address: Address; account: Launch$2; } declare function fetchLaunch$1(rpc: Rpc, address: Address, config?: FetchLaunchesConfig): Promise; declare function fetchAllLaunches(rpc: GetProgramAccountsRpc, config?: FetchLaunchesConfig): Promise; /** * Fetch launches filtered by Launch.authority (offset 8). * Note: Permissionless launches have authority == Pubkey::default(). */ declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority: Address, config?: FetchLaunchesConfig): Promise; declare function launchExists(rpc: Rpc, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise; declare const index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID; type index$3_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput; type index$3_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult; declare const index$3_CURVE_KIND_XYK: typeof CURVE_KIND_XYK; declare const index$3_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0; type index$3_ClaimFeesAsyncInput = ClaimFeesAsyncInput; type index$3_CreateLaunchAccountSigners = CreateLaunchAccountSigners; type index$3_CreateLaunchAddresses = CreateLaunchAddresses; type index$3_CreateLaunchCpmmMigrationConfig = CreateLaunchCpmmMigrationConfig; type index$3_CreateLaunchCustomMigrationConfig = CreateLaunchCustomMigrationConfig; type index$3_CreateLaunchInput = CreateLaunchInput; type index$3_CreateLaunchMigrationConfig = CreateLaunchMigrationConfig; type index$3_CreateLaunchResult = CreateLaunchResult; type index$3_CurveSwapExactInAccounts = CurveSwapExactInAccounts; declare const index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND; type index$3_DeriveCreateLaunchAddressesInput = DeriveCreateLaunchAddressesInput; declare const index$3_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH; type index$3_FeeBeneficiary = FeeBeneficiary; type index$3_FeeBeneficiaryArgs = FeeBeneficiaryArgs; type index$3_FeeBeneficiaryInput = FeeBeneficiaryInput; type index$3_FeeBeneficiaryInputArgs = FeeBeneficiaryInputArgs; type index$3_FetchLaunchesConfig = FetchLaunchesConfig; type index$3_FundVestingAsyncInput = FundVestingAsyncInput; declare const index$3_HF_AFTER_CREATE: typeof HF_AFTER_CREATE; declare const index$3_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE; declare const index$3_HF_AFTER_SWAP: typeof HF_AFTER_SWAP; declare const index$3_HF_BEFORE_CREATE: typeof HF_BEFORE_CREATE; declare const index$3_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE; declare const index$3_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP; declare const index$3_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS; declare const index$3_HF_LAUNCH_CONTEXT_V2: typeof HF_LAUNCH_CONTEXT_V2; declare const index$3_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE; type index$3_HarvestMigratedFeesAsyncInput = HarvestMigratedFeesAsyncInput; declare const index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS; declare const index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS; declare const index$3_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID; type index$3_InitializeConfigAccounts = InitializeConfigAccounts; type index$3_InitializeConfigArgs = InitializeConfigArgs; type index$3_InitializeConfigArgsArgs = InitializeConfigArgsArgs; type index$3_InitializeLaunchAccounts = InitializeLaunchAccounts; type index$3_InitializeLaunchArgs = InitializeLaunchArgs; type index$3_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs; type index$3_LaunchFeeState = LaunchFeeState; type index$3_LaunchFeeStateArgs = LaunchFeeStateArgs; type index$3_LaunchMetadata = LaunchMetadata; type index$3_LaunchSupply = LaunchSupply; type index$3_LaunchTokenPrograms = LaunchTokenPrograms; type index$3_LaunchWithAddress = LaunchWithAddress; declare const index$3_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST; declare const index$3_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST; declare const index$3_MAX_PAYLOAD: typeof MAX_PAYLOAD; type index$3_MigrateLaunchAccounts = MigrateLaunchAccounts; declare const index$3_PHASE_ABORTED: typeof PHASE_ABORTED; declare const index$3_PHASE_MIGRATED: typeof PHASE_MIGRATED; declare const index$3_PHASE_TRADING: typeof PHASE_TRADING; declare const index$3_PREDICTION_HOOK_PROGRAM_ID: typeof PREDICTION_HOOK_PROGRAM_ID; type index$3_PreviewMigrationAccounts = PreviewMigrationAccounts; type index$3_PreviewMigrationResult = PreviewMigrationResult; type index$3_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts; type index$3_PreviewSwapExactInResult = PreviewSwapExactInResult; type index$3_ReplaceFeeBeneficiaryAsyncInput = ReplaceFeeBeneficiaryAsyncInput; declare const index$3_SEED_CONFIG: typeof SEED_CONFIG; declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH; declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY; declare const index$3_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE; declare const index$3_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT; type index$3_SetFeePolicyAsyncInput = SetFeePolicyAsyncInput; type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts; type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts; declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY; declare const index$3_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL; type index$3_TransactionSizeAssertOptions = TransactionSizeAssertOptions; type index$3_TransactionSizeReport = TransactionSizeReport; type index$3_XykCurveConfig = XykCurveConfig; declare const index$3_assertTransactionMessageFits: typeof assertTransactionMessageFits; declare const index$3_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable; declare const index$3_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions; declare const index$3_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable; declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash; declare const index$3_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction; declare const index$3_createInitializeConfigInstruction: typeof createInitializeConfigInstruction; declare const index$3_createInitializeLaunchInstruction: typeof createInitializeLaunchInstruction; declare const index$3_createLaunchId: typeof createLaunchId; declare const index$3_createMigrateLaunchInstruction: typeof createMigrateLaunchInstruction; declare const index$3_createPreviewMigrationInstruction: typeof createPreviewMigrationInstruction; declare const index$3_createPreviewSwapExactInInstruction: typeof createPreviewSwapExactInInstruction; declare const index$3_createSetHookAllowlistInstruction: typeof createSetHookAllowlistInstruction; declare const index$3_createSetMigratorAllowlistInstruction: typeof createSetMigratorAllowlistInstruction; declare const index$3_decodePreviewMigrationResult: typeof decodePreviewMigrationResult; declare const index$3_decodePreviewSwapExactInResult: typeof decodePreviewSwapExactInResult; declare const index$3_deriveCreateLaunchAddresses: typeof deriveCreateLaunchAddresses; declare const index$3_encodeU64LE: typeof encodeU64LE; declare const index$3_fetchAllLaunches: typeof fetchAllLaunches; declare const index$3_fetchLaunchesByAuthority: typeof fetchLaunchesByAuthority; declare const index$3_getClaimFeesInstructionAsync: typeof getClaimFeesInstructionAsync; declare const index$3_getConfigAddress: typeof getConfigAddress; declare const index$3_getCurveSwapFeeAmount: typeof getCurveSwapFeeAmount; declare const index$3_getFundVestingInstructionAsync: typeof getFundVestingInstructionAsync; declare const index$3_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync; declare const index$3_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec; declare const index$3_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder; declare const index$3_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder; declare const index$3_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec; declare const index$3_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder; declare const index$3_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder; declare const index$3_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses; declare const index$3_getLaunchAddress: typeof getLaunchAddress; declare const index$3_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress; declare const index$3_getLaunchFeeStateAddress: typeof getLaunchFeeStateAddress; declare const index$3_getLaunchFeeStateCodec: typeof getLaunchFeeStateCodec; declare const index$3_getLaunchFeeStateDecoder: typeof getLaunchFeeStateDecoder; declare const index$3_getLaunchFeeStateEncoder: typeof getLaunchFeeStateEncoder; declare const index$3_getProgramDataAddress: typeof getProgramDataAddress; declare const index$3_getReplaceFeeBeneficiaryInstructionAsync: typeof getReplaceFeeBeneficiaryInstructionAsync; declare const index$3_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyInstructionAsync; declare const index$3_getTokenMetadataAddress: typeof getTokenMetadataAddress; declare const index$3_launchExists: typeof launchExists; declare const index$3_launchIdFromU64: typeof launchIdFromU64; declare const index$3_launchTokenPrograms: typeof launchTokenPrograms; declare const index$3_measureTransactionMessageSize: typeof measureTransactionMessageSize; declare const index$3_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable; declare const index$3_phaseLabel: typeof phaseLabel; declare namespace index$3 { export { index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$3_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$3_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$3_CURVE_KIND_XYK as CURVE_KIND_XYK, index$3_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$3_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$3_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$3_CreateLaunchAddresses as CreateLaunchAddresses, type index$3_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$3_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$3_CreateLaunchInput as CreateLaunchInput, type index$3_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$3_CreateLaunchResult as CreateLaunchResult, type index$3_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$3_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FeeBeneficiary as FeeBeneficiary, type index$3_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$3_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$3_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, type index$3_FundVestingAsyncInput as FundVestingAsyncInput, index$3_HF_AFTER_CREATE as HF_AFTER_CREATE, index$3_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$3_HF_AFTER_SWAP as HF_AFTER_SWAP, index$3_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$3_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$3_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$3_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$3_HF_LAUNCH_CONTEXT_V2 as HF_LAUNCH_CONTEXT_V2, index$3_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$3_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$3_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$3_InitializeConfigAccounts as InitializeConfigAccounts, type index$3_InitializeConfigArgs as InitializeConfigArgs, type index$3_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$3_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$3_InitializeLaunchArgs as InitializeLaunchArgs, type index$3_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$2 as Launch, type LaunchArgs$2 as LaunchArgs, type index$3_LaunchFeeState as LaunchFeeState, type index$3_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$3_LaunchMetadata as LaunchMetadata, type index$3_LaunchSupply as LaunchSupply, type index$3_LaunchTokenPrograms as LaunchTokenPrograms, type index$3_LaunchWithAddress as LaunchWithAddress, index$3_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$3_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$3_MAX_PAYLOAD as MAX_PAYLOAD, type index$3_MigrateLaunchAccounts as MigrateLaunchAccounts, index$3_PHASE_ABORTED as PHASE_ABORTED, index$3_PHASE_MIGRATED as PHASE_MIGRATED, index$3_PHASE_TRADING as PHASE_TRADING, index$3_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$2 as PayloadBuf, type index$3_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$3_PreviewMigrationResult as PreviewMigrationResult, type index$3_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$3_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$3_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$3_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$3_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$3_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$3_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$3_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$3_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$3_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$3_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$3_TransactionSizeReport as TransactionSizeReport, type index$3_XykCurveConfig as XykCurveConfig, index$3_assertTransactionMessageFits as assertTransactionMessageFits, index$3_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$3_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$3_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$3_computeRemainingAccountsHash as computeRemainingAccountsHash, index$3_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$3_createInitializeConfigInstruction as createInitializeConfigInstruction, index$3_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$3_createLaunchId as createLaunchId, index$3_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$3_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$3_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$3_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$3_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$3_decodePreviewMigrationResult as decodePreviewMigrationResult, index$3_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$3_deriveCreateLaunchAddresses as deriveCreateLaunchAddresses, index$3_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$3_getConfigAddress as getConfigAddress, index$3_getCurveSwapFeeAmount as getCurveSwapFeeAmount, index$3_getFundVestingInstructionAsync as getFundVestingInstructionAsync, index$3_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, getInitConfigSize$1 as getInitConfigSize, index$3_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$3_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$3_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$3_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$3_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$3_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$3_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$3_getLaunchAddress as getLaunchAddress, index$3_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$2 as getLaunchCodec, getLaunchDecoder$2 as getLaunchDecoder, getLaunchEncoder$2 as getLaunchEncoder, index$3_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$3_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$3_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$3_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$3_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_launchTokenPrograms as launchTokenPrograms, index$3_measureTransactionMessageSize as measureTransactionMessageSize, index$3_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$3_phaseLabel as phaseLabel }; } type PrepareVestingClaimInput = { payer: TransactionSigner; beneficiary: Address; launch: Address; baseMint: Address; baseTokenProgram?: Address; scheduleId?: number | null; /** Zero or omitted claims every token currently available. */ amount?: bigint; vestingProgram?: Address; }; type PrepareVestingClaimResult = VestingAddresses & { beneficiaryTokenAccount: Address; instruction: Instruction; }; declare function prepareClaim(input: PrepareVestingClaimInput): Promise; declare const MAX_VESTING_SCHEDULES = 8; declare const MAX_VESTING_ALLOCATIONS = 16; declare const MIN_VESTING_DURATION_SECONDS = 86400n; declare const MAX_VESTED_BPS = 8000n; declare const VESTING_BPS_DENOMINATOR = 10000n; type VestingLaunchSupply = Omit; type PrepareVestingLaunchInput = Omit & { launchAccounts: Omit & { baseMint: TransactionSigner; }; payer: TransactionSigner; supply: VestingLaunchSupply; vesting: VestingPlan; /** Vesting launches are non-migrating unless a migration is explicitly supplied. */ migration?: CreateLaunchInput['migration']; vestingProgram?: Address; }; type PrepareVestingLaunchResult = { namespace: Address; launchId: Uint8Array; launchAddresses: CreateLaunchAddresses; vestingAddresses: VestingAddresses; totalAllocation: bigint; initializeVestingInstruction: Instruction; initializeLaunchInstruction: Instruction; fundVestingInstruction: Instruction; }; declare function prepareLaunch(input: PrepareVestingLaunchInput): Promise; type index$2_ClaimArgs = ClaimArgs; type index$2_ClaimArgsArgs = ClaimArgsArgs; declare const index$2_DOPPLER_VESTING_ERROR__ALLOCATION_CAP_EXCEEDED: typeof DOPPLER_VESTING_ERROR__ALLOCATION_CAP_EXCEEDED; declare const index$2_DOPPLER_VESTING_ERROR__ARITHMETIC_OVERFLOW: typeof DOPPLER_VESTING_ERROR__ARITHMETIC_OVERFLOW; declare const index$2_DOPPLER_VESTING_ERROR__INSUFFICIENT_AVAILABLE_AMOUNT: typeof DOPPLER_VESTING_ERROR__INSUFFICIENT_AVAILABLE_AMOUNT; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_ALLOCATION: typeof DOPPLER_VESTING_ERROR__INVALID_ALLOCATION; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_BENEFICIARY: typeof DOPPLER_VESTING_ERROR__INVALID_BENEFICIARY; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_CONFIG: typeof DOPPLER_VESTING_ERROR__INVALID_CONFIG; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_LAUNCH: typeof DOPPLER_VESTING_ERROR__INVALID_LAUNCH; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_MINT: typeof DOPPLER_VESTING_ERROR__INVALID_MINT; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_SCHEDULE: typeof DOPPLER_VESTING_ERROR__INVALID_SCHEDULE; declare const index$2_DOPPLER_VESTING_ERROR__INVALID_TOKEN_PROGRAM: typeof DOPPLER_VESTING_ERROR__INVALID_TOKEN_PROGRAM; declare const index$2_DOPPLER_VESTING_ERROR__NO_TOKENS_AVAILABLE: typeof DOPPLER_VESTING_ERROR__NO_TOKENS_AVAILABLE; declare const index$2_DOPPLER_VESTING_ERROR__TOO_MANY_ALLOCATIONS: typeof DOPPLER_VESTING_ERROR__TOO_MANY_ALLOCATIONS; declare const index$2_DOPPLER_VESTING_ERROR__TOO_MANY_SCHEDULES: typeof DOPPLER_VESTING_ERROR__TOO_MANY_SCHEDULES; declare const index$2_DOPPLER_VESTING_ERROR__UNKNOWN_SCHEDULE: typeof DOPPLER_VESTING_ERROR__UNKNOWN_SCHEDULE; declare const index$2_DOPPLER_VESTING_ERROR__VESTING_NOT_FUNDED: typeof DOPPLER_VESTING_ERROR__VESTING_NOT_FUNDED; declare const index$2_DOPPLER_VESTING_PROGRAM_ADDRESS: typeof DOPPLER_VESTING_PROGRAM_ADDRESS; type index$2_DopplerVestingAccount = DopplerVestingAccount; declare const index$2_DopplerVestingAccount: typeof DopplerVestingAccount; type index$2_DopplerVestingError = DopplerVestingError; type index$2_DopplerVestingInstruction = DopplerVestingInstruction; declare const index$2_DopplerVestingInstruction: typeof DopplerVestingInstruction; type index$2_DopplerVestingPlugin = DopplerVestingPlugin; type index$2_DopplerVestingPluginAccounts = DopplerVestingPluginAccounts; type index$2_DopplerVestingPluginInstructions = DopplerVestingPluginInstructions; type index$2_DopplerVestingPluginRequirements = DopplerVestingPluginRequirements; declare const index$2_INITIALIZE_VESTING_DISCRIMINATOR: typeof INITIALIZE_VESTING_DISCRIMINATOR; type index$2_InitializeVestingArgs = InitializeVestingArgs; type index$2_InitializeVestingArgsArgs = InitializeVestingArgsArgs; type index$2_InitializeVestingAsyncInput = InitializeVestingAsyncInput; type index$2_InitializeVestingInput = InitializeVestingInput; type index$2_InitializeVestingInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountVestingConfig extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = InitializeVestingInstruction; type index$2_InitializeVestingInstructionData = InitializeVestingInstructionData; type index$2_InitializeVestingInstructionDataArgs = InitializeVestingInstructionDataArgs; declare const index$2_MAX_VESTED_BPS: typeof MAX_VESTED_BPS; declare const index$2_MAX_VESTING_ALLOCATIONS: typeof MAX_VESTING_ALLOCATIONS; declare const index$2_MAX_VESTING_SCHEDULES: typeof MAX_VESTING_SCHEDULES; declare const index$2_MIN_VESTING_DURATION_SECONDS: typeof MIN_VESTING_DURATION_SECONDS; type index$2_ParsedDopplerVestingInstruction = ParsedDopplerVestingInstruction; type index$2_ParsedInitializeVestingInstruction = ParsedInitializeVestingInstruction; type index$2_PrepareVestingClaimInput = PrepareVestingClaimInput; type index$2_PrepareVestingClaimResult = PrepareVestingClaimResult; type index$2_PrepareVestingLaunchInput = PrepareVestingLaunchInput; type index$2_PrepareVestingLaunchResult = PrepareVestingLaunchResult; type index$2_TokensReleased = TokensReleased; type index$2_TokensReleasedArgs = TokensReleasedArgs; declare const index$2_VESTING_BPS_DENOMINATOR: typeof VESTING_BPS_DENOMINATOR; declare const index$2_VESTING_CONFIG_DISCRIMINATOR: typeof VESTING_CONFIG_DISCRIMINATOR; type index$2_VestingAddresses = VestingAddresses; type index$2_VestingAllocation = VestingAllocation; type index$2_VestingAllocationArgs = VestingAllocationArgs; type index$2_VestingAllocationInput = VestingAllocationInput; type index$2_VestingAllocationInputArgs = VestingAllocationInputArgs; type index$2_VestingConfig = VestingConfig; type index$2_VestingConfigArgs = VestingConfigArgs; type index$2_VestingInitialized = VestingInitialized; type index$2_VestingInitializedArgs = VestingInitializedArgs; type index$2_VestingPlan = VestingPlan; type index$2_VestingSchedule = VestingSchedule; type index$2_VestingScheduleArgs = VestingScheduleArgs; declare const index$2_decodeVestingConfig: typeof decodeVestingConfig; declare const index$2_deriveVestingAddresses: typeof deriveVestingAddresses; declare const index$2_dopplerVestingProgram: typeof dopplerVestingProgram; declare const index$2_fetchAllMaybeVestingConfig: typeof fetchAllMaybeVestingConfig; declare const index$2_fetchAllVestingConfig: typeof fetchAllVestingConfig; declare const index$2_fetchMaybeVestingConfig: typeof fetchMaybeVestingConfig; declare const index$2_fetchVestingConfig: typeof fetchVestingConfig; declare const index$2_getClaimArgsCodec: typeof getClaimArgsCodec; declare const index$2_getClaimArgsDecoder: typeof getClaimArgsDecoder; declare const index$2_getClaimArgsEncoder: typeof getClaimArgsEncoder; declare const index$2_getDopplerVestingErrorMessage: typeof getDopplerVestingErrorMessage; declare const index$2_getInitializeVestingArgsCodec: typeof getInitializeVestingArgsCodec; declare const index$2_getInitializeVestingArgsDecoder: typeof getInitializeVestingArgsDecoder; declare const index$2_getInitializeVestingArgsEncoder: typeof getInitializeVestingArgsEncoder; declare const index$2_getInitializeVestingDiscriminatorBytes: typeof getInitializeVestingDiscriminatorBytes; declare const index$2_getInitializeVestingInstruction: typeof getInitializeVestingInstruction; declare const index$2_getInitializeVestingInstructionAsync: typeof getInitializeVestingInstructionAsync; declare const index$2_getInitializeVestingInstructionDataCodec: typeof getInitializeVestingInstructionDataCodec; declare const index$2_getInitializeVestingInstructionDataDecoder: typeof getInitializeVestingInstructionDataDecoder; declare const index$2_getInitializeVestingInstructionDataEncoder: typeof getInitializeVestingInstructionDataEncoder; declare const index$2_getTokensReleasedCodec: typeof getTokensReleasedCodec; declare const index$2_getTokensReleasedDecoder: typeof getTokensReleasedDecoder; declare const index$2_getTokensReleasedEncoder: typeof getTokensReleasedEncoder; declare const index$2_getVestingAllocationCodec: typeof getVestingAllocationCodec; declare const index$2_getVestingAllocationDecoder: typeof getVestingAllocationDecoder; declare const index$2_getVestingAllocationEncoder: typeof getVestingAllocationEncoder; declare const index$2_getVestingAllocationInputCodec: typeof getVestingAllocationInputCodec; declare const index$2_getVestingAllocationInputDecoder: typeof getVestingAllocationInputDecoder; declare const index$2_getVestingAllocationInputEncoder: typeof getVestingAllocationInputEncoder; declare const index$2_getVestingBeneficiaryTokenAccountAddress: typeof getVestingBeneficiaryTokenAccountAddress; declare const index$2_getVestingConfigAddress: typeof getVestingConfigAddress; declare const index$2_getVestingConfigCodec: typeof getVestingConfigCodec; declare const index$2_getVestingConfigDecoder: typeof getVestingConfigDecoder; declare const index$2_getVestingConfigDiscriminatorBytes: typeof getVestingConfigDiscriminatorBytes; declare const index$2_getVestingConfigEncoder: typeof getVestingConfigEncoder; declare const index$2_getVestingConfigSize: typeof getVestingConfigSize; declare const index$2_getVestingInitializedCodec: typeof getVestingInitializedCodec; declare const index$2_getVestingInitializedDecoder: typeof getVestingInitializedDecoder; declare const index$2_getVestingInitializedEncoder: typeof getVestingInitializedEncoder; declare const index$2_getVestingScheduleCodec: typeof getVestingScheduleCodec; declare const index$2_getVestingScheduleDecoder: typeof getVestingScheduleDecoder; declare const index$2_getVestingScheduleEncoder: typeof getVestingScheduleEncoder; declare const index$2_getVestingVaultAddress: typeof getVestingVaultAddress; declare const index$2_identifyDopplerVestingAccount: typeof identifyDopplerVestingAccount; declare const index$2_identifyDopplerVestingInstruction: typeof identifyDopplerVestingInstruction; declare const index$2_isDopplerVestingError: typeof isDopplerVestingError; declare const index$2_parseDopplerVestingInstruction: typeof parseDopplerVestingInstruction; declare const index$2_parseInitializeVestingInstruction: typeof parseInitializeVestingInstruction; declare const index$2_prepareClaim: typeof prepareClaim; declare const index$2_prepareLaunch: typeof prepareLaunch; declare namespace index$2 { export { CLAIM_DISCRIMINATOR$1 as CLAIM_DISCRIMINATOR, type index$2_ClaimArgs as ClaimArgs, type index$2_ClaimArgsArgs as ClaimArgsArgs, type ClaimAsyncInput$1 as ClaimAsyncInput, type ClaimInput$1 as ClaimInput, type ClaimInstruction$1 as ClaimInstruction, type ClaimInstructionData$1 as ClaimInstructionData, type ClaimInstructionDataArgs$1 as ClaimInstructionDataArgs, index$2_DOPPLER_VESTING_ERROR__ALLOCATION_CAP_EXCEEDED as DOPPLER_VESTING_ERROR__ALLOCATION_CAP_EXCEEDED, index$2_DOPPLER_VESTING_ERROR__ARITHMETIC_OVERFLOW as DOPPLER_VESTING_ERROR__ARITHMETIC_OVERFLOW, index$2_DOPPLER_VESTING_ERROR__INSUFFICIENT_AVAILABLE_AMOUNT as DOPPLER_VESTING_ERROR__INSUFFICIENT_AVAILABLE_AMOUNT, index$2_DOPPLER_VESTING_ERROR__INVALID_ALLOCATION as DOPPLER_VESTING_ERROR__INVALID_ALLOCATION, index$2_DOPPLER_VESTING_ERROR__INVALID_BENEFICIARY as DOPPLER_VESTING_ERROR__INVALID_BENEFICIARY, index$2_DOPPLER_VESTING_ERROR__INVALID_CONFIG as DOPPLER_VESTING_ERROR__INVALID_CONFIG, index$2_DOPPLER_VESTING_ERROR__INVALID_LAUNCH as DOPPLER_VESTING_ERROR__INVALID_LAUNCH, index$2_DOPPLER_VESTING_ERROR__INVALID_MINT as DOPPLER_VESTING_ERROR__INVALID_MINT, index$2_DOPPLER_VESTING_ERROR__INVALID_SCHEDULE as DOPPLER_VESTING_ERROR__INVALID_SCHEDULE, index$2_DOPPLER_VESTING_ERROR__INVALID_TOKEN_PROGRAM as DOPPLER_VESTING_ERROR__INVALID_TOKEN_PROGRAM, index$2_DOPPLER_VESTING_ERROR__NO_TOKENS_AVAILABLE as DOPPLER_VESTING_ERROR__NO_TOKENS_AVAILABLE, index$2_DOPPLER_VESTING_ERROR__TOO_MANY_ALLOCATIONS as DOPPLER_VESTING_ERROR__TOO_MANY_ALLOCATIONS, index$2_DOPPLER_VESTING_ERROR__TOO_MANY_SCHEDULES as DOPPLER_VESTING_ERROR__TOO_MANY_SCHEDULES, index$2_DOPPLER_VESTING_ERROR__UNKNOWN_SCHEDULE as DOPPLER_VESTING_ERROR__UNKNOWN_SCHEDULE, index$2_DOPPLER_VESTING_ERROR__VESTING_NOT_FUNDED as DOPPLER_VESTING_ERROR__VESTING_NOT_FUNDED, index$2_DOPPLER_VESTING_PROGRAM_ADDRESS as DOPPLER_VESTING_PROGRAM_ADDRESS, index$2_DopplerVestingAccount as DopplerVestingAccount, type index$2_DopplerVestingError as DopplerVestingError, index$2_DopplerVestingInstruction as DopplerVestingInstruction, type index$2_DopplerVestingPlugin as DopplerVestingPlugin, type index$2_DopplerVestingPluginAccounts as DopplerVestingPluginAccounts, type index$2_DopplerVestingPluginInstructions as DopplerVestingPluginInstructions, type index$2_DopplerVestingPluginRequirements as DopplerVestingPluginRequirements, index$2_INITIALIZE_VESTING_DISCRIMINATOR as INITIALIZE_VESTING_DISCRIMINATOR, type index$2_InitializeVestingArgs as InitializeVestingArgs, type index$2_InitializeVestingArgsArgs as InitializeVestingArgsArgs, type index$2_InitializeVestingAsyncInput as InitializeVestingAsyncInput, type index$2_InitializeVestingInput as InitializeVestingInput, type index$2_InitializeVestingInstruction as InitializeVestingInstruction, type index$2_InitializeVestingInstructionData as InitializeVestingInstructionData, type index$2_InitializeVestingInstructionDataArgs as InitializeVestingInstructionDataArgs, LAUNCH_DISCRIMINATOR$1 as LAUNCH_DISCRIMINATOR, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, index$2_MAX_VESTED_BPS as MAX_VESTED_BPS, index$2_MAX_VESTING_ALLOCATIONS as MAX_VESTING_ALLOCATIONS, index$2_MAX_VESTING_SCHEDULES as MAX_VESTING_SCHEDULES, index$2_MIN_VESTING_DURATION_SECONDS as MIN_VESTING_DURATION_SECONDS, type ParsedClaimInstruction$1 as ParsedClaimInstruction, type index$2_ParsedDopplerVestingInstruction as ParsedDopplerVestingInstruction, type index$2_ParsedInitializeVestingInstruction as ParsedInitializeVestingInstruction, type PayloadBuf$1 as PayloadBuf, type PayloadBufArgs$1 as PayloadBufArgs, type index$2_PrepareVestingClaimInput as PrepareVestingClaimInput, type index$2_PrepareVestingClaimResult as PrepareVestingClaimResult, type index$2_PrepareVestingLaunchInput as PrepareVestingLaunchInput, type index$2_PrepareVestingLaunchResult as PrepareVestingLaunchResult, type index$2_TokensReleased as TokensReleased, type index$2_TokensReleasedArgs as TokensReleasedArgs, index$2_VESTING_BPS_DENOMINATOR as VESTING_BPS_DENOMINATOR, index$2_VESTING_CONFIG_DISCRIMINATOR as VESTING_CONFIG_DISCRIMINATOR, type index$2_VestingAddresses as VestingAddresses, type index$2_VestingAllocation as VestingAllocation, type index$2_VestingAllocationArgs as VestingAllocationArgs, type index$2_VestingAllocationInput as VestingAllocationInput, type index$2_VestingAllocationInputArgs as VestingAllocationInputArgs, type index$2_VestingConfig as VestingConfig, type index$2_VestingConfigArgs as VestingConfigArgs, type index$2_VestingInitialized as VestingInitialized, type index$2_VestingInitializedArgs as VestingInitializedArgs, type index$2_VestingPlan as VestingPlan, type index$2_VestingSchedule as VestingSchedule, type index$2_VestingScheduleArgs as VestingScheduleArgs, decodeLaunch$1 as decodeLaunch, index$2_decodeVestingConfig as decodeVestingConfig, index$2_deriveVestingAddresses as deriveVestingAddresses, index$2_dopplerVestingProgram as dopplerVestingProgram, fetchAllLaunch$1 as fetchAllLaunch, fetchAllMaybeLaunch$1 as fetchAllMaybeLaunch, index$2_fetchAllMaybeVestingConfig as fetchAllMaybeVestingConfig, index$2_fetchAllVestingConfig as fetchAllVestingConfig, fetchLaunch$2 as fetchLaunch, fetchMaybeLaunch$1 as fetchMaybeLaunch, index$2_fetchMaybeVestingConfig as fetchMaybeVestingConfig, index$2_fetchVestingConfig as fetchVestingConfig, index$2_getClaimArgsCodec as getClaimArgsCodec, index$2_getClaimArgsDecoder as getClaimArgsDecoder, index$2_getClaimArgsEncoder as getClaimArgsEncoder, getClaimDiscriminatorBytes$1 as getClaimDiscriminatorBytes, getClaimInstruction$1 as getClaimInstruction, getClaimInstructionAsync$1 as getClaimInstructionAsync, getClaimInstructionDataCodec$1 as getClaimInstructionDataCodec, getClaimInstructionDataDecoder$1 as getClaimInstructionDataDecoder, getClaimInstructionDataEncoder$1 as getClaimInstructionDataEncoder, index$2_getDopplerVestingErrorMessage as getDopplerVestingErrorMessage, index$2_getInitializeVestingArgsCodec as getInitializeVestingArgsCodec, index$2_getInitializeVestingArgsDecoder as getInitializeVestingArgsDecoder, index$2_getInitializeVestingArgsEncoder as getInitializeVestingArgsEncoder, index$2_getInitializeVestingDiscriminatorBytes as getInitializeVestingDiscriminatorBytes, index$2_getInitializeVestingInstruction as getInitializeVestingInstruction, index$2_getInitializeVestingInstructionAsync as getInitializeVestingInstructionAsync, index$2_getInitializeVestingInstructionDataCodec as getInitializeVestingInstructionDataCodec, index$2_getInitializeVestingInstructionDataDecoder as getInitializeVestingInstructionDataDecoder, index$2_getInitializeVestingInstructionDataEncoder as getInitializeVestingInstructionDataEncoder, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchDiscriminatorBytes$1 as getLaunchDiscriminatorBytes, getLaunchEncoder$1 as getLaunchEncoder, getLaunchSize$1 as getLaunchSize, getPayloadBufCodec$1 as getPayloadBufCodec, getPayloadBufDecoder$1 as getPayloadBufDecoder, getPayloadBufEncoder$1 as getPayloadBufEncoder, index$2_getTokensReleasedCodec as getTokensReleasedCodec, index$2_getTokensReleasedDecoder as getTokensReleasedDecoder, index$2_getTokensReleasedEncoder as getTokensReleasedEncoder, index$2_getVestingAllocationCodec as getVestingAllocationCodec, index$2_getVestingAllocationDecoder as getVestingAllocationDecoder, index$2_getVestingAllocationEncoder as getVestingAllocationEncoder, index$2_getVestingAllocationInputCodec as getVestingAllocationInputCodec, index$2_getVestingAllocationInputDecoder as getVestingAllocationInputDecoder, index$2_getVestingAllocationInputEncoder as getVestingAllocationInputEncoder, index$2_getVestingBeneficiaryTokenAccountAddress as getVestingBeneficiaryTokenAccountAddress, index$2_getVestingConfigAddress as getVestingConfigAddress, index$2_getVestingConfigCodec as getVestingConfigCodec, index$2_getVestingConfigDecoder as getVestingConfigDecoder, index$2_getVestingConfigDiscriminatorBytes as getVestingConfigDiscriminatorBytes, index$2_getVestingConfigEncoder as getVestingConfigEncoder, index$2_getVestingConfigSize as getVestingConfigSize, index$2_getVestingInitializedCodec as getVestingInitializedCodec, index$2_getVestingInitializedDecoder as getVestingInitializedDecoder, index$2_getVestingInitializedEncoder as getVestingInitializedEncoder, index$2_getVestingScheduleCodec as getVestingScheduleCodec, index$2_getVestingScheduleDecoder as getVestingScheduleDecoder, index$2_getVestingScheduleEncoder as getVestingScheduleEncoder, index$2_getVestingVaultAddress as getVestingVaultAddress, index$2_identifyDopplerVestingAccount as identifyDopplerVestingAccount, index$2_identifyDopplerVestingInstruction as identifyDopplerVestingInstruction, index$2_isDopplerVestingError as isDopplerVestingError, parseClaimInstruction$1 as parseClaimInstruction, index$2_parseDopplerVestingInstruction as parseDopplerVestingInstruction, index$2_parseInitializeVestingInstruction as parseInitializeVestingInstruction, index$2_prepareClaim as prepareClaim, index$2_prepareLaunch as prepareLaunch }; } /** * 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 */ declare const CLAIM_RECEIPT_DISCRIMINATOR: Uint8Array; declare function getClaimReceiptDiscriminatorBytes(): ReadonlyUint8Array; type ClaimReceipt = { discriminator: ReadonlyUint8Array; /** The market this receipt belongs to */ market: Address; /** The claimer's wallet */ claimer: Address; /** Total winner tokens burned by this user */ burnedAmount: bigint; /** Raw quote already paid to this receipt */ rewardDebt: bigint; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; type ClaimReceiptArgs = { /** The market this receipt belongs to */ market: Address; /** The claimer's wallet */ claimer: Address; /** Total winner tokens burned by this user */ burnedAmount: number | bigint; /** Raw quote already paid to this receipt */ rewardDebt: number | bigint; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link ClaimReceiptArgs} account data. */ declare function getClaimReceiptEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link ClaimReceipt} account data. */ declare function getClaimReceiptDecoder(): FixedSizeDecoder; /** Gets the codec for {@link ClaimReceipt} account data. */ declare function getClaimReceiptCodec(): FixedSizeCodec; declare function decodeClaimReceipt(encodedAccount: EncodedAccount): Account; declare function decodeClaimReceipt(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchClaimReceipt(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeClaimReceipt(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllClaimReceipt(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeClaimReceipt(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getClaimReceiptSize(): number; /** * 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 */ declare const ENTRY_DISCRIMINATOR: Uint8Array; declare function getEntryDiscriminatorBytes(): ReadonlyUint8Array; type Entry = { discriminator: ReadonlyUint8Array; /** The market this entry belongs to */ market: Address; /** Unique identifier for this entry within the market */ entryId: ReadonlyUint8Array; /** The token mint for this entry */ baseMint: Address; /** Quote contributed when this entry was migrated */ contribution: bigint; /** Whether this entry has been migrated */ isMigrated: boolean; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; type EntryArgs = { /** The market this entry belongs to */ market: Address; /** Unique identifier for this entry within the market */ entryId: ReadonlyUint8Array; /** The token mint for this entry */ baseMint: Address; /** Quote contributed when this entry was migrated */ contribution: number | bigint; /** Whether this entry has been migrated */ isMigrated: boolean; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link EntryArgs} account data. */ declare function getEntryEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Entry} account data. */ declare function getEntryDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Entry} account data. */ declare function getEntryCodec(): FixedSizeCodec; declare function decodeEntry(encodedAccount: EncodedAccount): Account; declare function decodeEntry(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchEntry(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeEntry(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllEntry(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeEntry(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getEntrySize(): number; /** * 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 */ declare const ENTRY_BY_MINT_DISCRIMINATOR: Uint8Array; declare function getEntryByMintDiscriminatorBytes(): ReadonlyUint8Array; type EntryByMint = { discriminator: ReadonlyUint8Array; /** The market this entry belongs to */ market: Address; /** The base mint */ baseMint: Address; /** The entry_id for reverse lookup */ entryId: ReadonlyUint8Array; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; type EntryByMintArgs = { /** The market this entry belongs to */ market: Address; /** The base mint */ baseMint: Address; /** The entry_id for reverse lookup */ entryId: ReadonlyUint8Array; /** Bump seed for this PDA */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link EntryByMintArgs} account data. */ declare function getEntryByMintEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link EntryByMint} account data. */ declare function getEntryByMintDecoder(): FixedSizeDecoder; /** Gets the codec for {@link EntryByMint} account data. */ declare function getEntryByMintCodec(): FixedSizeCodec; declare function decodeEntryByMint(encodedAccount: EncodedAccount): Account; declare function decodeEntryByMint(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchEntryByMint(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeEntryByMint(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllEntryByMint(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeEntryByMint(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getEntryByMintSize(): number; /** * 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 */ declare const INIT_CONFIG_DISCRIMINATOR: Uint8Array; declare function getInitConfigDiscriminatorBytes(): ReadonlyUint8Array; type InitConfig = { discriminator: ReadonlyUint8Array; admin: Address; migratorAllowlistLen: number; migratorAllowlist: Array
; hookAllowlistLen: number; hookAllowlist: Array
; bump: number; version: number; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; reserved: ReadonlyUint8Array; }; type InitConfigArgs = { admin: Address; migratorAllowlistLen: number; migratorAllowlist: Array
; hookAllowlistLen: number; hookAllowlist: Array
; bump: number; version: number; protocolFeeBps: number; minSwapFeeBps: number; maxSwapFeeBps: number; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link InitConfigArgs} account data. */ declare function getInitConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link InitConfig} account data. */ declare function getInitConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link InitConfig} account data. */ declare function getInitConfigCodec(): FixedSizeCodec; declare function decodeInitConfig(encodedAccount: EncodedAccount): Account; declare function decodeInitConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchInitConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeInitConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllInitConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeInitConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getInitConfigSize(): number; /** * 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 */ type EntryMigrated = { market: Address; oracle: Address; entryId: ReadonlyUint8Array; baseMint: Address; contribution: bigint; isWinner: boolean; }; type EntryMigratedArgs = { market: Address; oracle: Address; entryId: ReadonlyUint8Array; baseMint: Address; contribution: number | bigint; isWinner: boolean; }; declare function getEntryMigratedEncoder(): FixedSizeEncoder; declare function getEntryMigratedDecoder(): FixedSizeDecoder; declare function getEntryMigratedCodec(): FixedSizeCodec; /** * 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 */ type EntryRegistered = { market: Address; oracle: Address; entryId: ReadonlyUint8Array; baseMint: Address; }; type EntryRegisteredArgs = EntryRegistered; declare function getEntryRegisteredEncoder(): FixedSizeEncoder; declare function getEntryRegisteredDecoder(): FixedSizeDecoder; declare function getEntryRegisteredCodec(): FixedSizeCodec; /** * 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 */ type MarketCreated = { market: Address; oracle: Address; quoteMint: Address; }; type MarketCreatedArgs = MarketCreated; declare function getMarketCreatedEncoder(): FixedSizeEncoder; declare function getMarketCreatedDecoder(): FixedSizeDecoder; declare function getMarketCreatedCodec(): FixedSizeCodec; /** * 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 */ type MarketResolved = { market: Address; oracle: Address; winnerMint: Address; claimableSupply: bigint; totalPot: bigint; }; type MarketResolvedArgs = { market: Address; oracle: Address; winnerMint: Address; claimableSupply: number | bigint; totalPot: number | bigint; }; declare function getMarketResolvedEncoder(): FixedSizeEncoder; declare function getMarketResolvedDecoder(): FixedSizeDecoder; declare function getMarketResolvedCodec(): FixedSizeCodec; /** * 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 */ /** * Arguments for migrate_entry instruction. * This is decoded from migrator_migrate_payload passed by initializer. */ type MigrateEntryArgs = { entryId: ReadonlyUint8Array; }; type MigrateEntryArgsArgs = MigrateEntryArgs; declare function getMigrateEntryArgsEncoder(): FixedSizeEncoder; declare function getMigrateEntryArgsDecoder(): FixedSizeDecoder; declare function getMigrateEntryArgsCodec(): FixedSizeCodec; /** * 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 */ /** Variable-length payload buffer. */ type PayloadBuf = { len: number; bytes: ReadonlyUint8Array; }; type PayloadBufArgs = PayloadBuf; declare function getPayloadBufEncoder(): FixedSizeEncoder; declare function getPayloadBufDecoder(): FixedSizeDecoder; declare function getPayloadBufCodec(): FixedSizeCodec; /** * 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 */ type PreviewPayoutIfWinnerArgs = { candidateWinnerMint: Address; tokenAmount: bigint; }; type PreviewPayoutIfWinnerArgsArgs = { candidateWinnerMint: Address; tokenAmount: number | bigint; }; declare function getPreviewPayoutIfWinnerArgsEncoder(): FixedSizeEncoder; declare function getPreviewPayoutIfWinnerArgsDecoder(): FixedSizeDecoder; declare function getPreviewPayoutIfWinnerArgsCodec(): FixedSizeCodec; /** * 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 */ /** * Arguments for register_entry instruction. * This is decoded from migrator_init_payload passed by initializer. */ type RegisterEntryArgs = { entryId: ReadonlyUint8Array; }; type RegisterEntryArgsArgs = RegisterEntryArgs; declare function getRegisterEntryArgsEncoder(): FixedSizeEncoder; declare function getRegisterEntryArgsDecoder(): FixedSizeDecoder; declare function getRegisterEntryArgsCodec(): FixedSizeCodec; /** * 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 */ type RewardsClaimed = { market: Address; claimer: Address; burnedAmount: bigint; rewardAmount: bigint; totalBurned: bigint; }; type RewardsClaimedArgs = { market: Address; claimer: Address; burnedAmount: number | bigint; rewardAmount: number | bigint; totalBurned: number | bigint; }; declare function getRewardsClaimedEncoder(): FixedSizeEncoder; declare function getRewardsClaimedDecoder(): FixedSizeDecoder; declare function getRewardsClaimedCodec(): FixedSizeCodec; /** * 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 */ declare const LAUNCH_DISCRIMINATOR: Uint8Array; declare function getLaunchDiscriminatorBytes(): ReadonlyUint8Array; type Launch = { discriminator: ReadonlyUint8Array; authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: bigint; baseForDistribution: bigint; baseForLiquidity: bigint; baseForCurve: bigint; curveVirtualBase: bigint; curveVirtualQuote: bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBuf; migratorProgram: Address; migratorInitPayload: PayloadBuf; migratorMigratePayload: PayloadBuf; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBuf; createdAt: bigint; reserved: ReadonlyUint8Array; }; type LaunchArgs = { authority: Address; namespace: Address; launchId: ReadonlyUint8Array; phase: number; bump: number; launchAuthorityBump: number; pad0: ReadonlyUint8Array; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; baseTotalSupply: number | bigint; baseForDistribution: number | bigint; baseForLiquidity: number | bigint; baseForCurve: number | bigint; curveVirtualBase: number | bigint; curveVirtualQuote: number | bigint; swapFeeBps: number; pad1: ReadonlyUint8Array; allowBuy: number; allowSell: number; pad2: ReadonlyUint8Array; hookProgram: Address; hookFlags: number; pad3: ReadonlyUint8Array; hookPayload: PayloadBufArgs; migratorProgram: Address; migratorInitPayload: PayloadBufArgs; migratorMigratePayload: PayloadBufArgs; curveKind: number; swapLock: number; vestingEnabled: number; pad4: ReadonlyUint8Array; curveParams: PayloadBufArgs; createdAt: number | bigint; reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link LaunchArgs} account data. */ declare function getLaunchEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Launch} account data. */ declare function getLaunchDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Launch} account data. */ declare function getLaunchCodec(): FixedSizeCodec; declare function decodeLaunch(encodedAccount: EncodedAccount): Account; declare function decodeLaunch(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchLaunch(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeLaunch(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllLaunch(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeLaunch(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getLaunchSize(): number; /** * 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 */ declare const MARKET_DISCRIMINATOR: Uint8Array; declare function getMarketDiscriminatorBytes(): ReadonlyUint8Array; type Market = { discriminator: ReadonlyUint8Array; /** The oracle that determines the winner */ oracle: Address; /** Quote mint for this market (e.g., USDC) */ quoteMint: Address; /** The pot vault holding quote tokens */ potVault: Address; /** Total quote migrated into pot (cumulative) */ totalPot: bigint; /** Total quote claimed/paid out (cumulative) */ totalClaimed: bigint; /** Winner mint (set when market resolves) */ winnerMint: Address; /** Claimable supply of winner token (fixed after winning entry migrates) */ claimableSupply: bigint; /** Whether the market has been resolved (winner determined) */ isResolved: boolean; /** Bump seed for this PDA */ bump: number; /** Bump seed for market authority PDA */ marketAuthorityBump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; type MarketArgs = { /** The oracle that determines the winner */ oracle: Address; /** Quote mint for this market (e.g., USDC) */ quoteMint: Address; /** The pot vault holding quote tokens */ potVault: Address; /** Total quote migrated into pot (cumulative) */ totalPot: number | bigint; /** Total quote claimed/paid out (cumulative) */ totalClaimed: number | bigint; /** Winner mint (set when market resolves) */ winnerMint: Address; /** Claimable supply of winner token (fixed after winning entry migrates) */ claimableSupply: number | bigint; /** Whether the market has been resolved (winner determined) */ isResolved: boolean; /** Bump seed for this PDA */ bump: number; /** Bump seed for market authority PDA */ marketAuthorityBump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link MarketArgs} account data. */ declare function getMarketEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Market} account data. */ declare function getMarketDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Market} account data. */ declare function getMarketCodec(): FixedSizeCodec; declare function decodeMarket(encodedAccount: EncodedAccount): Account; declare function decodeMarket(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchMarket(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeMarket(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllMarket(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeMarket(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getMarketSize(): number; /** * 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 */ declare const ORACLE_STATE_DISCRIMINATOR$1: Uint8Array; declare function getOracleStateDiscriminatorBytes$1(): ReadonlyUint8Array; type OracleState$1 = { discriminator: ReadonlyUint8Array; /** The authority that can finalize this oracle. */ oracleAuthority: Address; /** Optional quote mint for validation (Pubkey::default() if not used). */ quoteMint: Address; /** Whether the oracle has been finalized with a winner. */ isFinalized: boolean; /** The winning mint (only valid if is_finalized == true). */ winningMint: Address; /** Nonce used in PDA derivation. */ nonce: bigint; /** PDA bump seed. */ bump: number; /** Reserved for future use. */ reserved: ReadonlyUint8Array; }; type OracleStateArgs$1 = { /** The authority that can finalize this oracle. */ oracleAuthority: Address; /** Optional quote mint for validation (Pubkey::default() if not used). */ quoteMint: Address; /** Whether the oracle has been finalized with a winner. */ isFinalized: boolean; /** The winning mint (only valid if is_finalized == true). */ winningMint: Address; /** Nonce used in PDA derivation. */ nonce: number | bigint; /** PDA bump seed. */ bump: number; /** Reserved for future use. */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link OracleStateArgs} account data. */ declare function getOracleStateEncoder$1(): FixedSizeEncoder; /** Gets the decoder for {@link OracleState} account data. */ declare function getOracleStateDecoder$1(): FixedSizeDecoder; /** Gets the codec for {@link OracleState} account data. */ declare function getOracleStateCodec$1(): FixedSizeCodec; declare function decodeOracleState$1(encodedAccount: EncodedAccount): Account; declare function decodeOracleState$1(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchOracleState$1(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeOracleState$1(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllOracleState$1(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeOracleState$1(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getOracleStateSize$1(): number; /** * 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 */ /** Unauthorized: Unauthorized */ declare const PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED = 6000; /** QuoteMintMismatch: Quote mint mismatch */ declare const PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH = 6001; /** EntryAlreadyMigrated: Entry already migrated */ declare const PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED = 6004; /** OracleNotFinalized: Oracle not finalized */ declare const PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED = 6006; /** MarketNotResolved: Market not resolved */ declare const PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED = 6007; /** InvalidWinnerMint: Invalid winner mint */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT = 6008; /** InsufficientBalance: Insufficient balance */ declare const PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE = 6009; /** MathOverflow: Math overflow */ declare const PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW = 6010; /** InvalidEntryId: Invalid entry ID */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID = 6011; /** InvalidMarket: Invalid market */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_MARKET = 6012; /** InvalidVault: Invalid vault */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_VAULT = 6013; /** InvalidMint: Invalid mint */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_MINT = 6014; /** WinningEntryNotMigrated: Winning entry not migrated */ declare const PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED = 6015; /** InvalidOracle: Invalid oracle */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE = 6017; /** ZeroClaimableSupply: Zero claimable supply */ declare const PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY = 6018; /** InvalidInput: Invalid input */ declare const PREDICTION_MIGRATOR_ERROR__INVALID_INPUT = 6019; /** NoPendingRewards: No pending rewards */ declare const PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS = 6020; /** ClaimableSupplyAlreadySet: Claimable supply already set */ declare const PREDICTION_MIGRATOR_ERROR__CLAIMABLE_SUPPLY_ALREADY_SET = 6021; type PredictionMigratorError = typeof PREDICTION_MIGRATOR_ERROR__CLAIMABLE_SUPPLY_ALREADY_SET | typeof PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED | typeof PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE | typeof PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID | typeof PREDICTION_MIGRATOR_ERROR__INVALID_INPUT | typeof PREDICTION_MIGRATOR_ERROR__INVALID_MARKET | typeof PREDICTION_MIGRATOR_ERROR__INVALID_MINT | typeof PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE | typeof PREDICTION_MIGRATOR_ERROR__INVALID_VAULT | typeof PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT | typeof PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED | typeof PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW | typeof PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS | typeof PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED | typeof PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH | typeof PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED | typeof PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED | typeof PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY; declare function getPredictionMigratorErrorMessage(code: PredictionMigratorError): string; declare function isPredictionMigratorError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * 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 */ declare const PREDICTION_MIGRATOR_PROGRAM_ADDRESS: Address<"HYHdyy7QZg8Ucky9Z97xNtSCvrZxVNkeoney8xEPXjiZ">; declare enum PredictionMigratorAccount { ClaimReceipt = 0, Entry = 1, EntryByMint = 2, InitConfig = 3, Launch = 4, Market = 5, OracleState = 6 } declare function identifyPredictionMigratorAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PredictionMigratorAccount; declare enum PredictionMigratorInstruction { Claim = 0, MigrateEntry = 1, PreviewPayoutIfWinner = 2, RegisterEntry = 3 } declare function identifyPredictionMigratorInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PredictionMigratorInstruction; type ParsedPredictionMigratorInstruction = ({ instructionType: PredictionMigratorInstruction.Claim; } & ParsedClaimInstruction) | ({ instructionType: PredictionMigratorInstruction.MigrateEntry; } & ParsedMigrateEntryInstruction) | ({ instructionType: PredictionMigratorInstruction.PreviewPayoutIfWinner; } & ParsedPreviewPayoutIfWinnerInstruction) | ({ instructionType: PredictionMigratorInstruction.RegisterEntry; } & ParsedRegisterEntryInstruction); declare function parsePredictionMigratorInstruction(instruction: Instruction & InstructionWithData): ParsedPredictionMigratorInstruction; type PredictionMigratorPlugin = { accounts: PredictionMigratorPluginAccounts; instructions: PredictionMigratorPluginInstructions; }; type PredictionMigratorPluginAccounts = { claimReceipt: ReturnType & SelfFetchFunctions; entry: ReturnType & SelfFetchFunctions; entryByMint: ReturnType & SelfFetchFunctions; initConfig: ReturnType & SelfFetchFunctions; launch: ReturnType & SelfFetchFunctions; market: ReturnType & SelfFetchFunctions; oracleState: ReturnType & SelfFetchFunctions; }; type PredictionMigratorPluginInstructions = { claim: (input: MakeOptional) => ReturnType & SelfPlanAndSendFunctions; migrateEntry: (input: MakeOptional) => ReturnType & SelfPlanAndSendFunctions; previewPayoutIfWinner: (input: PreviewPayoutIfWinnerInput) => ReturnType & SelfPlanAndSendFunctions; registerEntry: (input: MakeOptional) => ReturnType & SelfPlanAndSendFunctions; }; type PredictionMigratorPluginRequirements = ClientWithRpc & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending; declare function predictionMigratorProgram(): (client: T) => T & { predictionMigrator: PredictionMigratorPlugin; }; type MakeOptional = Omit & Partial>; /** * 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 */ declare const CLAIM_DISCRIMINATOR: Uint8Array; declare function getClaimDiscriminatorBytes(): ReadonlyUint8Array; type ClaimInstruction = string, TAccountMarketAuthority extends string | AccountMeta = string, TAccountPotVault extends string | AccountMeta = string, TAccountWinnerMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountEntryByMint extends string | AccountMeta = string, TAccountClaimerWinnerAta extends string | AccountMeta = string, TAccountClaimerQuoteAta extends string | AccountMeta = string, TAccountClaimer extends string | AccountMeta = string, TAccountReceipt extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountMarketAuthority extends string ? ReadonlyAccount : TAccountMarketAuthority, TAccountPotVault extends string ? WritableAccount : TAccountPotVault, TAccountWinnerMint extends string ? WritableAccount : TAccountWinnerMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountEntryByMint extends string ? ReadonlyAccount : TAccountEntryByMint, TAccountClaimerWinnerAta extends string ? WritableAccount : TAccountClaimerWinnerAta, TAccountClaimerQuoteAta extends string ? WritableAccount : TAccountClaimerQuoteAta, TAccountClaimer extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountClaimer, TAccountReceipt extends string ? WritableAccount : TAccountReceipt, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type ClaimInstructionData = { discriminator: ReadonlyUint8Array; burnAmount: bigint; }; type ClaimInstructionDataArgs = { burnAmount: number | bigint; }; declare function getClaimInstructionDataEncoder(): FixedSizeEncoder; declare function getClaimInstructionDataDecoder(): FixedSizeDecoder; declare function getClaimInstructionDataCodec(): FixedSizeCodec; type ClaimAsyncInput = { /** Market PDA */ market: Address; marketAuthority?: Address; /** Pot vault holding quote tokens */ potVault: Address; /** Winner mint (must match market.winner_mint) */ winnerMint: Address; /** Quote mint used for reward payouts */ quoteMint: Address; /** EntryByMint for validation that this mint belongs to this market */ entryByMint?: Address; /** Claimer's winner token account (source for burn) */ claimerWinnerAta: Address; /** Claimer's quote token account (destination for rewards) */ claimerQuoteAta: Address; /** Claimer wallet (signer) */ claimer: TransactionSigner; /** Claim receipt PDA (created if first claim) */ receipt?: Address; /** Payer for receipt creation (can be same as claimer) */ payer: TransactionSigner; baseTokenProgram: Address; quoteTokenProgram: Address; systemProgram?: Address; burnAmount: ClaimInstructionDataArgs['burnAmount']; }; declare function getClaimInstructionAsync(input: ClaimAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type ClaimInput = { /** Market PDA */ market: Address; marketAuthority: Address; /** Pot vault holding quote tokens */ potVault: Address; /** Winner mint (must match market.winner_mint) */ winnerMint: Address; /** Quote mint used for reward payouts */ quoteMint: Address; /** EntryByMint for validation that this mint belongs to this market */ entryByMint: Address; /** Claimer's winner token account (source for burn) */ claimerWinnerAta: Address; /** Claimer's quote token account (destination for rewards) */ claimerQuoteAta: Address; /** Claimer wallet (signer) */ claimer: TransactionSigner; /** Claim receipt PDA (created if first claim) */ receipt: Address; /** Payer for receipt creation (can be same as claimer) */ payer: TransactionSigner; baseTokenProgram: Address; quoteTokenProgram: Address; systemProgram?: Address; burnAmount: ClaimInstructionDataArgs['burnAmount']; }; declare function getClaimInstruction(input: ClaimInput, config?: { programAddress?: TProgramAddress; }): ClaimInstruction; type ParsedClaimInstruction = { programAddress: Address; accounts: { /** Market PDA */ market: TAccountMetas[0]; marketAuthority: TAccountMetas[1]; /** Pot vault holding quote tokens */ potVault: TAccountMetas[2]; /** Winner mint (must match market.winner_mint) */ winnerMint: TAccountMetas[3]; /** Quote mint used for reward payouts */ quoteMint: TAccountMetas[4]; /** EntryByMint for validation that this mint belongs to this market */ entryByMint: TAccountMetas[5]; /** Claimer's winner token account (source for burn) */ claimerWinnerAta: TAccountMetas[6]; /** Claimer's quote token account (destination for rewards) */ claimerQuoteAta: TAccountMetas[7]; /** Claimer wallet (signer) */ claimer: TAccountMetas[8]; /** Claim receipt PDA (created if first claim) */ receipt: TAccountMetas[9]; /** Payer for receipt creation (can be same as claimer) */ payer: TAccountMetas[10]; baseTokenProgram: TAccountMetas[11]; quoteTokenProgram: TAccountMetas[12]; systemProgram: TAccountMetas[13]; }; data: ClaimInstructionData; }; declare function parseClaimInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClaimInstruction; /** * 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 */ declare const MIGRATE_ENTRY_DISCRIMINATOR: Uint8Array; declare function getMigrateEntryDiscriminatorBytes(): ReadonlyUint8Array; type MigrateEntryInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta = string, TAccountMarket extends string | AccountMeta = string, TAccountPotVault extends string | AccountMeta = string, TAccountMarketAuthority extends string | AccountMeta = string, TAccountEntry extends string | AccountMeta = string, TAccountEntryByMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountInitializerConfig extends string ? ReadonlyAccount : TAccountInitializerConfig, TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountLaunchAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountLaunchAuthority, TAccountBaseMint extends string ? WritableAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount : TAccountQuoteVault, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountOracle extends string ? ReadonlyAccount : TAccountOracle, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountPotVault extends string ? WritableAccount : TAccountPotVault, TAccountMarketAuthority extends string ? ReadonlyAccount : TAccountMarketAuthority, TAccountEntry extends string ? WritableAccount : TAccountEntry, TAccountEntryByMint extends string ? ReadonlyAccount : TAccountEntryByMint, ...TRemainingAccounts ]>; type MigrateEntryInstructionData = { discriminator: ReadonlyUint8Array; entryId: ReadonlyUint8Array; }; type MigrateEntryInstructionDataArgs = { entryId: ReadonlyUint8Array; }; declare function getMigrateEntryInstructionDataEncoder(): FixedSizeEncoder; declare function getMigrateEntryInstructionDataDecoder(): FixedSizeDecoder; declare function getMigrateEntryInstructionDataCodec(): FixedSizeCodec; type MigrateEntryAsyncInput = { /** Standard initializer module-call prefix account. */ initializerConfig: Address; /** Launch account from initializer */ launch: Address; /** Launch authority PDA - signed by initializer */ launchAuthority: TransactionSigner; /** Base mint for this entry (will burn unsold) */ baseMint: Address; /** Quote mint for this market */ quoteMint: Address; /** Base vault from launch (source for burn) */ baseVault: Address; /** Quote vault from launch (source for transfer) */ quoteVault: Address; payer: TransactionSigner; baseTokenProgram: Address; quoteTokenProgram: Address; systemProgram?: Address; rent?: Address; /** * The oracle that determines the winner. * Anchor enforces owner + discriminator (trusted_oracle_interface). */ oracle: Address; /** Market PDA */ market?: Address; /** Pot vault for holding quote tokens */ potVault: Address; /** Market authority PDA used as the pot vault owner. */ marketAuthority?: Address; /** Entry PDA */ entry: Address; /** EntryByMint PDA (for validation) */ entryByMint?: Address; entryId: MigrateEntryInstructionDataArgs['entryId']; }; declare function getMigrateEntryInstructionAsync(input: MigrateEntryAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type MigrateEntryInput = { /** Standard initializer module-call prefix account. */ initializerConfig: Address; /** Launch account from initializer */ launch: Address; /** Launch authority PDA - signed by initializer */ launchAuthority: TransactionSigner; /** Base mint for this entry (will burn unsold) */ baseMint: Address; /** Quote mint for this market */ quoteMint: Address; /** Base vault from launch (source for burn) */ baseVault: Address; /** Quote vault from launch (source for transfer) */ quoteVault: Address; payer: TransactionSigner; baseTokenProgram: Address; quoteTokenProgram: Address; systemProgram?: Address; rent?: Address; /** * The oracle that determines the winner. * Anchor enforces owner + discriminator (trusted_oracle_interface). */ oracle: Address; /** Market PDA */ market: Address; /** Pot vault for holding quote tokens */ potVault: Address; /** Market authority PDA used as the pot vault owner. */ marketAuthority: Address; /** Entry PDA */ entry: Address; /** EntryByMint PDA (for validation) */ entryByMint: Address; entryId: MigrateEntryInstructionDataArgs['entryId']; }; declare function getMigrateEntryInstruction(input: MigrateEntryInput, config?: { programAddress?: TProgramAddress; }): MigrateEntryInstruction; type ParsedMigrateEntryInstruction = { programAddress: Address; accounts: { /** Standard initializer module-call prefix account. */ initializerConfig: TAccountMetas[0]; /** Launch account from initializer */ launch: TAccountMetas[1]; /** Launch authority PDA - signed by initializer */ launchAuthority: TAccountMetas[2]; /** Base mint for this entry (will burn unsold) */ baseMint: TAccountMetas[3]; /** Quote mint for this market */ quoteMint: TAccountMetas[4]; /** Base vault from launch (source for burn) */ baseVault: TAccountMetas[5]; /** Quote vault from launch (source for transfer) */ quoteVault: TAccountMetas[6]; payer: TAccountMetas[7]; baseTokenProgram: TAccountMetas[8]; quoteTokenProgram: TAccountMetas[9]; systemProgram: TAccountMetas[10]; rent: TAccountMetas[11]; /** * The oracle that determines the winner. * Anchor enforces owner + discriminator (trusted_oracle_interface). */ oracle: TAccountMetas[12]; /** Market PDA */ market: TAccountMetas[13]; /** Pot vault for holding quote tokens */ potVault: TAccountMetas[14]; /** Market authority PDA used as the pot vault owner. */ marketAuthority: TAccountMetas[15]; /** Entry PDA */ entry: TAccountMetas[16]; /** EntryByMint PDA (for validation) */ entryByMint: TAccountMetas[17]; }; data: MigrateEntryInstructionData; }; declare function parseMigrateEntryInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedMigrateEntryInstruction; /** * 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 */ declare const PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR: Uint8Array; declare function getPreviewPayoutIfWinnerDiscriminatorBytes(): ReadonlyUint8Array; type PreviewPayoutIfWinnerInstruction = string, TAccountCandidateMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMarket extends string ? ReadonlyAccount : TAccountMarket, TAccountCandidateMint extends string ? ReadonlyAccount : TAccountCandidateMint, ...TRemainingAccounts ]>; type PreviewPayoutIfWinnerInstructionData = { discriminator: ReadonlyUint8Array; candidateWinnerMint: Address; tokenAmount: bigint; }; type PreviewPayoutIfWinnerInstructionDataArgs = { candidateWinnerMint: Address; tokenAmount: number | bigint; }; declare function getPreviewPayoutIfWinnerInstructionDataEncoder(): FixedSizeEncoder; declare function getPreviewPayoutIfWinnerInstructionDataDecoder(): FixedSizeDecoder; declare function getPreviewPayoutIfWinnerInstructionDataCodec(): FixedSizeCodec; type PreviewPayoutIfWinnerInput = { /** Market PDA */ market: Address; /** Candidate winner mint (may or may not match oracle winner) */ candidateMint: Address; candidateWinnerMint: PreviewPayoutIfWinnerInstructionDataArgs['candidateWinnerMint']; tokenAmount: PreviewPayoutIfWinnerInstructionDataArgs['tokenAmount']; }; declare function getPreviewPayoutIfWinnerInstruction(input: PreviewPayoutIfWinnerInput, config?: { programAddress?: TProgramAddress; }): PreviewPayoutIfWinnerInstruction; type ParsedPreviewPayoutIfWinnerInstruction = { programAddress: Address; accounts: { /** Market PDA */ market: TAccountMetas[0]; /** Candidate winner mint (may or may not match oracle winner) */ candidateMint: TAccountMetas[1]; }; data: PreviewPayoutIfWinnerInstructionData; }; declare function parsePreviewPayoutIfWinnerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPreviewPayoutIfWinnerInstruction; /** * 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 */ declare const REGISTER_ENTRY_DISCRIMINATOR: Uint8Array; declare function getRegisterEntryDiscriminatorBytes(): ReadonlyUint8Array; type RegisterEntryInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta = string, TAccountMarket extends string | AccountMeta = string, TAccountPotVault extends string | AccountMeta = string, TAccountMarketAuthority extends string | AccountMeta = string, TAccountEntry extends string | AccountMeta = string, TAccountEntryByMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountInitializerConfig extends string ? ReadonlyAccount : TAccountInitializerConfig, TAccountLaunch extends string ? ReadonlyAccount : TAccountLaunch, TAccountLaunchAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountLaunchAuthority, TAccountBaseMint extends string ? ReadonlyAccount : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount : TAccountQuoteMint, TAccountBaseVault extends string ? ReadonlyAccount : TAccountBaseVault, TAccountQuoteVault extends string ? ReadonlyAccount : TAccountQuoteVault, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBaseTokenProgram extends string ? ReadonlyAccount : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount : TAccountQuoteTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountOracle extends string ? ReadonlyAccount : TAccountOracle, TAccountMarket extends string ? WritableAccount : TAccountMarket, TAccountPotVault extends string ? WritableAccount : TAccountPotVault, TAccountMarketAuthority extends string ? ReadonlyAccount : TAccountMarketAuthority, TAccountEntry extends string ? WritableAccount : TAccountEntry, TAccountEntryByMint extends string ? WritableAccount : TAccountEntryByMint, ...TRemainingAccounts ]>; type RegisterEntryInstructionData = { discriminator: ReadonlyUint8Array; entryId: ReadonlyUint8Array; }; type RegisterEntryInstructionDataArgs = { entryId: ReadonlyUint8Array; }; declare function getRegisterEntryInstructionDataEncoder(): FixedSizeEncoder; declare function getRegisterEntryInstructionDataDecoder(): FixedSizeDecoder; declare function getRegisterEntryInstructionDataCodec(): FixedSizeCodec; type RegisterEntryAsyncInput = { initializerConfig: Address; /** Launch account from initializer */ launch: Address; /** Launch authority PDA - signed by initializer */ launchAuthority: TransactionSigner; /** Base mint for this entry */ baseMint: Address; /** Quote mint for this market */ quoteMint: Address; /** Base vault from launch */ baseVault: Address; /** Quote vault from launch */ quoteVault: Address; payer: TransactionSigner; baseTokenProgram: Address; quoteTokenProgram: Address; systemProgram?: Address; rent?: Address; /** The oracle that this market is tied to */ oracle: Address; /** Market PDA - created if first entry */ market?: Address; /** Pot vault for holding quote tokens */ potVault?: Address; marketAuthority?: Address; /** Entry PDA for this entry */ entry: Address; /** EntryByMint PDA for reverse lookup */ entryByMint?: Address; entryId: RegisterEntryInstructionDataArgs['entryId']; }; declare function getRegisterEntryInstructionAsync(input: RegisterEntryAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type RegisterEntryInput = { initializerConfig: Address; /** Launch account from initializer */ launch: Address; /** Launch authority PDA - signed by initializer */ launchAuthority: TransactionSigner; /** Base mint for this entry */ baseMint: Address; /** Quote mint for this market */ quoteMint: Address; /** Base vault from launch */ baseVault: Address; /** Quote vault from launch */ quoteVault: Address; payer: TransactionSigner; baseTokenProgram: Address; quoteTokenProgram: Address; systemProgram?: Address; rent?: Address; /** The oracle that this market is tied to */ oracle: Address; /** Market PDA - created if first entry */ market: Address; /** Pot vault for holding quote tokens */ potVault: Address; marketAuthority: Address; /** Entry PDA for this entry */ entry: Address; /** EntryByMint PDA for reverse lookup */ entryByMint: Address; entryId: RegisterEntryInstructionDataArgs['entryId']; }; declare function getRegisterEntryInstruction(input: RegisterEntryInput, config?: { programAddress?: TProgramAddress; }): RegisterEntryInstruction; type ParsedRegisterEntryInstruction = { programAddress: Address; accounts: { initializerConfig: TAccountMetas[0]; /** Launch account from initializer */ launch: TAccountMetas[1]; /** Launch authority PDA - signed by initializer */ launchAuthority: TAccountMetas[2]; /** Base mint for this entry */ baseMint: TAccountMetas[3]; /** Quote mint for this market */ quoteMint: TAccountMetas[4]; /** Base vault from launch */ baseVault: TAccountMetas[5]; /** Quote vault from launch */ quoteVault: TAccountMetas[6]; payer: TAccountMetas[7]; baseTokenProgram: TAccountMetas[8]; quoteTokenProgram: TAccountMetas[9]; systemProgram: TAccountMetas[10]; rent: TAccountMetas[11]; /** The oracle that this market is tied to */ oracle: TAccountMetas[12]; /** Market PDA - created if first entry */ market: TAccountMetas[13]; /** Pot vault for holding quote tokens */ potVault: TAccountMetas[14]; marketAuthority: TAccountMetas[15]; /** Entry PDA for this entry */ entry: TAccountMetas[16]; /** EntryByMint PDA for reverse lookup */ entryByMint: TAccountMetas[17]; }; data: RegisterEntryInstructionData; }; declare function parseRegisterEntryInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRegisterEntryInstruction; declare function getPredictionMarketAddress(oracleState: Address, quoteMint: Address, programId?: Address): Promise; declare function getPredictionMarketAuthorityAddress(market: Address, programId?: Address): Promise; declare function getPredictionPotVaultAddress(market: Address, programId?: Address): Promise; declare function getPredictionEntryAddress(market: Address, entryId: ReadonlyUint8Array | Uint8Array, programId?: Address): Promise; declare function getPredictionEntryByMintAddress(market: Address, mint: Address, programId?: Address): Promise; declare const index$1_CLAIM_DISCRIMINATOR: typeof CLAIM_DISCRIMINATOR; declare const index$1_CLAIM_RECEIPT_DISCRIMINATOR: typeof CLAIM_RECEIPT_DISCRIMINATOR; type index$1_ClaimAsyncInput = ClaimAsyncInput; type index$1_ClaimInput = ClaimInput; type index$1_ClaimInstruction = string, TAccountMarketAuthority extends string | AccountMeta = string, TAccountPotVault extends string | AccountMeta = string, TAccountWinnerMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountEntryByMint extends string | AccountMeta = string, TAccountClaimerWinnerAta extends string | AccountMeta = string, TAccountClaimerQuoteAta extends string | AccountMeta = string, TAccountClaimer extends string | AccountMeta = string, TAccountReceipt extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = ClaimInstruction; type index$1_ClaimInstructionData = ClaimInstructionData; type index$1_ClaimInstructionDataArgs = ClaimInstructionDataArgs; type index$1_ClaimReceipt = ClaimReceipt; type index$1_ClaimReceiptArgs = ClaimReceiptArgs; declare const index$1_ENTRY_BY_MINT_DISCRIMINATOR: typeof ENTRY_BY_MINT_DISCRIMINATOR; declare const index$1_ENTRY_DISCRIMINATOR: typeof ENTRY_DISCRIMINATOR; type index$1_Entry = Entry; type index$1_EntryArgs = EntryArgs; type index$1_EntryByMint = EntryByMint; type index$1_EntryByMintArgs = EntryByMintArgs; type index$1_EntryMigrated = EntryMigrated; type index$1_EntryMigratedArgs = EntryMigratedArgs; type index$1_EntryRegistered = EntryRegistered; type index$1_EntryRegisteredArgs = EntryRegisteredArgs; declare const index$1_INIT_CONFIG_DISCRIMINATOR: typeof INIT_CONFIG_DISCRIMINATOR; type index$1_InitConfig = InitConfig; type index$1_InitConfigArgs = InitConfigArgs; declare const index$1_LAUNCH_DISCRIMINATOR: typeof LAUNCH_DISCRIMINATOR; type index$1_Launch = Launch; type index$1_LaunchArgs = LaunchArgs; declare const index$1_MARKET_DISCRIMINATOR: typeof MARKET_DISCRIMINATOR; declare const index$1_MIGRATE_ENTRY_DISCRIMINATOR: typeof MIGRATE_ENTRY_DISCRIMINATOR; type index$1_Market = Market; type index$1_MarketArgs = MarketArgs; type index$1_MarketCreated = MarketCreated; type index$1_MarketCreatedArgs = MarketCreatedArgs; type index$1_MarketResolved = MarketResolved; type index$1_MarketResolvedArgs = MarketResolvedArgs; type index$1_MigrateEntryArgs = MigrateEntryArgs; type index$1_MigrateEntryArgsArgs = MigrateEntryArgsArgs; type index$1_MigrateEntryAsyncInput = MigrateEntryAsyncInput; type index$1_MigrateEntryInput = MigrateEntryInput; type index$1_MigrateEntryInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta = string, TAccountMarket extends string | AccountMeta = string, TAccountPotVault extends string | AccountMeta = string, TAccountMarketAuthority extends string | AccountMeta = string, TAccountEntry extends string | AccountMeta = string, TAccountEntryByMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = MigrateEntryInstruction; type index$1_MigrateEntryInstructionData = MigrateEntryInstructionData; type index$1_MigrateEntryInstructionDataArgs = MigrateEntryInstructionDataArgs; declare const index$1_PREDICTION_MIGRATOR_ERROR__CLAIMABLE_SUPPLY_ALREADY_SET: typeof PREDICTION_MIGRATOR_ERROR__CLAIMABLE_SUPPLY_ALREADY_SET; declare const index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED: typeof PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED; declare const index$1_PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE: typeof PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID: typeof PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_INPUT: typeof PREDICTION_MIGRATOR_ERROR__INVALID_INPUT; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MARKET: typeof PREDICTION_MIGRATOR_ERROR__INVALID_MARKET; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MINT: typeof PREDICTION_MIGRATOR_ERROR__INVALID_MINT; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE: typeof PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_VAULT: typeof PREDICTION_MIGRATOR_ERROR__INVALID_VAULT; declare const index$1_PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT: typeof PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT; declare const index$1_PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED: typeof PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED; declare const index$1_PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW: typeof PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW; declare const index$1_PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS: typeof PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS; declare const index$1_PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED: typeof PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED; declare const index$1_PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH: typeof PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH; declare const index$1_PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED: typeof PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED; declare const index$1_PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED: typeof PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED; declare const index$1_PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY: typeof PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY; declare const index$1_PREDICTION_MIGRATOR_PROGRAM_ADDRESS: typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS; declare const index$1_PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR: typeof PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR; type index$1_ParsedClaimInstruction = ParsedClaimInstruction; type index$1_ParsedMigrateEntryInstruction = ParsedMigrateEntryInstruction; type index$1_ParsedPredictionMigratorInstruction = ParsedPredictionMigratorInstruction; type index$1_ParsedPreviewPayoutIfWinnerInstruction = ParsedPreviewPayoutIfWinnerInstruction; type index$1_ParsedRegisterEntryInstruction = ParsedRegisterEntryInstruction; type index$1_PayloadBuf = PayloadBuf; type index$1_PayloadBufArgs = PayloadBufArgs; type index$1_PredictionMigratorAccount = PredictionMigratorAccount; declare const index$1_PredictionMigratorAccount: typeof PredictionMigratorAccount; type index$1_PredictionMigratorError = PredictionMigratorError; type index$1_PredictionMigratorInstruction = PredictionMigratorInstruction; declare const index$1_PredictionMigratorInstruction: typeof PredictionMigratorInstruction; type index$1_PredictionMigratorPlugin = PredictionMigratorPlugin; type index$1_PredictionMigratorPluginAccounts = PredictionMigratorPluginAccounts; type index$1_PredictionMigratorPluginInstructions = PredictionMigratorPluginInstructions; type index$1_PredictionMigratorPluginRequirements = PredictionMigratorPluginRequirements; type index$1_PreviewPayoutIfWinnerArgs = PreviewPayoutIfWinnerArgs; type index$1_PreviewPayoutIfWinnerArgsArgs = PreviewPayoutIfWinnerArgsArgs; type index$1_PreviewPayoutIfWinnerInput = PreviewPayoutIfWinnerInput; type index$1_PreviewPayoutIfWinnerInstruction = string, TAccountCandidateMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = PreviewPayoutIfWinnerInstruction; type index$1_PreviewPayoutIfWinnerInstructionData = PreviewPayoutIfWinnerInstructionData; type index$1_PreviewPayoutIfWinnerInstructionDataArgs = PreviewPayoutIfWinnerInstructionDataArgs; declare const index$1_REGISTER_ENTRY_DISCRIMINATOR: typeof REGISTER_ENTRY_DISCRIMINATOR; type index$1_RegisterEntryArgs = RegisterEntryArgs; type index$1_RegisterEntryArgsArgs = RegisterEntryArgsArgs; type index$1_RegisterEntryAsyncInput = RegisterEntryAsyncInput; type index$1_RegisterEntryInput = RegisterEntryInput; type index$1_RegisterEntryInstruction = string, TAccountLaunch extends string | AccountMeta = string, TAccountLaunchAuthority extends string | AccountMeta = string, TAccountBaseMint extends string | AccountMeta = string, TAccountQuoteMint extends string | AccountMeta = string, TAccountBaseVault extends string | AccountMeta = string, TAccountQuoteVault extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountBaseTokenProgram extends string | AccountMeta = string, TAccountQuoteTokenProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta = string, TAccountMarket extends string | AccountMeta = string, TAccountPotVault extends string | AccountMeta = string, TAccountMarketAuthority extends string | AccountMeta = string, TAccountEntry extends string | AccountMeta = string, TAccountEntryByMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = RegisterEntryInstruction; type index$1_RegisterEntryInstructionData = RegisterEntryInstructionData; type index$1_RegisterEntryInstructionDataArgs = RegisterEntryInstructionDataArgs; type index$1_RewardsClaimed = RewardsClaimed; type index$1_RewardsClaimedArgs = RewardsClaimedArgs; declare const index$1_decodeClaimReceipt: typeof decodeClaimReceipt; declare const index$1_decodeEntry: typeof decodeEntry; declare const index$1_decodeEntryByMint: typeof decodeEntryByMint; declare const index$1_decodeInitConfig: typeof decodeInitConfig; declare const index$1_decodeLaunch: typeof decodeLaunch; declare const index$1_decodeMarket: typeof decodeMarket; declare const index$1_fetchAllClaimReceipt: typeof fetchAllClaimReceipt; declare const index$1_fetchAllEntry: typeof fetchAllEntry; declare const index$1_fetchAllEntryByMint: typeof fetchAllEntryByMint; declare const index$1_fetchAllInitConfig: typeof fetchAllInitConfig; declare const index$1_fetchAllLaunch: typeof fetchAllLaunch; declare const index$1_fetchAllMarket: typeof fetchAllMarket; declare const index$1_fetchAllMaybeClaimReceipt: typeof fetchAllMaybeClaimReceipt; declare const index$1_fetchAllMaybeEntry: typeof fetchAllMaybeEntry; declare const index$1_fetchAllMaybeEntryByMint: typeof fetchAllMaybeEntryByMint; declare const index$1_fetchAllMaybeInitConfig: typeof fetchAllMaybeInitConfig; declare const index$1_fetchAllMaybeLaunch: typeof fetchAllMaybeLaunch; declare const index$1_fetchAllMaybeMarket: typeof fetchAllMaybeMarket; declare const index$1_fetchClaimReceipt: typeof fetchClaimReceipt; declare const index$1_fetchEntry: typeof fetchEntry; declare const index$1_fetchEntryByMint: typeof fetchEntryByMint; declare const index$1_fetchInitConfig: typeof fetchInitConfig; declare const index$1_fetchLaunch: typeof fetchLaunch; declare const index$1_fetchMarket: typeof fetchMarket; declare const index$1_fetchMaybeClaimReceipt: typeof fetchMaybeClaimReceipt; declare const index$1_fetchMaybeEntry: typeof fetchMaybeEntry; declare const index$1_fetchMaybeEntryByMint: typeof fetchMaybeEntryByMint; declare const index$1_fetchMaybeInitConfig: typeof fetchMaybeInitConfig; declare const index$1_fetchMaybeLaunch: typeof fetchMaybeLaunch; declare const index$1_fetchMaybeMarket: typeof fetchMaybeMarket; declare const index$1_getClaimDiscriminatorBytes: typeof getClaimDiscriminatorBytes; declare const index$1_getClaimInstruction: typeof getClaimInstruction; declare const index$1_getClaimInstructionAsync: typeof getClaimInstructionAsync; declare const index$1_getClaimInstructionDataCodec: typeof getClaimInstructionDataCodec; declare const index$1_getClaimInstructionDataDecoder: typeof getClaimInstructionDataDecoder; declare const index$1_getClaimInstructionDataEncoder: typeof getClaimInstructionDataEncoder; declare const index$1_getClaimReceiptCodec: typeof getClaimReceiptCodec; declare const index$1_getClaimReceiptDecoder: typeof getClaimReceiptDecoder; declare const index$1_getClaimReceiptDiscriminatorBytes: typeof getClaimReceiptDiscriminatorBytes; declare const index$1_getClaimReceiptEncoder: typeof getClaimReceiptEncoder; declare const index$1_getClaimReceiptSize: typeof getClaimReceiptSize; declare const index$1_getEntryByMintCodec: typeof getEntryByMintCodec; declare const index$1_getEntryByMintDecoder: typeof getEntryByMintDecoder; declare const index$1_getEntryByMintDiscriminatorBytes: typeof getEntryByMintDiscriminatorBytes; declare const index$1_getEntryByMintEncoder: typeof getEntryByMintEncoder; declare const index$1_getEntryByMintSize: typeof getEntryByMintSize; declare const index$1_getEntryCodec: typeof getEntryCodec; declare const index$1_getEntryDecoder: typeof getEntryDecoder; declare const index$1_getEntryDiscriminatorBytes: typeof getEntryDiscriminatorBytes; declare const index$1_getEntryEncoder: typeof getEntryEncoder; declare const index$1_getEntryMigratedCodec: typeof getEntryMigratedCodec; declare const index$1_getEntryMigratedDecoder: typeof getEntryMigratedDecoder; declare const index$1_getEntryMigratedEncoder: typeof getEntryMigratedEncoder; declare const index$1_getEntryRegisteredCodec: typeof getEntryRegisteredCodec; declare const index$1_getEntryRegisteredDecoder: typeof getEntryRegisteredDecoder; declare const index$1_getEntryRegisteredEncoder: typeof getEntryRegisteredEncoder; declare const index$1_getEntrySize: typeof getEntrySize; declare const index$1_getInitConfigCodec: typeof getInitConfigCodec; declare const index$1_getInitConfigDecoder: typeof getInitConfigDecoder; declare const index$1_getInitConfigDiscriminatorBytes: typeof getInitConfigDiscriminatorBytes; declare const index$1_getInitConfigEncoder: typeof getInitConfigEncoder; declare const index$1_getInitConfigSize: typeof getInitConfigSize; declare const index$1_getLaunchCodec: typeof getLaunchCodec; declare const index$1_getLaunchDecoder: typeof getLaunchDecoder; declare const index$1_getLaunchDiscriminatorBytes: typeof getLaunchDiscriminatorBytes; declare const index$1_getLaunchEncoder: typeof getLaunchEncoder; declare const index$1_getLaunchSize: typeof getLaunchSize; declare const index$1_getMarketCodec: typeof getMarketCodec; declare const index$1_getMarketCreatedCodec: typeof getMarketCreatedCodec; declare const index$1_getMarketCreatedDecoder: typeof getMarketCreatedDecoder; declare const index$1_getMarketCreatedEncoder: typeof getMarketCreatedEncoder; declare const index$1_getMarketDecoder: typeof getMarketDecoder; declare const index$1_getMarketDiscriminatorBytes: typeof getMarketDiscriminatorBytes; declare const index$1_getMarketEncoder: typeof getMarketEncoder; declare const index$1_getMarketResolvedCodec: typeof getMarketResolvedCodec; declare const index$1_getMarketResolvedDecoder: typeof getMarketResolvedDecoder; declare const index$1_getMarketResolvedEncoder: typeof getMarketResolvedEncoder; declare const index$1_getMarketSize: typeof getMarketSize; declare const index$1_getMigrateEntryArgsCodec: typeof getMigrateEntryArgsCodec; declare const index$1_getMigrateEntryArgsDecoder: typeof getMigrateEntryArgsDecoder; declare const index$1_getMigrateEntryArgsEncoder: typeof getMigrateEntryArgsEncoder; declare const index$1_getMigrateEntryDiscriminatorBytes: typeof getMigrateEntryDiscriminatorBytes; declare const index$1_getMigrateEntryInstruction: typeof getMigrateEntryInstruction; declare const index$1_getMigrateEntryInstructionAsync: typeof getMigrateEntryInstructionAsync; declare const index$1_getMigrateEntryInstructionDataCodec: typeof getMigrateEntryInstructionDataCodec; declare const index$1_getMigrateEntryInstructionDataDecoder: typeof getMigrateEntryInstructionDataDecoder; declare const index$1_getMigrateEntryInstructionDataEncoder: typeof getMigrateEntryInstructionDataEncoder; declare const index$1_getPayloadBufCodec: typeof getPayloadBufCodec; declare const index$1_getPayloadBufDecoder: typeof getPayloadBufDecoder; declare const index$1_getPayloadBufEncoder: typeof getPayloadBufEncoder; declare const index$1_getPredictionEntryAddress: typeof getPredictionEntryAddress; declare const index$1_getPredictionEntryByMintAddress: typeof getPredictionEntryByMintAddress; declare const index$1_getPredictionMarketAddress: typeof getPredictionMarketAddress; declare const index$1_getPredictionMarketAuthorityAddress: typeof getPredictionMarketAuthorityAddress; declare const index$1_getPredictionMigratorErrorMessage: typeof getPredictionMigratorErrorMessage; declare const index$1_getPredictionPotVaultAddress: typeof getPredictionPotVaultAddress; declare const index$1_getPreviewPayoutIfWinnerArgsCodec: typeof getPreviewPayoutIfWinnerArgsCodec; declare const index$1_getPreviewPayoutIfWinnerArgsDecoder: typeof getPreviewPayoutIfWinnerArgsDecoder; declare const index$1_getPreviewPayoutIfWinnerArgsEncoder: typeof getPreviewPayoutIfWinnerArgsEncoder; declare const index$1_getPreviewPayoutIfWinnerDiscriminatorBytes: typeof getPreviewPayoutIfWinnerDiscriminatorBytes; declare const index$1_getPreviewPayoutIfWinnerInstruction: typeof getPreviewPayoutIfWinnerInstruction; declare const index$1_getPreviewPayoutIfWinnerInstructionDataCodec: typeof getPreviewPayoutIfWinnerInstructionDataCodec; declare const index$1_getPreviewPayoutIfWinnerInstructionDataDecoder: typeof getPreviewPayoutIfWinnerInstructionDataDecoder; declare const index$1_getPreviewPayoutIfWinnerInstructionDataEncoder: typeof getPreviewPayoutIfWinnerInstructionDataEncoder; declare const index$1_getRegisterEntryArgsCodec: typeof getRegisterEntryArgsCodec; declare const index$1_getRegisterEntryArgsDecoder: typeof getRegisterEntryArgsDecoder; declare const index$1_getRegisterEntryArgsEncoder: typeof getRegisterEntryArgsEncoder; declare const index$1_getRegisterEntryDiscriminatorBytes: typeof getRegisterEntryDiscriminatorBytes; declare const index$1_getRegisterEntryInstruction: typeof getRegisterEntryInstruction; declare const index$1_getRegisterEntryInstructionAsync: typeof getRegisterEntryInstructionAsync; declare const index$1_getRegisterEntryInstructionDataCodec: typeof getRegisterEntryInstructionDataCodec; declare const index$1_getRegisterEntryInstructionDataDecoder: typeof getRegisterEntryInstructionDataDecoder; declare const index$1_getRegisterEntryInstructionDataEncoder: typeof getRegisterEntryInstructionDataEncoder; declare const index$1_getRewardsClaimedCodec: typeof getRewardsClaimedCodec; declare const index$1_getRewardsClaimedDecoder: typeof getRewardsClaimedDecoder; declare const index$1_getRewardsClaimedEncoder: typeof getRewardsClaimedEncoder; declare const index$1_identifyPredictionMigratorAccount: typeof identifyPredictionMigratorAccount; declare const index$1_identifyPredictionMigratorInstruction: typeof identifyPredictionMigratorInstruction; declare const index$1_isPredictionMigratorError: typeof isPredictionMigratorError; declare const index$1_parseClaimInstruction: typeof parseClaimInstruction; declare const index$1_parseMigrateEntryInstruction: typeof parseMigrateEntryInstruction; declare const index$1_parsePredictionMigratorInstruction: typeof parsePredictionMigratorInstruction; declare const index$1_parsePreviewPayoutIfWinnerInstruction: typeof parsePreviewPayoutIfWinnerInstruction; declare const index$1_parseRegisterEntryInstruction: typeof parseRegisterEntryInstruction; declare const index$1_predictionMigratorProgram: typeof predictionMigratorProgram; declare namespace index$1 { export { index$1_CLAIM_DISCRIMINATOR as CLAIM_DISCRIMINATOR, index$1_CLAIM_RECEIPT_DISCRIMINATOR as CLAIM_RECEIPT_DISCRIMINATOR, type index$1_ClaimAsyncInput as ClaimAsyncInput, type index$1_ClaimInput as ClaimInput, type index$1_ClaimInstruction as ClaimInstruction, type index$1_ClaimInstructionData as ClaimInstructionData, type index$1_ClaimInstructionDataArgs as ClaimInstructionDataArgs, type index$1_ClaimReceipt as ClaimReceipt, type index$1_ClaimReceiptArgs as ClaimReceiptArgs, index$1_ENTRY_BY_MINT_DISCRIMINATOR as ENTRY_BY_MINT_DISCRIMINATOR, index$1_ENTRY_DISCRIMINATOR as ENTRY_DISCRIMINATOR, type index$1_Entry as Entry, type index$1_EntryArgs as EntryArgs, type index$1_EntryByMint as EntryByMint, type index$1_EntryByMintArgs as EntryByMintArgs, type index$1_EntryMigrated as EntryMigrated, type index$1_EntryMigratedArgs as EntryMigratedArgs, type index$1_EntryRegistered as EntryRegistered, type index$1_EntryRegisteredArgs as EntryRegisteredArgs, index$1_INIT_CONFIG_DISCRIMINATOR as INIT_CONFIG_DISCRIMINATOR, type index$1_InitConfig as InitConfig, type index$1_InitConfigArgs as InitConfigArgs, index$1_LAUNCH_DISCRIMINATOR as LAUNCH_DISCRIMINATOR, type index$1_Launch as Launch, type index$1_LaunchArgs as LaunchArgs, index$1_MARKET_DISCRIMINATOR as MARKET_DISCRIMINATOR, index$1_MIGRATE_ENTRY_DISCRIMINATOR as MIGRATE_ENTRY_DISCRIMINATOR, type index$1_Market as Market, type index$1_MarketArgs as MarketArgs, type index$1_MarketCreated as MarketCreated, type index$1_MarketCreatedArgs as MarketCreatedArgs, type index$1_MarketResolved as MarketResolved, type index$1_MarketResolvedArgs as MarketResolvedArgs, type index$1_MigrateEntryArgs as MigrateEntryArgs, type index$1_MigrateEntryArgsArgs as MigrateEntryArgsArgs, type index$1_MigrateEntryAsyncInput as MigrateEntryAsyncInput, type index$1_MigrateEntryInput as MigrateEntryInput, type index$1_MigrateEntryInstruction as MigrateEntryInstruction, type index$1_MigrateEntryInstructionData as MigrateEntryInstructionData, type index$1_MigrateEntryInstructionDataArgs as MigrateEntryInstructionDataArgs, ORACLE_STATE_DISCRIMINATOR$1 as ORACLE_STATE_DISCRIMINATOR, type OracleState$1 as OracleState, type OracleStateArgs$1 as OracleStateArgs, index$1_PREDICTION_MIGRATOR_ERROR__CLAIMABLE_SUPPLY_ALREADY_SET as PREDICTION_MIGRATOR_ERROR__CLAIMABLE_SUPPLY_ALREADY_SET, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED as PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE as PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID as PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_INPUT as PREDICTION_MIGRATOR_ERROR__INVALID_INPUT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MARKET as PREDICTION_MIGRATOR_ERROR__INVALID_MARKET, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MINT as PREDICTION_MIGRATOR_ERROR__INVALID_MINT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE as PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_VAULT as PREDICTION_MIGRATOR_ERROR__INVALID_VAULT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT as PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT, index$1_PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED as PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED, index$1_PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW as PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW, index$1_PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS as PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS, index$1_PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED as PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED, index$1_PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH as PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH, index$1_PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED as PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED, index$1_PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED as PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY as PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY, index$1_PREDICTION_MIGRATOR_PROGRAM_ADDRESS as PREDICTION_MIGRATOR_PROGRAM_ADDRESS, index$1_PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR as PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR, type index$1_ParsedClaimInstruction as ParsedClaimInstruction, type index$1_ParsedMigrateEntryInstruction as ParsedMigrateEntryInstruction, type index$1_ParsedPredictionMigratorInstruction as ParsedPredictionMigratorInstruction, type index$1_ParsedPreviewPayoutIfWinnerInstruction as ParsedPreviewPayoutIfWinnerInstruction, type index$1_ParsedRegisterEntryInstruction as ParsedRegisterEntryInstruction, type index$1_PayloadBuf as PayloadBuf, type index$1_PayloadBufArgs as PayloadBufArgs, index$1_PredictionMigratorAccount as PredictionMigratorAccount, type index$1_PredictionMigratorError as PredictionMigratorError, index$1_PredictionMigratorInstruction as PredictionMigratorInstruction, type index$1_PredictionMigratorPlugin as PredictionMigratorPlugin, type index$1_PredictionMigratorPluginAccounts as PredictionMigratorPluginAccounts, type index$1_PredictionMigratorPluginInstructions as PredictionMigratorPluginInstructions, type index$1_PredictionMigratorPluginRequirements as PredictionMigratorPluginRequirements, type index$1_PreviewPayoutIfWinnerArgs as PreviewPayoutIfWinnerArgs, type index$1_PreviewPayoutIfWinnerArgsArgs as PreviewPayoutIfWinnerArgsArgs, type index$1_PreviewPayoutIfWinnerInput as PreviewPayoutIfWinnerInput, type index$1_PreviewPayoutIfWinnerInstruction as PreviewPayoutIfWinnerInstruction, type index$1_PreviewPayoutIfWinnerInstructionData as PreviewPayoutIfWinnerInstructionData, type index$1_PreviewPayoutIfWinnerInstructionDataArgs as PreviewPayoutIfWinnerInstructionDataArgs, index$1_REGISTER_ENTRY_DISCRIMINATOR as REGISTER_ENTRY_DISCRIMINATOR, type index$1_RegisterEntryArgs as RegisterEntryArgs, type index$1_RegisterEntryArgsArgs as RegisterEntryArgsArgs, type index$1_RegisterEntryAsyncInput as RegisterEntryAsyncInput, type index$1_RegisterEntryInput as RegisterEntryInput, type index$1_RegisterEntryInstruction as RegisterEntryInstruction, type index$1_RegisterEntryInstructionData as RegisterEntryInstructionData, type index$1_RegisterEntryInstructionDataArgs as RegisterEntryInstructionDataArgs, type index$1_RewardsClaimed as RewardsClaimed, type index$1_RewardsClaimedArgs as RewardsClaimedArgs, index$1_decodeClaimReceipt as decodeClaimReceipt, index$1_decodeEntry as decodeEntry, index$1_decodeEntryByMint as decodeEntryByMint, index$1_decodeInitConfig as decodeInitConfig, index$1_decodeLaunch as decodeLaunch, index$1_decodeMarket as decodeMarket, decodeOracleState$1 as decodeOracleState, index$1_fetchAllClaimReceipt as fetchAllClaimReceipt, index$1_fetchAllEntry as fetchAllEntry, index$1_fetchAllEntryByMint as fetchAllEntryByMint, index$1_fetchAllInitConfig as fetchAllInitConfig, index$1_fetchAllLaunch as fetchAllLaunch, index$1_fetchAllMarket as fetchAllMarket, index$1_fetchAllMaybeClaimReceipt as fetchAllMaybeClaimReceipt, index$1_fetchAllMaybeEntry as fetchAllMaybeEntry, index$1_fetchAllMaybeEntryByMint as fetchAllMaybeEntryByMint, index$1_fetchAllMaybeInitConfig as fetchAllMaybeInitConfig, index$1_fetchAllMaybeLaunch as fetchAllMaybeLaunch, index$1_fetchAllMaybeMarket as fetchAllMaybeMarket, fetchAllMaybeOracleState$1 as fetchAllMaybeOracleState, fetchAllOracleState$1 as fetchAllOracleState, index$1_fetchClaimReceipt as fetchClaimReceipt, index$1_fetchEntry as fetchEntry, index$1_fetchEntryByMint as fetchEntryByMint, index$1_fetchInitConfig as fetchInitConfig, index$1_fetchLaunch as fetchLaunch, index$1_fetchMarket as fetchMarket, index$1_fetchMaybeClaimReceipt as fetchMaybeClaimReceipt, index$1_fetchMaybeEntry as fetchMaybeEntry, index$1_fetchMaybeEntryByMint as fetchMaybeEntryByMint, index$1_fetchMaybeInitConfig as fetchMaybeInitConfig, index$1_fetchMaybeLaunch as fetchMaybeLaunch, index$1_fetchMaybeMarket as fetchMaybeMarket, fetchMaybeOracleState$1 as fetchMaybeOracleState, fetchOracleState$1 as fetchOracleState, index$1_getClaimDiscriminatorBytes as getClaimDiscriminatorBytes, index$1_getClaimInstruction as getClaimInstruction, index$1_getClaimInstructionAsync as getClaimInstructionAsync, index$1_getClaimInstructionDataCodec as getClaimInstructionDataCodec, index$1_getClaimInstructionDataDecoder as getClaimInstructionDataDecoder, index$1_getClaimInstructionDataEncoder as getClaimInstructionDataEncoder, index$1_getClaimReceiptCodec as getClaimReceiptCodec, index$1_getClaimReceiptDecoder as getClaimReceiptDecoder, index$1_getClaimReceiptDiscriminatorBytes as getClaimReceiptDiscriminatorBytes, index$1_getClaimReceiptEncoder as getClaimReceiptEncoder, index$1_getClaimReceiptSize as getClaimReceiptSize, index$1_getEntryByMintCodec as getEntryByMintCodec, index$1_getEntryByMintDecoder as getEntryByMintDecoder, index$1_getEntryByMintDiscriminatorBytes as getEntryByMintDiscriminatorBytes, index$1_getEntryByMintEncoder as getEntryByMintEncoder, index$1_getEntryByMintSize as getEntryByMintSize, index$1_getEntryCodec as getEntryCodec, index$1_getEntryDecoder as getEntryDecoder, index$1_getEntryDiscriminatorBytes as getEntryDiscriminatorBytes, index$1_getEntryEncoder as getEntryEncoder, index$1_getEntryMigratedCodec as getEntryMigratedCodec, index$1_getEntryMigratedDecoder as getEntryMigratedDecoder, index$1_getEntryMigratedEncoder as getEntryMigratedEncoder, index$1_getEntryRegisteredCodec as getEntryRegisteredCodec, index$1_getEntryRegisteredDecoder as getEntryRegisteredDecoder, index$1_getEntryRegisteredEncoder as getEntryRegisteredEncoder, index$1_getEntrySize as getEntrySize, index$1_getInitConfigCodec as getInitConfigCodec, index$1_getInitConfigDecoder as getInitConfigDecoder, index$1_getInitConfigDiscriminatorBytes as getInitConfigDiscriminatorBytes, index$1_getInitConfigEncoder as getInitConfigEncoder, index$1_getInitConfigSize as getInitConfigSize, index$1_getLaunchCodec as getLaunchCodec, index$1_getLaunchDecoder as getLaunchDecoder, index$1_getLaunchDiscriminatorBytes as getLaunchDiscriminatorBytes, index$1_getLaunchEncoder as getLaunchEncoder, index$1_getLaunchSize as getLaunchSize, index$1_getMarketCodec as getMarketCodec, index$1_getMarketCreatedCodec as getMarketCreatedCodec, index$1_getMarketCreatedDecoder as getMarketCreatedDecoder, index$1_getMarketCreatedEncoder as getMarketCreatedEncoder, index$1_getMarketDecoder as getMarketDecoder, index$1_getMarketDiscriminatorBytes as getMarketDiscriminatorBytes, index$1_getMarketEncoder as getMarketEncoder, index$1_getMarketResolvedCodec as getMarketResolvedCodec, index$1_getMarketResolvedDecoder as getMarketResolvedDecoder, index$1_getMarketResolvedEncoder as getMarketResolvedEncoder, index$1_getMarketSize as getMarketSize, index$1_getMigrateEntryArgsCodec as getMigrateEntryArgsCodec, index$1_getMigrateEntryArgsDecoder as getMigrateEntryArgsDecoder, index$1_getMigrateEntryArgsEncoder as getMigrateEntryArgsEncoder, index$1_getMigrateEntryDiscriminatorBytes as getMigrateEntryDiscriminatorBytes, index$1_getMigrateEntryInstruction as getMigrateEntryInstruction, index$1_getMigrateEntryInstructionAsync as getMigrateEntryInstructionAsync, index$1_getMigrateEntryInstructionDataCodec as getMigrateEntryInstructionDataCodec, index$1_getMigrateEntryInstructionDataDecoder as getMigrateEntryInstructionDataDecoder, index$1_getMigrateEntryInstructionDataEncoder as getMigrateEntryInstructionDataEncoder, getOracleStateCodec$1 as getOracleStateCodec, getOracleStateDecoder$1 as getOracleStateDecoder, getOracleStateDiscriminatorBytes$1 as getOracleStateDiscriminatorBytes, getOracleStateEncoder$1 as getOracleStateEncoder, getOracleStateSize$1 as getOracleStateSize, index$1_getPayloadBufCodec as getPayloadBufCodec, index$1_getPayloadBufDecoder as getPayloadBufDecoder, index$1_getPayloadBufEncoder as getPayloadBufEncoder, index$1_getPredictionEntryAddress as getPredictionEntryAddress, index$1_getPredictionEntryByMintAddress as getPredictionEntryByMintAddress, index$1_getPredictionMarketAddress as getPredictionMarketAddress, index$1_getPredictionMarketAuthorityAddress as getPredictionMarketAuthorityAddress, index$1_getPredictionMigratorErrorMessage as getPredictionMigratorErrorMessage, index$1_getPredictionPotVaultAddress as getPredictionPotVaultAddress, index$1_getPreviewPayoutIfWinnerArgsCodec as getPreviewPayoutIfWinnerArgsCodec, index$1_getPreviewPayoutIfWinnerArgsDecoder as getPreviewPayoutIfWinnerArgsDecoder, index$1_getPreviewPayoutIfWinnerArgsEncoder as getPreviewPayoutIfWinnerArgsEncoder, index$1_getPreviewPayoutIfWinnerDiscriminatorBytes as getPreviewPayoutIfWinnerDiscriminatorBytes, index$1_getPreviewPayoutIfWinnerInstruction as getPreviewPayoutIfWinnerInstruction, index$1_getPreviewPayoutIfWinnerInstructionDataCodec as getPreviewPayoutIfWinnerInstructionDataCodec, index$1_getPreviewPayoutIfWinnerInstructionDataDecoder as getPreviewPayoutIfWinnerInstructionDataDecoder, index$1_getPreviewPayoutIfWinnerInstructionDataEncoder as getPreviewPayoutIfWinnerInstructionDataEncoder, index$1_getRegisterEntryArgsCodec as getRegisterEntryArgsCodec, index$1_getRegisterEntryArgsDecoder as getRegisterEntryArgsDecoder, index$1_getRegisterEntryArgsEncoder as getRegisterEntryArgsEncoder, index$1_getRegisterEntryDiscriminatorBytes as getRegisterEntryDiscriminatorBytes, index$1_getRegisterEntryInstruction as getRegisterEntryInstruction, index$1_getRegisterEntryInstructionAsync as getRegisterEntryInstructionAsync, index$1_getRegisterEntryInstructionDataCodec as getRegisterEntryInstructionDataCodec, index$1_getRegisterEntryInstructionDataDecoder as getRegisterEntryInstructionDataDecoder, index$1_getRegisterEntryInstructionDataEncoder as getRegisterEntryInstructionDataEncoder, index$1_getRewardsClaimedCodec as getRewardsClaimedCodec, index$1_getRewardsClaimedDecoder as getRewardsClaimedDecoder, index$1_getRewardsClaimedEncoder as getRewardsClaimedEncoder, index$1_identifyPredictionMigratorAccount as identifyPredictionMigratorAccount, index$1_identifyPredictionMigratorInstruction as identifyPredictionMigratorInstruction, index$1_isPredictionMigratorError as isPredictionMigratorError, index$1_parseClaimInstruction as parseClaimInstruction, index$1_parseMigrateEntryInstruction as parseMigrateEntryInstruction, index$1_parsePredictionMigratorInstruction as parsePredictionMigratorInstruction, index$1_parsePreviewPayoutIfWinnerInstruction as parsePreviewPayoutIfWinnerInstruction, index$1_parseRegisterEntryInstruction as parseRegisterEntryInstruction, index$1_predictionMigratorProgram as predictionMigratorProgram }; } /** * 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 */ declare const ORACLE_STATE_DISCRIMINATOR: Uint8Array; declare function getOracleStateDiscriminatorBytes(): ReadonlyUint8Array; type OracleState = { discriminator: ReadonlyUint8Array; /** The authority that can finalize this oracle */ oracleAuthority: Address; /** Optional quote mint for validation (Pubkey::default() if not used) */ quoteMint: Address; /** Whether the oracle has been finalized with a winner */ isFinalized: boolean; /** The winning mint (only valid if is_finalized == true) */ winningMint: Address; /** Nonce used in PDA derivation */ nonce: bigint; /** PDA bump seed */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; type OracleStateArgs = { /** The authority that can finalize this oracle */ oracleAuthority: Address; /** Optional quote mint for validation (Pubkey::default() if not used) */ quoteMint: Address; /** Whether the oracle has been finalized with a winner */ isFinalized: boolean; /** The winning mint (only valid if is_finalized == true) */ winningMint: Address; /** Nonce used in PDA derivation */ nonce: number | bigint; /** PDA bump seed */ bump: number; /** Reserved for future use */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link OracleStateArgs} account data. */ declare function getOracleStateEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link OracleState} account data. */ declare function getOracleStateDecoder(): FixedSizeDecoder; /** Gets the codec for {@link OracleState} account data. */ declare function getOracleStateCodec(): FixedSizeCodec; declare function decodeOracleState(encodedAccount: EncodedAccount): Account; declare function decodeOracleState(encodedAccount: MaybeEncodedAccount): MaybeAccount; declare function fetchOracleState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchMaybeOracleState(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; declare function fetchAllOracleState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function fetchAllMaybeOracleState(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; declare function getOracleStateSize(): number; /** * 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 */ /** Unauthorized: Unauthorized: only oracle authority can perform this action */ declare const TRUSTED_ORACLE_ERROR__UNAUTHORIZED = 6000; /** AlreadyFinalized: Oracle already finalized */ declare const TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED = 6001; /** InvalidWinningMint: Invalid winning mint */ declare const TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT = 6003; type TrustedOracleError = typeof TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED | typeof TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT | typeof TRUSTED_ORACLE_ERROR__UNAUTHORIZED; declare function getTrustedOracleErrorMessage(code: TrustedOracleError): string; declare function isTrustedOracleError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; /** * 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 */ declare const TRUSTED_ORACLE_PROGRAM_ADDRESS: Address<"HhUzN7VvonNUevATyugZUepzxpeEZMXQbV92X2xvsp5m">; declare enum TrustedOracleAccount { OracleState = 0 } declare function identifyTrustedOracleAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): TrustedOracleAccount; declare enum TrustedOracleInstruction { Finalize = 0, InitializeOracle = 1 } declare function identifyTrustedOracleInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): TrustedOracleInstruction; type ParsedTrustedOracleInstruction = ({ instructionType: TrustedOracleInstruction.Finalize; } & ParsedFinalizeInstruction) | ({ instructionType: TrustedOracleInstruction.InitializeOracle; } & ParsedInitializeOracleInstruction); declare function parseTrustedOracleInstruction(instruction: Instruction & InstructionWithData): ParsedTrustedOracleInstruction; type TrustedOraclePlugin = { accounts: TrustedOraclePluginAccounts; instructions: TrustedOraclePluginInstructions; }; type TrustedOraclePluginAccounts = { oracleState: ReturnType & SelfFetchFunctions; }; type TrustedOraclePluginInstructions = { finalize: (input: FinalizeInput) => ReturnType & SelfPlanAndSendFunctions; initializeOracle: (input: InitializeOracleInput) => ReturnType & SelfPlanAndSendFunctions; }; type TrustedOraclePluginRequirements = ClientWithRpc & ClientWithTransactionPlanning & ClientWithTransactionSending; declare function trustedOracleProgram(): (client: T) => T & { trustedOracle: TrustedOraclePlugin; }; /** * 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 */ declare const FINALIZE_DISCRIMINATOR: Uint8Array; declare function getFinalizeDiscriminatorBytes(): ReadonlyUint8Array; type FinalizeInstruction = string, TAccountOracleState extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOracleAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOracleAuthority, TAccountOracleState extends string ? WritableAccount : TAccountOracleState, ...TRemainingAccounts ]>; type FinalizeInstructionData = { discriminator: ReadonlyUint8Array; winningMint: Address; }; type FinalizeInstructionDataArgs = { winningMint: Address; }; declare function getFinalizeInstructionDataEncoder(): FixedSizeEncoder; declare function getFinalizeInstructionDataDecoder(): FixedSizeDecoder; declare function getFinalizeInstructionDataCodec(): FixedSizeCodec; type FinalizeInput = { /** The oracle authority - must sign to finalize */ oracleAuthority: TransactionSigner; oracleState: Address; winningMint: FinalizeInstructionDataArgs['winningMint']; }; declare function getFinalizeInstruction(input: FinalizeInput, config?: { programAddress?: TProgramAddress; }): FinalizeInstruction; type ParsedFinalizeInstruction = { programAddress: Address; accounts: { /** The oracle authority - must sign to finalize */ oracleAuthority: TAccountMetas[0]; oracleState: TAccountMetas[1]; }; data: FinalizeInstructionData; }; declare function parseFinalizeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedFinalizeInstruction; /** * 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 */ declare const INITIALIZE_ORACLE_DISCRIMINATOR: Uint8Array; declare function getInitializeOracleDiscriminatorBytes(): ReadonlyUint8Array; type InitializeOracleInstruction = string, TAccountOracleState extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOracleAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountOracleAuthority, TAccountOracleState extends string ? WritableAccount : TAccountOracleState, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; type InitializeOracleInstructionData = { discriminator: ReadonlyUint8Array; /** Nonce for PDA derivation (allows multiple oracles per authority) */ nonce: bigint; /** Optional quote mint for validation (use Pubkey::default() if not needed) */ quoteMint: Address; }; type InitializeOracleInstructionDataArgs = { /** Nonce for PDA derivation (allows multiple oracles per authority) */ nonce: number | bigint; /** Optional quote mint for validation (use Pubkey::default() if not needed) */ quoteMint: Address; }; declare function getInitializeOracleInstructionDataEncoder(): FixedSizeEncoder; declare function getInitializeOracleInstructionDataDecoder(): FixedSizeDecoder; declare function getInitializeOracleInstructionDataCodec(): FixedSizeCodec; type InitializeOracleInput = { /** The authority that will be able to finalize this oracle */ oracleAuthority: TransactionSigner; oracleState: Address; systemProgram?: Address; nonce: InitializeOracleInstructionDataArgs['nonce']; quoteMint: InitializeOracleInstructionDataArgs['quoteMint']; }; declare function getInitializeOracleInstruction(input: InitializeOracleInput, config?: { programAddress?: TProgramAddress; }): InitializeOracleInstruction; type ParsedInitializeOracleInstruction = { programAddress: Address; accounts: { /** The authority that will be able to finalize this oracle */ oracleAuthority: TAccountMetas[0]; oracleState: TAccountMetas[1]; systemProgram: TAccountMetas[2]; }; data: InitializeOracleInstructionData; }; declare function parseInitializeOracleInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeOracleInstruction; /** * 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 */ type InitializeOracleArgs = { /** Nonce for PDA derivation (allows multiple oracles per authority) */ nonce: bigint; /** Optional quote mint for validation (use Pubkey::default() if not needed) */ quoteMint: Address; }; type InitializeOracleArgsArgs = { /** Nonce for PDA derivation (allows multiple oracles per authority) */ nonce: number | bigint; /** Optional quote mint for validation (use Pubkey::default() if not needed) */ quoteMint: Address; }; declare function getInitializeOracleArgsEncoder(): FixedSizeEncoder; declare function getInitializeOracleArgsDecoder(): FixedSizeDecoder; declare function getInitializeOracleArgsCodec(): FixedSizeCodec; /** * Derive the OracleState PDA address. * Seeds: ["oracle", oracleAuthority, nonce_le_u64] * * The nonce allows a single authority to create multiple independent oracles. * Use Date.now() or any unique u64 value. */ declare function getOracleStateAddress(oracleAuthority: Address, nonce: bigint): Promise; declare const index_FINALIZE_DISCRIMINATOR: typeof FINALIZE_DISCRIMINATOR; type index_FinalizeInput = FinalizeInput; type index_FinalizeInstruction = string, TAccountOracleState extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = FinalizeInstruction; type index_FinalizeInstructionData = FinalizeInstructionData; type index_FinalizeInstructionDataArgs = FinalizeInstructionDataArgs; declare const index_INITIALIZE_ORACLE_DISCRIMINATOR: typeof INITIALIZE_ORACLE_DISCRIMINATOR; type index_InitializeOracleArgs = InitializeOracleArgs; type index_InitializeOracleArgsArgs = InitializeOracleArgsArgs; type index_InitializeOracleInput = InitializeOracleInput; type index_InitializeOracleInstruction = string, TAccountOracleState extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = InitializeOracleInstruction; type index_InitializeOracleInstructionData = InitializeOracleInstructionData; type index_InitializeOracleInstructionDataArgs = InitializeOracleInstructionDataArgs; declare const index_ORACLE_STATE_DISCRIMINATOR: typeof ORACLE_STATE_DISCRIMINATOR; type index_OracleState = OracleState; type index_OracleStateArgs = OracleStateArgs; type index_ParsedFinalizeInstruction = ParsedFinalizeInstruction; type index_ParsedInitializeOracleInstruction = ParsedInitializeOracleInstruction; type index_ParsedTrustedOracleInstruction = ParsedTrustedOracleInstruction; declare const index_TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED: typeof TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED; declare const index_TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT: typeof TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT; declare const index_TRUSTED_ORACLE_ERROR__UNAUTHORIZED: typeof TRUSTED_ORACLE_ERROR__UNAUTHORIZED; declare const index_TRUSTED_ORACLE_PROGRAM_ADDRESS: typeof TRUSTED_ORACLE_PROGRAM_ADDRESS; type index_TrustedOracleAccount = TrustedOracleAccount; declare const index_TrustedOracleAccount: typeof TrustedOracleAccount; type index_TrustedOracleError = TrustedOracleError; type index_TrustedOracleInstruction = TrustedOracleInstruction; declare const index_TrustedOracleInstruction: typeof TrustedOracleInstruction; type index_TrustedOraclePlugin = TrustedOraclePlugin; type index_TrustedOraclePluginAccounts = TrustedOraclePluginAccounts; type index_TrustedOraclePluginInstructions = TrustedOraclePluginInstructions; type index_TrustedOraclePluginRequirements = TrustedOraclePluginRequirements; declare const index_decodeOracleState: typeof decodeOracleState; declare const index_fetchAllMaybeOracleState: typeof fetchAllMaybeOracleState; declare const index_fetchAllOracleState: typeof fetchAllOracleState; declare const index_fetchMaybeOracleState: typeof fetchMaybeOracleState; declare const index_fetchOracleState: typeof fetchOracleState; declare const index_getFinalizeDiscriminatorBytes: typeof getFinalizeDiscriminatorBytes; declare const index_getFinalizeInstruction: typeof getFinalizeInstruction; declare const index_getFinalizeInstructionDataCodec: typeof getFinalizeInstructionDataCodec; declare const index_getFinalizeInstructionDataDecoder: typeof getFinalizeInstructionDataDecoder; declare const index_getFinalizeInstructionDataEncoder: typeof getFinalizeInstructionDataEncoder; declare const index_getInitializeOracleArgsCodec: typeof getInitializeOracleArgsCodec; declare const index_getInitializeOracleArgsDecoder: typeof getInitializeOracleArgsDecoder; declare const index_getInitializeOracleArgsEncoder: typeof getInitializeOracleArgsEncoder; declare const index_getInitializeOracleDiscriminatorBytes: typeof getInitializeOracleDiscriminatorBytes; declare const index_getInitializeOracleInstruction: typeof getInitializeOracleInstruction; declare const index_getInitializeOracleInstructionDataCodec: typeof getInitializeOracleInstructionDataCodec; declare const index_getInitializeOracleInstructionDataDecoder: typeof getInitializeOracleInstructionDataDecoder; declare const index_getInitializeOracleInstructionDataEncoder: typeof getInitializeOracleInstructionDataEncoder; declare const index_getOracleStateAddress: typeof getOracleStateAddress; declare const index_getOracleStateCodec: typeof getOracleStateCodec; declare const index_getOracleStateDecoder: typeof getOracleStateDecoder; declare const index_getOracleStateDiscriminatorBytes: typeof getOracleStateDiscriminatorBytes; declare const index_getOracleStateEncoder: typeof getOracleStateEncoder; declare const index_getOracleStateSize: typeof getOracleStateSize; declare const index_getTrustedOracleErrorMessage: typeof getTrustedOracleErrorMessage; declare const index_identifyTrustedOracleAccount: typeof identifyTrustedOracleAccount; declare const index_identifyTrustedOracleInstruction: typeof identifyTrustedOracleInstruction; declare const index_isTrustedOracleError: typeof isTrustedOracleError; declare const index_parseFinalizeInstruction: typeof parseFinalizeInstruction; declare const index_parseInitializeOracleInstruction: typeof parseInitializeOracleInstruction; declare const index_parseTrustedOracleInstruction: typeof parseTrustedOracleInstruction; declare const index_trustedOracleProgram: typeof trustedOracleProgram; declare namespace index { export { index_FINALIZE_DISCRIMINATOR as FINALIZE_DISCRIMINATOR, type index_FinalizeInput as FinalizeInput, type index_FinalizeInstruction as FinalizeInstruction, type index_FinalizeInstructionData as FinalizeInstructionData, type index_FinalizeInstructionDataArgs as FinalizeInstructionDataArgs, index_INITIALIZE_ORACLE_DISCRIMINATOR as INITIALIZE_ORACLE_DISCRIMINATOR, type index_InitializeOracleArgs as InitializeOracleArgs, type index_InitializeOracleArgsArgs as InitializeOracleArgsArgs, type index_InitializeOracleInput as InitializeOracleInput, type index_InitializeOracleInstruction as InitializeOracleInstruction, type index_InitializeOracleInstructionData as InitializeOracleInstructionData, type index_InitializeOracleInstructionDataArgs as InitializeOracleInstructionDataArgs, index_ORACLE_STATE_DISCRIMINATOR as ORACLE_STATE_DISCRIMINATOR, type index_OracleState as OracleState, type index_OracleStateArgs as OracleStateArgs, type index_ParsedFinalizeInstruction as ParsedFinalizeInstruction, type index_ParsedInitializeOracleInstruction as ParsedInitializeOracleInstruction, type index_ParsedTrustedOracleInstruction as ParsedTrustedOracleInstruction, index_TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED as TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED, index_TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT as TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT, index_TRUSTED_ORACLE_ERROR__UNAUTHORIZED as TRUSTED_ORACLE_ERROR__UNAUTHORIZED, index_TRUSTED_ORACLE_PROGRAM_ADDRESS as TRUSTED_ORACLE_PROGRAM_ADDRESS, index_TrustedOracleAccount as TrustedOracleAccount, type index_TrustedOracleError as TrustedOracleError, index_TrustedOracleInstruction as TrustedOracleInstruction, type index_TrustedOraclePlugin as TrustedOraclePlugin, type index_TrustedOraclePluginAccounts as TrustedOraclePluginAccounts, type index_TrustedOraclePluginInstructions as TrustedOraclePluginInstructions, type index_TrustedOraclePluginRequirements as TrustedOraclePluginRequirements, index_decodeOracleState as decodeOracleState, index_fetchAllMaybeOracleState as fetchAllMaybeOracleState, index_fetchAllOracleState as fetchAllOracleState, index_fetchMaybeOracleState as fetchMaybeOracleState, index_fetchOracleState as fetchOracleState, index_getFinalizeDiscriminatorBytes as getFinalizeDiscriminatorBytes, index_getFinalizeInstruction as getFinalizeInstruction, index_getFinalizeInstructionDataCodec as getFinalizeInstructionDataCodec, index_getFinalizeInstructionDataDecoder as getFinalizeInstructionDataDecoder, index_getFinalizeInstructionDataEncoder as getFinalizeInstructionDataEncoder, index_getInitializeOracleArgsCodec as getInitializeOracleArgsCodec, index_getInitializeOracleArgsDecoder as getInitializeOracleArgsDecoder, index_getInitializeOracleArgsEncoder as getInitializeOracleArgsEncoder, index_getInitializeOracleDiscriminatorBytes as getInitializeOracleDiscriminatorBytes, index_getInitializeOracleInstruction as getInitializeOracleInstruction, index_getInitializeOracleInstructionDataCodec as getInitializeOracleInstructionDataCodec, index_getInitializeOracleInstructionDataDecoder as getInitializeOracleInstructionDataDecoder, index_getInitializeOracleInstructionDataEncoder as getInitializeOracleInstructionDataEncoder, index_getOracleStateAddress as getOracleStateAddress, index_getOracleStateCodec as getOracleStateCodec, index_getOracleStateDecoder as getOracleStateDecoder, index_getOracleStateDiscriminatorBytes as getOracleStateDiscriminatorBytes, index_getOracleStateEncoder as getOracleStateEncoder, index_getOracleStateSize as getOracleStateSize, index_getTrustedOracleErrorMessage as getTrustedOracleErrorMessage, index_identifyTrustedOracleAccount as identifyTrustedOracleAccount, index_identifyTrustedOracleInstruction as identifyTrustedOracleInstruction, index_isTrustedOracleError as isTrustedOracleError, index_parseFinalizeInstruction as parseFinalizeInstruction, index_parseInitializeOracleInstruction as parseInitializeOracleInstruction, index_parseTrustedOracleInstruction as parseTrustedOracleInstruction, index_trustedOracleProgram as trustedOracleProgram }; } type TokenBalanceRpc = { getTokenAccountBalance(address: Address, config?: { commitment?: 'processed' | 'confirmed' | 'finalized'; }): { send(): Promise<{ value: { amount: string; }; }>; }; }; type MigrateLaunchInput = { deployment?: Pick; programId?: Address; config?: Address; launch: Address; launchAuthority: Address; baseMint: Address; quoteMint: Address; baseVault: Address; quoteVault: Address; launchFeeState: Address; payer: TransactionSigner; cpmmMigration: CpmmMigrationRemainingAccounts; recipients?: ReadonlyArray>; computeUnitLimit?: number | false; baseTokenProgram?: Address; quoteTokenProgram?: Address; systemProgram?: Address; rent?: Address; }; type MigrateLaunchResult = { recipientAtaInstructions: Instruction[]; computeUnitLimitInstruction?: Instruction; migrateInstruction: Instruction; instructions: Instruction[]; }; type MigrationQuoteProgress = { quoteVaultAmount: bigint; pendingQuoteFees: bigint; migrationQuoteAmount: bigint; }; declare function migrateLaunch(input: MigrateLaunchInput): MigrateLaunchResult; declare function getMigrationQuoteProgress({ rpc, quoteVault, pendingQuoteFees, commitment, }: { rpc: TokenBalanceRpc; quoteVault: Address; pendingQuoteFees: bigint; commitment?: 'processed' | 'confirmed' | 'finalized'; }): Promise; declare function assertMigrationQuoteThreshold({ rpc, quoteVault, pendingQuoteFees, minRaiseQuote, commitment, }: { rpc: TokenBalanceRpc; quoteVault: Address; pendingQuoteFees: bigint; minRaiseQuote: bigint; commitment?: 'processed' | 'confirmed' | 'finalized'; }): Promise; export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, type CurveSwapHook, DOPPLER_SOLANA_DEVNET_FEE_REHYPOTHECATION_PROGRAM_ADDRESSES, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaFeeRehypothecationDeployment, type SolanaFeeRehypothecationProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$9 as cpmm, index$5 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, deriveSolanaFeeRehypothecationDeployment, index$8 as dopplerLaunchHookV1, index$7 as dopplerLaunchHookV2, index$6 as dopplerRehypeRouterV1, index$4 as feeRehypothecation, getMigrationQuoteProgress, index$3 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle, index$2 as vesting };