@whetstone-research/doppler-sdk 1.0.25 → 1.0.27
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.
- package/README.md +20 -8
- package/dist/{chunk-BESE77DM.js → chunk-RVDRWCJN.js} +3 -3
- package/dist/{chunk-BESE77DM.js.map → chunk-RVDRWCJN.js.map} +1 -1
- package/dist/{chunk-Y6TJIH33.cjs → chunk-U6B52TBT.cjs} +13 -4
- package/dist/chunk-U6B52TBT.cjs.map +1 -0
- package/dist/{chunk-ZUJKBFXW.js → chunk-WD5VOZGI.js} +8 -5
- package/dist/chunk-WD5VOZGI.js.map +1 -0
- package/dist/{chunk-KJ6W44WF.cjs → chunk-XTL2GBZ4.cjs} +36 -36
- package/dist/{chunk-KJ6W44WF.cjs.map → chunk-XTL2GBZ4.cjs.map} +1 -1
- package/dist/evm/index.cjs +252 -68
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +46 -6
- package/dist/evm/index.d.ts +46 -6
- package/dist/evm/index.js +251 -69
- package/dist/evm/index.js.map +1 -1
- package/dist/{pda-A4PIAS5Y.cjs → pda-H6VMGONM.cjs} +17 -17
- package/dist/pda-H6VMGONM.cjs.map +1 -0
- package/dist/{pda-JVAD45XJ.js → pda-UJLXCO6I.js} +3 -3
- package/dist/pda-UJLXCO6I.js.map +1 -0
- package/dist/solana/index.cjs +1250 -825
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +444 -279
- package/dist/solana/index.d.ts +444 -279
- package/dist/solana/index.js +917 -493
- package/dist/solana/index.js.map +1 -1
- package/dist/solana/react/index.cjs +45 -45
- package/dist/solana/react/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-Y6TJIH33.cjs.map +0 -1
- package/dist/chunk-ZUJKBFXW.js.map +0 -1
- package/dist/pda-A4PIAS5Y.cjs.map +0 -1
- package/dist/pda-JVAD45XJ.js.map +0 -1
package/dist/solana/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, 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,
|
|
2
|
+
import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, 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, OptionOrNullable, Option, TransactionMessage, TransactionMessageWithFeePayer } from '@solana/kit';
|
|
3
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, 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, 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.js';
|
|
4
4
|
import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
|
|
5
|
-
import * as _solana_addresses from '@solana/addresses';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* @deprecated Use DEVNET_CPMM_PROGRAM_ID or pass an explicit deployment.
|
|
@@ -2148,7 +2147,7 @@ type ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_
|
|
|
2148
2147
|
};
|
|
2149
2148
|
declare function parseWithdrawVaultExcessInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
|
|
2150
2149
|
|
|
2151
|
-
type RemainingAccount$
|
|
2150
|
+
type RemainingAccount$3 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
2152
2151
|
/**
|
|
2153
2152
|
* Helper to create swap instruction with simplified parameters
|
|
2154
2153
|
*/
|
|
@@ -2167,7 +2166,7 @@ declare function createSwapInstruction(params: {
|
|
|
2167
2166
|
minAmountOut: bigint;
|
|
2168
2167
|
tradeDirection: TradeDirection;
|
|
2169
2168
|
oracle?: Address;
|
|
2170
|
-
remainingAccounts?: RemainingAccount$
|
|
2169
|
+
remainingAccounts?: RemainingAccount$3[];
|
|
2171
2170
|
updateOracle?: boolean;
|
|
2172
2171
|
token0Program?: Address;
|
|
2173
2172
|
token1Program?: Address;
|
|
@@ -3162,7 +3161,15 @@ declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgs
|
|
|
3162
3161
|
declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
|
|
3163
3162
|
declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
|
|
3164
3163
|
|
|
3165
|
-
|
|
3164
|
+
/**
|
|
3165
|
+
* Default Doppler native cosigner hook program for devnet deployments.
|
|
3166
|
+
*
|
|
3167
|
+
* The generated COSIGNER_HOOK_PROGRAM_ADDRESS reflects the IDL's generic
|
|
3168
|
+
* cosigner hook deployment. Pass an explicit programAddress to generated
|
|
3169
|
+
* instructions when targeting a custom/integrator hook deployment.
|
|
3170
|
+
*/
|
|
3171
|
+
declare const DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: Address;
|
|
3172
|
+
declare const COSIGNER_HOOK_PROGRAM_ID: Address;
|
|
3166
3173
|
declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
|
|
3167
3174
|
declare const MAX_COSIGNERS = 32;
|
|
3168
3175
|
declare const GATE_EXPIRY_DISABLED = 0;
|
|
@@ -3196,10 +3203,19 @@ type CosignerGateStatus = {
|
|
|
3196
3203
|
expiryValue: bigint;
|
|
3197
3204
|
reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode';
|
|
3198
3205
|
};
|
|
3206
|
+
type CosignerHookRemainingAccounts = {
|
|
3207
|
+
signedHookRemainingAccounts: [Address, TransactionSigner];
|
|
3208
|
+
unsignedHookRemainingAccounts: [Address, Address];
|
|
3209
|
+
hookRemainingAccountsHash: Uint8Array;
|
|
3210
|
+
};
|
|
3199
3211
|
declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array;
|
|
3200
3212
|
declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null;
|
|
3201
3213
|
declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus;
|
|
3202
3214
|
declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean;
|
|
3215
|
+
declare function getCosignerHookRemainingAccounts({ namespace, cosigner, }: {
|
|
3216
|
+
namespace: Address;
|
|
3217
|
+
cosigner: TransactionSigner;
|
|
3218
|
+
}): CosignerHookRemainingAccounts;
|
|
3203
3219
|
|
|
3204
3220
|
declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3205
3221
|
|
|
@@ -3235,6 +3251,8 @@ type index$4_CosignerHookPlugin = CosignerHookPlugin;
|
|
|
3235
3251
|
type index$4_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
|
|
3236
3252
|
type index$4_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
|
|
3237
3253
|
type index$4_CosignerHookPluginRequirements = CosignerHookPluginRequirements;
|
|
3254
|
+
type index$4_CosignerHookRemainingAccounts = CosignerHookRemainingAccounts;
|
|
3255
|
+
declare const index$4_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: typeof DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID;
|
|
3238
3256
|
declare const index$4_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
|
|
3239
3257
|
declare const index$4_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
|
|
3240
3258
|
declare const index$4_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
|
|
@@ -3293,6 +3311,7 @@ declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
|
|
|
3293
3311
|
declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
|
|
3294
3312
|
declare const index$4_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
|
|
3295
3313
|
declare const index$4_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
|
|
3314
|
+
declare const index$4_getCosignerHookRemainingAccounts: typeof getCosignerHookRemainingAccounts;
|
|
3296
3315
|
declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
|
|
3297
3316
|
declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
|
|
3298
3317
|
declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
|
|
@@ -3324,7 +3343,7 @@ declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeCo
|
|
|
3324
3343
|
declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
|
|
3325
3344
|
declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
|
|
3326
3345
|
declare namespace index$4 {
|
|
3327
|
-
export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
|
|
3346
|
+
export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, type index$4_CosignerHookRemainingAccounts as CosignerHookRemainingAccounts, index$4_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID as DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, index$4_getCosignerHookRemainingAccounts as getCosignerHookRemainingAccounts, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
|
|
3328
3347
|
}
|
|
3329
3348
|
|
|
3330
3349
|
/**
|
|
@@ -3952,25 +3971,25 @@ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address):
|
|
|
3952
3971
|
*/
|
|
3953
3972
|
declare function launchIdFromU64(launchId: bigint): Uint8Array;
|
|
3954
3973
|
|
|
3955
|
-
type AddressOrSigner$
|
|
3974
|
+
type AddressOrSigner$6 = Address | TransactionSigner;
|
|
3956
3975
|
interface InitializeConfigAccounts {
|
|
3957
|
-
admin: AddressOrSigner$
|
|
3976
|
+
admin: AddressOrSigner$6;
|
|
3958
3977
|
config: Address;
|
|
3959
3978
|
programData: Address;
|
|
3960
3979
|
systemProgram?: Address;
|
|
3961
3980
|
}
|
|
3962
3981
|
declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
|
|
3963
3982
|
|
|
3964
|
-
type AddressOrSigner$
|
|
3983
|
+
type AddressOrSigner$5 = Address | TransactionSigner;
|
|
3965
3984
|
interface SetMigratorAllowlistAccounts {
|
|
3966
|
-
admin: AddressOrSigner$
|
|
3985
|
+
admin: AddressOrSigner$5;
|
|
3967
3986
|
config: Address;
|
|
3968
3987
|
}
|
|
3969
3988
|
declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
|
|
3970
3989
|
|
|
3971
|
-
type AddressOrSigner$
|
|
3990
|
+
type AddressOrSigner$4 = Address | TransactionSigner;
|
|
3972
3991
|
interface SetHookAllowlistAccounts {
|
|
3973
|
-
admin: AddressOrSigner$
|
|
3992
|
+
admin: AddressOrSigner$4;
|
|
3974
3993
|
config: Address;
|
|
3975
3994
|
}
|
|
3976
3995
|
declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
|
|
@@ -3991,8 +4010,8 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
|
|
|
3991
4010
|
hookCreateRemainingAccountsLen?: number;
|
|
3992
4011
|
hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
|
|
3993
4012
|
};
|
|
3994
|
-
type AddressOrSigner$
|
|
3995
|
-
type ReadonlyRemainingAccount = AddressOrSigner$
|
|
4013
|
+
type AddressOrSigner$3 = Address | TransactionSigner;
|
|
4014
|
+
type ReadonlyRemainingAccount = AddressOrSigner$3;
|
|
3996
4015
|
/**
|
|
3997
4016
|
* Derive the Metaplex token metadata PDA for a given mint.
|
|
3998
4017
|
* Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint]
|
|
@@ -4005,13 +4024,13 @@ interface InitializeLaunchAccounts {
|
|
|
4005
4024
|
config: Address;
|
|
4006
4025
|
launch: Address;
|
|
4007
4026
|
launchAuthority: Address;
|
|
4008
|
-
baseMint: AddressOrSigner$
|
|
4027
|
+
baseMint: AddressOrSigner$3;
|
|
4009
4028
|
quoteMint: Address;
|
|
4010
|
-
baseVault: AddressOrSigner$
|
|
4011
|
-
quoteVault: AddressOrSigner$
|
|
4029
|
+
baseVault: AddressOrSigner$3;
|
|
4030
|
+
quoteVault: AddressOrSigner$3;
|
|
4012
4031
|
launchFeeState?: Address;
|
|
4013
|
-
payer: AddressOrSigner$
|
|
4014
|
-
authority?: AddressOrSigner$
|
|
4032
|
+
payer: AddressOrSigner$3;
|
|
4033
|
+
authority?: AddressOrSigner$3;
|
|
4015
4034
|
hookProgram?: Address;
|
|
4016
4035
|
migratorProgram?: Address;
|
|
4017
4036
|
baseTokenProgram?: Address;
|
|
@@ -4032,8 +4051,8 @@ interface InitializeLaunchAccounts {
|
|
|
4032
4051
|
}
|
|
4033
4052
|
declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise<Instruction>;
|
|
4034
4053
|
|
|
4035
|
-
type AddressOrSigner$
|
|
4036
|
-
type RemainingAccount$
|
|
4054
|
+
type AddressOrSigner$2 = Address | TransactionSigner;
|
|
4055
|
+
type RemainingAccount$2 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4037
4056
|
interface CurveSwapExactInAccounts {
|
|
4038
4057
|
launch: Address;
|
|
4039
4058
|
launchAuthority: Address;
|
|
@@ -4043,13 +4062,13 @@ interface CurveSwapExactInAccounts {
|
|
|
4043
4062
|
userQuoteAccount: Address;
|
|
4044
4063
|
baseMint: Address;
|
|
4045
4064
|
quoteMint: Address;
|
|
4046
|
-
user: AddressOrSigner$
|
|
4065
|
+
user: AddressOrSigner$2;
|
|
4047
4066
|
/** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */
|
|
4048
4067
|
hookProgram?: Address;
|
|
4049
4068
|
launchFeeState: Address;
|
|
4050
4069
|
baseTokenProgram?: Address;
|
|
4051
4070
|
quoteTokenProgram?: Address;
|
|
4052
|
-
remainingAccounts?: RemainingAccount$
|
|
4071
|
+
remainingAccounts?: RemainingAccount$2[];
|
|
4053
4072
|
}
|
|
4054
4073
|
declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
|
|
4055
4074
|
amountIn: bigint;
|
|
@@ -4057,7 +4076,7 @@ declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAcc
|
|
|
4057
4076
|
tradeDirection: number;
|
|
4058
4077
|
}, programId?: Address): Instruction;
|
|
4059
4078
|
|
|
4060
|
-
type AddressOrSigner = Address | TransactionSigner;
|
|
4079
|
+
type AddressOrSigner$1 = Address | TransactionSigner;
|
|
4061
4080
|
interface MigrateLaunchAccounts {
|
|
4062
4081
|
config: Address;
|
|
4063
4082
|
launch: Address;
|
|
@@ -4068,7 +4087,7 @@ interface MigrateLaunchAccounts {
|
|
|
4068
4087
|
quoteVault: Address;
|
|
4069
4088
|
launchFeeState: Address;
|
|
4070
4089
|
migratorProgram: Address;
|
|
4071
|
-
payer: AddressOrSigner;
|
|
4090
|
+
payer: AddressOrSigner$1;
|
|
4072
4091
|
baseTokenProgram?: Address;
|
|
4073
4092
|
quoteTokenProgram?: Address;
|
|
4074
4093
|
systemProgram?: Address;
|
|
@@ -4076,7 +4095,7 @@ interface MigrateLaunchAccounts {
|
|
|
4076
4095
|
}
|
|
4077
4096
|
declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction;
|
|
4078
4097
|
|
|
4079
|
-
type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4098
|
+
type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4080
4099
|
interface PreviewSwapExactInResult {
|
|
4081
4100
|
amountOut: bigint;
|
|
4082
4101
|
feePaid: bigint;
|
|
@@ -4087,7 +4106,7 @@ interface PreviewSwapExactInAccounts {
|
|
|
4087
4106
|
baseVault: Address;
|
|
4088
4107
|
quoteVault: Address;
|
|
4089
4108
|
hookProgram?: Address;
|
|
4090
|
-
remainingAccounts?: RemainingAccount[];
|
|
4109
|
+
remainingAccounts?: RemainingAccount$1[];
|
|
4091
4110
|
}
|
|
4092
4111
|
declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
|
|
4093
4112
|
amountIn: bigint;
|
|
@@ -4109,209 +4128,19 @@ interface PreviewMigrationAccounts {
|
|
|
4109
4128
|
declare function createPreviewMigrationInstruction(accounts: PreviewMigrationAccounts, programId?: Address): Instruction;
|
|
4110
4129
|
declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigrationResult;
|
|
4111
4130
|
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
* programs/initializer/src/instructions/launch_common.rs.
|
|
4119
|
-
*
|
|
4120
|
-
* Commit the result as hookRemainingAccountsHash or migratorRemainingAccountsHash
|
|
4121
|
-
* when calling initializeLaunch. At migrate_launch (or hook invoke) time, pass the
|
|
4122
|
-
* same accounts in the same order as remaining accounts — the program verifies they match.
|
|
4123
|
-
*
|
|
4124
|
-
* For an empty account list use EMPTY_REMAINING_ACCOUNTS_HASH instead.
|
|
4125
|
-
*/
|
|
4126
|
-
declare function computeRemainingAccountsHash(addresses: Address[]): Uint8Array;
|
|
4127
|
-
/**
|
|
4128
|
-
* Returns a human-readable label for a launch phase value.
|
|
4129
|
-
* Falls back to the numeric string for any unrecognised phase.
|
|
4130
|
-
*/
|
|
4131
|
-
declare function phaseLabel(phase: number): string;
|
|
4132
|
-
|
|
4133
|
-
declare const DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND = 20;
|
|
4134
|
-
declare function getInstructionLookupTableAddresses(instructions: Instruction | readonly Instruction[]): Address[];
|
|
4135
|
-
interface BuildAddressLookupTableSetupInstructionsInput {
|
|
4136
|
-
authority: TransactionSigner;
|
|
4137
|
-
payer: TransactionSigner;
|
|
4138
|
-
recentSlot: number | bigint;
|
|
4139
|
-
addresses: readonly Address[];
|
|
4140
|
-
addressesPerExtendInstruction?: number;
|
|
4141
|
-
}
|
|
4142
|
-
interface BuildAddressLookupTableSetupInstructionsResult {
|
|
4143
|
-
lookupTableAddress: Address;
|
|
4144
|
-
createInstruction: Instruction;
|
|
4145
|
-
extendInstructions: Instruction[];
|
|
4146
|
-
addresses: Address[];
|
|
4147
|
-
}
|
|
4148
|
-
declare function buildAddressLookupTableSetupInstructions({ authority, payer, recentSlot, addresses, addressesPerExtendInstruction, }: BuildAddressLookupTableSetupInstructionsInput): Promise<BuildAddressLookupTableSetupInstructionsResult>;
|
|
4149
|
-
declare function compressTransactionMessageWithLookupTable<TTransactionMessage extends Exclude<TransactionMessage, {
|
|
4150
|
-
version: 'legacy';
|
|
4151
|
-
}>>(transactionMessage: TTransactionMessage, { lookupTableAddress, addresses, }: {
|
|
4152
|
-
lookupTableAddress: Address;
|
|
4153
|
-
addresses: readonly Address[];
|
|
4154
|
-
}): TTransactionMessage | (TTransactionMessage extends {
|
|
4155
|
-
readonly instructions: readonly (infer TInstruction extends Instruction)[];
|
|
4156
|
-
} ? Omit<TTransactionMessage, "instructions"> & {
|
|
4157
|
-
readonly instructions: readonly (TInstruction extends Instruction<infer TProgramAddress extends string, infer TAccounts extends readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]> ? Instruction<TProgramAddress, { [K in keyof TAccounts]: TAccounts[K] extends _solana_kit.AccountMeta<infer TAddress extends string> ? _solana_kit.AccountMeta<TAddress> | _solana_kit.AccountLookupMeta<TAddress, string> : TAccounts[K]; }> : TInstruction)[];
|
|
4158
|
-
} : TTransactionMessage);
|
|
4159
|
-
|
|
4160
|
-
declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
|
|
4161
|
-
interface TransactionSizeReport {
|
|
4162
|
-
size: number;
|
|
4163
|
-
limit: number;
|
|
4164
|
-
overBy: number;
|
|
4165
|
-
fits: boolean;
|
|
4166
|
-
}
|
|
4167
|
-
interface TransactionSizeAssertOptions {
|
|
4168
|
-
label?: string;
|
|
4169
|
-
metadataBytes?: number;
|
|
4170
|
-
}
|
|
4171
|
-
type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer;
|
|
4172
|
-
declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport;
|
|
4173
|
-
declare function measureTransactionMessageSizeWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
|
|
4174
|
-
version: 'legacy';
|
|
4175
|
-
}>>(transactionMessage: TTransactionMessage, lookupTable: {
|
|
4176
|
-
lookupTableAddress: Address;
|
|
4177
|
-
addresses: readonly Address[];
|
|
4178
|
-
}): TransactionSizeReport;
|
|
4179
|
-
declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport;
|
|
4180
|
-
declare function assertTransactionMessageFitsWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
|
|
4181
|
-
version: 'legacy';
|
|
4182
|
-
}>>(transactionMessage: TTransactionMessage, lookupTable: {
|
|
4183
|
-
lookupTableAddress: Address;
|
|
4184
|
-
addresses: readonly Address[];
|
|
4185
|
-
}, options?: TransactionSizeAssertOptions): TransactionSizeReport;
|
|
4186
|
-
|
|
4187
|
-
/**
|
|
4188
|
-
* Launch fetching functions for the Initializer SDK
|
|
4189
|
-
*/
|
|
4190
|
-
|
|
4191
|
-
interface FetchLaunchesConfig {
|
|
4192
|
-
programId?: Address;
|
|
4193
|
-
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
4194
|
-
}
|
|
4195
|
-
interface LaunchWithAddress {
|
|
4196
|
-
address: Address;
|
|
4197
|
-
account: Launch$1;
|
|
4131
|
+
interface SolanaCpmmProgramAddresses {
|
|
4132
|
+
cpmmProgram: Address;
|
|
4133
|
+
initializerProgram: Address;
|
|
4134
|
+
cpmmMigratorProgram: Address;
|
|
4135
|
+
cpmmHookProgram: Address;
|
|
4136
|
+
cosignerHookProgram: Address;
|
|
4198
4137
|
}
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
* Fetch launches filtered by Launch.authority (offset 8).
|
|
4203
|
-
* Note: Permissionless launches have authority == Pubkey::default().
|
|
4204
|
-
*/
|
|
4205
|
-
declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority: Address, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
|
|
4206
|
-
declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise<boolean>;
|
|
4207
|
-
|
|
4208
|
-
declare const index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
|
|
4209
|
-
type index$3_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
|
|
4210
|
-
type index$3_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
|
|
4211
|
-
declare const index$3_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
|
|
4212
|
-
declare const index$3_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
|
|
4213
|
-
declare const index$3_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
|
|
4214
|
-
type index$3_ClaimFeesAsyncInput<TAccountConfig extends string = string, 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, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = ClaimFeesAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
|
|
4215
|
-
type index$3_CurveSwapExactInAccounts = CurveSwapExactInAccounts;
|
|
4216
|
-
declare const index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND;
|
|
4217
|
-
declare const index$3_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH;
|
|
4218
|
-
type index$3_FeeBeneficiary = FeeBeneficiary;
|
|
4219
|
-
type index$3_FeeBeneficiaryArgs = FeeBeneficiaryArgs;
|
|
4220
|
-
type index$3_FeeBeneficiaryInput = FeeBeneficiaryInput;
|
|
4221
|
-
type index$3_FeeBeneficiaryInputArgs = FeeBeneficiaryInputArgs;
|
|
4222
|
-
type index$3_FetchLaunchesConfig = FetchLaunchesConfig;
|
|
4223
|
-
declare const index$3_HF_AFTER_CREATE: typeof HF_AFTER_CREATE;
|
|
4224
|
-
declare const index$3_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE;
|
|
4225
|
-
declare const index$3_HF_AFTER_SWAP: typeof HF_AFTER_SWAP;
|
|
4226
|
-
declare const index$3_HF_BEFORE_CREATE: typeof HF_BEFORE_CREATE;
|
|
4227
|
-
declare const index$3_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE;
|
|
4228
|
-
declare const index$3_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP;
|
|
4229
|
-
declare const index$3_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS;
|
|
4230
|
-
declare const index$3_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE;
|
|
4231
|
-
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>;
|
|
4232
|
-
declare const index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS;
|
|
4233
|
-
declare const index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
|
|
4234
|
-
declare const index$3_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
|
|
4235
|
-
type index$3_InitializeConfigAccounts = InitializeConfigAccounts;
|
|
4236
|
-
type index$3_InitializeConfigArgs = InitializeConfigArgs;
|
|
4237
|
-
type index$3_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
|
|
4238
|
-
type index$3_InitializeLaunchAccounts = InitializeLaunchAccounts;
|
|
4239
|
-
type index$3_InitializeLaunchArgs = InitializeLaunchArgs;
|
|
4240
|
-
type index$3_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
|
|
4241
|
-
type index$3_LaunchFeeState = LaunchFeeState;
|
|
4242
|
-
type index$3_LaunchFeeStateArgs = LaunchFeeStateArgs;
|
|
4243
|
-
type index$3_LaunchWithAddress = LaunchWithAddress;
|
|
4244
|
-
declare const index$3_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST;
|
|
4245
|
-
declare const index$3_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST;
|
|
4246
|
-
declare const index$3_MAX_PAYLOAD: typeof MAX_PAYLOAD;
|
|
4247
|
-
type index$3_MigrateLaunchAccounts = MigrateLaunchAccounts;
|
|
4248
|
-
declare const index$3_PHASE_ABORTED: typeof PHASE_ABORTED;
|
|
4249
|
-
declare const index$3_PHASE_MIGRATED: typeof PHASE_MIGRATED;
|
|
4250
|
-
declare const index$3_PHASE_TRADING: typeof PHASE_TRADING;
|
|
4251
|
-
declare const index$3_PREDICTION_HOOK_PROGRAM_ID: typeof PREDICTION_HOOK_PROGRAM_ID;
|
|
4252
|
-
type index$3_PreviewMigrationAccounts = PreviewMigrationAccounts;
|
|
4253
|
-
type index$3_PreviewMigrationResult = PreviewMigrationResult;
|
|
4254
|
-
type index$3_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts;
|
|
4255
|
-
type index$3_PreviewSwapExactInResult = PreviewSwapExactInResult;
|
|
4256
|
-
type index$3_ReplaceFeeBeneficiaryAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountCurrentBeneficiary extends string = string> = ReplaceFeeBeneficiaryAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>;
|
|
4257
|
-
declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
|
|
4258
|
-
declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
|
|
4259
|
-
declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
|
|
4260
|
-
declare const index$3_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
|
|
4261
|
-
declare const index$3_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT;
|
|
4262
|
-
type index$3_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
|
|
4263
|
-
type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
|
|
4264
|
-
type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
|
|
4265
|
-
declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
|
|
4266
|
-
declare const index$3_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
|
|
4267
|
-
type index$3_TransactionSizeAssertOptions = TransactionSizeAssertOptions;
|
|
4268
|
-
type index$3_TransactionSizeReport = TransactionSizeReport;
|
|
4269
|
-
declare const index$3_assertTransactionMessageFits: typeof assertTransactionMessageFits;
|
|
4270
|
-
declare const index$3_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable;
|
|
4271
|
-
declare const index$3_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
|
|
4272
|
-
declare const index$3_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
|
|
4273
|
-
declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
|
|
4274
|
-
declare const index$3_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction;
|
|
4275
|
-
declare const index$3_createInitializeConfigInstruction: typeof createInitializeConfigInstruction;
|
|
4276
|
-
declare const index$3_createInitializeLaunchInstruction: typeof createInitializeLaunchInstruction;
|
|
4277
|
-
declare const index$3_createMigrateLaunchInstruction: typeof createMigrateLaunchInstruction;
|
|
4278
|
-
declare const index$3_createPreviewMigrationInstruction: typeof createPreviewMigrationInstruction;
|
|
4279
|
-
declare const index$3_createPreviewSwapExactInInstruction: typeof createPreviewSwapExactInInstruction;
|
|
4280
|
-
declare const index$3_createSetHookAllowlistInstruction: typeof createSetHookAllowlistInstruction;
|
|
4281
|
-
declare const index$3_createSetMigratorAllowlistInstruction: typeof createSetMigratorAllowlistInstruction;
|
|
4282
|
-
declare const index$3_decodePreviewMigrationResult: typeof decodePreviewMigrationResult;
|
|
4283
|
-
declare const index$3_decodePreviewSwapExactInResult: typeof decodePreviewSwapExactInResult;
|
|
4284
|
-
declare const index$3_encodeU64LE: typeof encodeU64LE;
|
|
4285
|
-
declare const index$3_fetchAllLaunches: typeof fetchAllLaunches;
|
|
4286
|
-
declare const index$3_fetchLaunchesByAuthority: typeof fetchLaunchesByAuthority;
|
|
4287
|
-
declare const index$3_getClaimFeesInstructionAsync: typeof getClaimFeesInstructionAsync;
|
|
4288
|
-
declare const index$3_getConfigAddress: typeof getConfigAddress;
|
|
4289
|
-
declare const index$3_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
|
|
4290
|
-
declare const index$3_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
|
|
4291
|
-
declare const index$3_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
|
|
4292
|
-
declare const index$3_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
|
|
4293
|
-
declare const index$3_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
|
|
4294
|
-
declare const index$3_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
|
|
4295
|
-
declare const index$3_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
|
|
4296
|
-
declare const index$3_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses;
|
|
4297
|
-
declare const index$3_getLaunchAddress: typeof getLaunchAddress;
|
|
4298
|
-
declare const index$3_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress;
|
|
4299
|
-
declare const index$3_getLaunchFeeStateAddress: typeof getLaunchFeeStateAddress;
|
|
4300
|
-
declare const index$3_getLaunchFeeStateCodec: typeof getLaunchFeeStateCodec;
|
|
4301
|
-
declare const index$3_getLaunchFeeStateDecoder: typeof getLaunchFeeStateDecoder;
|
|
4302
|
-
declare const index$3_getLaunchFeeStateEncoder: typeof getLaunchFeeStateEncoder;
|
|
4303
|
-
declare const index$3_getProgramDataAddress: typeof getProgramDataAddress;
|
|
4304
|
-
declare const index$3_getReplaceFeeBeneficiaryInstructionAsync: typeof getReplaceFeeBeneficiaryInstructionAsync;
|
|
4305
|
-
declare const index$3_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyInstructionAsync;
|
|
4306
|
-
declare const index$3_getTokenMetadataAddress: typeof getTokenMetadataAddress;
|
|
4307
|
-
declare const index$3_launchExists: typeof launchExists;
|
|
4308
|
-
declare const index$3_launchIdFromU64: typeof launchIdFromU64;
|
|
4309
|
-
declare const index$3_measureTransactionMessageSize: typeof measureTransactionMessageSize;
|
|
4310
|
-
declare const index$3_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
|
|
4311
|
-
declare const index$3_phaseLabel: typeof phaseLabel;
|
|
4312
|
-
declare namespace index$3 {
|
|
4313
|
-
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 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$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, 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, 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_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, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 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_measureTransactionMessageSize as measureTransactionMessageSize, index$3_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$3_phaseLabel as phaseLabel };
|
|
4138
|
+
interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
|
|
4139
|
+
cpmmConfig: Address;
|
|
4140
|
+
initializerConfig: Address;
|
|
4314
4141
|
}
|
|
4142
|
+
declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
|
|
4143
|
+
declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
|
|
4315
4144
|
|
|
4316
4145
|
/**
|
|
4317
4146
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -4519,6 +4348,9 @@ interface CpmmMigrationRemainingAccounts {
|
|
|
4519
4348
|
hash: Uint8Array;
|
|
4520
4349
|
cpmmMigrationState: Address;
|
|
4521
4350
|
cpmmConfig: Address;
|
|
4351
|
+
adminBaseAta: Address;
|
|
4352
|
+
adminQuoteAta: Address;
|
|
4353
|
+
recipientAtas: Address[];
|
|
4522
4354
|
pool: Address;
|
|
4523
4355
|
poolAuthority: Address;
|
|
4524
4356
|
poolVault0: Address;
|
|
@@ -4534,43 +4366,390 @@ declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRem
|
|
|
4534
4366
|
declare function encodeRegisterLaunchPayload(args: RegisterLaunchArgsArgs): Uint8Array;
|
|
4535
4367
|
declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array;
|
|
4536
4368
|
|
|
4537
|
-
declare const index$
|
|
4538
|
-
declare const index$
|
|
4539
|
-
declare const index$
|
|
4540
|
-
type index$
|
|
4541
|
-
type index$
|
|
4542
|
-
type index$
|
|
4543
|
-
type index$
|
|
4544
|
-
declare const index$
|
|
4545
|
-
type index$
|
|
4546
|
-
type index$
|
|
4547
|
-
type index$
|
|
4548
|
-
type index$
|
|
4549
|
-
type index$
|
|
4550
|
-
type index$
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
declare const index$
|
|
4554
|
-
declare const index$
|
|
4555
|
-
declare const index$
|
|
4556
|
-
declare const index$
|
|
4557
|
-
declare const index$
|
|
4558
|
-
declare const index$
|
|
4559
|
-
declare const index$
|
|
4560
|
-
declare const index$
|
|
4561
|
-
declare const index$
|
|
4562
|
-
declare const index$
|
|
4563
|
-
declare const index$
|
|
4564
|
-
declare const index$
|
|
4565
|
-
declare const index$
|
|
4566
|
-
declare const index$
|
|
4567
|
-
declare const index$
|
|
4568
|
-
declare const index$
|
|
4569
|
-
declare const index$
|
|
4570
|
-
declare const index$
|
|
4571
|
-
declare const index$
|
|
4369
|
+
declare const index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS;
|
|
4370
|
+
declare const index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: typeof CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS;
|
|
4371
|
+
declare const index$3_CPMM_MIGRATOR_PROGRAM_ID: typeof CPMM_MIGRATOR_PROGRAM_ID;
|
|
4372
|
+
type index$3_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts;
|
|
4373
|
+
type index$3_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput;
|
|
4374
|
+
type index$3_CpmmMigratorState = CpmmMigratorState;
|
|
4375
|
+
type index$3_CpmmMigratorStateArgs = CpmmMigratorStateArgs;
|
|
4376
|
+
declare const index$3_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
|
|
4377
|
+
type index$3_MigrateArgs = MigrateArgs;
|
|
4378
|
+
type index$3_MigrateArgsArgs = MigrateArgsArgs;
|
|
4379
|
+
type index$3_MigratedPoolHookConfig = MigratedPoolHookConfig;
|
|
4380
|
+
type index$3_MigratedPoolHookConfigArgs = MigratedPoolHookConfigArgs;
|
|
4381
|
+
type index$3_Recipient = Recipient;
|
|
4382
|
+
type index$3_RecipientArgs = RecipientArgs;
|
|
4383
|
+
type index$3_RegisterLaunchArgs = RegisterLaunchArgs;
|
|
4384
|
+
type index$3_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
|
|
4385
|
+
declare const index$3_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
|
|
4386
|
+
declare const index$3_SEED_STATE: typeof SEED_STATE;
|
|
4387
|
+
declare const index$3_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts;
|
|
4388
|
+
declare const index$3_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash;
|
|
4389
|
+
declare const index$3_encodeMigratePayload: typeof encodeMigratePayload;
|
|
4390
|
+
declare const index$3_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload;
|
|
4391
|
+
declare const index$3_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
|
|
4392
|
+
declare const index$3_getCpmmMigrationAuthorityAddress: typeof getCpmmMigrationAuthorityAddress;
|
|
4393
|
+
declare const index$3_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAddress;
|
|
4394
|
+
declare const index$3_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec;
|
|
4395
|
+
declare const index$3_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder;
|
|
4396
|
+
declare const index$3_getCpmmMigratorStateEncoder: typeof getCpmmMigratorStateEncoder;
|
|
4397
|
+
declare const index$3_getMigrateArgsCodec: typeof getMigrateArgsCodec;
|
|
4398
|
+
declare const index$3_getMigrateArgsDecoder: typeof getMigrateArgsDecoder;
|
|
4399
|
+
declare const index$3_getMigrateArgsEncoder: typeof getMigrateArgsEncoder;
|
|
4400
|
+
declare const index$3_getRecipientCodec: typeof getRecipientCodec;
|
|
4401
|
+
declare const index$3_getRecipientDecoder: typeof getRecipientDecoder;
|
|
4402
|
+
declare const index$3_getRecipientEncoder: typeof getRecipientEncoder;
|
|
4403
|
+
declare const index$3_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCodec;
|
|
4404
|
+
declare const index$3_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
|
|
4405
|
+
declare const index$3_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
|
|
4406
|
+
declare namespace index$3 {
|
|
4407
|
+
export { index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$3_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$3_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$3_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$3_CpmmMigratorState as CpmmMigratorState, type index$3_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$3_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$3_MigrateArgs as MigrateArgs, type index$3_MigrateArgsArgs as MigrateArgsArgs, type index$3_MigratedPoolHookConfig as MigratedPoolHookConfig, type index$3_MigratedPoolHookConfigArgs as MigratedPoolHookConfigArgs, type index$3_Recipient as Recipient, type index$3_RecipientArgs as RecipientArgs, type index$3_RegisterLaunchArgs as RegisterLaunchArgs, type index$3_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$3_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$3_SEED_STATE as SEED_STATE, index$3_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$3_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$3_encodeMigratePayload as encodeMigratePayload, index$3_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$3_fetchCpmmMigratorState as fetchCpmmMigratorState, index$3_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$3_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$3_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$3_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$3_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$3_getMigrateArgsCodec as getMigrateArgsCodec, index$3_getMigrateArgsDecoder as getMigrateArgsDecoder, index$3_getMigrateArgsEncoder as getMigrateArgsEncoder, index$3_getRecipientCodec as getRecipientCodec, index$3_getRecipientDecoder as getRecipientDecoder, index$3_getRecipientEncoder as getRecipientEncoder, index$3_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$3_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$3_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
type AddressOrSigner = InitializeLaunchAccounts['baseMint'];
|
|
4411
|
+
type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4412
|
+
type LaunchTokenPrograms = {
|
|
4413
|
+
baseTokenProgram: Address;
|
|
4414
|
+
quoteTokenProgram: Address;
|
|
4415
|
+
};
|
|
4416
|
+
type LaunchSupply = {
|
|
4417
|
+
baseDecimals: number;
|
|
4418
|
+
baseTotalSupply: bigint;
|
|
4419
|
+
baseForDistribution: bigint;
|
|
4420
|
+
baseForLiquidity: bigint;
|
|
4421
|
+
};
|
|
4422
|
+
type XykCurveConfig = {
|
|
4423
|
+
curveVirtualBase: bigint;
|
|
4424
|
+
curveVirtualQuote: bigint;
|
|
4425
|
+
swapFeeBps: number;
|
|
4426
|
+
};
|
|
4427
|
+
type LaunchMetadata = {
|
|
4428
|
+
metadataName: string;
|
|
4429
|
+
metadataSymbol: string;
|
|
4430
|
+
metadataUri: string;
|
|
4431
|
+
};
|
|
4432
|
+
type CreateLaunchAccountSigners = {
|
|
4433
|
+
baseMint: AddressOrSigner;
|
|
4434
|
+
quoteMint: Address;
|
|
4435
|
+
baseVault: AddressOrSigner;
|
|
4436
|
+
quoteVault: AddressOrSigner;
|
|
4437
|
+
};
|
|
4438
|
+
type CreateLaunchHookMode = 'cpmm' | 'cosigner' | false;
|
|
4439
|
+
type CreateLaunchCpmmMigrationConfig = {
|
|
4440
|
+
enabled?: true;
|
|
4441
|
+
kind?: 'cpmm';
|
|
4442
|
+
program?: Address;
|
|
4443
|
+
cpmmProgram?: Address;
|
|
4444
|
+
admin?: Address;
|
|
4445
|
+
adminBaseAta?: Address;
|
|
4446
|
+
adminQuoteAta?: Address;
|
|
4447
|
+
recipientAtas?: ReadonlyArray<Address>;
|
|
4448
|
+
recipients?: ReadonlyArray<RecipientArgs>;
|
|
4449
|
+
minRaiseQuote?: number | bigint;
|
|
4450
|
+
minMigrationPriceQ64Opt?: number | bigint | null;
|
|
4451
|
+
migratedPoolHookConfig?: MigratedPoolHookConfigArgs | null;
|
|
4452
|
+
initialSwapFeeBps?: number;
|
|
4453
|
+
initialFeeSplitBps?: number;
|
|
4454
|
+
baseForDistribution?: number | bigint;
|
|
4455
|
+
baseForLiquidity?: number | bigint;
|
|
4456
|
+
};
|
|
4457
|
+
type CreateLaunchCustomMigrationConfig = {
|
|
4458
|
+
enabled?: true;
|
|
4459
|
+
kind: 'custom';
|
|
4460
|
+
program: Address;
|
|
4461
|
+
initPayload?: ReadonlyUint8Array;
|
|
4462
|
+
migratePayload?: ReadonlyUint8Array;
|
|
4463
|
+
cpmmConfig?: Address;
|
|
4464
|
+
initRemainingAccounts?: ReadonlyArray<RemainingAccount>;
|
|
4465
|
+
initRemainingAccountsHash?: ReadonlyUint8Array;
|
|
4466
|
+
remainingAccounts?: ReadonlyArray<RemainingAccount>;
|
|
4467
|
+
remainingAccountsHash?: ReadonlyUint8Array;
|
|
4468
|
+
};
|
|
4469
|
+
type CreateLaunchMigrationConfig = CreateLaunchCpmmMigrationConfig | CreateLaunchCustomMigrationConfig;
|
|
4470
|
+
type CreateLaunchAddresses = {
|
|
4471
|
+
config: Address;
|
|
4472
|
+
launch: Address;
|
|
4473
|
+
launchAuthority: Address;
|
|
4474
|
+
launchFeeState: Address;
|
|
4475
|
+
metadataAccount?: Address;
|
|
4476
|
+
};
|
|
4477
|
+
type DeriveCreateLaunchAddressesInput = {
|
|
4478
|
+
deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'>;
|
|
4479
|
+
programId?: Address;
|
|
4480
|
+
config?: Address;
|
|
4481
|
+
namespace: Address;
|
|
4482
|
+
launchId: Uint8Array;
|
|
4483
|
+
baseMint: AddressOrSigner;
|
|
4484
|
+
metadata?: LaunchMetadata | null;
|
|
4485
|
+
metadataAccount?: Address;
|
|
4486
|
+
};
|
|
4487
|
+
type CreateLaunchInput = {
|
|
4488
|
+
deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram' | 'cosignerHookProgram'>>;
|
|
4489
|
+
programId?: Address;
|
|
4490
|
+
config?: Address;
|
|
4491
|
+
namespace?: Address;
|
|
4492
|
+
launchId?: Uint8Array;
|
|
4493
|
+
addresses?: CreateLaunchAddresses;
|
|
4494
|
+
launchAccounts: CreateLaunchAccountSigners;
|
|
4495
|
+
payer: AddressOrSigner;
|
|
4496
|
+
authority?: AddressOrSigner;
|
|
4497
|
+
supply: LaunchSupply;
|
|
4498
|
+
curve: XykCurveConfig;
|
|
4499
|
+
tokenPrograms?: Partial<LaunchTokenPrograms>;
|
|
4500
|
+
hook?: CreateLaunchHookMode | null;
|
|
4501
|
+
cosigner?: AddressOrSigner;
|
|
4502
|
+
cosignGateExpiresAt?: bigint | number | null;
|
|
4503
|
+
migration?: boolean | CreateLaunchMigrationConfig | null;
|
|
4504
|
+
metadata?: LaunchMetadata | null;
|
|
4505
|
+
feeBeneficiaries?: InitializeLaunchParams['feeBeneficiaries'];
|
|
4506
|
+
allowBuy?: boolean;
|
|
4507
|
+
allowSell?: boolean;
|
|
4508
|
+
systemProgram?: Address;
|
|
4509
|
+
rent?: Address;
|
|
4510
|
+
metadataProgram?: Address;
|
|
4511
|
+
};
|
|
4512
|
+
type CreateLaunchResult = {
|
|
4513
|
+
namespace: Address;
|
|
4514
|
+
launchId: Uint8Array;
|
|
4515
|
+
addresses: CreateLaunchAddresses;
|
|
4516
|
+
instruction: Instruction;
|
|
4517
|
+
cpmmMigration?: CpmmMigrationRemainingAccounts;
|
|
4518
|
+
};
|
|
4519
|
+
declare const launchTokenPrograms: {
|
|
4520
|
+
readonly splToken: () => LaunchTokenPrograms;
|
|
4521
|
+
readonly token2022Base: () => LaunchTokenPrograms;
|
|
4522
|
+
};
|
|
4523
|
+
declare function createLaunchId(): Uint8Array;
|
|
4524
|
+
declare function deriveCreateLaunchAddresses(input: DeriveCreateLaunchAddressesInput): Promise<CreateLaunchAddresses>;
|
|
4525
|
+
declare function createLaunch(input: CreateLaunchInput): Promise<CreateLaunchResult>;
|
|
4526
|
+
|
|
4527
|
+
/**
|
|
4528
|
+
* Compute the remaining-accounts commitment hash used by the Initializer program.
|
|
4529
|
+
*
|
|
4530
|
+
* Algorithm: keccak256(u32_len_le || pubkey_0 || ... || pubkey_n)
|
|
4531
|
+
*
|
|
4532
|
+
* This matches compute_remaining_accounts_hash in
|
|
4533
|
+
* programs/initializer/src/instructions/launch_common.rs.
|
|
4534
|
+
*
|
|
4535
|
+
* Commit the result as hookRemainingAccountsHash or migratorRemainingAccountsHash
|
|
4536
|
+
* when calling initializeLaunch. At migrate_launch (or hook invoke) time, pass the
|
|
4537
|
+
* same accounts in the same order as remaining accounts — the program verifies they match.
|
|
4538
|
+
*
|
|
4539
|
+
* For an empty account list use EMPTY_REMAINING_ACCOUNTS_HASH instead.
|
|
4540
|
+
*/
|
|
4541
|
+
declare function computeRemainingAccountsHash(addresses: Address[]): Uint8Array;
|
|
4542
|
+
/**
|
|
4543
|
+
* Compute the fee charged by initializer bonding-curve exact-in swaps.
|
|
4544
|
+
*
|
|
4545
|
+
* The initializer program rounds swap fees up, so small non-zero trades with a
|
|
4546
|
+
* non-zero fee rate still pay at least one atom.
|
|
4547
|
+
*/
|
|
4548
|
+
declare function getCurveSwapFeeAmount(amountIn: bigint, swapFeeBps: number): bigint;
|
|
4549
|
+
/**
|
|
4550
|
+
* Returns a human-readable label for a launch phase value.
|
|
4551
|
+
* Falls back to the numeric string for any unrecognised phase.
|
|
4552
|
+
*/
|
|
4553
|
+
declare function phaseLabel(phase: number): string;
|
|
4554
|
+
|
|
4555
|
+
declare const DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND = 20;
|
|
4556
|
+
declare function getInstructionLookupTableAddresses(instructions: Instruction | readonly Instruction[]): Address[];
|
|
4557
|
+
interface BuildAddressLookupTableSetupInstructionsInput {
|
|
4558
|
+
authority: TransactionSigner;
|
|
4559
|
+
payer: TransactionSigner;
|
|
4560
|
+
recentSlot: number | bigint;
|
|
4561
|
+
addresses: readonly Address[];
|
|
4562
|
+
addressesPerExtendInstruction?: number;
|
|
4563
|
+
}
|
|
4564
|
+
interface BuildAddressLookupTableSetupInstructionsResult {
|
|
4565
|
+
lookupTableAddress: Address;
|
|
4566
|
+
createInstruction: Instruction;
|
|
4567
|
+
extendInstructions: Instruction[];
|
|
4568
|
+
addresses: Address[];
|
|
4569
|
+
}
|
|
4570
|
+
declare function buildAddressLookupTableSetupInstructions({ authority, payer, recentSlot, addresses, addressesPerExtendInstruction, }: BuildAddressLookupTableSetupInstructionsInput): Promise<BuildAddressLookupTableSetupInstructionsResult>;
|
|
4571
|
+
declare function compressTransactionMessageWithLookupTable<TTransactionMessage extends Exclude<TransactionMessage, {
|
|
4572
|
+
version: 'legacy';
|
|
4573
|
+
}>>(transactionMessage: TTransactionMessage, { lookupTableAddress, addresses, }: {
|
|
4574
|
+
lookupTableAddress: Address;
|
|
4575
|
+
addresses: readonly Address[];
|
|
4576
|
+
}): TTransactionMessage | (TTransactionMessage extends {
|
|
4577
|
+
readonly instructions: readonly (infer TInstruction extends Instruction)[];
|
|
4578
|
+
} ? Omit<TTransactionMessage, "instructions"> & {
|
|
4579
|
+
readonly instructions: readonly (TInstruction extends Instruction<infer TProgramAddress extends string, infer TAccounts extends readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]> ? Instruction<TProgramAddress, { [K in keyof TAccounts]: TAccounts[K] extends _solana_kit.AccountMeta<infer TAddress extends string> ? _solana_kit.AccountMeta<TAddress> | _solana_kit.AccountLookupMeta<TAddress, string> : TAccounts[K]; }> : TInstruction)[];
|
|
4580
|
+
} : TTransactionMessage);
|
|
4581
|
+
|
|
4582
|
+
declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
|
|
4583
|
+
interface TransactionSizeReport {
|
|
4584
|
+
size: number;
|
|
4585
|
+
limit: number;
|
|
4586
|
+
overBy: number;
|
|
4587
|
+
fits: boolean;
|
|
4588
|
+
}
|
|
4589
|
+
interface TransactionSizeAssertOptions {
|
|
4590
|
+
label?: string;
|
|
4591
|
+
metadataBytes?: number;
|
|
4592
|
+
}
|
|
4593
|
+
type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer;
|
|
4594
|
+
declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport;
|
|
4595
|
+
declare function measureTransactionMessageSizeWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
|
|
4596
|
+
version: 'legacy';
|
|
4597
|
+
}>>(transactionMessage: TTransactionMessage, lookupTable: {
|
|
4598
|
+
lookupTableAddress: Address;
|
|
4599
|
+
addresses: readonly Address[];
|
|
4600
|
+
}): TransactionSizeReport;
|
|
4601
|
+
declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport;
|
|
4602
|
+
declare function assertTransactionMessageFitsWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
|
|
4603
|
+
version: 'legacy';
|
|
4604
|
+
}>>(transactionMessage: TTransactionMessage, lookupTable: {
|
|
4605
|
+
lookupTableAddress: Address;
|
|
4606
|
+
addresses: readonly Address[];
|
|
4607
|
+
}, options?: TransactionSizeAssertOptions): TransactionSizeReport;
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* Launch fetching functions for the Initializer SDK
|
|
4611
|
+
*/
|
|
4612
|
+
|
|
4613
|
+
interface FetchLaunchesConfig {
|
|
4614
|
+
programId?: Address;
|
|
4615
|
+
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
4616
|
+
}
|
|
4617
|
+
interface LaunchWithAddress {
|
|
4618
|
+
address: Address;
|
|
4619
|
+
account: Launch$1;
|
|
4620
|
+
}
|
|
4621
|
+
declare function fetchLaunch$1(rpc: Rpc<GetAccountInfoApi>, address: Address, config?: FetchLaunchesConfig): Promise<Launch$1 | null>;
|
|
4622
|
+
declare function fetchAllLaunches(rpc: GetProgramAccountsRpc, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
|
|
4623
|
+
/**
|
|
4624
|
+
* Fetch launches filtered by Launch.authority (offset 8).
|
|
4625
|
+
* Note: Permissionless launches have authority == Pubkey::default().
|
|
4626
|
+
*/
|
|
4627
|
+
declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority: Address, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
|
|
4628
|
+
declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise<boolean>;
|
|
4629
|
+
|
|
4630
|
+
declare const index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
|
|
4631
|
+
type index$2_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
|
|
4632
|
+
type index$2_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
|
|
4633
|
+
declare const index$2_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
|
|
4634
|
+
declare const index$2_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
|
|
4635
|
+
declare const index$2_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
|
|
4636
|
+
type index$2_ClaimFeesAsyncInput<TAccountConfig extends string = string, 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, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = ClaimFeesAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
|
|
4637
|
+
type index$2_CreateLaunchAccountSigners = CreateLaunchAccountSigners;
|
|
4638
|
+
type index$2_CreateLaunchAddresses = CreateLaunchAddresses;
|
|
4639
|
+
type index$2_CreateLaunchCpmmMigrationConfig = CreateLaunchCpmmMigrationConfig;
|
|
4640
|
+
type index$2_CreateLaunchCustomMigrationConfig = CreateLaunchCustomMigrationConfig;
|
|
4641
|
+
type index$2_CreateLaunchHookMode = CreateLaunchHookMode;
|
|
4642
|
+
type index$2_CreateLaunchInput = CreateLaunchInput;
|
|
4643
|
+
type index$2_CreateLaunchMigrationConfig = CreateLaunchMigrationConfig;
|
|
4644
|
+
type index$2_CreateLaunchResult = CreateLaunchResult;
|
|
4645
|
+
type index$2_CurveSwapExactInAccounts = CurveSwapExactInAccounts;
|
|
4646
|
+
declare const index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND;
|
|
4647
|
+
type index$2_DeriveCreateLaunchAddressesInput = DeriveCreateLaunchAddressesInput;
|
|
4648
|
+
declare const index$2_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH;
|
|
4649
|
+
type index$2_FeeBeneficiary = FeeBeneficiary;
|
|
4650
|
+
type index$2_FeeBeneficiaryArgs = FeeBeneficiaryArgs;
|
|
4651
|
+
type index$2_FeeBeneficiaryInput = FeeBeneficiaryInput;
|
|
4652
|
+
type index$2_FeeBeneficiaryInputArgs = FeeBeneficiaryInputArgs;
|
|
4653
|
+
type index$2_FetchLaunchesConfig = FetchLaunchesConfig;
|
|
4654
|
+
declare const index$2_HF_AFTER_CREATE: typeof HF_AFTER_CREATE;
|
|
4655
|
+
declare const index$2_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE;
|
|
4656
|
+
declare const index$2_HF_AFTER_SWAP: typeof HF_AFTER_SWAP;
|
|
4657
|
+
declare const index$2_HF_BEFORE_CREATE: typeof HF_BEFORE_CREATE;
|
|
4658
|
+
declare const index$2_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE;
|
|
4659
|
+
declare const index$2_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP;
|
|
4660
|
+
declare const index$2_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS;
|
|
4661
|
+
declare const index$2_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE;
|
|
4662
|
+
type index$2_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>;
|
|
4663
|
+
declare const index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS;
|
|
4664
|
+
declare const index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
|
|
4665
|
+
declare const index$2_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
|
|
4666
|
+
type index$2_InitializeConfigAccounts = InitializeConfigAccounts;
|
|
4667
|
+
type index$2_InitializeConfigArgs = InitializeConfigArgs;
|
|
4668
|
+
type index$2_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
|
|
4669
|
+
type index$2_InitializeLaunchAccounts = InitializeLaunchAccounts;
|
|
4670
|
+
type index$2_InitializeLaunchArgs = InitializeLaunchArgs;
|
|
4671
|
+
type index$2_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
|
|
4672
|
+
type index$2_LaunchFeeState = LaunchFeeState;
|
|
4673
|
+
type index$2_LaunchFeeStateArgs = LaunchFeeStateArgs;
|
|
4674
|
+
type index$2_LaunchMetadata = LaunchMetadata;
|
|
4675
|
+
type index$2_LaunchSupply = LaunchSupply;
|
|
4676
|
+
type index$2_LaunchTokenPrograms = LaunchTokenPrograms;
|
|
4677
|
+
type index$2_LaunchWithAddress = LaunchWithAddress;
|
|
4678
|
+
declare const index$2_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST;
|
|
4679
|
+
declare const index$2_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST;
|
|
4680
|
+
declare const index$2_MAX_PAYLOAD: typeof MAX_PAYLOAD;
|
|
4681
|
+
type index$2_MigrateLaunchAccounts = MigrateLaunchAccounts;
|
|
4682
|
+
declare const index$2_PHASE_ABORTED: typeof PHASE_ABORTED;
|
|
4683
|
+
declare const index$2_PHASE_MIGRATED: typeof PHASE_MIGRATED;
|
|
4684
|
+
declare const index$2_PHASE_TRADING: typeof PHASE_TRADING;
|
|
4685
|
+
declare const index$2_PREDICTION_HOOK_PROGRAM_ID: typeof PREDICTION_HOOK_PROGRAM_ID;
|
|
4686
|
+
type index$2_PreviewMigrationAccounts = PreviewMigrationAccounts;
|
|
4687
|
+
type index$2_PreviewMigrationResult = PreviewMigrationResult;
|
|
4688
|
+
type index$2_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts;
|
|
4689
|
+
type index$2_PreviewSwapExactInResult = PreviewSwapExactInResult;
|
|
4690
|
+
type index$2_ReplaceFeeBeneficiaryAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountCurrentBeneficiary extends string = string> = ReplaceFeeBeneficiaryAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>;
|
|
4691
|
+
declare const index$2_SEED_CONFIG: typeof SEED_CONFIG;
|
|
4692
|
+
declare const index$2_SEED_LAUNCH: typeof SEED_LAUNCH;
|
|
4693
|
+
declare const index$2_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
|
|
4694
|
+
declare const index$2_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
|
|
4695
|
+
declare const index$2_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT;
|
|
4696
|
+
type index$2_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
|
|
4697
|
+
type index$2_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
|
|
4698
|
+
type index$2_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
|
|
4699
|
+
declare const index$2_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
|
|
4700
|
+
declare const index$2_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
|
|
4701
|
+
type index$2_TransactionSizeAssertOptions = TransactionSizeAssertOptions;
|
|
4702
|
+
type index$2_TransactionSizeReport = TransactionSizeReport;
|
|
4703
|
+
type index$2_XykCurveConfig = XykCurveConfig;
|
|
4704
|
+
declare const index$2_assertTransactionMessageFits: typeof assertTransactionMessageFits;
|
|
4705
|
+
declare const index$2_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable;
|
|
4706
|
+
declare const index$2_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
|
|
4707
|
+
declare const index$2_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
|
|
4708
|
+
declare const index$2_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
|
|
4709
|
+
declare const index$2_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction;
|
|
4710
|
+
declare const index$2_createInitializeConfigInstruction: typeof createInitializeConfigInstruction;
|
|
4711
|
+
declare const index$2_createInitializeLaunchInstruction: typeof createInitializeLaunchInstruction;
|
|
4712
|
+
declare const index$2_createLaunchId: typeof createLaunchId;
|
|
4713
|
+
declare const index$2_createMigrateLaunchInstruction: typeof createMigrateLaunchInstruction;
|
|
4714
|
+
declare const index$2_createPreviewMigrationInstruction: typeof createPreviewMigrationInstruction;
|
|
4715
|
+
declare const index$2_createPreviewSwapExactInInstruction: typeof createPreviewSwapExactInInstruction;
|
|
4716
|
+
declare const index$2_createSetHookAllowlistInstruction: typeof createSetHookAllowlistInstruction;
|
|
4717
|
+
declare const index$2_createSetMigratorAllowlistInstruction: typeof createSetMigratorAllowlistInstruction;
|
|
4718
|
+
declare const index$2_decodePreviewMigrationResult: typeof decodePreviewMigrationResult;
|
|
4719
|
+
declare const index$2_decodePreviewSwapExactInResult: typeof decodePreviewSwapExactInResult;
|
|
4720
|
+
declare const index$2_deriveCreateLaunchAddresses: typeof deriveCreateLaunchAddresses;
|
|
4721
|
+
declare const index$2_encodeU64LE: typeof encodeU64LE;
|
|
4722
|
+
declare const index$2_fetchAllLaunches: typeof fetchAllLaunches;
|
|
4723
|
+
declare const index$2_fetchLaunchesByAuthority: typeof fetchLaunchesByAuthority;
|
|
4724
|
+
declare const index$2_getClaimFeesInstructionAsync: typeof getClaimFeesInstructionAsync;
|
|
4725
|
+
declare const index$2_getConfigAddress: typeof getConfigAddress;
|
|
4726
|
+
declare const index$2_getCurveSwapFeeAmount: typeof getCurveSwapFeeAmount;
|
|
4727
|
+
declare const index$2_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
|
|
4728
|
+
declare const index$2_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
|
|
4729
|
+
declare const index$2_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
|
|
4730
|
+
declare const index$2_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
|
|
4731
|
+
declare const index$2_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
|
|
4732
|
+
declare const index$2_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
|
|
4733
|
+
declare const index$2_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
|
|
4734
|
+
declare const index$2_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses;
|
|
4735
|
+
declare const index$2_getLaunchAddress: typeof getLaunchAddress;
|
|
4736
|
+
declare const index$2_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress;
|
|
4737
|
+
declare const index$2_getLaunchFeeStateAddress: typeof getLaunchFeeStateAddress;
|
|
4738
|
+
declare const index$2_getLaunchFeeStateCodec: typeof getLaunchFeeStateCodec;
|
|
4739
|
+
declare const index$2_getLaunchFeeStateDecoder: typeof getLaunchFeeStateDecoder;
|
|
4740
|
+
declare const index$2_getLaunchFeeStateEncoder: typeof getLaunchFeeStateEncoder;
|
|
4741
|
+
declare const index$2_getProgramDataAddress: typeof getProgramDataAddress;
|
|
4742
|
+
declare const index$2_getReplaceFeeBeneficiaryInstructionAsync: typeof getReplaceFeeBeneficiaryInstructionAsync;
|
|
4743
|
+
declare const index$2_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyInstructionAsync;
|
|
4744
|
+
declare const index$2_getTokenMetadataAddress: typeof getTokenMetadataAddress;
|
|
4745
|
+
declare const index$2_launchExists: typeof launchExists;
|
|
4746
|
+
declare const index$2_launchIdFromU64: typeof launchIdFromU64;
|
|
4747
|
+
declare const index$2_launchTokenPrograms: typeof launchTokenPrograms;
|
|
4748
|
+
declare const index$2_measureTransactionMessageSize: typeof measureTransactionMessageSize;
|
|
4749
|
+
declare const index$2_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
|
|
4750
|
+
declare const index$2_phaseLabel: typeof phaseLabel;
|
|
4572
4751
|
declare namespace index$2 {
|
|
4573
|
-
export { index$
|
|
4752
|
+
export { index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$2_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$2_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$2_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$2_CURVE_KIND_XYK as CURVE_KIND_XYK, index$2_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$2_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$2_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$2_CreateLaunchAddresses as CreateLaunchAddresses, type index$2_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$2_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$2_CreateLaunchHookMode as CreateLaunchHookMode, type index$2_CreateLaunchInput as CreateLaunchInput, type index$2_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$2_CreateLaunchResult as CreateLaunchResult, type index$2_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$2_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$2_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$2_FeeBeneficiary as FeeBeneficiary, type index$2_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$2_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$2_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$2_FetchLaunchesConfig as FetchLaunchesConfig, index$2_HF_AFTER_CREATE as HF_AFTER_CREATE, index$2_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$2_HF_AFTER_SWAP as HF_AFTER_SWAP, index$2_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$2_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$2_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$2_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$2_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$2_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$2_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$2_InitializeConfigAccounts as InitializeConfigAccounts, type index$2_InitializeConfigArgs as InitializeConfigArgs, type index$2_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$2_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$2_InitializeLaunchArgs as InitializeLaunchArgs, type index$2_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$2_LaunchFeeState as LaunchFeeState, type index$2_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$2_LaunchMetadata as LaunchMetadata, type index$2_LaunchSupply as LaunchSupply, type index$2_LaunchTokenPrograms as LaunchTokenPrograms, type index$2_LaunchWithAddress as LaunchWithAddress, index$2_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$2_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$2_MAX_PAYLOAD as MAX_PAYLOAD, type index$2_MigrateLaunchAccounts as MigrateLaunchAccounts, index$2_PHASE_ABORTED as PHASE_ABORTED, index$2_PHASE_MIGRATED as PHASE_MIGRATED, index$2_PHASE_TRADING as PHASE_TRADING, index$2_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$2_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$2_PreviewMigrationResult as PreviewMigrationResult, type index$2_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$2_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$2_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$2_SEED_CONFIG as SEED_CONFIG, index$2_SEED_LAUNCH as SEED_LAUNCH, index$2_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$2_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$2_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$2_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$2_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$2_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$2_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$2_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$2_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$2_TransactionSizeReport as TransactionSizeReport, type index$2_XykCurveConfig as XykCurveConfig, index$2_assertTransactionMessageFits as assertTransactionMessageFits, index$2_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$2_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$2_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$2_computeRemainingAccountsHash as computeRemainingAccountsHash, index$2_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$2_createInitializeConfigInstruction as createInitializeConfigInstruction, index$2_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$2_createLaunchId as createLaunchId, index$2_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$2_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$2_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$2_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$2_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$2_decodePreviewMigrationResult as decodePreviewMigrationResult, index$2_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$2_deriveCreateLaunchAddresses as deriveCreateLaunchAddresses, index$2_encodeU64LE as encodeU64LE, index$2_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$2_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$2_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$2_getConfigAddress as getConfigAddress, index$2_getCurveSwapFeeAmount as getCurveSwapFeeAmount, index$2_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, index$2_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$2_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$2_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$2_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$2_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$2_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$2_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$2_getLaunchAddress as getLaunchAddress, index$2_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$2_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$2_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$2_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$2_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$2_getProgramDataAddress as getProgramDataAddress, index$2_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$2_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$2_getTokenMetadataAddress as getTokenMetadataAddress, index$2_launchExists as launchExists, index$2_launchIdFromU64 as launchIdFromU64, index$2_launchTokenPrograms as launchTokenPrograms, index$2_measureTransactionMessageSize as measureTransactionMessageSize, index$2_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$2_phaseLabel as phaseLabel };
|
|
4574
4753
|
}
|
|
4575
4754
|
|
|
4576
4755
|
/**
|
|
@@ -6394,18 +6573,4 @@ declare namespace index {
|
|
|
6394
6573
|
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 };
|
|
6395
6574
|
}
|
|
6396
6575
|
|
|
6397
|
-
|
|
6398
|
-
cpmmProgram: Address;
|
|
6399
|
-
initializerProgram: Address;
|
|
6400
|
-
cpmmMigratorProgram: Address;
|
|
6401
|
-
cpmmHookProgram: Address;
|
|
6402
|
-
cosignerHookProgram: Address;
|
|
6403
|
-
}
|
|
6404
|
-
interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
|
|
6405
|
-
cpmmConfig: Address;
|
|
6406
|
-
initializerConfig: Address;
|
|
6407
|
-
}
|
|
6408
|
-
declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
|
|
6409
|
-
declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
|
|
6410
|
-
|
|
6411
|
-
export { DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, index$4 as cosignerHook, index$5 as cpmm, index$2 as cpmmMigrator, deriveSolanaCpmmDeployment, index$3 as initializer, index$1 as predictionMigrator, index as trustedOracle };
|
|
6576
|
+
export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchHookMode, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type XykCurveConfig, index$4 as cosignerHook, index$5 as cpmm, index$3 as cpmmMigrator, createLaunch, deriveSolanaCpmmDeployment, index$2 as initializer, index$1 as predictionMigrator, index as trustedOracle };
|