@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,157 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
import { type RewardInfo, type RewardInfoArgs } from '../types';
|
|
10
|
+
export declare const POOL_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getPoolStateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type PoolState = {
|
|
13
|
+
discriminator: ReadonlyUint8Array;
|
|
14
|
+
/** Bump to identify PDA */
|
|
15
|
+
bump: ReadonlyUint8Array;
|
|
16
|
+
ammConfig: Address;
|
|
17
|
+
owner: Address;
|
|
18
|
+
/** Token pair of the pool, where token_mint_0 address < token_mint_1 address */
|
|
19
|
+
tokenMint0: Address;
|
|
20
|
+
tokenMint1: Address;
|
|
21
|
+
/** Token pair vault */
|
|
22
|
+
tokenVault0: Address;
|
|
23
|
+
tokenVault1: Address;
|
|
24
|
+
/** observation account key */
|
|
25
|
+
observationKey: Address;
|
|
26
|
+
/** mint0 and mint1 decimals */
|
|
27
|
+
mintDecimals0: number;
|
|
28
|
+
mintDecimals1: number;
|
|
29
|
+
/** The minimum number of ticks between initialized ticks */
|
|
30
|
+
tickSpacing: number;
|
|
31
|
+
/** The currently in range liquidity available to the pool. */
|
|
32
|
+
liquidity: bigint;
|
|
33
|
+
/** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */
|
|
34
|
+
sqrtPriceX64: bigint;
|
|
35
|
+
/** The current tick of the pool, i.e. according to the last tick transition that was run. */
|
|
36
|
+
tickCurrent: number;
|
|
37
|
+
padding3: number;
|
|
38
|
+
padding4: number;
|
|
39
|
+
/**
|
|
40
|
+
* The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per
|
|
41
|
+
* unit of liquidity for the entire life of the pool.
|
|
42
|
+
*/
|
|
43
|
+
feeGrowthGlobal0X64: bigint;
|
|
44
|
+
feeGrowthGlobal1X64: bigint;
|
|
45
|
+
/** The amounts of token_0 and token_1 that are owed to the protocol. */
|
|
46
|
+
protocolFeesToken0: bigint;
|
|
47
|
+
protocolFeesToken1: bigint;
|
|
48
|
+
/** The amounts in and out of swap token_0 and token_1 */
|
|
49
|
+
swapInAmountToken0: bigint;
|
|
50
|
+
swapOutAmountToken1: bigint;
|
|
51
|
+
swapInAmountToken1: bigint;
|
|
52
|
+
swapOutAmountToken0: bigint;
|
|
53
|
+
/**
|
|
54
|
+
* Bitwise representation of the state of the pool
|
|
55
|
+
* bit0, 1: disable open position and increase liquidity, 0: normal
|
|
56
|
+
* bit1, 1: disable decrease liquidity, 0: normal
|
|
57
|
+
* bit2, 1: disable collect fee, 0: normal
|
|
58
|
+
* bit3, 1: disable collect reward, 0: normal
|
|
59
|
+
* bit4, 1: disable swap, 0: normal
|
|
60
|
+
*/
|
|
61
|
+
status: number;
|
|
62
|
+
/** Leave blank for future use */
|
|
63
|
+
padding: ReadonlyUint8Array;
|
|
64
|
+
rewardInfos: Array<RewardInfo>;
|
|
65
|
+
/** Packed initialized tick array state */
|
|
66
|
+
tickArrayBitmap: Array<bigint>;
|
|
67
|
+
/** except protocol_fee and fund_fee */
|
|
68
|
+
totalFeesToken0: bigint;
|
|
69
|
+
/** except protocol_fee and fund_fee */
|
|
70
|
+
totalFeesClaimedToken0: bigint;
|
|
71
|
+
totalFeesToken1: bigint;
|
|
72
|
+
totalFeesClaimedToken1: bigint;
|
|
73
|
+
fundFeesToken0: bigint;
|
|
74
|
+
fundFeesToken1: bigint;
|
|
75
|
+
openTime: bigint;
|
|
76
|
+
recentEpoch: bigint;
|
|
77
|
+
padding1: Array<bigint>;
|
|
78
|
+
padding2: Array<bigint>;
|
|
79
|
+
};
|
|
80
|
+
export type PoolStateArgs = {
|
|
81
|
+
/** Bump to identify PDA */
|
|
82
|
+
bump: ReadonlyUint8Array;
|
|
83
|
+
ammConfig: Address;
|
|
84
|
+
owner: Address;
|
|
85
|
+
/** Token pair of the pool, where token_mint_0 address < token_mint_1 address */
|
|
86
|
+
tokenMint0: Address;
|
|
87
|
+
tokenMint1: Address;
|
|
88
|
+
/** Token pair vault */
|
|
89
|
+
tokenVault0: Address;
|
|
90
|
+
tokenVault1: Address;
|
|
91
|
+
/** observation account key */
|
|
92
|
+
observationKey: Address;
|
|
93
|
+
/** mint0 and mint1 decimals */
|
|
94
|
+
mintDecimals0: number;
|
|
95
|
+
mintDecimals1: number;
|
|
96
|
+
/** The minimum number of ticks between initialized ticks */
|
|
97
|
+
tickSpacing: number;
|
|
98
|
+
/** The currently in range liquidity available to the pool. */
|
|
99
|
+
liquidity: number | bigint;
|
|
100
|
+
/** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */
|
|
101
|
+
sqrtPriceX64: number | bigint;
|
|
102
|
+
/** The current tick of the pool, i.e. according to the last tick transition that was run. */
|
|
103
|
+
tickCurrent: number;
|
|
104
|
+
padding3: number;
|
|
105
|
+
padding4: number;
|
|
106
|
+
/**
|
|
107
|
+
* The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per
|
|
108
|
+
* unit of liquidity for the entire life of the pool.
|
|
109
|
+
*/
|
|
110
|
+
feeGrowthGlobal0X64: number | bigint;
|
|
111
|
+
feeGrowthGlobal1X64: number | bigint;
|
|
112
|
+
/** The amounts of token_0 and token_1 that are owed to the protocol. */
|
|
113
|
+
protocolFeesToken0: number | bigint;
|
|
114
|
+
protocolFeesToken1: number | bigint;
|
|
115
|
+
/** The amounts in and out of swap token_0 and token_1 */
|
|
116
|
+
swapInAmountToken0: number | bigint;
|
|
117
|
+
swapOutAmountToken1: number | bigint;
|
|
118
|
+
swapInAmountToken1: number | bigint;
|
|
119
|
+
swapOutAmountToken0: number | bigint;
|
|
120
|
+
/**
|
|
121
|
+
* Bitwise representation of the state of the pool
|
|
122
|
+
* bit0, 1: disable open position and increase liquidity, 0: normal
|
|
123
|
+
* bit1, 1: disable decrease liquidity, 0: normal
|
|
124
|
+
* bit2, 1: disable collect fee, 0: normal
|
|
125
|
+
* bit3, 1: disable collect reward, 0: normal
|
|
126
|
+
* bit4, 1: disable swap, 0: normal
|
|
127
|
+
*/
|
|
128
|
+
status: number;
|
|
129
|
+
/** Leave blank for future use */
|
|
130
|
+
padding: ReadonlyUint8Array;
|
|
131
|
+
rewardInfos: Array<RewardInfoArgs>;
|
|
132
|
+
/** Packed initialized tick array state */
|
|
133
|
+
tickArrayBitmap: Array<number | bigint>;
|
|
134
|
+
/** except protocol_fee and fund_fee */
|
|
135
|
+
totalFeesToken0: number | bigint;
|
|
136
|
+
/** except protocol_fee and fund_fee */
|
|
137
|
+
totalFeesClaimedToken0: number | bigint;
|
|
138
|
+
totalFeesToken1: number | bigint;
|
|
139
|
+
totalFeesClaimedToken1: number | bigint;
|
|
140
|
+
fundFeesToken0: number | bigint;
|
|
141
|
+
fundFeesToken1: number | bigint;
|
|
142
|
+
openTime: number | bigint;
|
|
143
|
+
recentEpoch: number | bigint;
|
|
144
|
+
padding1: Array<number | bigint>;
|
|
145
|
+
padding2: Array<number | bigint>;
|
|
146
|
+
};
|
|
147
|
+
export declare function getPoolStateEncoder(): FixedSizeEncoder<PoolStateArgs>;
|
|
148
|
+
export declare function getPoolStateDecoder(): FixedSizeDecoder<PoolState>;
|
|
149
|
+
export declare function getPoolStateCodec(): FixedSizeCodec<PoolStateArgs, PoolState>;
|
|
150
|
+
export declare function decodePoolState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PoolState, TAddress>;
|
|
151
|
+
export declare function decodePoolState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PoolState, TAddress>;
|
|
152
|
+
export declare function fetchPoolState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PoolState, TAddress>>;
|
|
153
|
+
export declare function fetchMaybePoolState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PoolState, TAddress>>;
|
|
154
|
+
export declare function fetchAllPoolState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PoolState>[]>;
|
|
155
|
+
export declare function fetchAllMaybePoolState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PoolState>[]>;
|
|
156
|
+
export declare function getPoolStateSize(): number;
|
|
157
|
+
//# sourceMappingURL=poolState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poolState.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/poolState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAsBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,wBAAwB,yBAEnC,CAAC;AAEH,wBAAgB,8BAA8B,uBAE7C;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,aAAa,EAAE,kBAAkB,CAAC;IAClC,2BAA2B;IAC3B,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,gFAAgF;IAChF,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,uBAAuB;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,8BAA8B;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,+BAA+B;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,mBAAmB,EAAE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AC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAG5C;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAI/B;AAED,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,CAGpC;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const PROTOCOL_POSITION_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getProtocolPositionStateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type ProtocolPositionState = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
/** Bump to identify PDA */
|
|
14
|
+
bump: number;
|
|
15
|
+
/** The ID of the pool with which this token is connected */
|
|
16
|
+
poolId: Address;
|
|
17
|
+
/** The lower bound tick of the position */
|
|
18
|
+
tickLowerIndex: number;
|
|
19
|
+
/** The upper bound tick of the position */
|
|
20
|
+
tickUpperIndex: number;
|
|
21
|
+
/** The amount of liquidity owned by this position */
|
|
22
|
+
liquidity: bigint;
|
|
23
|
+
/** The token_0 fee growth per unit of liquidity as of the last update to liquidity or fees owed */
|
|
24
|
+
feeGrowthInside0LastX64: bigint;
|
|
25
|
+
/** The token_1 fee growth per unit of liquidity as of the last update to liquidity or fees owed */
|
|
26
|
+
feeGrowthInside1LastX64: bigint;
|
|
27
|
+
/** The fees owed to the position owner in token_0 */
|
|
28
|
+
tokenFeesOwed0: bigint;
|
|
29
|
+
/** The fees owed to the position owner in token_1 */
|
|
30
|
+
tokenFeesOwed1: bigint;
|
|
31
|
+
/** The reward growth per unit of liquidity as of the last update to liquidity */
|
|
32
|
+
rewardGrowthInside: Array<bigint>;
|
|
33
|
+
recentEpoch: bigint;
|
|
34
|
+
padding: Array<bigint>;
|
|
35
|
+
};
|
|
36
|
+
export type ProtocolPositionStateArgs = {
|
|
37
|
+
/** Bump to identify PDA */
|
|
38
|
+
bump: number;
|
|
39
|
+
/** The ID of the pool with which this token is connected */
|
|
40
|
+
poolId: Address;
|
|
41
|
+
/** The lower bound tick of the position */
|
|
42
|
+
tickLowerIndex: number;
|
|
43
|
+
/** The upper bound tick of the position */
|
|
44
|
+
tickUpperIndex: number;
|
|
45
|
+
/** The amount of liquidity owned by this position */
|
|
46
|
+
liquidity: number | bigint;
|
|
47
|
+
/** The token_0 fee growth per unit of liquidity as of the last update to liquidity or fees owed */
|
|
48
|
+
feeGrowthInside0LastX64: number | bigint;
|
|
49
|
+
/** The token_1 fee growth per unit of liquidity as of the last update to liquidity or fees owed */
|
|
50
|
+
feeGrowthInside1LastX64: number | bigint;
|
|
51
|
+
/** The fees owed to the position owner in token_0 */
|
|
52
|
+
tokenFeesOwed0: number | bigint;
|
|
53
|
+
/** The fees owed to the position owner in token_1 */
|
|
54
|
+
tokenFeesOwed1: number | bigint;
|
|
55
|
+
/** The reward growth per unit of liquidity as of the last update to liquidity */
|
|
56
|
+
rewardGrowthInside: Array<number | bigint>;
|
|
57
|
+
recentEpoch: number | bigint;
|
|
58
|
+
padding: Array<number | bigint>;
|
|
59
|
+
};
|
|
60
|
+
export declare function getProtocolPositionStateEncoder(): FixedSizeEncoder<ProtocolPositionStateArgs>;
|
|
61
|
+
export declare function getProtocolPositionStateDecoder(): FixedSizeDecoder<ProtocolPositionState>;
|
|
62
|
+
export declare function getProtocolPositionStateCodec(): FixedSizeCodec<ProtocolPositionStateArgs, ProtocolPositionState>;
|
|
63
|
+
export declare function decodeProtocolPositionState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ProtocolPositionState, TAddress>;
|
|
64
|
+
export declare function decodeProtocolPositionState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ProtocolPositionState, TAddress>;
|
|
65
|
+
export declare function fetchProtocolPositionState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ProtocolPositionState, TAddress>>;
|
|
66
|
+
export declare function fetchMaybeProtocolPositionState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ProtocolPositionState, TAddress>>;
|
|
67
|
+
export declare function fetchAllProtocolPositionState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ProtocolPositionState>[]>;
|
|
68
|
+
export declare function fetchAllMaybeProtocolPositionState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ProtocolPositionState>[]>;
|
|
69
|
+
export declare function getProtocolPositionStateSize(): number;
|
|
70
|
+
//# sourceMappingURL=protocolPositionState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolPositionState.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/protocolPositionState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAoBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,qCAAqC,yBAEhD,CAAC;AAEH,wBAAgB,0CAA0C,uBAIzD;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,kBAAkB,CAAC;IAClC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,MAAM,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,mGAAmG;IACnG,uBAAuB,EAAE,MAAM,CAAC;IAChC,mGAAmG;IACnG,uBAAuB,EAAE,MAAM,CAAC;IAChC,qDAAqD;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,MAAM,EAAE,OAAO,CAAC;IAChB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OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC,CAQnD;AAED,wBAAsB,+BAA+B,CACnD,QAAQ,SAAS,MAAM,GAAG,MAAM,EAEhC,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC,CAGxD;AAED,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAQ3C;AAED,wBAAsB,kCAAkC,CACtD,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAKhD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAErD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const SUPPORT_MINT_ASSOCIATED_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getSupportMintAssociatedDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type SupportMintAssociated = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
/** Bump to identify PDA */
|
|
14
|
+
bump: number;
|
|
15
|
+
/** Address of the supported token22 mint */
|
|
16
|
+
mint: Address;
|
|
17
|
+
padding: Array<bigint>;
|
|
18
|
+
};
|
|
19
|
+
export type SupportMintAssociatedArgs = {
|
|
20
|
+
/** Bump to identify PDA */
|
|
21
|
+
bump: number;
|
|
22
|
+
/** Address of the supported token22 mint */
|
|
23
|
+
mint: Address;
|
|
24
|
+
padding: Array<number | bigint>;
|
|
25
|
+
};
|
|
26
|
+
export declare function getSupportMintAssociatedEncoder(): FixedSizeEncoder<SupportMintAssociatedArgs>;
|
|
27
|
+
export declare function getSupportMintAssociatedDecoder(): FixedSizeDecoder<SupportMintAssociated>;
|
|
28
|
+
export declare function getSupportMintAssociatedCodec(): FixedSizeCodec<SupportMintAssociatedArgs, SupportMintAssociated>;
|
|
29
|
+
export declare function decodeSupportMintAssociated<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<SupportMintAssociated, TAddress>;
|
|
30
|
+
export declare function decodeSupportMintAssociated<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<SupportMintAssociated, TAddress>;
|
|
31
|
+
export declare function fetchSupportMintAssociated<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<SupportMintAssociated, TAddress>>;
|
|
32
|
+
export declare function fetchMaybeSupportMintAssociated<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SupportMintAssociated, TAddress>>;
|
|
33
|
+
export declare function fetchAllSupportMintAssociated(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<SupportMintAssociated>[]>;
|
|
34
|
+
export declare function fetchAllMaybeSupportMintAssociated(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<SupportMintAssociated>[]>;
|
|
35
|
+
export declare function getSupportMintAssociatedSize(): number;
|
|
36
|
+
//# sourceMappingURL=supportMintAssociated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportMintAssociated.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/supportMintAssociated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAgBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,qCAAqC,yBAEhD,CAAC;AAEH,wBAAgB,0CAA0C,uBAIzD;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,kBAAkB,CAAC;IAClC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,IAAI,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AAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAQ3C;AAED,wBAAsB,kCAAkC,CACtD,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAKhD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAErD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const TICK_ARRAY_BITMAP_EXTENSION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getTickArrayBitmapExtensionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type TickArrayBitmapExtension = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
poolId: Address;
|
|
14
|
+
/** Packed initialized tick array state for start_tick_index is positive */
|
|
15
|
+
positiveTickArrayBitmap: Array<Array<bigint>>;
|
|
16
|
+
/** Packed initialized tick array state for start_tick_index is negitive */
|
|
17
|
+
negativeTickArrayBitmap: Array<Array<bigint>>;
|
|
18
|
+
};
|
|
19
|
+
export type TickArrayBitmapExtensionArgs = {
|
|
20
|
+
poolId: Address;
|
|
21
|
+
/** Packed initialized tick array state for start_tick_index is positive */
|
|
22
|
+
positiveTickArrayBitmap: Array<Array<number | bigint>>;
|
|
23
|
+
/** Packed initialized tick array state for start_tick_index is negitive */
|
|
24
|
+
negativeTickArrayBitmap: Array<Array<number | bigint>>;
|
|
25
|
+
};
|
|
26
|
+
export declare function getTickArrayBitmapExtensionEncoder(): FixedSizeEncoder<TickArrayBitmapExtensionArgs>;
|
|
27
|
+
export declare function getTickArrayBitmapExtensionDecoder(): FixedSizeDecoder<TickArrayBitmapExtension>;
|
|
28
|
+
export declare function getTickArrayBitmapExtensionCodec(): FixedSizeCodec<TickArrayBitmapExtensionArgs, TickArrayBitmapExtension>;
|
|
29
|
+
export declare function decodeTickArrayBitmapExtension<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TickArrayBitmapExtension, TAddress>;
|
|
30
|
+
export declare function decodeTickArrayBitmapExtension<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TickArrayBitmapExtension, TAddress>;
|
|
31
|
+
export declare function fetchTickArrayBitmapExtension<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TickArrayBitmapExtension, TAddress>>;
|
|
32
|
+
export declare function fetchMaybeTickArrayBitmapExtension<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TickArrayBitmapExtension, TAddress>>;
|
|
33
|
+
export declare function fetchAllTickArrayBitmapExtension(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TickArrayBitmapExtension>[]>;
|
|
34
|
+
export declare function fetchAllMaybeTickArrayBitmapExtension(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TickArrayBitmapExtension>[]>;
|
|
35
|
+
export declare function getTickArrayBitmapExtensionSize(): number;
|
|
36
|
+
//# sourceMappingURL=tickArrayBitmapExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickArrayBitmapExtension.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/tickArrayBitmapExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAcpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,yCAAyC,yBAEpD,CAAC;AAEH,wBAAgB,6CAA6C,uBAI5D;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,2EAA2E;IAC3E,uBAAuB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9C,2EAA2E;IAC3E,uBAAuB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,2EAA2E;IAC3E,uBAAuB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IACvD,2EAA2E;IAC3E,uBAAuB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF,wBAAgB,kCAA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,GAC3B,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAQ9C;AAED,wBAAsB,qCAAqC,CACzD,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAKnD;AAED,wBAAgB,+BAA+B,IAAI,MAAM,CAExD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
import { type TickState, type TickStateArgs } from '../types';
|
|
10
|
+
export declare const TICK_ARRAY_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getTickArrayStateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type TickArrayState = {
|
|
13
|
+
discriminator: ReadonlyUint8Array;
|
|
14
|
+
poolId: Address;
|
|
15
|
+
startTickIndex: number;
|
|
16
|
+
ticks: Array<TickState>;
|
|
17
|
+
initializedTickCount: number;
|
|
18
|
+
recentEpoch: bigint;
|
|
19
|
+
padding: ReadonlyUint8Array;
|
|
20
|
+
};
|
|
21
|
+
export type TickArrayStateArgs = {
|
|
22
|
+
poolId: Address;
|
|
23
|
+
startTickIndex: number;
|
|
24
|
+
ticks: Array<TickStateArgs>;
|
|
25
|
+
initializedTickCount: number;
|
|
26
|
+
recentEpoch: number | bigint;
|
|
27
|
+
padding: ReadonlyUint8Array;
|
|
28
|
+
};
|
|
29
|
+
export declare function getTickArrayStateEncoder(): FixedSizeEncoder<TickArrayStateArgs>;
|
|
30
|
+
export declare function getTickArrayStateDecoder(): FixedSizeDecoder<TickArrayState>;
|
|
31
|
+
export declare function getTickArrayStateCodec(): FixedSizeCodec<TickArrayStateArgs, TickArrayState>;
|
|
32
|
+
export declare function decodeTickArrayState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TickArrayState, TAddress>;
|
|
33
|
+
export declare function decodeTickArrayState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TickArrayState, TAddress>;
|
|
34
|
+
export declare function fetchTickArrayState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TickArrayState, TAddress>>;
|
|
35
|
+
export declare function fetchMaybeTickArrayState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TickArrayState, TAddress>>;
|
|
36
|
+
export declare function fetchAllTickArrayState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TickArrayState>[]>;
|
|
37
|
+
export declare function fetchAllMaybeTickArrayState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TickArrayState>[]>;
|
|
38
|
+
export declare function getTickArrayStateSize(): number;
|
|
39
|
+
//# sourceMappingURL=tickArrayState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickArrayState.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/tickArrayState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EA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AAC,CAKzC;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
|
|
9
|
+
/** LOK: LOK */
|
|
10
|
+
export declare const AMM_V3_ERROR__L_O_K = 6000;
|
|
11
|
+
/** NotApproved: Not approved */
|
|
12
|
+
export declare const AMM_V3_ERROR__NOT_APPROVED = 6001;
|
|
13
|
+
/** InvalidUpdateConfigFlag: invalid update amm config flag */
|
|
14
|
+
export declare const AMM_V3_ERROR__INVALID_UPDATE_CONFIG_FLAG = 6002;
|
|
15
|
+
/** AccountLack: Account lack */
|
|
16
|
+
export declare const AMM_V3_ERROR__ACCOUNT_LACK = 6003;
|
|
17
|
+
/** ClosePositionErr: Remove liquitity, collect fees owed and reward then you can close position account */
|
|
18
|
+
export declare const AMM_V3_ERROR__CLOSE_POSITION_ERR = 6004;
|
|
19
|
+
/** ZeroMintAmount: Minting amount should be greater than 0 */
|
|
20
|
+
export declare const AMM_V3_ERROR__ZERO_MINT_AMOUNT = 6005;
|
|
21
|
+
/** InvalidTickIndex: Tick out of range */
|
|
22
|
+
export declare const AMM_V3_ERROR__INVALID_TICK_INDEX = 6006;
|
|
23
|
+
/** TickInvalidOrder: The lower tick must be below the upper tick */
|
|
24
|
+
export declare const AMM_V3_ERROR__TICK_INVALID_ORDER = 6007;
|
|
25
|
+
/** TickLowerOverflow: The tick must be greater, or equal to the minimum tick(-443636) */
|
|
26
|
+
export declare const AMM_V3_ERROR__TICK_LOWER_OVERFLOW = 6008;
|
|
27
|
+
/** TickUpperOverflow: The tick must be lesser than, or equal to the maximum tick(443636) */
|
|
28
|
+
export declare const AMM_V3_ERROR__TICK_UPPER_OVERFLOW = 6009;
|
|
29
|
+
/** TickAndSpacingNotMatch: tick % tick_spacing must be zero */
|
|
30
|
+
export declare const AMM_V3_ERROR__TICK_AND_SPACING_NOT_MATCH = 6010;
|
|
31
|
+
/** InvalidTickArray: Invalid tick array account */
|
|
32
|
+
export declare const AMM_V3_ERROR__INVALID_TICK_ARRAY = 6011;
|
|
33
|
+
/** InvalidTickArrayBoundary: Invalid tick array boundary */
|
|
34
|
+
export declare const AMM_V3_ERROR__INVALID_TICK_ARRAY_BOUNDARY = 6012;
|
|
35
|
+
/** SqrtPriceLimitOverflow: Square root price limit overflow */
|
|
36
|
+
export declare const AMM_V3_ERROR__SQRT_PRICE_LIMIT_OVERFLOW = 6013;
|
|
37
|
+
/** SqrtPriceX64: sqrt_price_x64 out of range */
|
|
38
|
+
export declare const AMM_V3_ERROR__SQRT_PRICE_X64 = 6014;
|
|
39
|
+
/** LiquiditySubValueErr: Liquidity sub delta L must be smaller than before */
|
|
40
|
+
export declare const AMM_V3_ERROR__LIQUIDITY_SUB_VALUE_ERR = 6015;
|
|
41
|
+
/** LiquidityAddValueErr: Liquidity add delta L must be greater, or equal to before */
|
|
42
|
+
export declare const AMM_V3_ERROR__LIQUIDITY_ADD_VALUE_ERR = 6016;
|
|
43
|
+
/** InvalidLiquidity: Invalid liquidity when update position */
|
|
44
|
+
export declare const AMM_V3_ERROR__INVALID_LIQUIDITY = 6017;
|
|
45
|
+
/** ForbidBothZeroForSupplyLiquidity: Both token amount must not be zero while supply liquidity */
|
|
46
|
+
export declare const AMM_V3_ERROR__FORBID_BOTH_ZERO_FOR_SUPPLY_LIQUIDITY = 6018;
|
|
47
|
+
/** LiquidityInsufficient: Liquidity insufficient */
|
|
48
|
+
export declare const AMM_V3_ERROR__LIQUIDITY_INSUFFICIENT = 6019;
|
|
49
|
+
/** TransactionTooOld: Transaction too old */
|
|
50
|
+
export declare const AMM_V3_ERROR__TRANSACTION_TOO_OLD = 6020;
|
|
51
|
+
/** PriceSlippageCheck: Price slippage check */
|
|
52
|
+
export declare const AMM_V3_ERROR__PRICE_SLIPPAGE_CHECK = 6021;
|
|
53
|
+
/** TooLittleOutputReceived: Too little output received */
|
|
54
|
+
export declare const AMM_V3_ERROR__TOO_LITTLE_OUTPUT_RECEIVED = 6022;
|
|
55
|
+
/** TooMuchInputPaid: Too much input paid */
|
|
56
|
+
export declare const AMM_V3_ERROR__TOO_MUCH_INPUT_PAID = 6023;
|
|
57
|
+
/** ZeroAmountSpecified: Swap special amount can not be zero */
|
|
58
|
+
export declare const AMM_V3_ERROR__ZERO_AMOUNT_SPECIFIED = 6024;
|
|
59
|
+
/** InvalidInputPoolVault: Input pool vault is invalid */
|
|
60
|
+
export declare const AMM_V3_ERROR__INVALID_INPUT_POOL_VAULT = 6025;
|
|
61
|
+
/** TooSmallInputOrOutputAmount: Swap input or output amount is too small */
|
|
62
|
+
export declare const AMM_V3_ERROR__TOO_SMALL_INPUT_OR_OUTPUT_AMOUNT = 6026;
|
|
63
|
+
/** NotEnoughTickArrayAccount: Not enought tick array account */
|
|
64
|
+
export declare const AMM_V3_ERROR__NOT_ENOUGH_TICK_ARRAY_ACCOUNT = 6027;
|
|
65
|
+
/** InvalidFirstTickArrayAccount: Invalid first tick array account */
|
|
66
|
+
export declare const AMM_V3_ERROR__INVALID_FIRST_TICK_ARRAY_ACCOUNT = 6028;
|
|
67
|
+
/** InvalidRewardIndex: Invalid reward index */
|
|
68
|
+
export declare const AMM_V3_ERROR__INVALID_REWARD_INDEX = 6029;
|
|
69
|
+
/** FullRewardInfo: The init reward token reach to the max */
|
|
70
|
+
export declare const AMM_V3_ERROR__FULL_REWARD_INFO = 6030;
|
|
71
|
+
/** RewardTokenAlreadyInUse: The init reward token already in use */
|
|
72
|
+
export declare const AMM_V3_ERROR__REWARD_TOKEN_ALREADY_IN_USE = 6031;
|
|
73
|
+
/** ExceptRewardMint: The reward tokens must contain one of pool vault mint except the last reward */
|
|
74
|
+
export declare const AMM_V3_ERROR__EXCEPT_REWARD_MINT = 6032;
|
|
75
|
+
/** InvalidRewardInitParam: Invalid reward init param */
|
|
76
|
+
export declare const AMM_V3_ERROR__INVALID_REWARD_INIT_PARAM = 6033;
|
|
77
|
+
/** InvalidRewardDesiredAmount: Invalid collect reward desired amount */
|
|
78
|
+
export declare const AMM_V3_ERROR__INVALID_REWARD_DESIRED_AMOUNT = 6034;
|
|
79
|
+
/** InvalidRewardInputAccountNumber: Invalid collect reward input account number */
|
|
80
|
+
export declare const AMM_V3_ERROR__INVALID_REWARD_INPUT_ACCOUNT_NUMBER = 6035;
|
|
81
|
+
/** InvalidRewardPeriod: Invalid reward period */
|
|
82
|
+
export declare const AMM_V3_ERROR__INVALID_REWARD_PERIOD = 6036;
|
|
83
|
+
/** NotApproveUpdateRewardEmissiones: Modification of emissiones is allowed within 72 hours from the end of the previous cycle */
|
|
84
|
+
export declare const AMM_V3_ERROR__NOT_APPROVE_UPDATE_REWARD_EMISSIONES = 6037;
|
|
85
|
+
/** UnInitializedRewardInfo: uninitialized reward info */
|
|
86
|
+
export declare const AMM_V3_ERROR__UN_INITIALIZED_REWARD_INFO = 6038;
|
|
87
|
+
/** NotSupportMint: Not support token_2022 mint extension */
|
|
88
|
+
export declare const AMM_V3_ERROR__NOT_SUPPORT_MINT = 6039;
|
|
89
|
+
/** MissingTickArrayBitmapExtensionAccount: Missing tickarray bitmap extension account */
|
|
90
|
+
export declare const AMM_V3_ERROR__MISSING_TICK_ARRAY_BITMAP_EXTENSION_ACCOUNT = 6040;
|
|
91
|
+
/** InsufficientLiquidityForDirection: Insufficient liquidity for this direction */
|
|
92
|
+
export declare const AMM_V3_ERROR__INSUFFICIENT_LIQUIDITY_FOR_DIRECTION = 6041;
|
|
93
|
+
/** MaxTokenOverflow: Max token overflow */
|
|
94
|
+
export declare const AMM_V3_ERROR__MAX_TOKEN_OVERFLOW = 6042;
|
|
95
|
+
/** CalculateOverflow: Calculate overflow */
|
|
96
|
+
export declare const AMM_V3_ERROR__CALCULATE_OVERFLOW = 6043;
|
|
97
|
+
/** TransferFeeCalculateNotMatch: TransferFee calculate not match */
|
|
98
|
+
export declare const AMM_V3_ERROR__TRANSFER_FEE_CALCULATE_NOT_MATCH = 6044;
|
|
99
|
+
export type AmmV3Error = typeof AMM_V3_ERROR__ACCOUNT_LACK | typeof AMM_V3_ERROR__CALCULATE_OVERFLOW | typeof AMM_V3_ERROR__CLOSE_POSITION_ERR | typeof AMM_V3_ERROR__EXCEPT_REWARD_MINT | typeof AMM_V3_ERROR__FORBID_BOTH_ZERO_FOR_SUPPLY_LIQUIDITY | typeof AMM_V3_ERROR__FULL_REWARD_INFO | typeof AMM_V3_ERROR__INSUFFICIENT_LIQUIDITY_FOR_DIRECTION | typeof AMM_V3_ERROR__INVALID_FIRST_TICK_ARRAY_ACCOUNT | typeof AMM_V3_ERROR__INVALID_INPUT_POOL_VAULT | typeof AMM_V3_ERROR__INVALID_LIQUIDITY | typeof AMM_V3_ERROR__INVALID_REWARD_DESIRED_AMOUNT | typeof AMM_V3_ERROR__INVALID_REWARD_INDEX | typeof AMM_V3_ERROR__INVALID_REWARD_INIT_PARAM | typeof AMM_V3_ERROR__INVALID_REWARD_INPUT_ACCOUNT_NUMBER | typeof AMM_V3_ERROR__INVALID_REWARD_PERIOD | typeof AMM_V3_ERROR__INVALID_TICK_ARRAY | typeof AMM_V3_ERROR__INVALID_TICK_ARRAY_BOUNDARY | typeof AMM_V3_ERROR__INVALID_TICK_INDEX | typeof AMM_V3_ERROR__INVALID_UPDATE_CONFIG_FLAG | typeof AMM_V3_ERROR__LIQUIDITY_ADD_VALUE_ERR | typeof AMM_V3_ERROR__LIQUIDITY_INSUFFICIENT | typeof AMM_V3_ERROR__LIQUIDITY_SUB_VALUE_ERR | typeof AMM_V3_ERROR__L_O_K | typeof AMM_V3_ERROR__MAX_TOKEN_OVERFLOW | typeof AMM_V3_ERROR__MISSING_TICK_ARRAY_BITMAP_EXTENSION_ACCOUNT | typeof AMM_V3_ERROR__NOT_APPROVED | typeof AMM_V3_ERROR__NOT_APPROVE_UPDATE_REWARD_EMISSIONES | typeof AMM_V3_ERROR__NOT_ENOUGH_TICK_ARRAY_ACCOUNT | typeof AMM_V3_ERROR__NOT_SUPPORT_MINT | typeof AMM_V3_ERROR__PRICE_SLIPPAGE_CHECK | typeof AMM_V3_ERROR__REWARD_TOKEN_ALREADY_IN_USE | typeof AMM_V3_ERROR__SQRT_PRICE_LIMIT_OVERFLOW | typeof AMM_V3_ERROR__SQRT_PRICE_X64 | typeof AMM_V3_ERROR__TICK_AND_SPACING_NOT_MATCH | typeof AMM_V3_ERROR__TICK_INVALID_ORDER | typeof AMM_V3_ERROR__TICK_LOWER_OVERFLOW | typeof AMM_V3_ERROR__TICK_UPPER_OVERFLOW | typeof AMM_V3_ERROR__TOO_LITTLE_OUTPUT_RECEIVED | typeof AMM_V3_ERROR__TOO_MUCH_INPUT_PAID | typeof AMM_V3_ERROR__TOO_SMALL_INPUT_OR_OUTPUT_AMOUNT | typeof AMM_V3_ERROR__TRANSACTION_TOO_OLD | typeof AMM_V3_ERROR__TRANSFER_FEE_CALCULATE_NOT_MATCH | typeof AMM_V3_ERROR__UN_INITIALIZED_REWARD_INFO | typeof AMM_V3_ERROR__ZERO_AMOUNT_SPECIFIED | typeof AMM_V3_ERROR__ZERO_MINT_AMOUNT;
|
|
100
|
+
export declare function getAmmV3ErrorMessage(code: AmmV3Error): string;
|
|
101
|
+
export declare function isAmmV3Error<TProgramErrorCode extends AmmV3Error>(error: unknown, transactionMessage: {
|
|
102
|
+
instructions: Record<number, {
|
|
103
|
+
programAddress: Address;
|
|
104
|
+
}>;
|
|
105
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
106
|
+
context: Readonly<{
|
|
107
|
+
code: TProgramErrorCode;
|
|
108
|
+
}>;
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CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAM7D;AAED,wBAAgB,YAAY,CAAC,iBAAiB,SAAS,UAAU,EAC/D,KAAK,EAAE,OAAO,EACd,kBAAkB,EAAE;IAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3D,EACD,IAAI,CAAC,EAAE,iBAAiB,GACvB,KAAK,IAAI,WAAW,CAAC,OAAO,uCAAuC,CAAC,GACrE,QAAQ,CAAC;IAAE,OAAO,EAAE,QAAQ,CAAC;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAO7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export * from './ammV3';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export * from './accounts';
|
|
9
|
+
export * from './errors';
|
|
10
|
+
export * from './instructions';
|
|
11
|
+
export * from './programs';
|
|
12
|
+
export * from './types';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 CLOSE_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getClosePositionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type ClosePositionInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountNftOwner extends string | AccountMeta<string> = string, TAccountPositionNftMint extends string | AccountMeta<string> = string, TAccountPositionNftAccount extends string | AccountMeta<string> = string, TAccountPersonalPosition extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountNftOwner extends string ? WritableSignerAccount<TAccountNftOwner> & AccountSignerMeta<TAccountNftOwner> : TAccountNftOwner,
|
|
14
|
+
TAccountPositionNftMint extends string ? WritableAccount<TAccountPositionNftMint> : TAccountPositionNftMint,
|
|
15
|
+
TAccountPositionNftAccount extends string ? WritableAccount<TAccountPositionNftAccount> : TAccountPositionNftAccount,
|
|
16
|
+
TAccountPersonalPosition extends string ? WritableAccount<TAccountPersonalPosition> : TAccountPersonalPosition,
|
|
17
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
19
|
+
...TRemainingAccounts
|
|
20
|
+
]>;
|
|
21
|
+
export type ClosePositionInstructionData = {
|
|
22
|
+
discriminator: ReadonlyUint8Array;
|
|
23
|
+
};
|
|
24
|
+
export type ClosePositionInstructionDataArgs = {};
|
|
25
|
+
export declare function getClosePositionInstructionDataEncoder(): FixedSizeEncoder<ClosePositionInstructionDataArgs>;
|
|
26
|
+
export declare function getClosePositionInstructionDataDecoder(): FixedSizeDecoder<ClosePositionInstructionData>;
|
|
27
|
+
export declare function getClosePositionInstructionDataCodec(): FixedSizeCodec<ClosePositionInstructionDataArgs, ClosePositionInstructionData>;
|
|
28
|
+
export type ClosePositionAsyncInput<TAccountNftOwner extends string = string, TAccountPositionNftMint extends string = string, TAccountPositionNftAccount extends string = string, TAccountPersonalPosition extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
29
|
+
/** The position nft owner */
|
|
30
|
+
nftOwner: TransactionSigner<TAccountNftOwner>;
|
|
31
|
+
/** Mint address bound to the personal position. */
|
|
32
|
+
positionNftMint: Address<TAccountPositionNftMint>;
|
|
33
|
+
/** User token account where position NFT be minted to */
|
|
34
|
+
positionNftAccount: Address<TAccountPositionNftAccount>;
|
|
35
|
+
personalPosition?: Address<TAccountPersonalPosition>;
|
|
36
|
+
/** System program to close the position state account */
|
|
37
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
38
|
+
/** Token/Token2022 program to close token/mint account */
|
|
39
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
40
|
+
};
|
|
41
|
+
export declare function getClosePositionInstructionAsync<TAccountNftOwner extends string, TAccountPositionNftMint extends string, TAccountPositionNftAccount extends string, TAccountPersonalPosition extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: ClosePositionAsyncInput<TAccountNftOwner, TAccountPositionNftMint, TAccountPositionNftAccount, TAccountPersonalPosition, TAccountSystemProgram, TAccountTokenProgram>, config?: {
|
|
42
|
+
programAddress?: TProgramAddress;
|
|
43
|
+
}): Promise<ClosePositionInstruction<TProgramAddress, TAccountNftOwner, TAccountPositionNftMint, TAccountPositionNftAccount, TAccountPersonalPosition, TAccountSystemProgram, TAccountTokenProgram>>;
|
|
44
|
+
export type ClosePositionInput<TAccountNftOwner extends string = string, TAccountPositionNftMint extends string = string, TAccountPositionNftAccount extends string = string, TAccountPersonalPosition extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
45
|
+
/** The position nft owner */
|
|
46
|
+
nftOwner: TransactionSigner<TAccountNftOwner>;
|
|
47
|
+
/** Mint address bound to the personal position. */
|
|
48
|
+
positionNftMint: Address<TAccountPositionNftMint>;
|
|
49
|
+
/** User token account where position NFT be minted to */
|
|
50
|
+
positionNftAccount: Address<TAccountPositionNftAccount>;
|
|
51
|
+
personalPosition: Address<TAccountPersonalPosition>;
|
|
52
|
+
/** System program to close the position state account */
|
|
53
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
54
|
+
/** Token/Token2022 program to close token/mint account */
|
|
55
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
56
|
+
};
|
|
57
|
+
export declare function getClosePositionInstruction<TAccountNftOwner extends string, TAccountPositionNftMint extends string, TAccountPositionNftAccount extends string, TAccountPersonalPosition extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: ClosePositionInput<TAccountNftOwner, TAccountPositionNftMint, TAccountPositionNftAccount, TAccountPersonalPosition, TAccountSystemProgram, TAccountTokenProgram>, config?: {
|
|
58
|
+
programAddress?: TProgramAddress;
|
|
59
|
+
}): ClosePositionInstruction<TProgramAddress, TAccountNftOwner, TAccountPositionNftMint, TAccountPositionNftAccount, TAccountPersonalPosition, TAccountSystemProgram, TAccountTokenProgram>;
|
|
60
|
+
export type ParsedClosePositionInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
61
|
+
programAddress: Address<TProgram>;
|
|
62
|
+
accounts: {
|
|
63
|
+
/** The position nft owner */
|
|
64
|
+
nftOwner: TAccountMetas[0];
|
|
65
|
+
/** Mint address bound to the personal position. */
|
|
66
|
+
positionNftMint: TAccountMetas[1];
|
|
67
|
+
/** User token account where position NFT be minted to */
|
|
68
|
+
positionNftAccount: TAccountMetas[2];
|
|
69
|
+
personalPosition: TAccountMetas[3];
|
|
70
|
+
/** System program to close the position state account */
|
|
71
|
+
systemProgram: TAccountMetas[4];
|
|
72
|
+
/** Token/Token2022 program to close token/mint account */
|
|
73
|
+
tokenProgram: TAccountMetas[5];
|
|
74
|
+
};
|
|
75
|
+
data: ClosePositionInstructionData;
|
|
76
|
+
};
|
|
77
|
+
export declare function parseClosePositionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClosePositionInstruction<TProgram, TAccountMetas>;
|
|
78
|
+
//# sourceMappingURL=closePosition.d.ts.map
|