@stabbleorg/mclmm-sdk 0.1.12 → 0.1.14
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/idl/stabble_clmm.json +28 -0
- package/lib/generated/types/closePositionEvent.d.ts +16 -0
- package/lib/generated/types/closePositionEvent.d.ts.map +1 -0
- package/lib/generated/types/decreaseLiquidityEvent.d.ts +2 -0
- package/lib/generated/types/decreaseLiquidityEvent.d.ts.map +1 -1
- package/lib/generated/types/index.d.ts +1 -0
- package/lib/generated/types/index.d.ts.map +1 -1
- package/lib/index.js +974 -960
- package/lib/index.mjs +460 -440
- package/lib/position-manager.d.ts.map +1 -1
- package/package.json +1 -1
package/idl/stabble_clmm.json
CHANGED
|
@@ -2279,6 +2279,19 @@
|
|
|
2279
2279
|
}
|
|
2280
2280
|
],
|
|
2281
2281
|
"events": [
|
|
2282
|
+
{
|
|
2283
|
+
"name": "ClosePositionEvent",
|
|
2284
|
+
"discriminator": [
|
|
2285
|
+
198,
|
|
2286
|
+
217,
|
|
2287
|
+
115,
|
|
2288
|
+
95,
|
|
2289
|
+
191,
|
|
2290
|
+
120,
|
|
2291
|
+
142,
|
|
2292
|
+
137
|
|
2293
|
+
]
|
|
2294
|
+
},
|
|
2282
2295
|
{
|
|
2283
2296
|
"name": "CollectPersonalFeeEvent",
|
|
2284
2297
|
"discriminator": [
|
|
@@ -2725,6 +2738,18 @@
|
|
|
2725
2738
|
]
|
|
2726
2739
|
}
|
|
2727
2740
|
},
|
|
2741
|
+
{
|
|
2742
|
+
"name": "ClosePositionEvent",
|
|
2743
|
+
"type": {
|
|
2744
|
+
"kind": "struct",
|
|
2745
|
+
"fields": [
|
|
2746
|
+
{
|
|
2747
|
+
"name": "position_key",
|
|
2748
|
+
"type": "pubkey"
|
|
2749
|
+
}
|
|
2750
|
+
]
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2728
2753
|
{
|
|
2729
2754
|
"name": "CollectPersonalFeeEvent",
|
|
2730
2755
|
"docs": [
|
|
@@ -2989,6 +3014,9 @@
|
|
|
2989
3014
|
},
|
|
2990
3015
|
{
|
|
2991
3016
|
"name": "fee_amount_0",
|
|
3017
|
+
"docs": [
|
|
3018
|
+
"The amount of token_0 fee"
|
|
3019
|
+
],
|
|
2992
3020
|
"type": "u64"
|
|
2993
3021
|
},
|
|
2994
3022
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
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 ClosePositionEvent = {
|
|
10
|
+
positionKey: Address;
|
|
11
|
+
};
|
|
12
|
+
export type ClosePositionEventArgs = ClosePositionEvent;
|
|
13
|
+
export declare function getClosePositionEventEncoder(): FixedSizeEncoder<ClosePositionEventArgs>;
|
|
14
|
+
export declare function getClosePositionEventDecoder(): FixedSizeDecoder<ClosePositionEvent>;
|
|
15
|
+
export declare function getClosePositionEventCodec(): FixedSizeCodec<ClosePositionEventArgs, ClosePositionEvent>;
|
|
16
|
+
//# sourceMappingURL=closePositionEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closePositionEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/closePositionEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAExD,wBAAgB,4BAA4B,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAEvF;AAED,wBAAgB,4BAA4B,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAEnF;AAED,wBAAgB,0BAA0B,IAAI,cAAc,CAC1D,sBAAsB,EACtB,kBAAkB,CACnB,CAKA"}
|
|
@@ -16,6 +16,7 @@ export type DecreaseLiquidityEvent = {
|
|
|
16
16
|
decreaseAmount0: bigint;
|
|
17
17
|
/** The amount of token_1 that was paid for the decrease in liquidity */
|
|
18
18
|
decreaseAmount1: bigint;
|
|
19
|
+
/** The amount of token_0 fee */
|
|
19
20
|
feeAmount0: bigint;
|
|
20
21
|
/** The amount of token_1 fee */
|
|
21
22
|
feeAmount1: bigint;
|
|
@@ -35,6 +36,7 @@ export type DecreaseLiquidityEventArgs = {
|
|
|
35
36
|
decreaseAmount0: number | bigint;
|
|
36
37
|
/** The amount of token_1 that was paid for the decrease in liquidity */
|
|
37
38
|
decreaseAmount1: number | bigint;
|
|
39
|
+
/** The amount of token_0 fee */
|
|
38
40
|
feeAmount0: number | bigint;
|
|
39
41
|
/** The amount of token_1 fee */
|
|
40
42
|
feeAmount1: number | bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decreaseLiquidityEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/decreaseLiquidityEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,2CAA2C;AAC3C,MAAM,MAAM,sBAAsB,GAAG;IACnC,4DAA4D;IAC5D,eAAe,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,eAAe,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,4DAA4D;IAC5D,eAAe,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,wEAAwE;IACxE,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,wEAAwE;IACxE,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,4BAA4B;IAC5B,aAAa,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtC,yCAAyC;IACzC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,yCAAyC;IACzC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,0BAA0B,CAAC,CAY/F;AAED,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAY3F;AAED,wBAAgB,8BAA8B,IAAI,cAAc,CAC9D,0BAA0B,EAC1B,sBAAsB,CACvB,CAKA"}
|
|
1
|
+
{"version":3,"file":"decreaseLiquidityEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/types/decreaseLiquidityEvent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACt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,CAC9D,0BAA0B,EAC1B,sBAAsB,CACvB,CAKA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
|