@whetstone-research/doppler-sdk 1.0.27 → 1.0.28
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-XTL2GBZ4.cjs → chunk-4WY5GNZD.cjs} +108 -60
- package/dist/chunk-4WY5GNZD.cjs.map +1 -0
- package/dist/{chunk-RVDRWCJN.js → chunk-AYVFWD5P.js} +99 -62
- package/dist/chunk-AYVFWD5P.js.map +1 -0
- package/dist/evm/index.cjs +243 -175
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +36 -60
- package/dist/evm/index.d.ts +36 -60
- package/dist/evm/index.js +244 -176
- package/dist/evm/index.js.map +1 -1
- package/dist/solana/index.cjs +1967 -651
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +1458 -786
- package/dist/solana/index.d.ts +1458 -786
- package/dist/solana/index.js +1686 -376
- package/dist/solana/index.js.map +1 -1
- package/dist/solana/react/index.cjs +29 -29
- package/dist/solana/react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-RVDRWCJN.js.map +0 -1
- package/dist/chunk-XTL2GBZ4.cjs.map +0 -1
package/dist/solana/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { Address, ReadonlyUint8Array, Codec,
|
|
3
|
-
import { A as AmmConfig, P as Pool, a as Position, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$
|
|
2
|
+
import { Address, ReadonlyUint8Array, Codec, Base58EncodedBytes, Base64EncodedBytes, TransactionSigner, AccountRole, AccountMeta, AccountSignerMeta, ProgramDerivedAddress, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, OptionOrNullable, Option, TransactionMessage, TransactionMessageWithFeePayer } from '@solana/kit';
|
|
3
|
+
import { A as AmmConfig, P as Pool, a as Position, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$3, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, T as TransferAdminArgs, i as OracleConsultArgs, j as Observation, k as TradeDirection, l as SwapQuote, m as SwapQuoteExactOut, n as AddLiquidityQuote, o as RemoveLiquidityQuote, M as MarketCapValidationResult, p as MarketCapToCurveParamsInput, q as CurveParams, r as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, s as AddLiquidityEvent, t as AdminTransferredEvent, u as CollectFeesEvent, v as CollectProtocolFeesEvent, F as FeesUpdatedEvent, w as FetchOracleConfig, x as FetchPositionsConfig, H as HookErrorEvent, y as HookInvokedEvent, z as HookUpdatedEvent, B as OracleInitializedEvent, D as OracleUpdatedEvent, E as OracleWithAddress, J as PausedEvent, K as PoolInitializedEvent, L as PositionClosedEvent, N as PositionCreatedEvent, Q as PositionValue, U as PositionWithAddress, V as RemoveLiquidityEvent, W as SwapEvent, X as TwapResult, Y as UnpausedEvent, Z as VaultExcessWithdrawnEvent, _ as comparePoolAndOraclePrices, $ as consultTwap, a0 as fetchOracle, a1 as fetchOraclesBatch, a2 as fetchPoolPositions, a3 as fetchPosition, a4 as fetchPositionByParams, a5 as fetchPositionsBatch, a6 as fetchUserPositions, a7 as filterActivePositions, a8 as getOracleAddressFromPool, a9 as getOracleAge, aa as getOracleBufferStats, ab as getOracleDeviation, ac as getOracleForPool, ad as getOracleSpotPrices, ae as getPositionAddressFromParams, af as getPositionValue, ag as isOracleStale, ah as sortPositionsByShares } from '../oracle-D1wPWydZ.cjs';
|
|
4
4
|
import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -128,7 +128,7 @@ declare const removeLiquidityArgsCodec: Codec<RemoveLiquidityArgs>;
|
|
|
128
128
|
declare const collectFeesArgsCodec: Codec<CollectFeesArgs>;
|
|
129
129
|
declare const collectProtocolFeesArgsCodec: Codec<CollectProtocolFeesArgs>;
|
|
130
130
|
declare const createPositionArgsCodec: Codec<CreatePositionArgs>;
|
|
131
|
-
declare const initializeConfigArgsCodec: Codec<InitializeConfigArgs$
|
|
131
|
+
declare const initializeConfigArgsCodec: Codec<InitializeConfigArgs$3>;
|
|
132
132
|
declare const initializePoolArgsCodec: Codec<InitializePoolArgs>;
|
|
133
133
|
declare const initializeOracleArgsCodec: Codec<InitializeOracleArgs$1>;
|
|
134
134
|
declare const setHookArgsCodec: Codec<SetHookArgs>;
|
|
@@ -148,7 +148,7 @@ declare function encodeCollectProtocolFeesArgs(args: CollectProtocolFeesArgs): U
|
|
|
148
148
|
/** Encode CreatePosition args */
|
|
149
149
|
declare function encodeCreatePositionArgs(args: CreatePositionArgs): Uint8Array;
|
|
150
150
|
/** Encode InitializeConfig args */
|
|
151
|
-
declare function encodeInitializeConfigArgs(args: InitializeConfigArgs$
|
|
151
|
+
declare function encodeInitializeConfigArgs(args: InitializeConfigArgs$3): Uint8Array;
|
|
152
152
|
/** Encode InitializePool args */
|
|
153
153
|
declare function encodeInitializePoolArgs(args: InitializePoolArgs): Uint8Array;
|
|
154
154
|
/** Encode InitializeOracle args */
|
|
@@ -162,6 +162,27 @@ declare function encodeTransferAdminArgs(args: TransferAdminArgs): Uint8Array;
|
|
|
162
162
|
/** Encode OracleConsult args */
|
|
163
163
|
declare function encodeOracleConsultArgs(args: OracleConsultArgs): Uint8Array;
|
|
164
164
|
|
|
165
|
+
type AddressOrTransactionSigner = Address | TransactionSigner;
|
|
166
|
+
type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
167
|
+
type AccountMetaRole = typeof AccountRole.READONLY | typeof AccountRole.WRITABLE | typeof AccountRole.READONLY_SIGNER | typeof AccountRole.WRITABLE_SIGNER;
|
|
168
|
+
type EncodedProgramAccount = Readonly<{
|
|
169
|
+
pubkey: Address;
|
|
170
|
+
account: Readonly<{
|
|
171
|
+
data: readonly [string, 'base64'];
|
|
172
|
+
}>;
|
|
173
|
+
}>;
|
|
174
|
+
declare function isTransactionSigner(value: unknown): value is TransactionSigner;
|
|
175
|
+
declare function getAddressFromAddressOrSigner(value: AddressOrTransactionSigner): Address;
|
|
176
|
+
declare function getAddressFromRemainingAccount(account: RemainingAccount): Address;
|
|
177
|
+
declare function createAccountMeta(value: AddressOrTransactionSigner, role: AccountMetaRole): AccountMeta | AccountSignerMeta;
|
|
178
|
+
declare function createReadonlyRemainingAccountMeta(account: RemainingAccount): AccountMeta | AccountSignerMeta;
|
|
179
|
+
declare function bytesToBase64(bytes: ReadonlyUint8Array): string;
|
|
180
|
+
declare function bytesToBase64EncodedBytes(bytes: ReadonlyUint8Array): Base64EncodedBytes;
|
|
181
|
+
declare function base64ToBytes(base64: string): Uint8Array;
|
|
182
|
+
declare function addressToBase58EncodedBytes(address: Address): Base58EncodedBytes;
|
|
183
|
+
declare function normalizeProgramAccountsResponse(response: unknown): EncodedProgramAccount[];
|
|
184
|
+
declare function warnAccountDecodeFailure(accountType: string, accountAddress: Address): void;
|
|
185
|
+
|
|
165
186
|
/**
|
|
166
187
|
* Sort two mints into canonical order (token0 < token1 by bytes)
|
|
167
188
|
* This is required for Pool PDA derivation and instruction ordering.
|
|
@@ -1035,16 +1056,16 @@ declare function parseCreatePositionInstruction<TProgram extends string, TAccoun
|
|
|
1035
1056
|
* @see https://github.com/codama-idl/codama
|
|
1036
1057
|
*/
|
|
1037
1058
|
|
|
1038
|
-
declare const INITIALIZE_CONFIG_DISCRIMINATOR$
|
|
1039
|
-
declare function getInitializeConfigDiscriminatorBytes$
|
|
1040
|
-
type InitializeConfigInstruction$
|
|
1059
|
+
declare const INITIALIZE_CONFIG_DISCRIMINATOR$2: Uint8Array<ArrayBuffer>;
|
|
1060
|
+
declare function getInitializeConfigDiscriminatorBytes$2(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1061
|
+
type InitializeConfigInstruction$2<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1041
1062
|
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
1042
1063
|
TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
|
|
1043
1064
|
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
1044
1065
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1045
1066
|
...TRemainingAccounts
|
|
1046
1067
|
]>;
|
|
1047
|
-
type InitializeConfigInstructionData$
|
|
1068
|
+
type InitializeConfigInstructionData$2 = {
|
|
1048
1069
|
discriminator: ReadonlyUint8Array;
|
|
1049
1070
|
admin: Address;
|
|
1050
1071
|
maxSwapFeeBps: number;
|
|
@@ -1053,7 +1074,7 @@ type InitializeConfigInstructionData$1 = {
|
|
|
1053
1074
|
protocolFeeBps: number;
|
|
1054
1075
|
hookAllowlist: Array<Address>;
|
|
1055
1076
|
};
|
|
1056
|
-
type InitializeConfigInstructionDataArgs$
|
|
1077
|
+
type InitializeConfigInstructionDataArgs$2 = {
|
|
1057
1078
|
admin: Address;
|
|
1058
1079
|
maxSwapFeeBps: number;
|
|
1059
1080
|
maxFeeSplitBps: number;
|
|
@@ -1061,40 +1082,40 @@ type InitializeConfigInstructionDataArgs$1 = {
|
|
|
1061
1082
|
protocolFeeBps: number;
|
|
1062
1083
|
hookAllowlist: Array<Address>;
|
|
1063
1084
|
};
|
|
1064
|
-
declare function getInitializeConfigInstructionDataEncoder$
|
|
1065
|
-
declare function getInitializeConfigInstructionDataDecoder$
|
|
1066
|
-
declare function getInitializeConfigInstructionDataCodec$
|
|
1067
|
-
type InitializeConfigAsyncInput$
|
|
1085
|
+
declare function getInitializeConfigInstructionDataEncoder$2(): Encoder<InitializeConfigInstructionDataArgs$2>;
|
|
1086
|
+
declare function getInitializeConfigInstructionDataDecoder$2(): Decoder<InitializeConfigInstructionData$2>;
|
|
1087
|
+
declare function getInitializeConfigInstructionDataCodec$2(): Codec<InitializeConfigInstructionDataArgs$2, InitializeConfigInstructionData$2>;
|
|
1088
|
+
type InitializeConfigAsyncInput$2<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1068
1089
|
config?: Address<TAccountConfig>;
|
|
1069
1090
|
programData: Address<TAccountProgramData>;
|
|
1070
1091
|
payer: TransactionSigner<TAccountPayer>;
|
|
1071
1092
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1072
|
-
admin: InitializeConfigInstructionDataArgs$
|
|
1073
|
-
maxSwapFeeBps: InitializeConfigInstructionDataArgs$
|
|
1074
|
-
maxFeeSplitBps: InitializeConfigInstructionDataArgs$
|
|
1075
|
-
protocolFeeEnabled: InitializeConfigInstructionDataArgs$
|
|
1076
|
-
protocolFeeBps: InitializeConfigInstructionDataArgs$
|
|
1077
|
-
hookAllowlist: InitializeConfigInstructionDataArgs$
|
|
1078
|
-
};
|
|
1079
|
-
declare function getInitializeConfigInstructionAsync$
|
|
1093
|
+
admin: InitializeConfigInstructionDataArgs$2['admin'];
|
|
1094
|
+
maxSwapFeeBps: InitializeConfigInstructionDataArgs$2['maxSwapFeeBps'];
|
|
1095
|
+
maxFeeSplitBps: InitializeConfigInstructionDataArgs$2['maxFeeSplitBps'];
|
|
1096
|
+
protocolFeeEnabled: InitializeConfigInstructionDataArgs$2['protocolFeeEnabled'];
|
|
1097
|
+
protocolFeeBps: InitializeConfigInstructionDataArgs$2['protocolFeeBps'];
|
|
1098
|
+
hookAllowlist: InitializeConfigInstructionDataArgs$2['hookAllowlist'];
|
|
1099
|
+
};
|
|
1100
|
+
declare function getInitializeConfigInstructionAsync$2<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput$2<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
|
|
1080
1101
|
programAddress?: TProgramAddress;
|
|
1081
|
-
}): Promise<InitializeConfigInstruction$
|
|
1082
|
-
type InitializeConfigInput$
|
|
1102
|
+
}): Promise<InitializeConfigInstruction$2<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>>;
|
|
1103
|
+
type InitializeConfigInput$2<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1083
1104
|
config: Address<TAccountConfig>;
|
|
1084
1105
|
programData: Address<TAccountProgramData>;
|
|
1085
1106
|
payer: TransactionSigner<TAccountPayer>;
|
|
1086
1107
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1087
|
-
admin: InitializeConfigInstructionDataArgs$
|
|
1088
|
-
maxSwapFeeBps: InitializeConfigInstructionDataArgs$
|
|
1089
|
-
maxFeeSplitBps: InitializeConfigInstructionDataArgs$
|
|
1090
|
-
protocolFeeEnabled: InitializeConfigInstructionDataArgs$
|
|
1091
|
-
protocolFeeBps: InitializeConfigInstructionDataArgs$
|
|
1092
|
-
hookAllowlist: InitializeConfigInstructionDataArgs$
|
|
1093
|
-
};
|
|
1094
|
-
declare function getInitializeConfigInstruction$
|
|
1108
|
+
admin: InitializeConfigInstructionDataArgs$2['admin'];
|
|
1109
|
+
maxSwapFeeBps: InitializeConfigInstructionDataArgs$2['maxSwapFeeBps'];
|
|
1110
|
+
maxFeeSplitBps: InitializeConfigInstructionDataArgs$2['maxFeeSplitBps'];
|
|
1111
|
+
protocolFeeEnabled: InitializeConfigInstructionDataArgs$2['protocolFeeEnabled'];
|
|
1112
|
+
protocolFeeBps: InitializeConfigInstructionDataArgs$2['protocolFeeBps'];
|
|
1113
|
+
hookAllowlist: InitializeConfigInstructionDataArgs$2['hookAllowlist'];
|
|
1114
|
+
};
|
|
1115
|
+
declare function getInitializeConfigInstruction$2<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigInput$2<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
|
|
1095
1116
|
programAddress?: TProgramAddress;
|
|
1096
|
-
}): InitializeConfigInstruction$
|
|
1097
|
-
type ParsedInitializeConfigInstruction$
|
|
1117
|
+
}): InitializeConfigInstruction$2<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>;
|
|
1118
|
+
type ParsedInitializeConfigInstruction$2<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1098
1119
|
programAddress: Address<TProgram>;
|
|
1099
1120
|
accounts: {
|
|
1100
1121
|
config: TAccountMetas[0];
|
|
@@ -1102,9 +1123,9 @@ type ParsedInitializeConfigInstruction$1<TProgram extends string = typeof CPMM_P
|
|
|
1102
1123
|
payer: TAccountMetas[2];
|
|
1103
1124
|
systemProgram: TAccountMetas[3];
|
|
1104
1125
|
};
|
|
1105
|
-
data: InitializeConfigInstructionData$
|
|
1126
|
+
data: InitializeConfigInstructionData$2;
|
|
1106
1127
|
};
|
|
1107
|
-
declare function parseInitializeConfigInstruction$
|
|
1128
|
+
declare function parseInitializeConfigInstruction$2<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction$2<TProgram, TAccountMetas>;
|
|
1108
1129
|
|
|
1109
1130
|
/**
|
|
1110
1131
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1881,7 +1902,7 @@ type SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool
|
|
|
1881
1902
|
declare function getSwapExactInInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
|
|
1882
1903
|
programAddress?: TProgramAddress;
|
|
1883
1904
|
}): Promise<SwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
|
|
1884
|
-
type SwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
|
|
1905
|
+
type SwapExactInInput$1<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
|
|
1885
1906
|
config: Address<TAccountConfig>;
|
|
1886
1907
|
pool: Address<TAccountPool>;
|
|
1887
1908
|
authority: Address<TAccountAuthority>;
|
|
@@ -1900,7 +1921,7 @@ type SwapExactInInput<TAccountConfig extends string = string, TAccountPool exten
|
|
|
1900
1921
|
tradeDirection: SwapExactInInstructionDataArgs['tradeDirection'];
|
|
1901
1922
|
updateOracle: SwapExactInInstructionDataArgs['updateOracle'];
|
|
1902
1923
|
};
|
|
1903
|
-
declare function getSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
|
|
1924
|
+
declare function getSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInInput$1<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
|
|
1904
1925
|
programAddress?: TProgramAddress;
|
|
1905
1926
|
}): SwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
|
|
1906
1927
|
type ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
@@ -2147,7 +2168,6 @@ type ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_
|
|
|
2147
2168
|
};
|
|
2148
2169
|
declare function parseWithdrawVaultExcessInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
|
|
2149
2170
|
|
|
2150
|
-
type RemainingAccount$3 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
2151
2171
|
/**
|
|
2152
2172
|
* Helper to create swap instruction with simplified parameters
|
|
2153
2173
|
*/
|
|
@@ -2166,7 +2186,7 @@ declare function createSwapInstruction(params: {
|
|
|
2166
2186
|
minAmountOut: bigint;
|
|
2167
2187
|
tradeDirection: TradeDirection;
|
|
2168
2188
|
oracle?: Address;
|
|
2169
|
-
remainingAccounts?: RemainingAccount
|
|
2189
|
+
remainingAccounts?: RemainingAccount[];
|
|
2170
2190
|
updateOracle?: boolean;
|
|
2171
2191
|
token0Program?: Address;
|
|
2172
2192
|
token1Program?: Address;
|
|
@@ -2330,445 +2350,459 @@ declare function fetchConfigWithAddress(rpc: Rpc<GetAccountInfoApi>, programId?:
|
|
|
2330
2350
|
account: AmmConfig;
|
|
2331
2351
|
} | null>;
|
|
2332
2352
|
|
|
2333
|
-
declare const index$
|
|
2334
|
-
declare const index$
|
|
2335
|
-
declare const index$
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
type index$
|
|
2341
|
-
type index$
|
|
2342
|
-
type index$
|
|
2343
|
-
|
|
2344
|
-
declare const index$
|
|
2345
|
-
|
|
2346
|
-
declare const index$
|
|
2347
|
-
declare const index$
|
|
2348
|
-
declare const index$
|
|
2349
|
-
declare const index$
|
|
2350
|
-
declare const index$
|
|
2351
|
-
declare const index$
|
|
2352
|
-
declare const index$
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
type index$
|
|
2356
|
-
type index$
|
|
2357
|
-
|
|
2358
|
-
type index$
|
|
2359
|
-
declare const index$
|
|
2360
|
-
type index$
|
|
2361
|
-
|
|
2362
|
-
type index$
|
|
2363
|
-
type index$
|
|
2364
|
-
|
|
2365
|
-
type index$
|
|
2366
|
-
declare const index$
|
|
2367
|
-
type index$
|
|
2368
|
-
|
|
2369
|
-
type index$
|
|
2370
|
-
type index$
|
|
2371
|
-
type index$
|
|
2372
|
-
|
|
2373
|
-
type index$
|
|
2374
|
-
declare const index$
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
type index$
|
|
2379
|
-
type index$
|
|
2380
|
-
type index$
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
declare const index$
|
|
2384
|
-
declare const index$
|
|
2385
|
-
type index$
|
|
2386
|
-
declare const index$
|
|
2387
|
-
declare const index$
|
|
2388
|
-
|
|
2389
|
-
declare const index$
|
|
2390
|
-
declare const index$
|
|
2391
|
-
declare const index$
|
|
2392
|
-
declare const index$
|
|
2393
|
-
declare const index$
|
|
2394
|
-
declare const index$
|
|
2395
|
-
declare const index$
|
|
2396
|
-
declare const index$
|
|
2397
|
-
|
|
2398
|
-
declare const index$
|
|
2399
|
-
|
|
2400
|
-
type index$
|
|
2401
|
-
|
|
2402
|
-
type index$
|
|
2403
|
-
type index$
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
declare const index$
|
|
2408
|
-
declare const index$
|
|
2409
|
-
declare const index$
|
|
2410
|
-
declare const index$
|
|
2411
|
-
declare const index$
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
type index$
|
|
2416
|
-
type index$
|
|
2417
|
-
|
|
2418
|
-
type index$
|
|
2419
|
-
type index$
|
|
2420
|
-
|
|
2421
|
-
type index$
|
|
2422
|
-
type index$
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
declare const index$
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
type index$
|
|
2431
|
-
type index$
|
|
2432
|
-
type index$
|
|
2433
|
-
type index$
|
|
2434
|
-
type index$
|
|
2435
|
-
type index$
|
|
2436
|
-
type index$
|
|
2437
|
-
type index$
|
|
2438
|
-
type index$
|
|
2439
|
-
type index$
|
|
2440
|
-
type index$
|
|
2441
|
-
type index$
|
|
2442
|
-
type index$
|
|
2443
|
-
type index$
|
|
2444
|
-
type index$
|
|
2445
|
-
type index$
|
|
2446
|
-
type index$
|
|
2447
|
-
type index$
|
|
2448
|
-
type index$
|
|
2449
|
-
type index$
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
declare const index$
|
|
2455
|
-
declare const index$
|
|
2456
|
-
|
|
2457
|
-
declare const index$
|
|
2458
|
-
declare const index$
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
type index$
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
type index$
|
|
2470
|
-
type index$
|
|
2471
|
-
|
|
2472
|
-
type index$
|
|
2473
|
-
|
|
2474
|
-
type index$
|
|
2475
|
-
|
|
2476
|
-
type index$
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
declare const index$
|
|
2483
|
-
declare const index$
|
|
2484
|
-
declare const index$
|
|
2485
|
-
declare const index$
|
|
2486
|
-
declare const index$
|
|
2487
|
-
declare const index$
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
type index$
|
|
2494
|
-
type index$
|
|
2495
|
-
type index$
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
type index$
|
|
2500
|
-
type index$
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
type index$
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
declare const index$
|
|
2508
|
-
declare const index$
|
|
2509
|
-
declare const index$
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
type index$
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
type index$
|
|
2521
|
-
|
|
2522
|
-
type index$
|
|
2523
|
-
type index$
|
|
2524
|
-
|
|
2525
|
-
type index$
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
type index$
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
type index$
|
|
2532
|
-
type index$
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
declare const index$
|
|
2537
|
-
declare const index$
|
|
2538
|
-
declare const index$
|
|
2539
|
-
declare const index$
|
|
2540
|
-
declare const index$
|
|
2541
|
-
declare const index$
|
|
2542
|
-
declare const index$
|
|
2543
|
-
declare const index$
|
|
2544
|
-
declare const index$
|
|
2545
|
-
declare const index$
|
|
2546
|
-
declare const index$
|
|
2547
|
-
declare const index$
|
|
2548
|
-
declare const index$
|
|
2549
|
-
declare const index$
|
|
2550
|
-
declare const index$
|
|
2551
|
-
declare const index$
|
|
2552
|
-
declare const index$
|
|
2553
|
-
declare const index$
|
|
2554
|
-
declare const index$
|
|
2555
|
-
declare const index$
|
|
2556
|
-
declare const index$
|
|
2557
|
-
declare const index$
|
|
2558
|
-
declare const index$
|
|
2559
|
-
declare const index$
|
|
2560
|
-
declare const index$
|
|
2561
|
-
declare const index$
|
|
2562
|
-
declare const index$
|
|
2563
|
-
declare const index$
|
|
2564
|
-
declare const index$
|
|
2565
|
-
declare const index$
|
|
2566
|
-
declare const index$
|
|
2567
|
-
declare const index$
|
|
2568
|
-
declare const index$
|
|
2569
|
-
declare const index$
|
|
2570
|
-
declare const index$
|
|
2571
|
-
declare const index$
|
|
2572
|
-
declare const index$
|
|
2573
|
-
declare const index$
|
|
2574
|
-
declare const index$
|
|
2575
|
-
declare const index$
|
|
2576
|
-
declare const index$
|
|
2577
|
-
declare const index$
|
|
2578
|
-
declare const index$
|
|
2579
|
-
declare const index$
|
|
2580
|
-
declare const index$
|
|
2581
|
-
declare const index$
|
|
2582
|
-
declare const index$
|
|
2583
|
-
declare const index$
|
|
2584
|
-
declare const index$
|
|
2585
|
-
declare const index$
|
|
2586
|
-
declare const index$
|
|
2587
|
-
declare const index$
|
|
2588
|
-
declare const index$
|
|
2589
|
-
declare const index$
|
|
2590
|
-
declare const index$
|
|
2591
|
-
declare const index$
|
|
2592
|
-
declare const index$
|
|
2593
|
-
declare const index$
|
|
2594
|
-
declare const index$
|
|
2595
|
-
declare const index$
|
|
2596
|
-
declare const index$
|
|
2597
|
-
declare const index$
|
|
2598
|
-
declare const index$
|
|
2599
|
-
declare const index$
|
|
2600
|
-
declare const index$
|
|
2601
|
-
declare const index$
|
|
2602
|
-
declare const index$
|
|
2603
|
-
declare const index$
|
|
2604
|
-
declare const index$
|
|
2605
|
-
declare const index$
|
|
2606
|
-
declare const index$
|
|
2607
|
-
declare const index$
|
|
2608
|
-
declare const index$
|
|
2609
|
-
declare const index$
|
|
2610
|
-
declare const index$
|
|
2611
|
-
declare const index$
|
|
2612
|
-
declare const index$
|
|
2613
|
-
declare const index$
|
|
2614
|
-
declare const index$
|
|
2615
|
-
declare const index$
|
|
2616
|
-
declare const index$
|
|
2617
|
-
declare const index$
|
|
2618
|
-
declare const index$
|
|
2619
|
-
declare const index$
|
|
2620
|
-
declare const index$
|
|
2621
|
-
declare const index$
|
|
2622
|
-
declare const index$
|
|
2623
|
-
declare const index$
|
|
2624
|
-
declare const index$
|
|
2625
|
-
declare const index$
|
|
2626
|
-
declare const index$
|
|
2627
|
-
declare const index$
|
|
2628
|
-
declare const index$
|
|
2629
|
-
declare const index$
|
|
2630
|
-
declare const index$
|
|
2631
|
-
declare const index$
|
|
2632
|
-
declare const index$
|
|
2633
|
-
declare const index$
|
|
2634
|
-
declare const index$
|
|
2635
|
-
declare const index$
|
|
2636
|
-
declare const index$
|
|
2637
|
-
declare const index$
|
|
2638
|
-
declare const index$
|
|
2639
|
-
declare const index$
|
|
2640
|
-
declare const index$
|
|
2641
|
-
declare const index$
|
|
2642
|
-
declare const index$
|
|
2643
|
-
declare const index$
|
|
2644
|
-
declare const index$
|
|
2645
|
-
declare const index$
|
|
2646
|
-
declare const index$
|
|
2647
|
-
declare const index$
|
|
2648
|
-
declare const index$
|
|
2649
|
-
declare const index$
|
|
2650
|
-
declare const index$
|
|
2651
|
-
declare const index$
|
|
2652
|
-
declare const index$
|
|
2653
|
-
declare const index$
|
|
2654
|
-
declare const index$
|
|
2655
|
-
declare const index$
|
|
2656
|
-
declare const index$
|
|
2657
|
-
declare const index$
|
|
2658
|
-
declare const index$
|
|
2659
|
-
declare const index$
|
|
2660
|
-
declare const index$
|
|
2661
|
-
declare const index$
|
|
2662
|
-
declare const index$
|
|
2663
|
-
declare const index$
|
|
2664
|
-
declare const index$
|
|
2665
|
-
declare const index$
|
|
2666
|
-
declare const index$
|
|
2667
|
-
declare const index$
|
|
2668
|
-
declare const index$
|
|
2669
|
-
declare const index$
|
|
2670
|
-
declare const index$
|
|
2671
|
-
declare const index$
|
|
2672
|
-
declare const index$
|
|
2673
|
-
declare const index$
|
|
2674
|
-
declare const index$
|
|
2675
|
-
declare const index$
|
|
2676
|
-
declare const index$
|
|
2677
|
-
declare const index$
|
|
2678
|
-
declare const index$
|
|
2679
|
-
declare const index$
|
|
2680
|
-
declare const index$
|
|
2681
|
-
declare const index$
|
|
2682
|
-
declare const index$
|
|
2683
|
-
declare const index$
|
|
2684
|
-
declare const index$
|
|
2685
|
-
declare const index$
|
|
2686
|
-
declare const index$
|
|
2687
|
-
declare const index$
|
|
2688
|
-
declare const index$
|
|
2689
|
-
declare const index$
|
|
2690
|
-
declare const index$
|
|
2691
|
-
declare const index$
|
|
2692
|
-
declare const index$
|
|
2693
|
-
declare const index$
|
|
2694
|
-
declare const index$
|
|
2695
|
-
declare const index$
|
|
2696
|
-
declare const index$
|
|
2697
|
-
declare const index$
|
|
2698
|
-
declare const index$
|
|
2699
|
-
declare const index$
|
|
2700
|
-
declare const index$
|
|
2701
|
-
declare const index$
|
|
2702
|
-
declare const index$
|
|
2703
|
-
declare const index$
|
|
2704
|
-
declare const index$
|
|
2705
|
-
declare const index$
|
|
2706
|
-
declare const index$
|
|
2707
|
-
declare const index$
|
|
2708
|
-
declare const index$
|
|
2709
|
-
declare const index$
|
|
2710
|
-
declare const index$
|
|
2711
|
-
declare const index$
|
|
2712
|
-
declare const index$
|
|
2713
|
-
declare const index$
|
|
2714
|
-
declare const index$
|
|
2715
|
-
declare const index$
|
|
2716
|
-
declare const index$
|
|
2717
|
-
declare const index$
|
|
2718
|
-
declare const index$
|
|
2719
|
-
declare const index$
|
|
2720
|
-
declare const index$
|
|
2721
|
-
declare const index$
|
|
2722
|
-
declare const index$
|
|
2723
|
-
declare const index$
|
|
2724
|
-
declare const index$
|
|
2725
|
-
declare const index$
|
|
2726
|
-
declare const index$
|
|
2727
|
-
declare const index$
|
|
2728
|
-
declare const index$
|
|
2729
|
-
declare const index$
|
|
2730
|
-
declare const index$
|
|
2731
|
-
declare const index$
|
|
2732
|
-
declare const index$
|
|
2733
|
-
declare const index$
|
|
2734
|
-
declare const index$
|
|
2735
|
-
declare const index$
|
|
2736
|
-
declare const index$
|
|
2737
|
-
declare const index$
|
|
2738
|
-
declare const index$
|
|
2739
|
-
declare const index$
|
|
2740
|
-
declare const index$
|
|
2741
|
-
declare const index$
|
|
2742
|
-
declare const index$
|
|
2743
|
-
declare const index$
|
|
2744
|
-
declare const index$
|
|
2745
|
-
declare const index$
|
|
2746
|
-
declare const index$
|
|
2747
|
-
declare const index$
|
|
2748
|
-
declare const index$
|
|
2749
|
-
declare const index$
|
|
2750
|
-
declare const index$
|
|
2751
|
-
declare const index$
|
|
2752
|
-
declare const index$
|
|
2753
|
-
declare const index$
|
|
2754
|
-
declare const index$
|
|
2755
|
-
declare const index$
|
|
2756
|
-
declare const index$
|
|
2757
|
-
declare const index$
|
|
2758
|
-
declare const index$
|
|
2759
|
-
declare const index$
|
|
2760
|
-
declare const index$
|
|
2761
|
-
declare const index$
|
|
2762
|
-
declare const index$
|
|
2763
|
-
declare const index$
|
|
2764
|
-
declare const index$
|
|
2765
|
-
declare const index$
|
|
2766
|
-
declare const index$
|
|
2767
|
-
declare const index$
|
|
2768
|
-
declare const index$
|
|
2769
|
-
declare const index$
|
|
2770
|
-
declare
|
|
2771
|
-
export { index$5_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$5_ACCOUNT_VERSION as ACCOUNT_VERSION, index$5_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, index$5_AddLiquidityArgs as AddLiquidityArgs, type index$5_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$5_AddLiquidityEvent as AddLiquidityEvent, type index$5_AddLiquidityInput as AddLiquidityInput, type index$5_AddLiquidityInstruction as AddLiquidityInstruction, type index$5_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$5_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$5_AddLiquidityQuote as AddLiquidityQuote, index$5_AdminTransferredEvent as AdminTransferredEvent, index$5_AmmConfig as AmmConfig, index$5_BPS_DENOM as BPS_DENOM, index$5_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$5_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$5_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$5_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$5_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$5_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$5_ClosePositionInput as ClosePositionInput, type index$5_ClosePositionInstruction as ClosePositionInstruction, type index$5_ClosePositionInstructionData as ClosePositionInstructionData, type index$5_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$5_CollectFeesArgs as CollectFeesArgs, type index$5_CollectFeesAsyncInput as CollectFeesAsyncInput, index$5_CollectFeesEvent as CollectFeesEvent, type index$5_CollectFeesInput as CollectFeesInput, type index$5_CollectFeesInstruction as CollectFeesInstruction, type index$5_CollectFeesInstructionData as CollectFeesInstructionData, type index$5_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$5_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$5_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$5_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$5_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$5_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$5_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$5_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$5_CpmmError as CpmmError, index$5_CpmmErrorCode as CpmmErrorCode, index$5_CreatePositionArgs as CreatePositionArgs, type index$5_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$5_CreatePositionInput as CreatePositionInput, type index$5_CreatePositionInstruction as CreatePositionInstruction, type index$5_CreatePositionInstructionData as CreatePositionInstructionData, type index$5_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$5_CurveParams as CurveParams, index$5_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, index$5_FeesUpdatedEvent as FeesUpdatedEvent, index$5_FetchOracleConfig as FetchOracleConfig, type index$5_FetchPoolsConfig as FetchPoolsConfig, index$5_FetchPositionsConfig as FetchPositionsConfig, index$5_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$5_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$5_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$5_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$5_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$5_HookErrorEvent as HookErrorEvent, index$5_HookInvokedEvent as HookInvokedEvent, index$5_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$5_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$5_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$5_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$5_InitializePoolArgs as InitializePoolArgs, type index$5_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$5_InitializePoolInput as InitializePoolInput, type index$5_InitializePoolInstruction as InitializePoolInstruction, type index$5_InitializePoolInstructionData as InitializePoolInstructionData, type index$5_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, index$5_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$5_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$5_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$5_MarketCapValidationResult as MarketCapValidationResult, index$5_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$5_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$5_Observation as Observation, index$5_OracleConsultArgs as OracleConsultArgs, type index$5_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$5_OracleConsultInput as OracleConsultInput, type index$5_OracleConsultInstruction as OracleConsultInstruction, type index$5_OracleConsultInstructionData as OracleConsultInstructionData, type index$5_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$5_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$5_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$5_OracleUpdateInput as OracleUpdateInput, type index$5_OracleUpdateInstruction as OracleUpdateInstruction, type index$5_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$5_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$5_OracleUpdatedEvent as OracleUpdatedEvent, index$5_OracleWithAddress as OracleWithAddress, index$5_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$5_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$5_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$5_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$5_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$5_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$5_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$5_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$5_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$5_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$5_ParsedPauseInstruction as ParsedPauseInstruction, type index$5_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$5_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$5_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$5_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$5_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$5_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$5_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$5_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$5_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$5_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$5_PauseInput as PauseInput, type index$5_PauseInstruction as PauseInstruction, type index$5_PauseInstructionData as PauseInstructionData, type index$5_PauseInstructionDataArgs as PauseInstructionDataArgs, index$5_PausedEvent as PausedEvent, index$5_Pool as Pool, index$5_PoolInitializedEvent as PoolInitializedEvent, type index$5_PoolWithAddress as PoolWithAddress, index$5_Position as Position, index$5_PositionClosedEvent as PositionClosedEvent, index$5_PositionCreatedEvent as PositionCreatedEvent, index$5_PositionValue as PositionValue, index$5_PositionWithAddress as PositionWithAddress, type index$5_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$5_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$5_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$5_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$5_Q64_ONE as Q64_ONE, index$5_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$5_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$5_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$5_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$5_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$5_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$5_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, index$5_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$5_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$5_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$5_RemoveLiquidityInput as RemoveLiquidityInput, type index$5_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$5_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$5_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$5_RemoveLiquidityQuote as RemoveLiquidityQuote, index$5_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$5_SEED_ORACLE as SEED_ORACLE, index$5_SEED_POOL as SEED_POOL, index$5_SEED_POSITION as SEED_POSITION, index$5_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$5_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$5_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$5_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$5_SetFeesArgs as SetFeesArgs, type index$5_SetFeesInput as SetFeesInput, type index$5_SetFeesInstruction as SetFeesInstruction, type index$5_SetFeesInstructionData as SetFeesInstructionData, type index$5_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$5_SetHookArgs as SetHookArgs, type index$5_SetHookInput as SetHookInput, type index$5_SetHookInstruction as SetHookInstruction, type index$5_SetHookInstructionData as SetHookInstructionData, type index$5_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$5_SwapEvent as SwapEvent, index$5_SwapExactInArgs as SwapExactInArgs, type index$5_SwapExactInAsyncInput as SwapExactInAsyncInput, type index$5_SwapExactInInput as SwapExactInInput, type index$5_SwapExactInInstruction as SwapExactInInstruction, type index$5_SwapExactInInstructionData as SwapExactInInstructionData, type index$5_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$5_SwapQuote as SwapQuote, index$5_SwapQuoteExactOut as SwapQuoteExactOut, index$5_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$5_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$5_TradeDirection as TradeDirection, index$5_TransferAdminArgs as TransferAdminArgs, type index$5_TransferAdminInput as TransferAdminInput, type index$5_TransferAdminInstruction as TransferAdminInstruction, type index$5_TransferAdminInstructionData as TransferAdminInstructionData, type index$5_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$5_TwapResult as TwapResult, index$5_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$5_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$5_UnpauseInput as UnpauseInput, type index$5_UnpauseInstruction as UnpauseInstruction, type index$5_UnpauseInstructionData as UnpauseInstructionData, type index$5_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$5_UnpausedEvent as UnpausedEvent, type index$5_UpdateConfigInput as UpdateConfigInput, type index$5_UpdateConfigInstruction as UpdateConfigInstruction, type index$5_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$5_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$5_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$5_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$5_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$5_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$5_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$5_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$5_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$5_addLiquidityArgsCodec as addLiquidityArgsCodec, index$5_ammConfigDataCodec as ammConfigDataCodec, index$5_areMintsOrdered as areMintsOrdered, index$5_calculateAccruedFees as calculateAccruedFees, index$5_calculateTwap as calculateTwap, index$5_calculateTwapNumber as calculateTwapNumber, index$5_ceilDiv as ceilDiv, index$5_collectFeesArgsCodec as collectFeesArgsCodec, index$5_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$5_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$5_computePrice0Q64 as computePrice0Q64, index$5_computePrice1Q64 as computePrice1Q64, index$5_consultTwap as consultTwap, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$1 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$5_createPositionArgsCodec as createPositionArgsCodec, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$5_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$5_curveParamsToMarketCap as curveParamsToMarketCap, index$5_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$5_decodePool as decodePool, index$5_decodePosition as decodePosition, index$5_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$5_encodeCollectFeesArgs as encodeCollectFeesArgs, index$5_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$5_encodeCreatePositionArgs as encodeCreatePositionArgs, index$5_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$5_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$5_encodeInitializePoolArgs as encodeInitializePoolArgs, index$5_encodeInstructionData as encodeInstructionData, index$5_encodeOracleConsultArgs as encodeOracleConsultArgs, index$5_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$5_encodeSetFeesArgs as encodeSetFeesArgs, index$5_encodeSetHookArgs as encodeSetHookArgs, index$5_encodeSwapExactInArgs as encodeSwapExactInArgs, index$5_encodeTransferAdminArgs as encodeTransferAdminArgs, index$5_fetchAllPools as fetchAllPools, index$5_fetchConfig as fetchConfig, index$5_fetchConfigWithAddress as fetchConfigWithAddress, index$5_fetchOracle as fetchOracle, index$5_fetchOraclesBatch as fetchOraclesBatch, index$5_fetchPool as fetchPool, index$5_fetchPoolPositions as fetchPoolPositions, index$5_fetchPoolsBatch as fetchPoolsBatch, index$5_fetchPosition as fetchPosition, index$5_fetchPositionByParams as fetchPositionByParams, index$5_fetchPositionsBatch as fetchPositionsBatch, index$5_fetchUserPositions as fetchUserPositions, index$5_filterActivePositions as filterActivePositions, index$5_filterPoolsByMint as filterPoolsByMint, index$5_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$5_getAddLiquidityInstruction as getAddLiquidityInstruction, index$5_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$5_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$5_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$5_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$5_getAddLiquidityQuote as getAddLiquidityQuote, index$5_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$5_getClosePositionInstruction as getClosePositionInstruction, index$5_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$5_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$5_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$5_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$5_getCollectFeesInstruction as getCollectFeesInstruction, index$5_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$5_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$5_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$5_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$5_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$5_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$5_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$5_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$5_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$5_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$5_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$5_getCreatePositionInstruction as getCreatePositionInstruction, index$5_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$5_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$5_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$5_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$5_getErrorMessage as getErrorMessage, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$5_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$5_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$5_getInitializePoolInstruction as getInitializePoolInstruction, index$5_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$5_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$5_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$5_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$5_getK as getK, index$5_getLiquidityAddresses as getLiquidityAddresses, index$5_getMetadataAddress as getMetadataAddress, index$5_getOracleAddress as getOracleAddress, index$5_getOracleAddressFromPool as getOracleAddressFromPool, index$5_getOracleAge as getOracleAge, index$5_getOracleBufferStats as getOracleBufferStats, index$5_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$5_getOracleConsultInstruction as getOracleConsultInstruction, index$5_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$5_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$5_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$5_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$5_getOracleDeviation as getOracleDeviation, index$5_getOracleForPool as getOracleForPool, index$5_getOracleSpotPrices as getOracleSpotPrices, index$5_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$5_getOracleUpdateInstruction as getOracleUpdateInstruction, index$5_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$5_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$5_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$5_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$5_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$5_getPauseInstruction as getPauseInstruction, index$5_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$5_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$5_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$5_getPendingFees as getPendingFees, index$5_getPoolAddress as getPoolAddress, index$5_getPoolAddressFromMints as getPoolAddressFromMints, index$5_getPoolAuthorityAddress as getPoolAuthorityAddress, index$5_getPoolByMints as getPoolByMints, index$5_getPoolInitAddresses as getPoolInitAddresses, index$5_getPoolVault0Address as getPoolVault0Address, index$5_getPoolVault1Address as getPoolVault1Address, index$5_getPositionAddress as getPositionAddress, index$5_getPositionAddressFromParams as getPositionAddressFromParams, index$5_getPositionValue as getPositionValue, index$5_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$5_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$5_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$5_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$5_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$5_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$5_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$5_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$5_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$5_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$5_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$5_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$5_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$5_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$5_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$5_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$5_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$5_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$5_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$5_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$5_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$5_getSetFeesInstruction as getSetFeesInstruction, index$5_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$5_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$5_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$5_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$5_getSetHookInstruction as getSetHookInstruction, index$5_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$5_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$5_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$5_getSpotPrice0 as getSpotPrice0, index$5_getSpotPrice1 as getSpotPrice1, index$5_getSwapAddresses as getSwapAddresses, index$5_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$5_getSwapExactInInstruction as getSwapExactInInstruction, index$5_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$5_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$5_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$5_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$5_getSwapQuote as getSwapQuote, index$5_getSwapQuoteExactOut as getSwapQuoteExactOut, index$5_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$5_getTransferAdminInstruction as getTransferAdminInstruction, index$5_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$5_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$5_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$5_getTvl as getTvl, index$5_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$5_getUnpauseInstruction as getUnpauseInstruction, index$5_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$5_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$5_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$5_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$5_getUpdateConfigInstruction as getUpdateConfigInstruction, index$5_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$5_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$5_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$5_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$5_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$5_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$5_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$5_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$5_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$5_initializeConfigArgsCodec as initializeConfigArgsCodec, index$5_initializeOracleArgsCodec as initializeOracleArgsCodec, index$5_initializePoolArgsCodec as initializePoolArgsCodec, index$5_isCpmmError as isCpmmError, index$5_isOracleStale as isOracleStale, index$5_isqrt as isqrt, index$5_marketCapToCurveParams as marketCapToCurveParams, index$5_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$5_marketCapToTokenPrice as marketCapToTokenPrice, index$5_maxBigInt as maxBigInt, index$5_minBigInt as minBigInt, index$5_numberToQ64 as numberToQ64, index$5_observationCodec as observationCodec, index$5_oracleConsultArgsCodec as oracleConsultArgsCodec, index$5_oracleStateDataCodec as oracleStateDataCodec, index$5_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$5_parseClosePositionInstruction as parseClosePositionInstruction, index$5_parseCollectFeesInstruction as parseCollectFeesInstruction, index$5_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$5_parseCreatePositionInstruction as parseCreatePositionInstruction, index$5_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$5_parseInitializePoolInstruction as parseInitializePoolInstruction, index$5_parseOracleConsultInstruction as parseOracleConsultInstruction, index$5_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$5_parsePauseInstruction as parsePauseInstruction, index$5_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$5_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$5_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$5_parseSetFeesInstruction as parseSetFeesInstruction, index$5_parseSetHookInstruction as parseSetHookInstruction, index$5_parseSwapExactInInstruction as parseSwapExactInInstruction, index$5_parseTransferAdminInstruction as parseTransferAdminInstruction, index$5_parseUnpauseInstruction as parseUnpauseInstruction, index$5_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$5_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$5_poolDataCodec as poolDataCodec, index$5_poolExists as poolExists, index$5_positionDataCodec as positionDataCodec, index$5_q64Div as q64Div, index$5_q64Mul as q64Mul, index$5_q64ToNumber as q64ToNumber, index$5_ratioToNumber as ratioToNumber, index$5_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$5_setFeesArgsCodec as setFeesArgsCodec, index$5_setHookArgsCodec as setHookArgsCodec, index$5_sortMints as sortMints, index$5_sortPoolsByReserves as sortPoolsByReserves, index$5_sortPositionsByShares as sortPositionsByShares, index$5_swapExactInArgsCodec as swapExactInArgsCodec, index$5_transferAdminArgsCodec as transferAdminArgsCodec, index$5_validateMarketCapParameters as validateMarketCapParameters };
|
|
2353
|
+
declare const index$6_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS;
|
|
2354
|
+
declare const index$6_ACCOUNT_VERSION: typeof ACCOUNT_VERSION;
|
|
2355
|
+
declare const index$6_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR;
|
|
2356
|
+
type index$6_AccountMetaRole = AccountMetaRole;
|
|
2357
|
+
declare const index$6_AddLiquidityArgs: typeof AddLiquidityArgs;
|
|
2358
|
+
type index$6_AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
|
|
2359
|
+
declare const index$6_AddLiquidityEvent: typeof AddLiquidityEvent;
|
|
2360
|
+
type index$6_AddLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
|
|
2361
|
+
type index$6_AddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddLiquidityInstruction<TProgram, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
|
|
2362
|
+
type index$6_AddLiquidityInstructionData = AddLiquidityInstructionData;
|
|
2363
|
+
type index$6_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs;
|
|
2364
|
+
declare const index$6_AddLiquidityQuote: typeof AddLiquidityQuote;
|
|
2365
|
+
type index$6_AddressOrTransactionSigner = AddressOrTransactionSigner;
|
|
2366
|
+
declare const index$6_AdminTransferredEvent: typeof AdminTransferredEvent;
|
|
2367
|
+
declare const index$6_AmmConfig: typeof AmmConfig;
|
|
2368
|
+
declare const index$6_BPS_DENOM: typeof BPS_DENOM;
|
|
2369
|
+
declare const index$6_CLOSE_POSITION_DISCRIMINATOR: typeof CLOSE_POSITION_DISCRIMINATOR;
|
|
2370
|
+
declare const index$6_COLLECT_FEES_DISCRIMINATOR: typeof COLLECT_FEES_DISCRIMINATOR;
|
|
2371
|
+
declare const index$6_COLLECT_PROTOCOL_FEES_DISCRIMINATOR: typeof COLLECT_PROTOCOL_FEES_DISCRIMINATOR;
|
|
2372
|
+
declare const index$6_CPMM_ERROR_MESSAGES: typeof CPMM_ERROR_MESSAGES;
|
|
2373
|
+
declare const index$6_CPMM_PROGRAM_ID: typeof CPMM_PROGRAM_ID;
|
|
2374
|
+
declare const index$6_CREATE_POSITION_DISCRIMINATOR: typeof CREATE_POSITION_DISCRIMINATOR;
|
|
2375
|
+
type index$6_ClosePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountRentRecipient extends string = string> = ClosePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient>;
|
|
2376
|
+
type index$6_ClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentRecipient extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = ClosePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient, TRemainingAccounts>;
|
|
2377
|
+
type index$6_ClosePositionInstructionData = ClosePositionInstructionData;
|
|
2378
|
+
type index$6_ClosePositionInstructionDataArgs = ClosePositionInstructionDataArgs;
|
|
2379
|
+
declare const index$6_CollectFeesArgs: typeof CollectFeesArgs;
|
|
2380
|
+
type index$6_CollectFeesAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
|
|
2381
|
+
declare const index$6_CollectFeesEvent: typeof CollectFeesEvent;
|
|
2382
|
+
type index$6_CollectFeesInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
|
|
2383
|
+
type index$6_CollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectFeesInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
|
|
2384
|
+
type index$6_CollectFeesInstructionData = CollectFeesInstructionData;
|
|
2385
|
+
type index$6_CollectFeesInstructionDataArgs = CollectFeesInstructionDataArgs;
|
|
2386
|
+
declare const index$6_CollectProtocolFeesArgs: typeof CollectProtocolFeesArgs;
|
|
2387
|
+
type index$6_CollectProtocolFeesAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectProtocolFeesAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
|
|
2388
|
+
declare const index$6_CollectProtocolFeesEvent: typeof CollectProtocolFeesEvent;
|
|
2389
|
+
type index$6_CollectProtocolFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectProtocolFeesInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
|
|
2390
|
+
type index$6_CollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectProtocolFeesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
|
|
2391
|
+
type index$6_CollectProtocolFeesInstructionData = CollectProtocolFeesInstructionData;
|
|
2392
|
+
type index$6_CollectProtocolFeesInstructionDataArgs = CollectProtocolFeesInstructionDataArgs;
|
|
2393
|
+
type index$6_CpmmError = CpmmError;
|
|
2394
|
+
declare const index$6_CpmmError: typeof CpmmError;
|
|
2395
|
+
type index$6_CpmmErrorCode = CpmmErrorCode;
|
|
2396
|
+
declare const index$6_CpmmErrorCode: typeof CpmmErrorCode;
|
|
2397
|
+
declare const index$6_CreatePositionArgs: typeof CreatePositionArgs;
|
|
2398
|
+
type index$6_CreatePositionAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
|
|
2399
|
+
type index$6_CreatePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
|
|
2400
|
+
type index$6_CreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CreatePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram, TRemainingAccounts>;
|
|
2401
|
+
type index$6_CreatePositionInstructionData = CreatePositionInstructionData;
|
|
2402
|
+
type index$6_CreatePositionInstructionDataArgs = CreatePositionInstructionDataArgs;
|
|
2403
|
+
declare const index$6_CurveParams: typeof CurveParams;
|
|
2404
|
+
declare const index$6_CurveParamsToMarketCapInput: typeof CurveParamsToMarketCapInput;
|
|
2405
|
+
type index$6_EncodedProgramAccount = EncodedProgramAccount;
|
|
2406
|
+
declare const index$6_FeesUpdatedEvent: typeof FeesUpdatedEvent;
|
|
2407
|
+
declare const index$6_FetchOracleConfig: typeof FetchOracleConfig;
|
|
2408
|
+
type index$6_FetchPoolsConfig = FetchPoolsConfig;
|
|
2409
|
+
declare const index$6_FetchPositionsConfig: typeof FetchPositionsConfig;
|
|
2410
|
+
declare const index$6_HF_AFTER_ADD_LIQ: typeof HF_AFTER_ADD_LIQ;
|
|
2411
|
+
declare const index$6_HF_AFTER_REMOVE_LIQ: typeof HF_AFTER_REMOVE_LIQ;
|
|
2412
|
+
declare const index$6_HF_BEFORE_ADD_LIQ: typeof HF_BEFORE_ADD_LIQ;
|
|
2413
|
+
declare const index$6_HF_BEFORE_REMOVE_LIQ: typeof HF_BEFORE_REMOVE_LIQ;
|
|
2414
|
+
declare const index$6_HF_REQUIRE_ORACLE: typeof HF_REQUIRE_ORACLE;
|
|
2415
|
+
declare const index$6_HookErrorEvent: typeof HookErrorEvent;
|
|
2416
|
+
declare const index$6_HookInvokedEvent: typeof HookInvokedEvent;
|
|
2417
|
+
declare const index$6_HookUpdatedEvent: typeof HookUpdatedEvent;
|
|
2418
|
+
declare const index$6_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
|
|
2419
|
+
declare const index$6_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
|
|
2420
|
+
type index$6_InitializeOracleAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountOracle extends string = string, TAccountAdmin extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = InitializeOracleAsyncInput<TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>;
|
|
2421
|
+
declare const index$6_InitializePoolArgs: typeof InitializePoolArgs;
|
|
2422
|
+
type index$6_InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializePoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
|
|
2423
|
+
type index$6_InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializePoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
|
|
2424
|
+
type index$6_InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializePoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
|
|
2425
|
+
type index$6_InitializePoolInstructionData = InitializePoolInstructionData;
|
|
2426
|
+
type index$6_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs;
|
|
2427
|
+
declare const index$6_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
|
|
2428
|
+
declare const index$6_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS;
|
|
2429
|
+
declare const index$6_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput;
|
|
2430
|
+
declare const index$6_MarketCapValidationResult: typeof MarketCapValidationResult;
|
|
2431
|
+
declare const index$6_ORACLE_CONSULT_DISCRIMINATOR: typeof ORACLE_CONSULT_DISCRIMINATOR;
|
|
2432
|
+
declare const index$6_ORACLE_UPDATE_DISCRIMINATOR: typeof ORACLE_UPDATE_DISCRIMINATOR;
|
|
2433
|
+
declare const index$6_Observation: typeof Observation;
|
|
2434
|
+
declare const index$6_OracleConsultArgs: typeof OracleConsultArgs;
|
|
2435
|
+
type index$6_OracleConsultAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultAsyncInput<TAccountPool, TAccountOracle>;
|
|
2436
|
+
type index$6_OracleConsultInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultInput<TAccountPool, TAccountOracle>;
|
|
2437
|
+
type index$6_OracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleConsultInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
|
|
2438
|
+
type index$6_OracleConsultInstructionData = OracleConsultInstructionData;
|
|
2439
|
+
type index$6_OracleConsultInstructionDataArgs = OracleConsultInstructionDataArgs;
|
|
2440
|
+
declare const index$6_OracleInitializedEvent: typeof OracleInitializedEvent;
|
|
2441
|
+
type index$6_OracleUpdateAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateAsyncInput<TAccountPool, TAccountOracle>;
|
|
2442
|
+
type index$6_OracleUpdateInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateInput<TAccountPool, TAccountOracle>;
|
|
2443
|
+
type index$6_OracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleUpdateInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
|
|
2444
|
+
type index$6_OracleUpdateInstructionData = OracleUpdateInstructionData;
|
|
2445
|
+
type index$6_OracleUpdateInstructionDataArgs = OracleUpdateInstructionDataArgs;
|
|
2446
|
+
declare const index$6_OracleUpdatedEvent: typeof OracleUpdatedEvent;
|
|
2447
|
+
declare const index$6_OracleWithAddress: typeof OracleWithAddress;
|
|
2448
|
+
declare const index$6_PAUSE_DISCRIMINATOR: typeof PAUSE_DISCRIMINATOR;
|
|
2449
|
+
declare const index$6_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: typeof PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR;
|
|
2450
|
+
type index$6_ParsedAddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddLiquidityInstruction<TProgram, TAccountMetas>;
|
|
2451
|
+
type index$6_ParsedClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedClosePositionInstruction<TProgram, TAccountMetas>;
|
|
2452
|
+
type index$6_ParsedCollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectFeesInstruction<TProgram, TAccountMetas>;
|
|
2453
|
+
type index$6_ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
|
|
2454
|
+
type index$6_ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
|
|
2455
|
+
type index$6_ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
|
|
2456
|
+
type index$6_ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
|
|
2457
|
+
type index$6_ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
|
|
2458
|
+
type index$6_ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPauseInstruction<TProgram, TAccountMetas>;
|
|
2459
|
+
type index$6_ParsedPreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPreviewSwapExactInInstruction<TProgram, TAccountMetas>;
|
|
2460
|
+
type index$6_ParsedRedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRedeemProtocolSharesInstruction<TProgram, TAccountMetas>;
|
|
2461
|
+
type index$6_ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveLiquidityInstruction<TProgram, TAccountMetas>;
|
|
2462
|
+
type index$6_ParsedSetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetFeesInstruction<TProgram, TAccountMetas>;
|
|
2463
|
+
type index$6_ParsedSetHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetHookInstruction<TProgram, TAccountMetas>;
|
|
2464
|
+
type index$6_ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSwapExactInInstruction<TProgram, TAccountMetas>;
|
|
2465
|
+
type index$6_ParsedTransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedTransferAdminInstruction<TProgram, TAccountMetas>;
|
|
2466
|
+
type index$6_ParsedUnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUnpauseInstruction<TProgram, TAccountMetas>;
|
|
2467
|
+
type index$6_ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
|
|
2468
|
+
type index$6_ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
|
|
2469
|
+
type index$6_PauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = PauseInput<TAccountConfig, TAccountAdmin>;
|
|
2470
|
+
type index$6_PauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = PauseInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
|
|
2471
|
+
type index$6_PauseInstructionData = PauseInstructionData;
|
|
2472
|
+
type index$6_PauseInstructionDataArgs = PauseInstructionDataArgs;
|
|
2473
|
+
declare const index$6_PausedEvent: typeof PausedEvent;
|
|
2474
|
+
declare const index$6_Pool: typeof Pool;
|
|
2475
|
+
declare const index$6_PoolInitializedEvent: typeof PoolInitializedEvent;
|
|
2476
|
+
type index$6_PoolWithAddress = PoolWithAddress;
|
|
2477
|
+
declare const index$6_Position: typeof Position;
|
|
2478
|
+
declare const index$6_PositionClosedEvent: typeof PositionClosedEvent;
|
|
2479
|
+
declare const index$6_PositionCreatedEvent: typeof PositionCreatedEvent;
|
|
2480
|
+
declare const index$6_PositionValue: typeof PositionValue;
|
|
2481
|
+
declare const index$6_PositionWithAddress: typeof PositionWithAddress;
|
|
2482
|
+
type index$6_PreviewSwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string> = PreviewSwapExactInInput<TAccountConfig, TAccountPool>;
|
|
2483
|
+
type index$6_PreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = PreviewSwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TRemainingAccounts>;
|
|
2484
|
+
type index$6_PreviewSwapExactInInstructionData = PreviewSwapExactInInstructionData;
|
|
2485
|
+
type index$6_PreviewSwapExactInInstructionDataArgs = PreviewSwapExactInInstructionDataArgs;
|
|
2486
|
+
declare const index$6_Q64_ONE: typeof Q64_ONE;
|
|
2487
|
+
declare const index$6_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR: typeof REDEEM_PROTOCOL_SHARES_DISCRIMINATOR;
|
|
2488
|
+
declare const index$6_REMOVE_LIQUIDITY_DISCRIMINATOR: typeof REMOVE_LIQUIDITY_DISCRIMINATOR;
|
|
2489
|
+
type index$6_RedeemProtocolSharesAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = RedeemProtocolSharesAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
|
|
2490
|
+
type index$6_RedeemProtocolSharesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = RedeemProtocolSharesInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
|
|
2491
|
+
type index$6_RedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RedeemProtocolSharesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
|
|
2492
|
+
type index$6_RedeemProtocolSharesInstructionData = RedeemProtocolSharesInstructionData;
|
|
2493
|
+
type index$6_RedeemProtocolSharesInstructionDataArgs = RedeemProtocolSharesInstructionDataArgs;
|
|
2494
|
+
type index$6_RemainingAccount = RemainingAccount;
|
|
2495
|
+
declare const index$6_RemoveLiquidityArgs: typeof RemoveLiquidityArgs;
|
|
2496
|
+
type index$6_RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
|
|
2497
|
+
declare const index$6_RemoveLiquidityEvent: typeof RemoveLiquidityEvent;
|
|
2498
|
+
type index$6_RemoveLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
|
|
2499
|
+
type index$6_RemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveLiquidityInstruction<TProgram, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
|
|
2500
|
+
type index$6_RemoveLiquidityInstructionData = RemoveLiquidityInstructionData;
|
|
2501
|
+
type index$6_RemoveLiquidityInstructionDataArgs = RemoveLiquidityInstructionDataArgs;
|
|
2502
|
+
declare const index$6_RemoveLiquidityQuote: typeof RemoveLiquidityQuote;
|
|
2503
|
+
declare const index$6_SEED_AUTHORITY: typeof SEED_AUTHORITY;
|
|
2504
|
+
declare const index$6_SEED_ORACLE: typeof SEED_ORACLE;
|
|
2505
|
+
declare const index$6_SEED_POOL: typeof SEED_POOL;
|
|
2506
|
+
declare const index$6_SEED_POSITION: typeof SEED_POSITION;
|
|
2507
|
+
declare const index$6_SEED_PROTOCOL_FEE_OWNER: typeof SEED_PROTOCOL_FEE_OWNER;
|
|
2508
|
+
declare const index$6_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
|
|
2509
|
+
declare const index$6_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR;
|
|
2510
|
+
declare const index$6_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
|
|
2511
|
+
declare const index$6_SetFeesArgs: typeof SetFeesArgs;
|
|
2512
|
+
type index$6_SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>;
|
|
2513
|
+
type index$6_SetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetFeesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TRemainingAccounts>;
|
|
2514
|
+
type index$6_SetFeesInstructionData = SetFeesInstructionData;
|
|
2515
|
+
type index$6_SetFeesInstructionDataArgs = SetFeesInstructionDataArgs;
|
|
2516
|
+
declare const index$6_SetHookArgs: typeof SetHookArgs;
|
|
2517
|
+
type index$6_SetHookInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetHookInput<TAccountConfig, TAccountPool, TAccountAdmin>;
|
|
2518
|
+
type index$6_SetHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetHookInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TRemainingAccounts>;
|
|
2519
|
+
type index$6_SetHookInstructionData = SetHookInstructionData;
|
|
2520
|
+
type index$6_SetHookInstructionDataArgs = SetHookInstructionDataArgs;
|
|
2521
|
+
declare const index$6_SwapEvent: typeof SwapEvent;
|
|
2522
|
+
declare const index$6_SwapExactInArgs: typeof SwapExactInArgs;
|
|
2523
|
+
type index$6_SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
|
|
2524
|
+
type index$6_SwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVaultIn extends string | AccountMeta<string> = string, TAccountVaultOut extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUserIn extends string | AccountMeta<string> = string, TAccountUserOut extends string | AccountMeta<string> = string, TAccountTrader extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
|
|
2525
|
+
type index$6_SwapExactInInstructionData = SwapExactInInstructionData;
|
|
2526
|
+
type index$6_SwapExactInInstructionDataArgs = SwapExactInInstructionDataArgs;
|
|
2527
|
+
declare const index$6_SwapQuote: typeof SwapQuote;
|
|
2528
|
+
declare const index$6_SwapQuoteExactOut: typeof SwapQuoteExactOut;
|
|
2529
|
+
declare const index$6_TOKEN_METADATA_PROGRAM_ID: typeof TOKEN_METADATA_PROGRAM_ID;
|
|
2530
|
+
declare const index$6_TRANSFER_ADMIN_DISCRIMINATOR: typeof TRANSFER_ADMIN_DISCRIMINATOR;
|
|
2531
|
+
declare const index$6_TradeDirection: typeof TradeDirection;
|
|
2532
|
+
declare const index$6_TransferAdminArgs: typeof TransferAdminArgs;
|
|
2533
|
+
type index$6_TransferAdminInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = TransferAdminInput<TAccountConfig, TAccountAdmin>;
|
|
2534
|
+
type index$6_TransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = TransferAdminInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
|
|
2535
|
+
type index$6_TransferAdminInstructionData = TransferAdminInstructionData;
|
|
2536
|
+
type index$6_TransferAdminInstructionDataArgs = TransferAdminInstructionDataArgs;
|
|
2537
|
+
declare const index$6_TwapResult: typeof TwapResult;
|
|
2538
|
+
declare const index$6_UNPAUSE_DISCRIMINATOR: typeof UNPAUSE_DISCRIMINATOR;
|
|
2539
|
+
declare const index$6_UPDATE_CONFIG_DISCRIMINATOR: typeof UPDATE_CONFIG_DISCRIMINATOR;
|
|
2540
|
+
type index$6_UnpauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UnpauseInput<TAccountConfig, TAccountAdmin>;
|
|
2541
|
+
type index$6_UnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = UnpauseInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
|
|
2542
|
+
type index$6_UnpauseInstructionData = UnpauseInstructionData;
|
|
2543
|
+
type index$6_UnpauseInstructionDataArgs = UnpauseInstructionDataArgs;
|
|
2544
|
+
declare const index$6_UnpausedEvent: typeof UnpausedEvent;
|
|
2545
|
+
type index$6_UpdateConfigInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UpdateConfigInput<TAccountConfig, TAccountAdmin>;
|
|
2546
|
+
type index$6_UpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = UpdateConfigInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
|
|
2547
|
+
type index$6_UpdateConfigInstructionData = UpdateConfigInstructionData;
|
|
2548
|
+
type index$6_UpdateConfigInstructionDataArgs = UpdateConfigInstructionDataArgs;
|
|
2549
|
+
declare const index$6_VaultExcessWithdrawnEvent: typeof VaultExcessWithdrawnEvent;
|
|
2550
|
+
declare const index$6_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: typeof WITHDRAW_VAULT_EXCESS_DISCRIMINATOR;
|
|
2551
|
+
type index$6_WithdrawVaultExcessAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountAdminAta0 extends string = string, TAccountAdminAta1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = WithdrawVaultExcessAsyncInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
|
|
2552
|
+
type index$6_WithdrawVaultExcessInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountAdminAta0 extends string = string, TAccountAdminAta1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = WithdrawVaultExcessInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
|
|
2553
|
+
type index$6_WithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountAdminAta0 extends string | AccountMeta<string> = string, TAccountAdminAta1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = WithdrawVaultExcessInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
|
|
2554
|
+
type index$6_WithdrawVaultExcessInstructionData = WithdrawVaultExcessInstructionData;
|
|
2555
|
+
type index$6_WithdrawVaultExcessInstructionDataArgs = WithdrawVaultExcessInstructionDataArgs;
|
|
2556
|
+
declare const index$6_addLiquidityArgsCodec: typeof addLiquidityArgsCodec;
|
|
2557
|
+
declare const index$6_addressToBase58EncodedBytes: typeof addressToBase58EncodedBytes;
|
|
2558
|
+
declare const index$6_ammConfigDataCodec: typeof ammConfigDataCodec;
|
|
2559
|
+
declare const index$6_areMintsOrdered: typeof areMintsOrdered;
|
|
2560
|
+
declare const index$6_base64ToBytes: typeof base64ToBytes;
|
|
2561
|
+
declare const index$6_bytesToBase64: typeof bytesToBase64;
|
|
2562
|
+
declare const index$6_bytesToBase64EncodedBytes: typeof bytesToBase64EncodedBytes;
|
|
2563
|
+
declare const index$6_calculateAccruedFees: typeof calculateAccruedFees;
|
|
2564
|
+
declare const index$6_calculateTwap: typeof calculateTwap;
|
|
2565
|
+
declare const index$6_calculateTwapNumber: typeof calculateTwapNumber;
|
|
2566
|
+
declare const index$6_ceilDiv: typeof ceilDiv;
|
|
2567
|
+
declare const index$6_collectFeesArgsCodec: typeof collectFeesArgsCodec;
|
|
2568
|
+
declare const index$6_collectProtocolFeesArgsCodec: typeof collectProtocolFeesArgsCodec;
|
|
2569
|
+
declare const index$6_comparePoolAndOraclePrices: typeof comparePoolAndOraclePrices;
|
|
2570
|
+
declare const index$6_computePrice0Q64: typeof computePrice0Q64;
|
|
2571
|
+
declare const index$6_computePrice1Q64: typeof computePrice1Q64;
|
|
2572
|
+
declare const index$6_consultTwap: typeof consultTwap;
|
|
2573
|
+
declare const index$6_createAccountMeta: typeof createAccountMeta;
|
|
2574
|
+
declare const index$6_createPositionArgsCodec: typeof createPositionArgsCodec;
|
|
2575
|
+
declare const index$6_createReadonlyRemainingAccountMeta: typeof createReadonlyRemainingAccountMeta;
|
|
2576
|
+
declare const index$6_createSwapInstruction: typeof createSwapInstruction;
|
|
2577
|
+
declare const index$6_curveParamsToMarketCap: typeof curveParamsToMarketCap;
|
|
2578
|
+
declare const index$6_decodeAmmConfig: typeof decodeAmmConfig;
|
|
2579
|
+
declare const index$6_decodePool: typeof decodePool;
|
|
2580
|
+
declare const index$6_decodePosition: typeof decodePosition;
|
|
2581
|
+
declare const index$6_encodeAddLiquidityArgs: typeof encodeAddLiquidityArgs;
|
|
2582
|
+
declare const index$6_encodeCollectFeesArgs: typeof encodeCollectFeesArgs;
|
|
2583
|
+
declare const index$6_encodeCollectProtocolFeesArgs: typeof encodeCollectProtocolFeesArgs;
|
|
2584
|
+
declare const index$6_encodeCreatePositionArgs: typeof encodeCreatePositionArgs;
|
|
2585
|
+
declare const index$6_encodeInitializeConfigArgs: typeof encodeInitializeConfigArgs;
|
|
2586
|
+
declare const index$6_encodeInitializeOracleArgs: typeof encodeInitializeOracleArgs;
|
|
2587
|
+
declare const index$6_encodeInitializePoolArgs: typeof encodeInitializePoolArgs;
|
|
2588
|
+
declare const index$6_encodeInstructionData: typeof encodeInstructionData;
|
|
2589
|
+
declare const index$6_encodeOracleConsultArgs: typeof encodeOracleConsultArgs;
|
|
2590
|
+
declare const index$6_encodeRemoveLiquidityArgs: typeof encodeRemoveLiquidityArgs;
|
|
2591
|
+
declare const index$6_encodeSetFeesArgs: typeof encodeSetFeesArgs;
|
|
2592
|
+
declare const index$6_encodeSetHookArgs: typeof encodeSetHookArgs;
|
|
2593
|
+
declare const index$6_encodeSwapExactInArgs: typeof encodeSwapExactInArgs;
|
|
2594
|
+
declare const index$6_encodeTransferAdminArgs: typeof encodeTransferAdminArgs;
|
|
2595
|
+
declare const index$6_fetchAllPools: typeof fetchAllPools;
|
|
2596
|
+
declare const index$6_fetchConfig: typeof fetchConfig;
|
|
2597
|
+
declare const index$6_fetchConfigWithAddress: typeof fetchConfigWithAddress;
|
|
2598
|
+
declare const index$6_fetchOracle: typeof fetchOracle;
|
|
2599
|
+
declare const index$6_fetchOraclesBatch: typeof fetchOraclesBatch;
|
|
2600
|
+
declare const index$6_fetchPool: typeof fetchPool;
|
|
2601
|
+
declare const index$6_fetchPoolPositions: typeof fetchPoolPositions;
|
|
2602
|
+
declare const index$6_fetchPoolsBatch: typeof fetchPoolsBatch;
|
|
2603
|
+
declare const index$6_fetchPosition: typeof fetchPosition;
|
|
2604
|
+
declare const index$6_fetchPositionByParams: typeof fetchPositionByParams;
|
|
2605
|
+
declare const index$6_fetchPositionsBatch: typeof fetchPositionsBatch;
|
|
2606
|
+
declare const index$6_fetchUserPositions: typeof fetchUserPositions;
|
|
2607
|
+
declare const index$6_filterActivePositions: typeof filterActivePositions;
|
|
2608
|
+
declare const index$6_filterPoolsByMint: typeof filterPoolsByMint;
|
|
2609
|
+
declare const index$6_getAddLiquidityDiscriminatorBytes: typeof getAddLiquidityDiscriminatorBytes;
|
|
2610
|
+
declare const index$6_getAddLiquidityInstruction: typeof getAddLiquidityInstruction;
|
|
2611
|
+
declare const index$6_getAddLiquidityInstructionAsync: typeof getAddLiquidityInstructionAsync;
|
|
2612
|
+
declare const index$6_getAddLiquidityInstructionDataCodec: typeof getAddLiquidityInstructionDataCodec;
|
|
2613
|
+
declare const index$6_getAddLiquidityInstructionDataDecoder: typeof getAddLiquidityInstructionDataDecoder;
|
|
2614
|
+
declare const index$6_getAddLiquidityInstructionDataEncoder: typeof getAddLiquidityInstructionDataEncoder;
|
|
2615
|
+
declare const index$6_getAddLiquidityQuote: typeof getAddLiquidityQuote;
|
|
2616
|
+
declare const index$6_getAddressFromAddressOrSigner: typeof getAddressFromAddressOrSigner;
|
|
2617
|
+
declare const index$6_getAddressFromRemainingAccount: typeof getAddressFromRemainingAccount;
|
|
2618
|
+
declare const index$6_getClosePositionDiscriminatorBytes: typeof getClosePositionDiscriminatorBytes;
|
|
2619
|
+
declare const index$6_getClosePositionInstruction: typeof getClosePositionInstruction;
|
|
2620
|
+
declare const index$6_getClosePositionInstructionDataCodec: typeof getClosePositionInstructionDataCodec;
|
|
2621
|
+
declare const index$6_getClosePositionInstructionDataDecoder: typeof getClosePositionInstructionDataDecoder;
|
|
2622
|
+
declare const index$6_getClosePositionInstructionDataEncoder: typeof getClosePositionInstructionDataEncoder;
|
|
2623
|
+
declare const index$6_getCollectFeesDiscriminatorBytes: typeof getCollectFeesDiscriminatorBytes;
|
|
2624
|
+
declare const index$6_getCollectFeesInstruction: typeof getCollectFeesInstruction;
|
|
2625
|
+
declare const index$6_getCollectFeesInstructionAsync: typeof getCollectFeesInstructionAsync;
|
|
2626
|
+
declare const index$6_getCollectFeesInstructionDataCodec: typeof getCollectFeesInstructionDataCodec;
|
|
2627
|
+
declare const index$6_getCollectFeesInstructionDataDecoder: typeof getCollectFeesInstructionDataDecoder;
|
|
2628
|
+
declare const index$6_getCollectFeesInstructionDataEncoder: typeof getCollectFeesInstructionDataEncoder;
|
|
2629
|
+
declare const index$6_getCollectProtocolFeesDiscriminatorBytes: typeof getCollectProtocolFeesDiscriminatorBytes;
|
|
2630
|
+
declare const index$6_getCollectProtocolFeesInstruction: typeof getCollectProtocolFeesInstruction;
|
|
2631
|
+
declare const index$6_getCollectProtocolFeesInstructionAsync: typeof getCollectProtocolFeesInstructionAsync;
|
|
2632
|
+
declare const index$6_getCollectProtocolFeesInstructionDataCodec: typeof getCollectProtocolFeesInstructionDataCodec;
|
|
2633
|
+
declare const index$6_getCollectProtocolFeesInstructionDataDecoder: typeof getCollectProtocolFeesInstructionDataDecoder;
|
|
2634
|
+
declare const index$6_getCollectProtocolFeesInstructionDataEncoder: typeof getCollectProtocolFeesInstructionDataEncoder;
|
|
2635
|
+
declare const index$6_getCreatePositionDiscriminatorBytes: typeof getCreatePositionDiscriminatorBytes;
|
|
2636
|
+
declare const index$6_getCreatePositionInstruction: typeof getCreatePositionInstruction;
|
|
2637
|
+
declare const index$6_getCreatePositionInstructionAsync: typeof getCreatePositionInstructionAsync;
|
|
2638
|
+
declare const index$6_getCreatePositionInstructionDataCodec: typeof getCreatePositionInstructionDataCodec;
|
|
2639
|
+
declare const index$6_getCreatePositionInstructionDataDecoder: typeof getCreatePositionInstructionDataDecoder;
|
|
2640
|
+
declare const index$6_getCreatePositionInstructionDataEncoder: typeof getCreatePositionInstructionDataEncoder;
|
|
2641
|
+
declare const index$6_getErrorMessage: typeof getErrorMessage;
|
|
2642
|
+
declare const index$6_getInitializeOracleInstructionAsync: typeof getInitializeOracleInstructionAsync;
|
|
2643
|
+
declare const index$6_getInitializePoolDiscriminatorBytes: typeof getInitializePoolDiscriminatorBytes;
|
|
2644
|
+
declare const index$6_getInitializePoolInstruction: typeof getInitializePoolInstruction;
|
|
2645
|
+
declare const index$6_getInitializePoolInstructionAsync: typeof getInitializePoolInstructionAsync;
|
|
2646
|
+
declare const index$6_getInitializePoolInstructionDataCodec: typeof getInitializePoolInstructionDataCodec;
|
|
2647
|
+
declare const index$6_getInitializePoolInstructionDataDecoder: typeof getInitializePoolInstructionDataDecoder;
|
|
2648
|
+
declare const index$6_getInitializePoolInstructionDataEncoder: typeof getInitializePoolInstructionDataEncoder;
|
|
2649
|
+
declare const index$6_getK: typeof getK;
|
|
2650
|
+
declare const index$6_getLiquidityAddresses: typeof getLiquidityAddresses;
|
|
2651
|
+
declare const index$6_getMetadataAddress: typeof getMetadataAddress;
|
|
2652
|
+
declare const index$6_getOracleAddress: typeof getOracleAddress;
|
|
2653
|
+
declare const index$6_getOracleAddressFromPool: typeof getOracleAddressFromPool;
|
|
2654
|
+
declare const index$6_getOracleAge: typeof getOracleAge;
|
|
2655
|
+
declare const index$6_getOracleBufferStats: typeof getOracleBufferStats;
|
|
2656
|
+
declare const index$6_getOracleConsultDiscriminatorBytes: typeof getOracleConsultDiscriminatorBytes;
|
|
2657
|
+
declare const index$6_getOracleConsultInstruction: typeof getOracleConsultInstruction;
|
|
2658
|
+
declare const index$6_getOracleConsultInstructionAsync: typeof getOracleConsultInstructionAsync;
|
|
2659
|
+
declare const index$6_getOracleConsultInstructionDataCodec: typeof getOracleConsultInstructionDataCodec;
|
|
2660
|
+
declare const index$6_getOracleConsultInstructionDataDecoder: typeof getOracleConsultInstructionDataDecoder;
|
|
2661
|
+
declare const index$6_getOracleConsultInstructionDataEncoder: typeof getOracleConsultInstructionDataEncoder;
|
|
2662
|
+
declare const index$6_getOracleDeviation: typeof getOracleDeviation;
|
|
2663
|
+
declare const index$6_getOracleForPool: typeof getOracleForPool;
|
|
2664
|
+
declare const index$6_getOracleSpotPrices: typeof getOracleSpotPrices;
|
|
2665
|
+
declare const index$6_getOracleUpdateDiscriminatorBytes: typeof getOracleUpdateDiscriminatorBytes;
|
|
2666
|
+
declare const index$6_getOracleUpdateInstruction: typeof getOracleUpdateInstruction;
|
|
2667
|
+
declare const index$6_getOracleUpdateInstructionAsync: typeof getOracleUpdateInstructionAsync;
|
|
2668
|
+
declare const index$6_getOracleUpdateInstructionDataCodec: typeof getOracleUpdateInstructionDataCodec;
|
|
2669
|
+
declare const index$6_getOracleUpdateInstructionDataDecoder: typeof getOracleUpdateInstructionDataDecoder;
|
|
2670
|
+
declare const index$6_getOracleUpdateInstructionDataEncoder: typeof getOracleUpdateInstructionDataEncoder;
|
|
2671
|
+
declare const index$6_getPauseDiscriminatorBytes: typeof getPauseDiscriminatorBytes;
|
|
2672
|
+
declare const index$6_getPauseInstruction: typeof getPauseInstruction;
|
|
2673
|
+
declare const index$6_getPauseInstructionDataCodec: typeof getPauseInstructionDataCodec;
|
|
2674
|
+
declare const index$6_getPauseInstructionDataDecoder: typeof getPauseInstructionDataDecoder;
|
|
2675
|
+
declare const index$6_getPauseInstructionDataEncoder: typeof getPauseInstructionDataEncoder;
|
|
2676
|
+
declare const index$6_getPendingFees: typeof getPendingFees;
|
|
2677
|
+
declare const index$6_getPoolAddress: typeof getPoolAddress;
|
|
2678
|
+
declare const index$6_getPoolAddressFromMints: typeof getPoolAddressFromMints;
|
|
2679
|
+
declare const index$6_getPoolAuthorityAddress: typeof getPoolAuthorityAddress;
|
|
2680
|
+
declare const index$6_getPoolByMints: typeof getPoolByMints;
|
|
2681
|
+
declare const index$6_getPoolInitAddresses: typeof getPoolInitAddresses;
|
|
2682
|
+
declare const index$6_getPoolVault0Address: typeof getPoolVault0Address;
|
|
2683
|
+
declare const index$6_getPoolVault1Address: typeof getPoolVault1Address;
|
|
2684
|
+
declare const index$6_getPositionAddress: typeof getPositionAddress;
|
|
2685
|
+
declare const index$6_getPositionAddressFromParams: typeof getPositionAddressFromParams;
|
|
2686
|
+
declare const index$6_getPositionValue: typeof getPositionValue;
|
|
2687
|
+
declare const index$6_getPreviewSwapExactInDiscriminatorBytes: typeof getPreviewSwapExactInDiscriminatorBytes;
|
|
2688
|
+
declare const index$6_getPreviewSwapExactInInstruction: typeof getPreviewSwapExactInInstruction;
|
|
2689
|
+
declare const index$6_getPreviewSwapExactInInstructionDataCodec: typeof getPreviewSwapExactInInstructionDataCodec;
|
|
2690
|
+
declare const index$6_getPreviewSwapExactInInstructionDataDecoder: typeof getPreviewSwapExactInInstructionDataDecoder;
|
|
2691
|
+
declare const index$6_getPreviewSwapExactInInstructionDataEncoder: typeof getPreviewSwapExactInInstructionDataEncoder;
|
|
2692
|
+
declare const index$6_getProtocolFeeOwnerAddress: typeof getProtocolFeeOwnerAddress;
|
|
2693
|
+
declare const index$6_getProtocolFeePositionAddress: typeof getProtocolFeePositionAddress;
|
|
2694
|
+
declare const index$6_getRedeemProtocolSharesDiscriminatorBytes: typeof getRedeemProtocolSharesDiscriminatorBytes;
|
|
2695
|
+
declare const index$6_getRedeemProtocolSharesInstruction: typeof getRedeemProtocolSharesInstruction;
|
|
2696
|
+
declare const index$6_getRedeemProtocolSharesInstructionAsync: typeof getRedeemProtocolSharesInstructionAsync;
|
|
2697
|
+
declare const index$6_getRedeemProtocolSharesInstructionDataCodec: typeof getRedeemProtocolSharesInstructionDataCodec;
|
|
2698
|
+
declare const index$6_getRedeemProtocolSharesInstructionDataDecoder: typeof getRedeemProtocolSharesInstructionDataDecoder;
|
|
2699
|
+
declare const index$6_getRedeemProtocolSharesInstructionDataEncoder: typeof getRedeemProtocolSharesInstructionDataEncoder;
|
|
2700
|
+
declare const index$6_getRemoveLiquidityDiscriminatorBytes: typeof getRemoveLiquidityDiscriminatorBytes;
|
|
2701
|
+
declare const index$6_getRemoveLiquidityInstruction: typeof getRemoveLiquidityInstruction;
|
|
2702
|
+
declare const index$6_getRemoveLiquidityInstructionAsync: typeof getRemoveLiquidityInstructionAsync;
|
|
2703
|
+
declare const index$6_getRemoveLiquidityInstructionDataCodec: typeof getRemoveLiquidityInstructionDataCodec;
|
|
2704
|
+
declare const index$6_getRemoveLiquidityInstructionDataDecoder: typeof getRemoveLiquidityInstructionDataDecoder;
|
|
2705
|
+
declare const index$6_getRemoveLiquidityInstructionDataEncoder: typeof getRemoveLiquidityInstructionDataEncoder;
|
|
2706
|
+
declare const index$6_getRemoveLiquidityQuote: typeof getRemoveLiquidityQuote;
|
|
2707
|
+
declare const index$6_getSetFeesDiscriminatorBytes: typeof getSetFeesDiscriminatorBytes;
|
|
2708
|
+
declare const index$6_getSetFeesInstruction: typeof getSetFeesInstruction;
|
|
2709
|
+
declare const index$6_getSetFeesInstructionDataCodec: typeof getSetFeesInstructionDataCodec;
|
|
2710
|
+
declare const index$6_getSetFeesInstructionDataDecoder: typeof getSetFeesInstructionDataDecoder;
|
|
2711
|
+
declare const index$6_getSetFeesInstructionDataEncoder: typeof getSetFeesInstructionDataEncoder;
|
|
2712
|
+
declare const index$6_getSetHookDiscriminatorBytes: typeof getSetHookDiscriminatorBytes;
|
|
2713
|
+
declare const index$6_getSetHookInstruction: typeof getSetHookInstruction;
|
|
2714
|
+
declare const index$6_getSetHookInstructionDataCodec: typeof getSetHookInstructionDataCodec;
|
|
2715
|
+
declare const index$6_getSetHookInstructionDataDecoder: typeof getSetHookInstructionDataDecoder;
|
|
2716
|
+
declare const index$6_getSetHookInstructionDataEncoder: typeof getSetHookInstructionDataEncoder;
|
|
2717
|
+
declare const index$6_getSpotPrice0: typeof getSpotPrice0;
|
|
2718
|
+
declare const index$6_getSpotPrice1: typeof getSpotPrice1;
|
|
2719
|
+
declare const index$6_getSwapAddresses: typeof getSwapAddresses;
|
|
2720
|
+
declare const index$6_getSwapExactInDiscriminatorBytes: typeof getSwapExactInDiscriminatorBytes;
|
|
2721
|
+
declare const index$6_getSwapExactInInstruction: typeof getSwapExactInInstruction;
|
|
2722
|
+
declare const index$6_getSwapExactInInstructionAsync: typeof getSwapExactInInstructionAsync;
|
|
2723
|
+
declare const index$6_getSwapExactInInstructionDataCodec: typeof getSwapExactInInstructionDataCodec;
|
|
2724
|
+
declare const index$6_getSwapExactInInstructionDataDecoder: typeof getSwapExactInInstructionDataDecoder;
|
|
2725
|
+
declare const index$6_getSwapExactInInstructionDataEncoder: typeof getSwapExactInInstructionDataEncoder;
|
|
2726
|
+
declare const index$6_getSwapQuote: typeof getSwapQuote;
|
|
2727
|
+
declare const index$6_getSwapQuoteExactOut: typeof getSwapQuoteExactOut;
|
|
2728
|
+
declare const index$6_getTransferAdminDiscriminatorBytes: typeof getTransferAdminDiscriminatorBytes;
|
|
2729
|
+
declare const index$6_getTransferAdminInstruction: typeof getTransferAdminInstruction;
|
|
2730
|
+
declare const index$6_getTransferAdminInstructionDataCodec: typeof getTransferAdminInstructionDataCodec;
|
|
2731
|
+
declare const index$6_getTransferAdminInstructionDataDecoder: typeof getTransferAdminInstructionDataDecoder;
|
|
2732
|
+
declare const index$6_getTransferAdminInstructionDataEncoder: typeof getTransferAdminInstructionDataEncoder;
|
|
2733
|
+
declare const index$6_getTvl: typeof getTvl;
|
|
2734
|
+
declare const index$6_getUnpauseDiscriminatorBytes: typeof getUnpauseDiscriminatorBytes;
|
|
2735
|
+
declare const index$6_getUnpauseInstruction: typeof getUnpauseInstruction;
|
|
2736
|
+
declare const index$6_getUnpauseInstructionDataCodec: typeof getUnpauseInstructionDataCodec;
|
|
2737
|
+
declare const index$6_getUnpauseInstructionDataDecoder: typeof getUnpauseInstructionDataDecoder;
|
|
2738
|
+
declare const index$6_getUnpauseInstructionDataEncoder: typeof getUnpauseInstructionDataEncoder;
|
|
2739
|
+
declare const index$6_getUpdateConfigDiscriminatorBytes: typeof getUpdateConfigDiscriminatorBytes;
|
|
2740
|
+
declare const index$6_getUpdateConfigInstruction: typeof getUpdateConfigInstruction;
|
|
2741
|
+
declare const index$6_getUpdateConfigInstructionDataCodec: typeof getUpdateConfigInstructionDataCodec;
|
|
2742
|
+
declare const index$6_getUpdateConfigInstructionDataDecoder: typeof getUpdateConfigInstructionDataDecoder;
|
|
2743
|
+
declare const index$6_getUpdateConfigInstructionDataEncoder: typeof getUpdateConfigInstructionDataEncoder;
|
|
2744
|
+
declare const index$6_getWithdrawVaultExcessDiscriminatorBytes: typeof getWithdrawVaultExcessDiscriminatorBytes;
|
|
2745
|
+
declare const index$6_getWithdrawVaultExcessInstruction: typeof getWithdrawVaultExcessInstruction;
|
|
2746
|
+
declare const index$6_getWithdrawVaultExcessInstructionAsync: typeof getWithdrawVaultExcessInstructionAsync;
|
|
2747
|
+
declare const index$6_getWithdrawVaultExcessInstructionDataCodec: typeof getWithdrawVaultExcessInstructionDataCodec;
|
|
2748
|
+
declare const index$6_getWithdrawVaultExcessInstructionDataDecoder: typeof getWithdrawVaultExcessInstructionDataDecoder;
|
|
2749
|
+
declare const index$6_getWithdrawVaultExcessInstructionDataEncoder: typeof getWithdrawVaultExcessInstructionDataEncoder;
|
|
2750
|
+
declare const index$6_initializeConfigArgsCodec: typeof initializeConfigArgsCodec;
|
|
2751
|
+
declare const index$6_initializeOracleArgsCodec: typeof initializeOracleArgsCodec;
|
|
2752
|
+
declare const index$6_initializePoolArgsCodec: typeof initializePoolArgsCodec;
|
|
2753
|
+
declare const index$6_isCpmmError: typeof isCpmmError;
|
|
2754
|
+
declare const index$6_isOracleStale: typeof isOracleStale;
|
|
2755
|
+
declare const index$6_isTransactionSigner: typeof isTransactionSigner;
|
|
2756
|
+
declare const index$6_isqrt: typeof isqrt;
|
|
2757
|
+
declare const index$6_marketCapToCurveParams: typeof marketCapToCurveParams;
|
|
2758
|
+
declare const index$6_marketCapToSingleCurveParams: typeof marketCapToSingleCurveParams;
|
|
2759
|
+
declare const index$6_marketCapToTokenPrice: typeof marketCapToTokenPrice;
|
|
2760
|
+
declare const index$6_maxBigInt: typeof maxBigInt;
|
|
2761
|
+
declare const index$6_minBigInt: typeof minBigInt;
|
|
2762
|
+
declare const index$6_normalizeProgramAccountsResponse: typeof normalizeProgramAccountsResponse;
|
|
2763
|
+
declare const index$6_numberToQ64: typeof numberToQ64;
|
|
2764
|
+
declare const index$6_observationCodec: typeof observationCodec;
|
|
2765
|
+
declare const index$6_oracleConsultArgsCodec: typeof oracleConsultArgsCodec;
|
|
2766
|
+
declare const index$6_oracleStateDataCodec: typeof oracleStateDataCodec;
|
|
2767
|
+
declare const index$6_parseAddLiquidityInstruction: typeof parseAddLiquidityInstruction;
|
|
2768
|
+
declare const index$6_parseClosePositionInstruction: typeof parseClosePositionInstruction;
|
|
2769
|
+
declare const index$6_parseCollectFeesInstruction: typeof parseCollectFeesInstruction;
|
|
2770
|
+
declare const index$6_parseCollectProtocolFeesInstruction: typeof parseCollectProtocolFeesInstruction;
|
|
2771
|
+
declare const index$6_parseCreatePositionInstruction: typeof parseCreatePositionInstruction;
|
|
2772
|
+
declare const index$6_parseErrorFromLogs: typeof parseErrorFromLogs;
|
|
2773
|
+
declare const index$6_parseInitializePoolInstruction: typeof parseInitializePoolInstruction;
|
|
2774
|
+
declare const index$6_parseOracleConsultInstruction: typeof parseOracleConsultInstruction;
|
|
2775
|
+
declare const index$6_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction;
|
|
2776
|
+
declare const index$6_parsePauseInstruction: typeof parsePauseInstruction;
|
|
2777
|
+
declare const index$6_parsePreviewSwapExactInInstruction: typeof parsePreviewSwapExactInInstruction;
|
|
2778
|
+
declare const index$6_parseRedeemProtocolSharesInstruction: typeof parseRedeemProtocolSharesInstruction;
|
|
2779
|
+
declare const index$6_parseRemoveLiquidityInstruction: typeof parseRemoveLiquidityInstruction;
|
|
2780
|
+
declare const index$6_parseSetFeesInstruction: typeof parseSetFeesInstruction;
|
|
2781
|
+
declare const index$6_parseSetHookInstruction: typeof parseSetHookInstruction;
|
|
2782
|
+
declare const index$6_parseSwapExactInInstruction: typeof parseSwapExactInInstruction;
|
|
2783
|
+
declare const index$6_parseTransferAdminInstruction: typeof parseTransferAdminInstruction;
|
|
2784
|
+
declare const index$6_parseUnpauseInstruction: typeof parseUnpauseInstruction;
|
|
2785
|
+
declare const index$6_parseUpdateConfigInstruction: typeof parseUpdateConfigInstruction;
|
|
2786
|
+
declare const index$6_parseWithdrawVaultExcessInstruction: typeof parseWithdrawVaultExcessInstruction;
|
|
2787
|
+
declare const index$6_poolDataCodec: typeof poolDataCodec;
|
|
2788
|
+
declare const index$6_poolExists: typeof poolExists;
|
|
2789
|
+
declare const index$6_positionDataCodec: typeof positionDataCodec;
|
|
2790
|
+
declare const index$6_q64Div: typeof q64Div;
|
|
2791
|
+
declare const index$6_q64Mul: typeof q64Mul;
|
|
2792
|
+
declare const index$6_q64ToNumber: typeof q64ToNumber;
|
|
2793
|
+
declare const index$6_ratioToNumber: typeof ratioToNumber;
|
|
2794
|
+
declare const index$6_removeLiquidityArgsCodec: typeof removeLiquidityArgsCodec;
|
|
2795
|
+
declare const index$6_setFeesArgsCodec: typeof setFeesArgsCodec;
|
|
2796
|
+
declare const index$6_setHookArgsCodec: typeof setHookArgsCodec;
|
|
2797
|
+
declare const index$6_sortMints: typeof sortMints;
|
|
2798
|
+
declare const index$6_sortPoolsByReserves: typeof sortPoolsByReserves;
|
|
2799
|
+
declare const index$6_sortPositionsByShares: typeof sortPositionsByShares;
|
|
2800
|
+
declare const index$6_swapExactInArgsCodec: typeof swapExactInArgsCodec;
|
|
2801
|
+
declare const index$6_transferAdminArgsCodec: typeof transferAdminArgsCodec;
|
|
2802
|
+
declare const index$6_validateMarketCapParameters: typeof validateMarketCapParameters;
|
|
2803
|
+
declare const index$6_warnAccountDecodeFailure: typeof warnAccountDecodeFailure;
|
|
2804
|
+
declare namespace index$6 {
|
|
2805
|
+
export { index$6_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$6_ACCOUNT_VERSION as ACCOUNT_VERSION, index$6_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, type index$6_AccountMetaRole as AccountMetaRole, index$6_AddLiquidityArgs as AddLiquidityArgs, type index$6_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$6_AddLiquidityEvent as AddLiquidityEvent, type index$6_AddLiquidityInput as AddLiquidityInput, type index$6_AddLiquidityInstruction as AddLiquidityInstruction, type index$6_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$6_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$6_AddLiquidityQuote as AddLiquidityQuote, type index$6_AddressOrTransactionSigner as AddressOrTransactionSigner, index$6_AdminTransferredEvent as AdminTransferredEvent, index$6_AmmConfig as AmmConfig, index$6_BPS_DENOM as BPS_DENOM, index$6_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$6_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$6_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$6_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$6_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$6_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$6_ClosePositionInput as ClosePositionInput, type index$6_ClosePositionInstruction as ClosePositionInstruction, type index$6_ClosePositionInstructionData as ClosePositionInstructionData, type index$6_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$6_CollectFeesArgs as CollectFeesArgs, type index$6_CollectFeesAsyncInput as CollectFeesAsyncInput, index$6_CollectFeesEvent as CollectFeesEvent, type index$6_CollectFeesInput as CollectFeesInput, type index$6_CollectFeesInstruction as CollectFeesInstruction, type index$6_CollectFeesInstructionData as CollectFeesInstructionData, type index$6_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$6_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$6_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$6_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$6_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$6_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$6_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$6_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$6_CpmmError as CpmmError, index$6_CpmmErrorCode as CpmmErrorCode, index$6_CreatePositionArgs as CreatePositionArgs, type index$6_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$6_CreatePositionInput as CreatePositionInput, type index$6_CreatePositionInstruction as CreatePositionInstruction, type index$6_CreatePositionInstructionData as CreatePositionInstructionData, type index$6_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$6_CurveParams as CurveParams, index$6_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, type index$6_EncodedProgramAccount as EncodedProgramAccount, index$6_FeesUpdatedEvent as FeesUpdatedEvent, index$6_FetchOracleConfig as FetchOracleConfig, type index$6_FetchPoolsConfig as FetchPoolsConfig, index$6_FetchPositionsConfig as FetchPositionsConfig, index$6_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$6_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$6_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$6_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$6_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$6_HookErrorEvent as HookErrorEvent, index$6_HookInvokedEvent as HookInvokedEvent, index$6_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$2 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$6_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$6_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$3 as InitializeConfigArgs, type InitializeConfigAsyncInput$2 as InitializeConfigAsyncInput, type InitializeConfigInput$2 as InitializeConfigInput, type InitializeConfigInstruction$2 as InitializeConfigInstruction, type InitializeConfigInstructionData$2 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$2 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$6_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$6_InitializePoolArgs as InitializePoolArgs, type index$6_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$6_InitializePoolInput as InitializePoolInput, type index$6_InitializePoolInstruction as InitializePoolInstruction, type index$6_InitializePoolInstructionData as InitializePoolInstructionData, type index$6_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, index$6_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$6_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$6_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$6_MarketCapValidationResult as MarketCapValidationResult, index$6_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$6_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$6_Observation as Observation, index$6_OracleConsultArgs as OracleConsultArgs, type index$6_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$6_OracleConsultInput as OracleConsultInput, type index$6_OracleConsultInstruction as OracleConsultInstruction, type index$6_OracleConsultInstructionData as OracleConsultInstructionData, type index$6_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$6_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$6_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$6_OracleUpdateInput as OracleUpdateInput, type index$6_OracleUpdateInstruction as OracleUpdateInstruction, type index$6_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$6_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$6_OracleUpdatedEvent as OracleUpdatedEvent, index$6_OracleWithAddress as OracleWithAddress, index$6_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$6_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$6_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$6_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$6_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$6_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$6_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$2 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$6_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$6_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$6_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$6_ParsedPauseInstruction as ParsedPauseInstruction, type index$6_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$6_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$6_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$6_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$6_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$6_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$6_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$6_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$6_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$6_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$6_PauseInput as PauseInput, type index$6_PauseInstruction as PauseInstruction, type index$6_PauseInstructionData as PauseInstructionData, type index$6_PauseInstructionDataArgs as PauseInstructionDataArgs, index$6_PausedEvent as PausedEvent, index$6_Pool as Pool, index$6_PoolInitializedEvent as PoolInitializedEvent, type index$6_PoolWithAddress as PoolWithAddress, index$6_Position as Position, index$6_PositionClosedEvent as PositionClosedEvent, index$6_PositionCreatedEvent as PositionCreatedEvent, index$6_PositionValue as PositionValue, index$6_PositionWithAddress as PositionWithAddress, type index$6_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$6_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$6_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$6_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$6_Q64_ONE as Q64_ONE, index$6_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$6_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$6_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$6_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$6_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$6_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$6_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, type index$6_RemainingAccount as RemainingAccount, index$6_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$6_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$6_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$6_RemoveLiquidityInput as RemoveLiquidityInput, type index$6_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$6_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$6_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$6_RemoveLiquidityQuote as RemoveLiquidityQuote, index$6_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$6_SEED_ORACLE as SEED_ORACLE, index$6_SEED_POOL as SEED_POOL, index$6_SEED_POSITION as SEED_POSITION, index$6_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$6_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$6_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$6_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$6_SetFeesArgs as SetFeesArgs, type index$6_SetFeesInput as SetFeesInput, type index$6_SetFeesInstruction as SetFeesInstruction, type index$6_SetFeesInstructionData as SetFeesInstructionData, type index$6_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$6_SetHookArgs as SetHookArgs, type index$6_SetHookInput as SetHookInput, type index$6_SetHookInstruction as SetHookInstruction, type index$6_SetHookInstructionData as SetHookInstructionData, type index$6_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$6_SwapEvent as SwapEvent, index$6_SwapExactInArgs as SwapExactInArgs, type index$6_SwapExactInAsyncInput as SwapExactInAsyncInput, type SwapExactInInput$1 as SwapExactInInput, type index$6_SwapExactInInstruction as SwapExactInInstruction, type index$6_SwapExactInInstructionData as SwapExactInInstructionData, type index$6_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$6_SwapQuote as SwapQuote, index$6_SwapQuoteExactOut as SwapQuoteExactOut, index$6_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$6_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$6_TradeDirection as TradeDirection, index$6_TransferAdminArgs as TransferAdminArgs, type index$6_TransferAdminInput as TransferAdminInput, type index$6_TransferAdminInstruction as TransferAdminInstruction, type index$6_TransferAdminInstructionData as TransferAdminInstructionData, type index$6_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$6_TwapResult as TwapResult, index$6_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$6_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$6_UnpauseInput as UnpauseInput, type index$6_UnpauseInstruction as UnpauseInstruction, type index$6_UnpauseInstructionData as UnpauseInstructionData, type index$6_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$6_UnpausedEvent as UnpausedEvent, type index$6_UpdateConfigInput as UpdateConfigInput, type index$6_UpdateConfigInstruction as UpdateConfigInstruction, type index$6_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$6_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$6_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$6_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$6_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$6_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$6_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$6_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$6_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$6_addLiquidityArgsCodec as addLiquidityArgsCodec, index$6_addressToBase58EncodedBytes as addressToBase58EncodedBytes, index$6_ammConfigDataCodec as ammConfigDataCodec, index$6_areMintsOrdered as areMintsOrdered, index$6_base64ToBytes as base64ToBytes, index$6_bytesToBase64 as bytesToBase64, index$6_bytesToBase64EncodedBytes as bytesToBase64EncodedBytes, index$6_calculateAccruedFees as calculateAccruedFees, index$6_calculateTwap as calculateTwap, index$6_calculateTwapNumber as calculateTwapNumber, index$6_ceilDiv as ceilDiv, index$6_collectFeesArgsCodec as collectFeesArgsCodec, index$6_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$6_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$6_computePrice0Q64 as computePrice0Q64, index$6_computePrice1Q64 as computePrice1Q64, index$6_consultTwap as consultTwap, index$6_createAccountMeta as createAccountMeta, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$2 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$6_createPositionArgsCodec as createPositionArgsCodec, index$6_createReadonlyRemainingAccountMeta as createReadonlyRemainingAccountMeta, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$6_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$6_curveParamsToMarketCap as curveParamsToMarketCap, index$6_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$6_decodePool as decodePool, index$6_decodePosition as decodePosition, index$6_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$6_encodeCollectFeesArgs as encodeCollectFeesArgs, index$6_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$6_encodeCreatePositionArgs as encodeCreatePositionArgs, index$6_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$6_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$6_encodeInitializePoolArgs as encodeInitializePoolArgs, index$6_encodeInstructionData as encodeInstructionData, index$6_encodeOracleConsultArgs as encodeOracleConsultArgs, index$6_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$6_encodeSetFeesArgs as encodeSetFeesArgs, index$6_encodeSetHookArgs as encodeSetHookArgs, index$6_encodeSwapExactInArgs as encodeSwapExactInArgs, index$6_encodeTransferAdminArgs as encodeTransferAdminArgs, index$6_fetchAllPools as fetchAllPools, index$6_fetchConfig as fetchConfig, index$6_fetchConfigWithAddress as fetchConfigWithAddress, index$6_fetchOracle as fetchOracle, index$6_fetchOraclesBatch as fetchOraclesBatch, index$6_fetchPool as fetchPool, index$6_fetchPoolPositions as fetchPoolPositions, index$6_fetchPoolsBatch as fetchPoolsBatch, index$6_fetchPosition as fetchPosition, index$6_fetchPositionByParams as fetchPositionByParams, index$6_fetchPositionsBatch as fetchPositionsBatch, index$6_fetchUserPositions as fetchUserPositions, index$6_filterActivePositions as filterActivePositions, index$6_filterPoolsByMint as filterPoolsByMint, index$6_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$6_getAddLiquidityInstruction as getAddLiquidityInstruction, index$6_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$6_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$6_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$6_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$6_getAddLiquidityQuote as getAddLiquidityQuote, index$6_getAddressFromAddressOrSigner as getAddressFromAddressOrSigner, index$6_getAddressFromRemainingAccount as getAddressFromRemainingAccount, index$6_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$6_getClosePositionInstruction as getClosePositionInstruction, index$6_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$6_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$6_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$6_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$6_getCollectFeesInstruction as getCollectFeesInstruction, index$6_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$6_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$6_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$6_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$6_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$6_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$6_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$6_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$6_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$6_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$6_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$6_getCreatePositionInstruction as getCreatePositionInstruction, index$6_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$6_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$6_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$6_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$6_getErrorMessage as getErrorMessage, getInitializeConfigDiscriminatorBytes$2 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$2 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$2 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$2 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$2 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$2 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$6_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$6_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$6_getInitializePoolInstruction as getInitializePoolInstruction, index$6_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$6_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$6_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$6_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$6_getK as getK, index$6_getLiquidityAddresses as getLiquidityAddresses, index$6_getMetadataAddress as getMetadataAddress, index$6_getOracleAddress as getOracleAddress, index$6_getOracleAddressFromPool as getOracleAddressFromPool, index$6_getOracleAge as getOracleAge, index$6_getOracleBufferStats as getOracleBufferStats, index$6_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$6_getOracleConsultInstruction as getOracleConsultInstruction, index$6_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$6_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$6_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$6_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$6_getOracleDeviation as getOracleDeviation, index$6_getOracleForPool as getOracleForPool, index$6_getOracleSpotPrices as getOracleSpotPrices, index$6_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$6_getOracleUpdateInstruction as getOracleUpdateInstruction, index$6_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$6_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$6_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$6_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$6_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$6_getPauseInstruction as getPauseInstruction, index$6_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$6_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$6_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$6_getPendingFees as getPendingFees, index$6_getPoolAddress as getPoolAddress, index$6_getPoolAddressFromMints as getPoolAddressFromMints, index$6_getPoolAuthorityAddress as getPoolAuthorityAddress, index$6_getPoolByMints as getPoolByMints, index$6_getPoolInitAddresses as getPoolInitAddresses, index$6_getPoolVault0Address as getPoolVault0Address, index$6_getPoolVault1Address as getPoolVault1Address, index$6_getPositionAddress as getPositionAddress, index$6_getPositionAddressFromParams as getPositionAddressFromParams, index$6_getPositionValue as getPositionValue, index$6_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$6_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$6_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$6_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$6_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$6_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$6_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$6_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$6_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$6_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$6_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$6_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$6_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$6_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$6_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$6_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$6_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$6_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$6_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$6_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$6_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$6_getSetFeesInstruction as getSetFeesInstruction, index$6_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$6_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$6_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$6_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$6_getSetHookInstruction as getSetHookInstruction, index$6_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$6_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$6_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$6_getSpotPrice0 as getSpotPrice0, index$6_getSpotPrice1 as getSpotPrice1, index$6_getSwapAddresses as getSwapAddresses, index$6_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$6_getSwapExactInInstruction as getSwapExactInInstruction, index$6_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$6_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$6_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$6_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$6_getSwapQuote as getSwapQuote, index$6_getSwapQuoteExactOut as getSwapQuoteExactOut, index$6_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$6_getTransferAdminInstruction as getTransferAdminInstruction, index$6_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$6_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$6_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$6_getTvl as getTvl, index$6_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$6_getUnpauseInstruction as getUnpauseInstruction, index$6_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$6_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$6_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$6_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$6_getUpdateConfigInstruction as getUpdateConfigInstruction, index$6_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$6_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$6_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$6_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$6_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$6_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$6_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$6_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$6_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$6_initializeConfigArgsCodec as initializeConfigArgsCodec, index$6_initializeOracleArgsCodec as initializeOracleArgsCodec, index$6_initializePoolArgsCodec as initializePoolArgsCodec, index$6_isCpmmError as isCpmmError, index$6_isOracleStale as isOracleStale, index$6_isTransactionSigner as isTransactionSigner, index$6_isqrt as isqrt, index$6_marketCapToCurveParams as marketCapToCurveParams, index$6_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$6_marketCapToTokenPrice as marketCapToTokenPrice, index$6_maxBigInt as maxBigInt, index$6_minBigInt as minBigInt, index$6_normalizeProgramAccountsResponse as normalizeProgramAccountsResponse, index$6_numberToQ64 as numberToQ64, index$6_observationCodec as observationCodec, index$6_oracleConsultArgsCodec as oracleConsultArgsCodec, index$6_oracleStateDataCodec as oracleStateDataCodec, index$6_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$6_parseClosePositionInstruction as parseClosePositionInstruction, index$6_parseCollectFeesInstruction as parseCollectFeesInstruction, index$6_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$6_parseCreatePositionInstruction as parseCreatePositionInstruction, index$6_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$2 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$6_parseInitializePoolInstruction as parseInitializePoolInstruction, index$6_parseOracleConsultInstruction as parseOracleConsultInstruction, index$6_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$6_parsePauseInstruction as parsePauseInstruction, index$6_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$6_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$6_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$6_parseSetFeesInstruction as parseSetFeesInstruction, index$6_parseSetHookInstruction as parseSetHookInstruction, index$6_parseSwapExactInInstruction as parseSwapExactInInstruction, index$6_parseTransferAdminInstruction as parseTransferAdminInstruction, index$6_parseUnpauseInstruction as parseUnpauseInstruction, index$6_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$6_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$6_poolDataCodec as poolDataCodec, index$6_poolExists as poolExists, index$6_positionDataCodec as positionDataCodec, index$6_q64Div as q64Div, index$6_q64Mul as q64Mul, index$6_q64ToNumber as q64ToNumber, index$6_ratioToNumber as ratioToNumber, index$6_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$6_setFeesArgsCodec as setFeesArgsCodec, index$6_setHookArgsCodec as setHookArgsCodec, index$6_sortMints as sortMints, index$6_sortPoolsByReserves as sortPoolsByReserves, index$6_sortPositionsByShares as sortPositionsByShares, index$6_swapExactInArgsCodec as swapExactInArgsCodec, index$6_transferAdminArgsCodec as transferAdminArgsCodec, index$6_validateMarketCapParameters as validateMarketCapParameters, index$6_warnAccountDecodeFailure as warnAccountDecodeFailure };
|
|
2772
2806
|
}
|
|
2773
2807
|
|
|
2774
2808
|
/**
|
|
@@ -2779,9 +2813,9 @@ declare namespace index$5 {
|
|
|
2779
2813
|
* @see https://github.com/codama-idl/codama
|
|
2780
2814
|
*/
|
|
2781
2815
|
|
|
2782
|
-
declare const COSIGNER_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2783
|
-
declare function getCosignerConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2784
|
-
type CosignerConfig = {
|
|
2816
|
+
declare const COSIGNER_CONFIG_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
|
|
2817
|
+
declare function getCosignerConfigDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2818
|
+
type CosignerConfig$1 = {
|
|
2785
2819
|
discriminator: ReadonlyUint8Array;
|
|
2786
2820
|
adminAuthority: Address;
|
|
2787
2821
|
cosignerCount: number;
|
|
@@ -2790,7 +2824,7 @@ type CosignerConfig = {
|
|
|
2790
2824
|
reserved: ReadonlyUint8Array;
|
|
2791
2825
|
cosigners: Array<Address>;
|
|
2792
2826
|
};
|
|
2793
|
-
type CosignerConfigArgs = {
|
|
2827
|
+
type CosignerConfigArgs$1 = {
|
|
2794
2828
|
adminAuthority: Address;
|
|
2795
2829
|
cosignerCount: number;
|
|
2796
2830
|
bump: number;
|
|
@@ -2799,18 +2833,18 @@ type CosignerConfigArgs = {
|
|
|
2799
2833
|
cosigners: Array<Address>;
|
|
2800
2834
|
};
|
|
2801
2835
|
/** Gets the encoder for {@link CosignerConfigArgs} account data. */
|
|
2802
|
-
declare function getCosignerConfigEncoder(): FixedSizeEncoder<CosignerConfigArgs>;
|
|
2836
|
+
declare function getCosignerConfigEncoder$1(): FixedSizeEncoder<CosignerConfigArgs$1>;
|
|
2803
2837
|
/** Gets the decoder for {@link CosignerConfig} account data. */
|
|
2804
|
-
declare function getCosignerConfigDecoder(): FixedSizeDecoder<CosignerConfig>;
|
|
2838
|
+
declare function getCosignerConfigDecoder$1(): FixedSizeDecoder<CosignerConfig$1>;
|
|
2805
2839
|
/** Gets the codec for {@link CosignerConfig} account data. */
|
|
2806
|
-
declare function getCosignerConfigCodec(): FixedSizeCodec<CosignerConfigArgs, CosignerConfig>;
|
|
2807
|
-
declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CosignerConfig, TAddress>;
|
|
2808
|
-
declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CosignerConfig, TAddress>;
|
|
2809
|
-
declare function fetchCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CosignerConfig, TAddress>>;
|
|
2810
|
-
declare function fetchMaybeCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CosignerConfig, TAddress>>;
|
|
2811
|
-
declare function fetchAllCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CosignerConfig>[]>;
|
|
2812
|
-
declare function fetchAllMaybeCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CosignerConfig>[]>;
|
|
2813
|
-
declare function getCosignerConfigSize(): number;
|
|
2840
|
+
declare function getCosignerConfigCodec$1(): FixedSizeCodec<CosignerConfigArgs$1, CosignerConfig$1>;
|
|
2841
|
+
declare function decodeCosignerConfig$1<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CosignerConfig$1, TAddress>;
|
|
2842
|
+
declare function decodeCosignerConfig$1<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CosignerConfig$1, TAddress>;
|
|
2843
|
+
declare function fetchCosignerConfig$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CosignerConfig$1, TAddress>>;
|
|
2844
|
+
declare function fetchMaybeCosignerConfig$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CosignerConfig$1, TAddress>>;
|
|
2845
|
+
declare function fetchAllCosignerConfig$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CosignerConfig$1>[]>;
|
|
2846
|
+
declare function fetchAllMaybeCosignerConfig$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CosignerConfig$1>[]>;
|
|
2847
|
+
declare function getCosignerConfigSize$1(): number;
|
|
2814
2848
|
|
|
2815
2849
|
/**
|
|
2816
2850
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2870,32 +2904,32 @@ declare function identifyCosignerHookInstruction(instruction: {
|
|
|
2870
2904
|
} | ReadonlyUint8Array): CosignerHookInstruction;
|
|
2871
2905
|
type ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ({
|
|
2872
2906
|
instructionType: CosignerHookInstruction.AddCosigner;
|
|
2873
|
-
} & ParsedAddCosignerInstruction<TProgram>) | ({
|
|
2907
|
+
} & ParsedAddCosignerInstruction$1<TProgram>) | ({
|
|
2874
2908
|
instructionType: CosignerHookInstruction.InitializeConfig;
|
|
2875
|
-
} & ParsedInitializeConfigInstruction<TProgram>) | ({
|
|
2909
|
+
} & ParsedInitializeConfigInstruction$1<TProgram>) | ({
|
|
2876
2910
|
instructionType: CosignerHookInstruction.RemoveCosigner;
|
|
2877
|
-
} & ParsedRemoveCosignerInstruction<TProgram>) | ({
|
|
2911
|
+
} & ParsedRemoveCosignerInstruction$1<TProgram>) | ({
|
|
2878
2912
|
instructionType: CosignerHookInstruction.SetAuthority;
|
|
2879
|
-
} & ParsedSetAuthorityInstruction<TProgram>);
|
|
2913
|
+
} & ParsedSetAuthorityInstruction$1<TProgram>);
|
|
2880
2914
|
declare function parseCosignerHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedCosignerHookInstruction<TProgram>;
|
|
2881
2915
|
type CosignerHookPlugin = {
|
|
2882
2916
|
accounts: CosignerHookPluginAccounts;
|
|
2883
2917
|
instructions: CosignerHookPluginInstructions;
|
|
2884
2918
|
};
|
|
2885
2919
|
type CosignerHookPluginAccounts = {
|
|
2886
|
-
cosignerConfig: ReturnType<typeof getCosignerConfigCodec> & SelfFetchFunctions<CosignerConfigArgs, CosignerConfig>;
|
|
2920
|
+
cosignerConfig: ReturnType<typeof getCosignerConfigCodec$1> & SelfFetchFunctions<CosignerConfigArgs$1, CosignerConfig$1>;
|
|
2887
2921
|
};
|
|
2888
2922
|
type CosignerHookPluginInstructions = {
|
|
2889
|
-
addCosigner: (input: AddCosignerAsyncInput) => ReturnType<typeof getAddCosignerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
2890
|
-
initializeConfig: (input: MakeOptional$
|
|
2891
|
-
removeCosigner: (input: RemoveCosignerAsyncInput) => ReturnType<typeof getRemoveCosignerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
2892
|
-
setAuthority: (input: SetAuthorityAsyncInput) => ReturnType<typeof getSetAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
|
|
2923
|
+
addCosigner: (input: AddCosignerAsyncInput$1) => ReturnType<typeof getAddCosignerInstructionAsync$1> & SelfPlanAndSendFunctions;
|
|
2924
|
+
initializeConfig: (input: MakeOptional$2<InitializeConfigAsyncInput$1, 'payer'>) => ReturnType<typeof getInitializeConfigInstructionAsync$1> & SelfPlanAndSendFunctions;
|
|
2925
|
+
removeCosigner: (input: RemoveCosignerAsyncInput$1) => ReturnType<typeof getRemoveCosignerInstructionAsync$1> & SelfPlanAndSendFunctions;
|
|
2926
|
+
setAuthority: (input: SetAuthorityAsyncInput$1) => ReturnType<typeof getSetAuthorityInstructionAsync$1> & SelfPlanAndSendFunctions;
|
|
2893
2927
|
};
|
|
2894
2928
|
type CosignerHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
2895
2929
|
declare function cosignerHookProgram(): <T extends CosignerHookPluginRequirements>(client: T) => T & {
|
|
2896
2930
|
cosignerHook: CosignerHookPlugin;
|
|
2897
2931
|
};
|
|
2898
|
-
type MakeOptional$
|
|
2932
|
+
type MakeOptional$2<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
2899
2933
|
|
|
2900
2934
|
/**
|
|
2901
2935
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2905,48 +2939,48 @@ type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
|
2905
2939
|
* @see https://github.com/codama-idl/codama
|
|
2906
2940
|
*/
|
|
2907
2941
|
|
|
2908
|
-
declare const ADD_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2909
|
-
declare function getAddCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2910
|
-
type AddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2942
|
+
declare const ADD_COSIGNER_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
|
|
2943
|
+
declare function getAddCosignerDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2944
|
+
type AddCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2911
2945
|
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
2912
2946
|
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
2913
2947
|
...TRemainingAccounts
|
|
2914
2948
|
]>;
|
|
2915
|
-
type AddCosignerInstructionData = {
|
|
2949
|
+
type AddCosignerInstructionData$1 = {
|
|
2916
2950
|
discriminator: ReadonlyUint8Array;
|
|
2917
2951
|
cosigner: Address;
|
|
2918
2952
|
};
|
|
2919
|
-
type AddCosignerInstructionDataArgs = {
|
|
2953
|
+
type AddCosignerInstructionDataArgs$1 = {
|
|
2920
2954
|
cosigner: Address;
|
|
2921
2955
|
};
|
|
2922
|
-
declare function getAddCosignerInstructionDataEncoder(): FixedSizeEncoder<AddCosignerInstructionDataArgs>;
|
|
2923
|
-
declare function getAddCosignerInstructionDataDecoder(): FixedSizeDecoder<AddCosignerInstructionData>;
|
|
2924
|
-
declare function getAddCosignerInstructionDataCodec(): FixedSizeCodec<AddCosignerInstructionDataArgs, AddCosignerInstructionData>;
|
|
2925
|
-
type AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
2956
|
+
declare function getAddCosignerInstructionDataEncoder$1(): FixedSizeEncoder<AddCosignerInstructionDataArgs$1>;
|
|
2957
|
+
declare function getAddCosignerInstructionDataDecoder$1(): FixedSizeDecoder<AddCosignerInstructionData$1>;
|
|
2958
|
+
declare function getAddCosignerInstructionDataCodec$1(): FixedSizeCodec<AddCosignerInstructionDataArgs$1, AddCosignerInstructionData$1>;
|
|
2959
|
+
type AddCosignerAsyncInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
2926
2960
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
2927
2961
|
config?: Address<TAccountConfig>;
|
|
2928
|
-
cosigner: AddCosignerInstructionDataArgs['cosigner'];
|
|
2962
|
+
cosigner: AddCosignerInstructionDataArgs$1['cosigner'];
|
|
2929
2963
|
};
|
|
2930
|
-
declare function getAddCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
2964
|
+
declare function getAddCosignerInstructionAsync$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
2931
2965
|
programAddress?: TProgramAddress;
|
|
2932
|
-
}): Promise<AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
2933
|
-
type AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
2966
|
+
}): Promise<AddCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
2967
|
+
type AddCosignerInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
2934
2968
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
2935
2969
|
config: Address<TAccountConfig>;
|
|
2936
|
-
cosigner: AddCosignerInstructionDataArgs['cosigner'];
|
|
2970
|
+
cosigner: AddCosignerInstructionDataArgs$1['cosigner'];
|
|
2937
2971
|
};
|
|
2938
|
-
declare function getAddCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
2972
|
+
declare function getAddCosignerInstruction$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
2939
2973
|
programAddress?: TProgramAddress;
|
|
2940
|
-
}): AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
2941
|
-
type ParsedAddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2974
|
+
}): AddCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
2975
|
+
type ParsedAddCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2942
2976
|
programAddress: Address<TProgram>;
|
|
2943
2977
|
accounts: {
|
|
2944
2978
|
adminAuthority: TAccountMetas[0];
|
|
2945
2979
|
config: TAccountMetas[1];
|
|
2946
2980
|
};
|
|
2947
|
-
data: AddCosignerInstructionData;
|
|
2981
|
+
data: AddCosignerInstructionData$1;
|
|
2948
2982
|
};
|
|
2949
|
-
declare function parseAddCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
|
|
2983
|
+
declare function parseAddCosignerInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddCosignerInstruction$1<TProgram, TAccountMetas>;
|
|
2950
2984
|
|
|
2951
2985
|
/**
|
|
2952
2986
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2956,9 +2990,9 @@ declare function parseAddCosignerInstruction<TProgram extends string, TAccountMe
|
|
|
2956
2990
|
* @see https://github.com/codama-idl/codama
|
|
2957
2991
|
*/
|
|
2958
2992
|
|
|
2959
|
-
declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2960
|
-
declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2961
|
-
type InitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2993
|
+
declare const INITIALIZE_CONFIG_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
|
|
2994
|
+
declare function getInitializeConfigDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2995
|
+
type InitializeConfigInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2962
2996
|
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2963
2997
|
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
2964
2998
|
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
@@ -2966,39 +3000,39 @@ type InitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_
|
|
|
2966
3000
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2967
3001
|
...TRemainingAccounts
|
|
2968
3002
|
]>;
|
|
2969
|
-
type InitializeConfigInstructionData = {
|
|
3003
|
+
type InitializeConfigInstructionData$1 = {
|
|
2970
3004
|
discriminator: ReadonlyUint8Array;
|
|
2971
3005
|
cosigners: Array<Address>;
|
|
2972
3006
|
};
|
|
2973
|
-
type InitializeConfigInstructionDataArgs = {
|
|
3007
|
+
type InitializeConfigInstructionDataArgs$1 = {
|
|
2974
3008
|
cosigners: Array<Address>;
|
|
2975
3009
|
};
|
|
2976
|
-
declare function getInitializeConfigInstructionDataEncoder(): Encoder<InitializeConfigInstructionDataArgs>;
|
|
2977
|
-
declare function getInitializeConfigInstructionDataDecoder(): Decoder<InitializeConfigInstructionData>;
|
|
2978
|
-
declare function getInitializeConfigInstructionDataCodec(): Codec<InitializeConfigInstructionDataArgs, InitializeConfigInstructionData>;
|
|
2979
|
-
type InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3010
|
+
declare function getInitializeConfigInstructionDataEncoder$1(): Encoder<InitializeConfigInstructionDataArgs$1>;
|
|
3011
|
+
declare function getInitializeConfigInstructionDataDecoder$1(): Decoder<InitializeConfigInstructionData$1>;
|
|
3012
|
+
declare function getInitializeConfigInstructionDataCodec$1(): Codec<InitializeConfigInstructionDataArgs$1, InitializeConfigInstructionData$1>;
|
|
3013
|
+
type InitializeConfigAsyncInput$1<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2980
3014
|
payer: TransactionSigner<TAccountPayer>;
|
|
2981
3015
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
2982
3016
|
config?: Address<TAccountConfig>;
|
|
2983
3017
|
programData: Address<TAccountProgramData>;
|
|
2984
3018
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2985
|
-
cosigners: InitializeConfigInstructionDataArgs['cosigners'];
|
|
3019
|
+
cosigners: InitializeConfigInstructionDataArgs$1['cosigners'];
|
|
2986
3020
|
};
|
|
2987
|
-
declare function getInitializeConfigInstructionAsync<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
3021
|
+
declare function getInitializeConfigInstructionAsync$1<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput$1<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
2988
3022
|
programAddress?: TProgramAddress;
|
|
2989
|
-
}): Promise<InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
|
|
2990
|
-
type InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3023
|
+
}): Promise<InitializeConfigInstruction$1<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
|
|
3024
|
+
type InitializeConfigInput$1<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2991
3025
|
payer: TransactionSigner<TAccountPayer>;
|
|
2992
3026
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
2993
3027
|
config: Address<TAccountConfig>;
|
|
2994
3028
|
programData: Address<TAccountProgramData>;
|
|
2995
3029
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2996
|
-
cosigners: InitializeConfigInstructionDataArgs['cosigners'];
|
|
3030
|
+
cosigners: InitializeConfigInstructionDataArgs$1['cosigners'];
|
|
2997
3031
|
};
|
|
2998
|
-
declare function getInitializeConfigInstruction<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
3032
|
+
declare function getInitializeConfigInstruction$1<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput$1<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
2999
3033
|
programAddress?: TProgramAddress;
|
|
3000
|
-
}): InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
|
|
3001
|
-
type ParsedInitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3034
|
+
}): InitializeConfigInstruction$1<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
|
|
3035
|
+
type ParsedInitializeConfigInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3002
3036
|
programAddress: Address<TProgram>;
|
|
3003
3037
|
accounts: {
|
|
3004
3038
|
payer: TAccountMetas[0];
|
|
@@ -3007,9 +3041,9 @@ type ParsedInitializeConfigInstruction<TProgram extends string = typeof COSIGNER
|
|
|
3007
3041
|
programData: TAccountMetas[3];
|
|
3008
3042
|
systemProgram: TAccountMetas[4];
|
|
3009
3043
|
};
|
|
3010
|
-
data: InitializeConfigInstructionData;
|
|
3044
|
+
data: InitializeConfigInstructionData$1;
|
|
3011
3045
|
};
|
|
3012
|
-
declare function parseInitializeConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
|
|
3046
|
+
declare function parseInitializeConfigInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction$1<TProgram, TAccountMetas>;
|
|
3013
3047
|
|
|
3014
3048
|
/**
|
|
3015
3049
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3019,48 +3053,48 @@ declare function parseInitializeConfigInstruction<TProgram extends string, TAcco
|
|
|
3019
3053
|
* @see https://github.com/codama-idl/codama
|
|
3020
3054
|
*/
|
|
3021
3055
|
|
|
3022
|
-
declare const REMOVE_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3023
|
-
declare function getRemoveCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3024
|
-
type RemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3056
|
+
declare const REMOVE_COSIGNER_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
|
|
3057
|
+
declare function getRemoveCosignerDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3058
|
+
type RemoveCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3025
3059
|
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
3026
3060
|
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
3027
3061
|
...TRemainingAccounts
|
|
3028
3062
|
]>;
|
|
3029
|
-
type RemoveCosignerInstructionData = {
|
|
3063
|
+
type RemoveCosignerInstructionData$1 = {
|
|
3030
3064
|
discriminator: ReadonlyUint8Array;
|
|
3031
3065
|
cosigner: Address;
|
|
3032
3066
|
};
|
|
3033
|
-
type RemoveCosignerInstructionDataArgs = {
|
|
3067
|
+
type RemoveCosignerInstructionDataArgs$1 = {
|
|
3034
3068
|
cosigner: Address;
|
|
3035
3069
|
};
|
|
3036
|
-
declare function getRemoveCosignerInstructionDataEncoder(): FixedSizeEncoder<RemoveCosignerInstructionDataArgs>;
|
|
3037
|
-
declare function getRemoveCosignerInstructionDataDecoder(): FixedSizeDecoder<RemoveCosignerInstructionData>;
|
|
3038
|
-
declare function getRemoveCosignerInstructionDataCodec(): FixedSizeCodec<RemoveCosignerInstructionDataArgs, RemoveCosignerInstructionData>;
|
|
3039
|
-
type RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3070
|
+
declare function getRemoveCosignerInstructionDataEncoder$1(): FixedSizeEncoder<RemoveCosignerInstructionDataArgs$1>;
|
|
3071
|
+
declare function getRemoveCosignerInstructionDataDecoder$1(): FixedSizeDecoder<RemoveCosignerInstructionData$1>;
|
|
3072
|
+
declare function getRemoveCosignerInstructionDataCodec$1(): FixedSizeCodec<RemoveCosignerInstructionDataArgs$1, RemoveCosignerInstructionData$1>;
|
|
3073
|
+
type RemoveCosignerAsyncInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3040
3074
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
3041
3075
|
config?: Address<TAccountConfig>;
|
|
3042
|
-
cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
|
|
3076
|
+
cosigner: RemoveCosignerInstructionDataArgs$1['cosigner'];
|
|
3043
3077
|
};
|
|
3044
|
-
declare function getRemoveCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3078
|
+
declare function getRemoveCosignerInstructionAsync$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3045
3079
|
programAddress?: TProgramAddress;
|
|
3046
|
-
}): Promise<RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
3047
|
-
type RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3080
|
+
}): Promise<RemoveCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
3081
|
+
type RemoveCosignerInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3048
3082
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
3049
3083
|
config: Address<TAccountConfig>;
|
|
3050
|
-
cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
|
|
3084
|
+
cosigner: RemoveCosignerInstructionDataArgs$1['cosigner'];
|
|
3051
3085
|
};
|
|
3052
|
-
declare function getRemoveCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3086
|
+
declare function getRemoveCosignerInstruction$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3053
3087
|
programAddress?: TProgramAddress;
|
|
3054
|
-
}): RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
3055
|
-
type ParsedRemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3088
|
+
}): RemoveCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
3089
|
+
type ParsedRemoveCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3056
3090
|
programAddress: Address<TProgram>;
|
|
3057
3091
|
accounts: {
|
|
3058
3092
|
adminAuthority: TAccountMetas[0];
|
|
3059
3093
|
config: TAccountMetas[1];
|
|
3060
3094
|
};
|
|
3061
|
-
data: RemoveCosignerInstructionData;
|
|
3095
|
+
data: RemoveCosignerInstructionData$1;
|
|
3062
3096
|
};
|
|
3063
|
-
declare function parseRemoveCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
|
|
3097
|
+
declare function parseRemoveCosignerInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveCosignerInstruction$1<TProgram, TAccountMetas>;
|
|
3064
3098
|
|
|
3065
3099
|
/**
|
|
3066
3100
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3070,48 +3104,48 @@ declare function parseRemoveCosignerInstruction<TProgram extends string, TAccoun
|
|
|
3070
3104
|
* @see https://github.com/codama-idl/codama
|
|
3071
3105
|
*/
|
|
3072
3106
|
|
|
3073
|
-
declare const SET_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3074
|
-
declare function getSetAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3075
|
-
type SetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3107
|
+
declare const SET_AUTHORITY_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
|
|
3108
|
+
declare function getSetAuthorityDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3109
|
+
type SetAuthorityInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3076
3110
|
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
3077
3111
|
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
3078
3112
|
...TRemainingAccounts
|
|
3079
3113
|
]>;
|
|
3080
|
-
type SetAuthorityInstructionData = {
|
|
3114
|
+
type SetAuthorityInstructionData$1 = {
|
|
3081
3115
|
discriminator: ReadonlyUint8Array;
|
|
3082
3116
|
adminAuthority: Address;
|
|
3083
3117
|
};
|
|
3084
|
-
type SetAuthorityInstructionDataArgs = {
|
|
3118
|
+
type SetAuthorityInstructionDataArgs$1 = {
|
|
3085
3119
|
adminAuthority: Address;
|
|
3086
3120
|
};
|
|
3087
|
-
declare function getSetAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetAuthorityInstructionDataArgs>;
|
|
3088
|
-
declare function getSetAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetAuthorityInstructionData>;
|
|
3089
|
-
declare function getSetAuthorityInstructionDataCodec(): FixedSizeCodec<SetAuthorityInstructionDataArgs, SetAuthorityInstructionData>;
|
|
3090
|
-
type SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3121
|
+
declare function getSetAuthorityInstructionDataEncoder$1(): FixedSizeEncoder<SetAuthorityInstructionDataArgs$1>;
|
|
3122
|
+
declare function getSetAuthorityInstructionDataDecoder$1(): FixedSizeDecoder<SetAuthorityInstructionData$1>;
|
|
3123
|
+
declare function getSetAuthorityInstructionDataCodec$1(): FixedSizeCodec<SetAuthorityInstructionDataArgs$1, SetAuthorityInstructionData$1>;
|
|
3124
|
+
type SetAuthorityAsyncInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3091
3125
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
3092
3126
|
config?: Address<TAccountConfig>;
|
|
3093
|
-
adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
|
|
3127
|
+
adminAuthorityArg: SetAuthorityInstructionDataArgs$1['adminAuthority'];
|
|
3094
3128
|
};
|
|
3095
|
-
declare function getSetAuthorityInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3129
|
+
declare function getSetAuthorityInstructionAsync$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3096
3130
|
programAddress?: TProgramAddress;
|
|
3097
|
-
}): Promise<SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
3098
|
-
type SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3131
|
+
}): Promise<SetAuthorityInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
3132
|
+
type SetAuthorityInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
3099
3133
|
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
3100
3134
|
config: Address<TAccountConfig>;
|
|
3101
|
-
adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
|
|
3135
|
+
adminAuthorityArg: SetAuthorityInstructionDataArgs$1['adminAuthority'];
|
|
3102
3136
|
};
|
|
3103
|
-
declare function getSetAuthorityInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3137
|
+
declare function getSetAuthorityInstruction$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
3104
3138
|
programAddress?: TProgramAddress;
|
|
3105
|
-
}): SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
3106
|
-
type ParsedSetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3139
|
+
}): SetAuthorityInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
3140
|
+
type ParsedSetAuthorityInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3107
3141
|
programAddress: Address<TProgram>;
|
|
3108
3142
|
accounts: {
|
|
3109
3143
|
adminAuthority: TAccountMetas[0];
|
|
3110
3144
|
config: TAccountMetas[1];
|
|
3111
3145
|
};
|
|
3112
|
-
data: SetAuthorityInstructionData;
|
|
3146
|
+
data: SetAuthorityInstructionData$1;
|
|
3113
3147
|
};
|
|
3114
|
-
declare function parseSetAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
|
|
3148
|
+
declare function parseSetAuthorityInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAuthorityInstruction$1<TProgram, TAccountMetas>;
|
|
3115
3149
|
|
|
3116
3150
|
/**
|
|
3117
3151
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3121,13 +3155,13 @@ declare function parseSetAuthorityInstruction<TProgram extends string, TAccountM
|
|
|
3121
3155
|
* @see https://github.com/codama-idl/codama
|
|
3122
3156
|
*/
|
|
3123
3157
|
|
|
3124
|
-
type CosignerArg = {
|
|
3158
|
+
type CosignerArg$1 = {
|
|
3125
3159
|
cosigner: Address;
|
|
3126
3160
|
};
|
|
3127
|
-
type CosignerArgArgs = CosignerArg;
|
|
3128
|
-
declare function getCosignerArgEncoder(): FixedSizeEncoder<CosignerArgArgs>;
|
|
3129
|
-
declare function getCosignerArgDecoder(): FixedSizeDecoder<CosignerArg>;
|
|
3130
|
-
declare function getCosignerArgCodec(): FixedSizeCodec<CosignerArgArgs, CosignerArg>;
|
|
3161
|
+
type CosignerArgArgs$1 = CosignerArg$1;
|
|
3162
|
+
declare function getCosignerArgEncoder$1(): FixedSizeEncoder<CosignerArgArgs$1>;
|
|
3163
|
+
declare function getCosignerArgDecoder$1(): FixedSizeDecoder<CosignerArg$1>;
|
|
3164
|
+
declare function getCosignerArgCodec$1(): FixedSizeCodec<CosignerArgArgs$1, CosignerArg$1>;
|
|
3131
3165
|
|
|
3132
3166
|
/**
|
|
3133
3167
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3137,13 +3171,13 @@ declare function getCosignerArgCodec(): FixedSizeCodec<CosignerArgArgs, Cosigner
|
|
|
3137
3171
|
* @see https://github.com/codama-idl/codama
|
|
3138
3172
|
*/
|
|
3139
3173
|
|
|
3140
|
-
type InitializeConfigArgs$
|
|
3174
|
+
type InitializeConfigArgs$2 = {
|
|
3141
3175
|
cosigners: Array<Address>;
|
|
3142
3176
|
};
|
|
3143
|
-
type InitializeConfigArgsArgs$
|
|
3144
|
-
declare function getInitializeConfigArgsEncoder$
|
|
3145
|
-
declare function getInitializeConfigArgsDecoder$
|
|
3146
|
-
declare function getInitializeConfigArgsCodec$
|
|
3177
|
+
type InitializeConfigArgsArgs$2 = InitializeConfigArgs$2;
|
|
3178
|
+
declare function getInitializeConfigArgsEncoder$2(): Encoder<InitializeConfigArgsArgs$2>;
|
|
3179
|
+
declare function getInitializeConfigArgsDecoder$2(): Decoder<InitializeConfigArgs$2>;
|
|
3180
|
+
declare function getInitializeConfigArgsCodec$2(): Codec<InitializeConfigArgsArgs$2, InitializeConfigArgs$2>;
|
|
3147
3181
|
|
|
3148
3182
|
/**
|
|
3149
3183
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3153,13 +3187,13 @@ declare function getInitializeConfigArgsCodec$1(): Codec<InitializeConfigArgsArg
|
|
|
3153
3187
|
* @see https://github.com/codama-idl/codama
|
|
3154
3188
|
*/
|
|
3155
3189
|
|
|
3156
|
-
type SetAuthorityArgs = {
|
|
3190
|
+
type SetAuthorityArgs$1 = {
|
|
3157
3191
|
adminAuthority: Address;
|
|
3158
3192
|
};
|
|
3159
|
-
type SetAuthorityArgsArgs = SetAuthorityArgs;
|
|
3160
|
-
declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgsArgs>;
|
|
3161
|
-
declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
|
|
3162
|
-
declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
|
|
3193
|
+
type SetAuthorityArgsArgs$1 = SetAuthorityArgs$1;
|
|
3194
|
+
declare function getSetAuthorityArgsEncoder$1(): FixedSizeEncoder<SetAuthorityArgsArgs$1>;
|
|
3195
|
+
declare function getSetAuthorityArgsDecoder$1(): FixedSizeDecoder<SetAuthorityArgs$1>;
|
|
3196
|
+
declare function getSetAuthorityArgsCodec$1(): FixedSizeCodec<SetAuthorityArgsArgs$1, SetAuthorityArgs$1>;
|
|
3163
3197
|
|
|
3164
3198
|
/**
|
|
3165
3199
|
* Default Doppler native cosigner hook program for devnet deployments.
|
|
@@ -3171,7 +3205,7 @@ declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs
|
|
|
3171
3205
|
declare const DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: Address;
|
|
3172
3206
|
declare const COSIGNER_HOOK_PROGRAM_ID: Address;
|
|
3173
3207
|
declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
|
|
3174
|
-
declare const MAX_COSIGNERS = 32;
|
|
3208
|
+
declare const MAX_COSIGNERS$1 = 32;
|
|
3175
3209
|
declare const GATE_EXPIRY_DISABLED = 0;
|
|
3176
3210
|
declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1;
|
|
3177
3211
|
declare const GATE_EXPIRY_SLOT = 2;
|
|
@@ -3219,131 +3253,51 @@ declare function getCosignerHookRemainingAccounts({ namespace, cosigner, }: {
|
|
|
3219
3253
|
|
|
3220
3254
|
declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3221
3255
|
|
|
3222
|
-
declare const index$
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
declare const index$
|
|
3229
|
-
declare const index$
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
declare const index$
|
|
3236
|
-
|
|
3237
|
-
type index$
|
|
3238
|
-
|
|
3239
|
-
type index$
|
|
3240
|
-
type index$
|
|
3241
|
-
type index$
|
|
3242
|
-
type index$
|
|
3243
|
-
type index$
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
declare const index$
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
declare const index$
|
|
3250
|
-
|
|
3251
|
-
type index$
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
declare const index$
|
|
3256
|
-
declare const index$
|
|
3257
|
-
declare const index$
|
|
3258
|
-
declare const index$
|
|
3259
|
-
declare const index$
|
|
3260
|
-
declare const index$
|
|
3261
|
-
declare const index$
|
|
3262
|
-
declare const index$
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
type index$
|
|
3267
|
-
type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
|
|
3268
|
-
declare const index$4_MAX_COSIGNERS: typeof MAX_COSIGNERS;
|
|
3269
|
-
type index$4_ParsedAddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
|
|
3270
|
-
type index$4_ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ParsedCosignerHookInstruction<TProgram>;
|
|
3271
|
-
type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
|
|
3272
|
-
type index$4_ParsedRemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
|
|
3273
|
-
type index$4_ParsedSetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
|
|
3274
|
-
declare const index$4_REMOVE_COSIGNER_DISCRIMINATOR: typeof REMOVE_COSIGNER_DISCRIMINATOR;
|
|
3275
|
-
type index$4_RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
|
|
3276
|
-
type index$4_RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>;
|
|
3277
|
-
type index$4_RemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
|
|
3278
|
-
type index$4_RemoveCosignerInstructionData = RemoveCosignerInstructionData;
|
|
3279
|
-
type index$4_RemoveCosignerInstructionDataArgs = RemoveCosignerInstructionDataArgs;
|
|
3280
|
-
declare const index$4_SEED_COSIGNER_HOOK_CONFIG: typeof SEED_COSIGNER_HOOK_CONFIG;
|
|
3281
|
-
declare const index$4_SET_AUTHORITY_DISCRIMINATOR: typeof SET_AUTHORITY_DISCRIMINATOR;
|
|
3282
|
-
type index$4_SetAuthorityArgs = SetAuthorityArgs;
|
|
3283
|
-
type index$4_SetAuthorityArgsArgs = SetAuthorityArgsArgs;
|
|
3284
|
-
type index$4_SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>;
|
|
3285
|
-
type index$4_SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>;
|
|
3286
|
-
type index$4_SetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetAuthorityInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
|
|
3287
|
-
type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
|
|
3288
|
-
type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
|
|
3289
|
-
declare const index$4_cosignerHookProgram: typeof cosignerHookProgram;
|
|
3290
|
-
declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
|
|
3291
|
-
declare const index$4_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
|
|
3292
|
-
declare const index$4_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
|
|
3293
|
-
declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
|
|
3294
|
-
declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
|
|
3295
|
-
declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
|
|
3296
|
-
declare const index$4_fetchMaybeCosignerConfig: typeof fetchMaybeCosignerConfig;
|
|
3297
|
-
declare const index$4_getAddCosignerDiscriminatorBytes: typeof getAddCosignerDiscriminatorBytes;
|
|
3298
|
-
declare const index$4_getAddCosignerInstruction: typeof getAddCosignerInstruction;
|
|
3299
|
-
declare const index$4_getAddCosignerInstructionAsync: typeof getAddCosignerInstructionAsync;
|
|
3300
|
-
declare const index$4_getAddCosignerInstructionDataCodec: typeof getAddCosignerInstructionDataCodec;
|
|
3301
|
-
declare const index$4_getAddCosignerInstructionDataDecoder: typeof getAddCosignerInstructionDataDecoder;
|
|
3302
|
-
declare const index$4_getAddCosignerInstructionDataEncoder: typeof getAddCosignerInstructionDataEncoder;
|
|
3303
|
-
declare const index$4_getCosignerArgCodec: typeof getCosignerArgCodec;
|
|
3304
|
-
declare const index$4_getCosignerArgDecoder: typeof getCosignerArgDecoder;
|
|
3305
|
-
declare const index$4_getCosignerArgEncoder: typeof getCosignerArgEncoder;
|
|
3306
|
-
declare const index$4_getCosignerConfigCodec: typeof getCosignerConfigCodec;
|
|
3307
|
-
declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
|
|
3308
|
-
declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
|
|
3309
|
-
declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
|
|
3310
|
-
declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
|
|
3311
|
-
declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
|
|
3312
|
-
declare const index$4_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
|
|
3313
|
-
declare const index$4_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
|
|
3314
|
-
declare const index$4_getCosignerHookRemainingAccounts: typeof getCosignerHookRemainingAccounts;
|
|
3315
|
-
declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
|
|
3316
|
-
declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
|
|
3317
|
-
declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
|
|
3318
|
-
declare const index$4_getInitializeConfigInstructionDataCodec: typeof getInitializeConfigInstructionDataCodec;
|
|
3319
|
-
declare const index$4_getInitializeConfigInstructionDataDecoder: typeof getInitializeConfigInstructionDataDecoder;
|
|
3320
|
-
declare const index$4_getInitializeConfigInstructionDataEncoder: typeof getInitializeConfigInstructionDataEncoder;
|
|
3321
|
-
declare const index$4_getRemoveCosignerDiscriminatorBytes: typeof getRemoveCosignerDiscriminatorBytes;
|
|
3322
|
-
declare const index$4_getRemoveCosignerInstruction: typeof getRemoveCosignerInstruction;
|
|
3323
|
-
declare const index$4_getRemoveCosignerInstructionAsync: typeof getRemoveCosignerInstructionAsync;
|
|
3324
|
-
declare const index$4_getRemoveCosignerInstructionDataCodec: typeof getRemoveCosignerInstructionDataCodec;
|
|
3325
|
-
declare const index$4_getRemoveCosignerInstructionDataDecoder: typeof getRemoveCosignerInstructionDataDecoder;
|
|
3326
|
-
declare const index$4_getRemoveCosignerInstructionDataEncoder: typeof getRemoveCosignerInstructionDataEncoder;
|
|
3327
|
-
declare const index$4_getSetAuthorityArgsCodec: typeof getSetAuthorityArgsCodec;
|
|
3328
|
-
declare const index$4_getSetAuthorityArgsDecoder: typeof getSetAuthorityArgsDecoder;
|
|
3329
|
-
declare const index$4_getSetAuthorityArgsEncoder: typeof getSetAuthorityArgsEncoder;
|
|
3330
|
-
declare const index$4_getSetAuthorityDiscriminatorBytes: typeof getSetAuthorityDiscriminatorBytes;
|
|
3331
|
-
declare const index$4_getSetAuthorityInstruction: typeof getSetAuthorityInstruction;
|
|
3332
|
-
declare const index$4_getSetAuthorityInstructionAsync: typeof getSetAuthorityInstructionAsync;
|
|
3333
|
-
declare const index$4_getSetAuthorityInstructionDataCodec: typeof getSetAuthorityInstructionDataCodec;
|
|
3334
|
-
declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthorityInstructionDataDecoder;
|
|
3335
|
-
declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
|
|
3336
|
-
declare const index$4_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
|
|
3337
|
-
declare const index$4_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
|
|
3338
|
-
declare const index$4_isCosignerGateEnforced: typeof isCosignerGateEnforced;
|
|
3339
|
-
declare const index$4_isCosignerHookError: typeof isCosignerHookError;
|
|
3340
|
-
declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
|
|
3341
|
-
declare const index$4_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
|
|
3342
|
-
declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction;
|
|
3343
|
-
declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
|
|
3344
|
-
declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
|
|
3345
|
-
declare namespace index$4 {
|
|
3346
|
-
export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, type index$4_CosignerHookRemainingAccounts as CosignerHookRemainingAccounts, index$4_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID as DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, index$4_getCosignerHookRemainingAccounts as getCosignerHookRemainingAccounts, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
|
|
3256
|
+
declare const index$5_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
|
|
3257
|
+
declare const index$5_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL: typeof COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL;
|
|
3258
|
+
declare const index$5_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND;
|
|
3259
|
+
declare const index$5_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY: typeof COSIGNER_HOOK_ERROR__INVALID_AUTHORITY;
|
|
3260
|
+
declare const index$5_COSIGNER_HOOK_ERROR__INVALID_CONFIG: typeof COSIGNER_HOOK_ERROR__INVALID_CONFIG;
|
|
3261
|
+
declare const index$5_COSIGNER_HOOK_ERROR__INVALID_COSIGNER: typeof COSIGNER_HOOK_ERROR__INVALID_COSIGNER;
|
|
3262
|
+
declare const index$5_COSIGNER_HOOK_PROGRAM_ADDRESS: typeof COSIGNER_HOOK_PROGRAM_ADDRESS;
|
|
3263
|
+
declare const index$5_COSIGNER_HOOK_PROGRAM_ID: typeof COSIGNER_HOOK_PROGRAM_ID;
|
|
3264
|
+
type index$5_CosignerGateClock = CosignerGateClock;
|
|
3265
|
+
type index$5_CosignerGateExpiry = CosignerGateExpiry;
|
|
3266
|
+
type index$5_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
|
|
3267
|
+
type index$5_CosignerGateStatus = CosignerGateStatus;
|
|
3268
|
+
type index$5_CosignerHookAccount = CosignerHookAccount;
|
|
3269
|
+
declare const index$5_CosignerHookAccount: typeof CosignerHookAccount;
|
|
3270
|
+
type index$5_CosignerHookError = CosignerHookError;
|
|
3271
|
+
type index$5_CosignerHookInstruction = CosignerHookInstruction;
|
|
3272
|
+
declare const index$5_CosignerHookInstruction: typeof CosignerHookInstruction;
|
|
3273
|
+
type index$5_CosignerHookPlugin = CosignerHookPlugin;
|
|
3274
|
+
type index$5_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
|
|
3275
|
+
type index$5_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
|
|
3276
|
+
type index$5_CosignerHookPluginRequirements = CosignerHookPluginRequirements;
|
|
3277
|
+
type index$5_CosignerHookRemainingAccounts = CosignerHookRemainingAccounts;
|
|
3278
|
+
declare const index$5_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: typeof DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID;
|
|
3279
|
+
declare const index$5_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
|
|
3280
|
+
declare const index$5_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
|
|
3281
|
+
declare const index$5_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
|
|
3282
|
+
declare const index$5_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION;
|
|
3283
|
+
declare const index$5_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT;
|
|
3284
|
+
declare const index$5_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP;
|
|
3285
|
+
type index$5_ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ParsedCosignerHookInstruction<TProgram>;
|
|
3286
|
+
declare const index$5_SEED_COSIGNER_HOOK_CONFIG: typeof SEED_COSIGNER_HOOK_CONFIG;
|
|
3287
|
+
declare const index$5_cosignerHookProgram: typeof cosignerHookProgram;
|
|
3288
|
+
declare const index$5_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
|
|
3289
|
+
declare const index$5_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
|
|
3290
|
+
declare const index$5_getCosignerGateStatus: typeof getCosignerGateStatus;
|
|
3291
|
+
declare const index$5_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
|
|
3292
|
+
declare const index$5_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
|
|
3293
|
+
declare const index$5_getCosignerHookRemainingAccounts: typeof getCosignerHookRemainingAccounts;
|
|
3294
|
+
declare const index$5_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
|
|
3295
|
+
declare const index$5_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
|
|
3296
|
+
declare const index$5_isCosignerGateEnforced: typeof isCosignerGateEnforced;
|
|
3297
|
+
declare const index$5_isCosignerHookError: typeof isCosignerHookError;
|
|
3298
|
+
declare const index$5_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
|
|
3299
|
+
declare namespace index$5 {
|
|
3300
|
+
export { ADD_COSIGNER_DISCRIMINATOR$1 as ADD_COSIGNER_DISCRIMINATOR, type AddCosignerAsyncInput$1 as AddCosignerAsyncInput, type AddCosignerInput$1 as AddCosignerInput, type AddCosignerInstruction$1 as AddCosignerInstruction, type AddCosignerInstructionData$1 as AddCosignerInstructionData, type AddCosignerInstructionDataArgs$1 as AddCosignerInstructionDataArgs, COSIGNER_CONFIG_DISCRIMINATOR$1 as COSIGNER_CONFIG_DISCRIMINATOR, index$5_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$5_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$5_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$5_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$5_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$5_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$5_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$5_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type CosignerArg$1 as CosignerArg, type CosignerArgArgs$1 as CosignerArgArgs, type CosignerConfig$1 as CosignerConfig, type CosignerConfigArgs$1 as CosignerConfigArgs, type index$5_CosignerGateClock as CosignerGateClock, type index$5_CosignerGateExpiry as CosignerGateExpiry, type index$5_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$5_CosignerGateStatus as CosignerGateStatus, index$5_CosignerHookAccount as CosignerHookAccount, type index$5_CosignerHookError as CosignerHookError, index$5_CosignerHookInstruction as CosignerHookInstruction, type index$5_CosignerHookPlugin as CosignerHookPlugin, type index$5_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$5_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$5_CosignerHookPluginRequirements as CosignerHookPluginRequirements, type index$5_CosignerHookRemainingAccounts as CosignerHookRemainingAccounts, index$5_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID as DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID, index$5_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$5_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$5_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$5_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$5_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$5_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigArgsArgs$2 as InitializeConfigArgsArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, MAX_COSIGNERS$1 as MAX_COSIGNERS, type ParsedAddCosignerInstruction$1 as ParsedAddCosignerInstruction, type index$5_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedRemoveCosignerInstruction$1 as ParsedRemoveCosignerInstruction, type ParsedSetAuthorityInstruction$1 as ParsedSetAuthorityInstruction, REMOVE_COSIGNER_DISCRIMINATOR$1 as REMOVE_COSIGNER_DISCRIMINATOR, type RemoveCosignerAsyncInput$1 as RemoveCosignerAsyncInput, type RemoveCosignerInput$1 as RemoveCosignerInput, type RemoveCosignerInstruction$1 as RemoveCosignerInstruction, type RemoveCosignerInstructionData$1 as RemoveCosignerInstructionData, type RemoveCosignerInstructionDataArgs$1 as RemoveCosignerInstructionDataArgs, index$5_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, SET_AUTHORITY_DISCRIMINATOR$1 as SET_AUTHORITY_DISCRIMINATOR, type SetAuthorityArgs$1 as SetAuthorityArgs, type SetAuthorityArgsArgs$1 as SetAuthorityArgsArgs, type SetAuthorityAsyncInput$1 as SetAuthorityAsyncInput, type SetAuthorityInput$1 as SetAuthorityInput, type SetAuthorityInstruction$1 as SetAuthorityInstruction, type SetAuthorityInstructionData$1 as SetAuthorityInstructionData, type SetAuthorityInstructionDataArgs$1 as SetAuthorityInstructionDataArgs, index$5_cosignerHookProgram as cosignerHookProgram, decodeCosignerConfig$1 as decodeCosignerConfig, index$5_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$5_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, fetchAllCosignerConfig$1 as fetchAllCosignerConfig, fetchAllMaybeCosignerConfig$1 as fetchAllMaybeCosignerConfig, fetchCosignerConfig$1 as fetchCosignerConfig, fetchMaybeCosignerConfig$1 as fetchMaybeCosignerConfig, getAddCosignerDiscriminatorBytes$1 as getAddCosignerDiscriminatorBytes, getAddCosignerInstruction$1 as getAddCosignerInstruction, getAddCosignerInstructionAsync$1 as getAddCosignerInstructionAsync, getAddCosignerInstructionDataCodec$1 as getAddCosignerInstructionDataCodec, getAddCosignerInstructionDataDecoder$1 as getAddCosignerInstructionDataDecoder, getAddCosignerInstructionDataEncoder$1 as getAddCosignerInstructionDataEncoder, getCosignerArgCodec$1 as getCosignerArgCodec, getCosignerArgDecoder$1 as getCosignerArgDecoder, getCosignerArgEncoder$1 as getCosignerArgEncoder, getCosignerConfigCodec$1 as getCosignerConfigCodec, getCosignerConfigDecoder$1 as getCosignerConfigDecoder, getCosignerConfigDiscriminatorBytes$1 as getCosignerConfigDiscriminatorBytes, getCosignerConfigEncoder$1 as getCosignerConfigEncoder, getCosignerConfigSize$1 as getCosignerConfigSize, index$5_getCosignerGateStatus as getCosignerGateStatus, index$5_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$5_getCosignerHookErrorMessage as getCosignerHookErrorMessage, index$5_getCosignerHookRemainingAccounts as getCosignerHookRemainingAccounts, getInitializeConfigArgsCodec$2 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$2 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$2 as getInitializeConfigArgsEncoder, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getRemoveCosignerDiscriminatorBytes$1 as getRemoveCosignerDiscriminatorBytes, getRemoveCosignerInstruction$1 as getRemoveCosignerInstruction, getRemoveCosignerInstructionAsync$1 as getRemoveCosignerInstructionAsync, getRemoveCosignerInstructionDataCodec$1 as getRemoveCosignerInstructionDataCodec, getRemoveCosignerInstructionDataDecoder$1 as getRemoveCosignerInstructionDataDecoder, getRemoveCosignerInstructionDataEncoder$1 as getRemoveCosignerInstructionDataEncoder, getSetAuthorityArgsCodec$1 as getSetAuthorityArgsCodec, getSetAuthorityArgsDecoder$1 as getSetAuthorityArgsDecoder, getSetAuthorityArgsEncoder$1 as getSetAuthorityArgsEncoder, getSetAuthorityDiscriminatorBytes$1 as getSetAuthorityDiscriminatorBytes, getSetAuthorityInstruction$1 as getSetAuthorityInstruction, getSetAuthorityInstructionAsync$1 as getSetAuthorityInstructionAsync, getSetAuthorityInstructionDataCodec$1 as getSetAuthorityInstructionDataCodec, getSetAuthorityInstructionDataDecoder$1 as getSetAuthorityInstructionDataDecoder, getSetAuthorityInstructionDataEncoder$1 as getSetAuthorityInstructionDataEncoder, index$5_identifyCosignerHookAccount as identifyCosignerHookAccount, index$5_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$5_isCosignerGateEnforced as isCosignerGateEnforced, index$5_isCosignerHookError as isCosignerHookError, parseAddCosignerInstruction$1 as parseAddCosignerInstruction, index$5_parseCosignerHookInstruction as parseCosignerHookInstruction, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseRemoveCosignerInstruction$1 as parseRemoveCosignerInstruction, parseSetAuthorityInstruction$1 as parseSetAuthorityInstruction };
|
|
3347
3301
|
}
|
|
3348
3302
|
|
|
3349
3303
|
/**
|
|
@@ -3504,17 +3458,17 @@ type FeeClaimRoleArgs = FeeClaimRole;
|
|
|
3504
3458
|
* @see https://github.com/codama-idl/codama
|
|
3505
3459
|
*/
|
|
3506
3460
|
|
|
3507
|
-
type InitializeConfigArgs = {
|
|
3461
|
+
type InitializeConfigArgs$1 = {
|
|
3508
3462
|
migratorAllowlist: Array<Address>;
|
|
3509
3463
|
hookAllowlist: Array<Address>;
|
|
3510
3464
|
protocolFeeBps: number;
|
|
3511
3465
|
minSwapFeeBps: number;
|
|
3512
3466
|
maxSwapFeeBps: number;
|
|
3513
3467
|
};
|
|
3514
|
-
type InitializeConfigArgsArgs = InitializeConfigArgs;
|
|
3515
|
-
declare function getInitializeConfigArgsEncoder(): Encoder<InitializeConfigArgsArgs>;
|
|
3516
|
-
declare function getInitializeConfigArgsDecoder(): Decoder<InitializeConfigArgs>;
|
|
3517
|
-
declare function getInitializeConfigArgsCodec(): Codec<InitializeConfigArgsArgs, InitializeConfigArgs>;
|
|
3468
|
+
type InitializeConfigArgsArgs$1 = InitializeConfigArgs$1;
|
|
3469
|
+
declare function getInitializeConfigArgsEncoder$1(): Encoder<InitializeConfigArgsArgs$1>;
|
|
3470
|
+
declare function getInitializeConfigArgsDecoder$1(): Decoder<InitializeConfigArgs$1>;
|
|
3471
|
+
declare function getInitializeConfigArgsCodec$1(): Codec<InitializeConfigArgsArgs$1, InitializeConfigArgs$1>;
|
|
3518
3472
|
|
|
3519
3473
|
/**
|
|
3520
3474
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3971,23 +3925,23 @@ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address):
|
|
|
3971
3925
|
*/
|
|
3972
3926
|
declare function launchIdFromU64(launchId: bigint): Uint8Array;
|
|
3973
3927
|
|
|
3974
|
-
type AddressOrSigner$6 =
|
|
3928
|
+
type AddressOrSigner$6 = AddressOrTransactionSigner;
|
|
3975
3929
|
interface InitializeConfigAccounts {
|
|
3976
3930
|
admin: AddressOrSigner$6;
|
|
3977
3931
|
config: Address;
|
|
3978
3932
|
programData: Address;
|
|
3979
3933
|
systemProgram?: Address;
|
|
3980
3934
|
}
|
|
3981
|
-
declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
|
|
3935
|
+
declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs$1, programId?: Address): Instruction;
|
|
3982
3936
|
|
|
3983
|
-
type AddressOrSigner$5 =
|
|
3937
|
+
type AddressOrSigner$5 = AddressOrTransactionSigner;
|
|
3984
3938
|
interface SetMigratorAllowlistAccounts {
|
|
3985
3939
|
admin: AddressOrSigner$5;
|
|
3986
3940
|
config: Address;
|
|
3987
3941
|
}
|
|
3988
3942
|
declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
|
|
3989
3943
|
|
|
3990
|
-
type AddressOrSigner$4 =
|
|
3944
|
+
type AddressOrSigner$4 = AddressOrTransactionSigner;
|
|
3991
3945
|
interface SetHookAllowlistAccounts {
|
|
3992
3946
|
admin: AddressOrSigner$4;
|
|
3993
3947
|
config: Address;
|
|
@@ -4010,7 +3964,7 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
|
|
|
4010
3964
|
hookCreateRemainingAccountsLen?: number;
|
|
4011
3965
|
hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
|
|
4012
3966
|
};
|
|
4013
|
-
type AddressOrSigner$3 =
|
|
3967
|
+
type AddressOrSigner$3 = AddressOrTransactionSigner;
|
|
4014
3968
|
type ReadonlyRemainingAccount = AddressOrSigner$3;
|
|
4015
3969
|
/**
|
|
4016
3970
|
* Derive the Metaplex token metadata PDA for a given mint.
|
|
@@ -4051,8 +4005,6 @@ interface InitializeLaunchAccounts {
|
|
|
4051
4005
|
}
|
|
4052
4006
|
declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise<Instruction>;
|
|
4053
4007
|
|
|
4054
|
-
type AddressOrSigner$2 = Address | TransactionSigner;
|
|
4055
|
-
type RemainingAccount$2 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4056
4008
|
interface CurveSwapExactInAccounts {
|
|
4057
4009
|
launch: Address;
|
|
4058
4010
|
launchAuthority: Address;
|
|
@@ -4062,13 +4014,13 @@ interface CurveSwapExactInAccounts {
|
|
|
4062
4014
|
userQuoteAccount: Address;
|
|
4063
4015
|
baseMint: Address;
|
|
4064
4016
|
quoteMint: Address;
|
|
4065
|
-
user:
|
|
4017
|
+
user: AddressOrTransactionSigner;
|
|
4066
4018
|
/** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */
|
|
4067
4019
|
hookProgram?: Address;
|
|
4068
4020
|
launchFeeState: Address;
|
|
4069
4021
|
baseTokenProgram?: Address;
|
|
4070
4022
|
quoteTokenProgram?: Address;
|
|
4071
|
-
remainingAccounts?: RemainingAccount
|
|
4023
|
+
remainingAccounts?: RemainingAccount[];
|
|
4072
4024
|
}
|
|
4073
4025
|
declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
|
|
4074
4026
|
amountIn: bigint;
|
|
@@ -4076,7 +4028,7 @@ declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAcc
|
|
|
4076
4028
|
tradeDirection: number;
|
|
4077
4029
|
}, programId?: Address): Instruction;
|
|
4078
4030
|
|
|
4079
|
-
type AddressOrSigner$
|
|
4031
|
+
type AddressOrSigner$2 = AddressOrTransactionSigner;
|
|
4080
4032
|
interface MigrateLaunchAccounts {
|
|
4081
4033
|
config: Address;
|
|
4082
4034
|
launch: Address;
|
|
@@ -4087,7 +4039,7 @@ interface MigrateLaunchAccounts {
|
|
|
4087
4039
|
quoteVault: Address;
|
|
4088
4040
|
launchFeeState: Address;
|
|
4089
4041
|
migratorProgram: Address;
|
|
4090
|
-
payer: AddressOrSigner$
|
|
4042
|
+
payer: AddressOrSigner$2;
|
|
4091
4043
|
baseTokenProgram?: Address;
|
|
4092
4044
|
quoteTokenProgram?: Address;
|
|
4093
4045
|
systemProgram?: Address;
|
|
@@ -4095,7 +4047,6 @@ interface MigrateLaunchAccounts {
|
|
|
4095
4047
|
}
|
|
4096
4048
|
declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction;
|
|
4097
4049
|
|
|
4098
|
-
type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4099
4050
|
interface PreviewSwapExactInResult {
|
|
4100
4051
|
amountOut: bigint;
|
|
4101
4052
|
feePaid: bigint;
|
|
@@ -4106,7 +4057,7 @@ interface PreviewSwapExactInAccounts {
|
|
|
4106
4057
|
baseVault: Address;
|
|
4107
4058
|
quoteVault: Address;
|
|
4108
4059
|
hookProgram?: Address;
|
|
4109
|
-
remainingAccounts?: RemainingAccount
|
|
4060
|
+
remainingAccounts?: RemainingAccount[];
|
|
4110
4061
|
}
|
|
4111
4062
|
declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
|
|
4112
4063
|
amountIn: bigint;
|
|
@@ -4128,20 +4079,6 @@ interface PreviewMigrationAccounts {
|
|
|
4128
4079
|
declare function createPreviewMigrationInstruction(accounts: PreviewMigrationAccounts, programId?: Address): Instruction;
|
|
4129
4080
|
declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigrationResult;
|
|
4130
4081
|
|
|
4131
|
-
interface SolanaCpmmProgramAddresses {
|
|
4132
|
-
cpmmProgram: Address;
|
|
4133
|
-
initializerProgram: Address;
|
|
4134
|
-
cpmmMigratorProgram: Address;
|
|
4135
|
-
cpmmHookProgram: Address;
|
|
4136
|
-
cosignerHookProgram: Address;
|
|
4137
|
-
}
|
|
4138
|
-
interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
|
|
4139
|
-
cpmmConfig: Address;
|
|
4140
|
-
initializerConfig: Address;
|
|
4141
|
-
}
|
|
4142
|
-
declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
|
|
4143
|
-
declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
|
|
4144
|
-
|
|
4145
4082
|
/**
|
|
4146
4083
|
* This code was AUTOGENERATED using the Codama library.
|
|
4147
4084
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -4150,25 +4087,633 @@ declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresse
|
|
|
4150
4087
|
* @see https://github.com/codama-idl/codama
|
|
4151
4088
|
*/
|
|
4152
4089
|
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4090
|
+
declare const COSIGNER_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4091
|
+
declare function getCosignerConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
4092
|
+
type CosignerConfig = {
|
|
4093
|
+
discriminator: ReadonlyUint8Array;
|
|
4094
|
+
adminAuthority: Address;
|
|
4095
|
+
cosignerCount: number;
|
|
4096
|
+
bump: number;
|
|
4097
|
+
version: number;
|
|
4098
|
+
reserved: ReadonlyUint8Array;
|
|
4099
|
+
cosigners: Array<Address>;
|
|
4162
4100
|
};
|
|
4163
|
-
type
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4101
|
+
type CosignerConfigArgs = {
|
|
4102
|
+
adminAuthority: Address;
|
|
4103
|
+
cosignerCount: number;
|
|
4104
|
+
bump: number;
|
|
4105
|
+
version: number;
|
|
4106
|
+
reserved: ReadonlyUint8Array;
|
|
4107
|
+
cosigners: Array<Address>;
|
|
4168
4108
|
};
|
|
4169
|
-
|
|
4170
|
-
declare function
|
|
4171
|
-
|
|
4109
|
+
/** Gets the encoder for {@link CosignerConfigArgs} account data. */
|
|
4110
|
+
declare function getCosignerConfigEncoder(): FixedSizeEncoder<CosignerConfigArgs>;
|
|
4111
|
+
/** Gets the decoder for {@link CosignerConfig} account data. */
|
|
4112
|
+
declare function getCosignerConfigDecoder(): FixedSizeDecoder<CosignerConfig>;
|
|
4113
|
+
/** Gets the codec for {@link CosignerConfig} account data. */
|
|
4114
|
+
declare function getCosignerConfigCodec(): FixedSizeCodec<CosignerConfigArgs, CosignerConfig>;
|
|
4115
|
+
declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CosignerConfig, TAddress>;
|
|
4116
|
+
declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CosignerConfig, TAddress>;
|
|
4117
|
+
declare function fetchCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CosignerConfig, TAddress>>;
|
|
4118
|
+
declare function fetchMaybeCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CosignerConfig, TAddress>>;
|
|
4119
|
+
declare function fetchAllCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CosignerConfig>[]>;
|
|
4120
|
+
declare function fetchAllMaybeCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CosignerConfig>[]>;
|
|
4121
|
+
declare function getCosignerConfigSize(): number;
|
|
4122
|
+
|
|
4123
|
+
/**
|
|
4124
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4125
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4126
|
+
* to add features, then rerun Codama to update it.
|
|
4127
|
+
*
|
|
4128
|
+
* @see https://github.com/codama-idl/codama
|
|
4129
|
+
*/
|
|
4130
|
+
|
|
4131
|
+
/** InvalidInstructionData: Invalid instruction data */
|
|
4132
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA = 6000;
|
|
4133
|
+
/** InvalidScheduleData: Invalid schedule payload */
|
|
4134
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA = 6001;
|
|
4135
|
+
/** InvalidFee: Invalid fee */
|
|
4136
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE = 6002;
|
|
4137
|
+
/** InvalidDuration: Invalid fee duration */
|
|
4138
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION = 6003;
|
|
4139
|
+
/** ArithmeticOverflow: Arithmetic overflow */
|
|
4140
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW = 6004;
|
|
4141
|
+
/** InvalidAuthority: Invalid hook authority */
|
|
4142
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY = 6005;
|
|
4143
|
+
/** InvalidConfig: Invalid cosigner hook config */
|
|
4144
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG = 6006;
|
|
4145
|
+
/** InvalidCosigner: Invalid cosigner key */
|
|
4146
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER = 6007;
|
|
4147
|
+
/** CosignerAlreadyExists: Cosigner already exists */
|
|
4148
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS = 6008;
|
|
4149
|
+
/** CosignerNotFound: Cosigner not found */
|
|
4150
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND = 6009;
|
|
4151
|
+
/** CosignerListFull: Cosigner list is full */
|
|
4152
|
+
declare const DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL = 6010;
|
|
4153
|
+
type DynamicFeeHookError = typeof DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW | typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS | typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL | typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA;
|
|
4154
|
+
declare function getDynamicFeeHookErrorMessage(code: DynamicFeeHookError): string;
|
|
4155
|
+
declare function isDynamicFeeHookError<TProgramErrorCode extends DynamicFeeHookError>(error: unknown, transactionMessage: {
|
|
4156
|
+
instructions: Record<number, {
|
|
4157
|
+
programAddress: Address;
|
|
4158
|
+
}>;
|
|
4159
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
4160
|
+
context: Readonly<{
|
|
4161
|
+
code: TProgramErrorCode;
|
|
4162
|
+
}>;
|
|
4163
|
+
}>;
|
|
4164
|
+
|
|
4165
|
+
/**
|
|
4166
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4167
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4168
|
+
* to add features, then rerun Codama to update it.
|
|
4169
|
+
*
|
|
4170
|
+
* @see https://github.com/codama-idl/codama
|
|
4171
|
+
*/
|
|
4172
|
+
|
|
4173
|
+
declare const DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS: Address<"HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i">;
|
|
4174
|
+
declare enum DynamicFeeHookAccount {
|
|
4175
|
+
CosignerConfig = 0
|
|
4176
|
+
}
|
|
4177
|
+
declare function identifyDynamicFeeHookAccount(account: {
|
|
4178
|
+
data: ReadonlyUint8Array;
|
|
4179
|
+
} | ReadonlyUint8Array): DynamicFeeHookAccount;
|
|
4180
|
+
declare enum DynamicFeeHookInstruction {
|
|
4181
|
+
AddCosigner = 0,
|
|
4182
|
+
InitializeConfig = 1,
|
|
4183
|
+
RemoveCosigner = 2,
|
|
4184
|
+
SetAuthority = 3
|
|
4185
|
+
}
|
|
4186
|
+
declare function identifyDynamicFeeHookInstruction(instruction: {
|
|
4187
|
+
data: ReadonlyUint8Array;
|
|
4188
|
+
} | ReadonlyUint8Array): DynamicFeeHookInstruction;
|
|
4189
|
+
type ParsedDynamicFeeHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ({
|
|
4190
|
+
instructionType: DynamicFeeHookInstruction.AddCosigner;
|
|
4191
|
+
} & ParsedAddCosignerInstruction<TProgram>) | ({
|
|
4192
|
+
instructionType: DynamicFeeHookInstruction.InitializeConfig;
|
|
4193
|
+
} & ParsedInitializeConfigInstruction<TProgram>) | ({
|
|
4194
|
+
instructionType: DynamicFeeHookInstruction.RemoveCosigner;
|
|
4195
|
+
} & ParsedRemoveCosignerInstruction<TProgram>) | ({
|
|
4196
|
+
instructionType: DynamicFeeHookInstruction.SetAuthority;
|
|
4197
|
+
} & ParsedSetAuthorityInstruction<TProgram>);
|
|
4198
|
+
declare function parseDynamicFeeHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedDynamicFeeHookInstruction<TProgram>;
|
|
4199
|
+
type DynamicFeeHookPlugin = {
|
|
4200
|
+
accounts: DynamicFeeHookPluginAccounts;
|
|
4201
|
+
instructions: DynamicFeeHookPluginInstructions;
|
|
4202
|
+
};
|
|
4203
|
+
type DynamicFeeHookPluginAccounts = {
|
|
4204
|
+
cosignerConfig: ReturnType<typeof getCosignerConfigCodec> & SelfFetchFunctions<CosignerConfigArgs, CosignerConfig>;
|
|
4205
|
+
};
|
|
4206
|
+
type DynamicFeeHookPluginInstructions = {
|
|
4207
|
+
addCosigner: (input: AddCosignerAsyncInput) => ReturnType<typeof getAddCosignerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
4208
|
+
initializeConfig: (input: MakeOptional$1<InitializeConfigAsyncInput, 'payer'>) => ReturnType<typeof getInitializeConfigInstructionAsync> & SelfPlanAndSendFunctions;
|
|
4209
|
+
removeCosigner: (input: RemoveCosignerAsyncInput) => ReturnType<typeof getRemoveCosignerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
4210
|
+
setAuthority: (input: SetAuthorityAsyncInput) => ReturnType<typeof getSetAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
|
|
4211
|
+
};
|
|
4212
|
+
type DynamicFeeHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
4213
|
+
declare function dynamicFeeHookProgram(): <T extends DynamicFeeHookPluginRequirements>(client: T) => T & {
|
|
4214
|
+
dynamicFeeHook: DynamicFeeHookPlugin;
|
|
4215
|
+
};
|
|
4216
|
+
type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
4217
|
+
|
|
4218
|
+
/**
|
|
4219
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4220
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4221
|
+
* to add features, then rerun Codama to update it.
|
|
4222
|
+
*
|
|
4223
|
+
* @see https://github.com/codama-idl/codama
|
|
4224
|
+
*/
|
|
4225
|
+
|
|
4226
|
+
declare const ADD_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4227
|
+
declare function getAddCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
4228
|
+
type AddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4229
|
+
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
4230
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
4231
|
+
...TRemainingAccounts
|
|
4232
|
+
]>;
|
|
4233
|
+
type AddCosignerInstructionData = {
|
|
4234
|
+
discriminator: ReadonlyUint8Array;
|
|
4235
|
+
cosigner: Address;
|
|
4236
|
+
};
|
|
4237
|
+
type AddCosignerInstructionDataArgs = {
|
|
4238
|
+
cosigner: Address;
|
|
4239
|
+
};
|
|
4240
|
+
declare function getAddCosignerInstructionDataEncoder(): FixedSizeEncoder<AddCosignerInstructionDataArgs>;
|
|
4241
|
+
declare function getAddCosignerInstructionDataDecoder(): FixedSizeDecoder<AddCosignerInstructionData>;
|
|
4242
|
+
declare function getAddCosignerInstructionDataCodec(): FixedSizeCodec<AddCosignerInstructionDataArgs, AddCosignerInstructionData>;
|
|
4243
|
+
type AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
4244
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4245
|
+
config?: Address<TAccountConfig>;
|
|
4246
|
+
cosigner: AddCosignerInstructionDataArgs['cosigner'];
|
|
4247
|
+
};
|
|
4248
|
+
declare function getAddCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
4249
|
+
programAddress?: TProgramAddress;
|
|
4250
|
+
}): Promise<AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
4251
|
+
type AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
4252
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4253
|
+
config: Address<TAccountConfig>;
|
|
4254
|
+
cosigner: AddCosignerInstructionDataArgs['cosigner'];
|
|
4255
|
+
};
|
|
4256
|
+
declare function getAddCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
4257
|
+
programAddress?: TProgramAddress;
|
|
4258
|
+
}): AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
4259
|
+
type ParsedAddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
4260
|
+
programAddress: Address<TProgram>;
|
|
4261
|
+
accounts: {
|
|
4262
|
+
adminAuthority: TAccountMetas[0];
|
|
4263
|
+
config: TAccountMetas[1];
|
|
4264
|
+
};
|
|
4265
|
+
data: AddCosignerInstructionData;
|
|
4266
|
+
};
|
|
4267
|
+
declare function parseAddCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
|
|
4268
|
+
|
|
4269
|
+
/**
|
|
4270
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4271
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4272
|
+
* to add features, then rerun Codama to update it.
|
|
4273
|
+
*
|
|
4274
|
+
* @see https://github.com/codama-idl/codama
|
|
4275
|
+
*/
|
|
4276
|
+
|
|
4277
|
+
declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4278
|
+
declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
4279
|
+
type InitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4280
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
4281
|
+
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
4282
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
4283
|
+
TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
|
|
4284
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4285
|
+
...TRemainingAccounts
|
|
4286
|
+
]>;
|
|
4287
|
+
type InitializeConfigInstructionData = {
|
|
4288
|
+
discriminator: ReadonlyUint8Array;
|
|
4289
|
+
cosigners: Array<Address>;
|
|
4290
|
+
};
|
|
4291
|
+
type InitializeConfigInstructionDataArgs = {
|
|
4292
|
+
cosigners: Array<Address>;
|
|
4293
|
+
};
|
|
4294
|
+
declare function getInitializeConfigInstructionDataEncoder(): Encoder<InitializeConfigInstructionDataArgs>;
|
|
4295
|
+
declare function getInitializeConfigInstructionDataDecoder(): Decoder<InitializeConfigInstructionData>;
|
|
4296
|
+
declare function getInitializeConfigInstructionDataCodec(): Codec<InitializeConfigInstructionDataArgs, InitializeConfigInstructionData>;
|
|
4297
|
+
type InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4298
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
4299
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4300
|
+
config?: Address<TAccountConfig>;
|
|
4301
|
+
programData: Address<TAccountProgramData>;
|
|
4302
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
4303
|
+
cosigners: InitializeConfigInstructionDataArgs['cosigners'];
|
|
4304
|
+
};
|
|
4305
|
+
declare function getInitializeConfigInstructionAsync<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
4306
|
+
programAddress?: TProgramAddress;
|
|
4307
|
+
}): Promise<InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
|
|
4308
|
+
type InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4309
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
4310
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4311
|
+
config: Address<TAccountConfig>;
|
|
4312
|
+
programData: Address<TAccountProgramData>;
|
|
4313
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
4314
|
+
cosigners: InitializeConfigInstructionDataArgs['cosigners'];
|
|
4315
|
+
};
|
|
4316
|
+
declare function getInitializeConfigInstruction<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
4317
|
+
programAddress?: TProgramAddress;
|
|
4318
|
+
}): InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
|
|
4319
|
+
type ParsedInitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
4320
|
+
programAddress: Address<TProgram>;
|
|
4321
|
+
accounts: {
|
|
4322
|
+
payer: TAccountMetas[0];
|
|
4323
|
+
adminAuthority: TAccountMetas[1];
|
|
4324
|
+
config: TAccountMetas[2];
|
|
4325
|
+
programData: TAccountMetas[3];
|
|
4326
|
+
systemProgram: TAccountMetas[4];
|
|
4327
|
+
};
|
|
4328
|
+
data: InitializeConfigInstructionData;
|
|
4329
|
+
};
|
|
4330
|
+
declare function parseInitializeConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
|
|
4331
|
+
|
|
4332
|
+
/**
|
|
4333
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4334
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4335
|
+
* to add features, then rerun Codama to update it.
|
|
4336
|
+
*
|
|
4337
|
+
* @see https://github.com/codama-idl/codama
|
|
4338
|
+
*/
|
|
4339
|
+
|
|
4340
|
+
declare const REMOVE_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4341
|
+
declare function getRemoveCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
4342
|
+
type RemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4343
|
+
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
4344
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
4345
|
+
...TRemainingAccounts
|
|
4346
|
+
]>;
|
|
4347
|
+
type RemoveCosignerInstructionData = {
|
|
4348
|
+
discriminator: ReadonlyUint8Array;
|
|
4349
|
+
cosigner: Address;
|
|
4350
|
+
};
|
|
4351
|
+
type RemoveCosignerInstructionDataArgs = {
|
|
4352
|
+
cosigner: Address;
|
|
4353
|
+
};
|
|
4354
|
+
declare function getRemoveCosignerInstructionDataEncoder(): FixedSizeEncoder<RemoveCosignerInstructionDataArgs>;
|
|
4355
|
+
declare function getRemoveCosignerInstructionDataDecoder(): FixedSizeDecoder<RemoveCosignerInstructionData>;
|
|
4356
|
+
declare function getRemoveCosignerInstructionDataCodec(): FixedSizeCodec<RemoveCosignerInstructionDataArgs, RemoveCosignerInstructionData>;
|
|
4357
|
+
type RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
4358
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4359
|
+
config?: Address<TAccountConfig>;
|
|
4360
|
+
cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
|
|
4361
|
+
};
|
|
4362
|
+
declare function getRemoveCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
4363
|
+
programAddress?: TProgramAddress;
|
|
4364
|
+
}): Promise<RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
4365
|
+
type RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
4366
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4367
|
+
config: Address<TAccountConfig>;
|
|
4368
|
+
cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
|
|
4369
|
+
};
|
|
4370
|
+
declare function getRemoveCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
4371
|
+
programAddress?: TProgramAddress;
|
|
4372
|
+
}): RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
4373
|
+
type ParsedRemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
4374
|
+
programAddress: Address<TProgram>;
|
|
4375
|
+
accounts: {
|
|
4376
|
+
adminAuthority: TAccountMetas[0];
|
|
4377
|
+
config: TAccountMetas[1];
|
|
4378
|
+
};
|
|
4379
|
+
data: RemoveCosignerInstructionData;
|
|
4380
|
+
};
|
|
4381
|
+
declare function parseRemoveCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
|
|
4382
|
+
|
|
4383
|
+
/**
|
|
4384
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4385
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4386
|
+
* to add features, then rerun Codama to update it.
|
|
4387
|
+
*
|
|
4388
|
+
* @see https://github.com/codama-idl/codama
|
|
4389
|
+
*/
|
|
4390
|
+
|
|
4391
|
+
declare const SET_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
4392
|
+
declare function getSetAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
4393
|
+
type SetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4394
|
+
TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
|
|
4395
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
4396
|
+
...TRemainingAccounts
|
|
4397
|
+
]>;
|
|
4398
|
+
type SetAuthorityInstructionData = {
|
|
4399
|
+
discriminator: ReadonlyUint8Array;
|
|
4400
|
+
adminAuthority: Address;
|
|
4401
|
+
};
|
|
4402
|
+
type SetAuthorityInstructionDataArgs = {
|
|
4403
|
+
adminAuthority: Address;
|
|
4404
|
+
};
|
|
4405
|
+
declare function getSetAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetAuthorityInstructionDataArgs>;
|
|
4406
|
+
declare function getSetAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetAuthorityInstructionData>;
|
|
4407
|
+
declare function getSetAuthorityInstructionDataCodec(): FixedSizeCodec<SetAuthorityInstructionDataArgs, SetAuthorityInstructionData>;
|
|
4408
|
+
type SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
4409
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4410
|
+
config?: Address<TAccountConfig>;
|
|
4411
|
+
adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
|
|
4412
|
+
};
|
|
4413
|
+
declare function getSetAuthorityInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
4414
|
+
programAddress?: TProgramAddress;
|
|
4415
|
+
}): Promise<SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
|
|
4416
|
+
type SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
|
|
4417
|
+
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
|
|
4418
|
+
config: Address<TAccountConfig>;
|
|
4419
|
+
adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
|
|
4420
|
+
};
|
|
4421
|
+
declare function getSetAuthorityInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>, config?: {
|
|
4422
|
+
programAddress?: TProgramAddress;
|
|
4423
|
+
}): SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
|
|
4424
|
+
type ParsedSetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
4425
|
+
programAddress: Address<TProgram>;
|
|
4426
|
+
accounts: {
|
|
4427
|
+
adminAuthority: TAccountMetas[0];
|
|
4428
|
+
config: TAccountMetas[1];
|
|
4429
|
+
};
|
|
4430
|
+
data: SetAuthorityInstructionData;
|
|
4431
|
+
};
|
|
4432
|
+
declare function parseSetAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
|
|
4433
|
+
|
|
4434
|
+
/**
|
|
4435
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4436
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4437
|
+
* to add features, then rerun Codama to update it.
|
|
4438
|
+
*
|
|
4439
|
+
* @see https://github.com/codama-idl/codama
|
|
4440
|
+
*/
|
|
4441
|
+
|
|
4442
|
+
type CosignerArg = {
|
|
4443
|
+
cosigner: Address;
|
|
4444
|
+
};
|
|
4445
|
+
type CosignerArgArgs = CosignerArg;
|
|
4446
|
+
declare function getCosignerArgEncoder(): FixedSizeEncoder<CosignerArgArgs>;
|
|
4447
|
+
declare function getCosignerArgDecoder(): FixedSizeDecoder<CosignerArg>;
|
|
4448
|
+
declare function getCosignerArgCodec(): FixedSizeCodec<CosignerArgArgs, CosignerArg>;
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4452
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4453
|
+
* to add features, then rerun Codama to update it.
|
|
4454
|
+
*
|
|
4455
|
+
* @see https://github.com/codama-idl/codama
|
|
4456
|
+
*/
|
|
4457
|
+
|
|
4458
|
+
type InitializeConfigArgs = {
|
|
4459
|
+
cosigners: Array<Address>;
|
|
4460
|
+
};
|
|
4461
|
+
type InitializeConfigArgsArgs = InitializeConfigArgs;
|
|
4462
|
+
declare function getInitializeConfigArgsEncoder(): Encoder<InitializeConfigArgsArgs>;
|
|
4463
|
+
declare function getInitializeConfigArgsDecoder(): Decoder<InitializeConfigArgs>;
|
|
4464
|
+
declare function getInitializeConfigArgsCodec(): Codec<InitializeConfigArgsArgs, InitializeConfigArgs>;
|
|
4465
|
+
|
|
4466
|
+
/**
|
|
4467
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4468
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4469
|
+
* to add features, then rerun Codama to update it.
|
|
4470
|
+
*
|
|
4471
|
+
* @see https://github.com/codama-idl/codama
|
|
4472
|
+
*/
|
|
4473
|
+
|
|
4474
|
+
type SetAuthorityArgs = {
|
|
4475
|
+
adminAuthority: Address;
|
|
4476
|
+
};
|
|
4477
|
+
type SetAuthorityArgsArgs = SetAuthorityArgs;
|
|
4478
|
+
declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgsArgs>;
|
|
4479
|
+
declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
|
|
4480
|
+
declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* Default Doppler dynamic fee hook program for devnet deployments.
|
|
4484
|
+
*/
|
|
4485
|
+
declare const DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID: Address;
|
|
4486
|
+
declare const DYNAMIC_FEE_HOOK_PROGRAM_ID: Address;
|
|
4487
|
+
declare const SEED_DYNAMIC_FEE_HOOK_CONFIG = "cosigner_hook_config";
|
|
4488
|
+
declare const MAX_COSIGNERS = 32;
|
|
4489
|
+
declare const DYNAMIC_FEE_SCHEDULE_MAGIC: Uint8Array<ArrayBuffer>;
|
|
4490
|
+
declare const DYNAMIC_FEE_SCHEDULE_VERSION = 1;
|
|
4491
|
+
declare const DYNAMIC_FEE_SCHEDULE_LEN = 32;
|
|
4492
|
+
declare const DYNAMIC_FEE_SCHEDULE_HEADER_LEN = 16;
|
|
4493
|
+
declare const DYNAMIC_FEE_SCHEDULE_MAX_BPS = 10000;
|
|
4494
|
+
|
|
4495
|
+
type DynamicFeeScheduleArgs = {
|
|
4496
|
+
/**
|
|
4497
|
+
* Unix timestamp for the schedule start. Use 0 to let the hook normalize the
|
|
4498
|
+
* start to the launch creation timestamp during BEFORE_CREATE.
|
|
4499
|
+
*/
|
|
4500
|
+
startingTime: bigint | number;
|
|
4501
|
+
startFeeBps: number;
|
|
4502
|
+
endFeeBps: number;
|
|
4503
|
+
durationSeconds: bigint | number;
|
|
4504
|
+
};
|
|
4505
|
+
type DynamicFeeHookPayloadArgs = {
|
|
4506
|
+
schedule?: DynamicFeeScheduleArgs | null;
|
|
4507
|
+
gateExpiry?: CosignerGateExpiryArgs | null;
|
|
4508
|
+
};
|
|
4509
|
+
type DynamicFeeHookRemainingAccounts = {
|
|
4510
|
+
signedHookRemainingAccounts: RemainingAccount[];
|
|
4511
|
+
unsignedHookRemainingAccounts: Address[];
|
|
4512
|
+
hookRemainingAccountsHash: Uint8Array;
|
|
4513
|
+
};
|
|
4514
|
+
declare function validateDynamicFeeScheduleArgs(schedule: DynamicFeeScheduleArgs): {
|
|
4515
|
+
startingTime: bigint;
|
|
4516
|
+
durationSeconds: bigint;
|
|
4517
|
+
};
|
|
4518
|
+
declare function encodeDynamicFeeSchedule(schedule: DynamicFeeScheduleArgs): Uint8Array;
|
|
4519
|
+
declare function encodeDynamicFeeHookPayload(args?: DynamicFeeHookPayloadArgs): Uint8Array;
|
|
4520
|
+
declare function encodeDynamicFeeCosignerGatePayload(args: {
|
|
4521
|
+
value: bigint | number;
|
|
4522
|
+
mode: Exclude<CosignerGateExpiryArgs['mode'], typeof GATE_EXPIRY_DISABLED>;
|
|
4523
|
+
cosigner: Address;
|
|
4524
|
+
}): Uint8Array;
|
|
4525
|
+
declare function getDynamicFeeHookRemainingAccounts({ namespace, config, cosigner, }: {
|
|
4526
|
+
namespace: Address;
|
|
4527
|
+
config?: Address;
|
|
4528
|
+
cosigner?: AddressOrTransactionSigner;
|
|
4529
|
+
}): DynamicFeeHookRemainingAccounts;
|
|
4530
|
+
declare function getDynamicFeeHookRemainingAccountAddresses({ namespace, config, cosigner, }: {
|
|
4531
|
+
namespace: Address;
|
|
4532
|
+
config?: Address;
|
|
4533
|
+
cosigner?: AddressOrTransactionSigner;
|
|
4534
|
+
}): Address[];
|
|
4535
|
+
declare function isDynamicFeeSchedulePayload(payload: ReadonlyUint8Array): boolean;
|
|
4536
|
+
|
|
4537
|
+
declare function getDynamicFeeHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4538
|
+
|
|
4539
|
+
declare const index$4_ADD_COSIGNER_DISCRIMINATOR: typeof ADD_COSIGNER_DISCRIMINATOR;
|
|
4540
|
+
type index$4_AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
|
|
4541
|
+
type index$4_AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerInput<TAccountAdminAuthority, TAccountConfig>;
|
|
4542
|
+
type index$4_AddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
|
|
4543
|
+
type index$4_AddCosignerInstructionData = AddCosignerInstructionData;
|
|
4544
|
+
type index$4_AddCosignerInstructionDataArgs = AddCosignerInstructionDataArgs;
|
|
4545
|
+
declare const index$4_COSIGNER_CONFIG_DISCRIMINATOR: typeof COSIGNER_CONFIG_DISCRIMINATOR;
|
|
4546
|
+
type index$4_CosignerArg = CosignerArg;
|
|
4547
|
+
type index$4_CosignerArgArgs = CosignerArgArgs;
|
|
4548
|
+
type index$4_CosignerConfig = CosignerConfig;
|
|
4549
|
+
type index$4_CosignerConfigArgs = CosignerConfigArgs;
|
|
4550
|
+
declare const index$4_DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID: typeof DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID;
|
|
4551
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW: typeof DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW;
|
|
4552
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
|
|
4553
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL: typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL;
|
|
4554
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND;
|
|
4555
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY;
|
|
4556
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG;
|
|
4557
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER;
|
|
4558
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION;
|
|
4559
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE;
|
|
4560
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA;
|
|
4561
|
+
declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA;
|
|
4562
|
+
declare const index$4_DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS: typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS;
|
|
4563
|
+
declare const index$4_DYNAMIC_FEE_HOOK_PROGRAM_ID: typeof DYNAMIC_FEE_HOOK_PROGRAM_ID;
|
|
4564
|
+
declare const index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN: typeof DYNAMIC_FEE_SCHEDULE_HEADER_LEN;
|
|
4565
|
+
declare const index$4_DYNAMIC_FEE_SCHEDULE_LEN: typeof DYNAMIC_FEE_SCHEDULE_LEN;
|
|
4566
|
+
declare const index$4_DYNAMIC_FEE_SCHEDULE_MAGIC: typeof DYNAMIC_FEE_SCHEDULE_MAGIC;
|
|
4567
|
+
declare const index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS: typeof DYNAMIC_FEE_SCHEDULE_MAX_BPS;
|
|
4568
|
+
declare const index$4_DYNAMIC_FEE_SCHEDULE_VERSION: typeof DYNAMIC_FEE_SCHEDULE_VERSION;
|
|
4569
|
+
type index$4_DynamicFeeHookAccount = DynamicFeeHookAccount;
|
|
4570
|
+
declare const index$4_DynamicFeeHookAccount: typeof DynamicFeeHookAccount;
|
|
4571
|
+
type index$4_DynamicFeeHookError = DynamicFeeHookError;
|
|
4572
|
+
type index$4_DynamicFeeHookInstruction = DynamicFeeHookInstruction;
|
|
4573
|
+
declare const index$4_DynamicFeeHookInstruction: typeof DynamicFeeHookInstruction;
|
|
4574
|
+
type index$4_DynamicFeeHookPayloadArgs = DynamicFeeHookPayloadArgs;
|
|
4575
|
+
type index$4_DynamicFeeHookPlugin = DynamicFeeHookPlugin;
|
|
4576
|
+
type index$4_DynamicFeeHookPluginAccounts = DynamicFeeHookPluginAccounts;
|
|
4577
|
+
type index$4_DynamicFeeHookPluginInstructions = DynamicFeeHookPluginInstructions;
|
|
4578
|
+
type index$4_DynamicFeeHookPluginRequirements = DynamicFeeHookPluginRequirements;
|
|
4579
|
+
type index$4_DynamicFeeHookRemainingAccounts = DynamicFeeHookRemainingAccounts;
|
|
4580
|
+
type index$4_DynamicFeeScheduleArgs = DynamicFeeScheduleArgs;
|
|
4581
|
+
declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
|
|
4582
|
+
type index$4_InitializeConfigArgs = InitializeConfigArgs;
|
|
4583
|
+
type index$4_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
|
|
4584
|
+
type index$4_InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
|
|
4585
|
+
type index$4_InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
|
|
4586
|
+
type index$4_InitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeConfigInstruction<TProgram, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram, TRemainingAccounts>;
|
|
4587
|
+
type index$4_InitializeConfigInstructionData = InitializeConfigInstructionData;
|
|
4588
|
+
type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
|
|
4589
|
+
declare const index$4_MAX_COSIGNERS: typeof MAX_COSIGNERS;
|
|
4590
|
+
type index$4_ParsedAddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
|
|
4591
|
+
type index$4_ParsedDynamicFeeHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ParsedDynamicFeeHookInstruction<TProgram>;
|
|
4592
|
+
type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
|
|
4593
|
+
type index$4_ParsedRemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
|
|
4594
|
+
type index$4_ParsedSetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
|
|
4595
|
+
declare const index$4_REMOVE_COSIGNER_DISCRIMINATOR: typeof REMOVE_COSIGNER_DISCRIMINATOR;
|
|
4596
|
+
type index$4_RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
|
|
4597
|
+
type index$4_RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>;
|
|
4598
|
+
type index$4_RemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
|
|
4599
|
+
type index$4_RemoveCosignerInstructionData = RemoveCosignerInstructionData;
|
|
4600
|
+
type index$4_RemoveCosignerInstructionDataArgs = RemoveCosignerInstructionDataArgs;
|
|
4601
|
+
declare const index$4_SEED_DYNAMIC_FEE_HOOK_CONFIG: typeof SEED_DYNAMIC_FEE_HOOK_CONFIG;
|
|
4602
|
+
declare const index$4_SET_AUTHORITY_DISCRIMINATOR: typeof SET_AUTHORITY_DISCRIMINATOR;
|
|
4603
|
+
type index$4_SetAuthorityArgs = SetAuthorityArgs;
|
|
4604
|
+
type index$4_SetAuthorityArgsArgs = SetAuthorityArgsArgs;
|
|
4605
|
+
type index$4_SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>;
|
|
4606
|
+
type index$4_SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>;
|
|
4607
|
+
type index$4_SetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetAuthorityInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
|
|
4608
|
+
type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
|
|
4609
|
+
type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
|
|
4610
|
+
declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
|
|
4611
|
+
declare const index$4_dynamicFeeHookProgram: typeof dynamicFeeHookProgram;
|
|
4612
|
+
declare const index$4_encodeDynamicFeeCosignerGatePayload: typeof encodeDynamicFeeCosignerGatePayload;
|
|
4613
|
+
declare const index$4_encodeDynamicFeeHookPayload: typeof encodeDynamicFeeHookPayload;
|
|
4614
|
+
declare const index$4_encodeDynamicFeeSchedule: typeof encodeDynamicFeeSchedule;
|
|
4615
|
+
declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
|
|
4616
|
+
declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
|
|
4617
|
+
declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
|
|
4618
|
+
declare const index$4_fetchMaybeCosignerConfig: typeof fetchMaybeCosignerConfig;
|
|
4619
|
+
declare const index$4_getAddCosignerDiscriminatorBytes: typeof getAddCosignerDiscriminatorBytes;
|
|
4620
|
+
declare const index$4_getAddCosignerInstruction: typeof getAddCosignerInstruction;
|
|
4621
|
+
declare const index$4_getAddCosignerInstructionAsync: typeof getAddCosignerInstructionAsync;
|
|
4622
|
+
declare const index$4_getAddCosignerInstructionDataCodec: typeof getAddCosignerInstructionDataCodec;
|
|
4623
|
+
declare const index$4_getAddCosignerInstructionDataDecoder: typeof getAddCosignerInstructionDataDecoder;
|
|
4624
|
+
declare const index$4_getAddCosignerInstructionDataEncoder: typeof getAddCosignerInstructionDataEncoder;
|
|
4625
|
+
declare const index$4_getCosignerArgCodec: typeof getCosignerArgCodec;
|
|
4626
|
+
declare const index$4_getCosignerArgDecoder: typeof getCosignerArgDecoder;
|
|
4627
|
+
declare const index$4_getCosignerArgEncoder: typeof getCosignerArgEncoder;
|
|
4628
|
+
declare const index$4_getCosignerConfigCodec: typeof getCosignerConfigCodec;
|
|
4629
|
+
declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
|
|
4630
|
+
declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
|
|
4631
|
+
declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
|
|
4632
|
+
declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
|
|
4633
|
+
declare const index$4_getDynamicFeeHookConfigAddress: typeof getDynamicFeeHookConfigAddress;
|
|
4634
|
+
declare const index$4_getDynamicFeeHookErrorMessage: typeof getDynamicFeeHookErrorMessage;
|
|
4635
|
+
declare const index$4_getDynamicFeeHookRemainingAccountAddresses: typeof getDynamicFeeHookRemainingAccountAddresses;
|
|
4636
|
+
declare const index$4_getDynamicFeeHookRemainingAccounts: typeof getDynamicFeeHookRemainingAccounts;
|
|
4637
|
+
declare const index$4_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
|
|
4638
|
+
declare const index$4_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
|
|
4639
|
+
declare const index$4_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
|
|
4640
|
+
declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
|
|
4641
|
+
declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
|
|
4642
|
+
declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
|
|
4643
|
+
declare const index$4_getInitializeConfigInstructionDataCodec: typeof getInitializeConfigInstructionDataCodec;
|
|
4644
|
+
declare const index$4_getInitializeConfigInstructionDataDecoder: typeof getInitializeConfigInstructionDataDecoder;
|
|
4645
|
+
declare const index$4_getInitializeConfigInstructionDataEncoder: typeof getInitializeConfigInstructionDataEncoder;
|
|
4646
|
+
declare const index$4_getRemoveCosignerDiscriminatorBytes: typeof getRemoveCosignerDiscriminatorBytes;
|
|
4647
|
+
declare const index$4_getRemoveCosignerInstruction: typeof getRemoveCosignerInstruction;
|
|
4648
|
+
declare const index$4_getRemoveCosignerInstructionAsync: typeof getRemoveCosignerInstructionAsync;
|
|
4649
|
+
declare const index$4_getRemoveCosignerInstructionDataCodec: typeof getRemoveCosignerInstructionDataCodec;
|
|
4650
|
+
declare const index$4_getRemoveCosignerInstructionDataDecoder: typeof getRemoveCosignerInstructionDataDecoder;
|
|
4651
|
+
declare const index$4_getRemoveCosignerInstructionDataEncoder: typeof getRemoveCosignerInstructionDataEncoder;
|
|
4652
|
+
declare const index$4_getSetAuthorityArgsCodec: typeof getSetAuthorityArgsCodec;
|
|
4653
|
+
declare const index$4_getSetAuthorityArgsDecoder: typeof getSetAuthorityArgsDecoder;
|
|
4654
|
+
declare const index$4_getSetAuthorityArgsEncoder: typeof getSetAuthorityArgsEncoder;
|
|
4655
|
+
declare const index$4_getSetAuthorityDiscriminatorBytes: typeof getSetAuthorityDiscriminatorBytes;
|
|
4656
|
+
declare const index$4_getSetAuthorityInstruction: typeof getSetAuthorityInstruction;
|
|
4657
|
+
declare const index$4_getSetAuthorityInstructionAsync: typeof getSetAuthorityInstructionAsync;
|
|
4658
|
+
declare const index$4_getSetAuthorityInstructionDataCodec: typeof getSetAuthorityInstructionDataCodec;
|
|
4659
|
+
declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthorityInstructionDataDecoder;
|
|
4660
|
+
declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
|
|
4661
|
+
declare const index$4_identifyDynamicFeeHookAccount: typeof identifyDynamicFeeHookAccount;
|
|
4662
|
+
declare const index$4_identifyDynamicFeeHookInstruction: typeof identifyDynamicFeeHookInstruction;
|
|
4663
|
+
declare const index$4_isDynamicFeeHookError: typeof isDynamicFeeHookError;
|
|
4664
|
+
declare const index$4_isDynamicFeeSchedulePayload: typeof isDynamicFeeSchedulePayload;
|
|
4665
|
+
declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
|
|
4666
|
+
declare const index$4_parseDynamicFeeHookInstruction: typeof parseDynamicFeeHookInstruction;
|
|
4667
|
+
declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction;
|
|
4668
|
+
declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
|
|
4669
|
+
declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
|
|
4670
|
+
declare const index$4_validateDynamicFeeScheduleArgs: typeof validateDynamicFeeScheduleArgs;
|
|
4671
|
+
declare namespace index$4 {
|
|
4672
|
+
export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, index$4_DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID as DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID, index$4_DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW as DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW, index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL as DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND as DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY as DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG as DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER as DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION as DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE as DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA as DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA as DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA, index$4_DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS as DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, index$4_DYNAMIC_FEE_HOOK_PROGRAM_ID as DYNAMIC_FEE_HOOK_PROGRAM_ID, index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN as DYNAMIC_FEE_SCHEDULE_HEADER_LEN, index$4_DYNAMIC_FEE_SCHEDULE_LEN as DYNAMIC_FEE_SCHEDULE_LEN, index$4_DYNAMIC_FEE_SCHEDULE_MAGIC as DYNAMIC_FEE_SCHEDULE_MAGIC, index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS as DYNAMIC_FEE_SCHEDULE_MAX_BPS, index$4_DYNAMIC_FEE_SCHEDULE_VERSION as DYNAMIC_FEE_SCHEDULE_VERSION, index$4_DynamicFeeHookAccount as DynamicFeeHookAccount, type index$4_DynamicFeeHookError as DynamicFeeHookError, index$4_DynamicFeeHookInstruction as DynamicFeeHookInstruction, type index$4_DynamicFeeHookPayloadArgs as DynamicFeeHookPayloadArgs, type index$4_DynamicFeeHookPlugin as DynamicFeeHookPlugin, type index$4_DynamicFeeHookPluginAccounts as DynamicFeeHookPluginAccounts, type index$4_DynamicFeeHookPluginInstructions as DynamicFeeHookPluginInstructions, type index$4_DynamicFeeHookPluginRequirements as DynamicFeeHookPluginRequirements, type index$4_DynamicFeeHookRemainingAccounts as DynamicFeeHookRemainingAccounts, type index$4_DynamicFeeScheduleArgs as DynamicFeeScheduleArgs, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type index$4_InitializeConfigArgs as InitializeConfigArgs, type index$4_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedDynamicFeeHookInstruction as ParsedDynamicFeeHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_DYNAMIC_FEE_HOOK_CONFIG as SEED_DYNAMIC_FEE_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_dynamicFeeHookProgram as dynamicFeeHookProgram, index$4_encodeDynamicFeeCosignerGatePayload as encodeDynamicFeeCosignerGatePayload, index$4_encodeDynamicFeeHookPayload as encodeDynamicFeeHookPayload, index$4_encodeDynamicFeeSchedule as encodeDynamicFeeSchedule, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getDynamicFeeHookConfigAddress as getDynamicFeeHookConfigAddress, index$4_getDynamicFeeHookErrorMessage as getDynamicFeeHookErrorMessage, index$4_getDynamicFeeHookRemainingAccountAddresses as getDynamicFeeHookRemainingAccountAddresses, index$4_getDynamicFeeHookRemainingAccounts as getDynamicFeeHookRemainingAccounts, index$4_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$4_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$4_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyDynamicFeeHookAccount as identifyDynamicFeeHookAccount, index$4_identifyDynamicFeeHookInstruction as identifyDynamicFeeHookInstruction, index$4_isDynamicFeeHookError as isDynamicFeeHookError, index$4_isDynamicFeeSchedulePayload as isDynamicFeeSchedulePayload, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseDynamicFeeHookInstruction as parseDynamicFeeHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction, index$4_validateDynamicFeeScheduleArgs as validateDynamicFeeScheduleArgs };
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
interface SolanaCpmmProgramAddresses {
|
|
4676
|
+
cpmmProgram: Address;
|
|
4677
|
+
initializerProgram: Address;
|
|
4678
|
+
cpmmMigratorProgram: Address;
|
|
4679
|
+
cpmmHookProgram: Address;
|
|
4680
|
+
cosignerHookProgram: Address;
|
|
4681
|
+
dynamicFeeHookProgram: Address;
|
|
4682
|
+
}
|
|
4683
|
+
interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
|
|
4684
|
+
cpmmConfig: Address;
|
|
4685
|
+
initializerConfig: Address;
|
|
4686
|
+
}
|
|
4687
|
+
declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
|
|
4688
|
+
declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
|
|
4689
|
+
|
|
4690
|
+
/**
|
|
4691
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4692
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4693
|
+
* to add features, then rerun Codama to update it.
|
|
4694
|
+
*
|
|
4695
|
+
* @see https://github.com/codama-idl/codama
|
|
4696
|
+
*/
|
|
4697
|
+
|
|
4698
|
+
/**
|
|
4699
|
+
* Arguments for migrate instruction.
|
|
4700
|
+
* These are deserialized from the migrator_migrate_payload passed by initializer.
|
|
4701
|
+
*/
|
|
4702
|
+
type MigrateArgs = {
|
|
4703
|
+
/** Base tokens reserved for distribution to recipients */
|
|
4704
|
+
baseForDistribution: bigint;
|
|
4705
|
+
/** Base tokens reserved for CPMM liquidity */
|
|
4706
|
+
baseForLiquidity: bigint;
|
|
4707
|
+
};
|
|
4708
|
+
type MigrateArgsArgs = {
|
|
4709
|
+
/** Base tokens reserved for distribution to recipients */
|
|
4710
|
+
baseForDistribution: number | bigint;
|
|
4711
|
+
/** Base tokens reserved for CPMM liquidity */
|
|
4712
|
+
baseForLiquidity: number | bigint;
|
|
4713
|
+
};
|
|
4714
|
+
declare function getMigrateArgsEncoder(): FixedSizeEncoder<MigrateArgsArgs>;
|
|
4715
|
+
declare function getMigrateArgsDecoder(): FixedSizeDecoder<MigrateArgs>;
|
|
4716
|
+
declare function getMigrateArgsCodec(): FixedSizeCodec<MigrateArgsArgs, MigrateArgs>;
|
|
4172
4717
|
|
|
4173
4718
|
/**
|
|
4174
4719
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -4407,8 +4952,7 @@ declare namespace index$3 {
|
|
|
4407
4952
|
export { index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$3_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$3_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$3_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$3_CpmmMigratorState as CpmmMigratorState, type index$3_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$3_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$3_MigrateArgs as MigrateArgs, type index$3_MigrateArgsArgs as MigrateArgsArgs, type index$3_MigratedPoolHookConfig as MigratedPoolHookConfig, type index$3_MigratedPoolHookConfigArgs as MigratedPoolHookConfigArgs, type index$3_Recipient as Recipient, type index$3_RecipientArgs as RecipientArgs, type index$3_RegisterLaunchArgs as RegisterLaunchArgs, type index$3_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$3_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$3_SEED_STATE as SEED_STATE, index$3_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$3_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$3_encodeMigratePayload as encodeMigratePayload, index$3_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$3_fetchCpmmMigratorState as fetchCpmmMigratorState, index$3_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$3_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$3_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$3_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$3_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$3_getMigrateArgsCodec as getMigrateArgsCodec, index$3_getMigrateArgsDecoder as getMigrateArgsDecoder, index$3_getMigrateArgsEncoder as getMigrateArgsEncoder, index$3_getRecipientCodec as getRecipientCodec, index$3_getRecipientDecoder as getRecipientDecoder, index$3_getRecipientEncoder as getRecipientEncoder, index$3_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$3_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$3_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
|
|
4408
4953
|
}
|
|
4409
4954
|
|
|
4410
|
-
type AddressOrSigner = InitializeLaunchAccounts['baseMint'];
|
|
4411
|
-
type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
4955
|
+
type AddressOrSigner$1 = InitializeLaunchAccounts['baseMint'];
|
|
4412
4956
|
type LaunchTokenPrograms = {
|
|
4413
4957
|
baseTokenProgram: Address;
|
|
4414
4958
|
quoteTokenProgram: Address;
|
|
@@ -4430,12 +4974,12 @@ type LaunchMetadata = {
|
|
|
4430
4974
|
metadataUri: string;
|
|
4431
4975
|
};
|
|
4432
4976
|
type CreateLaunchAccountSigners = {
|
|
4433
|
-
baseMint: AddressOrSigner;
|
|
4977
|
+
baseMint: AddressOrSigner$1;
|
|
4434
4978
|
quoteMint: Address;
|
|
4435
|
-
baseVault: AddressOrSigner;
|
|
4436
|
-
quoteVault: AddressOrSigner;
|
|
4979
|
+
baseVault: AddressOrSigner$1;
|
|
4980
|
+
quoteVault: AddressOrSigner$1;
|
|
4437
4981
|
};
|
|
4438
|
-
type CreateLaunchHookMode = 'cpmm' | 'cosigner' | false;
|
|
4982
|
+
type CreateLaunchHookMode = 'cpmm' | 'cosigner' | 'dynamicFee' | false;
|
|
4439
4983
|
type CreateLaunchCpmmMigrationConfig = {
|
|
4440
4984
|
enabled?: true;
|
|
4441
4985
|
kind?: 'cpmm';
|
|
@@ -4480,26 +5024,27 @@ type DeriveCreateLaunchAddressesInput = {
|
|
|
4480
5024
|
config?: Address;
|
|
4481
5025
|
namespace: Address;
|
|
4482
5026
|
launchId: Uint8Array;
|
|
4483
|
-
baseMint: AddressOrSigner;
|
|
5027
|
+
baseMint: AddressOrSigner$1;
|
|
4484
5028
|
metadata?: LaunchMetadata | null;
|
|
4485
5029
|
metadataAccount?: Address;
|
|
4486
5030
|
};
|
|
4487
5031
|
type CreateLaunchInput = {
|
|
4488
|
-
deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram' | 'cosignerHookProgram'>>;
|
|
5032
|
+
deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram' | 'cosignerHookProgram' | 'dynamicFeeHookProgram'>>;
|
|
4489
5033
|
programId?: Address;
|
|
4490
5034
|
config?: Address;
|
|
4491
5035
|
namespace?: Address;
|
|
4492
5036
|
launchId?: Uint8Array;
|
|
4493
5037
|
addresses?: CreateLaunchAddresses;
|
|
4494
5038
|
launchAccounts: CreateLaunchAccountSigners;
|
|
4495
|
-
payer: AddressOrSigner;
|
|
4496
|
-
authority?: AddressOrSigner;
|
|
5039
|
+
payer: AddressOrSigner$1;
|
|
5040
|
+
authority?: AddressOrSigner$1;
|
|
4497
5041
|
supply: LaunchSupply;
|
|
4498
5042
|
curve: XykCurveConfig;
|
|
4499
5043
|
tokenPrograms?: Partial<LaunchTokenPrograms>;
|
|
4500
5044
|
hook?: CreateLaunchHookMode | null;
|
|
4501
|
-
cosigner?: AddressOrSigner;
|
|
5045
|
+
cosigner?: AddressOrSigner$1;
|
|
4502
5046
|
cosignGateExpiresAt?: bigint | number | null;
|
|
5047
|
+
dynamicFee?: DynamicFeeScheduleArgs | null;
|
|
4503
5048
|
migration?: boolean | CreateLaunchMigrationConfig | null;
|
|
4504
5049
|
metadata?: LaunchMetadata | null;
|
|
4505
5050
|
feeBeneficiaries?: InitializeLaunchParams['feeBeneficiaries'];
|
|
@@ -4664,8 +5209,6 @@ declare const index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACC
|
|
|
4664
5209
|
declare const index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
|
|
4665
5210
|
declare const index$2_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
|
|
4666
5211
|
type index$2_InitializeConfigAccounts = InitializeConfigAccounts;
|
|
4667
|
-
type index$2_InitializeConfigArgs = InitializeConfigArgs;
|
|
4668
|
-
type index$2_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
|
|
4669
5212
|
type index$2_InitializeLaunchAccounts = InitializeLaunchAccounts;
|
|
4670
5213
|
type index$2_InitializeLaunchArgs = InitializeLaunchArgs;
|
|
4671
5214
|
type index$2_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
|
|
@@ -4725,9 +5268,6 @@ declare const index$2_getClaimFeesInstructionAsync: typeof getClaimFeesInstructi
|
|
|
4725
5268
|
declare const index$2_getConfigAddress: typeof getConfigAddress;
|
|
4726
5269
|
declare const index$2_getCurveSwapFeeAmount: typeof getCurveSwapFeeAmount;
|
|
4727
5270
|
declare const index$2_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
|
|
4728
|
-
declare const index$2_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
|
|
4729
|
-
declare const index$2_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
|
|
4730
|
-
declare const index$2_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
|
|
4731
5271
|
declare const index$2_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
|
|
4732
5272
|
declare const index$2_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
|
|
4733
5273
|
declare const index$2_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
|
|
@@ -4749,7 +5289,7 @@ declare const index$2_measureTransactionMessageSize: typeof measureTransactionMe
|
|
|
4749
5289
|
declare const index$2_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
|
|
4750
5290
|
declare const index$2_phaseLabel: typeof phaseLabel;
|
|
4751
5291
|
declare namespace index$2 {
|
|
4752
|
-
export { index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$2_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$2_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$2_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$2_CURVE_KIND_XYK as CURVE_KIND_XYK, index$2_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$2_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$2_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$2_CreateLaunchAddresses as CreateLaunchAddresses, type index$2_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$2_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$2_CreateLaunchHookMode as CreateLaunchHookMode, type index$2_CreateLaunchInput as CreateLaunchInput, type index$2_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$2_CreateLaunchResult as CreateLaunchResult, type index$2_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$2_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$2_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$2_FeeBeneficiary as FeeBeneficiary, type index$2_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$2_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$2_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$2_FetchLaunchesConfig as FetchLaunchesConfig, index$2_HF_AFTER_CREATE as HF_AFTER_CREATE, index$2_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$2_HF_AFTER_SWAP as HF_AFTER_SWAP, index$2_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$2_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$2_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$2_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$2_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$2_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$2_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$2_InitializeConfigAccounts as InitializeConfigAccounts, type
|
|
5292
|
+
export { index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$2_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$2_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$2_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$2_CURVE_KIND_XYK as CURVE_KIND_XYK, index$2_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$2_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$2_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$2_CreateLaunchAddresses as CreateLaunchAddresses, type index$2_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$2_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$2_CreateLaunchHookMode as CreateLaunchHookMode, type index$2_CreateLaunchInput as CreateLaunchInput, type index$2_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$2_CreateLaunchResult as CreateLaunchResult, type index$2_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$2_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$2_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$2_FeeBeneficiary as FeeBeneficiary, type index$2_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$2_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$2_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$2_FetchLaunchesConfig as FetchLaunchesConfig, index$2_HF_AFTER_CREATE as HF_AFTER_CREATE, index$2_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$2_HF_AFTER_SWAP as HF_AFTER_SWAP, index$2_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$2_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$2_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$2_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$2_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$2_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$2_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$2_InitializeConfigAccounts as InitializeConfigAccounts, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$2_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$2_InitializeLaunchArgs as InitializeLaunchArgs, type index$2_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$2_LaunchFeeState as LaunchFeeState, type index$2_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$2_LaunchMetadata as LaunchMetadata, type index$2_LaunchSupply as LaunchSupply, type index$2_LaunchTokenPrograms as LaunchTokenPrograms, type index$2_LaunchWithAddress as LaunchWithAddress, index$2_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$2_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$2_MAX_PAYLOAD as MAX_PAYLOAD, type index$2_MigrateLaunchAccounts as MigrateLaunchAccounts, index$2_PHASE_ABORTED as PHASE_ABORTED, index$2_PHASE_MIGRATED as PHASE_MIGRATED, index$2_PHASE_TRADING as PHASE_TRADING, index$2_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$2_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$2_PreviewMigrationResult as PreviewMigrationResult, type index$2_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$2_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$2_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$2_SEED_CONFIG as SEED_CONFIG, index$2_SEED_LAUNCH as SEED_LAUNCH, index$2_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$2_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$2_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$2_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$2_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$2_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$2_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$2_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$2_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$2_TransactionSizeReport as TransactionSizeReport, type index$2_XykCurveConfig as XykCurveConfig, index$2_assertTransactionMessageFits as assertTransactionMessageFits, index$2_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$2_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$2_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$2_computeRemainingAccountsHash as computeRemainingAccountsHash, index$2_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$2_createInitializeConfigInstruction as createInitializeConfigInstruction, index$2_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$2_createLaunchId as createLaunchId, index$2_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$2_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$2_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$2_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$2_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$2_decodePreviewMigrationResult as decodePreviewMigrationResult, index$2_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$2_deriveCreateLaunchAddresses as deriveCreateLaunchAddresses, index$2_encodeU64LE as encodeU64LE, index$2_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$2_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$2_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$2_getConfigAddress as getConfigAddress, index$2_getCurveSwapFeeAmount as getCurveSwapFeeAmount, index$2_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$2_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$2_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$2_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$2_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$2_getLaunchAddress as getLaunchAddress, index$2_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$2_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$2_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$2_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$2_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$2_getProgramDataAddress as getProgramDataAddress, index$2_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$2_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$2_getTokenMetadataAddress as getTokenMetadataAddress, index$2_launchExists as launchExists, index$2_launchIdFromU64 as launchIdFromU64, index$2_launchTokenPrograms as launchTokenPrograms, index$2_measureTransactionMessageSize as measureTransactionMessageSize, index$2_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$2_phaseLabel as phaseLabel };
|
|
4753
5293
|
}
|
|
4754
5294
|
|
|
4755
5295
|
/**
|
|
@@ -6573,4 +7113,136 @@ declare namespace index {
|
|
|
6573
7113
|
export { index_FINALIZE_DISCRIMINATOR as FINALIZE_DISCRIMINATOR, type index_FinalizeInput as FinalizeInput, type index_FinalizeInstruction as FinalizeInstruction, type index_FinalizeInstructionData as FinalizeInstructionData, type index_FinalizeInstructionDataArgs as FinalizeInstructionDataArgs, index_INITIALIZE_ORACLE_DISCRIMINATOR as INITIALIZE_ORACLE_DISCRIMINATOR, type index_InitializeOracleArgs as InitializeOracleArgs, type index_InitializeOracleArgsArgs as InitializeOracleArgsArgs, type index_InitializeOracleInput as InitializeOracleInput, type index_InitializeOracleInstruction as InitializeOracleInstruction, type index_InitializeOracleInstructionData as InitializeOracleInstructionData, type index_InitializeOracleInstructionDataArgs as InitializeOracleInstructionDataArgs, index_ORACLE_STATE_DISCRIMINATOR as ORACLE_STATE_DISCRIMINATOR, type index_OracleState as OracleState, type index_OracleStateArgs as OracleStateArgs, type index_ParsedFinalizeInstruction as ParsedFinalizeInstruction, type index_ParsedInitializeOracleInstruction as ParsedInitializeOracleInstruction, type index_ParsedTrustedOracleInstruction as ParsedTrustedOracleInstruction, index_TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED as TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED, index_TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT as TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT, index_TRUSTED_ORACLE_ERROR__UNAUTHORIZED as TRUSTED_ORACLE_ERROR__UNAUTHORIZED, index_TRUSTED_ORACLE_PROGRAM_ADDRESS as TRUSTED_ORACLE_PROGRAM_ADDRESS, index_TrustedOracleAccount as TrustedOracleAccount, type index_TrustedOracleError as TrustedOracleError, index_TrustedOracleInstruction as TrustedOracleInstruction, type index_TrustedOraclePlugin as TrustedOraclePlugin, type index_TrustedOraclePluginAccounts as TrustedOraclePluginAccounts, type index_TrustedOraclePluginInstructions as TrustedOraclePluginInstructions, type index_TrustedOraclePluginRequirements as TrustedOraclePluginRequirements, index_decodeOracleState as decodeOracleState, index_fetchAllMaybeOracleState as fetchAllMaybeOracleState, index_fetchAllOracleState as fetchAllOracleState, index_fetchMaybeOracleState as fetchMaybeOracleState, index_fetchOracleState as fetchOracleState, index_getFinalizeDiscriminatorBytes as getFinalizeDiscriminatorBytes, index_getFinalizeInstruction as getFinalizeInstruction, index_getFinalizeInstructionDataCodec as getFinalizeInstructionDataCodec, index_getFinalizeInstructionDataDecoder as getFinalizeInstructionDataDecoder, index_getFinalizeInstructionDataEncoder as getFinalizeInstructionDataEncoder, index_getInitializeOracleArgsCodec as getInitializeOracleArgsCodec, index_getInitializeOracleArgsDecoder as getInitializeOracleArgsDecoder, index_getInitializeOracleArgsEncoder as getInitializeOracleArgsEncoder, index_getInitializeOracleDiscriminatorBytes as getInitializeOracleDiscriminatorBytes, index_getInitializeOracleInstruction as getInitializeOracleInstruction, index_getInitializeOracleInstructionDataCodec as getInitializeOracleInstructionDataCodec, index_getInitializeOracleInstructionDataDecoder as getInitializeOracleInstructionDataDecoder, index_getInitializeOracleInstructionDataEncoder as getInitializeOracleInstructionDataEncoder, index_getOracleStateAddress as getOracleStateAddress, index_getOracleStateCodec as getOracleStateCodec, index_getOracleStateDecoder as getOracleStateDecoder, index_getOracleStateDiscriminatorBytes as getOracleStateDiscriminatorBytes, index_getOracleStateEncoder as getOracleStateEncoder, index_getOracleStateSize as getOracleStateSize, index_getTrustedOracleErrorMessage as getTrustedOracleErrorMessage, index_identifyTrustedOracleAccount as identifyTrustedOracleAccount, index_identifyTrustedOracleInstruction as identifyTrustedOracleInstruction, index_isTrustedOracleError as isTrustedOracleError, index_parseFinalizeInstruction as parseFinalizeInstruction, index_parseInitializeOracleInstruction as parseInitializeOracleInstruction, index_parseTrustedOracleInstruction as parseTrustedOracleInstruction, index_trustedOracleProgram as trustedOracleProgram };
|
|
6574
7114
|
}
|
|
6575
7115
|
|
|
6576
|
-
|
|
7116
|
+
type SolanaRemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
|
|
7117
|
+
type AddressOrSigner = Address | TransactionSigner;
|
|
7118
|
+
type CurveSwapExactInInput = {
|
|
7119
|
+
deployment?: Pick<SolanaCpmmDeployment, 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmHookProgram'>>;
|
|
7120
|
+
programId?: Address;
|
|
7121
|
+
launch: Address;
|
|
7122
|
+
launchAuthority: Address;
|
|
7123
|
+
baseVault: Address;
|
|
7124
|
+
quoteVault: Address;
|
|
7125
|
+
launchFeeState: Address;
|
|
7126
|
+
baseMint: Address;
|
|
7127
|
+
quoteMint: Address;
|
|
7128
|
+
payer: TransactionSigner;
|
|
7129
|
+
user?: AddressOrSigner;
|
|
7130
|
+
amountIn: bigint;
|
|
7131
|
+
minAmountOut: bigint;
|
|
7132
|
+
tradeDirection: 0 | 1;
|
|
7133
|
+
hookProgram?: Address;
|
|
7134
|
+
remainingAccounts?: ReadonlyArray<SolanaRemainingAccount>;
|
|
7135
|
+
baseTokenProgram?: Address;
|
|
7136
|
+
quoteTokenProgram?: Address;
|
|
7137
|
+
wrapSol?: boolean;
|
|
7138
|
+
};
|
|
7139
|
+
type CurveSwapExactInResult = {
|
|
7140
|
+
userBaseAccount: Address;
|
|
7141
|
+
userQuoteAccount: Address;
|
|
7142
|
+
userIn: Address;
|
|
7143
|
+
userOut: Address;
|
|
7144
|
+
setupInstructions: Instruction[];
|
|
7145
|
+
swapInstruction: Instruction;
|
|
7146
|
+
instructions: Instruction[];
|
|
7147
|
+
};
|
|
7148
|
+
type SwapExactInBaseInput = {
|
|
7149
|
+
deployment?: Pick<SolanaCpmmDeployment, 'cpmmProgram' | 'cpmmConfig'>;
|
|
7150
|
+
programId?: Address;
|
|
7151
|
+
config?: Address;
|
|
7152
|
+
payer: TransactionSigner;
|
|
7153
|
+
user?: AddressOrSigner;
|
|
7154
|
+
amountIn: bigint;
|
|
7155
|
+
tradeDirection: TradeDirection;
|
|
7156
|
+
minAmountOut?: bigint;
|
|
7157
|
+
slippageBps?: number | bigint;
|
|
7158
|
+
token0Program?: Address;
|
|
7159
|
+
token1Program?: Address;
|
|
7160
|
+
tokenProgram?: Address;
|
|
7161
|
+
oracle?: Address;
|
|
7162
|
+
remainingAccounts?: ReadonlyArray<SolanaRemainingAccount>;
|
|
7163
|
+
updateOracle?: boolean;
|
|
7164
|
+
};
|
|
7165
|
+
type SwapExactInInput = (SwapExactInBaseInput & {
|
|
7166
|
+
pool: PoolWithAddress;
|
|
7167
|
+
rpc?: never;
|
|
7168
|
+
mintA?: never;
|
|
7169
|
+
mintB?: never;
|
|
7170
|
+
}) | (SwapExactInBaseInput & {
|
|
7171
|
+
rpc: Rpc<GetAccountInfoApi>;
|
|
7172
|
+
mintA: Address;
|
|
7173
|
+
mintB: Address;
|
|
7174
|
+
pool?: never;
|
|
7175
|
+
});
|
|
7176
|
+
type SwapExactInResult = {
|
|
7177
|
+
pool: PoolWithAddress;
|
|
7178
|
+
quote: SwapQuote;
|
|
7179
|
+
minAmountOut: bigint;
|
|
7180
|
+
userToken0: Address;
|
|
7181
|
+
userToken1: Address;
|
|
7182
|
+
userIn: Address;
|
|
7183
|
+
userOut: Address;
|
|
7184
|
+
setupInstructions: Instruction[];
|
|
7185
|
+
swapInstruction: Instruction;
|
|
7186
|
+
instructions: Instruction[];
|
|
7187
|
+
};
|
|
7188
|
+
declare function curveSwapExactIn(input: CurveSwapExactInInput): Promise<CurveSwapExactInResult>;
|
|
7189
|
+
declare function swapExactIn(input: SwapExactInInput): Promise<SwapExactInResult>;
|
|
7190
|
+
|
|
7191
|
+
type TokenBalanceRpc = {
|
|
7192
|
+
getTokenAccountBalance(address: Address, config?: {
|
|
7193
|
+
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
7194
|
+
}): {
|
|
7195
|
+
send(): Promise<{
|
|
7196
|
+
value: {
|
|
7197
|
+
amount: string;
|
|
7198
|
+
};
|
|
7199
|
+
}>;
|
|
7200
|
+
};
|
|
7201
|
+
};
|
|
7202
|
+
type MigrateLaunchInput = {
|
|
7203
|
+
deployment?: Pick<SolanaCpmmDeployment, 'initializerProgram' | 'initializerConfig' | 'cpmmMigratorProgram'>;
|
|
7204
|
+
programId?: Address;
|
|
7205
|
+
config?: Address;
|
|
7206
|
+
launch: Address;
|
|
7207
|
+
launchAuthority: Address;
|
|
7208
|
+
baseMint: Address;
|
|
7209
|
+
quoteMint: Address;
|
|
7210
|
+
baseVault: Address;
|
|
7211
|
+
quoteVault: Address;
|
|
7212
|
+
launchFeeState: Address;
|
|
7213
|
+
payer: TransactionSigner;
|
|
7214
|
+
cpmmMigration: CpmmMigrationRemainingAccounts;
|
|
7215
|
+
recipients?: ReadonlyArray<Pick<RecipientArgs, 'wallet'>>;
|
|
7216
|
+
computeUnitLimit?: number | false;
|
|
7217
|
+
baseTokenProgram?: Address;
|
|
7218
|
+
quoteTokenProgram?: Address;
|
|
7219
|
+
systemProgram?: Address;
|
|
7220
|
+
rent?: Address;
|
|
7221
|
+
};
|
|
7222
|
+
type MigrateLaunchResult = {
|
|
7223
|
+
recipientAtaInstructions: Instruction[];
|
|
7224
|
+
computeUnitLimitInstruction?: Instruction;
|
|
7225
|
+
migrateInstruction: Instruction;
|
|
7226
|
+
instructions: Instruction[];
|
|
7227
|
+
};
|
|
7228
|
+
type MigrationQuoteProgress = {
|
|
7229
|
+
quoteVaultAmount: bigint;
|
|
7230
|
+
pendingQuoteFees: bigint;
|
|
7231
|
+
migrationQuoteAmount: bigint;
|
|
7232
|
+
};
|
|
7233
|
+
declare function migrateLaunch(input: MigrateLaunchInput): MigrateLaunchResult;
|
|
7234
|
+
declare function getMigrationQuoteProgress({ rpc, quoteVault, pendingQuoteFees, commitment, }: {
|
|
7235
|
+
rpc: TokenBalanceRpc;
|
|
7236
|
+
quoteVault: Address;
|
|
7237
|
+
pendingQuoteFees: bigint;
|
|
7238
|
+
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
7239
|
+
}): Promise<MigrationQuoteProgress>;
|
|
7240
|
+
declare function assertMigrationQuoteThreshold({ rpc, quoteVault, pendingQuoteFees, minRaiseQuote, commitment, }: {
|
|
7241
|
+
rpc: TokenBalanceRpc;
|
|
7242
|
+
quoteVault: Address;
|
|
7243
|
+
pendingQuoteFees: bigint;
|
|
7244
|
+
minRaiseQuote: bigint;
|
|
7245
|
+
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
7246
|
+
}): Promise<MigrationQuoteProgress>;
|
|
7247
|
+
|
|
7248
|
+
export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchHookMode, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cosignerHook, index$6 as cpmm, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, index$4 as dynamicFeeHook, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };
|