@whetstone-research/doppler-sdk 1.0.7 → 1.0.9
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/dist/{chunk-BXATWUGJ.cjs → chunk-I5JME35L.cjs} +39 -39
- package/dist/{chunk-BXATWUGJ.cjs.map → chunk-I5JME35L.cjs.map} +1 -1
- package/dist/{chunk-DPKVNI6Q.cjs → chunk-O6FR7TXY.cjs} +27 -3
- package/dist/chunk-O6FR7TXY.cjs.map +1 -0
- package/dist/{chunk-BSHIMMA4.js → chunk-RF4NM4ES.js} +3 -3
- package/dist/{chunk-BSHIMMA4.js.map → chunk-RF4NM4ES.js.map} +1 -1
- package/dist/{chunk-J57ROY36.js → chunk-YWZCHTXQ.js} +25 -4
- package/dist/chunk-YWZCHTXQ.js.map +1 -0
- package/dist/evm/index.cjs +15 -14
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.js +15 -14
- package/dist/evm/index.js.map +1 -1
- package/dist/pda-NKKMVQ4N.js +4 -0
- package/dist/pda-NKKMVQ4N.js.map +1 -0
- package/dist/pda-UKFLYQGA.cjs +61 -0
- package/dist/pda-UKFLYQGA.cjs.map +1 -0
- package/dist/solana/index.cjs +428 -332
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +160 -118
- package/dist/solana/index.d.ts +160 -118
- package/dist/solana/index.js +208 -112
- 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-DPKVNI6Q.cjs.map +0 -1
- package/dist/chunk-J57ROY36.js.map +0 -1
- package/dist/pda-TXZDXZZ4.js +0 -4
- package/dist/pda-TXZDXZZ4.js.map +0 -1
- package/dist/pda-ZZMBZSFU.cjs +0 -53
- package/dist/pda-ZZMBZSFU.cjs.map +0 -1
package/dist/solana/index.d.cts
CHANGED
|
@@ -196,6 +196,16 @@ declare function getPoolAddress(mint0: Address, mint1: Address, programId?: Addr
|
|
|
196
196
|
* Seeds: ['authority', pool]
|
|
197
197
|
*/
|
|
198
198
|
declare function getPoolAuthorityAddress(pool: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
199
|
+
/**
|
|
200
|
+
* Derive the token0 vault PDA.
|
|
201
|
+
* Seeds: ['vault0', pool]
|
|
202
|
+
*/
|
|
203
|
+
declare function getPoolVault0Address(pool: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
204
|
+
/**
|
|
205
|
+
* Derive the token1 vault PDA.
|
|
206
|
+
* Seeds: ['vault1', pool]
|
|
207
|
+
*/
|
|
208
|
+
declare function getPoolVault1Address(pool: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
199
209
|
/**
|
|
200
210
|
* Derive the Position PDA address
|
|
201
211
|
* Seeds: ['position', pool, owner, position_id_le_bytes]
|
|
@@ -219,6 +229,8 @@ declare function getPoolInitAddresses(mint0: Address, mint1: Address, programId?
|
|
|
219
229
|
token1: Address;
|
|
220
230
|
pool: ProgramDerivedAddress;
|
|
221
231
|
authority: ProgramDerivedAddress;
|
|
232
|
+
vault0: ProgramDerivedAddress;
|
|
233
|
+
vault1: ProgramDerivedAddress;
|
|
222
234
|
config: ProgramDerivedAddress;
|
|
223
235
|
protocolPosition: ProgramDerivedAddress;
|
|
224
236
|
}>;
|
|
@@ -637,22 +649,28 @@ interface InitializePoolAccounts {
|
|
|
637
649
|
protocolPosition: Address;
|
|
638
650
|
/** Pool authority PDA (read-only, PDA: ['authority', pool]) */
|
|
639
651
|
authority: Address;
|
|
640
|
-
/** Vault for token0 (writable
|
|
641
|
-
vault0: Address
|
|
642
|
-
/** Vault for token1 (writable
|
|
643
|
-
vault1: Address
|
|
652
|
+
/** Vault PDA for token0 (writable, PDA: ['vault0', pool]) */
|
|
653
|
+
vault0: Address;
|
|
654
|
+
/** Vault PDA for token1 (writable, PDA: ['vault1', pool]) */
|
|
655
|
+
vault1: Address;
|
|
644
656
|
/** Token0 mint (read-only, must be lexicographically smaller) */
|
|
645
657
|
token0Mint: Address;
|
|
646
658
|
/** Token1 mint (read-only, must be lexicographically larger) */
|
|
647
659
|
token1Mint: Address;
|
|
648
660
|
/** Payer for account creation (writable signer - pass TransactionSigner to include signer in instruction) */
|
|
649
661
|
payer: Address | TransactionSigner;
|
|
650
|
-
/** SPL Token
|
|
662
|
+
/** Token0 program; defaults to tokenProgram or classic SPL Token */
|
|
663
|
+
token0Program?: Address;
|
|
664
|
+
/** Token1 program; defaults to tokenProgram or classic SPL Token */
|
|
665
|
+
token1Program?: Address;
|
|
666
|
+
/** Deprecated shared token program fallback */
|
|
651
667
|
tokenProgram?: Address;
|
|
652
668
|
/** System program */
|
|
653
669
|
systemProgram?: Address;
|
|
654
670
|
/** Rent sysvar */
|
|
655
671
|
rent: Address;
|
|
672
|
+
/** Migrator authority PDA signer authorizing pool initialization */
|
|
673
|
+
migrationAuthority: Address | TransactionSigner;
|
|
656
674
|
}
|
|
657
675
|
/**
|
|
658
676
|
* Create an initialize_pool instruction
|
|
@@ -674,12 +692,13 @@ interface InitializePoolAccounts {
|
|
|
674
692
|
* pool: addresses.pool[0],
|
|
675
693
|
* protocolPosition: addresses.protocolPosition[0],
|
|
676
694
|
* authority: addresses.authority[0],
|
|
677
|
-
* vault0:
|
|
678
|
-
* vault1:
|
|
695
|
+
* vault0: addresses.vault0[0],
|
|
696
|
+
* vault1: addresses.vault1[0],
|
|
679
697
|
* token0Mint: addresses.token0,
|
|
680
698
|
* token1Mint: addresses.token1,
|
|
681
|
-
* payer:
|
|
699
|
+
* payer: payerSigner,
|
|
682
700
|
* rent: SYSVAR_RENT_PUBKEY,
|
|
701
|
+
* migrationAuthority,
|
|
683
702
|
* },
|
|
684
703
|
* {
|
|
685
704
|
* mintA: mintA,
|
|
@@ -1061,8 +1080,14 @@ interface SwapExactInAccounts {
|
|
|
1061
1080
|
userOut: Address;
|
|
1062
1081
|
/** User authority (signer) */
|
|
1063
1082
|
user: Address;
|
|
1064
|
-
/** SPL Token
|
|
1083
|
+
/** Token0 program; defaults to tokenProgram or classic SPL Token */
|
|
1084
|
+
token0Program?: Address;
|
|
1085
|
+
/** Token1 program; defaults to tokenProgram or classic SPL Token */
|
|
1086
|
+
token1Program?: Address;
|
|
1087
|
+
/** Deprecated shared token program fallback */
|
|
1065
1088
|
tokenProgram?: Address;
|
|
1089
|
+
/** Instructions sysvar */
|
|
1090
|
+
instructionsSysvar?: Address;
|
|
1066
1091
|
/** Oracle account (optional, required if updateOracle is true) */
|
|
1067
1092
|
oracle?: Address;
|
|
1068
1093
|
/** Optional remaining accounts (sentinel program/state, route/oracle data) */
|
|
@@ -1123,6 +1148,10 @@ declare function createSwapInstruction(params: {
|
|
|
1123
1148
|
oracle?: Address;
|
|
1124
1149
|
remainingAccounts?: Address[];
|
|
1125
1150
|
updateOracle?: boolean;
|
|
1151
|
+
token0Program?: Address;
|
|
1152
|
+
token1Program?: Address;
|
|
1153
|
+
tokenProgram?: Address;
|
|
1154
|
+
instructionsSysvar?: Address;
|
|
1126
1155
|
programId?: Address;
|
|
1127
1156
|
}): Instruction;
|
|
1128
1157
|
|
|
@@ -1984,6 +2013,8 @@ declare const index$4_getPoolAddressFromMints: typeof getPoolAddressFromMints;
|
|
|
1984
2013
|
declare const index$4_getPoolAuthorityAddress: typeof getPoolAuthorityAddress;
|
|
1985
2014
|
declare const index$4_getPoolByMints: typeof getPoolByMints;
|
|
1986
2015
|
declare const index$4_getPoolInitAddresses: typeof getPoolInitAddresses;
|
|
2016
|
+
declare const index$4_getPoolVault0Address: typeof getPoolVault0Address;
|
|
2017
|
+
declare const index$4_getPoolVault1Address: typeof getPoolVault1Address;
|
|
1987
2018
|
declare const index$4_getPositionAddress: typeof getPositionAddress;
|
|
1988
2019
|
declare const index$4_getPositionAddressFromParams: typeof getPositionAddressFromParams;
|
|
1989
2020
|
declare const index$4_getPositionValue: typeof getPositionValue;
|
|
@@ -2030,7 +2061,7 @@ declare const index$4_swapExactInArgsCodec: typeof swapExactInArgsCodec;
|
|
|
2030
2061
|
declare const index$4_transferAdminArgsCodec: typeof transferAdminArgsCodec;
|
|
2031
2062
|
declare const index$4_validateMarketCapParameters: typeof validateMarketCapParameters;
|
|
2032
2063
|
declare namespace index$4 {
|
|
2033
|
-
export { index$4_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$4_ACCOUNT_VERSION as ACCOUNT_VERSION, type index$4_AddLiquidityAccounts as AddLiquidityAccounts, index$4_AddLiquidityArgs as AddLiquidityArgs, type index$4_AddLiquidityArgsWithOracle as AddLiquidityArgsWithOracle, index$4_AddLiquidityEvent as AddLiquidityEvent, index$4_AddLiquidityQuote as AddLiquidityQuote, index$4_AdminTransferredEvent as AdminTransferredEvent, index$4_AmmConfig as AmmConfig, index$4_BPS_DENOM as BPS_DENOM, index$4_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$4_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, type index$4_ClosePositionAccounts as ClosePositionAccounts, type index$4_CollectFeesAccounts as CollectFeesAccounts, index$4_CollectFeesArgs as CollectFeesArgs, index$4_CollectFeesEvent as CollectFeesEvent, type index$4_CollectProtocolFeesAccounts as CollectProtocolFeesAccounts, index$4_CollectProtocolFeesArgs as CollectProtocolFeesArgs, index$4_CollectProtocolFeesEvent as CollectProtocolFeesEvent, index$4_CpmmError as CpmmError, index$4_CpmmErrorCode as CpmmErrorCode, type index$4_CreatePositionAccounts as CreatePositionAccounts, index$4_CreatePositionArgs as CreatePositionArgs, index$4_CurveParams as CurveParams, index$4_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, index$4_FeesUpdatedEvent as FeesUpdatedEvent, index$4_FetchOracleConfig as FetchOracleConfig, type index$4_FetchPoolsConfig as FetchPoolsConfig, index$4_FetchPositionsConfig as FetchPositionsConfig, index$4_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, type InitializeConfigAccounts$1 as InitializeConfigAccounts, InitializeConfigArgs$1 as InitializeConfigArgs, type index$4_InitializeOracleAccounts as InitializeOracleAccounts, InitializeOracleArgs$1 as InitializeOracleArgs, type index$4_InitializePoolAccounts as InitializePoolAccounts, index$4_InitializePoolArgs as InitializePoolArgs, index$4_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, index$4_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, MAX_SENTINEL_ALLOWLIST$1 as MAX_SENTINEL_ALLOWLIST, index$4_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$4_MarketCapValidationResult as MarketCapValidationResult, index$4_Observation as Observation, type index$4_OracleConsultAccounts as OracleConsultAccounts, index$4_OracleConsultArgs as OracleConsultArgs, type index$4_OracleConsultResult as OracleConsultResult, index$4_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$4_OracleUpdateAccounts as OracleUpdateAccounts, index$4_OracleUpdatedEvent as OracleUpdatedEvent, index$4_OracleWithAddress as OracleWithAddress, type index$4_PauseAccounts as PauseAccounts, index$4_PausedEvent as PausedEvent, index$4_Pool as Pool, index$4_PoolInitializedEvent as PoolInitializedEvent, type index$4_PoolWithAddress as PoolWithAddress, index$4_Position as Position, index$4_PositionClosedEvent as PositionClosedEvent, index$4_PositionCreatedEvent as PositionCreatedEvent, index$4_PositionValue as PositionValue, index$4_PositionWithAddress as PositionWithAddress, index$4_Q64_ONE as Q64_ONE, type index$4_QuoteToNumeraireAccounts as QuoteToNumeraireAccounts, index$4_QuoteToNumeraireArgs as QuoteToNumeraireArgs, type index$4_QuoteToNumeraireResult as QuoteToNumeraireResult, type index$4_RemoveLiquidityAccounts as RemoveLiquidityAccounts, index$4_RemoveLiquidityArgs as RemoveLiquidityArgs, index$4_RemoveLiquidityEvent as RemoveLiquidityEvent, index$4_RemoveLiquidityQuote as RemoveLiquidityQuote, index$4_RouteUpdatedEvent as RouteUpdatedEvent, index$4_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$4_SEED_ORACLE as SEED_ORACLE, index$4_SEED_POOL as SEED_POOL, index$4_SEED_POSITION as SEED_POSITION, index$4_SEED_PROTOCOL_POSITION as SEED_PROTOCOL_POSITION, SENTINEL_NO_CHANGE$1 as SENTINEL_NO_CHANGE, index$4_SF_AFTER_ADD_LIQ as SF_AFTER_ADD_LIQ, index$4_SF_AFTER_REMOVE_LIQ as SF_AFTER_REMOVE_LIQ, SF_AFTER_SWAP$1 as SF_AFTER_SWAP, index$4_SF_BEFORE_ADD_LIQ as SF_BEFORE_ADD_LIQ, index$4_SF_BEFORE_REMOVE_LIQ as SF_BEFORE_REMOVE_LIQ, SF_BEFORE_SWAP$1 as SF_BEFORE_SWAP, index$4_SentinelErrorEvent as SentinelErrorEvent, index$4_SentinelInvokedEvent as SentinelInvokedEvent, index$4_SentinelUpdatedEvent as SentinelUpdatedEvent, type index$4_SetFeesAccounts as SetFeesAccounts, index$4_SetFeesArgs as SetFeesArgs, type index$4_SetRouteAccounts as SetRouteAccounts, index$4_SetRouteArgs as SetRouteArgs, type index$4_SetSentinelAccounts as SetSentinelAccounts, index$4_SetSentinelArgs as SetSentinelArgs, type index$4_SkimAccounts as SkimAccounts, index$4_SkimmedEvent as SkimmedEvent, index$4_SwapDirection as SwapDirection, index$4_SwapEvent as SwapEvent, type index$4_SwapExactInAccounts as SwapExactInAccounts, index$4_SwapExactInArgs as SwapExactInArgs, index$4_SwapQuote as SwapQuote, index$4_SwapQuoteExactOut as SwapQuoteExactOut, index$4_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, type index$4_TransferAdminAccounts as TransferAdminAccounts, index$4_TransferAdminArgs as TransferAdminArgs, index$4_TwapResult as TwapResult, type index$4_UnpauseAccounts as UnpauseAccounts, index$4_UnpausedEvent as UnpausedEvent, index$4_addLiquidityArgsCodec as addLiquidityArgsCodec, index$4_ammConfigDataCodec as ammConfigDataCodec, index$4_areMintsOrdered as areMintsOrdered, index$4_calculateAccruedFees as calculateAccruedFees, index$4_calculateTwap as calculateTwap, index$4_calculateTwapNumber as calculateTwapNumber, index$4_ceilDiv as ceilDiv, index$4_collectFeesArgsCodec as collectFeesArgsCodec, index$4_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$4_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$4_computePrice0Q64 as computePrice0Q64, index$4_computePrice1Q64 as computePrice1Q64, index$4_consultTwap as consultTwap, index$4_createAddLiquidityInstruction as createAddLiquidityInstruction, index$4_createClosePositionInstruction as createClosePositionInstruction, index$4_createCollectFeesInstruction as createCollectFeesInstruction, index$4_createCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, index$4_createCreatePositionInstruction as createCreatePositionInstruction, createInitializeConfigInstruction$1 as createInitializeConfigInstruction, index$4_createInitializeOracleInstruction as createInitializeOracleInstruction, index$4_createInitializePoolInstruction as createInitializePoolInstruction, index$4_createOracleConsultInstruction as createOracleConsultInstruction, index$4_createOracleUpdateInstruction as createOracleUpdateInstruction, index$4_createPauseInstruction as createPauseInstruction, index$4_createPositionArgsCodec as createPositionArgsCodec, index$4_createQuoteToNumeraireInstruction as createQuoteToNumeraireInstruction, index$4_createRemoveLiquidityInstruction as createRemoveLiquidityInstruction, index$4_createSetFeesInstruction as createSetFeesInstruction, index$4_createSetRouteInstruction as createSetRouteInstruction, index$4_createSetSentinelInstruction as createSetSentinelInstruction, index$4_createSkimInstruction as createSkimInstruction, index$4_createSwapExactInInstruction as createSwapExactInInstruction, index$4_createSwapInstruction as createSwapInstruction, index$4_createTransferAdminInstruction as createTransferAdminInstruction, index$4_createUnpauseInstruction as createUnpauseInstruction, index$4_curveParamsToMarketCap as curveParamsToMarketCap, index$4_decodeAmmConfig as decodeAmmConfig, index$4_decodeOracleConsultResult as decodeOracleConsultResult, decodeOracleState$2 as decodeOracleState, index$4_decodePool as decodePool, index$4_decodePosition as decodePosition, index$4_decodeQuoteToNumeraireResult as decodeQuoteToNumeraireResult, index$4_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$4_encodeCollectFeesArgs as encodeCollectFeesArgs, index$4_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$4_encodeCreatePositionArgs as encodeCreatePositionArgs, index$4_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$4_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$4_encodeInitializePoolArgs as encodeInitializePoolArgs, index$4_encodeInstructionData as encodeInstructionData, index$4_encodeOracleConsultArgs as encodeOracleConsultArgs, index$4_encodeQuoteToNumeraireArgs as encodeQuoteToNumeraireArgs, index$4_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$4_encodeSetFeesArgs as encodeSetFeesArgs, index$4_encodeSetRouteArgs as encodeSetRouteArgs, index$4_encodeSetSentinelArgs as encodeSetSentinelArgs, index$4_encodeSwapExactInArgs as encodeSwapExactInArgs, index$4_encodeTransferAdminArgs as encodeTransferAdminArgs, index$4_fetchAllPools as fetchAllPools, index$4_fetchConfig as fetchConfig, index$4_fetchConfigWithAddress as fetchConfigWithAddress, index$4_fetchOracle as fetchOracle, index$4_fetchOraclesBatch as fetchOraclesBatch, index$4_fetchPool as fetchPool, index$4_fetchPoolPositions as fetchPoolPositions, index$4_fetchPoolsBatch as fetchPoolsBatch, index$4_fetchPosition as fetchPosition, index$4_fetchPositionByParams as fetchPositionByParams, index$4_fetchPositionsBatch as fetchPositionsBatch, index$4_fetchUserPositions as fetchUserPositions, index$4_filterActivePositions as filterActivePositions, index$4_filterPoolsByMint as filterPoolsByMint, index$4_getAddLiquidityQuote as getAddLiquidityQuote, getConfigAddress$1 as getConfigAddress, index$4_getErrorMessage as getErrorMessage, index$4_getK as getK, index$4_getLiquidityAddresses as getLiquidityAddresses, index$4_getMetadataAddress as getMetadataAddress, index$4_getOracleAddress as getOracleAddress, index$4_getOracleAddressFromPool as getOracleAddressFromPool, index$4_getOracleAge as getOracleAge, index$4_getOracleBufferStats as getOracleBufferStats, index$4_getOracleDeviation as getOracleDeviation, index$4_getOracleForPool as getOracleForPool, index$4_getOracleSpotPrices as getOracleSpotPrices, index$4_getPendingFees as getPendingFees, index$4_getPoolAddress as getPoolAddress, index$4_getPoolAddressFromMints as getPoolAddressFromMints, index$4_getPoolAuthorityAddress as getPoolAuthorityAddress, index$4_getPoolByMints as getPoolByMints, index$4_getPoolInitAddresses as getPoolInitAddresses, index$4_getPositionAddress as getPositionAddress, index$4_getPositionAddressFromParams as getPositionAddressFromParams, index$4_getPositionValue as getPositionValue, index$4_getProtocolPositionAddress as getProtocolPositionAddress, index$4_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$4_getSpotPrice0 as getSpotPrice0, index$4_getSpotPrice1 as getSpotPrice1, index$4_getSwapAddresses as getSwapAddresses, index$4_getSwapQuote as getSwapQuote, index$4_getSwapQuoteExactOut as getSwapQuoteExactOut, index$4_getTvl as getTvl, index$4_initializeConfigArgsCodec as initializeConfigArgsCodec, index$4_initializeOracleArgsCodec as initializeOracleArgsCodec, index$4_initializePoolArgsCodec as initializePoolArgsCodec, index$4_isCpmmError as isCpmmError, index$4_isOracleStale as isOracleStale, index$4_isqrt as isqrt, index$4_marketCapToCurveParams as marketCapToCurveParams, index$4_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$4_marketCapToTokenPrice as marketCapToTokenPrice, index$4_maxBigInt as maxBigInt, index$4_minBigInt as minBigInt, index$4_numberToQ64 as numberToQ64, index$4_observationCodec as observationCodec, index$4_oracleConsultArgsCodec as oracleConsultArgsCodec, index$4_oracleStateDataCodec as oracleStateDataCodec, index$4_parseErrorFromLogs as parseErrorFromLogs, index$4_poolDataCodec as poolDataCodec, index$4_poolExists as poolExists, index$4_positionDataCodec as positionDataCodec, index$4_q64Div as q64Div, index$4_q64Mul as q64Mul, index$4_q64ToNumber as q64ToNumber, index$4_quoteToNumeraireArgsCodec as quoteToNumeraireArgsCodec, index$4_ratioToNumber as ratioToNumber, index$4_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$4_setFeesArgsCodec as setFeesArgsCodec, index$4_setRouteArgsCodec as setRouteArgsCodec, index$4_setSentinelArgsCodec as setSentinelArgsCodec, index$4_sortMints as sortMints, index$4_sortPoolsByReserves as sortPoolsByReserves, index$4_sortPositionsByShares as sortPositionsByShares, index$4_swapExactInArgsCodec as swapExactInArgsCodec, index$4_transferAdminArgsCodec as transferAdminArgsCodec, index$4_validateMarketCapParameters as validateMarketCapParameters };
|
|
2064
|
+
export { index$4_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$4_ACCOUNT_VERSION as ACCOUNT_VERSION, type index$4_AddLiquidityAccounts as AddLiquidityAccounts, index$4_AddLiquidityArgs as AddLiquidityArgs, type index$4_AddLiquidityArgsWithOracle as AddLiquidityArgsWithOracle, index$4_AddLiquidityEvent as AddLiquidityEvent, index$4_AddLiquidityQuote as AddLiquidityQuote, index$4_AdminTransferredEvent as AdminTransferredEvent, index$4_AmmConfig as AmmConfig, index$4_BPS_DENOM as BPS_DENOM, index$4_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$4_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, type index$4_ClosePositionAccounts as ClosePositionAccounts, type index$4_CollectFeesAccounts as CollectFeesAccounts, index$4_CollectFeesArgs as CollectFeesArgs, index$4_CollectFeesEvent as CollectFeesEvent, type index$4_CollectProtocolFeesAccounts as CollectProtocolFeesAccounts, index$4_CollectProtocolFeesArgs as CollectProtocolFeesArgs, index$4_CollectProtocolFeesEvent as CollectProtocolFeesEvent, index$4_CpmmError as CpmmError, index$4_CpmmErrorCode as CpmmErrorCode, type index$4_CreatePositionAccounts as CreatePositionAccounts, index$4_CreatePositionArgs as CreatePositionArgs, index$4_CurveParams as CurveParams, index$4_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, index$4_FeesUpdatedEvent as FeesUpdatedEvent, index$4_FetchOracleConfig as FetchOracleConfig, type index$4_FetchPoolsConfig as FetchPoolsConfig, index$4_FetchPositionsConfig as FetchPositionsConfig, index$4_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, type InitializeConfigAccounts$1 as InitializeConfigAccounts, InitializeConfigArgs$1 as InitializeConfigArgs, type index$4_InitializeOracleAccounts as InitializeOracleAccounts, InitializeOracleArgs$1 as InitializeOracleArgs, type index$4_InitializePoolAccounts as InitializePoolAccounts, index$4_InitializePoolArgs as InitializePoolArgs, index$4_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, index$4_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, MAX_SENTINEL_ALLOWLIST$1 as MAX_SENTINEL_ALLOWLIST, index$4_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$4_MarketCapValidationResult as MarketCapValidationResult, index$4_Observation as Observation, type index$4_OracleConsultAccounts as OracleConsultAccounts, index$4_OracleConsultArgs as OracleConsultArgs, type index$4_OracleConsultResult as OracleConsultResult, index$4_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$4_OracleUpdateAccounts as OracleUpdateAccounts, index$4_OracleUpdatedEvent as OracleUpdatedEvent, index$4_OracleWithAddress as OracleWithAddress, type index$4_PauseAccounts as PauseAccounts, index$4_PausedEvent as PausedEvent, index$4_Pool as Pool, index$4_PoolInitializedEvent as PoolInitializedEvent, type index$4_PoolWithAddress as PoolWithAddress, index$4_Position as Position, index$4_PositionClosedEvent as PositionClosedEvent, index$4_PositionCreatedEvent as PositionCreatedEvent, index$4_PositionValue as PositionValue, index$4_PositionWithAddress as PositionWithAddress, index$4_Q64_ONE as Q64_ONE, type index$4_QuoteToNumeraireAccounts as QuoteToNumeraireAccounts, index$4_QuoteToNumeraireArgs as QuoteToNumeraireArgs, type index$4_QuoteToNumeraireResult as QuoteToNumeraireResult, type index$4_RemoveLiquidityAccounts as RemoveLiquidityAccounts, index$4_RemoveLiquidityArgs as RemoveLiquidityArgs, index$4_RemoveLiquidityEvent as RemoveLiquidityEvent, index$4_RemoveLiquidityQuote as RemoveLiquidityQuote, index$4_RouteUpdatedEvent as RouteUpdatedEvent, index$4_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$4_SEED_ORACLE as SEED_ORACLE, index$4_SEED_POOL as SEED_POOL, index$4_SEED_POSITION as SEED_POSITION, index$4_SEED_PROTOCOL_POSITION as SEED_PROTOCOL_POSITION, SENTINEL_NO_CHANGE$1 as SENTINEL_NO_CHANGE, index$4_SF_AFTER_ADD_LIQ as SF_AFTER_ADD_LIQ, index$4_SF_AFTER_REMOVE_LIQ as SF_AFTER_REMOVE_LIQ, SF_AFTER_SWAP$1 as SF_AFTER_SWAP, index$4_SF_BEFORE_ADD_LIQ as SF_BEFORE_ADD_LIQ, index$4_SF_BEFORE_REMOVE_LIQ as SF_BEFORE_REMOVE_LIQ, SF_BEFORE_SWAP$1 as SF_BEFORE_SWAP, index$4_SentinelErrorEvent as SentinelErrorEvent, index$4_SentinelInvokedEvent as SentinelInvokedEvent, index$4_SentinelUpdatedEvent as SentinelUpdatedEvent, type index$4_SetFeesAccounts as SetFeesAccounts, index$4_SetFeesArgs as SetFeesArgs, type index$4_SetRouteAccounts as SetRouteAccounts, index$4_SetRouteArgs as SetRouteArgs, type index$4_SetSentinelAccounts as SetSentinelAccounts, index$4_SetSentinelArgs as SetSentinelArgs, type index$4_SkimAccounts as SkimAccounts, index$4_SkimmedEvent as SkimmedEvent, index$4_SwapDirection as SwapDirection, index$4_SwapEvent as SwapEvent, type index$4_SwapExactInAccounts as SwapExactInAccounts, index$4_SwapExactInArgs as SwapExactInArgs, index$4_SwapQuote as SwapQuote, index$4_SwapQuoteExactOut as SwapQuoteExactOut, index$4_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, type index$4_TransferAdminAccounts as TransferAdminAccounts, index$4_TransferAdminArgs as TransferAdminArgs, index$4_TwapResult as TwapResult, type index$4_UnpauseAccounts as UnpauseAccounts, index$4_UnpausedEvent as UnpausedEvent, index$4_addLiquidityArgsCodec as addLiquidityArgsCodec, index$4_ammConfigDataCodec as ammConfigDataCodec, index$4_areMintsOrdered as areMintsOrdered, index$4_calculateAccruedFees as calculateAccruedFees, index$4_calculateTwap as calculateTwap, index$4_calculateTwapNumber as calculateTwapNumber, index$4_ceilDiv as ceilDiv, index$4_collectFeesArgsCodec as collectFeesArgsCodec, index$4_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$4_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$4_computePrice0Q64 as computePrice0Q64, index$4_computePrice1Q64 as computePrice1Q64, index$4_consultTwap as consultTwap, index$4_createAddLiquidityInstruction as createAddLiquidityInstruction, index$4_createClosePositionInstruction as createClosePositionInstruction, index$4_createCollectFeesInstruction as createCollectFeesInstruction, index$4_createCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, index$4_createCreatePositionInstruction as createCreatePositionInstruction, createInitializeConfigInstruction$1 as createInitializeConfigInstruction, index$4_createInitializeOracleInstruction as createInitializeOracleInstruction, index$4_createInitializePoolInstruction as createInitializePoolInstruction, index$4_createOracleConsultInstruction as createOracleConsultInstruction, index$4_createOracleUpdateInstruction as createOracleUpdateInstruction, index$4_createPauseInstruction as createPauseInstruction, index$4_createPositionArgsCodec as createPositionArgsCodec, index$4_createQuoteToNumeraireInstruction as createQuoteToNumeraireInstruction, index$4_createRemoveLiquidityInstruction as createRemoveLiquidityInstruction, index$4_createSetFeesInstruction as createSetFeesInstruction, index$4_createSetRouteInstruction as createSetRouteInstruction, index$4_createSetSentinelInstruction as createSetSentinelInstruction, index$4_createSkimInstruction as createSkimInstruction, index$4_createSwapExactInInstruction as createSwapExactInInstruction, index$4_createSwapInstruction as createSwapInstruction, index$4_createTransferAdminInstruction as createTransferAdminInstruction, index$4_createUnpauseInstruction as createUnpauseInstruction, index$4_curveParamsToMarketCap as curveParamsToMarketCap, index$4_decodeAmmConfig as decodeAmmConfig, index$4_decodeOracleConsultResult as decodeOracleConsultResult, decodeOracleState$2 as decodeOracleState, index$4_decodePool as decodePool, index$4_decodePosition as decodePosition, index$4_decodeQuoteToNumeraireResult as decodeQuoteToNumeraireResult, index$4_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$4_encodeCollectFeesArgs as encodeCollectFeesArgs, index$4_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$4_encodeCreatePositionArgs as encodeCreatePositionArgs, index$4_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$4_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$4_encodeInitializePoolArgs as encodeInitializePoolArgs, index$4_encodeInstructionData as encodeInstructionData, index$4_encodeOracleConsultArgs as encodeOracleConsultArgs, index$4_encodeQuoteToNumeraireArgs as encodeQuoteToNumeraireArgs, index$4_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$4_encodeSetFeesArgs as encodeSetFeesArgs, index$4_encodeSetRouteArgs as encodeSetRouteArgs, index$4_encodeSetSentinelArgs as encodeSetSentinelArgs, index$4_encodeSwapExactInArgs as encodeSwapExactInArgs, index$4_encodeTransferAdminArgs as encodeTransferAdminArgs, index$4_fetchAllPools as fetchAllPools, index$4_fetchConfig as fetchConfig, index$4_fetchConfigWithAddress as fetchConfigWithAddress, index$4_fetchOracle as fetchOracle, index$4_fetchOraclesBatch as fetchOraclesBatch, index$4_fetchPool as fetchPool, index$4_fetchPoolPositions as fetchPoolPositions, index$4_fetchPoolsBatch as fetchPoolsBatch, index$4_fetchPosition as fetchPosition, index$4_fetchPositionByParams as fetchPositionByParams, index$4_fetchPositionsBatch as fetchPositionsBatch, index$4_fetchUserPositions as fetchUserPositions, index$4_filterActivePositions as filterActivePositions, index$4_filterPoolsByMint as filterPoolsByMint, index$4_getAddLiquidityQuote as getAddLiquidityQuote, getConfigAddress$1 as getConfigAddress, index$4_getErrorMessage as getErrorMessage, index$4_getK as getK, index$4_getLiquidityAddresses as getLiquidityAddresses, index$4_getMetadataAddress as getMetadataAddress, index$4_getOracleAddress as getOracleAddress, index$4_getOracleAddressFromPool as getOracleAddressFromPool, index$4_getOracleAge as getOracleAge, index$4_getOracleBufferStats as getOracleBufferStats, index$4_getOracleDeviation as getOracleDeviation, index$4_getOracleForPool as getOracleForPool, index$4_getOracleSpotPrices as getOracleSpotPrices, index$4_getPendingFees as getPendingFees, index$4_getPoolAddress as getPoolAddress, index$4_getPoolAddressFromMints as getPoolAddressFromMints, index$4_getPoolAuthorityAddress as getPoolAuthorityAddress, index$4_getPoolByMints as getPoolByMints, index$4_getPoolInitAddresses as getPoolInitAddresses, index$4_getPoolVault0Address as getPoolVault0Address, index$4_getPoolVault1Address as getPoolVault1Address, index$4_getPositionAddress as getPositionAddress, index$4_getPositionAddressFromParams as getPositionAddressFromParams, index$4_getPositionValue as getPositionValue, index$4_getProtocolPositionAddress as getProtocolPositionAddress, index$4_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$4_getSpotPrice0 as getSpotPrice0, index$4_getSpotPrice1 as getSpotPrice1, index$4_getSwapAddresses as getSwapAddresses, index$4_getSwapQuote as getSwapQuote, index$4_getSwapQuoteExactOut as getSwapQuoteExactOut, index$4_getTvl as getTvl, index$4_initializeConfigArgsCodec as initializeConfigArgsCodec, index$4_initializeOracleArgsCodec as initializeOracleArgsCodec, index$4_initializePoolArgsCodec as initializePoolArgsCodec, index$4_isCpmmError as isCpmmError, index$4_isOracleStale as isOracleStale, index$4_isqrt as isqrt, index$4_marketCapToCurveParams as marketCapToCurveParams, index$4_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$4_marketCapToTokenPrice as marketCapToTokenPrice, index$4_maxBigInt as maxBigInt, index$4_minBigInt as minBigInt, index$4_numberToQ64 as numberToQ64, index$4_observationCodec as observationCodec, index$4_oracleConsultArgsCodec as oracleConsultArgsCodec, index$4_oracleStateDataCodec as oracleStateDataCodec, index$4_parseErrorFromLogs as parseErrorFromLogs, index$4_poolDataCodec as poolDataCodec, index$4_poolExists as poolExists, index$4_positionDataCodec as positionDataCodec, index$4_q64Div as q64Div, index$4_q64Mul as q64Mul, index$4_q64ToNumber as q64ToNumber, index$4_quoteToNumeraireArgsCodec as quoteToNumeraireArgsCodec, index$4_ratioToNumber as ratioToNumber, index$4_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$4_setFeesArgsCodec as setFeesArgsCodec, index$4_setRouteArgsCodec as setRouteArgsCodec, index$4_setSentinelArgsCodec as setSentinelArgsCodec, index$4_sortMints as sortMints, index$4_sortPoolsByReserves as sortPoolsByReserves, index$4_sortPositionsByShares as sortPositionsByShares, index$4_swapExactInArgsCodec as swapExactInArgsCodec, index$4_transferAdminArgsCodec as transferAdminArgsCodec, index$4_validateMarketCapParameters as validateMarketCapParameters };
|
|
2034
2065
|
}
|
|
2035
2066
|
|
|
2036
2067
|
/**
|
|
@@ -2054,9 +2085,9 @@ declare const CPMM_SENTINEL_PROGRAM_ID: Address;
|
|
|
2054
2085
|
* Source of truth: programs/prediction_sentinel/src/lib.rs
|
|
2055
2086
|
*/
|
|
2056
2087
|
declare const PREDICTION_SENTINEL_PROGRAM_ID: Address;
|
|
2057
|
-
declare const SEED_CONFIG = "
|
|
2058
|
-
declare const SEED_LAUNCH = "
|
|
2059
|
-
declare const SEED_LAUNCH_AUTHORITY = "
|
|
2088
|
+
declare const SEED_CONFIG = "config";
|
|
2089
|
+
declare const SEED_LAUNCH = "launch";
|
|
2090
|
+
declare const SEED_LAUNCH_AUTHORITY = "launch_authority";
|
|
2060
2091
|
/**
|
|
2061
2092
|
* Commitment hash for an empty remaining-accounts list — keccak256 of [0,0,0,0].
|
|
2062
2093
|
* Pass this for sentinelRemainingAccountsHash and migratorRemainingAccountsHash
|
|
@@ -2090,7 +2121,6 @@ declare const INITIALIZER_INSTRUCTION_DISCRIMINATORS: {
|
|
|
2090
2121
|
readonly initializeLaunch: Uint8Array<ArrayBuffer>;
|
|
2091
2122
|
readonly curveSwapExactIn: Uint8Array<ArrayBuffer>;
|
|
2092
2123
|
readonly migrateLaunch: Uint8Array<ArrayBuffer>;
|
|
2093
|
-
readonly abortLaunch: Uint8Array<ArrayBuffer>;
|
|
2094
2124
|
readonly previewSwapExactIn: Uint8Array<ArrayBuffer>;
|
|
2095
2125
|
readonly previewMigration: Uint8Array<ArrayBuffer>;
|
|
2096
2126
|
};
|
|
@@ -2345,7 +2375,7 @@ declare function getLaunchCodec$1(): FixedSizeCodec<LaunchArgs$1, Launch$1>;
|
|
|
2345
2375
|
declare function encodeU64LE(value: bigint): Uint8Array;
|
|
2346
2376
|
/**
|
|
2347
2377
|
* Derive the InitConfig PDA address.
|
|
2348
|
-
* Seeds: ['
|
|
2378
|
+
* Seeds: ['config']
|
|
2349
2379
|
*/
|
|
2350
2380
|
declare function getConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
|
|
2351
2381
|
/**
|
|
@@ -2355,12 +2385,12 @@ declare function getConfigAddress(programId?: Address): Promise<ProgramDerivedAd
|
|
|
2355
2385
|
declare function getProgramDataAddress(programId?: Address): Promise<ProgramDerivedAddress>;
|
|
2356
2386
|
/**
|
|
2357
2387
|
* Derive the Launch PDA address.
|
|
2358
|
-
* Seeds: ['
|
|
2388
|
+
* Seeds: ['launch', namespace, launch_id_bytes_32]
|
|
2359
2389
|
*/
|
|
2360
2390
|
declare function getLaunchAddress(namespace: Address, launchId: Uint8Array, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
2361
2391
|
/**
|
|
2362
2392
|
* Derive the Launch authority PDA address.
|
|
2363
|
-
* Seeds: ['
|
|
2393
|
+
* Seeds: ['launch_authority', launch]
|
|
2364
2394
|
*/
|
|
2365
2395
|
declare function getLaunchAuthorityAddress(launch: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
2366
2396
|
/**
|
|
@@ -2368,25 +2398,26 @@ declare function getLaunchAuthorityAddress(launch: Address, programId?: Address)
|
|
|
2368
2398
|
*/
|
|
2369
2399
|
declare function launchIdFromU64(launchId: bigint): Uint8Array;
|
|
2370
2400
|
|
|
2371
|
-
type AddressOrSigner$
|
|
2401
|
+
type AddressOrSigner$5 = Address | TransactionSigner;
|
|
2372
2402
|
interface InitializeConfigAccounts {
|
|
2373
|
-
admin: AddressOrSigner$
|
|
2403
|
+
admin: AddressOrSigner$5;
|
|
2374
2404
|
config: Address;
|
|
2375
2405
|
programData: Address;
|
|
2376
2406
|
systemProgram?: Address;
|
|
2407
|
+
instructionsSysvar?: Address;
|
|
2377
2408
|
}
|
|
2378
2409
|
declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
|
|
2379
2410
|
|
|
2380
|
-
type AddressOrSigner$
|
|
2411
|
+
type AddressOrSigner$4 = Address | TransactionSigner;
|
|
2381
2412
|
interface SetMigratorAllowlistAccounts {
|
|
2382
|
-
admin: AddressOrSigner$
|
|
2413
|
+
admin: AddressOrSigner$4;
|
|
2383
2414
|
config: Address;
|
|
2384
2415
|
}
|
|
2385
2416
|
declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
|
|
2386
2417
|
|
|
2387
|
-
type AddressOrSigner$
|
|
2418
|
+
type AddressOrSigner$3 = Address | TransactionSigner;
|
|
2388
2419
|
interface SetSentinelAllowlistAccounts {
|
|
2389
|
-
admin: AddressOrSigner$
|
|
2420
|
+
admin: AddressOrSigner$3;
|
|
2390
2421
|
config: Address;
|
|
2391
2422
|
}
|
|
2392
2423
|
declare function createSetSentinelAllowlistInstruction(accounts: SetSentinelAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
|
|
@@ -2401,7 +2432,7 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
|
|
|
2401
2432
|
allowBuy: boolean;
|
|
2402
2433
|
allowSell: boolean;
|
|
2403
2434
|
};
|
|
2404
|
-
type AddressOrSigner$
|
|
2435
|
+
type AddressOrSigner$2 = Address | TransactionSigner;
|
|
2405
2436
|
/**
|
|
2406
2437
|
* Derive the Metaplex token metadata PDA for a given mint.
|
|
2407
2438
|
* Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint]
|
|
@@ -2414,25 +2445,29 @@ interface InitializeLaunchAccounts {
|
|
|
2414
2445
|
config: Address;
|
|
2415
2446
|
launch: Address;
|
|
2416
2447
|
launchAuthority: Address;
|
|
2417
|
-
baseMint: AddressOrSigner$
|
|
2448
|
+
baseMint: AddressOrSigner$2;
|
|
2418
2449
|
quoteMint: Address;
|
|
2419
|
-
baseVault: AddressOrSigner$
|
|
2420
|
-
quoteVault: AddressOrSigner$
|
|
2421
|
-
payer: AddressOrSigner$
|
|
2422
|
-
authority?: AddressOrSigner$
|
|
2450
|
+
baseVault: AddressOrSigner$2;
|
|
2451
|
+
quoteVault: AddressOrSigner$2;
|
|
2452
|
+
payer: AddressOrSigner$2;
|
|
2453
|
+
authority?: AddressOrSigner$2;
|
|
2423
2454
|
migratorProgram?: Address;
|
|
2424
|
-
|
|
2455
|
+
baseTokenProgram?: Address;
|
|
2456
|
+
quoteTokenProgram?: Address;
|
|
2425
2457
|
systemProgram?: Address;
|
|
2426
2458
|
rent: Address;
|
|
2427
2459
|
/** Required when args.metadataName is non-empty. Derive with getTokenMetadataAddress(baseMint). */
|
|
2428
2460
|
metadataAccount?: Address;
|
|
2461
|
+
metadataProgram?: Address;
|
|
2462
|
+
instructionsSysvar?: Address;
|
|
2463
|
+
/** Required when migratorProgram is the CPMM migrator. */
|
|
2464
|
+
cpmmConfig?: Address;
|
|
2429
2465
|
/**
|
|
2430
2466
|
* Optional Address Lookup Table to reference for static accounts.
|
|
2431
|
-
* When provided, constant non-signer accounts (
|
|
2432
|
-
* rent, migratorProgram, quoteMint when WSOL, metadataProgram
|
|
2433
|
-
* encoded as ALT lookup metas instead of 32-byte static keys, reducing
|
|
2434
|
-
* transaction size
|
|
2435
|
-
* 1232-byte Solana transaction limit.
|
|
2467
|
+
* When provided, constant non-signer accounts (base/quote token program,
|
|
2468
|
+
* systemProgram, rent, migratorProgram, quoteMint when WSOL, metadataProgram)
|
|
2469
|
+
* are encoded as ALT lookup metas instead of 32-byte static keys, reducing
|
|
2470
|
+
* transaction size while keeping versioned config PDAs explicit.
|
|
2436
2471
|
*
|
|
2437
2472
|
* Use DOPPLER_DEVNET_ALT for devnet.
|
|
2438
2473
|
*/
|
|
@@ -2440,7 +2475,7 @@ interface InitializeLaunchAccounts {
|
|
|
2440
2475
|
}
|
|
2441
2476
|
declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise<Instruction>;
|
|
2442
2477
|
|
|
2443
|
-
type AddressOrSigner$
|
|
2478
|
+
type AddressOrSigner$1 = Address | TransactionSigner;
|
|
2444
2479
|
interface CurveSwapExactInAccounts {
|
|
2445
2480
|
config: Address;
|
|
2446
2481
|
launch: Address;
|
|
@@ -2451,10 +2486,12 @@ interface CurveSwapExactInAccounts {
|
|
|
2451
2486
|
userQuoteAccount: Address;
|
|
2452
2487
|
baseMint: Address;
|
|
2453
2488
|
quoteMint: Address;
|
|
2454
|
-
user: AddressOrSigner$
|
|
2489
|
+
user: AddressOrSigner$1;
|
|
2455
2490
|
/** Pass the actual sentinel program address, or omit to use System Program as a no-op placeholder. */
|
|
2456
2491
|
sentinelProgram?: Address;
|
|
2457
|
-
|
|
2492
|
+
baseTokenProgram?: Address;
|
|
2493
|
+
quoteTokenProgram?: Address;
|
|
2494
|
+
instructionsSysvar?: Address;
|
|
2458
2495
|
}
|
|
2459
2496
|
declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
|
|
2460
2497
|
amountIn: bigint;
|
|
@@ -2462,7 +2499,7 @@ declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAcc
|
|
|
2462
2499
|
direction: number;
|
|
2463
2500
|
}, programId?: Address): Instruction;
|
|
2464
2501
|
|
|
2465
|
-
type AddressOrSigner
|
|
2502
|
+
type AddressOrSigner = Address | TransactionSigner;
|
|
2466
2503
|
interface MigrateLaunchAccounts {
|
|
2467
2504
|
config: Address;
|
|
2468
2505
|
launch: Address;
|
|
@@ -2472,27 +2509,15 @@ interface MigrateLaunchAccounts {
|
|
|
2472
2509
|
baseVault: Address;
|
|
2473
2510
|
quoteVault: Address;
|
|
2474
2511
|
migratorProgram: Address;
|
|
2475
|
-
payer: AddressOrSigner
|
|
2476
|
-
|
|
2512
|
+
payer: AddressOrSigner;
|
|
2513
|
+
baseTokenProgram?: Address;
|
|
2514
|
+
quoteTokenProgram?: Address;
|
|
2477
2515
|
systemProgram?: Address;
|
|
2478
2516
|
rent: Address;
|
|
2517
|
+
instructionsSysvar?: Address;
|
|
2479
2518
|
}
|
|
2480
2519
|
declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction;
|
|
2481
2520
|
|
|
2482
|
-
type AddressOrSigner = Address | TransactionSigner;
|
|
2483
|
-
interface AbortLaunchAccounts {
|
|
2484
|
-
config: Address;
|
|
2485
|
-
launch: Address;
|
|
2486
|
-
launchAuthority: Address;
|
|
2487
|
-
baseVault: Address;
|
|
2488
|
-
quoteVault: Address;
|
|
2489
|
-
authority: AddressOrSigner;
|
|
2490
|
-
authorityBaseAccount: Address;
|
|
2491
|
-
baseMint: Address;
|
|
2492
|
-
tokenProgram?: Address;
|
|
2493
|
-
}
|
|
2494
|
-
declare function createAbortLaunchInstruction(accounts: AbortLaunchAccounts, programId?: Address): Instruction;
|
|
2495
|
-
|
|
2496
2521
|
interface PreviewSwapExactInResult {
|
|
2497
2522
|
amountOut: bigint;
|
|
2498
2523
|
feePaid: bigint;
|
|
@@ -2565,7 +2590,6 @@ declare function fetchAllLaunches(rpc: GetProgramAccountsRpc, config?: FetchLaun
|
|
|
2565
2590
|
declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority: Address, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
|
|
2566
2591
|
declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise<boolean>;
|
|
2567
2592
|
|
|
2568
|
-
type index$3_AbortLaunchAccounts = AbortLaunchAccounts;
|
|
2569
2593
|
declare const index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
|
|
2570
2594
|
declare const index$3_CPMM_SENTINEL_PROGRAM_ID: typeof CPMM_SENTINEL_PROGRAM_ID;
|
|
2571
2595
|
declare const index$3_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
|
|
@@ -2609,7 +2633,6 @@ declare const index$3_SF_BEFORE_SWAP: typeof SF_BEFORE_SWAP;
|
|
|
2609
2633
|
type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
|
|
2610
2634
|
type index$3_SetSentinelAllowlistAccounts = SetSentinelAllowlistAccounts;
|
|
2611
2635
|
declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
|
|
2612
|
-
declare const index$3_createAbortLaunchInstruction: typeof createAbortLaunchInstruction;
|
|
2613
2636
|
declare const index$3_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction;
|
|
2614
2637
|
declare const index$3_createInitializeConfigInstruction: typeof createInitializeConfigInstruction;
|
|
2615
2638
|
declare const index$3_createInitializeLaunchInstruction: typeof createInitializeLaunchInstruction;
|
|
@@ -2641,7 +2664,7 @@ declare const index$3_launchExists: typeof launchExists;
|
|
|
2641
2664
|
declare const index$3_launchIdFromU64: typeof launchIdFromU64;
|
|
2642
2665
|
declare const index$3_phaseLabel: typeof phaseLabel;
|
|
2643
2666
|
declare namespace index$3 {
|
|
2644
|
-
export {
|
|
2667
|
+
export { index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, index$3_CPMM_SENTINEL_PROGRAM_ID as CPMM_SENTINEL_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 CalldataBuf$1 as CalldataBuf, type index$3_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DIRECTION_BUY as DIRECTION_BUY, index$3_DIRECTION_SELL as DIRECTION_SELL, index$3_DOPPLER_DEVNET_ALT as DOPPLER_DEVNET_ALT, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$3_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type index$3_InitConfig as InitConfig, type index$3_InitConfigArgs as InitConfigArgs, type index$3_InitializeConfigAccounts as InitializeConfigAccounts, type index$3_InitializeConfigArgs as InitializeConfigArgs, type index$3_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$3_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$3_InitializeLaunchArgs as InitializeLaunchArgs, type index$3_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$3_LaunchWithAddress as LaunchWithAddress, index$3_MAX_CALLDATA as MAX_CALLDATA, index$3_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$3_MAX_SENTINEL_ALLOWLIST as MAX_SENTINEL_ALLOWLIST, 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_SENTINEL_PROGRAM_ID as PREDICTION_SENTINEL_PROGRAM_ID, type index$3_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$3_PreviewMigrationResult as PreviewMigrationResult, type index$3_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$3_PreviewSwapExactInResult as PreviewSwapExactInResult, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$3_SENTINEL_NO_CHANGE as SENTINEL_NO_CHANGE, index$3_SF_AFTER_SWAP as SF_AFTER_SWAP, index$3_SF_BEFORE_SWAP as SF_BEFORE_SWAP, type index$3_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, type index$3_SetSentinelAllowlistAccounts as SetSentinelAllowlistAccounts, 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_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$3_createSetSentinelAllowlistInstruction as createSetSentinelAllowlistInstruction, index$3_decodePreviewMigrationResult as decodePreviewMigrationResult, index$3_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$3_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_getConfigAddress as getConfigAddress, index$3_getInitConfigCodec as getInitConfigCodec, index$3_getInitConfigDecoder as getInitConfigDecoder, index$3_getInitConfigEncoder as getInitConfigEncoder, index$3_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$3_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$3_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$3_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$3_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$3_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$3_getLaunchAddress as getLaunchAddress, index$3_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_phaseLabel as phaseLabel };
|
|
2645
2668
|
}
|
|
2646
2669
|
|
|
2647
2670
|
/**
|
|
@@ -2794,6 +2817,7 @@ declare function getCpmmMigratorStateCodec(): Codec<CpmmMigratorStateArgs, CpmmM
|
|
|
2794
2817
|
|
|
2795
2818
|
declare const CPMM_MIGRATOR_PROGRAM_ID: Address;
|
|
2796
2819
|
declare const SEED_STATE = "state";
|
|
2820
|
+
declare const SEED_MIGRATION_AUTHORITY = "migration_authority";
|
|
2797
2821
|
declare const MAX_RECIPIENTS = 2;
|
|
2798
2822
|
declare const CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: {
|
|
2799
2823
|
readonly registerLaunch: Uint8Array<ArrayBuffer>;
|
|
@@ -2804,6 +2828,7 @@ declare const CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: {
|
|
|
2804
2828
|
};
|
|
2805
2829
|
|
|
2806
2830
|
declare function getCpmmMigratorStateAddress(launch: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
2831
|
+
declare function getCpmmMigrationAuthorityAddress(programId?: Address): Promise<ProgramDerivedAddress>;
|
|
2807
2832
|
|
|
2808
2833
|
declare function fetchCpmmMigratorState(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<CpmmMigratorState | null>;
|
|
2809
2834
|
|
|
@@ -2822,10 +2847,12 @@ type index$2_Recipient = Recipient;
|
|
|
2822
2847
|
type index$2_RecipientArgs = RecipientArgs;
|
|
2823
2848
|
type index$2_RegisterLaunchArgs = RegisterLaunchArgs;
|
|
2824
2849
|
type index$2_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
|
|
2850
|
+
declare const index$2_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
|
|
2825
2851
|
declare const index$2_SEED_STATE: typeof SEED_STATE;
|
|
2826
2852
|
declare const index$2_encodeMigrateCalldata: typeof encodeMigrateCalldata;
|
|
2827
2853
|
declare const index$2_encodeRegisterLaunchCalldata: typeof encodeRegisterLaunchCalldata;
|
|
2828
2854
|
declare const index$2_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
|
|
2855
|
+
declare const index$2_getCpmmMigrationAuthorityAddress: typeof getCpmmMigrationAuthorityAddress;
|
|
2829
2856
|
declare const index$2_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAddress;
|
|
2830
2857
|
declare const index$2_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec;
|
|
2831
2858
|
declare const index$2_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder;
|
|
@@ -2840,7 +2867,7 @@ declare const index$2_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCo
|
|
|
2840
2867
|
declare const index$2_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
|
|
2841
2868
|
declare const index$2_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
|
|
2842
2869
|
declare namespace index$2 {
|
|
2843
|
-
export { index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$2_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$2_CpmmMigratorState as CpmmMigratorState, type index$2_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$2_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$2_MigrateArgs as MigrateArgs, type index$2_MigrateArgsArgs as MigrateArgsArgs, type index$2_Recipient as Recipient, type index$2_RecipientArgs as RecipientArgs, type index$2_RegisterLaunchArgs as RegisterLaunchArgs, type index$2_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$2_SEED_STATE as SEED_STATE, index$2_encodeMigrateCalldata as encodeMigrateCalldata, index$2_encodeRegisterLaunchCalldata as encodeRegisterLaunchCalldata, index$2_fetchCpmmMigratorState as fetchCpmmMigratorState, index$2_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$2_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$2_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$2_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$2_getMigrateArgsCodec as getMigrateArgsCodec, index$2_getMigrateArgsDecoder as getMigrateArgsDecoder, index$2_getMigrateArgsEncoder as getMigrateArgsEncoder, index$2_getRecipientCodec as getRecipientCodec, index$2_getRecipientDecoder as getRecipientDecoder, index$2_getRecipientEncoder as getRecipientEncoder, index$2_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$2_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$2_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
|
|
2870
|
+
export { index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$2_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$2_CpmmMigratorState as CpmmMigratorState, type index$2_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$2_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$2_MigrateArgs as MigrateArgs, type index$2_MigrateArgsArgs as MigrateArgsArgs, type index$2_Recipient as Recipient, type index$2_RecipientArgs as RecipientArgs, type index$2_RegisterLaunchArgs as RegisterLaunchArgs, type index$2_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$2_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$2_SEED_STATE as SEED_STATE, index$2_encodeMigrateCalldata as encodeMigrateCalldata, index$2_encodeRegisterLaunchCalldata as encodeRegisterLaunchCalldata, index$2_fetchCpmmMigratorState as fetchCpmmMigratorState, index$2_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$2_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$2_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$2_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$2_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$2_getMigrateArgsCodec as getMigrateArgsCodec, index$2_getMigrateArgsDecoder as getMigrateArgsDecoder, index$2_getMigrateArgsEncoder as getMigrateArgsEncoder, index$2_getRecipientCodec as getRecipientCodec, index$2_getRecipientDecoder as getRecipientDecoder, index$2_getRecipientEncoder as getRecipientEncoder, index$2_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$2_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$2_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
|
|
2844
2871
|
}
|
|
2845
2872
|
|
|
2846
2873
|
/**
|
|
@@ -2908,8 +2935,8 @@ declare const ENTRY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
2908
2935
|
declare function getEntryDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2909
2936
|
type Entry = {
|
|
2910
2937
|
discriminator: ReadonlyUint8Array;
|
|
2911
|
-
/** The
|
|
2912
|
-
|
|
2938
|
+
/** The market this entry belongs to */
|
|
2939
|
+
market: Address;
|
|
2913
2940
|
/** Unique identifier for this entry within the market */
|
|
2914
2941
|
entryId: ReadonlyUint8Array;
|
|
2915
2942
|
/** The token mint for this entry */
|
|
@@ -2924,8 +2951,8 @@ type Entry = {
|
|
|
2924
2951
|
reserved: ReadonlyUint8Array;
|
|
2925
2952
|
};
|
|
2926
2953
|
type EntryArgs = {
|
|
2927
|
-
/** The
|
|
2928
|
-
|
|
2954
|
+
/** The market this entry belongs to */
|
|
2955
|
+
market: Address;
|
|
2929
2956
|
/** Unique identifier for this entry within the market */
|
|
2930
2957
|
entryId: ReadonlyUint8Array;
|
|
2931
2958
|
/** The token mint for this entry */
|
|
@@ -2965,8 +2992,8 @@ declare const ENTRY_BY_MINT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
2965
2992
|
declare function getEntryByMintDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2966
2993
|
type EntryByMint = {
|
|
2967
2994
|
discriminator: ReadonlyUint8Array;
|
|
2968
|
-
/** The
|
|
2969
|
-
|
|
2995
|
+
/** The market this entry belongs to */
|
|
2996
|
+
market: Address;
|
|
2970
2997
|
/** The base mint */
|
|
2971
2998
|
baseMint: Address;
|
|
2972
2999
|
/** The entry_id for reverse lookup */
|
|
@@ -2977,8 +3004,8 @@ type EntryByMint = {
|
|
|
2977
3004
|
reserved: ReadonlyUint8Array;
|
|
2978
3005
|
};
|
|
2979
3006
|
type EntryByMintArgs = {
|
|
2980
|
-
/** The
|
|
2981
|
-
|
|
3007
|
+
/** The market this entry belongs to */
|
|
3008
|
+
market: Address;
|
|
2982
3009
|
/** The base mint */
|
|
2983
3010
|
baseMint: Address;
|
|
2984
3011
|
/** The entry_id for reverse lookup */
|
|
@@ -3260,6 +3287,11 @@ type Launch = {
|
|
|
3260
3287
|
migratorProgram: Address;
|
|
3261
3288
|
migratorInitCalldata: CalldataBuf;
|
|
3262
3289
|
migratorMigrateCalldata: CalldataBuf;
|
|
3290
|
+
curveKind: number;
|
|
3291
|
+
swapLock: number;
|
|
3292
|
+
pad4: ReadonlyUint8Array;
|
|
3293
|
+
curveParams: CalldataBuf;
|
|
3294
|
+
quoteDeposited: bigint;
|
|
3263
3295
|
reserved: ReadonlyUint8Array;
|
|
3264
3296
|
};
|
|
3265
3297
|
type LaunchArgs = {
|
|
@@ -3292,6 +3324,11 @@ type LaunchArgs = {
|
|
|
3292
3324
|
migratorProgram: Address;
|
|
3293
3325
|
migratorInitCalldata: CalldataBufArgs;
|
|
3294
3326
|
migratorMigrateCalldata: CalldataBufArgs;
|
|
3327
|
+
curveKind: number;
|
|
3328
|
+
swapLock: number;
|
|
3329
|
+
pad4: ReadonlyUint8Array;
|
|
3330
|
+
curveParams: CalldataBufArgs;
|
|
3331
|
+
quoteDeposited: number | bigint;
|
|
3295
3332
|
reserved: ReadonlyUint8Array;
|
|
3296
3333
|
};
|
|
3297
3334
|
/** Gets the encoder for {@link LaunchArgs} account data. */
|
|
@@ -3615,7 +3652,7 @@ type ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAutho
|
|
|
3615
3652
|
/** Winner mint (must match market.winner_mint) */
|
|
3616
3653
|
winnerMint: Address<TAccountWinnerMint>;
|
|
3617
3654
|
/** EntryByMint for validation that this mint belongs to this market */
|
|
3618
|
-
entryByMint
|
|
3655
|
+
entryByMint?: Address<TAccountEntryByMint>;
|
|
3619
3656
|
/** Claimer's winner token account (source for burn) */
|
|
3620
3657
|
claimerWinnerAta: Address<TAccountClaimerWinnerAta>;
|
|
3621
3658
|
/** Claimer's quote token account (destination for rewards) */
|
|
@@ -3699,7 +3736,7 @@ declare function parseClaimInstruction<TProgram extends string, TAccountMetas ex
|
|
|
3699
3736
|
|
|
3700
3737
|
declare const MIGRATE_ENTRY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3701
3738
|
declare function getMigrateEntryDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3702
|
-
type MigrateEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string,
|
|
3739
|
+
type MigrateEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountEntry extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3703
3740
|
TAccountInitializerConfig extends string ? ReadonlyAccount<TAccountInitializerConfig> : TAccountInitializerConfig,
|
|
3704
3741
|
TAccountLaunch extends string ? ReadonlyAccount<TAccountLaunch> : TAccountLaunch,
|
|
3705
3742
|
TAccountLaunchAuthority extends string ? ReadonlySignerAccount<TAccountLaunchAuthority> & AccountSignerMeta<TAccountLaunchAuthority> : TAccountLaunchAuthority,
|
|
@@ -3708,7 +3745,8 @@ type MigrateEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATO
|
|
|
3708
3745
|
TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault,
|
|
3709
3746
|
TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault,
|
|
3710
3747
|
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
3711
|
-
|
|
3748
|
+
TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram,
|
|
3749
|
+
TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram,
|
|
3712
3750
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3713
3751
|
TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
|
|
3714
3752
|
TAccountOracle extends string ? ReadonlyAccount<TAccountOracle> : TAccountOracle,
|
|
@@ -3729,7 +3767,7 @@ type MigrateEntryInstructionDataArgs = {
|
|
|
3729
3767
|
declare function getMigrateEntryInstructionDataEncoder(): FixedSizeEncoder<MigrateEntryInstructionDataArgs>;
|
|
3730
3768
|
declare function getMigrateEntryInstructionDataDecoder(): FixedSizeDecoder<MigrateEntryInstructionData>;
|
|
3731
3769
|
declare function getMigrateEntryInstructionDataCodec(): FixedSizeCodec<MigrateEntryInstructionDataArgs, MigrateEntryInstructionData>;
|
|
3732
|
-
type MigrateEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
3770
|
+
type MigrateEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = {
|
|
3733
3771
|
initializerConfig: Address<TAccountInitializerConfig>;
|
|
3734
3772
|
/** Launch account from initializer */
|
|
3735
3773
|
launch: Address<TAccountLaunch>;
|
|
@@ -3744,7 +3782,8 @@ type MigrateEntryAsyncInput<TAccountInitializerConfig extends string = string, T
|
|
|
3744
3782
|
/** Quote vault from launch (source for transfer) */
|
|
3745
3783
|
quoteVault: Address<TAccountQuoteVault>;
|
|
3746
3784
|
payer: TransactionSigner<TAccountPayer>;
|
|
3747
|
-
|
|
3785
|
+
baseTokenProgram: Address<TAccountBaseTokenProgram>;
|
|
3786
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
3748
3787
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3749
3788
|
rent?: Address<TAccountRent>;
|
|
3750
3789
|
/**
|
|
@@ -3763,10 +3802,10 @@ type MigrateEntryAsyncInput<TAccountInitializerConfig extends string = string, T
|
|
|
3763
3802
|
entryByMint?: Address<TAccountEntryByMint>;
|
|
3764
3803
|
entryId: MigrateEntryInstructionDataArgs['entryId'];
|
|
3765
3804
|
};
|
|
3766
|
-
declare function getMigrateEntryInstructionAsync<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string,
|
|
3805
|
+
declare function getMigrateEntryInstructionAsync<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountOracle extends string, TAccountMarket extends string, TAccountPotVault extends string, TAccountMarketAuthority extends string, TAccountEntry extends string, TAccountEntryByMint extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: MigrateEntryAsyncInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>, config?: {
|
|
3767
3806
|
programAddress?: TProgramAddress;
|
|
3768
|
-
}): Promise<MigrateEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer,
|
|
3769
|
-
type MigrateEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
3807
|
+
}): Promise<MigrateEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>>;
|
|
3808
|
+
type MigrateEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = {
|
|
3770
3809
|
initializerConfig: Address<TAccountInitializerConfig>;
|
|
3771
3810
|
/** Launch account from initializer */
|
|
3772
3811
|
launch: Address<TAccountLaunch>;
|
|
@@ -3781,7 +3820,8 @@ type MigrateEntryInput<TAccountInitializerConfig extends string = string, TAccou
|
|
|
3781
3820
|
/** Quote vault from launch (source for transfer) */
|
|
3782
3821
|
quoteVault: Address<TAccountQuoteVault>;
|
|
3783
3822
|
payer: TransactionSigner<TAccountPayer>;
|
|
3784
|
-
|
|
3823
|
+
baseTokenProgram: Address<TAccountBaseTokenProgram>;
|
|
3824
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
3785
3825
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3786
3826
|
rent?: Address<TAccountRent>;
|
|
3787
3827
|
/**
|
|
@@ -3800,9 +3840,9 @@ type MigrateEntryInput<TAccountInitializerConfig extends string = string, TAccou
|
|
|
3800
3840
|
entryByMint: Address<TAccountEntryByMint>;
|
|
3801
3841
|
entryId: MigrateEntryInstructionDataArgs['entryId'];
|
|
3802
3842
|
};
|
|
3803
|
-
declare function getMigrateEntryInstruction<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string,
|
|
3843
|
+
declare function getMigrateEntryInstruction<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountOracle extends string, TAccountMarket extends string, TAccountPotVault extends string, TAccountMarketAuthority extends string, TAccountEntry extends string, TAccountEntryByMint extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: MigrateEntryInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>, config?: {
|
|
3804
3844
|
programAddress?: TProgramAddress;
|
|
3805
|
-
}): MigrateEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer,
|
|
3845
|
+
}): MigrateEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>;
|
|
3806
3846
|
type ParsedMigrateEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3807
3847
|
programAddress: Address<TProgram>;
|
|
3808
3848
|
accounts: {
|
|
@@ -3820,23 +3860,24 @@ type ParsedMigrateEntryInstruction<TProgram extends string = typeof PREDICTION_M
|
|
|
3820
3860
|
/** Quote vault from launch (source for transfer) */
|
|
3821
3861
|
quoteVault: TAccountMetas[6];
|
|
3822
3862
|
payer: TAccountMetas[7];
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3863
|
+
baseTokenProgram: TAccountMetas[8];
|
|
3864
|
+
quoteTokenProgram: TAccountMetas[9];
|
|
3865
|
+
systemProgram: TAccountMetas[10];
|
|
3866
|
+
rent: TAccountMetas[11];
|
|
3826
3867
|
/**
|
|
3827
3868
|
* The oracle that determines the winner.
|
|
3828
3869
|
* Anchor enforces owner + discriminator (trusted_oracle_interface).
|
|
3829
3870
|
*/
|
|
3830
|
-
oracle: TAccountMetas[
|
|
3871
|
+
oracle: TAccountMetas[12];
|
|
3831
3872
|
/** Market PDA */
|
|
3832
|
-
market: TAccountMetas[
|
|
3873
|
+
market: TAccountMetas[13];
|
|
3833
3874
|
/** Pot vault for holding quote tokens */
|
|
3834
|
-
potVault: TAccountMetas[
|
|
3835
|
-
marketAuthority: TAccountMetas[
|
|
3875
|
+
potVault: TAccountMetas[14];
|
|
3876
|
+
marketAuthority: TAccountMetas[15];
|
|
3836
3877
|
/** Entry PDA */
|
|
3837
|
-
entry: TAccountMetas[
|
|
3878
|
+
entry: TAccountMetas[16];
|
|
3838
3879
|
/** EntryByMint PDA (for validation) */
|
|
3839
|
-
entryByMint: TAccountMetas[
|
|
3880
|
+
entryByMint: TAccountMetas[17];
|
|
3840
3881
|
};
|
|
3841
3882
|
data: MigrateEntryInstructionData;
|
|
3842
3883
|
};
|
|
@@ -3902,7 +3943,7 @@ declare function parsePreviewPayoutIfWinnerInstruction<TProgram extends string,
|
|
|
3902
3943
|
|
|
3903
3944
|
declare const REGISTER_ENTRY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3904
3945
|
declare function getRegisterEntryDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3905
|
-
type RegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string,
|
|
3946
|
+
type RegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountEntry extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3906
3947
|
TAccountInitializerConfig extends string ? ReadonlyAccount<TAccountInitializerConfig> : TAccountInitializerConfig,
|
|
3907
3948
|
TAccountLaunch extends string ? ReadonlyAccount<TAccountLaunch> : TAccountLaunch,
|
|
3908
3949
|
TAccountLaunchAuthority extends string ? ReadonlySignerAccount<TAccountLaunchAuthority> & AccountSignerMeta<TAccountLaunchAuthority> : TAccountLaunchAuthority,
|
|
@@ -3911,7 +3952,8 @@ type RegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRAT
|
|
|
3911
3952
|
TAccountBaseVault extends string ? ReadonlyAccount<TAccountBaseVault> : TAccountBaseVault,
|
|
3912
3953
|
TAccountQuoteVault extends string ? ReadonlyAccount<TAccountQuoteVault> : TAccountQuoteVault,
|
|
3913
3954
|
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
3914
|
-
|
|
3955
|
+
TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram,
|
|
3956
|
+
TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram,
|
|
3915
3957
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3916
3958
|
TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
|
|
3917
3959
|
TAccountOracle extends string ? ReadonlyAccount<TAccountOracle> : TAccountOracle,
|
|
@@ -3932,9 +3974,8 @@ type RegisterEntryInstructionDataArgs = {
|
|
|
3932
3974
|
declare function getRegisterEntryInstructionDataEncoder(): FixedSizeEncoder<RegisterEntryInstructionDataArgs>;
|
|
3933
3975
|
declare function getRegisterEntryInstructionDataDecoder(): FixedSizeDecoder<RegisterEntryInstructionData>;
|
|
3934
3976
|
declare function getRegisterEntryInstructionDataCodec(): FixedSizeCodec<RegisterEntryInstructionDataArgs, RegisterEntryInstructionData>;
|
|
3935
|
-
type RegisterEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
3977
|
+
type RegisterEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = {
|
|
3936
3978
|
initializerConfig: Address<TAccountInitializerConfig>;
|
|
3937
|
-
/** Launch account from initializer */
|
|
3938
3979
|
launch: Address<TAccountLaunch>;
|
|
3939
3980
|
/** Launch authority PDA - signed by initializer */
|
|
3940
3981
|
launchAuthority: TransactionSigner<TAccountLaunchAuthority>;
|
|
@@ -3945,7 +3986,8 @@ type RegisterEntryAsyncInput<TAccountInitializerConfig extends string = string,
|
|
|
3945
3986
|
baseVault: Address<TAccountBaseVault>;
|
|
3946
3987
|
quoteVault: Address<TAccountQuoteVault>;
|
|
3947
3988
|
payer: TransactionSigner<TAccountPayer>;
|
|
3948
|
-
|
|
3989
|
+
baseTokenProgram: Address<TAccountBaseTokenProgram>;
|
|
3990
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
3949
3991
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3950
3992
|
rent?: Address<TAccountRent>;
|
|
3951
3993
|
/** The oracle that this market is tied to */
|
|
@@ -3961,12 +4003,11 @@ type RegisterEntryAsyncInput<TAccountInitializerConfig extends string = string,
|
|
|
3961
4003
|
entryByMint?: Address<TAccountEntryByMint>;
|
|
3962
4004
|
entryId: RegisterEntryInstructionDataArgs['entryId'];
|
|
3963
4005
|
};
|
|
3964
|
-
declare function getRegisterEntryInstructionAsync<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string,
|
|
4006
|
+
declare function getRegisterEntryInstructionAsync<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountOracle extends string, TAccountMarket extends string, TAccountPotVault extends string, TAccountMarketAuthority extends string, TAccountEntry extends string, TAccountEntryByMint extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: RegisterEntryAsyncInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>, config?: {
|
|
3965
4007
|
programAddress?: TProgramAddress;
|
|
3966
|
-
}): Promise<RegisterEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer,
|
|
3967
|
-
type RegisterEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
4008
|
+
}): Promise<RegisterEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>>;
|
|
4009
|
+
type RegisterEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = {
|
|
3968
4010
|
initializerConfig: Address<TAccountInitializerConfig>;
|
|
3969
|
-
/** Launch account from initializer */
|
|
3970
4011
|
launch: Address<TAccountLaunch>;
|
|
3971
4012
|
/** Launch authority PDA - signed by initializer */
|
|
3972
4013
|
launchAuthority: TransactionSigner<TAccountLaunchAuthority>;
|
|
@@ -3977,7 +4018,8 @@ type RegisterEntryInput<TAccountInitializerConfig extends string = string, TAcco
|
|
|
3977
4018
|
baseVault: Address<TAccountBaseVault>;
|
|
3978
4019
|
quoteVault: Address<TAccountQuoteVault>;
|
|
3979
4020
|
payer: TransactionSigner<TAccountPayer>;
|
|
3980
|
-
|
|
4021
|
+
baseTokenProgram: Address<TAccountBaseTokenProgram>;
|
|
4022
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
3981
4023
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3982
4024
|
rent?: Address<TAccountRent>;
|
|
3983
4025
|
/** The oracle that this market is tied to */
|
|
@@ -3993,14 +4035,13 @@ type RegisterEntryInput<TAccountInitializerConfig extends string = string, TAcco
|
|
|
3993
4035
|
entryByMint: Address<TAccountEntryByMint>;
|
|
3994
4036
|
entryId: RegisterEntryInstructionDataArgs['entryId'];
|
|
3995
4037
|
};
|
|
3996
|
-
declare function getRegisterEntryInstruction<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string,
|
|
4038
|
+
declare function getRegisterEntryInstruction<TAccountInitializerConfig extends string, TAccountLaunch extends string, TAccountLaunchAuthority extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPayer extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountOracle extends string, TAccountMarket extends string, TAccountPotVault extends string, TAccountMarketAuthority extends string, TAccountEntry extends string, TAccountEntryByMint extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: RegisterEntryInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>, config?: {
|
|
3997
4039
|
programAddress?: TProgramAddress;
|
|
3998
|
-
}): RegisterEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer,
|
|
4040
|
+
}): RegisterEntryInstruction<TProgramAddress, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>;
|
|
3999
4041
|
type ParsedRegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
4000
4042
|
programAddress: Address<TProgram>;
|
|
4001
4043
|
accounts: {
|
|
4002
4044
|
initializerConfig: TAccountMetas[0];
|
|
4003
|
-
/** Launch account from initializer */
|
|
4004
4045
|
launch: TAccountMetas[1];
|
|
4005
4046
|
/** Launch authority PDA - signed by initializer */
|
|
4006
4047
|
launchAuthority: TAccountMetas[2];
|
|
@@ -4011,30 +4052,31 @@ type ParsedRegisterEntryInstruction<TProgram extends string = typeof PREDICTION_
|
|
|
4011
4052
|
baseVault: TAccountMetas[5];
|
|
4012
4053
|
quoteVault: TAccountMetas[6];
|
|
4013
4054
|
payer: TAccountMetas[7];
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4055
|
+
baseTokenProgram: TAccountMetas[8];
|
|
4056
|
+
quoteTokenProgram: TAccountMetas[9];
|
|
4057
|
+
systemProgram: TAccountMetas[10];
|
|
4058
|
+
rent: TAccountMetas[11];
|
|
4017
4059
|
/** The oracle that this market is tied to */
|
|
4018
|
-
oracle: TAccountMetas[
|
|
4060
|
+
oracle: TAccountMetas[12];
|
|
4019
4061
|
/** Market PDA - created if first entry */
|
|
4020
|
-
market: TAccountMetas[
|
|
4062
|
+
market: TAccountMetas[13];
|
|
4021
4063
|
/** Pot vault for holding quote tokens */
|
|
4022
|
-
potVault: TAccountMetas[
|
|
4023
|
-
marketAuthority: TAccountMetas[
|
|
4064
|
+
potVault: TAccountMetas[14];
|
|
4065
|
+
marketAuthority: TAccountMetas[15];
|
|
4024
4066
|
/** Entry PDA for this entry */
|
|
4025
|
-
entry: TAccountMetas[
|
|
4067
|
+
entry: TAccountMetas[16];
|
|
4026
4068
|
/** EntryByMint PDA for reverse lookup */
|
|
4027
|
-
entryByMint: TAccountMetas[
|
|
4069
|
+
entryByMint: TAccountMetas[17];
|
|
4028
4070
|
};
|
|
4029
4071
|
data: RegisterEntryInstructionData;
|
|
4030
4072
|
};
|
|
4031
4073
|
declare function parseRegisterEntryInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRegisterEntryInstruction<TProgram, TAccountMetas>;
|
|
4032
4074
|
|
|
4033
|
-
declare function getPredictionMarketAddress(oracleState: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4075
|
+
declare function getPredictionMarketAddress(oracleState: Address, quoteMint: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4034
4076
|
declare function getPredictionMarketAuthorityAddress(market: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4035
4077
|
declare function getPredictionPotVaultAddress(market: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4036
|
-
declare function getPredictionEntryAddress(
|
|
4037
|
-
declare function getPredictionEntryByMintAddress(
|
|
4078
|
+
declare function getPredictionEntryAddress(market: Address, entryId: ReadonlyUint8Array | Uint8Array, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4079
|
+
declare function getPredictionEntryByMintAddress(market: Address, mint: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4038
4080
|
|
|
4039
4081
|
type index$1_AccumulatorUpdated = AccumulatorUpdated;
|
|
4040
4082
|
type index$1_AccumulatorUpdatedArgs = AccumulatorUpdatedArgs;
|
|
@@ -4072,9 +4114,9 @@ type index$1_MarketResolved = MarketResolved;
|
|
|
4072
4114
|
type index$1_MarketResolvedArgs = MarketResolvedArgs;
|
|
4073
4115
|
type index$1_MigrateEntryArgs = MigrateEntryArgs;
|
|
4074
4116
|
type index$1_MigrateEntryArgsArgs = MigrateEntryArgsArgs;
|
|
4075
|
-
type index$1_MigrateEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
4076
|
-
type index$1_MigrateEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
4077
|
-
type index$1_MigrateEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string,
|
|
4117
|
+
type index$1_MigrateEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = MigrateEntryAsyncInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>;
|
|
4118
|
+
type index$1_MigrateEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = MigrateEntryInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>;
|
|
4119
|
+
type index$1_MigrateEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountEntry extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = MigrateEntryInstruction<TProgram, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint, TRemainingAccounts>;
|
|
4078
4120
|
type index$1_MigrateEntryInstructionData = MigrateEntryInstructionData;
|
|
4079
4121
|
type index$1_MigrateEntryInstructionDataArgs = MigrateEntryInstructionDataArgs;
|
|
4080
4122
|
declare const index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED: typeof PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED;
|
|
@@ -4122,9 +4164,9 @@ type index$1_PreviewPayoutIfWinnerInstructionDataArgs = PreviewPayoutIfWinnerIns
|
|
|
4122
4164
|
declare const index$1_REGISTER_ENTRY_DISCRIMINATOR: typeof REGISTER_ENTRY_DISCRIMINATOR;
|
|
4123
4165
|
type index$1_RegisterEntryArgs = RegisterEntryArgs;
|
|
4124
4166
|
type index$1_RegisterEntryArgsArgs = RegisterEntryArgsArgs;
|
|
4125
|
-
type index$1_RegisterEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
4126
|
-
type index$1_RegisterEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string,
|
|
4127
|
-
type index$1_RegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string,
|
|
4167
|
+
type index$1_RegisterEntryAsyncInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = RegisterEntryAsyncInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>;
|
|
4168
|
+
type index$1_RegisterEntryInput<TAccountInitializerConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountOracle extends string = string, TAccountMarket extends string = string, TAccountPotVault extends string = string, TAccountMarketAuthority extends string = string, TAccountEntry extends string = string, TAccountEntryByMint extends string = string> = RegisterEntryInput<TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint>;
|
|
4169
|
+
type index$1_RegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountInitializerConfig extends string | AccountMeta<string> = string, TAccountLaunch extends string | AccountMeta<string> = string, TAccountLaunchAuthority extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountOracle extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountEntry extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RegisterEntryInstruction<TProgram, TAccountInitializerConfig, TAccountLaunch, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TAccountRent, TAccountOracle, TAccountMarket, TAccountPotVault, TAccountMarketAuthority, TAccountEntry, TAccountEntryByMint, TRemainingAccounts>;
|
|
4128
4170
|
type index$1_RegisterEntryInstructionData = RegisterEntryInstructionData;
|
|
4129
4171
|
type index$1_RegisterEntryInstructionDataArgs = RegisterEntryInstructionDataArgs;
|
|
4130
4172
|
type index$1_RewardsClaimed = RewardsClaimed;
|