@stabbleorg/mclmm-sdk 0.1.6 → 0.1.8
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 +9415 -0
- package/lib/index.mjs +10055 -0
- package/lib/pool-manager.d.ts +86 -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,41 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
/** Emitted pool liquidity change when increase and decrease liquidity */
|
|
10
|
+
export type LiquidityChangeEvent = {
|
|
11
|
+
/** The pool for swap */
|
|
12
|
+
poolState: Address;
|
|
13
|
+
/** The tick of the pool */
|
|
14
|
+
tick: number;
|
|
15
|
+
/** The tick lower of position */
|
|
16
|
+
tickLower: number;
|
|
17
|
+
/** The tick lower of position */
|
|
18
|
+
tickUpper: number;
|
|
19
|
+
/** The liquidity of the pool before liquidity change */
|
|
20
|
+
liquidityBefore: bigint;
|
|
21
|
+
/** The liquidity of the pool after liquidity change */
|
|
22
|
+
liquidityAfter: bigint;
|
|
23
|
+
};
|
|
24
|
+
export type LiquidityChangeEventArgs = {
|
|
25
|
+
/** The pool for swap */
|
|
26
|
+
poolState: Address;
|
|
27
|
+
/** The tick of the pool */
|
|
28
|
+
tick: number;
|
|
29
|
+
/** The tick lower of position */
|
|
30
|
+
tickLower: number;
|
|
31
|
+
/** The tick lower of position */
|
|
32
|
+
tickUpper: number;
|
|
33
|
+
/** The liquidity of the pool before liquidity change */
|
|
34
|
+
liquidityBefore: number | bigint;
|
|
35
|
+
/** The liquidity of the pool after liquidity change */
|
|
36
|
+
liquidityAfter: number | bigint;
|
|
37
|
+
};
|
|
38
|
+
export declare function getLiquidityChangeEventEncoder(): FixedSizeEncoder<LiquidityChangeEventArgs>;
|
|
39
|
+
export declare function getLiquidityChangeEventDecoder(): FixedSizeDecoder<LiquidityChangeEvent>;
|
|
40
|
+
export declare function getLiquidityChangeEventCodec(): FixedSizeCodec<LiquidityChangeEventArgs, LiquidityChangeEvent>;
|
|
41
|
+
//# sourceMappingURL=liquidityChangeEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liquidityChangeEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/liquidityChangeEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,yEAAyE;AACzE,MAAM,MAAM,oBAAoB,GAAG;IACjC,wBAAwB;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,eAAe,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,wBAAwB;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,uDAAuD;IACvD,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,gBAAgB,CAAC,wBAAwB,CAAC,CAS3F;AAED,wBAAgB,8BAA8B,IAAI,gBAAgB,CAAC,oBAAoB,CAAC,CASvF;AAED,wBAAgB,4BAA4B,IAAI,cAAc,CAC5D,wBAAwB,EACxB,oBAAoB,CACrB,CAKA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
/** The element of observations in ObservationState */
|
|
10
|
+
export type Observation = {
|
|
11
|
+
/** The block timestamp of the observation */
|
|
12
|
+
blockTimestamp: number;
|
|
13
|
+
/** the cumulative of tick during the duration time */
|
|
14
|
+
tickCumulative: bigint;
|
|
15
|
+
/** padding for feature update */
|
|
16
|
+
padding: Array<bigint>;
|
|
17
|
+
};
|
|
18
|
+
export type ObservationArgs = {
|
|
19
|
+
/** The block timestamp of the observation */
|
|
20
|
+
blockTimestamp: number;
|
|
21
|
+
/** the cumulative of tick during the duration time */
|
|
22
|
+
tickCumulative: number | bigint;
|
|
23
|
+
/** padding for feature update */
|
|
24
|
+
padding: Array<number | bigint>;
|
|
25
|
+
};
|
|
26
|
+
export declare function getObservationEncoder(): FixedSizeEncoder<ObservationArgs>;
|
|
27
|
+
export declare function getObservationDecoder(): FixedSizeDecoder<Observation>;
|
|
28
|
+
export declare function getObservationCodec(): FixedSizeCodec<ObservationArgs, Observation>;
|
|
29
|
+
//# sourceMappingURL=observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observation.d.ts","sourceRoot":"","sources":["../../../src/generated/types/observation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,sDAAsD;AACtD,MAAM,MAAM,WAAW,GAAG;IACxB,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,iCAAiC;IACjC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,iCAAiC;IACjC,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAMzE;AAED,wBAAgB,qBAAqB,IAAI,gBAAgB,CAAC,WAAW,CAAC,CAMrE;AAED,wBAAgB,mBAAmB,IAAI,cAAc,CACnD,eAAe,EACf,WAAW,CACZ,CAEA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
/**
|
|
10
|
+
* Emitted when a pool is created and initialized with a starting price
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export type PoolCreatedEvent = {
|
|
14
|
+
/** The first token of the pool by address sort order */
|
|
15
|
+
tokenMint0: Address;
|
|
16
|
+
/** The second token of the pool by address sort order */
|
|
17
|
+
tokenMint1: Address;
|
|
18
|
+
/** The minimum number of ticks between initialized ticks */
|
|
19
|
+
tickSpacing: number;
|
|
20
|
+
/** The address of the created pool */
|
|
21
|
+
poolState: Address;
|
|
22
|
+
/** The initial sqrt price of the pool, as a Q64.64 */
|
|
23
|
+
sqrtPriceX64: bigint;
|
|
24
|
+
/** The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool */
|
|
25
|
+
tick: number;
|
|
26
|
+
/** Vault of token_0 */
|
|
27
|
+
tokenVault0: Address;
|
|
28
|
+
/** Vault of token_1 */
|
|
29
|
+
tokenVault1: Address;
|
|
30
|
+
};
|
|
31
|
+
export type PoolCreatedEventArgs = {
|
|
32
|
+
/** The first token of the pool by address sort order */
|
|
33
|
+
tokenMint0: Address;
|
|
34
|
+
/** The second token of the pool by address sort order */
|
|
35
|
+
tokenMint1: Address;
|
|
36
|
+
/** The minimum number of ticks between initialized ticks */
|
|
37
|
+
tickSpacing: number;
|
|
38
|
+
/** The address of the created pool */
|
|
39
|
+
poolState: Address;
|
|
40
|
+
/** The initial sqrt price of the pool, as a Q64.64 */
|
|
41
|
+
sqrtPriceX64: number | bigint;
|
|
42
|
+
/** The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool */
|
|
43
|
+
tick: number;
|
|
44
|
+
/** Vault of token_0 */
|
|
45
|
+
tokenVault0: Address;
|
|
46
|
+
/** Vault of token_1 */
|
|
47
|
+
tokenVault1: Address;
|
|
48
|
+
};
|
|
49
|
+
export declare function getPoolCreatedEventEncoder(): FixedSizeEncoder<PoolCreatedEventArgs>;
|
|
50
|
+
export declare function getPoolCreatedEventDecoder(): FixedSizeDecoder<PoolCreatedEvent>;
|
|
51
|
+
export declare function getPoolCreatedEventCodec(): FixedSizeCodec<PoolCreatedEventArgs, PoolCreatedEvent>;
|
|
52
|
+
//# sourceMappingURL=poolCreatedEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poolCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/poolCreatedEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,wDAAwD;IACxD,UAAU,EAAE,OAAO,CAAC;IACpB,yDAAyD;IACzD,UAAU,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,2FAA2F;IAC3F,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB;IACvB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,wDAAwD;IACxD,UAAU,EAAE,OAAO,CAAC;IACpB,yDAAyD;IACzD,UAAU,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,2FAA2F;IAC3F,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB;IACvB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,gBAAgB,CAAC,oBAAoB,CAAC,CAWnF;AAED,wBAAgB,0BAA0B,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,CAW/E;AAED,wBAAgB,wBAAwB,IAAI,cAAc,CACxD,oBAAoB,EACpB,gBAAgB,CACjB,CAKA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type PositionRewardInfo = {
|
|
10
|
+
growthInsideLastX64: bigint;
|
|
11
|
+
rewardAmountOwed: bigint;
|
|
12
|
+
};
|
|
13
|
+
export type PositionRewardInfoArgs = {
|
|
14
|
+
growthInsideLastX64: number | bigint;
|
|
15
|
+
rewardAmountOwed: number | bigint;
|
|
16
|
+
};
|
|
17
|
+
export declare function getPositionRewardInfoEncoder(): FixedSizeEncoder<PositionRewardInfoArgs>;
|
|
18
|
+
export declare function getPositionRewardInfoDecoder(): FixedSizeDecoder<PositionRewardInfo>;
|
|
19
|
+
export declare function getPositionRewardInfoCodec(): FixedSizeCodec<PositionRewardInfoArgs, PositionRewardInfo>;
|
|
20
|
+
//# sourceMappingURL=positionRewardInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positionRewardInfo.d.ts","sourceRoot":"","sources":["../../../src/generated/types/positionRewardInfo.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAAC;IACrC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAKvF;AAED,wBAAgB,4BAA4B,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAKnF;AAED,wBAAgB,0BAA0B,IAAI,cAAc,CAC1D,sBAAsB,EACtB,kBAAkB,CACnB,CAKA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type RewardInfo = {
|
|
10
|
+
/** Reward state */
|
|
11
|
+
rewardState: number;
|
|
12
|
+
/** Reward open time */
|
|
13
|
+
openTime: bigint;
|
|
14
|
+
/** Reward end time */
|
|
15
|
+
endTime: bigint;
|
|
16
|
+
/** Reward last update time */
|
|
17
|
+
lastUpdateTime: bigint;
|
|
18
|
+
/** Q64.64 number indicates how many tokens per second are earned per unit of liquidity. */
|
|
19
|
+
emissionsPerSecondX64: bigint;
|
|
20
|
+
/** The total amount of reward emissioned */
|
|
21
|
+
rewardTotalEmissioned: bigint;
|
|
22
|
+
/** The total amount of claimed reward */
|
|
23
|
+
rewardClaimed: bigint;
|
|
24
|
+
/** Reward token mint. */
|
|
25
|
+
tokenMint: Address;
|
|
26
|
+
/** Reward vault token account. */
|
|
27
|
+
tokenVault: Address;
|
|
28
|
+
/** The owner that has permission to set reward param */
|
|
29
|
+
authority: Address;
|
|
30
|
+
/**
|
|
31
|
+
* Q64.64 number that tracks the total tokens earned per unit of liquidity since the reward
|
|
32
|
+
* emissions were turned on.
|
|
33
|
+
*/
|
|
34
|
+
rewardGrowthGlobalX64: bigint;
|
|
35
|
+
};
|
|
36
|
+
export type RewardInfoArgs = {
|
|
37
|
+
/** Reward state */
|
|
38
|
+
rewardState: number;
|
|
39
|
+
/** Reward open time */
|
|
40
|
+
openTime: number | bigint;
|
|
41
|
+
/** Reward end time */
|
|
42
|
+
endTime: number | bigint;
|
|
43
|
+
/** Reward last update time */
|
|
44
|
+
lastUpdateTime: number | bigint;
|
|
45
|
+
/** Q64.64 number indicates how many tokens per second are earned per unit of liquidity. */
|
|
46
|
+
emissionsPerSecondX64: number | bigint;
|
|
47
|
+
/** The total amount of reward emissioned */
|
|
48
|
+
rewardTotalEmissioned: number | bigint;
|
|
49
|
+
/** The total amount of claimed reward */
|
|
50
|
+
rewardClaimed: number | bigint;
|
|
51
|
+
/** Reward token mint. */
|
|
52
|
+
tokenMint: Address;
|
|
53
|
+
/** Reward vault token account. */
|
|
54
|
+
tokenVault: Address;
|
|
55
|
+
/** The owner that has permission to set reward param */
|
|
56
|
+
authority: Address;
|
|
57
|
+
/**
|
|
58
|
+
* Q64.64 number that tracks the total tokens earned per unit of liquidity since the reward
|
|
59
|
+
* emissions were turned on.
|
|
60
|
+
*/
|
|
61
|
+
rewardGrowthGlobalX64: number | bigint;
|
|
62
|
+
};
|
|
63
|
+
export declare function getRewardInfoEncoder(): FixedSizeEncoder<RewardInfoArgs>;
|
|
64
|
+
export declare function getRewardInfoDecoder(): FixedSizeDecoder<RewardInfo>;
|
|
65
|
+
export declare function getRewardInfoCodec(): FixedSizeCodec<RewardInfoArgs, RewardInfo>;
|
|
66
|
+
//# sourceMappingURL=rewardInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewardInfo.d.ts","sourceRoot":"","sources":["../../../src/generated/types/rewardInfo.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,UAAU,GAAG;IACvB,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,2FAA2F;IAC3F,qBAAqB,EAAE,MAAM,CAAC;IAC9B,4CAA4C;IAC5C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,sBAAsB;IACtB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,8BAA8B;IAC9B,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,2FAA2F;IAC3F,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,4CAA4C;IAC5C,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,yCAAyC;IACzC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,yBAAyB;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,gBAAgB,CAAC,cAAc,CAAC,CAcvE;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAcnE;AAED,wBAAgB,kBAAkB,IAAI,cAAc,CAClD,cAAc,EACd,UAAU,CACX,CAEA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
/** Emitted by when a swap is performed for a pool */
|
|
10
|
+
export type SwapEvent = {
|
|
11
|
+
/** The pool for which token_0 and token_1 were swapped */
|
|
12
|
+
poolState: Address;
|
|
13
|
+
/** The address that initiated the swap call, and that received the callback */
|
|
14
|
+
sender: Address;
|
|
15
|
+
/**
|
|
16
|
+
* The payer token account in zero for one swaps, or the recipient token account
|
|
17
|
+
* in one for zero swaps
|
|
18
|
+
*/
|
|
19
|
+
tokenAccount0: Address;
|
|
20
|
+
/**
|
|
21
|
+
* The payer token account in one for zero swaps, or the recipient token account
|
|
22
|
+
* in zero for one swaps
|
|
23
|
+
*/
|
|
24
|
+
tokenAccount1: Address;
|
|
25
|
+
/** The real delta amount of the token_0 of the pool or user */
|
|
26
|
+
amount0: bigint;
|
|
27
|
+
/** The transfer fee charged by the withheld_amount of the token_0 */
|
|
28
|
+
transferFee0: bigint;
|
|
29
|
+
/** The real delta of the token_1 of the pool or user */
|
|
30
|
+
amount1: bigint;
|
|
31
|
+
/** The transfer fee charged by the withheld_amount of the token_1 */
|
|
32
|
+
transferFee1: bigint;
|
|
33
|
+
/** if true, amount_0 is negtive and amount_1 is positive */
|
|
34
|
+
zeroForOne: boolean;
|
|
35
|
+
/** The sqrt(price) of the pool after the swap, as a Q64.64 */
|
|
36
|
+
sqrtPriceX64: bigint;
|
|
37
|
+
/** The liquidity of the pool after the swap */
|
|
38
|
+
liquidity: bigint;
|
|
39
|
+
/** The log base 1.0001 of price of the pool after the swap */
|
|
40
|
+
tick: number;
|
|
41
|
+
};
|
|
42
|
+
export type SwapEventArgs = {
|
|
43
|
+
/** The pool for which token_0 and token_1 were swapped */
|
|
44
|
+
poolState: Address;
|
|
45
|
+
/** The address that initiated the swap call, and that received the callback */
|
|
46
|
+
sender: Address;
|
|
47
|
+
/**
|
|
48
|
+
* The payer token account in zero for one swaps, or the recipient token account
|
|
49
|
+
* in one for zero swaps
|
|
50
|
+
*/
|
|
51
|
+
tokenAccount0: Address;
|
|
52
|
+
/**
|
|
53
|
+
* The payer token account in one for zero swaps, or the recipient token account
|
|
54
|
+
* in zero for one swaps
|
|
55
|
+
*/
|
|
56
|
+
tokenAccount1: Address;
|
|
57
|
+
/** The real delta amount of the token_0 of the pool or user */
|
|
58
|
+
amount0: number | bigint;
|
|
59
|
+
/** The transfer fee charged by the withheld_amount of the token_0 */
|
|
60
|
+
transferFee0: number | bigint;
|
|
61
|
+
/** The real delta of the token_1 of the pool or user */
|
|
62
|
+
amount1: number | bigint;
|
|
63
|
+
/** The transfer fee charged by the withheld_amount of the token_1 */
|
|
64
|
+
transferFee1: number | bigint;
|
|
65
|
+
/** if true, amount_0 is negtive and amount_1 is positive */
|
|
66
|
+
zeroForOne: boolean;
|
|
67
|
+
/** The sqrt(price) of the pool after the swap, as a Q64.64 */
|
|
68
|
+
sqrtPriceX64: number | bigint;
|
|
69
|
+
/** The liquidity of the pool after the swap */
|
|
70
|
+
liquidity: number | bigint;
|
|
71
|
+
/** The log base 1.0001 of price of the pool after the swap */
|
|
72
|
+
tick: number;
|
|
73
|
+
};
|
|
74
|
+
export declare function getSwapEventEncoder(): FixedSizeEncoder<SwapEventArgs>;
|
|
75
|
+
export declare function getSwapEventDecoder(): FixedSizeDecoder<SwapEvent>;
|
|
76
|
+
export declare function getSwapEventCodec(): FixedSizeCodec<SwapEventArgs, SwapEvent>;
|
|
77
|
+
//# sourceMappingURL=swapEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/swapEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAcL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,qDAAqD;AACrD,MAAM,MAAM,SAAS,GAAG;IACtB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,UAAU,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qEAAqE;IACrE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,wDAAwD;IACxD,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qEAAqE;IACrE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,4DAA4D;IAC5D,UAAU,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,+CAA+C;IAC/C,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,gBAAgB,CAAC,aAAa,CAAC,CAerE;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAAC,SAAS,CAAC,CAejE;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,CAE5E"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type TickState = {
|
|
10
|
+
tick: number;
|
|
11
|
+
/** Amount of net liquidity added (subtracted) when tick is crossed from left to right (right to left) */
|
|
12
|
+
liquidityNet: bigint;
|
|
13
|
+
/** The total position liquidity that references this tick */
|
|
14
|
+
liquidityGross: bigint;
|
|
15
|
+
/**
|
|
16
|
+
* Fee growth per unit of liquidity on the _other_ side of this tick (relative to the current tick)
|
|
17
|
+
* only has relative meaning, not absolute — the value depends on when the tick is initialized
|
|
18
|
+
*/
|
|
19
|
+
feeGrowthOutside0X64: bigint;
|
|
20
|
+
feeGrowthOutside1X64: bigint;
|
|
21
|
+
rewardGrowthsOutsideX64: Array<bigint>;
|
|
22
|
+
padding: Array<number>;
|
|
23
|
+
};
|
|
24
|
+
export type TickStateArgs = {
|
|
25
|
+
tick: number;
|
|
26
|
+
/** Amount of net liquidity added (subtracted) when tick is crossed from left to right (right to left) */
|
|
27
|
+
liquidityNet: number | bigint;
|
|
28
|
+
/** The total position liquidity that references this tick */
|
|
29
|
+
liquidityGross: number | bigint;
|
|
30
|
+
/**
|
|
31
|
+
* Fee growth per unit of liquidity on the _other_ side of this tick (relative to the current tick)
|
|
32
|
+
* only has relative meaning, not absolute — the value depends on when the tick is initialized
|
|
33
|
+
*/
|
|
34
|
+
feeGrowthOutside0X64: number | bigint;
|
|
35
|
+
feeGrowthOutside1X64: number | bigint;
|
|
36
|
+
rewardGrowthsOutsideX64: Array<number | bigint>;
|
|
37
|
+
padding: Array<number>;
|
|
38
|
+
};
|
|
39
|
+
export declare function getTickStateEncoder(): FixedSizeEncoder<TickStateArgs>;
|
|
40
|
+
export declare function getTickStateDecoder(): FixedSizeDecoder<TickState>;
|
|
41
|
+
export declare function getTickStateCodec(): FixedSizeCodec<TickStateArgs, TickState>;
|
|
42
|
+
//# sourceMappingURL=tickState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickState.d.ts","sourceRoot":"","sources":["../../../src/generated/types/tickState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAcL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,yGAAyG;IACzG,YAAY,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,yGAAyG;IACzG,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,6DAA6D;IAC7D,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;;OAGG;IACH,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,uBAAuB,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,gBAAgB,CAAC,aAAa,CAAC,CAUrE;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAAC,SAAS,CAAC,CAUjE;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,CAE5E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
/** Emitted when Reward are updated for a pool */
|
|
10
|
+
export type UpdateRewardInfosEvent = {
|
|
11
|
+
/** Reward info */
|
|
12
|
+
rewardGrowthGlobalX64: Array<bigint>;
|
|
13
|
+
};
|
|
14
|
+
export type UpdateRewardInfosEventArgs = {
|
|
15
|
+
/** Reward info */
|
|
16
|
+
rewardGrowthGlobalX64: Array<number | bigint>;
|
|
17
|
+
};
|
|
18
|
+
export declare function getUpdateRewardInfosEventEncoder(): FixedSizeEncoder<UpdateRewardInfosEventArgs>;
|
|
19
|
+
export declare function getUpdateRewardInfosEventDecoder(): FixedSizeDecoder<UpdateRewardInfosEvent>;
|
|
20
|
+
export declare function getUpdateRewardInfosEventCodec(): FixedSizeCodec<UpdateRewardInfosEventArgs, UpdateRewardInfosEvent>;
|
|
21
|
+
//# sourceMappingURL=updateRewardInfosEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateRewardInfosEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/updateRewardInfosEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,iDAAiD;AACjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,kBAAkB;IAClB,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,kBAAkB;IAClB,qBAAqB,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAC/C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,0BAA0B,CAAC,CAI/F;AAED,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAI3F;AAED,wBAAgB,8BAA8B,IAAI,cAAc,CAC9D,0BAA0B,EAC1B,sBAAsB,CACvB,CAKA"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { ClmmSdk, createClmmSdk } from "./client";
|
|
2
|
+
export { Clmm } from "./clmm";
|
|
3
|
+
export type { MakeInstructionResult } from "./types";
|
|
4
|
+
export type { InstructionResult } from "./clmm";
|
|
5
|
+
export { PoolManager } from "./pool-manager";
|
|
6
|
+
export { PositionManager } from "./position-manager";
|
|
7
|
+
export type * from "./types";
|
|
8
|
+
export * from "./utils";
|
|
9
|
+
export * from "./constants";
|
|
10
|
+
export { type PoolState, type AmmConfig, type PersonalPositionState, type TickArrayState, type ObservationState, type OperationState, type ProtocolPositionState, getCreatePoolInstruction, getCreateAmmConfigInstruction, getOpenPositionInstruction, getOpenPositionV2Instruction, getIncreaseLiquidityInstruction, getDecreaseLiquidityInstruction, getClosePositionInstruction, getSwapInstruction, getSwapV2Instruction, fetchPoolState, fetchMaybePoolState, fetchPersonalPositionState, fetchMaybePersonalPositionState, fetchAmmConfig, fetchMaybeAmmConfig, type AmmV3Error, getAmmV3ErrorMessage, isAmmV3Error, AMM_V3_PROGRAM_ADDRESS, } from "./generated";
|
|
11
|
+
export * as generated from "./generated";
|
|
12
|
+
/**
|
|
13
|
+
* Default SDK configuration values
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_SDK_CONFIG: {
|
|
16
|
+
commitment: "confirmed";
|
|
17
|
+
programAddress: "6dMXqGZ3ga2dikrYS9ovDXgHGh5RUsb2RTUj6hrQXhk6";
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,YAAY,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAMrD,mBAAmB,SAAS,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,aAAa,CAAC;AAG5B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAG1B,wBAAwB,EACxB,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,kBAAkB,EAClB,oBAAoB,EAGpB,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,+BAA+B,EAC/B,cAAc,EACd,mBAAmB,EAGnB,KAAK,UAAU,EACf,oBAAoB,EACpB,YAAY,EAGZ,sBAAsB,GACvB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;CAG9B,CAAC"}
|