@sonarwatch/portfolio-plugins 0.14.159 → 0.14.161

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +2268 -2260
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +2 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/banx/offersFetcher.js +2 -1
  8. package/src/plugins/banx/offersFetcher.js.map +1 -1
  9. package/src/plugins/ensofi/constants.d.ts +2 -1
  10. package/src/plugins/ensofi/constants.js +3 -2
  11. package/src/plugins/ensofi/constants.js.map +1 -1
  12. package/src/plugins/ensofi/index.js +6 -1
  13. package/src/plugins/ensofi/index.js.map +1 -1
  14. package/src/plugins/ensofi/liquidityIdl.d.ts +674 -0
  15. package/src/plugins/ensofi/liquidityIdl.js +3177 -0
  16. package/src/plugins/ensofi/liquidityIdl.js.map +1 -0
  17. package/src/plugins/ensofi/solanaLiquidityFetcher.d.ts +3 -0
  18. package/src/plugins/ensofi/solanaLiquidityFetcher.js +71 -0
  19. package/src/plugins/ensofi/solanaLiquidityFetcher.js.map +1 -0
  20. package/src/plugins/ensofi/solanaLoansFetcher.js +3 -3
  21. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  22. package/src/plugins/ensofi/solanaLoansJob.js +1 -1
  23. package/src/plugins/ensofi/solanaLoansJob.js.map +1 -1
  24. package/src/plugins/ensofi/structs.d.ts +66 -0
  25. package/src/plugins/ensofi/structs.js +64 -1
  26. package/src/plugins/ensofi/structs.js.map +1 -1
  27. package/src/plugins/jupiter/exchange/limitFetcher.js +32 -17
  28. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  29. package/src/plugins/kamino/lendsFetcher.js +5 -1
  30. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  31. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  32. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  33. package/src/plugins/pluto/leverageFetcher.js +1 -1
  34. package/src/plugins/pluto/leverageFetcher.js.map +1 -1
  35. package/src/plugins/pumpswap/constants.d.ts +5 -0
  36. package/src/plugins/pumpswap/constants.js +7 -0
  37. package/src/plugins/pumpswap/constants.js.map +1 -0
  38. package/src/plugins/pumpswap/index.d.ts +4 -0
  39. package/src/plugins/pumpswap/index.js +10 -0
  40. package/src/plugins/pumpswap/index.js.map +1 -0
  41. package/src/plugins/pumpswap/marketsJob.d.ts +3 -0
  42. package/src/plugins/pumpswap/marketsJob.js +99 -0
  43. package/src/plugins/pumpswap/marketsJob.js.map +1 -0
  44. package/src/plugins/pumpswap/structs.d.ts +18 -0
  45. package/src/plugins/pumpswap/structs.js +19 -0
  46. package/src/plugins/pumpswap/structs.js.map +1 -0
  47. package/src/plugins/stabble/structs.d.ts +12 -4
  48. package/src/plugins/stabble/structs.js +11 -4
  49. package/src/plugins/stabble/structs.js.map +1 -1
  50. package/src/plugins/sushiswap/helpers.js +24 -24
  51. package/src/plugins/tensor/powerUserAirdropFetcher.js +9 -15
  52. package/src/plugins/tensor/powerUserAirdropFetcher.js.map +1 -1
  53. package/src/plugins/uniswap-v2/helpers.js +22 -22
  54. package/src/plugins/zeta/airdropFetcher.js +14 -14
  55. package/src/utils/misc/getLpTokenSource.d.ts +3 -1
  56. package/src/utils/misc/getLpTokenSource.js +3 -1
  57. package/src/utils/misc/getLpTokenSource.js.map +1 -1
  58. package/src/utils/misc/getLpTokenSourceRaw.d.ts +3 -1
  59. package/src/utils/misc/getLpTokenSourceRaw.js +2 -0
  60. package/src/utils/misc/getLpTokenSourceRaw.js.map +1 -1
  61. package/src/utils/sei/constants.js +8 -8
  62. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -0,0 +1,3177 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.liquidityIdl = void 0;
4
+ exports.liquidityIdl = {
5
+ address: 'ensSuXMeaUhRC7Re3ukaxLcX2E4qmd2LZxbxsK9XcWz',
6
+ metadata: {
7
+ name: 'ensofi_liquidity',
8
+ version: '0.1.9',
9
+ spec: '0.1.0',
10
+ description: 'Created with Anchor',
11
+ },
12
+ instructions: [
13
+ {
14
+ name: 'claim_trading_fee',
15
+ discriminator: [8, 236, 89, 49, 152, 125, 177, 81],
16
+ accounts: [
17
+ {
18
+ name: 'clmm_program',
19
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
20
+ },
21
+ { name: 'payer', signer: true },
22
+ {
23
+ name: 'nft_owner',
24
+ writable: true,
25
+ pda: {
26
+ seeds: [
27
+ {
28
+ kind: 'const',
29
+ value: [
30
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
31
+ 105, 116, 105, 111, 110,
32
+ ],
33
+ },
34
+ { kind: 'account', path: 'pool_state' },
35
+ {
36
+ kind: 'const',
37
+ value: [
38
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
39
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
40
+ 233, 25, 106, 73, 92,
41
+ ],
42
+ },
43
+ ],
44
+ },
45
+ },
46
+ { name: 'nft_account' },
47
+ { name: 'pool_state', writable: true },
48
+ {
49
+ name: 'pool_protocol_position',
50
+ writable: true,
51
+ pda: {
52
+ seeds: [
53
+ {
54
+ kind: 'const',
55
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
56
+ },
57
+ { kind: 'account', path: 'pool_state' },
58
+ {
59
+ kind: 'account',
60
+ path: 'pool_personal_position.tick_lower_index',
61
+ account: 'PersonalPositionState',
62
+ },
63
+ {
64
+ kind: 'account',
65
+ path: 'pool_personal_position.tick_upper_index',
66
+ account: 'PersonalPositionState',
67
+ },
68
+ ],
69
+ program: { kind: 'account', path: 'clmm_program' },
70
+ },
71
+ },
72
+ { name: 'pool_personal_position', writable: true },
73
+ { name: 'tick_array_lower', writable: true },
74
+ { name: 'tick_array_upper', writable: true },
75
+ {
76
+ name: 'protocol_position',
77
+ writable: true,
78
+ pda: {
79
+ seeds: [
80
+ {
81
+ kind: 'const',
82
+ value: [
83
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
84
+ 116, 105, 111, 110,
85
+ ],
86
+ },
87
+ { kind: 'account', path: 'pool_state' },
88
+ {
89
+ kind: 'const',
90
+ value: [
91
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
92
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
93
+ 233, 25, 106, 73, 92,
94
+ ],
95
+ },
96
+ ],
97
+ },
98
+ },
99
+ {
100
+ name: 'user_position',
101
+ writable: true,
102
+ pda: {
103
+ seeds: [
104
+ {
105
+ kind: 'const',
106
+ value: [
107
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
108
+ 110,
109
+ ],
110
+ },
111
+ { kind: 'account', path: 'protocol_position' },
112
+ { kind: 'account', path: 'payer' },
113
+ {
114
+ kind: 'const',
115
+ value: [
116
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
117
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
118
+ 233, 25, 106, 73, 92,
119
+ ],
120
+ },
121
+ ],
122
+ },
123
+ },
124
+ { name: 'protocol_token_account_0', writable: true },
125
+ { name: 'protocol_token_account_1', writable: true },
126
+ { name: 'pool_token_vault_0', writable: true },
127
+ { name: 'pool_token_vault_1', writable: true },
128
+ { name: 'recipient_token_account_0', writable: true },
129
+ { name: 'recipient_token_account_1', writable: true },
130
+ {
131
+ name: 'token_program',
132
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
133
+ },
134
+ {
135
+ name: 'token_program_2022',
136
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
137
+ },
138
+ {
139
+ name: 'memo_program',
140
+ address: 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr',
141
+ },
142
+ { name: 'token_0_mint' },
143
+ { name: 'token_1_mint' },
144
+ ],
145
+ args: [{ name: 'use_tickarray_bitmap_extension', type: 'bool' }],
146
+ },
147
+ {
148
+ name: 'claim_trading_fee_v2',
149
+ discriminator: [14, 191, 110, 194, 165, 87, 174, 123],
150
+ accounts: [
151
+ {
152
+ name: 'clmm_program',
153
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
154
+ },
155
+ { name: 'payer', signer: true },
156
+ {
157
+ name: 'nft_owner',
158
+ writable: true,
159
+ pda: {
160
+ seeds: [
161
+ {
162
+ kind: 'const',
163
+ value: [
164
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
165
+ 105, 116, 105, 111, 110,
166
+ ],
167
+ },
168
+ { kind: 'account', path: 'pool_state' },
169
+ {
170
+ kind: 'const',
171
+ value: [
172
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
173
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
174
+ 233, 25, 106, 73, 92,
175
+ ],
176
+ },
177
+ ],
178
+ },
179
+ },
180
+ { name: 'nft_account' },
181
+ { name: 'pool_state', writable: true },
182
+ {
183
+ name: 'pool_protocol_position',
184
+ writable: true,
185
+ pda: {
186
+ seeds: [
187
+ {
188
+ kind: 'const',
189
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
190
+ },
191
+ { kind: 'account', path: 'pool_state' },
192
+ {
193
+ kind: 'account',
194
+ path: 'pool_personal_position.tick_lower_index',
195
+ account: 'PersonalPositionState',
196
+ },
197
+ {
198
+ kind: 'account',
199
+ path: 'pool_personal_position.tick_upper_index',
200
+ account: 'PersonalPositionState',
201
+ },
202
+ ],
203
+ program: { kind: 'account', path: 'clmm_program' },
204
+ },
205
+ },
206
+ { name: 'pool_personal_position', writable: true },
207
+ { name: 'tick_array_lower', writable: true },
208
+ { name: 'tick_array_upper', writable: true },
209
+ {
210
+ name: 'protocol_position',
211
+ writable: true,
212
+ pda: {
213
+ seeds: [
214
+ {
215
+ kind: 'const',
216
+ value: [
217
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
218
+ 116, 105, 111, 110,
219
+ ],
220
+ },
221
+ { kind: 'account', path: 'pool_state' },
222
+ {
223
+ kind: 'const',
224
+ value: [
225
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
226
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
227
+ 233, 25, 106, 73, 92,
228
+ ],
229
+ },
230
+ ],
231
+ },
232
+ },
233
+ {
234
+ name: 'user_position',
235
+ writable: true,
236
+ pda: {
237
+ seeds: [
238
+ {
239
+ kind: 'const',
240
+ value: [
241
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
242
+ 110,
243
+ ],
244
+ },
245
+ { kind: 'account', path: 'protocol_position' },
246
+ { kind: 'account', path: 'payer' },
247
+ {
248
+ kind: 'const',
249
+ value: [
250
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
251
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
252
+ 233, 25, 106, 73, 92,
253
+ ],
254
+ },
255
+ ],
256
+ },
257
+ },
258
+ { name: 'protocol_token_account_0', writable: true },
259
+ { name: 'protocol_token_account_1', writable: true },
260
+ { name: 'pool_token_vault_0', writable: true },
261
+ { name: 'pool_token_vault_1', writable: true },
262
+ { name: 'recipient_token_account_0', writable: true },
263
+ { name: 'recipient_token_account_1', writable: true },
264
+ {
265
+ name: 'token_program',
266
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
267
+ },
268
+ {
269
+ name: 'token_program_2022',
270
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
271
+ },
272
+ {
273
+ name: 'memo_program',
274
+ address: 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr',
275
+ },
276
+ { name: 'token_0_mint' },
277
+ { name: 'token_1_mint' },
278
+ ],
279
+ args: [{ name: 'use_tickarray_bitmap_extension', type: 'bool' }],
280
+ },
281
+ {
282
+ name: 'create_operation_config',
283
+ discriminator: [165, 192, 160, 111, 151, 76, 206, 219],
284
+ accounts: [
285
+ { name: 'system', writable: true, signer: true },
286
+ {
287
+ name: 'operation_config',
288
+ writable: true,
289
+ pda: {
290
+ seeds: [
291
+ {
292
+ kind: 'const',
293
+ value: [
294
+ 111, 112, 101, 114, 97, 116, 105, 111, 110, 95, 99, 111, 110,
295
+ 102, 105, 103,
296
+ ],
297
+ },
298
+ {
299
+ kind: 'const',
300
+ value: [
301
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
302
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
303
+ 233, 25, 106, 73, 92,
304
+ ],
305
+ },
306
+ ],
307
+ },
308
+ },
309
+ {
310
+ name: 'system_program',
311
+ address: '11111111111111111111111111111111',
312
+ },
313
+ ],
314
+ args: [],
315
+ },
316
+ {
317
+ name: 'create_system_config',
318
+ discriminator: [238, 250, 74, 143, 28, 109, 138, 65],
319
+ accounts: [
320
+ { name: 'system', writable: true, signer: true },
321
+ {
322
+ name: 'system_config',
323
+ writable: true,
324
+ pda: {
325
+ seeds: [
326
+ {
327
+ kind: 'const',
328
+ value: [
329
+ 115, 121, 115, 116, 101, 109, 95, 99, 111, 110, 102, 105, 103,
330
+ ],
331
+ },
332
+ {
333
+ kind: 'const',
334
+ value: [
335
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
336
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
337
+ 233, 25, 106, 73, 92,
338
+ ],
339
+ },
340
+ ],
341
+ },
342
+ },
343
+ {
344
+ name: 'system_program',
345
+ address: '11111111111111111111111111111111',
346
+ },
347
+ ],
348
+ args: [{ name: 'protocol_fee_rate', type: 'u32' }],
349
+ },
350
+ {
351
+ name: 'decrease_liquidity',
352
+ discriminator: [160, 38, 208, 111, 104, 91, 44, 1],
353
+ accounts: [
354
+ {
355
+ name: 'clmm_program',
356
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
357
+ },
358
+ { name: 'payer', signer: true },
359
+ {
360
+ name: 'nft_owner',
361
+ writable: true,
362
+ pda: {
363
+ seeds: [
364
+ {
365
+ kind: 'const',
366
+ value: [
367
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
368
+ 105, 116, 105, 111, 110,
369
+ ],
370
+ },
371
+ { kind: 'account', path: 'pool_state' },
372
+ {
373
+ kind: 'const',
374
+ value: [
375
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
376
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
377
+ 233, 25, 106, 73, 92,
378
+ ],
379
+ },
380
+ ],
381
+ },
382
+ },
383
+ { name: 'nft_account' },
384
+ { name: 'pool_state', writable: true },
385
+ {
386
+ name: 'pool_protocol_position',
387
+ writable: true,
388
+ pda: {
389
+ seeds: [
390
+ {
391
+ kind: 'const',
392
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
393
+ },
394
+ { kind: 'account', path: 'pool_state' },
395
+ {
396
+ kind: 'account',
397
+ path: 'pool_personal_position.tick_lower_index',
398
+ account: 'PersonalPositionState',
399
+ },
400
+ {
401
+ kind: 'account',
402
+ path: 'pool_personal_position.tick_upper_index',
403
+ account: 'PersonalPositionState',
404
+ },
405
+ ],
406
+ program: { kind: 'account', path: 'clmm_program' },
407
+ },
408
+ },
409
+ { name: 'pool_personal_position', writable: true },
410
+ { name: 'tick_array_lower', writable: true },
411
+ { name: 'tick_array_upper', writable: true },
412
+ {
413
+ name: 'protocol_position',
414
+ writable: true,
415
+ pda: {
416
+ seeds: [
417
+ {
418
+ kind: 'const',
419
+ value: [
420
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
421
+ 116, 105, 111, 110,
422
+ ],
423
+ },
424
+ { kind: 'account', path: 'pool_state' },
425
+ {
426
+ kind: 'const',
427
+ value: [
428
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
429
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
430
+ 233, 25, 106, 73, 92,
431
+ ],
432
+ },
433
+ ],
434
+ },
435
+ },
436
+ {
437
+ name: 'user_position',
438
+ writable: true,
439
+ pda: {
440
+ seeds: [
441
+ {
442
+ kind: 'const',
443
+ value: [
444
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
445
+ 110,
446
+ ],
447
+ },
448
+ { kind: 'account', path: 'protocol_position' },
449
+ { kind: 'account', path: 'payer' },
450
+ {
451
+ kind: 'const',
452
+ value: [
453
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
454
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
455
+ 233, 25, 106, 73, 92,
456
+ ],
457
+ },
458
+ ],
459
+ },
460
+ },
461
+ { name: 'protocol_token_account_0', writable: true },
462
+ { name: 'protocol_token_account_1', writable: true },
463
+ { name: 'pool_token_vault_0', writable: true },
464
+ { name: 'pool_token_vault_1', writable: true },
465
+ { name: 'recipient_token_account_0', writable: true },
466
+ { name: 'recipient_token_account_1', writable: true },
467
+ {
468
+ name: 'token_program',
469
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
470
+ },
471
+ {
472
+ name: 'token_program_2022',
473
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
474
+ },
475
+ {
476
+ name: 'memo_program',
477
+ address: 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr',
478
+ },
479
+ { name: 'token_0_mint' },
480
+ { name: 'token_1_mint' },
481
+ ],
482
+ args: [
483
+ { name: 'liquidity', type: 'u128' },
484
+ { name: 'amount_0_min', type: 'u64' },
485
+ { name: 'amount_1_min', type: 'u64' },
486
+ { name: 'use_tickarray_bitmap_extension', type: 'bool' },
487
+ ],
488
+ },
489
+ {
490
+ name: 'decrease_liquidity_v2',
491
+ discriminator: [58, 127, 188, 62, 79, 82, 196, 96],
492
+ accounts: [
493
+ {
494
+ name: 'clmm_program',
495
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
496
+ },
497
+ { name: 'payer', signer: true },
498
+ {
499
+ name: 'nft_owner',
500
+ writable: true,
501
+ pda: {
502
+ seeds: [
503
+ {
504
+ kind: 'const',
505
+ value: [
506
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
507
+ 105, 116, 105, 111, 110,
508
+ ],
509
+ },
510
+ { kind: 'account', path: 'pool_state' },
511
+ {
512
+ kind: 'const',
513
+ value: [
514
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
515
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
516
+ 233, 25, 106, 73, 92,
517
+ ],
518
+ },
519
+ ],
520
+ },
521
+ },
522
+ { name: 'nft_account' },
523
+ { name: 'pool_state', writable: true },
524
+ {
525
+ name: 'pool_protocol_position',
526
+ writable: true,
527
+ pda: {
528
+ seeds: [
529
+ {
530
+ kind: 'const',
531
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
532
+ },
533
+ { kind: 'account', path: 'pool_state' },
534
+ {
535
+ kind: 'account',
536
+ path: 'pool_personal_position.tick_lower_index',
537
+ account: 'PersonalPositionState',
538
+ },
539
+ {
540
+ kind: 'account',
541
+ path: 'pool_personal_position.tick_upper_index',
542
+ account: 'PersonalPositionState',
543
+ },
544
+ ],
545
+ program: { kind: 'account', path: 'clmm_program' },
546
+ },
547
+ },
548
+ { name: 'pool_personal_position', writable: true },
549
+ { name: 'tick_array_lower', writable: true },
550
+ { name: 'tick_array_upper', writable: true },
551
+ {
552
+ name: 'protocol_position',
553
+ writable: true,
554
+ pda: {
555
+ seeds: [
556
+ {
557
+ kind: 'const',
558
+ value: [
559
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
560
+ 116, 105, 111, 110,
561
+ ],
562
+ },
563
+ { kind: 'account', path: 'pool_state' },
564
+ {
565
+ kind: 'const',
566
+ value: [
567
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
568
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
569
+ 233, 25, 106, 73, 92,
570
+ ],
571
+ },
572
+ ],
573
+ },
574
+ },
575
+ {
576
+ name: 'user_position',
577
+ writable: true,
578
+ pda: {
579
+ seeds: [
580
+ {
581
+ kind: 'const',
582
+ value: [
583
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
584
+ 110,
585
+ ],
586
+ },
587
+ { kind: 'account', path: 'protocol_position' },
588
+ { kind: 'account', path: 'payer' },
589
+ {
590
+ kind: 'const',
591
+ value: [
592
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
593
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
594
+ 233, 25, 106, 73, 92,
595
+ ],
596
+ },
597
+ ],
598
+ },
599
+ },
600
+ { name: 'protocol_token_account_0', writable: true },
601
+ { name: 'protocol_token_account_1', writable: true },
602
+ { name: 'pool_token_vault_0', writable: true },
603
+ { name: 'pool_token_vault_1', writable: true },
604
+ { name: 'recipient_token_account_0', writable: true },
605
+ { name: 'recipient_token_account_1', writable: true },
606
+ {
607
+ name: 'token_program',
608
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
609
+ },
610
+ {
611
+ name: 'token_program_2022',
612
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
613
+ },
614
+ {
615
+ name: 'memo_program',
616
+ address: 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr',
617
+ },
618
+ { name: 'token_0_mint' },
619
+ { name: 'token_1_mint' },
620
+ ],
621
+ args: [
622
+ { name: 'liquidity', type: 'u128' },
623
+ { name: 'amount_0_min', type: 'u64' },
624
+ { name: 'amount_1_min', type: 'u64' },
625
+ { name: 'use_tickarray_bitmap_extension', type: 'bool' },
626
+ ],
627
+ },
628
+ {
629
+ name: 'increase_liquidity',
630
+ discriminator: [46, 156, 243, 118, 13, 205, 251, 178],
631
+ accounts: [
632
+ {
633
+ name: 'clmm_program',
634
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
635
+ },
636
+ { name: 'payer', signer: true },
637
+ {
638
+ name: 'nft_owner',
639
+ writable: true,
640
+ pda: {
641
+ seeds: [
642
+ {
643
+ kind: 'const',
644
+ value: [
645
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
646
+ 105, 116, 105, 111, 110,
647
+ ],
648
+ },
649
+ { kind: 'account', path: 'pool_state' },
650
+ {
651
+ kind: 'const',
652
+ value: [
653
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
654
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
655
+ 233, 25, 106, 73, 92,
656
+ ],
657
+ },
658
+ ],
659
+ },
660
+ },
661
+ { name: 'nft_account' },
662
+ { name: 'pool_state', writable: true },
663
+ {
664
+ name: 'pool_protocol_position',
665
+ writable: true,
666
+ pda: {
667
+ seeds: [
668
+ {
669
+ kind: 'const',
670
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
671
+ },
672
+ { kind: 'account', path: 'pool_state' },
673
+ {
674
+ kind: 'account',
675
+ path: 'pool_personal_position.tick_lower_index',
676
+ account: 'PersonalPositionState',
677
+ },
678
+ {
679
+ kind: 'account',
680
+ path: 'pool_personal_position.tick_upper_index',
681
+ account: 'PersonalPositionState',
682
+ },
683
+ ],
684
+ program: { kind: 'account', path: 'clmm_program' },
685
+ },
686
+ },
687
+ { name: 'pool_personal_position', writable: true },
688
+ { name: 'tick_array_lower', writable: true },
689
+ { name: 'tick_array_upper', writable: true },
690
+ {
691
+ name: 'protocol_position',
692
+ writable: true,
693
+ pda: {
694
+ seeds: [
695
+ {
696
+ kind: 'const',
697
+ value: [
698
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
699
+ 116, 105, 111, 110,
700
+ ],
701
+ },
702
+ { kind: 'account', path: 'pool_state' },
703
+ {
704
+ kind: 'const',
705
+ value: [
706
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
707
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
708
+ 233, 25, 106, 73, 92,
709
+ ],
710
+ },
711
+ ],
712
+ },
713
+ },
714
+ {
715
+ name: 'user_position',
716
+ writable: true,
717
+ pda: {
718
+ seeds: [
719
+ {
720
+ kind: 'const',
721
+ value: [
722
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
723
+ 110,
724
+ ],
725
+ },
726
+ { kind: 'account', path: 'protocol_position' },
727
+ { kind: 'account', path: 'payer' },
728
+ {
729
+ kind: 'const',
730
+ value: [
731
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
732
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
733
+ 233, 25, 106, 73, 92,
734
+ ],
735
+ },
736
+ ],
737
+ },
738
+ },
739
+ { name: 'protocol_token_account_0', writable: true },
740
+ { name: 'protocol_token_account_1', writable: true },
741
+ {
742
+ name: 'pool_token_vault_0',
743
+ docs: ['The address that holds pool tokens for token_0'],
744
+ writable: true,
745
+ },
746
+ {
747
+ name: 'pool_token_vault_1',
748
+ docs: ['The address that holds pool tokens for token_1'],
749
+ writable: true,
750
+ },
751
+ {
752
+ name: 'token_program',
753
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
754
+ },
755
+ {
756
+ name: 'token_program_2022',
757
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
758
+ },
759
+ { name: 'token_0_mint' },
760
+ { name: 'token_1_mint' },
761
+ { name: 'payer_token_account_0', writable: true },
762
+ { name: 'payer_token_account_1', writable: true },
763
+ ],
764
+ args: [
765
+ { name: 'liquidity', type: 'u128' },
766
+ { name: 'amount_0', type: 'u64' },
767
+ { name: 'amount_1', type: 'u64' },
768
+ { name: 'amount_0_max', type: 'u64' },
769
+ { name: 'amount_1_max', type: 'u64' },
770
+ ],
771
+ },
772
+ {
773
+ name: 'increase_liquidity_v2',
774
+ discriminator: [133, 29, 89, 223, 69, 238, 176, 10],
775
+ accounts: [
776
+ {
777
+ name: 'clmm_program',
778
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
779
+ },
780
+ { name: 'payer', signer: true },
781
+ {
782
+ name: 'nft_owner',
783
+ writable: true,
784
+ pda: {
785
+ seeds: [
786
+ {
787
+ kind: 'const',
788
+ value: [
789
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
790
+ 105, 116, 105, 111, 110,
791
+ ],
792
+ },
793
+ { kind: 'account', path: 'pool_state' },
794
+ {
795
+ kind: 'const',
796
+ value: [
797
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
798
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
799
+ 233, 25, 106, 73, 92,
800
+ ],
801
+ },
802
+ ],
803
+ },
804
+ },
805
+ { name: 'nft_account' },
806
+ { name: 'pool_state', writable: true },
807
+ {
808
+ name: 'pool_protocol_position',
809
+ writable: true,
810
+ pda: {
811
+ seeds: [
812
+ {
813
+ kind: 'const',
814
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
815
+ },
816
+ { kind: 'account', path: 'pool_state' },
817
+ {
818
+ kind: 'account',
819
+ path: 'pool_personal_position.tick_lower_index',
820
+ account: 'PersonalPositionState',
821
+ },
822
+ {
823
+ kind: 'account',
824
+ path: 'pool_personal_position.tick_upper_index',
825
+ account: 'PersonalPositionState',
826
+ },
827
+ ],
828
+ program: { kind: 'account', path: 'clmm_program' },
829
+ },
830
+ },
831
+ { name: 'pool_personal_position', writable: true },
832
+ { name: 'tick_array_lower', writable: true },
833
+ { name: 'tick_array_upper', writable: true },
834
+ {
835
+ name: 'protocol_position',
836
+ writable: true,
837
+ pda: {
838
+ seeds: [
839
+ {
840
+ kind: 'const',
841
+ value: [
842
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
843
+ 116, 105, 111, 110,
844
+ ],
845
+ },
846
+ { kind: 'account', path: 'pool_state' },
847
+ {
848
+ kind: 'const',
849
+ value: [
850
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
851
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
852
+ 233, 25, 106, 73, 92,
853
+ ],
854
+ },
855
+ ],
856
+ },
857
+ },
858
+ {
859
+ name: 'user_position',
860
+ writable: true,
861
+ pda: {
862
+ seeds: [
863
+ {
864
+ kind: 'const',
865
+ value: [
866
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
867
+ 110,
868
+ ],
869
+ },
870
+ { kind: 'account', path: 'protocol_position' },
871
+ { kind: 'account', path: 'payer' },
872
+ {
873
+ kind: 'const',
874
+ value: [
875
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
876
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
877
+ 233, 25, 106, 73, 92,
878
+ ],
879
+ },
880
+ ],
881
+ },
882
+ },
883
+ { name: 'protocol_token_account_0', writable: true },
884
+ { name: 'protocol_token_account_1', writable: true },
885
+ {
886
+ name: 'pool_token_vault_0',
887
+ docs: ['The address that holds pool tokens for token_0'],
888
+ writable: true,
889
+ },
890
+ {
891
+ name: 'pool_token_vault_1',
892
+ docs: ['The address that holds pool tokens for token_1'],
893
+ writable: true,
894
+ },
895
+ {
896
+ name: 'token_program',
897
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
898
+ },
899
+ {
900
+ name: 'token_program_2022',
901
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
902
+ },
903
+ { name: 'token_0_mint' },
904
+ { name: 'token_1_mint' },
905
+ { name: 'payer_token_account_0', writable: true },
906
+ { name: 'payer_token_account_1', writable: true },
907
+ ],
908
+ args: [
909
+ { name: 'liquidity', type: 'u128' },
910
+ { name: 'amount_0', type: 'u64' },
911
+ { name: 'amount_1', type: 'u64' },
912
+ { name: 'amount_0_max', type: 'u64' },
913
+ { name: 'amount_1_max', type: 'u64' },
914
+ { name: 'base_flag', type: { option: 'bool' } },
915
+ ],
916
+ },
917
+ {
918
+ name: 'initialize_protocol_position',
919
+ discriminator: [55, 44, 157, 156, 186, 176, 233, 135],
920
+ accounts: [
921
+ {
922
+ name: 'clmm_program',
923
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
924
+ },
925
+ { name: 'owner', writable: true, signer: true },
926
+ {
927
+ name: 'nft_account',
928
+ pda: {
929
+ seeds: [
930
+ { kind: 'account', path: 'authority_position' },
931
+ {
932
+ kind: 'const',
933
+ value: [
934
+ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206,
935
+ 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140,
936
+ 245, 133, 126, 255, 0, 169,
937
+ ],
938
+ },
939
+ {
940
+ kind: 'account',
941
+ path: 'pool_personal_position.nft_mint',
942
+ account: 'PersonalPositionState',
943
+ },
944
+ ],
945
+ program: {
946
+ kind: 'const',
947
+ value: [
948
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
949
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
950
+ 219, 233, 248, 89,
951
+ ],
952
+ },
953
+ },
954
+ },
955
+ { name: 'pool_state' },
956
+ { name: 'pool_personal_position' },
957
+ {
958
+ name: 'system_config',
959
+ pda: {
960
+ seeds: [
961
+ {
962
+ kind: 'const',
963
+ value: [
964
+ 115, 121, 115, 116, 101, 109, 95, 99, 111, 110, 102, 105, 103,
965
+ ],
966
+ },
967
+ {
968
+ kind: 'const',
969
+ value: [
970
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
971
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
972
+ 233, 25, 106, 73, 92,
973
+ ],
974
+ },
975
+ ],
976
+ },
977
+ },
978
+ {
979
+ name: 'protocol_position',
980
+ writable: true,
981
+ pda: {
982
+ seeds: [
983
+ {
984
+ kind: 'const',
985
+ value: [
986
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
987
+ 116, 105, 111, 110,
988
+ ],
989
+ },
990
+ { kind: 'account', path: 'pool_state' },
991
+ {
992
+ kind: 'const',
993
+ value: [
994
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
995
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
996
+ 233, 25, 106, 73, 92,
997
+ ],
998
+ },
999
+ ],
1000
+ },
1001
+ },
1002
+ {
1003
+ name: 'authority_position',
1004
+ pda: {
1005
+ seeds: [
1006
+ {
1007
+ kind: 'const',
1008
+ value: [
1009
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1010
+ 105, 116, 105, 111, 110,
1011
+ ],
1012
+ },
1013
+ { kind: 'account', path: 'pool_state' },
1014
+ {
1015
+ kind: 'const',
1016
+ value: [
1017
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1018
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1019
+ 233, 25, 106, 73, 92,
1020
+ ],
1021
+ },
1022
+ ],
1023
+ },
1024
+ },
1025
+ { name: 'protocol_token_vault_0' },
1026
+ { name: 'protocol_token_vault_1' },
1027
+ {
1028
+ name: 'associated_token_program',
1029
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
1030
+ },
1031
+ {
1032
+ name: 'system_program',
1033
+ address: '11111111111111111111111111111111',
1034
+ },
1035
+ { name: 'token_0_mint' },
1036
+ { name: 'token_1_mint' },
1037
+ ],
1038
+ args: [],
1039
+ },
1040
+ {
1041
+ name: 'initialize_user_position',
1042
+ discriminator: [231, 139, 172, 230, 252, 49, 210, 9],
1043
+ accounts: [
1044
+ { name: 'payer', writable: true, signer: true },
1045
+ { name: 'pool_state' },
1046
+ {
1047
+ name: 'protocol_position',
1048
+ pda: {
1049
+ seeds: [
1050
+ {
1051
+ kind: 'const',
1052
+ value: [
1053
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
1054
+ 116, 105, 111, 110,
1055
+ ],
1056
+ },
1057
+ { kind: 'account', path: 'pool_state' },
1058
+ {
1059
+ kind: 'const',
1060
+ value: [
1061
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1062
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1063
+ 233, 25, 106, 73, 92,
1064
+ ],
1065
+ },
1066
+ ],
1067
+ },
1068
+ },
1069
+ {
1070
+ name: 'user_position',
1071
+ writable: true,
1072
+ pda: {
1073
+ seeds: [
1074
+ {
1075
+ kind: 'const',
1076
+ value: [
1077
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
1078
+ 110,
1079
+ ],
1080
+ },
1081
+ { kind: 'account', path: 'protocol_position' },
1082
+ { kind: 'account', path: 'payer' },
1083
+ {
1084
+ kind: 'const',
1085
+ value: [
1086
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1087
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1088
+ 233, 25, 106, 73, 92,
1089
+ ],
1090
+ },
1091
+ ],
1092
+ },
1093
+ },
1094
+ {
1095
+ name: 'system_program',
1096
+ address: '11111111111111111111111111111111',
1097
+ },
1098
+ ],
1099
+ args: [
1100
+ { name: '_tick_lower_index', type: 'i32' },
1101
+ { name: '_tick_upper_index', type: 'i32' },
1102
+ ],
1103
+ },
1104
+ {
1105
+ name: 'proxy_initialize_protocol_position',
1106
+ discriminator: [141, 192, 207, 219, 103, 208, 249, 78],
1107
+ accounts: [
1108
+ {
1109
+ name: 'clmm_program',
1110
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
1111
+ },
1112
+ { name: 'owner', writable: true, signer: true },
1113
+ {
1114
+ name: 'position_nft_owner',
1115
+ writable: true,
1116
+ pda: {
1117
+ seeds: [
1118
+ {
1119
+ kind: 'const',
1120
+ value: [
1121
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1122
+ 105, 116, 105, 111, 110,
1123
+ ],
1124
+ },
1125
+ { kind: 'account', path: 'pool_state' },
1126
+ {
1127
+ kind: 'const',
1128
+ value: [
1129
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1130
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1131
+ 233, 25, 106, 73, 92,
1132
+ ],
1133
+ },
1134
+ ],
1135
+ },
1136
+ },
1137
+ { name: 'position_nft_mint', writable: true, signer: true },
1138
+ { name: 'position_nft_account', writable: true },
1139
+ { name: 'metadata_account', writable: true },
1140
+ { name: 'pool_state', writable: true },
1141
+ {
1142
+ name: 'pool_protocol_position',
1143
+ writable: true,
1144
+ pda: {
1145
+ seeds: [
1146
+ {
1147
+ kind: 'const',
1148
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1149
+ },
1150
+ { kind: 'account', path: 'pool_state' },
1151
+ { kind: 'arg', path: 'tick_lower_index' },
1152
+ { kind: 'arg', path: 'tick_upper_index' },
1153
+ ],
1154
+ program: { kind: 'account', path: 'clmm_program' },
1155
+ },
1156
+ },
1157
+ {
1158
+ name: 'tick_array_lower',
1159
+ writable: true,
1160
+ pda: {
1161
+ seeds: [
1162
+ {
1163
+ kind: 'const',
1164
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1165
+ },
1166
+ { kind: 'account', path: 'pool_state' },
1167
+ { kind: 'arg', path: 'tick_array_lower_start_index' },
1168
+ ],
1169
+ program: { kind: 'account', path: 'clmm_program' },
1170
+ },
1171
+ },
1172
+ {
1173
+ name: 'tick_array_upper',
1174
+ writable: true,
1175
+ pda: {
1176
+ seeds: [
1177
+ {
1178
+ kind: 'const',
1179
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1180
+ },
1181
+ { kind: 'account', path: 'pool_state' },
1182
+ { kind: 'arg', path: 'tick_array_upper_start_index' },
1183
+ ],
1184
+ program: { kind: 'account', path: 'clmm_program' },
1185
+ },
1186
+ },
1187
+ {
1188
+ name: 'pool_personal_position',
1189
+ writable: true,
1190
+ pda: {
1191
+ seeds: [
1192
+ {
1193
+ kind: 'const',
1194
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1195
+ },
1196
+ { kind: 'account', path: 'position_nft_mint' },
1197
+ ],
1198
+ program: { kind: 'account', path: 'clmm_program' },
1199
+ },
1200
+ },
1201
+ {
1202
+ name: 'token_account_0',
1203
+ docs: ['The token_0 account deposit token to the pool'],
1204
+ writable: true,
1205
+ },
1206
+ {
1207
+ name: 'token_account_1',
1208
+ docs: ['The token_1 account deposit token to the pool'],
1209
+ writable: true,
1210
+ },
1211
+ {
1212
+ name: 'pool_token_vault_0',
1213
+ docs: ['The address that holds pool tokens for token_0'],
1214
+ writable: true,
1215
+ },
1216
+ {
1217
+ name: 'pool_token_vault_1',
1218
+ docs: ['The address that holds pool tokens for token_1'],
1219
+ writable: true,
1220
+ },
1221
+ {
1222
+ name: 'rent',
1223
+ address: 'SysvarRent111111111111111111111111111111111',
1224
+ },
1225
+ {
1226
+ name: 'system_program',
1227
+ address: '11111111111111111111111111111111',
1228
+ },
1229
+ {
1230
+ name: 'token_program',
1231
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
1232
+ },
1233
+ {
1234
+ name: 'associated_token_program',
1235
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
1236
+ },
1237
+ {
1238
+ name: 'metadata_program',
1239
+ address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
1240
+ },
1241
+ {
1242
+ name: 'token_program_2022',
1243
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
1244
+ },
1245
+ { name: 'vault_0_mint' },
1246
+ { name: 'vault_1_mint' },
1247
+ ],
1248
+ args: [
1249
+ { name: 'tick_lower_index', type: 'i32' },
1250
+ { name: 'tick_upper_index', type: 'i32' },
1251
+ { name: 'tick_array_lower_start_index', type: 'i32' },
1252
+ { name: 'tick_array_upper_start_index', type: 'i32' },
1253
+ ],
1254
+ },
1255
+ {
1256
+ name: 'proxy_initialize_protocol_position_v2',
1257
+ discriminator: [213, 232, 249, 65, 105, 209, 61, 20],
1258
+ accounts: [
1259
+ {
1260
+ name: 'clmm_program',
1261
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
1262
+ },
1263
+ { name: 'owner', writable: true, signer: true },
1264
+ {
1265
+ name: 'position_nft_owner',
1266
+ writable: true,
1267
+ pda: {
1268
+ seeds: [
1269
+ {
1270
+ kind: 'const',
1271
+ value: [
1272
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1273
+ 105, 116, 105, 111, 110,
1274
+ ],
1275
+ },
1276
+ { kind: 'account', path: 'pool_state' },
1277
+ {
1278
+ kind: 'const',
1279
+ value: [
1280
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1281
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1282
+ 233, 25, 106, 73, 92,
1283
+ ],
1284
+ },
1285
+ ],
1286
+ },
1287
+ },
1288
+ { name: 'position_nft_mint', writable: true, signer: true },
1289
+ { name: 'position_nft_account', writable: true },
1290
+ { name: 'metadata_account', writable: true },
1291
+ { name: 'pool_state', writable: true },
1292
+ {
1293
+ name: 'pool_protocol_position',
1294
+ writable: true,
1295
+ pda: {
1296
+ seeds: [
1297
+ {
1298
+ kind: 'const',
1299
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1300
+ },
1301
+ { kind: 'account', path: 'pool_state' },
1302
+ { kind: 'arg', path: 'tick_lower_index' },
1303
+ { kind: 'arg', path: 'tick_upper_index' },
1304
+ ],
1305
+ program: { kind: 'account', path: 'clmm_program' },
1306
+ },
1307
+ },
1308
+ {
1309
+ name: 'tick_array_lower',
1310
+ writable: true,
1311
+ pda: {
1312
+ seeds: [
1313
+ {
1314
+ kind: 'const',
1315
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1316
+ },
1317
+ { kind: 'account', path: 'pool_state' },
1318
+ { kind: 'arg', path: 'tick_array_lower_start_index' },
1319
+ ],
1320
+ program: { kind: 'account', path: 'clmm_program' },
1321
+ },
1322
+ },
1323
+ {
1324
+ name: 'tick_array_upper',
1325
+ writable: true,
1326
+ pda: {
1327
+ seeds: [
1328
+ {
1329
+ kind: 'const',
1330
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1331
+ },
1332
+ { kind: 'account', path: 'pool_state' },
1333
+ { kind: 'arg', path: 'tick_array_upper_start_index' },
1334
+ ],
1335
+ program: { kind: 'account', path: 'clmm_program' },
1336
+ },
1337
+ },
1338
+ {
1339
+ name: 'pool_personal_position',
1340
+ writable: true,
1341
+ pda: {
1342
+ seeds: [
1343
+ {
1344
+ kind: 'const',
1345
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1346
+ },
1347
+ { kind: 'account', path: 'position_nft_mint' },
1348
+ ],
1349
+ program: { kind: 'account', path: 'clmm_program' },
1350
+ },
1351
+ },
1352
+ {
1353
+ name: 'token_account_0',
1354
+ docs: ['The token_0 account deposit token to the pool'],
1355
+ writable: true,
1356
+ },
1357
+ {
1358
+ name: 'token_account_1',
1359
+ docs: ['The token_1 account deposit token to the pool'],
1360
+ writable: true,
1361
+ },
1362
+ {
1363
+ name: 'pool_token_vault_0',
1364
+ docs: ['The address that holds pool tokens for token_0'],
1365
+ writable: true,
1366
+ },
1367
+ {
1368
+ name: 'pool_token_vault_1',
1369
+ docs: ['The address that holds pool tokens for token_1'],
1370
+ writable: true,
1371
+ },
1372
+ {
1373
+ name: 'rent',
1374
+ address: 'SysvarRent111111111111111111111111111111111',
1375
+ },
1376
+ {
1377
+ name: 'system_program',
1378
+ address: '11111111111111111111111111111111',
1379
+ },
1380
+ {
1381
+ name: 'token_program',
1382
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
1383
+ },
1384
+ {
1385
+ name: 'associated_token_program',
1386
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
1387
+ },
1388
+ {
1389
+ name: 'metadata_program',
1390
+ address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
1391
+ },
1392
+ {
1393
+ name: 'token_program_2022',
1394
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
1395
+ },
1396
+ { name: 'vault_0_mint' },
1397
+ { name: 'vault_1_mint' },
1398
+ ],
1399
+ args: [
1400
+ { name: 'tick_lower_index', type: 'i32' },
1401
+ { name: 'tick_upper_index', type: 'i32' },
1402
+ { name: 'tick_array_lower_start_index', type: 'i32' },
1403
+ { name: 'tick_array_upper_start_index', type: 'i32' },
1404
+ { name: 'with_matedata', type: 'bool' },
1405
+ { name: 'base_flag', type: { option: 'bool' } },
1406
+ ],
1407
+ },
1408
+ {
1409
+ name: 'reactivate_protocol_position',
1410
+ discriminator: [80, 39, 138, 155, 242, 229, 198, 76],
1411
+ accounts: [
1412
+ { name: 'system', writable: true, signer: true },
1413
+ { name: 'pool_state', writable: true },
1414
+ {
1415
+ name: 'protocol_position',
1416
+ writable: true,
1417
+ pda: {
1418
+ seeds: [
1419
+ {
1420
+ kind: 'const',
1421
+ value: [
1422
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
1423
+ 116, 105, 111, 110,
1424
+ ],
1425
+ },
1426
+ { kind: 'account', path: 'pool_state' },
1427
+ {
1428
+ kind: 'const',
1429
+ value: [
1430
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1431
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1432
+ 233, 25, 106, 73, 92,
1433
+ ],
1434
+ },
1435
+ ],
1436
+ },
1437
+ },
1438
+ ],
1439
+ args: [],
1440
+ },
1441
+ {
1442
+ name: 'reopen_protocol_position',
1443
+ discriminator: [43, 178, 150, 244, 50, 137, 29, 22],
1444
+ accounts: [
1445
+ {
1446
+ name: 'clmm_program',
1447
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
1448
+ },
1449
+ { name: 'system', writable: true, signer: true },
1450
+ {
1451
+ name: 'position_nft_owner',
1452
+ writable: true,
1453
+ pda: {
1454
+ seeds: [
1455
+ {
1456
+ kind: 'const',
1457
+ value: [
1458
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1459
+ 105, 116, 105, 111, 110,
1460
+ ],
1461
+ },
1462
+ { kind: 'account', path: 'pool_state' },
1463
+ {
1464
+ kind: 'const',
1465
+ value: [
1466
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1467
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1468
+ 233, 25, 106, 73, 92,
1469
+ ],
1470
+ },
1471
+ ],
1472
+ },
1473
+ },
1474
+ { name: 'position_nft_mint', writable: true, signer: true },
1475
+ { name: 'position_nft_account', writable: true },
1476
+ { name: 'metadata_account', writable: true },
1477
+ {
1478
+ name: 'protocol_position',
1479
+ writable: true,
1480
+ pda: {
1481
+ seeds: [
1482
+ {
1483
+ kind: 'const',
1484
+ value: [
1485
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
1486
+ 116, 105, 111, 110,
1487
+ ],
1488
+ },
1489
+ { kind: 'account', path: 'pool_state' },
1490
+ {
1491
+ kind: 'const',
1492
+ value: [
1493
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1494
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1495
+ 233, 25, 106, 73, 92,
1496
+ ],
1497
+ },
1498
+ ],
1499
+ },
1500
+ },
1501
+ { name: 'pool_state', writable: true },
1502
+ {
1503
+ name: 'pool_protocol_position',
1504
+ writable: true,
1505
+ pda: {
1506
+ seeds: [
1507
+ {
1508
+ kind: 'const',
1509
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1510
+ },
1511
+ { kind: 'account', path: 'pool_state' },
1512
+ { kind: 'arg', path: 'tick_lower_index' },
1513
+ { kind: 'arg', path: 'tick_upper_index' },
1514
+ ],
1515
+ program: { kind: 'account', path: 'clmm_program' },
1516
+ },
1517
+ },
1518
+ {
1519
+ name: 'tick_array_lower',
1520
+ writable: true,
1521
+ pda: {
1522
+ seeds: [
1523
+ {
1524
+ kind: 'const',
1525
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1526
+ },
1527
+ { kind: 'account', path: 'pool_state' },
1528
+ { kind: 'arg', path: 'tick_array_lower_start_index' },
1529
+ ],
1530
+ program: { kind: 'account', path: 'clmm_program' },
1531
+ },
1532
+ },
1533
+ {
1534
+ name: 'tick_array_upper',
1535
+ writable: true,
1536
+ pda: {
1537
+ seeds: [
1538
+ {
1539
+ kind: 'const',
1540
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1541
+ },
1542
+ { kind: 'account', path: 'pool_state' },
1543
+ { kind: 'arg', path: 'tick_array_upper_start_index' },
1544
+ ],
1545
+ program: { kind: 'account', path: 'clmm_program' },
1546
+ },
1547
+ },
1548
+ {
1549
+ name: 'pool_personal_position',
1550
+ writable: true,
1551
+ pda: {
1552
+ seeds: [
1553
+ {
1554
+ kind: 'const',
1555
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1556
+ },
1557
+ { kind: 'account', path: 'position_nft_mint' },
1558
+ ],
1559
+ program: { kind: 'account', path: 'clmm_program' },
1560
+ },
1561
+ },
1562
+ {
1563
+ name: 'system_token_account_0',
1564
+ docs: ['The token_0 account deposit token to the pool'],
1565
+ writable: true,
1566
+ },
1567
+ {
1568
+ name: 'system_token_account_1',
1569
+ docs: ['The token_1 account deposit token to the pool'],
1570
+ writable: true,
1571
+ },
1572
+ {
1573
+ name: 'pool_token_vault_0',
1574
+ docs: ['The address that holds pool tokens for token_0'],
1575
+ writable: true,
1576
+ },
1577
+ {
1578
+ name: 'pool_token_vault_1',
1579
+ docs: ['The address that holds pool tokens for token_1'],
1580
+ writable: true,
1581
+ },
1582
+ { name: 'protocol_token_account_0', writable: true },
1583
+ { name: 'protocol_token_account_1', writable: true },
1584
+ {
1585
+ name: 'rent',
1586
+ address: 'SysvarRent111111111111111111111111111111111',
1587
+ },
1588
+ {
1589
+ name: 'system_program',
1590
+ address: '11111111111111111111111111111111',
1591
+ },
1592
+ {
1593
+ name: 'token_program',
1594
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
1595
+ },
1596
+ {
1597
+ name: 'associated_token_program',
1598
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
1599
+ },
1600
+ {
1601
+ name: 'metadata_program',
1602
+ address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
1603
+ },
1604
+ {
1605
+ name: 'token_program_2022',
1606
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
1607
+ },
1608
+ { name: 'vault_0_mint' },
1609
+ { name: 'vault_1_mint' },
1610
+ ],
1611
+ args: [
1612
+ { name: 'tick_lower_index', type: 'i32' },
1613
+ { name: 'tick_upper_index', type: 'i32' },
1614
+ { name: 'tick_array_lower_start_index', type: 'i32' },
1615
+ { name: 'tick_array_upper_start_index', type: 'i32' },
1616
+ { name: 'liquidity', type: 'u128' },
1617
+ { name: 'amount_0_max', type: 'u64' },
1618
+ { name: 'amount_1_max', type: 'u64' },
1619
+ ],
1620
+ },
1621
+ {
1622
+ name: 'reopen_protocol_position_v2',
1623
+ discriminator: [81, 78, 197, 149, 85, 156, 58, 91],
1624
+ accounts: [
1625
+ {
1626
+ name: 'clmm_program',
1627
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
1628
+ },
1629
+ { name: 'system', writable: true, signer: true },
1630
+ {
1631
+ name: 'position_nft_owner',
1632
+ writable: true,
1633
+ pda: {
1634
+ seeds: [
1635
+ {
1636
+ kind: 'const',
1637
+ value: [
1638
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1639
+ 105, 116, 105, 111, 110,
1640
+ ],
1641
+ },
1642
+ { kind: 'account', path: 'pool_state' },
1643
+ {
1644
+ kind: 'const',
1645
+ value: [
1646
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1647
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1648
+ 233, 25, 106, 73, 92,
1649
+ ],
1650
+ },
1651
+ ],
1652
+ },
1653
+ },
1654
+ { name: 'position_nft_mint', writable: true, signer: true },
1655
+ { name: 'position_nft_account', writable: true },
1656
+ { name: 'metadata_account', writable: true },
1657
+ {
1658
+ name: 'protocol_position',
1659
+ writable: true,
1660
+ pda: {
1661
+ seeds: [
1662
+ {
1663
+ kind: 'const',
1664
+ value: [
1665
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
1666
+ 116, 105, 111, 110,
1667
+ ],
1668
+ },
1669
+ { kind: 'account', path: 'pool_state' },
1670
+ {
1671
+ kind: 'const',
1672
+ value: [
1673
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1674
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1675
+ 233, 25, 106, 73, 92,
1676
+ ],
1677
+ },
1678
+ ],
1679
+ },
1680
+ },
1681
+ { name: 'pool_state', writable: true },
1682
+ {
1683
+ name: 'pool_protocol_position',
1684
+ writable: true,
1685
+ pda: {
1686
+ seeds: [
1687
+ {
1688
+ kind: 'const',
1689
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1690
+ },
1691
+ { kind: 'account', path: 'pool_state' },
1692
+ { kind: 'arg', path: 'tick_lower_index' },
1693
+ { kind: 'arg', path: 'tick_upper_index' },
1694
+ ],
1695
+ program: { kind: 'account', path: 'clmm_program' },
1696
+ },
1697
+ },
1698
+ {
1699
+ name: 'tick_array_lower',
1700
+ writable: true,
1701
+ pda: {
1702
+ seeds: [
1703
+ {
1704
+ kind: 'const',
1705
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1706
+ },
1707
+ { kind: 'account', path: 'pool_state' },
1708
+ { kind: 'arg', path: 'tick_array_lower_start_index' },
1709
+ ],
1710
+ program: { kind: 'account', path: 'clmm_program' },
1711
+ },
1712
+ },
1713
+ {
1714
+ name: 'tick_array_upper',
1715
+ writable: true,
1716
+ pda: {
1717
+ seeds: [
1718
+ {
1719
+ kind: 'const',
1720
+ value: [116, 105, 99, 107, 95, 97, 114, 114, 97, 121],
1721
+ },
1722
+ { kind: 'account', path: 'pool_state' },
1723
+ { kind: 'arg', path: 'tick_array_upper_start_index' },
1724
+ ],
1725
+ program: { kind: 'account', path: 'clmm_program' },
1726
+ },
1727
+ },
1728
+ {
1729
+ name: 'pool_personal_position',
1730
+ writable: true,
1731
+ pda: {
1732
+ seeds: [
1733
+ {
1734
+ kind: 'const',
1735
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
1736
+ },
1737
+ { kind: 'account', path: 'position_nft_mint' },
1738
+ ],
1739
+ program: { kind: 'account', path: 'clmm_program' },
1740
+ },
1741
+ },
1742
+ {
1743
+ name: 'system_token_account_0',
1744
+ docs: ['The token_0 account deposit token to the pool'],
1745
+ writable: true,
1746
+ },
1747
+ {
1748
+ name: 'system_token_account_1',
1749
+ docs: ['The token_1 account deposit token to the pool'],
1750
+ writable: true,
1751
+ },
1752
+ {
1753
+ name: 'pool_token_vault_0',
1754
+ docs: ['The address that holds pool tokens for token_0'],
1755
+ writable: true,
1756
+ },
1757
+ {
1758
+ name: 'pool_token_vault_1',
1759
+ docs: ['The address that holds pool tokens for token_1'],
1760
+ writable: true,
1761
+ },
1762
+ { name: 'protocol_token_account_0', writable: true },
1763
+ { name: 'protocol_token_account_1', writable: true },
1764
+ {
1765
+ name: 'rent',
1766
+ address: 'SysvarRent111111111111111111111111111111111',
1767
+ },
1768
+ {
1769
+ name: 'system_program',
1770
+ address: '11111111111111111111111111111111',
1771
+ },
1772
+ {
1773
+ name: 'token_program',
1774
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
1775
+ },
1776
+ {
1777
+ name: 'associated_token_program',
1778
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
1779
+ },
1780
+ {
1781
+ name: 'metadata_program',
1782
+ address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
1783
+ },
1784
+ {
1785
+ name: 'token_program_2022',
1786
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
1787
+ },
1788
+ { name: 'vault_0_mint' },
1789
+ { name: 'vault_1_mint' },
1790
+ ],
1791
+ args: [
1792
+ { name: 'tick_lower_index', type: 'i32' },
1793
+ { name: 'tick_upper_index', type: 'i32' },
1794
+ { name: 'tick_array_lower_start_index', type: 'i32' },
1795
+ { name: 'tick_array_upper_start_index', type: 'i32' },
1796
+ { name: 'liquidity', type: 'u128' },
1797
+ { name: 'amount_0_max', type: 'u64' },
1798
+ { name: 'amount_1_max', type: 'u64' },
1799
+ { name: 'with_matedata', type: 'bool' },
1800
+ { name: 'base_flag', type: { option: 'bool' } },
1801
+ ],
1802
+ },
1803
+ {
1804
+ name: 'swap_liquidity',
1805
+ discriminator: [95, 66, 115, 115, 206, 52, 200, 206],
1806
+ accounts: [
1807
+ { name: 'system', writable: true, signer: true },
1808
+ { name: 'pool_state' },
1809
+ {
1810
+ name: 'authority_position',
1811
+ pda: {
1812
+ seeds: [
1813
+ {
1814
+ kind: 'const',
1815
+ value: [
1816
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1817
+ 105, 116, 105, 111, 110,
1818
+ ],
1819
+ },
1820
+ { kind: 'account', path: 'pool_state' },
1821
+ {
1822
+ kind: 'const',
1823
+ value: [
1824
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1825
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1826
+ 233, 25, 106, 73, 92,
1827
+ ],
1828
+ },
1829
+ ],
1830
+ },
1831
+ },
1832
+ {
1833
+ name: 'protocol_position',
1834
+ writable: true,
1835
+ pda: {
1836
+ seeds: [
1837
+ {
1838
+ kind: 'const',
1839
+ value: [
1840
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
1841
+ 116, 105, 111, 110,
1842
+ ],
1843
+ },
1844
+ { kind: 'account', path: 'pool_state' },
1845
+ {
1846
+ kind: 'const',
1847
+ value: [
1848
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1849
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1850
+ 233, 25, 106, 73, 92,
1851
+ ],
1852
+ },
1853
+ ],
1854
+ },
1855
+ },
1856
+ { name: 'system_token_vault_0' },
1857
+ { name: 'system_token_vault_1' },
1858
+ {
1859
+ name: 'jupiter_program',
1860
+ address: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4',
1861
+ },
1862
+ { name: 'token_0_mint' },
1863
+ { name: 'token_1_mint' },
1864
+ ],
1865
+ args: [{ name: 'data', type: 'bytes' }],
1866
+ },
1867
+ {
1868
+ name: 'swap_liquidity_dev',
1869
+ discriminator: [181, 190, 13, 255, 151, 104, 43, 110],
1870
+ accounts: [
1871
+ { name: 'system', writable: true, signer: true },
1872
+ { name: 'pool_state' },
1873
+ {
1874
+ name: 'authority_position',
1875
+ pda: {
1876
+ seeds: [
1877
+ {
1878
+ kind: 'const',
1879
+ value: [
1880
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1881
+ 105, 116, 105, 111, 110,
1882
+ ],
1883
+ },
1884
+ { kind: 'account', path: 'pool_state' },
1885
+ {
1886
+ kind: 'const',
1887
+ value: [
1888
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1889
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1890
+ 233, 25, 106, 73, 92,
1891
+ ],
1892
+ },
1893
+ ],
1894
+ },
1895
+ },
1896
+ {
1897
+ name: 'protocol_position',
1898
+ writable: true,
1899
+ pda: {
1900
+ seeds: [
1901
+ {
1902
+ kind: 'const',
1903
+ value: [
1904
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
1905
+ 116, 105, 111, 110,
1906
+ ],
1907
+ },
1908
+ { kind: 'account', path: 'pool_state' },
1909
+ {
1910
+ kind: 'const',
1911
+ value: [
1912
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1913
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1914
+ 233, 25, 106, 73, 92,
1915
+ ],
1916
+ },
1917
+ ],
1918
+ },
1919
+ },
1920
+ { name: 'system_token_vault_0' },
1921
+ { name: 'system_token_vault_1' },
1922
+ {
1923
+ name: 'jupiter_program',
1924
+ address: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4',
1925
+ },
1926
+ { name: 'token_0_mint' },
1927
+ { name: 'token_1_mint' },
1928
+ ],
1929
+ args: [
1930
+ { name: 'is_base', type: 'bool' },
1931
+ { name: 'swap_amount', type: 'u64' },
1932
+ { name: 'receive_amount', type: 'u64' },
1933
+ ],
1934
+ },
1935
+ {
1936
+ name: 'system_transfer_remaining_amount',
1937
+ discriminator: [19, 2, 16, 91, 47, 163, 140, 168],
1938
+ accounts: [
1939
+ { name: 'system', writable: true, signer: true },
1940
+ { name: 'recipient', writable: true },
1941
+ { name: 'pool_state' },
1942
+ {
1943
+ name: 'authority_position',
1944
+ writable: true,
1945
+ pda: {
1946
+ seeds: [
1947
+ {
1948
+ kind: 'const',
1949
+ value: [
1950
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
1951
+ 105, 116, 105, 111, 110,
1952
+ ],
1953
+ },
1954
+ { kind: 'account', path: 'pool_state' },
1955
+ {
1956
+ kind: 'const',
1957
+ value: [
1958
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
1959
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
1960
+ 233, 25, 106, 73, 92,
1961
+ ],
1962
+ },
1963
+ ],
1964
+ },
1965
+ },
1966
+ { name: 'protocol_token_account_0', writable: true },
1967
+ { name: 'protocol_token_account_1', writable: true },
1968
+ { name: 'recipient_token_account_0', writable: true },
1969
+ { name: 'recipient_token_account_1', writable: true },
1970
+ { name: 'token_0_mint' },
1971
+ { name: 'token_1_mint' },
1972
+ {
1973
+ name: 'token_program',
1974
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
1975
+ },
1976
+ {
1977
+ name: 'token_program_2022',
1978
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
1979
+ },
1980
+ ],
1981
+ args: [
1982
+ { name: 'amount_0', type: 'u64' },
1983
+ { name: 'amount_1', type: 'u64' },
1984
+ ],
1985
+ },
1986
+ {
1987
+ name: 'system_withdraw_liquidity',
1988
+ discriminator: [94, 30, 22, 45, 28, 23, 142, 33],
1989
+ accounts: [
1990
+ {
1991
+ name: 'clmm_program',
1992
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
1993
+ },
1994
+ { name: 'system', writable: true, signer: true },
1995
+ {
1996
+ name: 'nft_owner',
1997
+ writable: true,
1998
+ pda: {
1999
+ seeds: [
2000
+ {
2001
+ kind: 'const',
2002
+ value: [
2003
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
2004
+ 105, 116, 105, 111, 110,
2005
+ ],
2006
+ },
2007
+ { kind: 'account', path: 'pool_state' },
2008
+ {
2009
+ kind: 'const',
2010
+ value: [
2011
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2012
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2013
+ 233, 25, 106, 73, 92,
2014
+ ],
2015
+ },
2016
+ ],
2017
+ },
2018
+ },
2019
+ { name: 'nft_account' },
2020
+ { name: 'pool_state', writable: true },
2021
+ {
2022
+ name: 'pool_protocol_position',
2023
+ writable: true,
2024
+ pda: {
2025
+ seeds: [
2026
+ {
2027
+ kind: 'const',
2028
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
2029
+ },
2030
+ { kind: 'account', path: 'pool_state' },
2031
+ {
2032
+ kind: 'account',
2033
+ path: 'pool_personal_position.tick_lower_index',
2034
+ account: 'PersonalPositionState',
2035
+ },
2036
+ {
2037
+ kind: 'account',
2038
+ path: 'pool_personal_position.tick_upper_index',
2039
+ account: 'PersonalPositionState',
2040
+ },
2041
+ ],
2042
+ program: { kind: 'account', path: 'clmm_program' },
2043
+ },
2044
+ },
2045
+ { name: 'pool_personal_position', writable: true },
2046
+ { name: 'tick_array_lower', writable: true },
2047
+ { name: 'tick_array_upper', writable: true },
2048
+ {
2049
+ name: 'protocol_position',
2050
+ writable: true,
2051
+ pda: {
2052
+ seeds: [
2053
+ {
2054
+ kind: 'const',
2055
+ value: [
2056
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
2057
+ 116, 105, 111, 110,
2058
+ ],
2059
+ },
2060
+ { kind: 'account', path: 'pool_state' },
2061
+ {
2062
+ kind: 'const',
2063
+ value: [
2064
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2065
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2066
+ 233, 25, 106, 73, 92,
2067
+ ],
2068
+ },
2069
+ ],
2070
+ },
2071
+ },
2072
+ { name: 'system_token_account_0', writable: true },
2073
+ { name: 'system_token_account_1', writable: true },
2074
+ { name: 'pool_token_vault_0', writable: true },
2075
+ { name: 'pool_token_vault_1', writable: true },
2076
+ {
2077
+ name: 'token_program',
2078
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
2079
+ },
2080
+ {
2081
+ name: 'token_program_2022',
2082
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
2083
+ },
2084
+ {
2085
+ name: 'memo_program',
2086
+ address: 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr',
2087
+ },
2088
+ { name: 'token_0_mint' },
2089
+ { name: 'token_1_mint' },
2090
+ ],
2091
+ args: [
2092
+ { name: 'use_tickarray_bitmap_extension', type: 'bool' },
2093
+ { name: 'amount_0_min', type: 'u64' },
2094
+ { name: 'amount_1_min', type: 'u64' },
2095
+ ],
2096
+ },
2097
+ {
2098
+ name: 'system_withdraw_liquidity_v2',
2099
+ discriminator: [117, 5, 158, 76, 215, 174, 236, 13],
2100
+ accounts: [
2101
+ {
2102
+ name: 'clmm_program',
2103
+ address: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
2104
+ },
2105
+ { name: 'system', writable: true, signer: true },
2106
+ {
2107
+ name: 'nft_owner',
2108
+ writable: true,
2109
+ pda: {
2110
+ seeds: [
2111
+ {
2112
+ kind: 'const',
2113
+ value: [
2114
+ 97, 117, 116, 104, 111, 114, 105, 116, 121, 95, 112, 111, 115,
2115
+ 105, 116, 105, 111, 110,
2116
+ ],
2117
+ },
2118
+ { kind: 'account', path: 'pool_state' },
2119
+ {
2120
+ kind: 'const',
2121
+ value: [
2122
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2123
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2124
+ 233, 25, 106, 73, 92,
2125
+ ],
2126
+ },
2127
+ ],
2128
+ },
2129
+ },
2130
+ { name: 'nft_account' },
2131
+ { name: 'pool_state', writable: true },
2132
+ {
2133
+ name: 'pool_protocol_position',
2134
+ writable: true,
2135
+ pda: {
2136
+ seeds: [
2137
+ {
2138
+ kind: 'const',
2139
+ value: [112, 111, 115, 105, 116, 105, 111, 110],
2140
+ },
2141
+ { kind: 'account', path: 'pool_state' },
2142
+ {
2143
+ kind: 'account',
2144
+ path: 'pool_personal_position.tick_lower_index',
2145
+ account: 'PersonalPositionState',
2146
+ },
2147
+ {
2148
+ kind: 'account',
2149
+ path: 'pool_personal_position.tick_upper_index',
2150
+ account: 'PersonalPositionState',
2151
+ },
2152
+ ],
2153
+ program: { kind: 'account', path: 'clmm_program' },
2154
+ },
2155
+ },
2156
+ { name: 'pool_personal_position', writable: true },
2157
+ { name: 'tick_array_lower', writable: true },
2158
+ { name: 'tick_array_upper', writable: true },
2159
+ {
2160
+ name: 'protocol_position',
2161
+ writable: true,
2162
+ pda: {
2163
+ seeds: [
2164
+ {
2165
+ kind: 'const',
2166
+ value: [
2167
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
2168
+ 116, 105, 111, 110,
2169
+ ],
2170
+ },
2171
+ { kind: 'account', path: 'pool_state' },
2172
+ {
2173
+ kind: 'const',
2174
+ value: [
2175
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2176
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2177
+ 233, 25, 106, 73, 92,
2178
+ ],
2179
+ },
2180
+ ],
2181
+ },
2182
+ },
2183
+ { name: 'system_token_account_0', writable: true },
2184
+ { name: 'system_token_account_1', writable: true },
2185
+ { name: 'pool_token_vault_0', writable: true },
2186
+ { name: 'pool_token_vault_1', writable: true },
2187
+ {
2188
+ name: 'token_program',
2189
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
2190
+ },
2191
+ {
2192
+ name: 'token_program_2022',
2193
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
2194
+ },
2195
+ {
2196
+ name: 'memo_program',
2197
+ address: 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr',
2198
+ },
2199
+ { name: 'token_0_mint' },
2200
+ { name: 'token_1_mint' },
2201
+ ],
2202
+ args: [
2203
+ { name: 'use_tickarray_bitmap_extension', type: 'bool' },
2204
+ { name: 'amount_0_min', type: 'u64' },
2205
+ { name: 'amount_1_min', type: 'u64' },
2206
+ ],
2207
+ },
2208
+ {
2209
+ name: 'update_operation_config',
2210
+ discriminator: [249, 70, 75, 133, 232, 109, 80, 217],
2211
+ accounts: [
2212
+ { name: 'system', writable: true, signer: true },
2213
+ {
2214
+ name: 'operation_config',
2215
+ writable: true,
2216
+ pda: {
2217
+ seeds: [
2218
+ {
2219
+ kind: 'const',
2220
+ value: [
2221
+ 111, 112, 101, 114, 97, 116, 105, 111, 110, 95, 99, 111, 110,
2222
+ 102, 105, 103,
2223
+ ],
2224
+ },
2225
+ {
2226
+ kind: 'const',
2227
+ value: [
2228
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2229
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2230
+ 233, 25, 106, 73, 92,
2231
+ ],
2232
+ },
2233
+ ],
2234
+ },
2235
+ },
2236
+ ],
2237
+ args: [
2238
+ { name: 'action', type: 'u8' },
2239
+ { name: 'keys', type: { vec: 'pubkey' } },
2240
+ ],
2241
+ },
2242
+ {
2243
+ name: 'update_system_config',
2244
+ discriminator: [173, 151, 172, 94, 29, 47, 28, 132],
2245
+ accounts: [
2246
+ { name: 'system', writable: true, signer: true },
2247
+ {
2248
+ name: 'system_config',
2249
+ writable: true,
2250
+ pda: {
2251
+ seeds: [
2252
+ {
2253
+ kind: 'const',
2254
+ value: [
2255
+ 115, 121, 115, 116, 101, 109, 95, 99, 111, 110, 102, 105, 103,
2256
+ ],
2257
+ },
2258
+ {
2259
+ kind: 'const',
2260
+ value: [
2261
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2262
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2263
+ 233, 25, 106, 73, 92,
2264
+ ],
2265
+ },
2266
+ ],
2267
+ },
2268
+ },
2269
+ ],
2270
+ args: [{ name: 'protocol_fee_rate', type: { option: 'u32' } }],
2271
+ },
2272
+ {
2273
+ name: 'update_user_position',
2274
+ discriminator: [55, 141, 157, 156, 105, 153, 183, 153],
2275
+ accounts: [
2276
+ { name: 'system', writable: true, signer: true },
2277
+ { name: 'user' },
2278
+ { name: 'pool_state' },
2279
+ {
2280
+ name: 'protocol_position',
2281
+ pda: {
2282
+ seeds: [
2283
+ {
2284
+ kind: 'const',
2285
+ value: [
2286
+ 112, 114, 111, 116, 111, 99, 111, 108, 95, 112, 111, 115, 105,
2287
+ 116, 105, 111, 110,
2288
+ ],
2289
+ },
2290
+ { kind: 'account', path: 'pool_state' },
2291
+ {
2292
+ kind: 'const',
2293
+ value: [
2294
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2295
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2296
+ 233, 25, 106, 73, 92,
2297
+ ],
2298
+ },
2299
+ ],
2300
+ },
2301
+ },
2302
+ {
2303
+ name: 'user_position',
2304
+ writable: true,
2305
+ pda: {
2306
+ seeds: [
2307
+ {
2308
+ kind: 'const',
2309
+ value: [
2310
+ 117, 115, 101, 114, 95, 112, 111, 115, 105, 116, 105, 111,
2311
+ 110,
2312
+ ],
2313
+ },
2314
+ { kind: 'account', path: 'protocol_position' },
2315
+ { kind: 'account', path: 'user' },
2316
+ {
2317
+ kind: 'const',
2318
+ value: [
2319
+ 21, 24, 54, 244, 252, 223, 91, 164, 4, 220, 91, 185, 92, 205,
2320
+ 69, 62, 143, 235, 70, 219, 193, 127, 124, 57, 183, 227, 214,
2321
+ 233, 25, 106, 73, 92,
2322
+ ],
2323
+ },
2324
+ ],
2325
+ },
2326
+ },
2327
+ ],
2328
+ args: [],
2329
+ },
2330
+ ],
2331
+ accounts: [
2332
+ {
2333
+ name: 'AuthorityPosition',
2334
+ discriminator: [239, 140, 4, 43, 103, 88, 126, 154],
2335
+ },
2336
+ {
2337
+ name: 'OperationConfig',
2338
+ discriminator: [69, 20, 34, 3, 68, 101, 44, 52],
2339
+ },
2340
+ {
2341
+ name: 'PersonalPositionState',
2342
+ discriminator: [70, 111, 150, 126, 230, 15, 25, 117],
2343
+ },
2344
+ {
2345
+ name: 'PoolState',
2346
+ discriminator: [247, 237, 227, 245, 215, 195, 222, 70],
2347
+ },
2348
+ {
2349
+ name: 'ProtocolPosition',
2350
+ discriminator: [244, 162, 101, 37, 23, 60, 213, 57],
2351
+ },
2352
+ {
2353
+ name: 'ProtocolPositionState',
2354
+ discriminator: [100, 226, 145, 99, 146, 218, 160, 106],
2355
+ },
2356
+ {
2357
+ name: 'SystemConfig',
2358
+ discriminator: [218, 150, 16, 126, 102, 185, 75, 1],
2359
+ },
2360
+ {
2361
+ name: 'TickArrayState',
2362
+ discriminator: [192, 155, 85, 205, 49, 249, 129, 42],
2363
+ },
2364
+ {
2365
+ name: 'UserPosition',
2366
+ discriminator: [251, 248, 209, 245, 83, 234, 17, 27],
2367
+ },
2368
+ ],
2369
+ events: [
2370
+ {
2371
+ name: 'SystemInitializePositionEvent',
2372
+ discriminator: [237, 220, 145, 178, 70, 40, 111, 47],
2373
+ },
2374
+ {
2375
+ name: 'SystemProxyInitializePositionEvent',
2376
+ discriminator: [144, 199, 163, 254, 193, 235, 10, 124],
2377
+ },
2378
+ {
2379
+ name: 'SystemReactivatePositionEvent',
2380
+ discriminator: [217, 145, 117, 20, 198, 113, 25, 135],
2381
+ },
2382
+ {
2383
+ name: 'SystemReopenPositionEvent',
2384
+ discriminator: [137, 53, 83, 1, 231, 251, 218, 33],
2385
+ },
2386
+ {
2387
+ name: 'SystemSwapLiquidityEvent',
2388
+ discriminator: [14, 20, 19, 5, 244, 110, 196, 84],
2389
+ },
2390
+ {
2391
+ name: 'SystemUpdateUserPositionEvent',
2392
+ discriminator: [221, 48, 77, 143, 91, 73, 189, 241],
2393
+ },
2394
+ {
2395
+ name: 'SystemWithdrawLiquidityEvent',
2396
+ discriminator: [246, 161, 58, 74, 198, 76, 51, 198],
2397
+ },
2398
+ {
2399
+ name: 'UserClaimFeeEvent',
2400
+ discriminator: [193, 172, 212, 18, 54, 46, 47, 68],
2401
+ },
2402
+ {
2403
+ name: 'UserDepositLiquidityEvent',
2404
+ discriminator: [157, 18, 196, 253, 20, 70, 22, 80],
2405
+ },
2406
+ {
2407
+ name: 'UserOpenPositionEvent',
2408
+ discriminator: [234, 66, 36, 71, 195, 93, 84, 222],
2409
+ },
2410
+ {
2411
+ name: 'UserWithdrawLiquidityEvent',
2412
+ discriminator: [61, 71, 141, 165, 73, 49, 167, 13],
2413
+ },
2414
+ ],
2415
+ errors: [
2416
+ { code: 6000, name: 'NotApproved', msg: 'Not approved' },
2417
+ { code: 6001, name: 'InvalidSystemKey', msg: 'Invalid system key' },
2418
+ {
2419
+ code: 6002,
2420
+ name: 'InvalidUpdateOperationConfigFlag',
2421
+ msg: 'invalid update operation config flag',
2422
+ },
2423
+ {
2424
+ code: 6003,
2425
+ name: 'InvalidSystemConfig',
2426
+ msg: 'Invalid system config',
2427
+ },
2428
+ {
2429
+ code: 6004,
2430
+ name: 'InvalidDepositUserPositionFlag',
2431
+ msg: 'Invalid deposit user position flag',
2432
+ },
2433
+ {
2434
+ code: 6005,
2435
+ name: 'PriceSlippageCheck',
2436
+ msg: 'Price slippage check',
2437
+ },
2438
+ {
2439
+ code: 6006,
2440
+ name: 'InsufficientLiquidity',
2441
+ msg: 'Insufficient liquidity',
2442
+ },
2443
+ {
2444
+ code: 6007,
2445
+ name: 'ArithmeticOverflow',
2446
+ msg: 'Arithmetic overflow',
2447
+ },
2448
+ {
2449
+ code: 6008,
2450
+ name: 'ProtocolPositionNotActive',
2451
+ msg: 'Protocol position not active',
2452
+ },
2453
+ {
2454
+ code: 6009,
2455
+ name: 'ProtocolPositionIsNotRebalancing',
2456
+ msg: 'Protocol position is not Rebalancing',
2457
+ },
2458
+ {
2459
+ code: 6010,
2460
+ name: 'InvalidRewardInputAccountNumber',
2461
+ msg: 'Invalid collect reward input account number',
2462
+ },
2463
+ {
2464
+ code: 6011,
2465
+ name: 'InvalidRewardInputAccountOwner',
2466
+ msg: 'Invalid collect reward input account owner',
2467
+ },
2468
+ {
2469
+ code: 6012,
2470
+ name: 'ProtocolPositionNotInRebalancingProcess',
2471
+ msg: 'Protocol position not in rebalancing process',
2472
+ },
2473
+ {
2474
+ code: 6013,
2475
+ name: 'NewLiquidityHadExceedLimit',
2476
+ msg: 'New liquidity had exceed limit',
2477
+ },
2478
+ {
2479
+ code: 6014,
2480
+ name: 'ConflictVersionPosition',
2481
+ msg: 'Conflict version position',
2482
+ },
2483
+ ],
2484
+ types: [
2485
+ { name: 'AuthorityPosition', type: { kind: 'struct', fields: [] } },
2486
+ {
2487
+ name: 'OperationConfig',
2488
+ type: {
2489
+ kind: 'struct',
2490
+ fields: [
2491
+ { name: 'bump', type: 'u8' },
2492
+ { name: 'operators', type: { array: ['pubkey', 10] } },
2493
+ ],
2494
+ },
2495
+ },
2496
+ {
2497
+ name: 'PersonalPositionState',
2498
+ type: {
2499
+ kind: 'struct',
2500
+ fields: [
2501
+ { name: 'bump', docs: ['Bump to identify PDA'], type: 'u8' },
2502
+ {
2503
+ name: 'nft_mint',
2504
+ docs: ['Mint address of the tokenized position'],
2505
+ type: 'pubkey',
2506
+ },
2507
+ {
2508
+ name: 'pool_id',
2509
+ docs: ['The ID of the pool with which this token is connected'],
2510
+ type: 'pubkey',
2511
+ },
2512
+ {
2513
+ name: 'tick_lower_index',
2514
+ docs: ['The lower bound tick of the position'],
2515
+ type: 'i32',
2516
+ },
2517
+ {
2518
+ name: 'tick_upper_index',
2519
+ docs: ['The upper bound tick of the position'],
2520
+ type: 'i32',
2521
+ },
2522
+ {
2523
+ name: 'liquidity',
2524
+ docs: ['The amount of liquidity owned by this position'],
2525
+ type: 'u128',
2526
+ },
2527
+ {
2528
+ name: 'fee_growth_inside_0_last_x64',
2529
+ docs: [
2530
+ 'The token_0 fee growth of the aggregate position as of the last action on the individual position',
2531
+ ],
2532
+ type: 'u128',
2533
+ },
2534
+ {
2535
+ name: 'fee_growth_inside_1_last_x64',
2536
+ docs: [
2537
+ 'The token_1 fee growth of the aggregate position as of the last action on the individual position',
2538
+ ],
2539
+ type: 'u128',
2540
+ },
2541
+ {
2542
+ name: 'token_fees_owed_0',
2543
+ docs: [
2544
+ 'The fees owed to the position owner in token_0, as of the last computation',
2545
+ ],
2546
+ type: 'u64',
2547
+ },
2548
+ {
2549
+ name: 'token_fees_owed_1',
2550
+ docs: [
2551
+ 'The fees owed to the position owner in token_1, as of the last computation',
2552
+ ],
2553
+ type: 'u64',
2554
+ },
2555
+ {
2556
+ name: 'reward_infos',
2557
+ type: {
2558
+ array: [
2559
+ {
2560
+ defined: {
2561
+ name: 'raydium_clmm_cpi::states::PositionRewardInfo',
2562
+ },
2563
+ },
2564
+ 3,
2565
+ ],
2566
+ },
2567
+ },
2568
+ { name: 'padding', type: { array: ['u64', 8] } },
2569
+ ],
2570
+ },
2571
+ },
2572
+ {
2573
+ name: 'PoolState',
2574
+ docs: [
2575
+ 'The pool state',
2576
+ '',
2577
+ 'PDA of `[POOL_SEED, config, token_mint_0, token_mint_1]`',
2578
+ '',
2579
+ ],
2580
+ serialization: 'bytemuckunsafe',
2581
+ repr: { kind: 'c', packed: true },
2582
+ type: {
2583
+ kind: 'struct',
2584
+ fields: [
2585
+ {
2586
+ name: 'bump',
2587
+ docs: ['Bump to identify PDA'],
2588
+ type: { array: ['u8', 1] },
2589
+ },
2590
+ { name: 'amm_config', type: 'pubkey' },
2591
+ { name: 'owner', type: 'pubkey' },
2592
+ {
2593
+ name: 'token_mint_0',
2594
+ docs: [
2595
+ 'Token pair of the pool, where token_mint_0 address < token_mint_1 address',
2596
+ ],
2597
+ type: 'pubkey',
2598
+ },
2599
+ { name: 'token_mint_1', type: 'pubkey' },
2600
+ {
2601
+ name: 'token_vault_0',
2602
+ docs: ['Token pair vault'],
2603
+ type: 'pubkey',
2604
+ },
2605
+ { name: 'token_vault_1', type: 'pubkey' },
2606
+ {
2607
+ name: 'observation_key',
2608
+ docs: ['observation account key'],
2609
+ type: 'pubkey',
2610
+ },
2611
+ {
2612
+ name: 'mint_decimals_0',
2613
+ docs: ['mint0 and mint1 decimals'],
2614
+ type: 'u8',
2615
+ },
2616
+ { name: 'mint_decimals_1', type: 'u8' },
2617
+ {
2618
+ name: 'tick_spacing',
2619
+ docs: ['The minimum number of ticks between initialized ticks'],
2620
+ type: 'u16',
2621
+ },
2622
+ {
2623
+ name: 'liquidity',
2624
+ docs: ['The currently in range liquidity available to the pool.'],
2625
+ type: 'u128',
2626
+ },
2627
+ {
2628
+ name: 'sqrt_price_x64',
2629
+ docs: [
2630
+ 'The current price of the pool as a sqrt(token_1/token_0) Q64.64 value',
2631
+ ],
2632
+ type: 'u128',
2633
+ },
2634
+ {
2635
+ name: 'tick_current',
2636
+ docs: [
2637
+ 'The current tick of the pool, i.e. according to the last tick transition that was run.',
2638
+ ],
2639
+ type: 'i32',
2640
+ },
2641
+ {
2642
+ name: 'observation_index',
2643
+ docs: ['the most-recently updated index of the observations array'],
2644
+ type: 'u16',
2645
+ },
2646
+ { name: 'observation_update_duration', type: 'u16' },
2647
+ {
2648
+ name: 'fee_growth_global_0_x64',
2649
+ docs: [
2650
+ 'The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per',
2651
+ 'unit of liquidity for the entire life of the pool.',
2652
+ ],
2653
+ type: 'u128',
2654
+ },
2655
+ { name: 'fee_growth_global_1_x64', type: 'u128' },
2656
+ {
2657
+ name: 'protocol_fees_token_0',
2658
+ docs: [
2659
+ 'The amounts of token_0 and token_1 that are owed to the protocol.',
2660
+ ],
2661
+ type: 'u64',
2662
+ },
2663
+ { name: 'protocol_fees_token_1', type: 'u64' },
2664
+ {
2665
+ name: 'swap_in_amount_token_0',
2666
+ docs: ['The amounts in and out of swap token_0 and token_1'],
2667
+ type: 'u128',
2668
+ },
2669
+ { name: 'swap_out_amount_token_1', type: 'u128' },
2670
+ { name: 'swap_in_amount_token_1', type: 'u128' },
2671
+ { name: 'swap_out_amount_token_0', type: 'u128' },
2672
+ {
2673
+ name: 'status',
2674
+ docs: [
2675
+ 'Bitwise representation of the state of the pool',
2676
+ 'bit0, 1: disable open position and increase liquidity, 0: normal',
2677
+ 'bit1, 1: disable decrease liquidity, 0: normal',
2678
+ 'bit2, 1: disable collect fee, 0: normal',
2679
+ 'bit3, 1: disable collect reward, 0: normal',
2680
+ 'bit4, 1: disable swap, 0: normal',
2681
+ ],
2682
+ type: 'u8',
2683
+ },
2684
+ {
2685
+ name: 'padding',
2686
+ docs: ['Leave blank for future use'],
2687
+ type: { array: ['u8', 7] },
2688
+ },
2689
+ {
2690
+ name: 'reward_infos',
2691
+ type: { array: [{ defined: { name: 'RewardInfo' } }, 3] },
2692
+ },
2693
+ {
2694
+ name: 'tick_array_bitmap',
2695
+ docs: ['Packed initialized tick array state'],
2696
+ type: { array: ['u64', 16] },
2697
+ },
2698
+ {
2699
+ name: 'total_fees_token_0',
2700
+ docs: ['except protocol_fee and fund_fee'],
2701
+ type: 'u64',
2702
+ },
2703
+ {
2704
+ name: 'total_fees_claimed_token_0',
2705
+ docs: ['except protocol_fee and fund_fee'],
2706
+ type: 'u64',
2707
+ },
2708
+ { name: 'total_fees_token_1', type: 'u64' },
2709
+ { name: 'total_fees_claimed_token_1', type: 'u64' },
2710
+ { name: 'fund_fees_token_0', type: 'u64' },
2711
+ { name: 'fund_fees_token_1', type: 'u64' },
2712
+ { name: 'open_time', type: 'u64' },
2713
+ { name: 'padding1', type: { array: ['u64', 25] } },
2714
+ { name: 'padding2', type: { array: ['u64', 32] } },
2715
+ ],
2716
+ },
2717
+ },
2718
+ {
2719
+ name: 'ProtocolPosition',
2720
+ type: {
2721
+ kind: 'struct',
2722
+ fields: [
2723
+ { name: 'bump', type: 'u8' },
2724
+ { name: 'system_config', type: 'pubkey' },
2725
+ { name: 'position_mint', type: 'pubkey' },
2726
+ { name: 'pool_address', type: 'pubkey' },
2727
+ { name: 'tick_lower_index', type: 'i32' },
2728
+ { name: 'tick_upper_index', type: 'i32' },
2729
+ { name: 'liquidity', type: 'u128' },
2730
+ { name: 'fee_growth_inside_0', type: 'u128' },
2731
+ { name: 'fee_growth_inside_1', type: 'u128' },
2732
+ { name: 'amount_0_reserve', type: 'u64' },
2733
+ { name: 'amount_1_reserve', type: 'u64' },
2734
+ { name: 'token_vault_0', type: 'pubkey' },
2735
+ { name: 'token_vault_1', type: 'pubkey' },
2736
+ {
2737
+ name: 'reward_infos',
2738
+ type: {
2739
+ array: [
2740
+ {
2741
+ defined: {
2742
+ name: 'ensofi_liquidity::states::protocol_position::PositionRewardInfo',
2743
+ },
2744
+ },
2745
+ 3,
2746
+ ],
2747
+ },
2748
+ },
2749
+ { name: 'recent_epoch', type: 'u64' },
2750
+ { name: 'authority_position', type: 'pubkey' },
2751
+ {
2752
+ name: 'status',
2753
+ type: { defined: { name: 'ProtocolPositionStatus' } },
2754
+ },
2755
+ { name: 'version', type: 'u64' },
2756
+ { name: 'old_liquidity', type: 'u128' },
2757
+ { name: 'padding', type: { array: ['u64', 4] } },
2758
+ ],
2759
+ },
2760
+ },
2761
+ {
2762
+ name: 'ProtocolPositionState',
2763
+ docs: ["Info stored for each user's position"],
2764
+ type: {
2765
+ kind: 'struct',
2766
+ fields: [
2767
+ { name: 'bump', docs: ['Bump to identify PDA'], type: 'u8' },
2768
+ {
2769
+ name: 'pool_id',
2770
+ docs: ['The ID of the pool with which this token is connected'],
2771
+ type: 'pubkey',
2772
+ },
2773
+ {
2774
+ name: 'tick_lower_index',
2775
+ docs: ['The lower bound tick of the position'],
2776
+ type: 'i32',
2777
+ },
2778
+ {
2779
+ name: 'tick_upper_index',
2780
+ docs: ['The upper bound tick of the position'],
2781
+ type: 'i32',
2782
+ },
2783
+ {
2784
+ name: 'liquidity',
2785
+ docs: ['The amount of liquidity owned by this position'],
2786
+ type: 'u128',
2787
+ },
2788
+ {
2789
+ name: 'fee_growth_inside_0_last_x64',
2790
+ docs: [
2791
+ 'The token_0 fee growth per unit of liquidity as of the last update to liquidity or fees owed',
2792
+ ],
2793
+ type: 'u128',
2794
+ },
2795
+ {
2796
+ name: 'fee_growth_inside_1_last_x64',
2797
+ docs: [
2798
+ 'The token_1 fee growth per unit of liquidity as of the last update to liquidity or fees owed',
2799
+ ],
2800
+ type: 'u128',
2801
+ },
2802
+ {
2803
+ name: 'token_fees_owed_0',
2804
+ docs: ['The fees owed to the position owner in token_0'],
2805
+ type: 'u64',
2806
+ },
2807
+ {
2808
+ name: 'token_fees_owed_1',
2809
+ docs: ['The fees owed to the position owner in token_1'],
2810
+ type: 'u64',
2811
+ },
2812
+ {
2813
+ name: 'reward_growth_inside',
2814
+ docs: [
2815
+ 'The reward growth per unit of liquidity as of the last update to liquidity',
2816
+ ],
2817
+ type: { array: ['u128', 3] },
2818
+ },
2819
+ { name: 'padding', type: { array: ['u64', 8] } },
2820
+ ],
2821
+ },
2822
+ },
2823
+ {
2824
+ name: 'ProtocolPositionStatus',
2825
+ type: {
2826
+ kind: 'enum',
2827
+ variants: [
2828
+ { name: 'Active' },
2829
+ { name: 'ReBalancing' },
2830
+ { name: 'ReOpened' },
2831
+ ],
2832
+ },
2833
+ },
2834
+ {
2835
+ name: 'RewardInfo',
2836
+ serialization: 'bytemuckunsafe',
2837
+ repr: { kind: 'c', packed: true },
2838
+ type: {
2839
+ kind: 'struct',
2840
+ fields: [
2841
+ { name: 'reward_state', docs: ['Reward state'], type: 'u8' },
2842
+ { name: 'open_time', docs: ['Reward open time'], type: 'u64' },
2843
+ { name: 'end_time', docs: ['Reward end time'], type: 'u64' },
2844
+ {
2845
+ name: 'last_update_time',
2846
+ docs: ['Reward last update time'],
2847
+ type: 'u64',
2848
+ },
2849
+ {
2850
+ name: 'emissions_per_second_x64',
2851
+ docs: [
2852
+ 'Q64.64 number indicates how many tokens per second are earned per unit of liquidity.',
2853
+ ],
2854
+ type: 'u128',
2855
+ },
2856
+ {
2857
+ name: 'reward_total_emissioned',
2858
+ docs: ['The total amount of reward emissioned'],
2859
+ type: 'u64',
2860
+ },
2861
+ {
2862
+ name: 'reward_claimed',
2863
+ docs: ['The total amount of claimed reward'],
2864
+ type: 'u64',
2865
+ },
2866
+ {
2867
+ name: 'token_mint',
2868
+ docs: ['Reward token mint.'],
2869
+ type: 'pubkey',
2870
+ },
2871
+ {
2872
+ name: 'token_vault',
2873
+ docs: ['Reward vault token account.'],
2874
+ type: 'pubkey',
2875
+ },
2876
+ {
2877
+ name: 'authority',
2878
+ docs: ['The owner that has permission to set reward param'],
2879
+ type: 'pubkey',
2880
+ },
2881
+ {
2882
+ name: 'reward_growth_global_x64',
2883
+ docs: [
2884
+ 'Q64.64 number that tracks the total tokens earned per unit of liquidity since the reward',
2885
+ 'emissions were turned on.',
2886
+ ],
2887
+ type: 'u128',
2888
+ },
2889
+ ],
2890
+ },
2891
+ },
2892
+ {
2893
+ name: 'SystemConfig',
2894
+ type: {
2895
+ kind: 'struct',
2896
+ fields: [
2897
+ { name: 'bump', type: 'u8' },
2898
+ { name: 'owner', type: 'pubkey' },
2899
+ { name: 'protocol_fee_rate', type: 'u32' },
2900
+ ],
2901
+ },
2902
+ },
2903
+ {
2904
+ name: 'SystemInitializePositionEvent',
2905
+ type: {
2906
+ kind: 'struct',
2907
+ fields: [
2908
+ { name: 'lp_platform', type: 'string' },
2909
+ { name: 'nft_mint', type: 'pubkey' },
2910
+ { name: 'pool_address', type: 'pubkey' },
2911
+ { name: 'protocol_position_address', type: 'pubkey' },
2912
+ { name: 'token_0_address', type: 'pubkey' },
2913
+ { name: 'token_1_address', type: 'pubkey' },
2914
+ { name: 'liquidity', type: 'u128' },
2915
+ { name: 'tick_lower_index', type: 'i32' },
2916
+ { name: 'tick_upper_index', type: 'i32' },
2917
+ ],
2918
+ },
2919
+ },
2920
+ {
2921
+ name: 'SystemProxyInitializePositionEvent',
2922
+ type: {
2923
+ kind: 'struct',
2924
+ fields: [
2925
+ { name: 'lp_platform', type: 'string' },
2926
+ { name: 'nft_mint', type: 'pubkey' },
2927
+ { name: 'pool_address', type: 'pubkey' },
2928
+ { name: 'token_0_address', type: 'pubkey' },
2929
+ { name: 'token_1_address', type: 'pubkey' },
2930
+ { name: 'liquidity', type: 'u128' },
2931
+ { name: 'tick_lower_index', type: 'i32' },
2932
+ { name: 'tick_upper_index', type: 'i32' },
2933
+ ],
2934
+ },
2935
+ },
2936
+ {
2937
+ name: 'SystemReactivatePositionEvent',
2938
+ type: {
2939
+ kind: 'struct',
2940
+ fields: [
2941
+ { name: 'pool_address', type: 'pubkey' },
2942
+ { name: 'protocol_position_address', type: 'pubkey' },
2943
+ ],
2944
+ },
2945
+ },
2946
+ {
2947
+ name: 'SystemReopenPositionEvent',
2948
+ type: {
2949
+ kind: 'struct',
2950
+ fields: [
2951
+ { name: 'lp_platform', type: 'string' },
2952
+ { name: 'nft_mint', type: 'pubkey' },
2953
+ { name: 'pool_address', type: 'pubkey' },
2954
+ { name: 'protocol_position_address', type: 'pubkey' },
2955
+ { name: 'token_0_address', type: 'pubkey' },
2956
+ { name: 'token_1_address', type: 'pubkey' },
2957
+ { name: 'liquidity', type: 'u128' },
2958
+ { name: 'old_liquidity', type: 'u128' },
2959
+ { name: 'tick_lower_index', type: 'i32' },
2960
+ { name: 'tick_upper_index', type: 'i32' },
2961
+ {
2962
+ name: 'status',
2963
+ type: { defined: { name: 'ProtocolPositionStatus' } },
2964
+ },
2965
+ { name: 'reserve_0_amount', type: 'u64' },
2966
+ { name: 'reserve_1_amount', type: 'u64' },
2967
+ { name: 'version', type: 'u64' },
2968
+ ],
2969
+ },
2970
+ },
2971
+ {
2972
+ name: 'SystemSwapLiquidityEvent',
2973
+ type: {
2974
+ kind: 'struct',
2975
+ fields: [
2976
+ { name: 'pool_address', type: 'pubkey' },
2977
+ { name: 'protocol_position_address', type: 'pubkey' },
2978
+ { name: 'token_swap', type: 'pubkey' },
2979
+ { name: 'swap_amount', type: 'u64' },
2980
+ { name: 'receive_amount', type: 'u64' },
2981
+ { name: 'reserve_0_amount', type: 'u64' },
2982
+ { name: 'reserve_1_amount', type: 'u64' },
2983
+ ],
2984
+ },
2985
+ },
2986
+ {
2987
+ name: 'SystemUpdateUserPositionEvent',
2988
+ type: {
2989
+ kind: 'struct',
2990
+ fields: [
2991
+ { name: 'pool_address', type: 'pubkey' },
2992
+ { name: 'new_liquidity', type: 'u128' },
2993
+ { name: 'old_liquidity', type: 'u128' },
2994
+ { name: 'wallet_address', type: 'pubkey' },
2995
+ { name: 'protocol_position_address', type: 'pubkey' },
2996
+ { name: 'user_position_address', type: 'pubkey' },
2997
+ ],
2998
+ },
2999
+ },
3000
+ {
3001
+ name: 'SystemWithdrawLiquidityEvent',
3002
+ type: {
3003
+ kind: 'struct',
3004
+ fields: [
3005
+ { name: 'pool_address', type: 'pubkey' },
3006
+ { name: 'withdraw_liquidity', type: 'u128' },
3007
+ { name: 'protocol_position_address', type: 'pubkey' },
3008
+ { name: 'reserve_0_amount', type: 'u64' },
3009
+ { name: 'reserve_1_amount', type: 'u64' },
3010
+ {
3011
+ name: 'status',
3012
+ type: { defined: { name: 'ProtocolPositionStatus' } },
3013
+ },
3014
+ ],
3015
+ },
3016
+ },
3017
+ {
3018
+ name: 'TickArrayState',
3019
+ serialization: 'bytemuckunsafe',
3020
+ repr: { kind: 'c', packed: true },
3021
+ type: {
3022
+ kind: 'struct',
3023
+ fields: [
3024
+ { name: 'pool_id', type: 'pubkey' },
3025
+ { name: 'start_tick_index', type: 'i32' },
3026
+ {
3027
+ name: 'ticks',
3028
+ type: { array: [{ defined: { name: 'TickState' } }, 60] },
3029
+ },
3030
+ { name: 'initialized_tick_count', type: 'u8' },
3031
+ { name: 'padding', type: { array: ['u8', 115] } },
3032
+ ],
3033
+ },
3034
+ },
3035
+ {
3036
+ name: 'TickState',
3037
+ serialization: 'bytemuckunsafe',
3038
+ repr: { kind: 'c', packed: true },
3039
+ type: {
3040
+ kind: 'struct',
3041
+ fields: [
3042
+ { name: 'tick', type: 'i32' },
3043
+ {
3044
+ name: 'liquidity_net',
3045
+ docs: [
3046
+ 'Amount of net liquidity added (subtracted) when tick is crossed from left to right (right to left)',
3047
+ ],
3048
+ type: 'i128',
3049
+ },
3050
+ {
3051
+ name: 'liquidity_gross',
3052
+ docs: ['The total position liquidity that references this tick'],
3053
+ type: 'u128',
3054
+ },
3055
+ {
3056
+ name: 'fee_growth_outside_0_x64',
3057
+ docs: [
3058
+ 'Fee growth per unit of liquidity on the _other_ side of this tick (relative to the current tick)',
3059
+ 'only has relative meaning, not absolute — the value depends on when the tick is initialized',
3060
+ ],
3061
+ type: 'u128',
3062
+ },
3063
+ { name: 'fee_growth_outside_1_x64', type: 'u128' },
3064
+ {
3065
+ name: 'reward_growths_outside_x64',
3066
+ type: { array: ['u128', 3] },
3067
+ },
3068
+ { name: 'padding', type: { array: ['u32', 13] } },
3069
+ ],
3070
+ },
3071
+ },
3072
+ {
3073
+ name: 'UserClaimFeeEvent',
3074
+ type: {
3075
+ kind: 'struct',
3076
+ fields: [
3077
+ { name: 'pool_address', type: 'pubkey' },
3078
+ { name: 'liquidity', type: 'u128' },
3079
+ { name: 'wallet_address', type: 'pubkey' },
3080
+ { name: 'protocol_position_address', type: 'pubkey' },
3081
+ { name: 'user_position_address', type: 'pubkey' },
3082
+ { name: 'fee_amount_0', type: 'u64' },
3083
+ { name: 'fee_amount_1', type: 'u64' },
3084
+ { name: 'fee_claimed_0', type: 'u64' },
3085
+ { name: 'fee_claimed_1', type: 'u64' },
3086
+ ],
3087
+ },
3088
+ },
3089
+ {
3090
+ name: 'UserDepositLiquidityEvent',
3091
+ type: {
3092
+ kind: 'struct',
3093
+ fields: [
3094
+ { name: 'pool_address', type: 'pubkey' },
3095
+ { name: 'deposit_liquidity', type: 'u128' },
3096
+ { name: 'wallet_address', type: 'pubkey' },
3097
+ { name: 'protocol_position_address', type: 'pubkey' },
3098
+ { name: 'user_position_address', type: 'pubkey' },
3099
+ { name: 'deposit_amount_0', type: 'u64' },
3100
+ { name: 'deposit_amount_1', type: 'u64' },
3101
+ ],
3102
+ },
3103
+ },
3104
+ {
3105
+ name: 'UserOpenPositionEvent',
3106
+ type: {
3107
+ kind: 'struct',
3108
+ fields: [
3109
+ { name: 'pool_address', type: 'pubkey' },
3110
+ { name: 'liquidity', type: 'u128' },
3111
+ { name: 'wallet_address', type: 'pubkey' },
3112
+ { name: 'protocol_position_address', type: 'pubkey' },
3113
+ { name: 'user_position_address', type: 'pubkey' },
3114
+ { name: 'deposit_amount_0', type: 'u64' },
3115
+ { name: 'deposit_amount_1', type: 'u64' },
3116
+ ],
3117
+ },
3118
+ },
3119
+ {
3120
+ name: 'UserPosition',
3121
+ type: {
3122
+ kind: 'struct',
3123
+ fields: [
3124
+ { name: 'bump', type: 'u8' },
3125
+ { name: 'protocol_position', type: 'pubkey' },
3126
+ { name: 'owner', type: 'pubkey' },
3127
+ { name: 'liquidity', type: 'u128' },
3128
+ { name: 'fee_growth_inside_0', type: 'u128' },
3129
+ { name: 'fee_growth_inside_1', type: 'u128' },
3130
+ { name: 'token_fee_owed_0', type: 'u64' },
3131
+ { name: 'token_fee_owed_1', type: 'u64' },
3132
+ { name: 'token_fee_claimed_0', type: 'u64' },
3133
+ { name: 'token_fee_claimed_1', type: 'u64' },
3134
+ { name: 'version', type: 'u64' },
3135
+ { name: 'padding', type: { array: ['u64', 6] } },
3136
+ ],
3137
+ },
3138
+ },
3139
+ {
3140
+ name: 'UserWithdrawLiquidityEvent',
3141
+ type: {
3142
+ kind: 'struct',
3143
+ fields: [
3144
+ { name: 'pool_address', type: 'pubkey' },
3145
+ { name: 'withdraw_liquidity', type: 'u128' },
3146
+ { name: 'wallet_address', type: 'pubkey' },
3147
+ { name: 'protocol_position_address', type: 'pubkey' },
3148
+ { name: 'user_position_address', type: 'pubkey' },
3149
+ { name: 'withdraw_amount_0', type: 'u64' },
3150
+ { name: 'withdraw_amount_1', type: 'u64' },
3151
+ ],
3152
+ },
3153
+ },
3154
+ {
3155
+ name: 'ensofi_liquidity::states::protocol_position::PositionRewardInfo',
3156
+ type: {
3157
+ kind: 'struct',
3158
+ fields: [
3159
+ { name: 'reward_growth_inside', type: 'u128' },
3160
+ { name: 'reward_amount_owed', type: 'u64' },
3161
+ { name: 'reward_vault', type: { option: 'pubkey' } },
3162
+ ],
3163
+ },
3164
+ },
3165
+ {
3166
+ name: 'raydium_clmm_cpi::states::PositionRewardInfo',
3167
+ type: {
3168
+ kind: 'struct',
3169
+ fields: [
3170
+ { name: 'growth_inside_last_x64', type: 'u128' },
3171
+ { name: 'reward_amount_owed', type: 'u64' },
3172
+ ],
3173
+ },
3174
+ },
3175
+ ],
3176
+ };
3177
+ //# sourceMappingURL=liquidityIdl.js.map