@whetstone-research/doppler-sdk 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import * as _solana_kit from '@solana/kit';
2
2
  import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, OptionOrNullable, Option, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, TransactionMessage } from '@solana/kit';
3
- import { A as AmmConfig, P as Pool, a as Position, 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$2, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, i as SetRouteArgs, T as TransferAdminArgs, j as OracleConsultArgs, Q as QuoteToNumeraireArgs, k as Observation, l as TradeDirection, m as SwapQuote, n as SwapQuoteExactOut, o as AddLiquidityQuote, p as RemoveLiquidityQuote, M as MarketCapValidationResult, q as MarketCapToCurveParamsInput, r as CurveParams, s as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, t as AddLiquidityEvent, u as AdminTransferredEvent, v as CollectFeesEvent, w as CollectProtocolFeesEvent, F as FeesUpdatedEvent, x as FetchOracleConfig, y as FetchPositionsConfig, H as HookErrorEvent, z as HookInvokedEvent, B as HookUpdatedEvent, D as OracleInitializedEvent, E as OracleUpdatedEvent, J as OracleWithAddress, K as PausedEvent, L as PoolInitializedEvent, N as PositionClosedEvent, U as PositionCreatedEvent, V as PositionValue, W as PositionWithAddress, X as RemoveLiquidityEvent, Y as RouteUpdatedEvent, Z as SwapEvent, _ as TwapResult, $ as UnpausedEvent, a0 as VaultExcessWithdrawnEvent, a1 as comparePoolAndOraclePrices, a2 as consultTwap, a3 as fetchOracle, a4 as fetchOraclesBatch, a5 as fetchPoolPositions, a6 as fetchPosition, a7 as fetchPositionByParams, a8 as fetchPositionsBatch, a9 as fetchUserPositions, aa as filterActivePositions, ab as getOracleAddressFromPool, ac as getOracleAge, ad as getOracleBufferStats, ae as getOracleDeviation, af as getOracleForPool, ag as getOracleSpotPrices, ah as getPositionAddressFromParams, ai as getPositionValue, aj as isOracleStale, ak as sortPositionsByShares } from '../oracle-DN8BrGPh.cjs';
3
+ import { A as AmmConfig, P as Pool, a as Position, 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$2, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, i as SetRouteArgs, T as TransferAdminArgs, j as OracleConsultArgs, Q as QuoteToNumeraireArgs, k as Observation, l as TradeDirection, m as SwapQuote, n as SwapQuoteExactOut, o as AddLiquidityQuote, p as RemoveLiquidityQuote, M as MarketCapValidationResult, q as MarketCapToCurveParamsInput, r as CurveParams, s as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, t as AddLiquidityEvent, u as AdminTransferredEvent, v as CollectFeesEvent, w as CollectProtocolFeesEvent, F as FeesUpdatedEvent, x as FetchOracleConfig, y as FetchPositionsConfig, H as HookErrorEvent, z as HookInvokedEvent, B as HookUpdatedEvent, D as OracleInitializedEvent, E as OracleUpdatedEvent, J as OracleWithAddress, K as PausedEvent, L as PoolInitializedEvent, N as PositionClosedEvent, U as PositionCreatedEvent, V as PositionValue, W as PositionWithAddress, X as RemoveLiquidityEvent, Y as RouteUpdatedEvent, Z as SwapEvent, _ as TwapResult, $ as UnpausedEvent, a0 as VaultExcessWithdrawnEvent, a1 as comparePoolAndOraclePrices, a2 as consultTwap, a3 as fetchOracle, a4 as fetchOraclesBatch, a5 as fetchPoolPositions, a6 as fetchPosition, a7 as fetchPositionByParams, a8 as fetchPositionsBatch, a9 as fetchUserPositions, aa as filterActivePositions, ab as getOracleAddressFromPool, ac as getOracleAge, ad as getOracleBufferStats, ae as getOracleDeviation, af as getOracleForPool, ag as getOracleSpotPrices, ah as getPositionAddressFromParams, ai as getPositionValue, aj as isOracleStale, ak as sortPositionsByShares } from '../oracle-7PmpwwPx.cjs';
4
4
  import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
5
5
  import * as _solana_addresses from '@solana/addresses';
6
6
 
7
7
  /**
8
- * CPMM AMM program ID for the currently published Solana deployment.
8
+ * @deprecated Use DEVNET_CPMM_PROGRAM_ID or pass an explicit deployment.
9
9
  */
10
10
  declare const CPMM_PROGRAM_ID: Address;
11
11
  /**
@@ -1222,6 +1222,8 @@ type InitializePoolInstructionData = {
1222
1222
  initialFeeSplitBps: number;
1223
1223
  liquidityMeasureTokenIndex: number;
1224
1224
  numeraireMintOverride: Option<Address>;
1225
+ hookProgram: Address;
1226
+ hookFlags: number;
1225
1227
  };
1226
1228
  type InitializePoolInstructionDataArgs = {
1227
1229
  mintA: Address;
@@ -1230,6 +1232,8 @@ type InitializePoolInstructionDataArgs = {
1230
1232
  initialFeeSplitBps: number;
1231
1233
  liquidityMeasureTokenIndex: number;
1232
1234
  numeraireMintOverride: OptionOrNullable<Address>;
1235
+ hookProgram: Address;
1236
+ hookFlags: number;
1233
1237
  };
1234
1238
  declare function getInitializePoolInstructionDataEncoder(): Encoder<InitializePoolInstructionDataArgs>;
1235
1239
  declare function getInitializePoolInstructionDataDecoder(): Decoder<InitializePoolInstructionData>;
@@ -1260,6 +1264,8 @@ type InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPo
1260
1264
  initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps'];
1261
1265
  liquidityMeasureTokenIndex: InitializePoolInstructionDataArgs['liquidityMeasureTokenIndex'];
1262
1266
  numeraireMintOverride: InitializePoolInstructionDataArgs['numeraireMintOverride'];
1267
+ hookProgram: InitializePoolInstructionDataArgs['hookProgram'];
1268
+ hookFlags: InitializePoolInstructionDataArgs['hookFlags'];
1263
1269
  };
1264
1270
  declare function getInitializePoolInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializePoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1265
1271
  programAddress?: TProgramAddress;
@@ -1290,6 +1296,8 @@ type InitializePoolInput<TAccountConfig extends string = string, TAccountPool ex
1290
1296
  initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps'];
1291
1297
  liquidityMeasureTokenIndex: InitializePoolInstructionDataArgs['liquidityMeasureTokenIndex'];
1292
1298
  numeraireMintOverride: InitializePoolInstructionDataArgs['numeraireMintOverride'];
1299
+ hookProgram: InitializePoolInstructionDataArgs['hookProgram'];
1300
+ hookFlags: InitializePoolInstructionDataArgs['hookFlags'];
1293
1301
  };
1294
1302
  declare function getInitializePoolInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializePoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1295
1303
  programAddress?: TProgramAddress;
@@ -3329,6 +3337,7 @@ declare const PREDICTION_HOOK_PROGRAM_ID: Address;
3329
3337
  declare const SEED_CONFIG = "config";
3330
3338
  declare const SEED_LAUNCH = "launch";
3331
3339
  declare const SEED_LAUNCH_AUTHORITY = "launch_authority";
3340
+ declare const SEED_LAUNCH_FEE_STATE = "launch_fee_state";
3332
3341
  /**
3333
3342
  * Commitment hash for an empty remaining-accounts list — keccak256 of [0,0,0,0].
3334
3343
  * Pass this for hookRemainingAccountsHash and migratorRemainingAccountsHash
@@ -3366,6 +3375,7 @@ declare const INITIALIZER_INSTRUCTION_DISCRIMINATORS: {
3366
3375
  declare const INITIALIZER_ACCOUNT_DISCRIMINATORS: {
3367
3376
  readonly InitConfig: Uint8Array<ArrayBuffer>;
3368
3377
  readonly Launch: Uint8Array<ArrayBuffer>;
3378
+ readonly LaunchFeeState: Uint8Array<ArrayBuffer>;
3369
3379
  };
3370
3380
 
3371
3381
  /**
@@ -3385,6 +3395,9 @@ type InitConfig = {
3385
3395
  hookAllowlist: Array<Address>;
3386
3396
  bump: number;
3387
3397
  version: number;
3398
+ protocolFeeBps: number;
3399
+ minSwapFeeBps: number;
3400
+ maxSwapFeeBps: number;
3388
3401
  reserved: ReadonlyUint8Array;
3389
3402
  };
3390
3403
  type InitConfigArgs = {
@@ -3395,6 +3408,9 @@ type InitConfigArgs = {
3395
3408
  hookAllowlist: Array<Address>;
3396
3409
  bump: number;
3397
3410
  version: number;
3411
+ protocolFeeBps: number;
3412
+ minSwapFeeBps: number;
3413
+ maxSwapFeeBps: number;
3398
3414
  reserved: ReadonlyUint8Array;
3399
3415
  };
3400
3416
  /** Gets the encoder for {@link InitConfigArgs} account data. */
@@ -3404,6 +3420,35 @@ declare function getInitConfigDecoder(): FixedSizeDecoder<InitConfig>;
3404
3420
  /** Gets the codec for {@link InitConfig} account data. */
3405
3421
  declare function getInitConfigCodec(): FixedSizeCodec<InitConfigArgs, InitConfig>;
3406
3422
 
3423
+ /**
3424
+ * This code was AUTOGENERATED using the Codama library.
3425
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3426
+ * to add features, then rerun Codama to update it.
3427
+ *
3428
+ * @see https://github.com/codama-idl/codama
3429
+ */
3430
+
3431
+ type FeeBeneficiary = {
3432
+ wallet: Address;
3433
+ shareBps: number;
3434
+ pad: ReadonlyUint8Array;
3435
+ };
3436
+ type FeeBeneficiaryArgs = FeeBeneficiary;
3437
+
3438
+ /**
3439
+ * This code was AUTOGENERATED using the Codama library.
3440
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3441
+ * to add features, then rerun Codama to update it.
3442
+ *
3443
+ * @see https://github.com/codama-idl/codama
3444
+ */
3445
+
3446
+ type FeeBeneficiaryInput = {
3447
+ wallet: Address;
3448
+ shareBps: number;
3449
+ };
3450
+ type FeeBeneficiaryInputArgs = FeeBeneficiaryInput;
3451
+
3407
3452
  /**
3408
3453
  * This code was AUTOGENERATED using the Codama library.
3409
3454
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3415,6 +3460,9 @@ declare function getInitConfigCodec(): FixedSizeCodec<InitConfigArgs, InitConfig
3415
3460
  type InitializeConfigArgs = {
3416
3461
  migratorAllowlist: Array<Address>;
3417
3462
  hookAllowlist: Array<Address>;
3463
+ protocolFeeBps: number;
3464
+ minSwapFeeBps: number;
3465
+ maxSwapFeeBps: number;
3418
3466
  };
3419
3467
  type InitializeConfigArgsArgs = InitializeConfigArgs;
3420
3468
  declare function getInitializeConfigArgsEncoder(): Encoder<InitializeConfigArgsArgs>;
@@ -3438,7 +3486,7 @@ type InitializeLaunchArgs = {
3438
3486
  baseForLiquidity: bigint;
3439
3487
  curveVirtualBase: bigint;
3440
3488
  curveVirtualQuote: bigint;
3441
- curveFeeBps: number;
3489
+ swapFeeBps: number;
3442
3490
  curveKind: number;
3443
3491
  curveParams: ReadonlyUint8Array;
3444
3492
  allowBuy: number;
@@ -3476,6 +3524,7 @@ type InitializeLaunchArgs = {
3476
3524
  metadataSymbol: string;
3477
3525
  /** Metadata JSON URI for on-chain metadata. */
3478
3526
  metadataUri: string;
3527
+ feeBeneficiaries: Array<FeeBeneficiaryInput>;
3479
3528
  };
3480
3529
  type InitializeLaunchArgsArgs = {
3481
3530
  namespace: Address;
@@ -3486,7 +3535,7 @@ type InitializeLaunchArgsArgs = {
3486
3535
  baseForLiquidity: number | bigint;
3487
3536
  curveVirtualBase: number | bigint;
3488
3537
  curveVirtualQuote: number | bigint;
3489
- curveFeeBps: number;
3538
+ swapFeeBps: number;
3490
3539
  curveKind: number;
3491
3540
  curveParams: ReadonlyUint8Array;
3492
3541
  allowBuy: number;
@@ -3524,6 +3573,7 @@ type InitializeLaunchArgsArgs = {
3524
3573
  metadataSymbol: string;
3525
3574
  /** Metadata JSON URI for on-chain metadata. */
3526
3575
  metadataUri: string;
3576
+ feeBeneficiaries: Array<FeeBeneficiaryInputArgs>;
3527
3577
  };
3528
3578
  declare function getInitializeLaunchArgsEncoder(): Encoder<InitializeLaunchArgsArgs>;
3529
3579
  declare function getInitializeLaunchArgsDecoder(): Decoder<InitializeLaunchArgs>;
@@ -3570,7 +3620,7 @@ type Launch$1 = {
3570
3620
  baseForCurve: bigint;
3571
3621
  curveVirtualBase: bigint;
3572
3622
  curveVirtualQuote: bigint;
3573
- curveFeeBps: number;
3623
+ swapFeeBps: number;
3574
3624
  pad1: ReadonlyUint8Array;
3575
3625
  allowBuy: number;
3576
3626
  allowSell: number;
@@ -3607,7 +3657,7 @@ type LaunchArgs$1 = {
3607
3657
  baseForCurve: number | bigint;
3608
3658
  curveVirtualBase: number | bigint;
3609
3659
  curveVirtualQuote: number | bigint;
3610
- curveFeeBps: number;
3660
+ swapFeeBps: number;
3611
3661
  pad1: ReadonlyUint8Array;
3612
3662
  allowBuy: number;
3613
3663
  allowSell: number;
@@ -3633,6 +3683,220 @@ declare function getLaunchDecoder$1(): FixedSizeDecoder<Launch$1>;
3633
3683
  /** Gets the codec for {@link Launch} account data. */
3634
3684
  declare function getLaunchCodec$1(): FixedSizeCodec<LaunchArgs$1, Launch$1>;
3635
3685
 
3686
+ /**
3687
+ * This code was AUTOGENERATED using the Codama library.
3688
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3689
+ * to add features, then rerun Codama to update it.
3690
+ *
3691
+ * @see https://github.com/codama-idl/codama
3692
+ */
3693
+
3694
+ type LaunchFeeState = {
3695
+ discriminator: ReadonlyUint8Array;
3696
+ launch: Address;
3697
+ protocolBeneficiary: Address;
3698
+ beneficiaryLen: number;
3699
+ bump: number;
3700
+ protocolFeeBps: number;
3701
+ swapFeeBps: number;
3702
+ version: number;
3703
+ pad0: ReadonlyUint8Array;
3704
+ beneficiaries: Array<FeeBeneficiary>;
3705
+ cumulatedBaseFees: bigint;
3706
+ cumulatedQuoteFees: bigint;
3707
+ distributedProtocolBaseFees: bigint;
3708
+ distributedProtocolQuoteFees: bigint;
3709
+ distributedBaseByBeneficiary: Array<bigint>;
3710
+ distributedQuoteByBeneficiary: Array<bigint>;
3711
+ migratedPool: Address;
3712
+ migratedPosition: Address;
3713
+ reserved: ReadonlyUint8Array;
3714
+ };
3715
+ type LaunchFeeStateArgs = {
3716
+ launch: Address;
3717
+ protocolBeneficiary: Address;
3718
+ beneficiaryLen: number;
3719
+ bump: number;
3720
+ protocolFeeBps: number;
3721
+ swapFeeBps: number;
3722
+ version: number;
3723
+ pad0: ReadonlyUint8Array;
3724
+ beneficiaries: Array<FeeBeneficiaryArgs>;
3725
+ cumulatedBaseFees: number | bigint;
3726
+ cumulatedQuoteFees: number | bigint;
3727
+ distributedProtocolBaseFees: number | bigint;
3728
+ distributedProtocolQuoteFees: number | bigint;
3729
+ distributedBaseByBeneficiary: Array<number | bigint>;
3730
+ distributedQuoteByBeneficiary: Array<number | bigint>;
3731
+ migratedPool: Address;
3732
+ migratedPosition: Address;
3733
+ reserved: ReadonlyUint8Array;
3734
+ };
3735
+ /** Gets the encoder for {@link LaunchFeeStateArgs} account data. */
3736
+ declare function getLaunchFeeStateEncoder(): FixedSizeEncoder<LaunchFeeStateArgs>;
3737
+ /** Gets the decoder for {@link LaunchFeeState} account data. */
3738
+ declare function getLaunchFeeStateDecoder(): FixedSizeDecoder<LaunchFeeState>;
3739
+ /** Gets the codec for {@link LaunchFeeState} account data. */
3740
+ declare function getLaunchFeeStateCodec(): FixedSizeCodec<LaunchFeeStateArgs, LaunchFeeState>;
3741
+
3742
+ /**
3743
+ * This code was AUTOGENERATED using the Codama library.
3744
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3745
+ * to add features, then rerun Codama to update it.
3746
+ *
3747
+ * @see https://github.com/codama-idl/codama
3748
+ */
3749
+
3750
+ declare const INITIALIZER_PROGRAM_ADDRESS: Address<"4h3Dqyo5qmteJoMxXt3tdtfXELDB6pdRTPU9mWruiKp1">;
3751
+
3752
+ /**
3753
+ * This code was AUTOGENERATED using the Codama library.
3754
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3755
+ * to add features, then rerun Codama to update it.
3756
+ *
3757
+ * @see https://github.com/codama-idl/codama
3758
+ */
3759
+
3760
+ type ClaimFeesInstruction<TProgram extends string = typeof INITIALIZER_PROGRAM_ADDRESS, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchFeeState extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountRecipient extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountRecipientBaseAta extends string | AccountMeta<string> = string, TAccountRecipientQuoteAta extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3761
+ TAccountLaunch extends string ? ReadonlyAccount<TAccountLaunch> : TAccountLaunch,
3762
+ TAccountLaunchFeeState extends string ? WritableAccount<TAccountLaunchFeeState> : TAccountLaunchFeeState,
3763
+ TAccountLaunchAuthority extends string ? ReadonlyAccount<TAccountLaunchAuthority> : TAccountLaunchAuthority,
3764
+ TAccountRecipient extends string ? ReadonlyAccount<TAccountRecipient> : TAccountRecipient,
3765
+ TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint,
3766
+ TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint,
3767
+ TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault,
3768
+ TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault,
3769
+ TAccountRecipientBaseAta extends string ? WritableAccount<TAccountRecipientBaseAta> : TAccountRecipientBaseAta,
3770
+ TAccountRecipientQuoteAta extends string ? WritableAccount<TAccountRecipientQuoteAta> : TAccountRecipientQuoteAta,
3771
+ TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram,
3772
+ TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram,
3773
+ ...TRemainingAccounts
3774
+ ]>;
3775
+ type ClaimFeesAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountRecipient extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = {
3776
+ launch: Address<TAccountLaunch>;
3777
+ launchFeeState?: Address<TAccountLaunchFeeState>;
3778
+ launchAuthority?: Address<TAccountLaunchAuthority>;
3779
+ recipient: Address<TAccountRecipient>;
3780
+ baseMint: Address<TAccountBaseMint>;
3781
+ quoteMint: Address<TAccountQuoteMint>;
3782
+ baseVault: Address<TAccountBaseVault>;
3783
+ quoteVault: Address<TAccountQuoteVault>;
3784
+ recipientBaseAta: Address<TAccountRecipientBaseAta>;
3785
+ recipientQuoteAta: Address<TAccountRecipientQuoteAta>;
3786
+ baseTokenProgram: Address<TAccountBaseTokenProgram>;
3787
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
3788
+ };
3789
+ declare function getClaimFeesInstructionAsync<TAccountLaunch extends string, TAccountLaunchFeeState extends string, TAccountLaunchAuthority extends string, TAccountRecipient extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountRecipientBaseAta extends string, TAccountRecipientQuoteAta extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof INITIALIZER_PROGRAM_ADDRESS>(input: ClaimFeesAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountRecipient, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>, config?: {
3790
+ programAddress?: TProgramAddress;
3791
+ }): Promise<ClaimFeesInstruction<TProgramAddress, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountRecipient, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>>;
3792
+
3793
+ /**
3794
+ * This code was AUTOGENERATED using the Codama library.
3795
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3796
+ * to add features, then rerun Codama to update it.
3797
+ *
3798
+ * @see https://github.com/codama-idl/codama
3799
+ */
3800
+
3801
+ type HarvestMigratedFeesInstruction<TProgram extends string = typeof INITIALIZER_PROGRAM_ADDRESS, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchFeeState extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountLaunchLpPosition extends string | AccountMeta<string> = string, TAccountPoolAuthority extends string | AccountMeta<string> = string, TAccountPoolVault0 extends string | AccountMeta<string> = string, TAccountPoolVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountCpmmProgram extends string | AccountMeta<string> = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3802
+ TAccountLaunch extends string ? ReadonlyAccount<TAccountLaunch> : TAccountLaunch,
3803
+ TAccountLaunchFeeState extends string ? WritableAccount<TAccountLaunchFeeState> : TAccountLaunchFeeState,
3804
+ TAccountLaunchAuthority extends string ? ReadonlyAccount<TAccountLaunchAuthority> : TAccountLaunchAuthority,
3805
+ TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint,
3806
+ TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint,
3807
+ TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault,
3808
+ TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault,
3809
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
3810
+ TAccountLaunchLpPosition extends string ? WritableAccount<TAccountLaunchLpPosition> : TAccountLaunchLpPosition,
3811
+ TAccountPoolAuthority extends string ? ReadonlyAccount<TAccountPoolAuthority> : TAccountPoolAuthority,
3812
+ TAccountPoolVault0 extends string ? WritableAccount<TAccountPoolVault0> : TAccountPoolVault0,
3813
+ TAccountPoolVault1 extends string ? WritableAccount<TAccountPoolVault1> : TAccountPoolVault1,
3814
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
3815
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
3816
+ TAccountCpmmProgram extends string ? ReadonlyAccount<TAccountCpmmProgram> : TAccountCpmmProgram,
3817
+ TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram,
3818
+ TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram,
3819
+ ...TRemainingAccounts
3820
+ ]>;
3821
+ type HarvestMigratedFeesAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPool extends string = string, TAccountLaunchLpPosition extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountCpmmProgram extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = {
3822
+ launch: Address<TAccountLaunch>;
3823
+ launchFeeState?: Address<TAccountLaunchFeeState>;
3824
+ launchAuthority?: Address<TAccountLaunchAuthority>;
3825
+ baseMint: Address<TAccountBaseMint>;
3826
+ quoteMint: Address<TAccountQuoteMint>;
3827
+ baseVault: Address<TAccountBaseVault>;
3828
+ quoteVault: Address<TAccountQuoteVault>;
3829
+ pool: Address<TAccountPool>;
3830
+ launchLpPosition: Address<TAccountLaunchLpPosition>;
3831
+ poolAuthority: Address<TAccountPoolAuthority>;
3832
+ poolVault0: Address<TAccountPoolVault0>;
3833
+ poolVault1: Address<TAccountPoolVault1>;
3834
+ token0Mint: Address<TAccountToken0Mint>;
3835
+ token1Mint: Address<TAccountToken1Mint>;
3836
+ cpmmProgram?: Address<TAccountCpmmProgram>;
3837
+ baseTokenProgram: Address<TAccountBaseTokenProgram>;
3838
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
3839
+ };
3840
+ declare function getHarvestMigratedFeesInstructionAsync<TAccountLaunch extends string, TAccountLaunchFeeState extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPool extends string, TAccountLaunchLpPosition extends string, TAccountPoolAuthority extends string, TAccountPoolVault0 extends string, TAccountPoolVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountCpmmProgram extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof INITIALIZER_PROGRAM_ADDRESS>(input: HarvestMigratedFeesAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLaunchLpPosition, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountCpmmProgram, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>, config?: {
3841
+ programAddress?: TProgramAddress;
3842
+ }): Promise<HarvestMigratedFeesInstruction<TProgramAddress, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLaunchLpPosition, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountCpmmProgram, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>>;
3843
+
3844
+ /**
3845
+ * This code was AUTOGENERATED using the Codama library.
3846
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3847
+ * to add features, then rerun Codama to update it.
3848
+ *
3849
+ * @see https://github.com/codama-idl/codama
3850
+ */
3851
+
3852
+ type ReplaceFeeBeneficiaryInstruction<TProgram extends string = typeof INITIALIZER_PROGRAM_ADDRESS, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchFeeState extends string | AccountMeta<string> = string, TAccountCurrentBeneficiary extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3853
+ TAccountLaunch extends string ? ReadonlyAccount<TAccountLaunch> : TAccountLaunch,
3854
+ TAccountLaunchFeeState extends string ? WritableAccount<TAccountLaunchFeeState> : TAccountLaunchFeeState,
3855
+ TAccountCurrentBeneficiary extends string ? ReadonlySignerAccount<TAccountCurrentBeneficiary> & AccountSignerMeta<TAccountCurrentBeneficiary> : TAccountCurrentBeneficiary,
3856
+ ...TRemainingAccounts
3857
+ ]>;
3858
+ type ReplaceFeeBeneficiaryInstructionDataArgs = {
3859
+ newBeneficiary: Address;
3860
+ };
3861
+ type ReplaceFeeBeneficiaryAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountCurrentBeneficiary extends string = string> = {
3862
+ launch: Address<TAccountLaunch>;
3863
+ launchFeeState?: Address<TAccountLaunchFeeState>;
3864
+ currentBeneficiary: TransactionSigner<TAccountCurrentBeneficiary>;
3865
+ newBeneficiary: ReplaceFeeBeneficiaryInstructionDataArgs['newBeneficiary'];
3866
+ };
3867
+ declare function getReplaceFeeBeneficiaryInstructionAsync<TAccountLaunch extends string, TAccountLaunchFeeState extends string, TAccountCurrentBeneficiary extends string, TProgramAddress extends Address = typeof INITIALIZER_PROGRAM_ADDRESS>(input: ReplaceFeeBeneficiaryAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>, config?: {
3868
+ programAddress?: TProgramAddress;
3869
+ }): Promise<ReplaceFeeBeneficiaryInstruction<TProgramAddress, TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>>;
3870
+
3871
+ /**
3872
+ * This code was AUTOGENERATED using the Codama library.
3873
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3874
+ * to add features, then rerun Codama to update it.
3875
+ *
3876
+ * @see https://github.com/codama-idl/codama
3877
+ */
3878
+
3879
+ type SetFeePolicyInstruction<TProgram extends string = typeof INITIALIZER_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3880
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
3881
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
3882
+ ...TRemainingAccounts
3883
+ ]>;
3884
+ type SetFeePolicyInstructionDataArgs = {
3885
+ protocolFeeBps: number;
3886
+ minSwapFeeBps: number;
3887
+ maxSwapFeeBps: number;
3888
+ };
3889
+ type SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = {
3890
+ config?: Address<TAccountConfig>;
3891
+ admin: TransactionSigner<TAccountAdmin>;
3892
+ protocolFeeBps: SetFeePolicyInstructionDataArgs['protocolFeeBps'];
3893
+ minSwapFeeBps: SetFeePolicyInstructionDataArgs['minSwapFeeBps'];
3894
+ maxSwapFeeBps: SetFeePolicyInstructionDataArgs['maxSwapFeeBps'];
3895
+ };
3896
+ declare function getSetFeePolicyInstructionAsync<TAccountConfig extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof INITIALIZER_PROGRAM_ADDRESS>(input: SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>, config?: {
3897
+ programAddress?: TProgramAddress;
3898
+ }): Promise<SetFeePolicyInstruction<TProgramAddress, TAccountConfig, TAccountAdmin>>;
3899
+
3636
3900
  declare function encodeU64LE(value: bigint): Uint8Array;
3637
3901
  /**
3638
3902
  * Derive the InitConfig PDA address.
@@ -3654,6 +3918,11 @@ declare function getLaunchAddress(namespace: Address, launchId: Uint8Array, prog
3654
3918
  * Seeds: ['launch_authority', launch]
3655
3919
  */
3656
3920
  declare function getLaunchAuthorityAddress(launch: Address, programId?: Address): Promise<ProgramDerivedAddress>;
3921
+ /**
3922
+ * Derive the LaunchFeeState PDA address.
3923
+ * Seeds: ['launch_fee_state', launch]
3924
+ */
3925
+ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address): Promise<ProgramDerivedAddress>;
3657
3926
  /**
3658
3927
  * Convenience helper for the common pattern: embed a u64 into a 32-byte launch_id.
3659
3928
  */
@@ -3688,9 +3957,13 @@ declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAcc
3688
3957
  * - migratorProgram is omitted — it is derived from accounts.migratorProgram
3689
3958
  * so callers do not need to repeat it in both the accounts object and args.
3690
3959
  */
3691
- type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allowSell' | 'hookProgram' | 'migratorProgram' | 'hookCreateRemainingAccountsLen' | 'hookCreateRemainingAccountsHash'> & {
3960
+ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allowSell' | 'hookProgram' | 'migratorProgram' | 'hookCreateRemainingAccountsLen' | 'hookCreateRemainingAccountsHash' | 'swapFeeBps' | 'feeBeneficiaries'> & {
3692
3961
  allowBuy: boolean;
3693
3962
  allowSell: boolean;
3963
+ swapFeeBps?: number;
3964
+ /** @deprecated Use swapFeeBps. */
3965
+ curveFeeBps?: number;
3966
+ feeBeneficiaries?: InitializeLaunchArgsArgs['feeBeneficiaries'];
3694
3967
  hookProgram?: Address;
3695
3968
  hookCreateRemainingAccountsLen?: number;
3696
3969
  hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
@@ -3713,6 +3986,7 @@ interface InitializeLaunchAccounts {
3713
3986
  quoteMint: Address;
3714
3987
  baseVault: AddressOrSigner$2;
3715
3988
  quoteVault: AddressOrSigner$2;
3989
+ launchFeeState?: Address;
3716
3990
  payer: AddressOrSigner$2;
3717
3991
  authority?: AddressOrSigner$2;
3718
3992
  hookProgram?: Address;
@@ -3750,6 +4024,7 @@ interface CurveSwapExactInAccounts {
3750
4024
  user: AddressOrSigner$1;
3751
4025
  /** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */
3752
4026
  hookProgram?: Address;
4027
+ launchFeeState: Address;
3753
4028
  baseTokenProgram?: Address;
3754
4029
  quoteTokenProgram?: Address;
3755
4030
  remainingAccounts?: RemainingAccount$1[];
@@ -3769,6 +4044,7 @@ interface MigrateLaunchAccounts {
3769
4044
  quoteMint: Address;
3770
4045
  baseVault: Address;
3771
4046
  quoteVault: Address;
4047
+ launchFeeState: Address;
3772
4048
  migratorProgram: Address;
3773
4049
  payer: AddressOrSigner;
3774
4050
  baseTokenProgram?: Address;
@@ -3785,6 +4061,7 @@ interface PreviewSwapExactInResult {
3785
4061
  }
3786
4062
  interface PreviewSwapExactInAccounts {
3787
4063
  launch: Address;
4064
+ launchFeeState: Address;
3788
4065
  baseVault: Address;
3789
4066
  quoteVault: Address;
3790
4067
  hookProgram?: Address;
@@ -3885,9 +4162,14 @@ type index$3_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookup
3885
4162
  declare const index$3_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
3886
4163
  declare const index$3_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
3887
4164
  declare const index$3_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
4165
+ type index$3_ClaimFeesAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountRecipient extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = ClaimFeesAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountRecipient, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
3888
4166
  type index$3_CurveSwapExactInAccounts = CurveSwapExactInAccounts;
3889
4167
  declare const index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND;
3890
4168
  declare const index$3_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH;
4169
+ type index$3_FeeBeneficiary = FeeBeneficiary;
4170
+ type index$3_FeeBeneficiaryArgs = FeeBeneficiaryArgs;
4171
+ type index$3_FeeBeneficiaryInput = FeeBeneficiaryInput;
4172
+ type index$3_FeeBeneficiaryInputArgs = FeeBeneficiaryInputArgs;
3891
4173
  type index$3_FetchLaunchesConfig = FetchLaunchesConfig;
3892
4174
  declare const index$3_HF_AFTER_CREATE: typeof HF_AFTER_CREATE;
3893
4175
  declare const index$3_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE;
@@ -3897,6 +4179,7 @@ declare const index$3_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE;
3897
4179
  declare const index$3_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP;
3898
4180
  declare const index$3_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS;
3899
4181
  declare const index$3_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE;
4182
+ type index$3_HarvestMigratedFeesAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPool extends string = string, TAccountLaunchLpPosition extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountCpmmProgram extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = HarvestMigratedFeesAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLaunchLpPosition, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountCpmmProgram, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
3900
4183
  declare const index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS;
3901
4184
  declare const index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
3902
4185
  declare const index$3_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
@@ -3908,6 +4191,8 @@ type index$3_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
3908
4191
  type index$3_InitializeLaunchAccounts = InitializeLaunchAccounts;
3909
4192
  type index$3_InitializeLaunchArgs = InitializeLaunchArgs;
3910
4193
  type index$3_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
4194
+ type index$3_LaunchFeeState = LaunchFeeState;
4195
+ type index$3_LaunchFeeStateArgs = LaunchFeeStateArgs;
3911
4196
  type index$3_LaunchWithAddress = LaunchWithAddress;
3912
4197
  declare const index$3_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST;
3913
4198
  declare const index$3_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST;
@@ -3921,9 +4206,12 @@ type index$3_PreviewMigrationAccounts = PreviewMigrationAccounts;
3921
4206
  type index$3_PreviewMigrationResult = PreviewMigrationResult;
3922
4207
  type index$3_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts;
3923
4208
  type index$3_PreviewSwapExactInResult = PreviewSwapExactInResult;
4209
+ type index$3_ReplaceFeeBeneficiaryAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountCurrentBeneficiary extends string = string> = ReplaceFeeBeneficiaryAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>;
3924
4210
  declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
3925
4211
  declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
3926
4212
  declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
4213
+ declare const index$3_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
4214
+ type index$3_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
3927
4215
  type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
3928
4216
  type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
3929
4217
  declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
@@ -3944,7 +4232,9 @@ declare const index$3_decodePreviewSwapExactInResult: typeof decodePreviewSwapEx
3944
4232
  declare const index$3_encodeU64LE: typeof encodeU64LE;
3945
4233
  declare const index$3_fetchAllLaunches: typeof fetchAllLaunches;
3946
4234
  declare const index$3_fetchLaunchesByAuthority: typeof fetchLaunchesByAuthority;
4235
+ declare const index$3_getClaimFeesInstructionAsync: typeof getClaimFeesInstructionAsync;
3947
4236
  declare const index$3_getConfigAddress: typeof getConfigAddress;
4237
+ declare const index$3_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
3948
4238
  declare const index$3_getInitConfigCodec: typeof getInitConfigCodec;
3949
4239
  declare const index$3_getInitConfigDecoder: typeof getInitConfigDecoder;
3950
4240
  declare const index$3_getInitConfigEncoder: typeof getInitConfigEncoder;
@@ -3957,13 +4247,19 @@ declare const index$3_getInitializeLaunchArgsEncoder: typeof getInitializeLaunch
3957
4247
  declare const index$3_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses;
3958
4248
  declare const index$3_getLaunchAddress: typeof getLaunchAddress;
3959
4249
  declare const index$3_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress;
4250
+ declare const index$3_getLaunchFeeStateAddress: typeof getLaunchFeeStateAddress;
4251
+ declare const index$3_getLaunchFeeStateCodec: typeof getLaunchFeeStateCodec;
4252
+ declare const index$3_getLaunchFeeStateDecoder: typeof getLaunchFeeStateDecoder;
4253
+ declare const index$3_getLaunchFeeStateEncoder: typeof getLaunchFeeStateEncoder;
3960
4254
  declare const index$3_getProgramDataAddress: typeof getProgramDataAddress;
4255
+ declare const index$3_getReplaceFeeBeneficiaryInstructionAsync: typeof getReplaceFeeBeneficiaryInstructionAsync;
4256
+ declare const index$3_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyInstructionAsync;
3961
4257
  declare const index$3_getTokenMetadataAddress: typeof getTokenMetadataAddress;
3962
4258
  declare const index$3_launchExists: typeof launchExists;
3963
4259
  declare const index$3_launchIdFromU64: typeof launchIdFromU64;
3964
4260
  declare const index$3_phaseLabel: typeof phaseLabel;
3965
4261
  declare namespace index$3 {
3966
- 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_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, 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_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, 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_HOOK_NO_CHANGE as HOOK_NO_CHANGE, 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 index$3_InitConfig as InitConfig, type index$3_InitConfigArgs 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$1 as Launch, type LaunchArgs$1 as LaunchArgs, 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$1 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, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, 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, 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_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_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_getConfigAddress as getConfigAddress, index$3_getInitConfigCodec as getInitConfigCodec, index$3_getInitConfigDecoder as getInitConfigDecoder, index$3_getInitConfigEncoder as getInitConfigEncoder, 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$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_phaseLabel as phaseLabel };
4262
+ 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_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, 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_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, 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, 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_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 index$3_InitConfig as InitConfig, type index$3_InitConfigArgs 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$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$3_LaunchFeeState as LaunchFeeState, type index$3_LaunchFeeStateArgs as LaunchFeeStateArgs, 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$1 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, 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, 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_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_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_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, index$3_getInitConfigCodec as getInitConfigCodec, index$3_getInitConfigDecoder as getInitConfigDecoder, index$3_getInitConfigEncoder as getInitConfigEncoder, 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$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 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_phaseLabel as phaseLabel };
3967
4263
  }
3968
4264
 
3969
4265
  /**
@@ -4630,7 +4926,7 @@ type Launch = {
4630
4926
  baseForCurve: bigint;
4631
4927
  curveVirtualBase: bigint;
4632
4928
  curveVirtualQuote: bigint;
4633
- curveFeeBps: number;
4929
+ swapFeeBps: number;
4634
4930
  pad1: ReadonlyUint8Array;
4635
4931
  allowBuy: number;
4636
4932
  allowSell: number;
@@ -4667,7 +4963,7 @@ type LaunchArgs = {
4667
4963
  baseForCurve: number | bigint;
4668
4964
  curveVirtualBase: number | bigint;
4669
4965
  curveVirtualQuote: number | bigint;
4670
- curveFeeBps: number;
4966
+ swapFeeBps: number;
4671
4967
  pad1: ReadonlyUint8Array;
4672
4968
  allowBuy: number;
4673
4969
  allowSell: number;