@stabbleorg/mclmm-sdk 0.1.5 → 0.1.7
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/lib/api/config.d.ts +25 -0
- package/lib/api/config.d.ts.map +1 -0
- package/lib/api/index.d.ts +15 -0
- package/lib/api/index.d.ts.map +1 -0
- package/lib/api/pools.d.ts +39 -0
- package/lib/api/pools.d.ts.map +1 -0
- package/lib/client.d.ts +43 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/clmm.d.ts +91 -0
- package/lib/clmm.d.ts.map +1 -0
- package/lib/constants.d.ts +62 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/generated/accounts/ammConfig.d.ts +58 -0
- package/lib/generated/accounts/ammConfig.d.ts.map +1 -0
- package/lib/generated/accounts/index.d.ts +17 -0
- package/lib/generated/accounts/index.d.ts.map +1 -0
- package/lib/generated/accounts/observationState.d.ts +51 -0
- package/lib/generated/accounts/observationState.d.ts.map +1 -0
- package/lib/generated/accounts/operationState.d.ts +38 -0
- package/lib/generated/accounts/operationState.d.ts.map +1 -0
- package/lib/generated/accounts/personalPositionState.d.ts +73 -0
- package/lib/generated/accounts/personalPositionState.d.ts.map +1 -0
- package/lib/generated/accounts/poolState.d.ts +157 -0
- package/lib/generated/accounts/poolState.d.ts.map +1 -0
- package/lib/generated/accounts/protocolPositionState.d.ts +70 -0
- package/lib/generated/accounts/protocolPositionState.d.ts.map +1 -0
- package/lib/generated/accounts/supportMintAssociated.d.ts +36 -0
- package/lib/generated/accounts/supportMintAssociated.d.ts.map +1 -0
- package/lib/generated/accounts/tickArrayBitmapExtension.d.ts +36 -0
- package/lib/generated/accounts/tickArrayBitmapExtension.d.ts.map +1 -0
- package/lib/generated/accounts/tickArrayState.d.ts +39 -0
- package/lib/generated/accounts/tickArrayState.d.ts.map +1 -0
- package/lib/generated/errors/ammV3.d.ts +110 -0
- package/lib/generated/errors/ammV3.d.ts.map +1 -0
- package/lib/generated/errors/index.d.ts +9 -0
- package/lib/generated/errors/index.d.ts.map +1 -0
- package/lib/generated/index.d.ts +13 -0
- package/lib/generated/index.d.ts.map +1 -0
- package/lib/generated/instructions/closePosition.d.ts +78 -0
- package/lib/generated/instructions/closePosition.d.ts.map +1 -0
- package/lib/generated/instructions/closeProtocolPosition.d.ts +40 -0
- package/lib/generated/instructions/closeProtocolPosition.d.ts.map +1 -0
- package/lib/generated/instructions/collectFundFee.d.ts +96 -0
- package/lib/generated/instructions/collectFundFee.d.ts.map +1 -0
- package/lib/generated/instructions/collectProtocolFee.d.ts +96 -0
- package/lib/generated/instructions/collectProtocolFee.d.ts.map +1 -0
- package/lib/generated/instructions/collectRemainingRewards.d.ts +76 -0
- package/lib/generated/instructions/collectRemainingRewards.d.ts.map +1 -0
- package/lib/generated/instructions/createAmmConfig.d.ts +78 -0
- package/lib/generated/instructions/createAmmConfig.d.ts.map +1 -0
- package/lib/generated/instructions/createOperationAccount.d.ts +57 -0
- package/lib/generated/instructions/createOperationAccount.d.ts.map +1 -0
- package/lib/generated/instructions/createPool.d.ts +133 -0
- package/lib/generated/instructions/createPool.d.ts.map +1 -0
- package/lib/generated/instructions/createSupportMintAssociated.d.ts +64 -0
- package/lib/generated/instructions/createSupportMintAssociated.d.ts.map +1 -0
- package/lib/generated/instructions/decreaseLiquidity.d.ts +100 -0
- package/lib/generated/instructions/decreaseLiquidity.d.ts.map +1 -0
- package/lib/generated/instructions/decreaseLiquidityV2.d.ts +120 -0
- package/lib/generated/instructions/decreaseLiquidityV2.d.ts.map +1 -0
- package/lib/generated/instructions/increaseLiquidity.d.ts +100 -0
- package/lib/generated/instructions/increaseLiquidity.d.ts.map +1 -0
- package/lib/generated/instructions/increaseLiquidityV2.d.ts +118 -0
- package/lib/generated/instructions/increaseLiquidityV2.d.ts.map +1 -0
- package/lib/generated/instructions/index.d.ts +34 -0
- package/lib/generated/instructions/index.d.ts.map +1 -0
- package/lib/generated/instructions/initializeReward.d.ts +113 -0
- package/lib/generated/instructions/initializeReward.d.ts.map +1 -0
- package/lib/generated/instructions/openPosition.d.ts +198 -0
- package/lib/generated/instructions/openPosition.d.ts.map +1 -0
- package/lib/generated/instructions/openPositionV2.d.ts +218 -0
- package/lib/generated/instructions/openPositionV2.d.ts.map +1 -0
- package/lib/generated/instructions/openPositionWithToken22Nft.d.ts +201 -0
- package/lib/generated/instructions/openPositionWithToken22Nft.d.ts.map +1 -0
- package/lib/generated/instructions/setRewardParams.d.ts +92 -0
- package/lib/generated/instructions/setRewardParams.d.ts.map +1 -0
- package/lib/generated/instructions/swap.d.ts +95 -0
- package/lib/generated/instructions/swap.d.ts.map +1 -0
- package/lib/generated/instructions/swapRouterBaseIn.d.ts +71 -0
- package/lib/generated/instructions/swapRouterBaseIn.d.ts.map +1 -0
- package/lib/generated/instructions/swapV2.d.ts +112 -0
- package/lib/generated/instructions/swapV2.d.ts.map +1 -0
- package/lib/generated/instructions/transferRewardOwner.d.ts +46 -0
- package/lib/generated/instructions/transferRewardOwner.d.ts.map +1 -0
- package/lib/generated/instructions/updateAmmConfig.d.ts +51 -0
- package/lib/generated/instructions/updateAmmConfig.d.ts.map +1 -0
- package/lib/generated/instructions/updateOperationAccount.d.ts +66 -0
- package/lib/generated/instructions/updateOperationAccount.d.ts.map +1 -0
- package/lib/generated/instructions/updatePoolStatus.d.ts +44 -0
- package/lib/generated/instructions/updatePoolStatus.d.ts.map +1 -0
- package/lib/generated/instructions/updateRewardInfos.d.ts +39 -0
- package/lib/generated/instructions/updateRewardInfos.d.ts.map +1 -0
- package/lib/generated/programs/ammV3.d.ts +109 -0
- package/lib/generated/programs/ammV3.d.ts.map +1 -0
- package/lib/generated/programs/index.d.ts +9 -0
- package/lib/generated/programs/index.d.ts.map +1 -0
- package/lib/generated/shared/index.d.ts +50 -0
- package/lib/generated/shared/index.d.ts.map +1 -0
- package/lib/generated/types/collectPersonalFeeEvent.d.ts +37 -0
- package/lib/generated/types/collectPersonalFeeEvent.d.ts.map +1 -0
- package/lib/generated/types/collectProtocolFeeEvent.d.ts +37 -0
- package/lib/generated/types/collectProtocolFeeEvent.d.ts.map +1 -0
- package/lib/generated/types/configChangeEvent.d.ts +23 -0
- package/lib/generated/types/configChangeEvent.d.ts.map +1 -0
- package/lib/generated/types/createPersonalPositionEvent.d.ts +57 -0
- package/lib/generated/types/createPersonalPositionEvent.d.ts.map +1 -0
- package/lib/generated/types/decreaseLiquidityEvent.d.ts +51 -0
- package/lib/generated/types/decreaseLiquidityEvent.d.ts.map +1 -0
- package/lib/generated/types/increaseLiquidityEvent.d.ts +41 -0
- package/lib/generated/types/increaseLiquidityEvent.d.ts.map +1 -0
- package/lib/generated/types/index.d.ts +23 -0
- package/lib/generated/types/index.d.ts.map +1 -0
- package/lib/generated/types/liquidityCalculateEvent.d.ts +51 -0
- package/lib/generated/types/liquidityCalculateEvent.d.ts.map +1 -0
- package/lib/generated/types/liquidityChangeEvent.d.ts +41 -0
- package/lib/generated/types/liquidityChangeEvent.d.ts.map +1 -0
- package/lib/generated/types/observation.d.ts +29 -0
- package/lib/generated/types/observation.d.ts.map +1 -0
- package/lib/generated/types/poolCreatedEvent.d.ts +52 -0
- package/lib/generated/types/poolCreatedEvent.d.ts.map +1 -0
- package/lib/generated/types/positionRewardInfo.d.ts +20 -0
- package/lib/generated/types/positionRewardInfo.d.ts.map +1 -0
- package/lib/generated/types/rewardInfo.d.ts +66 -0
- package/lib/generated/types/rewardInfo.d.ts.map +1 -0
- package/lib/generated/types/swapEvent.d.ts +77 -0
- package/lib/generated/types/swapEvent.d.ts.map +1 -0
- package/lib/generated/types/tickState.d.ts +42 -0
- package/lib/generated/types/tickState.d.ts.map +1 -0
- package/lib/generated/types/updateRewardInfosEvent.d.ts +21 -0
- package/lib/generated/types/updateRewardInfosEvent.d.ts.map +1 -0
- package/lib/index.d.ts +19 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +9385 -0
- package/lib/index.mjs +10022 -0
- package/lib/pool-manager.d.ts +84 -0
- package/lib/pool-manager.d.ts.map +1 -0
- package/lib/position-manager.d.ts +127 -0
- package/lib/position-manager.d.ts.map +1 -0
- package/lib/rewards.d.ts +7 -0
- package/lib/rewards.d.ts.map +1 -0
- package/lib/swap.d.ts +6 -0
- package/lib/swap.d.ts.map +1 -0
- package/lib/types.d.ts +307 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/utils/index.d.ts +83 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/math.d.ts +51 -0
- package/lib/utils/math.d.ts.map +1 -0
- package/lib/utils/pda.d.ts +80 -0
- package/lib/utils/pda.d.ts.map +1 -0
- package/lib/utils/pool.d.ts +180 -0
- package/lib/utils/pool.d.ts.map +1 -0
- package/lib/utils/tick.d.ts +172 -0
- package/lib/utils/tick.d.ts.map +1 -0
- package/lib/utils/tickQuery.d.ts +13 -0
- package/lib/utils/tickQuery.d.ts.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { AMM_V3_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const CREATE_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getCreatePoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type CreatePoolInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountPoolCreator extends string | AccountMeta<string> = string, TAccountAmmConfig extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TAccountTokenMint0 extends string | AccountMeta<string> = string, TAccountTokenMint1 extends string | AccountMeta<string> = string, TAccountTokenVault0 extends string | AccountMeta<string> = string, TAccountTokenVault1 extends string | AccountMeta<string> = string, TAccountObservationState extends string | AccountMeta<string> = string, TAccountTickArrayBitmap extends string | AccountMeta<string> = string, TAccountTokenProgram0 extends string | AccountMeta<string> = string, TAccountTokenProgram1 extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountPoolCreator extends string ? WritableSignerAccount<TAccountPoolCreator> & AccountSignerMeta<TAccountPoolCreator> : TAccountPoolCreator,
|
|
14
|
+
TAccountAmmConfig extends string ? ReadonlyAccount<TAccountAmmConfig> : TAccountAmmConfig,
|
|
15
|
+
TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState,
|
|
16
|
+
TAccountTokenMint0 extends string ? ReadonlyAccount<TAccountTokenMint0> : TAccountTokenMint0,
|
|
17
|
+
TAccountTokenMint1 extends string ? ReadonlyAccount<TAccountTokenMint1> : TAccountTokenMint1,
|
|
18
|
+
TAccountTokenVault0 extends string ? WritableAccount<TAccountTokenVault0> : TAccountTokenVault0,
|
|
19
|
+
TAccountTokenVault1 extends string ? WritableAccount<TAccountTokenVault1> : TAccountTokenVault1,
|
|
20
|
+
TAccountObservationState extends string ? WritableAccount<TAccountObservationState> : TAccountObservationState,
|
|
21
|
+
TAccountTickArrayBitmap extends string ? WritableAccount<TAccountTickArrayBitmap> : TAccountTickArrayBitmap,
|
|
22
|
+
TAccountTokenProgram0 extends string ? ReadonlyAccount<TAccountTokenProgram0> : TAccountTokenProgram0,
|
|
23
|
+
TAccountTokenProgram1 extends string ? ReadonlyAccount<TAccountTokenProgram1> : TAccountTokenProgram1,
|
|
24
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
25
|
+
TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
|
|
26
|
+
...TRemainingAccounts
|
|
27
|
+
]>;
|
|
28
|
+
export type CreatePoolInstructionData = {
|
|
29
|
+
discriminator: ReadonlyUint8Array;
|
|
30
|
+
sqrtPriceX64: bigint;
|
|
31
|
+
openTime: bigint;
|
|
32
|
+
};
|
|
33
|
+
export type CreatePoolInstructionDataArgs = {
|
|
34
|
+
sqrtPriceX64: number | bigint;
|
|
35
|
+
openTime: number | bigint;
|
|
36
|
+
};
|
|
37
|
+
export declare function getCreatePoolInstructionDataEncoder(): FixedSizeEncoder<CreatePoolInstructionDataArgs>;
|
|
38
|
+
export declare function getCreatePoolInstructionDataDecoder(): FixedSizeDecoder<CreatePoolInstructionData>;
|
|
39
|
+
export declare function getCreatePoolInstructionDataCodec(): FixedSizeCodec<CreatePoolInstructionDataArgs, CreatePoolInstructionData>;
|
|
40
|
+
export type CreatePoolAsyncInput<TAccountPoolCreator extends string = string, TAccountAmmConfig extends string = string, TAccountPoolState extends string = string, TAccountTokenMint0 extends string = string, TAccountTokenMint1 extends string = string, TAccountTokenVault0 extends string = string, TAccountTokenVault1 extends string = string, TAccountObservationState extends string = string, TAccountTickArrayBitmap extends string = string, TAccountTokenProgram0 extends string = string, TAccountTokenProgram1 extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
|
|
41
|
+
/** Address paying to create the pool. Can be anyone */
|
|
42
|
+
poolCreator: TransactionSigner<TAccountPoolCreator>;
|
|
43
|
+
/** Which config the pool belongs to. */
|
|
44
|
+
ammConfig: Address<TAccountAmmConfig>;
|
|
45
|
+
/** Initialize an account to store the pool state */
|
|
46
|
+
poolState?: Address<TAccountPoolState>;
|
|
47
|
+
/** Token_0 mint, the key must be smaller then token_1 mint. */
|
|
48
|
+
tokenMint0: Address<TAccountTokenMint0>;
|
|
49
|
+
/** Token_1 mint */
|
|
50
|
+
tokenMint1: Address<TAccountTokenMint1>;
|
|
51
|
+
tokenVault0?: Address<TAccountTokenVault0>;
|
|
52
|
+
tokenVault1?: Address<TAccountTokenVault1>;
|
|
53
|
+
/** Initialize an account to store oracle observations */
|
|
54
|
+
observationState?: Address<TAccountObservationState>;
|
|
55
|
+
/** Initialize an account to store if a tick array is initialized. */
|
|
56
|
+
tickArrayBitmap?: Address<TAccountTickArrayBitmap>;
|
|
57
|
+
/** Spl token program or token program 2022 */
|
|
58
|
+
tokenProgram0: Address<TAccountTokenProgram0>;
|
|
59
|
+
/** Spl token program or token program 2022 */
|
|
60
|
+
tokenProgram1: Address<TAccountTokenProgram1>;
|
|
61
|
+
/** To create a new program account */
|
|
62
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
63
|
+
/** Sysvar for program account */
|
|
64
|
+
rent?: Address<TAccountRent>;
|
|
65
|
+
sqrtPriceX64: CreatePoolInstructionDataArgs['sqrtPriceX64'];
|
|
66
|
+
openTime: CreatePoolInstructionDataArgs['openTime'];
|
|
67
|
+
};
|
|
68
|
+
export declare function getCreatePoolInstructionAsync<TAccountPoolCreator extends string, TAccountAmmConfig extends string, TAccountPoolState extends string, TAccountTokenMint0 extends string, TAccountTokenMint1 extends string, TAccountTokenVault0 extends string, TAccountTokenVault1 extends string, TAccountObservationState extends string, TAccountTickArrayBitmap extends string, TAccountTokenProgram0 extends string, TAccountTokenProgram1 extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: CreatePoolAsyncInput<TAccountPoolCreator, TAccountAmmConfig, TAccountPoolState, TAccountTokenMint0, TAccountTokenMint1, TAccountTokenVault0, TAccountTokenVault1, TAccountObservationState, TAccountTickArrayBitmap, TAccountTokenProgram0, TAccountTokenProgram1, TAccountSystemProgram, TAccountRent>, config?: {
|
|
69
|
+
programAddress?: TProgramAddress;
|
|
70
|
+
}): Promise<CreatePoolInstruction<TProgramAddress, TAccountPoolCreator, TAccountAmmConfig, TAccountPoolState, TAccountTokenMint0, TAccountTokenMint1, TAccountTokenVault0, TAccountTokenVault1, TAccountObservationState, TAccountTickArrayBitmap, TAccountTokenProgram0, TAccountTokenProgram1, TAccountSystemProgram, TAccountRent>>;
|
|
71
|
+
export type CreatePoolInput<TAccountPoolCreator extends string = string, TAccountAmmConfig extends string = string, TAccountPoolState extends string = string, TAccountTokenMint0 extends string = string, TAccountTokenMint1 extends string = string, TAccountTokenVault0 extends string = string, TAccountTokenVault1 extends string = string, TAccountObservationState extends string = string, TAccountTickArrayBitmap extends string = string, TAccountTokenProgram0 extends string = string, TAccountTokenProgram1 extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
|
|
72
|
+
/** Address paying to create the pool. Can be anyone */
|
|
73
|
+
poolCreator: TransactionSigner<TAccountPoolCreator>;
|
|
74
|
+
/** Which config the pool belongs to. */
|
|
75
|
+
ammConfig: Address<TAccountAmmConfig>;
|
|
76
|
+
/** Initialize an account to store the pool state */
|
|
77
|
+
poolState: Address<TAccountPoolState>;
|
|
78
|
+
/** Token_0 mint, the key must be smaller then token_1 mint. */
|
|
79
|
+
tokenMint0: Address<TAccountTokenMint0>;
|
|
80
|
+
/** Token_1 mint */
|
|
81
|
+
tokenMint1: Address<TAccountTokenMint1>;
|
|
82
|
+
tokenVault0: Address<TAccountTokenVault0>;
|
|
83
|
+
tokenVault1: Address<TAccountTokenVault1>;
|
|
84
|
+
/** Initialize an account to store oracle observations */
|
|
85
|
+
observationState: Address<TAccountObservationState>;
|
|
86
|
+
/** Initialize an account to store if a tick array is initialized. */
|
|
87
|
+
tickArrayBitmap: Address<TAccountTickArrayBitmap>;
|
|
88
|
+
/** Spl token program or token program 2022 */
|
|
89
|
+
tokenProgram0: Address<TAccountTokenProgram0>;
|
|
90
|
+
/** Spl token program or token program 2022 */
|
|
91
|
+
tokenProgram1: Address<TAccountTokenProgram1>;
|
|
92
|
+
/** To create a new program account */
|
|
93
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
94
|
+
/** Sysvar for program account */
|
|
95
|
+
rent?: Address<TAccountRent>;
|
|
96
|
+
sqrtPriceX64: CreatePoolInstructionDataArgs['sqrtPriceX64'];
|
|
97
|
+
openTime: CreatePoolInstructionDataArgs['openTime'];
|
|
98
|
+
};
|
|
99
|
+
export declare function getCreatePoolInstruction<TAccountPoolCreator extends string, TAccountAmmConfig extends string, TAccountPoolState extends string, TAccountTokenMint0 extends string, TAccountTokenMint1 extends string, TAccountTokenVault0 extends string, TAccountTokenVault1 extends string, TAccountObservationState extends string, TAccountTickArrayBitmap extends string, TAccountTokenProgram0 extends string, TAccountTokenProgram1 extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: CreatePoolInput<TAccountPoolCreator, TAccountAmmConfig, TAccountPoolState, TAccountTokenMint0, TAccountTokenMint1, TAccountTokenVault0, TAccountTokenVault1, TAccountObservationState, TAccountTickArrayBitmap, TAccountTokenProgram0, TAccountTokenProgram1, TAccountSystemProgram, TAccountRent>, config?: {
|
|
100
|
+
programAddress?: TProgramAddress;
|
|
101
|
+
}): CreatePoolInstruction<TProgramAddress, TAccountPoolCreator, TAccountAmmConfig, TAccountPoolState, TAccountTokenMint0, TAccountTokenMint1, TAccountTokenVault0, TAccountTokenVault1, TAccountObservationState, TAccountTickArrayBitmap, TAccountTokenProgram0, TAccountTokenProgram1, TAccountSystemProgram, TAccountRent>;
|
|
102
|
+
export type ParsedCreatePoolInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
103
|
+
programAddress: Address<TProgram>;
|
|
104
|
+
accounts: {
|
|
105
|
+
/** Address paying to create the pool. Can be anyone */
|
|
106
|
+
poolCreator: TAccountMetas[0];
|
|
107
|
+
/** Which config the pool belongs to. */
|
|
108
|
+
ammConfig: TAccountMetas[1];
|
|
109
|
+
/** Initialize an account to store the pool state */
|
|
110
|
+
poolState: TAccountMetas[2];
|
|
111
|
+
/** Token_0 mint, the key must be smaller then token_1 mint. */
|
|
112
|
+
tokenMint0: TAccountMetas[3];
|
|
113
|
+
/** Token_1 mint */
|
|
114
|
+
tokenMint1: TAccountMetas[4];
|
|
115
|
+
tokenVault0: TAccountMetas[5];
|
|
116
|
+
tokenVault1: TAccountMetas[6];
|
|
117
|
+
/** Initialize an account to store oracle observations */
|
|
118
|
+
observationState: TAccountMetas[7];
|
|
119
|
+
/** Initialize an account to store if a tick array is initialized. */
|
|
120
|
+
tickArrayBitmap: TAccountMetas[8];
|
|
121
|
+
/** Spl token program or token program 2022 */
|
|
122
|
+
tokenProgram0: TAccountMetas[9];
|
|
123
|
+
/** Spl token program or token program 2022 */
|
|
124
|
+
tokenProgram1: TAccountMetas[10];
|
|
125
|
+
/** To create a new program account */
|
|
126
|
+
systemProgram: TAccountMetas[11];
|
|
127
|
+
/** Sysvar for program account */
|
|
128
|
+
rent: TAccountMetas[12];
|
|
129
|
+
};
|
|
130
|
+
data: CreatePoolInstructionData;
|
|
131
|
+
};
|
|
132
|
+
export declare function parseCreatePoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreatePoolInstruction<TProgram, TAccountMetas>;
|
|
133
|
+
//# sourceMappingURL=createPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPool.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/createPool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAeL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAg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CAAC,CAAC,CAAC;QAChC,8CAA8C;QAC9C,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACjC,sCAAsC;QACtC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACjC,iCAAiC;QACjC,IAAI,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;KACzB,CAAC;IACF,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,2BAA2B,CAAC,QAAQ,EAAE,aAAa,CAAC,CA8BtD"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { AMM_V3_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const CREATE_SUPPORT_MINT_ASSOCIATED_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getCreateSupportMintAssociatedDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type CreateSupportMintAssociatedInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSupportMintAssociated extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
14
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
15
|
+
TAccountSupportMintAssociated extends string ? WritableAccount<TAccountSupportMintAssociated> : TAccountSupportMintAssociated,
|
|
16
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
17
|
+
...TRemainingAccounts
|
|
18
|
+
]>;
|
|
19
|
+
export type CreateSupportMintAssociatedInstructionData = {
|
|
20
|
+
discriminator: ReadonlyUint8Array;
|
|
21
|
+
};
|
|
22
|
+
export type CreateSupportMintAssociatedInstructionDataArgs = {};
|
|
23
|
+
export declare function getCreateSupportMintAssociatedInstructionDataEncoder(): FixedSizeEncoder<CreateSupportMintAssociatedInstructionDataArgs>;
|
|
24
|
+
export declare function getCreateSupportMintAssociatedInstructionDataDecoder(): FixedSizeDecoder<CreateSupportMintAssociatedInstructionData>;
|
|
25
|
+
export declare function getCreateSupportMintAssociatedInstructionDataCodec(): FixedSizeCodec<CreateSupportMintAssociatedInstructionDataArgs, CreateSupportMintAssociatedInstructionData>;
|
|
26
|
+
export type CreateSupportMintAssociatedAsyncInput<TAccountOwner extends string = string, TAccountTokenMint extends string = string, TAccountSupportMintAssociated extends string = string, TAccountSystemProgram extends string = string> = {
|
|
27
|
+
/** Address to be set as protocol owner. */
|
|
28
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
29
|
+
/** Support token mint */
|
|
30
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
31
|
+
/** Initialize support mint state account to store support mint address and bump. */
|
|
32
|
+
supportMintAssociated?: Address<TAccountSupportMintAssociated>;
|
|
33
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
34
|
+
};
|
|
35
|
+
export declare function getCreateSupportMintAssociatedInstructionAsync<TAccountOwner extends string, TAccountTokenMint extends string, TAccountSupportMintAssociated extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: CreateSupportMintAssociatedAsyncInput<TAccountOwner, TAccountTokenMint, TAccountSupportMintAssociated, TAccountSystemProgram>, config?: {
|
|
36
|
+
programAddress?: TProgramAddress;
|
|
37
|
+
}): Promise<CreateSupportMintAssociatedInstruction<TProgramAddress, TAccountOwner, TAccountTokenMint, TAccountSupportMintAssociated, TAccountSystemProgram>>;
|
|
38
|
+
export type CreateSupportMintAssociatedInput<TAccountOwner extends string = string, TAccountTokenMint extends string = string, TAccountSupportMintAssociated extends string = string, TAccountSystemProgram extends string = string> = {
|
|
39
|
+
/** Address to be set as protocol owner. */
|
|
40
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
41
|
+
/** Support token mint */
|
|
42
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
43
|
+
/** Initialize support mint state account to store support mint address and bump. */
|
|
44
|
+
supportMintAssociated: Address<TAccountSupportMintAssociated>;
|
|
45
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
46
|
+
};
|
|
47
|
+
export declare function getCreateSupportMintAssociatedInstruction<TAccountOwner extends string, TAccountTokenMint extends string, TAccountSupportMintAssociated extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: CreateSupportMintAssociatedInput<TAccountOwner, TAccountTokenMint, TAccountSupportMintAssociated, TAccountSystemProgram>, config?: {
|
|
48
|
+
programAddress?: TProgramAddress;
|
|
49
|
+
}): CreateSupportMintAssociatedInstruction<TProgramAddress, TAccountOwner, TAccountTokenMint, TAccountSupportMintAssociated, TAccountSystemProgram>;
|
|
50
|
+
export type ParsedCreateSupportMintAssociatedInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
51
|
+
programAddress: Address<TProgram>;
|
|
52
|
+
accounts: {
|
|
53
|
+
/** Address to be set as protocol owner. */
|
|
54
|
+
owner: TAccountMetas[0];
|
|
55
|
+
/** Support token mint */
|
|
56
|
+
tokenMint: TAccountMetas[1];
|
|
57
|
+
/** Initialize support mint state account to store support mint address and bump. */
|
|
58
|
+
supportMintAssociated: TAccountMetas[2];
|
|
59
|
+
systemProgram: TAccountMetas[3];
|
|
60
|
+
};
|
|
61
|
+
data: CreateSupportMintAssociatedInstructionData;
|
|
62
|
+
};
|
|
63
|
+
export declare function parseCreateSupportMintAssociatedInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateSupportMintAssociatedInstruction<TProgram, TAccountMetas>;
|
|
64
|
+
//# sourceMappingURL=createSupportMintAssociated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSupportMintAssociated.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/createSupportMintAssociated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAOrD,eAAO,MAAM,4CAA4C,yBA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,CAAC,GACxC,4CAA4C,CAAC,QAAQ,EAAE,aAAa,CAAC,CAuBvE"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { AMM_V3_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const DECREASE_LIQUIDITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getDecreaseLiquidityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type DecreaseLiquidityInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountNftOwner extends string | AccountMeta<string> = string, TAccountNftAccount extends string | AccountMeta<string> = string, TAccountPersonalPosition extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountTokenVault0 extends string | AccountMeta<string> = string, TAccountTokenVault1 extends string | AccountMeta<string> = string, TAccountTickArrayLower extends string | AccountMeta<string> = string, TAccountTickArrayUpper extends string | AccountMeta<string> = string, TAccountRecipientTokenAccount0 extends string | AccountMeta<string> = string, TAccountRecipientTokenAccount1 extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountNftOwner extends string ? ReadonlySignerAccount<TAccountNftOwner> & AccountSignerMeta<TAccountNftOwner> : TAccountNftOwner,
|
|
14
|
+
TAccountNftAccount extends string ? ReadonlyAccount<TAccountNftAccount> : TAccountNftAccount,
|
|
15
|
+
TAccountPersonalPosition extends string ? WritableAccount<TAccountPersonalPosition> : TAccountPersonalPosition,
|
|
16
|
+
TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState,
|
|
17
|
+
TAccountProtocolPosition extends string ? ReadonlyAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
|
|
18
|
+
TAccountTokenVault0 extends string ? WritableAccount<TAccountTokenVault0> : TAccountTokenVault0,
|
|
19
|
+
TAccountTokenVault1 extends string ? WritableAccount<TAccountTokenVault1> : TAccountTokenVault1,
|
|
20
|
+
TAccountTickArrayLower extends string ? WritableAccount<TAccountTickArrayLower> : TAccountTickArrayLower,
|
|
21
|
+
TAccountTickArrayUpper extends string ? WritableAccount<TAccountTickArrayUpper> : TAccountTickArrayUpper,
|
|
22
|
+
TAccountRecipientTokenAccount0 extends string ? WritableAccount<TAccountRecipientTokenAccount0> : TAccountRecipientTokenAccount0,
|
|
23
|
+
TAccountRecipientTokenAccount1 extends string ? WritableAccount<TAccountRecipientTokenAccount1> : TAccountRecipientTokenAccount1,
|
|
24
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
25
|
+
...TRemainingAccounts
|
|
26
|
+
]>;
|
|
27
|
+
export type DecreaseLiquidityInstructionData = {
|
|
28
|
+
discriminator: ReadonlyUint8Array;
|
|
29
|
+
liquidity: bigint;
|
|
30
|
+
amount0Min: bigint;
|
|
31
|
+
amount1Min: bigint;
|
|
32
|
+
};
|
|
33
|
+
export type DecreaseLiquidityInstructionDataArgs = {
|
|
34
|
+
liquidity: number | bigint;
|
|
35
|
+
amount0Min: number | bigint;
|
|
36
|
+
amount1Min: number | bigint;
|
|
37
|
+
};
|
|
38
|
+
export declare function getDecreaseLiquidityInstructionDataEncoder(): FixedSizeEncoder<DecreaseLiquidityInstructionDataArgs>;
|
|
39
|
+
export declare function getDecreaseLiquidityInstructionDataDecoder(): FixedSizeDecoder<DecreaseLiquidityInstructionData>;
|
|
40
|
+
export declare function getDecreaseLiquidityInstructionDataCodec(): FixedSizeCodec<DecreaseLiquidityInstructionDataArgs, DecreaseLiquidityInstructionData>;
|
|
41
|
+
export type DecreaseLiquidityInput<TAccountNftOwner extends string = string, TAccountNftAccount extends string = string, TAccountPersonalPosition extends string = string, TAccountPoolState extends string = string, TAccountProtocolPosition extends string = string, TAccountTokenVault0 extends string = string, TAccountTokenVault1 extends string = string, TAccountTickArrayLower extends string = string, TAccountTickArrayUpper extends string = string, TAccountRecipientTokenAccount0 extends string = string, TAccountRecipientTokenAccount1 extends string = string, TAccountTokenProgram extends string = string> = {
|
|
42
|
+
/** The position owner or delegated authority */
|
|
43
|
+
nftOwner: TransactionSigner<TAccountNftOwner>;
|
|
44
|
+
/** The token account for the tokenized position */
|
|
45
|
+
nftAccount: Address<TAccountNftAccount>;
|
|
46
|
+
/** Decrease liquidity for this position */
|
|
47
|
+
personalPosition: Address<TAccountPersonalPosition>;
|
|
48
|
+
poolState: Address<TAccountPoolState>;
|
|
49
|
+
protocolPosition: Address<TAccountProtocolPosition>;
|
|
50
|
+
/** Token_0 vault */
|
|
51
|
+
tokenVault0: Address<TAccountTokenVault0>;
|
|
52
|
+
/** Token_1 vault */
|
|
53
|
+
tokenVault1: Address<TAccountTokenVault1>;
|
|
54
|
+
/** Stores init state for the lower tick */
|
|
55
|
+
tickArrayLower: Address<TAccountTickArrayLower>;
|
|
56
|
+
/** Stores init state for the upper tick */
|
|
57
|
+
tickArrayUpper: Address<TAccountTickArrayUpper>;
|
|
58
|
+
/** The destination token account for receive amount_0 */
|
|
59
|
+
recipientTokenAccount0: Address<TAccountRecipientTokenAccount0>;
|
|
60
|
+
/** The destination token account for receive amount_1 */
|
|
61
|
+
recipientTokenAccount1: Address<TAccountRecipientTokenAccount1>;
|
|
62
|
+
/** SPL program to transfer out tokens */
|
|
63
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
64
|
+
liquidity: DecreaseLiquidityInstructionDataArgs['liquidity'];
|
|
65
|
+
amount0Min: DecreaseLiquidityInstructionDataArgs['amount0Min'];
|
|
66
|
+
amount1Min: DecreaseLiquidityInstructionDataArgs['amount1Min'];
|
|
67
|
+
};
|
|
68
|
+
export declare function getDecreaseLiquidityInstruction<TAccountNftOwner extends string, TAccountNftAccount extends string, TAccountPersonalPosition extends string, TAccountPoolState extends string, TAccountProtocolPosition extends string, TAccountTokenVault0 extends string, TAccountTokenVault1 extends string, TAccountTickArrayLower extends string, TAccountTickArrayUpper extends string, TAccountRecipientTokenAccount0 extends string, TAccountRecipientTokenAccount1 extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: DecreaseLiquidityInput<TAccountNftOwner, TAccountNftAccount, TAccountPersonalPosition, TAccountPoolState, TAccountProtocolPosition, TAccountTokenVault0, TAccountTokenVault1, TAccountTickArrayLower, TAccountTickArrayUpper, TAccountRecipientTokenAccount0, TAccountRecipientTokenAccount1, TAccountTokenProgram>, config?: {
|
|
69
|
+
programAddress?: TProgramAddress;
|
|
70
|
+
}): DecreaseLiquidityInstruction<TProgramAddress, TAccountNftOwner, TAccountNftAccount, TAccountPersonalPosition, TAccountPoolState, TAccountProtocolPosition, TAccountTokenVault0, TAccountTokenVault1, TAccountTickArrayLower, TAccountTickArrayUpper, TAccountRecipientTokenAccount0, TAccountRecipientTokenAccount1, TAccountTokenProgram>;
|
|
71
|
+
export type ParsedDecreaseLiquidityInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
72
|
+
programAddress: Address<TProgram>;
|
|
73
|
+
accounts: {
|
|
74
|
+
/** The position owner or delegated authority */
|
|
75
|
+
nftOwner: TAccountMetas[0];
|
|
76
|
+
/** The token account for the tokenized position */
|
|
77
|
+
nftAccount: TAccountMetas[1];
|
|
78
|
+
/** Decrease liquidity for this position */
|
|
79
|
+
personalPosition: TAccountMetas[2];
|
|
80
|
+
poolState: TAccountMetas[3];
|
|
81
|
+
protocolPosition: TAccountMetas[4];
|
|
82
|
+
/** Token_0 vault */
|
|
83
|
+
tokenVault0: TAccountMetas[5];
|
|
84
|
+
/** Token_1 vault */
|
|
85
|
+
tokenVault1: TAccountMetas[6];
|
|
86
|
+
/** Stores init state for the lower tick */
|
|
87
|
+
tickArrayLower: TAccountMetas[7];
|
|
88
|
+
/** Stores init state for the upper tick */
|
|
89
|
+
tickArrayUpper: TAccountMetas[8];
|
|
90
|
+
/** The destination token account for receive amount_0 */
|
|
91
|
+
recipientTokenAccount0: TAccountMetas[9];
|
|
92
|
+
/** The destination token account for receive amount_1 */
|
|
93
|
+
recipientTokenAccount1: TAccountMetas[10];
|
|
94
|
+
/** SPL program to transfer out tokens */
|
|
95
|
+
tokenProgram: TAccountMetas[11];
|
|
96
|
+
};
|
|
97
|
+
data: DecreaseLiquidityInstructionData;
|
|
98
|
+
};
|
|
99
|
+
export declare function parseDecreaseLiquidityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDecreaseLiquidityInstruction<TProgram, TAccountMetas>;
|
|
100
|
+
//# sourceMappingURL=decreaseLiquidity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decreaseLiquidity.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/decreaseLiquidity.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAaL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,g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C,EAAE,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,gCAAgC,CAAC;CACxC,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,kCAAkC,CAAC,QAAQ,EAAE,aAAa,CAAC,CA6B7D"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { AMM_V3_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const DECREASE_LIQUIDITY_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getDecreaseLiquidityV2DiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type DecreaseLiquidityV2Instruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountNftOwner extends string | AccountMeta<string> = string, TAccountNftAccount extends string | AccountMeta<string> = string, TAccountPersonalPosition extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountTokenVault0 extends string | AccountMeta<string> = string, TAccountTokenVault1 extends string | AccountMeta<string> = string, TAccountTickArrayLower extends string | AccountMeta<string> = string, TAccountTickArrayUpper extends string | AccountMeta<string> = string, TAccountRecipientTokenAccount0 extends string | AccountMeta<string> = string, TAccountRecipientTokenAccount1 extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountTokenProgram2022 extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountMemoProgram extends string | AccountMeta<string> = 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr', TAccountVault0Mint extends string | AccountMeta<string> = string, TAccountVault1Mint extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountNftOwner extends string ? ReadonlySignerAccount<TAccountNftOwner> & AccountSignerMeta<TAccountNftOwner> : TAccountNftOwner,
|
|
14
|
+
TAccountNftAccount extends string ? ReadonlyAccount<TAccountNftAccount> : TAccountNftAccount,
|
|
15
|
+
TAccountPersonalPosition extends string ? WritableAccount<TAccountPersonalPosition> : TAccountPersonalPosition,
|
|
16
|
+
TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState,
|
|
17
|
+
TAccountProtocolPosition extends string ? ReadonlyAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
|
|
18
|
+
TAccountTokenVault0 extends string ? WritableAccount<TAccountTokenVault0> : TAccountTokenVault0,
|
|
19
|
+
TAccountTokenVault1 extends string ? WritableAccount<TAccountTokenVault1> : TAccountTokenVault1,
|
|
20
|
+
TAccountTickArrayLower extends string ? WritableAccount<TAccountTickArrayLower> : TAccountTickArrayLower,
|
|
21
|
+
TAccountTickArrayUpper extends string ? WritableAccount<TAccountTickArrayUpper> : TAccountTickArrayUpper,
|
|
22
|
+
TAccountRecipientTokenAccount0 extends string ? WritableAccount<TAccountRecipientTokenAccount0> : TAccountRecipientTokenAccount0,
|
|
23
|
+
TAccountRecipientTokenAccount1 extends string ? WritableAccount<TAccountRecipientTokenAccount1> : TAccountRecipientTokenAccount1,
|
|
24
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
25
|
+
TAccountTokenProgram2022 extends string ? ReadonlyAccount<TAccountTokenProgram2022> : TAccountTokenProgram2022,
|
|
26
|
+
TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram,
|
|
27
|
+
TAccountVault0Mint extends string ? ReadonlyAccount<TAccountVault0Mint> : TAccountVault0Mint,
|
|
28
|
+
TAccountVault1Mint extends string ? ReadonlyAccount<TAccountVault1Mint> : TAccountVault1Mint,
|
|
29
|
+
...TRemainingAccounts
|
|
30
|
+
]>;
|
|
31
|
+
export type DecreaseLiquidityV2InstructionData = {
|
|
32
|
+
discriminator: ReadonlyUint8Array;
|
|
33
|
+
liquidity: bigint;
|
|
34
|
+
amount0Min: bigint;
|
|
35
|
+
amount1Min: bigint;
|
|
36
|
+
};
|
|
37
|
+
export type DecreaseLiquidityV2InstructionDataArgs = {
|
|
38
|
+
liquidity: number | bigint;
|
|
39
|
+
amount0Min: number | bigint;
|
|
40
|
+
amount1Min: number | bigint;
|
|
41
|
+
};
|
|
42
|
+
export declare function getDecreaseLiquidityV2InstructionDataEncoder(): FixedSizeEncoder<DecreaseLiquidityV2InstructionDataArgs>;
|
|
43
|
+
export declare function getDecreaseLiquidityV2InstructionDataDecoder(): FixedSizeDecoder<DecreaseLiquidityV2InstructionData>;
|
|
44
|
+
export declare function getDecreaseLiquidityV2InstructionDataCodec(): FixedSizeCodec<DecreaseLiquidityV2InstructionDataArgs, DecreaseLiquidityV2InstructionData>;
|
|
45
|
+
export type DecreaseLiquidityV2Input<TAccountNftOwner extends string = string, TAccountNftAccount extends string = string, TAccountPersonalPosition extends string = string, TAccountPoolState extends string = string, TAccountProtocolPosition extends string = string, TAccountTokenVault0 extends string = string, TAccountTokenVault1 extends string = string, TAccountTickArrayLower extends string = string, TAccountTickArrayUpper extends string = string, TAccountRecipientTokenAccount0 extends string = string, TAccountRecipientTokenAccount1 extends string = string, TAccountTokenProgram extends string = string, TAccountTokenProgram2022 extends string = string, TAccountMemoProgram extends string = string, TAccountVault0Mint extends string = string, TAccountVault1Mint extends string = string> = {
|
|
46
|
+
/** The position owner or delegated authority */
|
|
47
|
+
nftOwner: TransactionSigner<TAccountNftOwner>;
|
|
48
|
+
/** The token account for the tokenized position */
|
|
49
|
+
nftAccount: Address<TAccountNftAccount>;
|
|
50
|
+
/** Decrease liquidity for this position */
|
|
51
|
+
personalPosition: Address<TAccountPersonalPosition>;
|
|
52
|
+
poolState: Address<TAccountPoolState>;
|
|
53
|
+
protocolPosition: Address<TAccountProtocolPosition>;
|
|
54
|
+
/** Token_0 vault */
|
|
55
|
+
tokenVault0: Address<TAccountTokenVault0>;
|
|
56
|
+
/** Token_1 vault */
|
|
57
|
+
tokenVault1: Address<TAccountTokenVault1>;
|
|
58
|
+
/** Stores init state for the lower tick */
|
|
59
|
+
tickArrayLower: Address<TAccountTickArrayLower>;
|
|
60
|
+
/** Stores init state for the upper tick */
|
|
61
|
+
tickArrayUpper: Address<TAccountTickArrayUpper>;
|
|
62
|
+
/** The destination token account for receive amount_0 */
|
|
63
|
+
recipientTokenAccount0: Address<TAccountRecipientTokenAccount0>;
|
|
64
|
+
/** The destination token account for receive amount_1 */
|
|
65
|
+
recipientTokenAccount1: Address<TAccountRecipientTokenAccount1>;
|
|
66
|
+
/** SPL program to transfer out tokens */
|
|
67
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
68
|
+
/** Token program 2022 */
|
|
69
|
+
tokenProgram2022?: Address<TAccountTokenProgram2022>;
|
|
70
|
+
/** memo program */
|
|
71
|
+
memoProgram?: Address<TAccountMemoProgram>;
|
|
72
|
+
/** The mint of token vault 0 */
|
|
73
|
+
vault0Mint: Address<TAccountVault0Mint>;
|
|
74
|
+
/** The mint of token vault 1 */
|
|
75
|
+
vault1Mint: Address<TAccountVault1Mint>;
|
|
76
|
+
liquidity: DecreaseLiquidityV2InstructionDataArgs['liquidity'];
|
|
77
|
+
amount0Min: DecreaseLiquidityV2InstructionDataArgs['amount0Min'];
|
|
78
|
+
amount1Min: DecreaseLiquidityV2InstructionDataArgs['amount1Min'];
|
|
79
|
+
};
|
|
80
|
+
export declare function getDecreaseLiquidityV2Instruction<TAccountNftOwner extends string, TAccountNftAccount extends string, TAccountPersonalPosition extends string, TAccountPoolState extends string, TAccountProtocolPosition extends string, TAccountTokenVault0 extends string, TAccountTokenVault1 extends string, TAccountTickArrayLower extends string, TAccountTickArrayUpper extends string, TAccountRecipientTokenAccount0 extends string, TAccountRecipientTokenAccount1 extends string, TAccountTokenProgram extends string, TAccountTokenProgram2022 extends string, TAccountMemoProgram extends string, TAccountVault0Mint extends string, TAccountVault1Mint extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: DecreaseLiquidityV2Input<TAccountNftOwner, TAccountNftAccount, TAccountPersonalPosition, TAccountPoolState, TAccountProtocolPosition, TAccountTokenVault0, TAccountTokenVault1, TAccountTickArrayLower, TAccountTickArrayUpper, TAccountRecipientTokenAccount0, TAccountRecipientTokenAccount1, TAccountTokenProgram, TAccountTokenProgram2022, TAccountMemoProgram, TAccountVault0Mint, TAccountVault1Mint>, config?: {
|
|
81
|
+
programAddress?: TProgramAddress;
|
|
82
|
+
}): DecreaseLiquidityV2Instruction<TProgramAddress, TAccountNftOwner, TAccountNftAccount, TAccountPersonalPosition, TAccountPoolState, TAccountProtocolPosition, TAccountTokenVault0, TAccountTokenVault1, TAccountTickArrayLower, TAccountTickArrayUpper, TAccountRecipientTokenAccount0, TAccountRecipientTokenAccount1, TAccountTokenProgram, TAccountTokenProgram2022, TAccountMemoProgram, TAccountVault0Mint, TAccountVault1Mint>;
|
|
83
|
+
export type ParsedDecreaseLiquidityV2Instruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
84
|
+
programAddress: Address<TProgram>;
|
|
85
|
+
accounts: {
|
|
86
|
+
/** The position owner or delegated authority */
|
|
87
|
+
nftOwner: TAccountMetas[0];
|
|
88
|
+
/** The token account for the tokenized position */
|
|
89
|
+
nftAccount: TAccountMetas[1];
|
|
90
|
+
/** Decrease liquidity for this position */
|
|
91
|
+
personalPosition: TAccountMetas[2];
|
|
92
|
+
poolState: TAccountMetas[3];
|
|
93
|
+
protocolPosition: TAccountMetas[4];
|
|
94
|
+
/** Token_0 vault */
|
|
95
|
+
tokenVault0: TAccountMetas[5];
|
|
96
|
+
/** Token_1 vault */
|
|
97
|
+
tokenVault1: TAccountMetas[6];
|
|
98
|
+
/** Stores init state for the lower tick */
|
|
99
|
+
tickArrayLower: TAccountMetas[7];
|
|
100
|
+
/** Stores init state for the upper tick */
|
|
101
|
+
tickArrayUpper: TAccountMetas[8];
|
|
102
|
+
/** The destination token account for receive amount_0 */
|
|
103
|
+
recipientTokenAccount0: TAccountMetas[9];
|
|
104
|
+
/** The destination token account for receive amount_1 */
|
|
105
|
+
recipientTokenAccount1: TAccountMetas[10];
|
|
106
|
+
/** SPL program to transfer out tokens */
|
|
107
|
+
tokenProgram: TAccountMetas[11];
|
|
108
|
+
/** Token program 2022 */
|
|
109
|
+
tokenProgram2022: TAccountMetas[12];
|
|
110
|
+
/** memo program */
|
|
111
|
+
memoProgram: TAccountMetas[13];
|
|
112
|
+
/** The mint of token vault 0 */
|
|
113
|
+
vault0Mint: TAccountMetas[14];
|
|
114
|
+
/** The mint of token vault 1 */
|
|
115
|
+
vault1Mint: TAccountMetas[15];
|
|
116
|
+
};
|
|
117
|
+
data: DecreaseLiquidityV2InstructionData;
|
|
118
|
+
};
|
|
119
|
+
export declare function parseDecreaseLiquidityV2Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDecreaseLiquidityV2Instruction<TProgram, TAccountMetas>;
|
|
120
|
+
//# sourceMappingURL=decreaseLiquidityV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decreaseLiquidityV2.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/decreaseLiquidityV2.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAaL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,eAAO,MAAM,mCAAmC,yBAE9C,CAAC;AAEH,wBAAgB,wCAAwC,uBAIvD;AAED,MAAM,MAAM,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,gBAAgB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAChE,wBAAwB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACtE,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,wBAAwB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACtE,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,mBAAmB,SAAS,MAAM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AC,CAAC,CAAC;QAC9B,oBAAoB;QACpB,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,2CAA2C;QAC3C,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACjC,2CAA2C;QAC3C,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACjC,yDAAyD;QACzD,sBAAsB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACzC,yDAAyD;QACzD,sBAAsB,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QAC1C,yCAAyC;QACzC,YAAY,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QAChC,yBAAyB;QACzB,gBAAgB,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACpC,mBAAmB;QACnB,WAAW,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QAC/B,gCAAgC;QAChC,UAAU,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QAC9B,gCAAgC;QAChC,UAAU,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,kCAAkC,CAAC;CAC1C,CAAC;AAEF,wBAAgB,mCAAmC,CACjD,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,oCAAoC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAmC/D"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { AMM_V3_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const INCREASE_LIQUIDITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getIncreaseLiquidityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type IncreaseLiquidityInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountNftOwner extends string | AccountMeta<string> = string, TAccountNftAccount extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountPersonalPosition extends string | AccountMeta<string> = string, TAccountTickArrayLower extends string | AccountMeta<string> = string, TAccountTickArrayUpper extends string | AccountMeta<string> = string, TAccountTokenAccount0 extends string | AccountMeta<string> = string, TAccountTokenAccount1 extends string | AccountMeta<string> = string, TAccountTokenVault0 extends string | AccountMeta<string> = string, TAccountTokenVault1 extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountNftOwner extends string ? ReadonlySignerAccount<TAccountNftOwner> & AccountSignerMeta<TAccountNftOwner> : TAccountNftOwner,
|
|
14
|
+
TAccountNftAccount extends string ? ReadonlyAccount<TAccountNftAccount> : TAccountNftAccount,
|
|
15
|
+
TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState,
|
|
16
|
+
TAccountProtocolPosition extends string ? ReadonlyAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
|
|
17
|
+
TAccountPersonalPosition extends string ? WritableAccount<TAccountPersonalPosition> : TAccountPersonalPosition,
|
|
18
|
+
TAccountTickArrayLower extends string ? WritableAccount<TAccountTickArrayLower> : TAccountTickArrayLower,
|
|
19
|
+
TAccountTickArrayUpper extends string ? WritableAccount<TAccountTickArrayUpper> : TAccountTickArrayUpper,
|
|
20
|
+
TAccountTokenAccount0 extends string ? WritableAccount<TAccountTokenAccount0> : TAccountTokenAccount0,
|
|
21
|
+
TAccountTokenAccount1 extends string ? WritableAccount<TAccountTokenAccount1> : TAccountTokenAccount1,
|
|
22
|
+
TAccountTokenVault0 extends string ? WritableAccount<TAccountTokenVault0> : TAccountTokenVault0,
|
|
23
|
+
TAccountTokenVault1 extends string ? WritableAccount<TAccountTokenVault1> : TAccountTokenVault1,
|
|
24
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
25
|
+
...TRemainingAccounts
|
|
26
|
+
]>;
|
|
27
|
+
export type IncreaseLiquidityInstructionData = {
|
|
28
|
+
discriminator: ReadonlyUint8Array;
|
|
29
|
+
liquidity: bigint;
|
|
30
|
+
amount0Max: bigint;
|
|
31
|
+
amount1Max: bigint;
|
|
32
|
+
};
|
|
33
|
+
export type IncreaseLiquidityInstructionDataArgs = {
|
|
34
|
+
liquidity: number | bigint;
|
|
35
|
+
amount0Max: number | bigint;
|
|
36
|
+
amount1Max: number | bigint;
|
|
37
|
+
};
|
|
38
|
+
export declare function getIncreaseLiquidityInstructionDataEncoder(): FixedSizeEncoder<IncreaseLiquidityInstructionDataArgs>;
|
|
39
|
+
export declare function getIncreaseLiquidityInstructionDataDecoder(): FixedSizeDecoder<IncreaseLiquidityInstructionData>;
|
|
40
|
+
export declare function getIncreaseLiquidityInstructionDataCodec(): FixedSizeCodec<IncreaseLiquidityInstructionDataArgs, IncreaseLiquidityInstructionData>;
|
|
41
|
+
export type IncreaseLiquidityInput<TAccountNftOwner extends string = string, TAccountNftAccount extends string = string, TAccountPoolState extends string = string, TAccountProtocolPosition extends string = string, TAccountPersonalPosition extends string = string, TAccountTickArrayLower extends string = string, TAccountTickArrayUpper extends string = string, TAccountTokenAccount0 extends string = string, TAccountTokenAccount1 extends string = string, TAccountTokenVault0 extends string = string, TAccountTokenVault1 extends string = string, TAccountTokenProgram extends string = string> = {
|
|
42
|
+
/** Pays to mint the position */
|
|
43
|
+
nftOwner: TransactionSigner<TAccountNftOwner>;
|
|
44
|
+
/** The token account for nft */
|
|
45
|
+
nftAccount: Address<TAccountNftAccount>;
|
|
46
|
+
poolState: Address<TAccountPoolState>;
|
|
47
|
+
protocolPosition: Address<TAccountProtocolPosition>;
|
|
48
|
+
/** Increase liquidity for this position */
|
|
49
|
+
personalPosition: Address<TAccountPersonalPosition>;
|
|
50
|
+
/** Stores init state for the lower tick */
|
|
51
|
+
tickArrayLower: Address<TAccountTickArrayLower>;
|
|
52
|
+
/** Stores init state for the upper tick */
|
|
53
|
+
tickArrayUpper: Address<TAccountTickArrayUpper>;
|
|
54
|
+
/** The payer's token account for token_0 */
|
|
55
|
+
tokenAccount0: Address<TAccountTokenAccount0>;
|
|
56
|
+
/** The token account spending token_1 to mint the position */
|
|
57
|
+
tokenAccount1: Address<TAccountTokenAccount1>;
|
|
58
|
+
/** The address that holds pool tokens for token_0 */
|
|
59
|
+
tokenVault0: Address<TAccountTokenVault0>;
|
|
60
|
+
/** The address that holds pool tokens for token_1 */
|
|
61
|
+
tokenVault1: Address<TAccountTokenVault1>;
|
|
62
|
+
/** Program to create mint account and mint tokens */
|
|
63
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
64
|
+
liquidity: IncreaseLiquidityInstructionDataArgs['liquidity'];
|
|
65
|
+
amount0Max: IncreaseLiquidityInstructionDataArgs['amount0Max'];
|
|
66
|
+
amount1Max: IncreaseLiquidityInstructionDataArgs['amount1Max'];
|
|
67
|
+
};
|
|
68
|
+
export declare function getIncreaseLiquidityInstruction<TAccountNftOwner extends string, TAccountNftAccount extends string, TAccountPoolState extends string, TAccountProtocolPosition extends string, TAccountPersonalPosition extends string, TAccountTickArrayLower extends string, TAccountTickArrayUpper extends string, TAccountTokenAccount0 extends string, TAccountTokenAccount1 extends string, TAccountTokenVault0 extends string, TAccountTokenVault1 extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: IncreaseLiquidityInput<TAccountNftOwner, TAccountNftAccount, TAccountPoolState, TAccountProtocolPosition, TAccountPersonalPosition, TAccountTickArrayLower, TAccountTickArrayUpper, TAccountTokenAccount0, TAccountTokenAccount1, TAccountTokenVault0, TAccountTokenVault1, TAccountTokenProgram>, config?: {
|
|
69
|
+
programAddress?: TProgramAddress;
|
|
70
|
+
}): IncreaseLiquidityInstruction<TProgramAddress, TAccountNftOwner, TAccountNftAccount, TAccountPoolState, TAccountProtocolPosition, TAccountPersonalPosition, TAccountTickArrayLower, TAccountTickArrayUpper, TAccountTokenAccount0, TAccountTokenAccount1, TAccountTokenVault0, TAccountTokenVault1, TAccountTokenProgram>;
|
|
71
|
+
export type ParsedIncreaseLiquidityInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
72
|
+
programAddress: Address<TProgram>;
|
|
73
|
+
accounts: {
|
|
74
|
+
/** Pays to mint the position */
|
|
75
|
+
nftOwner: TAccountMetas[0];
|
|
76
|
+
/** The token account for nft */
|
|
77
|
+
nftAccount: TAccountMetas[1];
|
|
78
|
+
poolState: TAccountMetas[2];
|
|
79
|
+
protocolPosition: TAccountMetas[3];
|
|
80
|
+
/** Increase liquidity for this position */
|
|
81
|
+
personalPosition: TAccountMetas[4];
|
|
82
|
+
/** Stores init state for the lower tick */
|
|
83
|
+
tickArrayLower: TAccountMetas[5];
|
|
84
|
+
/** Stores init state for the upper tick */
|
|
85
|
+
tickArrayUpper: TAccountMetas[6];
|
|
86
|
+
/** The payer's token account for token_0 */
|
|
87
|
+
tokenAccount0: TAccountMetas[7];
|
|
88
|
+
/** The token account spending token_1 to mint the position */
|
|
89
|
+
tokenAccount1: TAccountMetas[8];
|
|
90
|
+
/** The address that holds pool tokens for token_0 */
|
|
91
|
+
tokenVault0: TAccountMetas[9];
|
|
92
|
+
/** The address that holds pool tokens for token_1 */
|
|
93
|
+
tokenVault1: TAccountMetas[10];
|
|
94
|
+
/** Program to create mint account and mint tokens */
|
|
95
|
+
tokenProgram: TAccountMetas[11];
|
|
96
|
+
};
|
|
97
|
+
data: IncreaseLiquidityInstructionData;
|
|
98
|
+
};
|
|
99
|
+
export declare function parseIncreaseLiquidityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIncreaseLiquidityInstruction<TProgram, TAccountMetas>;
|
|
100
|
+
//# sourceMappingURL=increaseLiquidity.d.ts.map
|