@bagsfm/bags-sdk 1.0.0

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 (94) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +78 -0
  3. package/dist/api/bags-client.d.ts +19 -0
  4. package/dist/api/bags-client.d.ts.map +1 -0
  5. package/dist/api/bags-client.js +91 -0
  6. package/dist/api/bags-client.js.map +1 -0
  7. package/dist/client.d.ts +15 -0
  8. package/dist/client.d.ts.map +1 -0
  9. package/dist/client.js +19 -0
  10. package/dist/client.js.map +1 -0
  11. package/dist/constants.d.ts +9 -0
  12. package/dist/constants.d.ts.map +1 -0
  13. package/dist/constants.js +12 -0
  14. package/dist/constants.js.map +1 -0
  15. package/dist/idl/bags-meteora-fee-claimer/idl.d.ts +1740 -0
  16. package/dist/idl/bags-meteora-fee-claimer/idl.d.ts.map +1 -0
  17. package/dist/idl/bags-meteora-fee-claimer/idl.js +3 -0
  18. package/dist/idl/bags-meteora-fee-claimer/idl.js.map +1 -0
  19. package/dist/idl/bags-meteora-fee-claimer/idl.json +1398 -0
  20. package/dist/idl/damm-v2/idl.d.ts +4400 -0
  21. package/dist/idl/damm-v2/idl.d.ts.map +1 -0
  22. package/dist/idl/damm-v2/idl.js +3 -0
  23. package/dist/idl/damm-v2/idl.js.map +1 -0
  24. package/dist/idl/damm-v2/idl.json +4277 -0
  25. package/dist/idl/dynamic-bonding-curve/idl.d.ts +4596 -0
  26. package/dist/idl/dynamic-bonding-curve/idl.d.ts.map +1 -0
  27. package/dist/idl/dynamic-bonding-curve/idl.js +3 -0
  28. package/dist/idl/dynamic-bonding-curve/idl.js.map +1 -0
  29. package/dist/idl/dynamic-bonding-curve/idl.json +4195 -0
  30. package/dist/index.d.ts +5 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +21 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/services/base.d.ts +16 -0
  35. package/dist/services/base.d.ts.map +1 -0
  36. package/dist/services/base.js +17 -0
  37. package/dist/services/base.js.map +1 -0
  38. package/dist/services/config.d.ts +9 -0
  39. package/dist/services/config.d.ts.map +1 -0
  40. package/dist/services/config.js +79 -0
  41. package/dist/services/config.js.map +1 -0
  42. package/dist/services/fees.d.ts +9 -0
  43. package/dist/services/fees.d.ts.map +1 -0
  44. package/dist/services/fees.js +65 -0
  45. package/dist/services/fees.js.map +1 -0
  46. package/dist/services/state.d.ts +16 -0
  47. package/dist/services/state.d.ts.map +1 -0
  48. package/dist/services/state.js +54 -0
  49. package/dist/services/state.js.map +1 -0
  50. package/dist/services/token-launch.d.ts +9 -0
  51. package/dist/services/token-launch.d.ts.map +1 -0
  52. package/dist/services/token-launch.js +50 -0
  53. package/dist/services/token-launch.js.map +1 -0
  54. package/dist/types/api.d.ts +32 -0
  55. package/dist/types/api.d.ts.map +1 -0
  56. package/dist/types/api.js +3 -0
  57. package/dist/types/api.js.map +1 -0
  58. package/dist/types/index.d.ts +3 -0
  59. package/dist/types/index.d.ts.map +1 -0
  60. package/dist/types/index.js +19 -0
  61. package/dist/types/index.js.map +1 -0
  62. package/dist/types/meteora.d.ts +79 -0
  63. package/dist/types/meteora.d.ts.map +1 -0
  64. package/dist/types/meteora.js +3 -0
  65. package/dist/types/meteora.js.map +1 -0
  66. package/dist/types/token-launch.d.ts +71 -0
  67. package/dist/types/token-launch.d.ts.map +1 -0
  68. package/dist/types/token-launch.js +11 -0
  69. package/dist/types/token-launch.js.map +1 -0
  70. package/dist/utils/config.d.ts +4 -0
  71. package/dist/utils/config.d.ts.map +1 -0
  72. package/dist/utils/config.js +27 -0
  73. package/dist/utils/config.js.map +1 -0
  74. package/dist/utils/create-program.d.ts +15 -0
  75. package/dist/utils/create-program.d.ts.map +1 -0
  76. package/dist/utils/create-program.js +34 -0
  77. package/dist/utils/create-program.js.map +1 -0
  78. package/dist/utils/fee-claim.d.ts +29 -0
  79. package/dist/utils/fee-claim.d.ts.map +1 -0
  80. package/dist/utils/fee-claim.js +448 -0
  81. package/dist/utils/fee-claim.js.map +1 -0
  82. package/dist/utils/fee-share.d.ts +7 -0
  83. package/dist/utils/fee-share.d.ts.map +1 -0
  84. package/dist/utils/fee-share.js +31 -0
  85. package/dist/utils/fee-share.js.map +1 -0
  86. package/dist/utils/image.d.ts +18 -0
  87. package/dist/utils/image.d.ts.map +1 -0
  88. package/dist/utils/image.js +111 -0
  89. package/dist/utils/image.js.map +1 -0
  90. package/dist/utils/index.d.ts +4 -0
  91. package/dist/utils/index.d.ts.map +1 -0
  92. package/dist/utils/index.js +20 -0
  93. package/dist/utils/index.js.map +1 -0
  94. package/package.json +71 -0
@@ -0,0 +1,4596 @@
1
+ export type DynamicBondingCurve = {
2
+ address: 'dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN';
3
+ metadata: {
4
+ name: 'dynamicBondingCurve';
5
+ version: '0.1.5';
6
+ spec: '0.1.0';
7
+ description: 'Created with Anchor';
8
+ };
9
+ instructions: [
10
+ {
11
+ name: 'claimCreatorTradingFee';
12
+ discriminator: [82, 220, 250, 189, 3, 85, 107, 45];
13
+ accounts: [
14
+ {
15
+ name: 'poolAuthority';
16
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
17
+ },
18
+ {
19
+ name: 'pool';
20
+ writable: true;
21
+ },
22
+ {
23
+ name: 'tokenAAccount';
24
+ docs: ['The treasury token a account'];
25
+ writable: true;
26
+ },
27
+ {
28
+ name: 'tokenBAccount';
29
+ docs: ['The treasury token b account'];
30
+ writable: true;
31
+ },
32
+ {
33
+ name: 'baseVault';
34
+ docs: ['The vault token account for input token'];
35
+ writable: true;
36
+ relations: ['pool'];
37
+ },
38
+ {
39
+ name: 'quoteVault';
40
+ docs: ['The vault token account for output token'];
41
+ writable: true;
42
+ relations: ['pool'];
43
+ },
44
+ {
45
+ name: 'baseMint';
46
+ docs: ['The mint of token a'];
47
+ relations: ['pool'];
48
+ },
49
+ {
50
+ name: 'quoteMint';
51
+ docs: ['The mint of token b'];
52
+ },
53
+ {
54
+ name: 'creator';
55
+ signer: true;
56
+ relations: ['pool'];
57
+ },
58
+ {
59
+ name: 'tokenBaseProgram';
60
+ docs: ['Token a program'];
61
+ },
62
+ {
63
+ name: 'tokenQuoteProgram';
64
+ docs: ['Token b program'];
65
+ },
66
+ {
67
+ name: 'eventAuthority';
68
+ pda: {
69
+ seeds: [
70
+ {
71
+ kind: 'const';
72
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
73
+ }
74
+ ];
75
+ };
76
+ },
77
+ {
78
+ name: 'program';
79
+ }
80
+ ];
81
+ args: [
82
+ {
83
+ name: 'maxBaseAmount';
84
+ type: 'u64';
85
+ },
86
+ {
87
+ name: 'maxQuoteAmount';
88
+ type: 'u64';
89
+ }
90
+ ];
91
+ },
92
+ {
93
+ name: 'claimProtocolFee';
94
+ discriminator: [165, 228, 133, 48, 99, 249, 255, 33];
95
+ accounts: [
96
+ {
97
+ name: 'poolAuthority';
98
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
99
+ },
100
+ {
101
+ name: 'config';
102
+ relations: ['pool'];
103
+ },
104
+ {
105
+ name: 'pool';
106
+ writable: true;
107
+ },
108
+ {
109
+ name: 'baseVault';
110
+ docs: ['The vault token account for input token'];
111
+ writable: true;
112
+ relations: ['pool'];
113
+ },
114
+ {
115
+ name: 'quoteVault';
116
+ docs: ['The vault token account for output token'];
117
+ writable: true;
118
+ relations: ['pool'];
119
+ },
120
+ {
121
+ name: 'baseMint';
122
+ docs: ['The mint of token a'];
123
+ relations: ['pool'];
124
+ },
125
+ {
126
+ name: 'quoteMint';
127
+ docs: ['The mint of token b'];
128
+ relations: ['config'];
129
+ },
130
+ {
131
+ name: 'tokenBaseAccount';
132
+ docs: ['The treasury token a account'];
133
+ writable: true;
134
+ pda: {
135
+ seeds: [
136
+ {
137
+ kind: 'const';
138
+ value: [
139
+ 48,
140
+ 9,
141
+ 89,
142
+ 123,
143
+ 106,
144
+ 114,
145
+ 131,
146
+ 251,
147
+ 50,
148
+ 173,
149
+ 254,
150
+ 250,
151
+ 10,
152
+ 80,
153
+ 160,
154
+ 84,
155
+ 143,
156
+ 100,
157
+ 81,
158
+ 249,
159
+ 134,
160
+ 112,
161
+ 30,
162
+ 213,
163
+ 50,
164
+ 166,
165
+ 239,
166
+ 78,
167
+ 53,
168
+ 175,
169
+ 188,
170
+ 85
171
+ ];
172
+ },
173
+ {
174
+ kind: 'account';
175
+ path: 'tokenBaseProgram';
176
+ },
177
+ {
178
+ kind: 'account';
179
+ path: 'baseMint';
180
+ }
181
+ ];
182
+ program: {
183
+ kind: 'const';
184
+ value: [
185
+ 140,
186
+ 151,
187
+ 37,
188
+ 143,
189
+ 78,
190
+ 36,
191
+ 137,
192
+ 241,
193
+ 187,
194
+ 61,
195
+ 16,
196
+ 41,
197
+ 20,
198
+ 142,
199
+ 13,
200
+ 131,
201
+ 11,
202
+ 90,
203
+ 19,
204
+ 153,
205
+ 218,
206
+ 255,
207
+ 16,
208
+ 132,
209
+ 4,
210
+ 142,
211
+ 123,
212
+ 216,
213
+ 219,
214
+ 233,
215
+ 248,
216
+ 89
217
+ ];
218
+ };
219
+ };
220
+ },
221
+ {
222
+ name: 'tokenQuoteAccount';
223
+ docs: ['The treasury token b account'];
224
+ writable: true;
225
+ pda: {
226
+ seeds: [
227
+ {
228
+ kind: 'const';
229
+ value: [
230
+ 48,
231
+ 9,
232
+ 89,
233
+ 123,
234
+ 106,
235
+ 114,
236
+ 131,
237
+ 251,
238
+ 50,
239
+ 173,
240
+ 254,
241
+ 250,
242
+ 10,
243
+ 80,
244
+ 160,
245
+ 84,
246
+ 143,
247
+ 100,
248
+ 81,
249
+ 249,
250
+ 134,
251
+ 112,
252
+ 30,
253
+ 213,
254
+ 50,
255
+ 166,
256
+ 239,
257
+ 78,
258
+ 53,
259
+ 175,
260
+ 188,
261
+ 85
262
+ ];
263
+ },
264
+ {
265
+ kind: 'account';
266
+ path: 'tokenQuoteProgram';
267
+ },
268
+ {
269
+ kind: 'account';
270
+ path: 'quoteMint';
271
+ }
272
+ ];
273
+ program: {
274
+ kind: 'const';
275
+ value: [
276
+ 140,
277
+ 151,
278
+ 37,
279
+ 143,
280
+ 78,
281
+ 36,
282
+ 137,
283
+ 241,
284
+ 187,
285
+ 61,
286
+ 16,
287
+ 41,
288
+ 20,
289
+ 142,
290
+ 13,
291
+ 131,
292
+ 11,
293
+ 90,
294
+ 19,
295
+ 153,
296
+ 218,
297
+ 255,
298
+ 16,
299
+ 132,
300
+ 4,
301
+ 142,
302
+ 123,
303
+ 216,
304
+ 219,
305
+ 233,
306
+ 248,
307
+ 89
308
+ ];
309
+ };
310
+ };
311
+ },
312
+ {
313
+ name: 'claimFeeOperator';
314
+ docs: ['Claim fee operator'];
315
+ },
316
+ {
317
+ name: 'operator';
318
+ docs: ['Operator'];
319
+ signer: true;
320
+ relations: ['claimFeeOperator'];
321
+ },
322
+ {
323
+ name: 'tokenBaseProgram';
324
+ docs: ['Token a program'];
325
+ },
326
+ {
327
+ name: 'tokenQuoteProgram';
328
+ docs: ['Token b program'];
329
+ },
330
+ {
331
+ name: 'eventAuthority';
332
+ pda: {
333
+ seeds: [
334
+ {
335
+ kind: 'const';
336
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
337
+ }
338
+ ];
339
+ };
340
+ },
341
+ {
342
+ name: 'program';
343
+ }
344
+ ];
345
+ args: [];
346
+ },
347
+ {
348
+ name: 'claimTradingFee';
349
+ discriminator: [8, 236, 89, 49, 152, 125, 177, 81];
350
+ accounts: [
351
+ {
352
+ name: 'poolAuthority';
353
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
354
+ },
355
+ {
356
+ name: 'config';
357
+ relations: ['pool'];
358
+ },
359
+ {
360
+ name: 'pool';
361
+ writable: true;
362
+ },
363
+ {
364
+ name: 'tokenAAccount';
365
+ docs: ['The treasury token a account'];
366
+ writable: true;
367
+ },
368
+ {
369
+ name: 'tokenBAccount';
370
+ docs: ['The treasury token b account'];
371
+ writable: true;
372
+ },
373
+ {
374
+ name: 'baseVault';
375
+ docs: ['The vault token account for input token'];
376
+ writable: true;
377
+ relations: ['pool'];
378
+ },
379
+ {
380
+ name: 'quoteVault';
381
+ docs: ['The vault token account for output token'];
382
+ writable: true;
383
+ relations: ['pool'];
384
+ },
385
+ {
386
+ name: 'baseMint';
387
+ docs: ['The mint of token a'];
388
+ relations: ['pool'];
389
+ },
390
+ {
391
+ name: 'quoteMint';
392
+ docs: ['The mint of token b'];
393
+ relations: ['config'];
394
+ },
395
+ {
396
+ name: 'feeClaimer';
397
+ signer: true;
398
+ relations: ['config'];
399
+ },
400
+ {
401
+ name: 'tokenBaseProgram';
402
+ docs: ['Token a program'];
403
+ },
404
+ {
405
+ name: 'tokenQuoteProgram';
406
+ docs: ['Token b program'];
407
+ },
408
+ {
409
+ name: 'eventAuthority';
410
+ pda: {
411
+ seeds: [
412
+ {
413
+ kind: 'const';
414
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
415
+ }
416
+ ];
417
+ };
418
+ },
419
+ {
420
+ name: 'program';
421
+ }
422
+ ];
423
+ args: [
424
+ {
425
+ name: 'maxAmountA';
426
+ type: 'u64';
427
+ },
428
+ {
429
+ name: 'maxAmountB';
430
+ type: 'u64';
431
+ }
432
+ ];
433
+ },
434
+ {
435
+ name: 'closeClaimFeeOperator';
436
+ discriminator: [38, 134, 82, 216, 95, 124, 17, 99];
437
+ accounts: [
438
+ {
439
+ name: 'claimFeeOperator';
440
+ writable: true;
441
+ },
442
+ {
443
+ name: 'rentReceiver';
444
+ writable: true;
445
+ },
446
+ {
447
+ name: 'admin';
448
+ signer: true;
449
+ },
450
+ {
451
+ name: 'eventAuthority';
452
+ pda: {
453
+ seeds: [
454
+ {
455
+ kind: 'const';
456
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
457
+ }
458
+ ];
459
+ };
460
+ },
461
+ {
462
+ name: 'program';
463
+ }
464
+ ];
465
+ args: [];
466
+ },
467
+ {
468
+ name: 'createClaimFeeOperator';
469
+ docs: ['ADMIN FUNCTIONS ///'];
470
+ discriminator: [169, 62, 207, 107, 58, 187, 162, 109];
471
+ accounts: [
472
+ {
473
+ name: 'claimFeeOperator';
474
+ writable: true;
475
+ pda: {
476
+ seeds: [
477
+ {
478
+ kind: 'const';
479
+ value: [99, 102, 95, 111, 112, 101, 114, 97, 116, 111, 114];
480
+ },
481
+ {
482
+ kind: 'account';
483
+ path: 'operator';
484
+ }
485
+ ];
486
+ };
487
+ },
488
+ {
489
+ name: 'operator';
490
+ },
491
+ {
492
+ name: 'admin';
493
+ writable: true;
494
+ signer: true;
495
+ },
496
+ {
497
+ name: 'systemProgram';
498
+ address: '11111111111111111111111111111111';
499
+ },
500
+ {
501
+ name: 'eventAuthority';
502
+ pda: {
503
+ seeds: [
504
+ {
505
+ kind: 'const';
506
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
507
+ }
508
+ ];
509
+ };
510
+ },
511
+ {
512
+ name: 'program';
513
+ }
514
+ ];
515
+ args: [];
516
+ },
517
+ {
518
+ name: 'createConfig';
519
+ discriminator: [201, 207, 243, 114, 75, 111, 47, 189];
520
+ accounts: [
521
+ {
522
+ name: 'config';
523
+ writable: true;
524
+ signer: true;
525
+ },
526
+ {
527
+ name: 'feeClaimer';
528
+ },
529
+ {
530
+ name: 'leftoverReceiver';
531
+ },
532
+ {
533
+ name: 'quoteMint';
534
+ docs: ['quote mint'];
535
+ },
536
+ {
537
+ name: 'payer';
538
+ writable: true;
539
+ signer: true;
540
+ },
541
+ {
542
+ name: 'systemProgram';
543
+ address: '11111111111111111111111111111111';
544
+ },
545
+ {
546
+ name: 'eventAuthority';
547
+ pda: {
548
+ seeds: [
549
+ {
550
+ kind: 'const';
551
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
552
+ }
553
+ ];
554
+ };
555
+ },
556
+ {
557
+ name: 'program';
558
+ }
559
+ ];
560
+ args: [
561
+ {
562
+ name: 'configParameters';
563
+ type: {
564
+ defined: {
565
+ name: 'configParameters';
566
+ };
567
+ };
568
+ }
569
+ ];
570
+ },
571
+ {
572
+ name: 'createLocker';
573
+ docs: ['PERMISSIONLESS FUNCTIONS ///', 'create locker'];
574
+ discriminator: [167, 90, 137, 154, 75, 47, 17, 84];
575
+ accounts: [
576
+ {
577
+ name: 'virtualPool';
578
+ docs: ['Virtual pool'];
579
+ writable: true;
580
+ },
581
+ {
582
+ name: 'config';
583
+ docs: ['config'];
584
+ relations: ['virtualPool'];
585
+ },
586
+ {
587
+ name: 'poolAuthority';
588
+ writable: true;
589
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
590
+ },
591
+ {
592
+ name: 'baseVault';
593
+ writable: true;
594
+ relations: ['virtualPool'];
595
+ },
596
+ {
597
+ name: 'baseMint';
598
+ writable: true;
599
+ relations: ['virtualPool'];
600
+ },
601
+ {
602
+ name: 'base';
603
+ writable: true;
604
+ pda: {
605
+ seeds: [
606
+ {
607
+ kind: 'const';
608
+ value: [98, 97, 115, 101, 95, 108, 111, 99, 107, 101, 114];
609
+ },
610
+ {
611
+ kind: 'account';
612
+ path: 'virtualPool';
613
+ }
614
+ ];
615
+ };
616
+ },
617
+ {
618
+ name: 'creator';
619
+ relations: ['virtualPool'];
620
+ },
621
+ {
622
+ name: 'escrow';
623
+ writable: true;
624
+ },
625
+ {
626
+ name: 'escrowToken';
627
+ writable: true;
628
+ },
629
+ {
630
+ name: 'payer';
631
+ writable: true;
632
+ signer: true;
633
+ },
634
+ {
635
+ name: 'tokenProgram';
636
+ },
637
+ {
638
+ name: 'lockerProgram';
639
+ address: 'LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn';
640
+ },
641
+ {
642
+ name: 'lockerEventAuthority';
643
+ },
644
+ {
645
+ name: 'systemProgram';
646
+ docs: ['System program.'];
647
+ address: '11111111111111111111111111111111';
648
+ }
649
+ ];
650
+ args: [];
651
+ },
652
+ {
653
+ name: 'createPartnerMetadata';
654
+ docs: ['PARTNER FUNCTIONS ////'];
655
+ discriminator: [192, 168, 234, 191, 188, 226, 227, 255];
656
+ accounts: [
657
+ {
658
+ name: 'partnerMetadata';
659
+ docs: ['Partner metadata'];
660
+ writable: true;
661
+ pda: {
662
+ seeds: [
663
+ {
664
+ kind: 'const';
665
+ value: [112, 97, 114, 116, 110, 101, 114, 95, 109, 101, 116, 97, 100, 97, 116, 97];
666
+ },
667
+ {
668
+ kind: 'account';
669
+ path: 'feeClaimer';
670
+ }
671
+ ];
672
+ };
673
+ },
674
+ {
675
+ name: 'payer';
676
+ docs: ['Payer of the partner metadata.'];
677
+ writable: true;
678
+ signer: true;
679
+ },
680
+ {
681
+ name: 'feeClaimer';
682
+ docs: ['Fee claimer for partner'];
683
+ signer: true;
684
+ },
685
+ {
686
+ name: 'systemProgram';
687
+ docs: ['System program.'];
688
+ address: '11111111111111111111111111111111';
689
+ },
690
+ {
691
+ name: 'eventAuthority';
692
+ pda: {
693
+ seeds: [
694
+ {
695
+ kind: 'const';
696
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
697
+ }
698
+ ];
699
+ };
700
+ },
701
+ {
702
+ name: 'program';
703
+ }
704
+ ];
705
+ args: [
706
+ {
707
+ name: 'metadata';
708
+ type: {
709
+ defined: {
710
+ name: 'createPartnerMetadataParameters';
711
+ };
712
+ };
713
+ }
714
+ ];
715
+ },
716
+ {
717
+ name: 'createVirtualPoolMetadata';
718
+ discriminator: [45, 97, 187, 103, 254, 109, 124, 134];
719
+ accounts: [
720
+ {
721
+ name: 'virtualPool';
722
+ writable: true;
723
+ },
724
+ {
725
+ name: 'virtualPoolMetadata';
726
+ docs: ['Virtual pool metadata'];
727
+ writable: true;
728
+ pda: {
729
+ seeds: [
730
+ {
731
+ kind: 'const';
732
+ value: [118, 105, 114, 116, 117, 97, 108, 95, 112, 111, 111, 108, 95, 109, 101, 116, 97, 100, 97, 116, 97];
733
+ },
734
+ {
735
+ kind: 'account';
736
+ path: 'virtualPool';
737
+ }
738
+ ];
739
+ };
740
+ },
741
+ {
742
+ name: 'creator';
743
+ signer: true;
744
+ relations: ['virtualPool'];
745
+ },
746
+ {
747
+ name: 'payer';
748
+ docs: ['Payer of the virtual pool metadata.'];
749
+ writable: true;
750
+ signer: true;
751
+ },
752
+ {
753
+ name: 'systemProgram';
754
+ docs: ['System program.'];
755
+ address: '11111111111111111111111111111111';
756
+ },
757
+ {
758
+ name: 'eventAuthority';
759
+ pda: {
760
+ seeds: [
761
+ {
762
+ kind: 'const';
763
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
764
+ }
765
+ ];
766
+ };
767
+ },
768
+ {
769
+ name: 'program';
770
+ }
771
+ ];
772
+ args: [
773
+ {
774
+ name: 'metadata';
775
+ type: {
776
+ defined: {
777
+ name: 'createVirtualPoolMetadataParameters';
778
+ };
779
+ };
780
+ }
781
+ ];
782
+ },
783
+ {
784
+ name: 'creatorWithdrawSurplus';
785
+ discriminator: [165, 3, 137, 7, 28, 134, 76, 80];
786
+ accounts: [
787
+ {
788
+ name: 'poolAuthority';
789
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
790
+ },
791
+ {
792
+ name: 'config';
793
+ relations: ['virtualPool'];
794
+ },
795
+ {
796
+ name: 'virtualPool';
797
+ writable: true;
798
+ },
799
+ {
800
+ name: 'tokenQuoteAccount';
801
+ docs: ['The receiver token account'];
802
+ writable: true;
803
+ },
804
+ {
805
+ name: 'quoteVault';
806
+ docs: ['The vault token account for output token'];
807
+ writable: true;
808
+ relations: ['virtualPool'];
809
+ },
810
+ {
811
+ name: 'quoteMint';
812
+ docs: ['The mint of quote token'];
813
+ relations: ['config'];
814
+ },
815
+ {
816
+ name: 'creator';
817
+ signer: true;
818
+ relations: ['virtualPool'];
819
+ },
820
+ {
821
+ name: 'tokenQuoteProgram';
822
+ docs: ['Token b program'];
823
+ },
824
+ {
825
+ name: 'eventAuthority';
826
+ pda: {
827
+ seeds: [
828
+ {
829
+ kind: 'const';
830
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
831
+ }
832
+ ];
833
+ };
834
+ },
835
+ {
836
+ name: 'program';
837
+ }
838
+ ];
839
+ args: [];
840
+ },
841
+ {
842
+ name: 'initializeVirtualPoolWithSplToken';
843
+ docs: ['POOL CREATOR FUNCTIONS ////'];
844
+ discriminator: [140, 85, 215, 176, 102, 54, 104, 79];
845
+ accounts: [
846
+ {
847
+ name: 'config';
848
+ docs: ['Which config the pool belongs to.'];
849
+ },
850
+ {
851
+ name: 'poolAuthority';
852
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
853
+ },
854
+ {
855
+ name: 'creator';
856
+ signer: true;
857
+ },
858
+ {
859
+ name: 'baseMint';
860
+ writable: true;
861
+ signer: true;
862
+ },
863
+ {
864
+ name: 'quoteMint';
865
+ relations: ['config'];
866
+ },
867
+ {
868
+ name: 'pool';
869
+ docs: ['Initialize an account to store the pool state'];
870
+ writable: true;
871
+ },
872
+ {
873
+ name: 'baseVault';
874
+ docs: ['Token a vault for the pool'];
875
+ writable: true;
876
+ pda: {
877
+ seeds: [
878
+ {
879
+ kind: 'const';
880
+ value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116];
881
+ },
882
+ {
883
+ kind: 'account';
884
+ path: 'baseMint';
885
+ },
886
+ {
887
+ kind: 'account';
888
+ path: 'pool';
889
+ }
890
+ ];
891
+ };
892
+ },
893
+ {
894
+ name: 'quoteVault';
895
+ docs: ['Token b vault for the pool'];
896
+ writable: true;
897
+ pda: {
898
+ seeds: [
899
+ {
900
+ kind: 'const';
901
+ value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116];
902
+ },
903
+ {
904
+ kind: 'account';
905
+ path: 'quoteMint';
906
+ },
907
+ {
908
+ kind: 'account';
909
+ path: 'pool';
910
+ }
911
+ ];
912
+ };
913
+ },
914
+ {
915
+ name: 'mintMetadata';
916
+ writable: true;
917
+ },
918
+ {
919
+ name: 'metadataProgram';
920
+ address: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s';
921
+ },
922
+ {
923
+ name: 'payer';
924
+ docs: ['Address paying to create the pool. Can be anyone'];
925
+ writable: true;
926
+ signer: true;
927
+ },
928
+ {
929
+ name: 'tokenQuoteProgram';
930
+ docs: ['Program to create mint account and mint tokens'];
931
+ },
932
+ {
933
+ name: 'tokenProgram';
934
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
935
+ },
936
+ {
937
+ name: 'systemProgram';
938
+ address: '11111111111111111111111111111111';
939
+ },
940
+ {
941
+ name: 'eventAuthority';
942
+ pda: {
943
+ seeds: [
944
+ {
945
+ kind: 'const';
946
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
947
+ }
948
+ ];
949
+ };
950
+ },
951
+ {
952
+ name: 'program';
953
+ }
954
+ ];
955
+ args: [
956
+ {
957
+ name: 'params';
958
+ type: {
959
+ defined: {
960
+ name: 'initializePoolParameters';
961
+ };
962
+ };
963
+ }
964
+ ];
965
+ },
966
+ {
967
+ name: 'initializeVirtualPoolWithToken2022';
968
+ discriminator: [169, 118, 51, 78, 145, 110, 220, 155];
969
+ accounts: [
970
+ {
971
+ name: 'config';
972
+ docs: ['Which config the pool belongs to.'];
973
+ },
974
+ {
975
+ name: 'poolAuthority';
976
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
977
+ },
978
+ {
979
+ name: 'creator';
980
+ signer: true;
981
+ },
982
+ {
983
+ name: 'baseMint';
984
+ docs: ['Unique token mint address, initialize in contract'];
985
+ writable: true;
986
+ signer: true;
987
+ },
988
+ {
989
+ name: 'quoteMint';
990
+ relations: ['config'];
991
+ },
992
+ {
993
+ name: 'pool';
994
+ docs: ['Initialize an account to store the pool state'];
995
+ writable: true;
996
+ },
997
+ {
998
+ name: 'baseVault';
999
+ writable: true;
1000
+ pda: {
1001
+ seeds: [
1002
+ {
1003
+ kind: 'const';
1004
+ value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116];
1005
+ },
1006
+ {
1007
+ kind: 'account';
1008
+ path: 'baseMint';
1009
+ },
1010
+ {
1011
+ kind: 'account';
1012
+ path: 'pool';
1013
+ }
1014
+ ];
1015
+ };
1016
+ },
1017
+ {
1018
+ name: 'quoteVault';
1019
+ docs: ['Token quote vault for the pool'];
1020
+ writable: true;
1021
+ pda: {
1022
+ seeds: [
1023
+ {
1024
+ kind: 'const';
1025
+ value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116];
1026
+ },
1027
+ {
1028
+ kind: 'account';
1029
+ path: 'quoteMint';
1030
+ },
1031
+ {
1032
+ kind: 'account';
1033
+ path: 'pool';
1034
+ }
1035
+ ];
1036
+ };
1037
+ },
1038
+ {
1039
+ name: 'payer';
1040
+ docs: ['Address paying to create the pool. Can be anyone'];
1041
+ writable: true;
1042
+ signer: true;
1043
+ },
1044
+ {
1045
+ name: 'tokenQuoteProgram';
1046
+ docs: ['Program to create mint account and mint tokens'];
1047
+ },
1048
+ {
1049
+ name: 'tokenProgram';
1050
+ docs: ['token program for base mint'];
1051
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1052
+ },
1053
+ {
1054
+ name: 'systemProgram';
1055
+ address: '11111111111111111111111111111111';
1056
+ },
1057
+ {
1058
+ name: 'eventAuthority';
1059
+ pda: {
1060
+ seeds: [
1061
+ {
1062
+ kind: 'const';
1063
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
1064
+ }
1065
+ ];
1066
+ };
1067
+ },
1068
+ {
1069
+ name: 'program';
1070
+ }
1071
+ ];
1072
+ args: [
1073
+ {
1074
+ name: 'params';
1075
+ type: {
1076
+ defined: {
1077
+ name: 'initializePoolParameters';
1078
+ };
1079
+ };
1080
+ }
1081
+ ];
1082
+ },
1083
+ {
1084
+ name: 'migrateMeteoraDamm';
1085
+ discriminator: [27, 1, 48, 22, 180, 63, 118, 217];
1086
+ accounts: [
1087
+ {
1088
+ name: 'virtualPool';
1089
+ docs: ['virtual pool'];
1090
+ writable: true;
1091
+ relations: ['migrationMetadata'];
1092
+ },
1093
+ {
1094
+ name: 'migrationMetadata';
1095
+ writable: true;
1096
+ },
1097
+ {
1098
+ name: 'config';
1099
+ relations: ['virtualPool'];
1100
+ },
1101
+ {
1102
+ name: 'poolAuthority';
1103
+ writable: true;
1104
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
1105
+ },
1106
+ {
1107
+ name: 'pool';
1108
+ writable: true;
1109
+ },
1110
+ {
1111
+ name: 'dammConfig';
1112
+ docs: ['pool config'];
1113
+ },
1114
+ {
1115
+ name: 'lpMint';
1116
+ writable: true;
1117
+ },
1118
+ {
1119
+ name: 'tokenAMint';
1120
+ writable: true;
1121
+ },
1122
+ {
1123
+ name: 'tokenBMint';
1124
+ },
1125
+ {
1126
+ name: 'aVault';
1127
+ writable: true;
1128
+ },
1129
+ {
1130
+ name: 'bVault';
1131
+ writable: true;
1132
+ },
1133
+ {
1134
+ name: 'aTokenVault';
1135
+ writable: true;
1136
+ },
1137
+ {
1138
+ name: 'bTokenVault';
1139
+ writable: true;
1140
+ },
1141
+ {
1142
+ name: 'aVaultLpMint';
1143
+ writable: true;
1144
+ },
1145
+ {
1146
+ name: 'bVaultLpMint';
1147
+ writable: true;
1148
+ },
1149
+ {
1150
+ name: 'aVaultLp';
1151
+ writable: true;
1152
+ },
1153
+ {
1154
+ name: 'bVaultLp';
1155
+ writable: true;
1156
+ },
1157
+ {
1158
+ name: 'baseVault';
1159
+ writable: true;
1160
+ relations: ['virtualPool'];
1161
+ },
1162
+ {
1163
+ name: 'quoteVault';
1164
+ writable: true;
1165
+ relations: ['virtualPool'];
1166
+ },
1167
+ {
1168
+ name: 'virtualPoolLp';
1169
+ writable: true;
1170
+ },
1171
+ {
1172
+ name: 'protocolTokenAFee';
1173
+ writable: true;
1174
+ },
1175
+ {
1176
+ name: 'protocolTokenBFee';
1177
+ writable: true;
1178
+ },
1179
+ {
1180
+ name: 'payer';
1181
+ writable: true;
1182
+ signer: true;
1183
+ },
1184
+ {
1185
+ name: 'rent';
1186
+ },
1187
+ {
1188
+ name: 'mintMetadata';
1189
+ writable: true;
1190
+ },
1191
+ {
1192
+ name: 'metadataProgram';
1193
+ },
1194
+ {
1195
+ name: 'ammProgram';
1196
+ address: 'Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB';
1197
+ },
1198
+ {
1199
+ name: 'vaultProgram';
1200
+ },
1201
+ {
1202
+ name: 'tokenProgram';
1203
+ docs: ['tokenProgram'];
1204
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1205
+ },
1206
+ {
1207
+ name: 'associatedTokenProgram';
1208
+ },
1209
+ {
1210
+ name: 'systemProgram';
1211
+ docs: ['System program.'];
1212
+ address: '11111111111111111111111111111111';
1213
+ }
1214
+ ];
1215
+ args: [];
1216
+ },
1217
+ {
1218
+ name: 'migrateMeteoraDammClaimLpToken';
1219
+ discriminator: [139, 133, 2, 30, 91, 145, 127, 154];
1220
+ accounts: [
1221
+ {
1222
+ name: 'virtualPool';
1223
+ relations: ['migrationMetadata'];
1224
+ },
1225
+ {
1226
+ name: 'migrationMetadata';
1227
+ docs: ['migration metadata'];
1228
+ writable: true;
1229
+ },
1230
+ {
1231
+ name: 'poolAuthority';
1232
+ writable: true;
1233
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
1234
+ },
1235
+ {
1236
+ name: 'lpMint';
1237
+ relations: ['migrationMetadata'];
1238
+ },
1239
+ {
1240
+ name: 'sourceToken';
1241
+ writable: true;
1242
+ pda: {
1243
+ seeds: [
1244
+ {
1245
+ kind: 'account';
1246
+ path: 'poolAuthority';
1247
+ },
1248
+ {
1249
+ kind: 'const';
1250
+ value: [
1251
+ 6,
1252
+ 221,
1253
+ 246,
1254
+ 225,
1255
+ 215,
1256
+ 101,
1257
+ 161,
1258
+ 147,
1259
+ 217,
1260
+ 203,
1261
+ 225,
1262
+ 70,
1263
+ 206,
1264
+ 235,
1265
+ 121,
1266
+ 172,
1267
+ 28,
1268
+ 180,
1269
+ 133,
1270
+ 237,
1271
+ 95,
1272
+ 91,
1273
+ 55,
1274
+ 145,
1275
+ 58,
1276
+ 140,
1277
+ 245,
1278
+ 133,
1279
+ 126,
1280
+ 255,
1281
+ 0,
1282
+ 169
1283
+ ];
1284
+ },
1285
+ {
1286
+ kind: 'account';
1287
+ path: 'migrationMetadata';
1288
+ }
1289
+ ];
1290
+ program: {
1291
+ kind: 'const';
1292
+ value: [
1293
+ 140,
1294
+ 151,
1295
+ 37,
1296
+ 143,
1297
+ 78,
1298
+ 36,
1299
+ 137,
1300
+ 241,
1301
+ 187,
1302
+ 61,
1303
+ 16,
1304
+ 41,
1305
+ 20,
1306
+ 142,
1307
+ 13,
1308
+ 131,
1309
+ 11,
1310
+ 90,
1311
+ 19,
1312
+ 153,
1313
+ 218,
1314
+ 255,
1315
+ 16,
1316
+ 132,
1317
+ 4,
1318
+ 142,
1319
+ 123,
1320
+ 216,
1321
+ 219,
1322
+ 233,
1323
+ 248,
1324
+ 89
1325
+ ];
1326
+ };
1327
+ };
1328
+ },
1329
+ {
1330
+ name: 'destinationToken';
1331
+ writable: true;
1332
+ pda: {
1333
+ seeds: [
1334
+ {
1335
+ kind: 'account';
1336
+ path: 'owner';
1337
+ },
1338
+ {
1339
+ kind: 'const';
1340
+ value: [
1341
+ 6,
1342
+ 221,
1343
+ 246,
1344
+ 225,
1345
+ 215,
1346
+ 101,
1347
+ 161,
1348
+ 147,
1349
+ 217,
1350
+ 203,
1351
+ 225,
1352
+ 70,
1353
+ 206,
1354
+ 235,
1355
+ 121,
1356
+ 172,
1357
+ 28,
1358
+ 180,
1359
+ 133,
1360
+ 237,
1361
+ 95,
1362
+ 91,
1363
+ 55,
1364
+ 145,
1365
+ 58,
1366
+ 140,
1367
+ 245,
1368
+ 133,
1369
+ 126,
1370
+ 255,
1371
+ 0,
1372
+ 169
1373
+ ];
1374
+ },
1375
+ {
1376
+ kind: 'account';
1377
+ path: 'migrationMetadata';
1378
+ }
1379
+ ];
1380
+ program: {
1381
+ kind: 'const';
1382
+ value: [
1383
+ 140,
1384
+ 151,
1385
+ 37,
1386
+ 143,
1387
+ 78,
1388
+ 36,
1389
+ 137,
1390
+ 241,
1391
+ 187,
1392
+ 61,
1393
+ 16,
1394
+ 41,
1395
+ 20,
1396
+ 142,
1397
+ 13,
1398
+ 131,
1399
+ 11,
1400
+ 90,
1401
+ 19,
1402
+ 153,
1403
+ 218,
1404
+ 255,
1405
+ 16,
1406
+ 132,
1407
+ 4,
1408
+ 142,
1409
+ 123,
1410
+ 216,
1411
+ 219,
1412
+ 233,
1413
+ 248,
1414
+ 89
1415
+ ];
1416
+ };
1417
+ };
1418
+ },
1419
+ {
1420
+ name: 'owner';
1421
+ },
1422
+ {
1423
+ name: 'sender';
1424
+ signer: true;
1425
+ },
1426
+ {
1427
+ name: 'tokenProgram';
1428
+ docs: ['tokenProgram'];
1429
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1430
+ }
1431
+ ];
1432
+ args: [];
1433
+ },
1434
+ {
1435
+ name: 'migrateMeteoraDammLockLpToken';
1436
+ discriminator: [177, 55, 238, 157, 251, 88, 165, 42];
1437
+ accounts: [
1438
+ {
1439
+ name: 'virtualPool';
1440
+ relations: ['migrationMetadata'];
1441
+ },
1442
+ {
1443
+ name: 'migrationMetadata';
1444
+ docs: ['migrationMetadata'];
1445
+ writable: true;
1446
+ },
1447
+ {
1448
+ name: 'poolAuthority';
1449
+ writable: true;
1450
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
1451
+ },
1452
+ {
1453
+ name: 'pool';
1454
+ writable: true;
1455
+ relations: ['lockEscrow'];
1456
+ },
1457
+ {
1458
+ name: 'lpMint';
1459
+ relations: ['migrationMetadata'];
1460
+ },
1461
+ {
1462
+ name: 'lockEscrow';
1463
+ writable: true;
1464
+ },
1465
+ {
1466
+ name: 'owner';
1467
+ relations: ['lockEscrow'];
1468
+ },
1469
+ {
1470
+ name: 'sourceTokens';
1471
+ writable: true;
1472
+ pda: {
1473
+ seeds: [
1474
+ {
1475
+ kind: 'account';
1476
+ path: 'poolAuthority';
1477
+ },
1478
+ {
1479
+ kind: 'const';
1480
+ value: [
1481
+ 6,
1482
+ 221,
1483
+ 246,
1484
+ 225,
1485
+ 215,
1486
+ 101,
1487
+ 161,
1488
+ 147,
1489
+ 217,
1490
+ 203,
1491
+ 225,
1492
+ 70,
1493
+ 206,
1494
+ 235,
1495
+ 121,
1496
+ 172,
1497
+ 28,
1498
+ 180,
1499
+ 133,
1500
+ 237,
1501
+ 95,
1502
+ 91,
1503
+ 55,
1504
+ 145,
1505
+ 58,
1506
+ 140,
1507
+ 245,
1508
+ 133,
1509
+ 126,
1510
+ 255,
1511
+ 0,
1512
+ 169
1513
+ ];
1514
+ },
1515
+ {
1516
+ kind: 'account';
1517
+ path: 'migrationMetadata';
1518
+ }
1519
+ ];
1520
+ program: {
1521
+ kind: 'const';
1522
+ value: [
1523
+ 140,
1524
+ 151,
1525
+ 37,
1526
+ 143,
1527
+ 78,
1528
+ 36,
1529
+ 137,
1530
+ 241,
1531
+ 187,
1532
+ 61,
1533
+ 16,
1534
+ 41,
1535
+ 20,
1536
+ 142,
1537
+ 13,
1538
+ 131,
1539
+ 11,
1540
+ 90,
1541
+ 19,
1542
+ 153,
1543
+ 218,
1544
+ 255,
1545
+ 16,
1546
+ 132,
1547
+ 4,
1548
+ 142,
1549
+ 123,
1550
+ 216,
1551
+ 219,
1552
+ 233,
1553
+ 248,
1554
+ 89
1555
+ ];
1556
+ };
1557
+ };
1558
+ },
1559
+ {
1560
+ name: 'escrowVault';
1561
+ writable: true;
1562
+ },
1563
+ {
1564
+ name: 'ammProgram';
1565
+ address: 'Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB';
1566
+ },
1567
+ {
1568
+ name: 'aVault';
1569
+ },
1570
+ {
1571
+ name: 'bVault';
1572
+ },
1573
+ {
1574
+ name: 'aVaultLp';
1575
+ },
1576
+ {
1577
+ name: 'bVaultLp';
1578
+ },
1579
+ {
1580
+ name: 'aVaultLpMint';
1581
+ },
1582
+ {
1583
+ name: 'bVaultLpMint';
1584
+ },
1585
+ {
1586
+ name: 'tokenProgram';
1587
+ docs: ['tokenProgram'];
1588
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1589
+ }
1590
+ ];
1591
+ args: [];
1592
+ },
1593
+ {
1594
+ name: 'migrationDammV2';
1595
+ discriminator: [156, 169, 230, 103, 53, 228, 80, 64];
1596
+ accounts: [
1597
+ {
1598
+ name: 'virtualPool';
1599
+ docs: ['virtual pool'];
1600
+ writable: true;
1601
+ relations: ['migrationMetadata'];
1602
+ },
1603
+ {
1604
+ name: 'migrationMetadata';
1605
+ docs: ['migration metadata'];
1606
+ },
1607
+ {
1608
+ name: 'config';
1609
+ docs: ['virtual pool config key'];
1610
+ relations: ['virtualPool'];
1611
+ },
1612
+ {
1613
+ name: 'poolAuthority';
1614
+ writable: true;
1615
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
1616
+ },
1617
+ {
1618
+ name: 'pool';
1619
+ writable: true;
1620
+ },
1621
+ {
1622
+ name: 'firstPositionNftMint';
1623
+ writable: true;
1624
+ },
1625
+ {
1626
+ name: 'firstPositionNftAccount';
1627
+ writable: true;
1628
+ },
1629
+ {
1630
+ name: 'firstPosition';
1631
+ writable: true;
1632
+ },
1633
+ {
1634
+ name: 'secondPositionNftMint';
1635
+ writable: true;
1636
+ optional: true;
1637
+ },
1638
+ {
1639
+ name: 'secondPositionNftAccount';
1640
+ writable: true;
1641
+ optional: true;
1642
+ },
1643
+ {
1644
+ name: 'secondPosition';
1645
+ writable: true;
1646
+ optional: true;
1647
+ },
1648
+ {
1649
+ name: 'dammPoolAuthority';
1650
+ },
1651
+ {
1652
+ name: 'ammProgram';
1653
+ address: 'cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG';
1654
+ },
1655
+ {
1656
+ name: 'baseMint';
1657
+ writable: true;
1658
+ },
1659
+ {
1660
+ name: 'quoteMint';
1661
+ writable: true;
1662
+ },
1663
+ {
1664
+ name: 'tokenAVault';
1665
+ writable: true;
1666
+ },
1667
+ {
1668
+ name: 'tokenBVault';
1669
+ writable: true;
1670
+ },
1671
+ {
1672
+ name: 'baseVault';
1673
+ writable: true;
1674
+ relations: ['virtualPool'];
1675
+ },
1676
+ {
1677
+ name: 'quoteVault';
1678
+ writable: true;
1679
+ relations: ['virtualPool'];
1680
+ },
1681
+ {
1682
+ name: 'payer';
1683
+ writable: true;
1684
+ signer: true;
1685
+ },
1686
+ {
1687
+ name: 'tokenBaseProgram';
1688
+ },
1689
+ {
1690
+ name: 'tokenQuoteProgram';
1691
+ },
1692
+ {
1693
+ name: 'token2022Program';
1694
+ },
1695
+ {
1696
+ name: 'dammEventAuthority';
1697
+ },
1698
+ {
1699
+ name: 'systemProgram';
1700
+ docs: ['System program.'];
1701
+ address: '11111111111111111111111111111111';
1702
+ }
1703
+ ];
1704
+ args: [];
1705
+ },
1706
+ {
1707
+ name: 'migrationDammV2CreateMetadata';
1708
+ discriminator: [109, 189, 19, 36, 195, 183, 222, 82];
1709
+ accounts: [
1710
+ {
1711
+ name: 'virtualPool';
1712
+ },
1713
+ {
1714
+ name: 'config';
1715
+ relations: ['virtualPool'];
1716
+ },
1717
+ {
1718
+ name: 'migrationMetadata';
1719
+ writable: true;
1720
+ pda: {
1721
+ seeds: [
1722
+ {
1723
+ kind: 'const';
1724
+ value: [100, 97, 109, 109, 95, 118, 50];
1725
+ },
1726
+ {
1727
+ kind: 'account';
1728
+ path: 'virtualPool';
1729
+ }
1730
+ ];
1731
+ };
1732
+ },
1733
+ {
1734
+ name: 'payer';
1735
+ writable: true;
1736
+ signer: true;
1737
+ },
1738
+ {
1739
+ name: 'systemProgram';
1740
+ address: '11111111111111111111111111111111';
1741
+ },
1742
+ {
1743
+ name: 'eventAuthority';
1744
+ pda: {
1745
+ seeds: [
1746
+ {
1747
+ kind: 'const';
1748
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
1749
+ }
1750
+ ];
1751
+ };
1752
+ },
1753
+ {
1754
+ name: 'program';
1755
+ }
1756
+ ];
1757
+ args: [];
1758
+ },
1759
+ {
1760
+ name: 'migrationMeteoraDammCreateMetadata';
1761
+ docs: ['migrate damm v1'];
1762
+ discriminator: [47, 94, 126, 115, 221, 226, 194, 133];
1763
+ accounts: [
1764
+ {
1765
+ name: 'virtualPool';
1766
+ },
1767
+ {
1768
+ name: 'config';
1769
+ relations: ['virtualPool'];
1770
+ },
1771
+ {
1772
+ name: 'migrationMetadata';
1773
+ writable: true;
1774
+ pda: {
1775
+ seeds: [
1776
+ {
1777
+ kind: 'const';
1778
+ value: [109, 101, 116, 101, 111, 114, 97];
1779
+ },
1780
+ {
1781
+ kind: 'account';
1782
+ path: 'virtualPool';
1783
+ }
1784
+ ];
1785
+ };
1786
+ },
1787
+ {
1788
+ name: 'payer';
1789
+ writable: true;
1790
+ signer: true;
1791
+ },
1792
+ {
1793
+ name: 'systemProgram';
1794
+ address: '11111111111111111111111111111111';
1795
+ },
1796
+ {
1797
+ name: 'eventAuthority';
1798
+ pda: {
1799
+ seeds: [
1800
+ {
1801
+ kind: 'const';
1802
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
1803
+ }
1804
+ ];
1805
+ };
1806
+ },
1807
+ {
1808
+ name: 'program';
1809
+ }
1810
+ ];
1811
+ args: [];
1812
+ },
1813
+ {
1814
+ name: 'partnerWithdrawSurplus';
1815
+ discriminator: [168, 173, 72, 100, 201, 98, 38, 92];
1816
+ accounts: [
1817
+ {
1818
+ name: 'poolAuthority';
1819
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
1820
+ },
1821
+ {
1822
+ name: 'config';
1823
+ relations: ['virtualPool'];
1824
+ },
1825
+ {
1826
+ name: 'virtualPool';
1827
+ writable: true;
1828
+ },
1829
+ {
1830
+ name: 'tokenQuoteAccount';
1831
+ docs: ['The receiver token account'];
1832
+ writable: true;
1833
+ },
1834
+ {
1835
+ name: 'quoteVault';
1836
+ docs: ['The vault token account for output token'];
1837
+ writable: true;
1838
+ relations: ['virtualPool'];
1839
+ },
1840
+ {
1841
+ name: 'quoteMint';
1842
+ docs: ['The mint of quote token'];
1843
+ relations: ['config'];
1844
+ },
1845
+ {
1846
+ name: 'feeClaimer';
1847
+ signer: true;
1848
+ relations: ['config'];
1849
+ },
1850
+ {
1851
+ name: 'tokenQuoteProgram';
1852
+ docs: ['Token b program'];
1853
+ },
1854
+ {
1855
+ name: 'eventAuthority';
1856
+ pda: {
1857
+ seeds: [
1858
+ {
1859
+ kind: 'const';
1860
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
1861
+ }
1862
+ ];
1863
+ };
1864
+ },
1865
+ {
1866
+ name: 'program';
1867
+ }
1868
+ ];
1869
+ args: [];
1870
+ },
1871
+ {
1872
+ name: 'protocolWithdrawSurplus';
1873
+ discriminator: [54, 136, 225, 138, 172, 182, 214, 167];
1874
+ accounts: [
1875
+ {
1876
+ name: 'poolAuthority';
1877
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
1878
+ },
1879
+ {
1880
+ name: 'config';
1881
+ relations: ['virtualPool'];
1882
+ },
1883
+ {
1884
+ name: 'virtualPool';
1885
+ writable: true;
1886
+ },
1887
+ {
1888
+ name: 'tokenQuoteAccount';
1889
+ docs: ['The treasury quote token account'];
1890
+ writable: true;
1891
+ pda: {
1892
+ seeds: [
1893
+ {
1894
+ kind: 'const';
1895
+ value: [
1896
+ 48,
1897
+ 9,
1898
+ 89,
1899
+ 123,
1900
+ 106,
1901
+ 114,
1902
+ 131,
1903
+ 251,
1904
+ 50,
1905
+ 173,
1906
+ 254,
1907
+ 250,
1908
+ 10,
1909
+ 80,
1910
+ 160,
1911
+ 84,
1912
+ 143,
1913
+ 100,
1914
+ 81,
1915
+ 249,
1916
+ 134,
1917
+ 112,
1918
+ 30,
1919
+ 213,
1920
+ 50,
1921
+ 166,
1922
+ 239,
1923
+ 78,
1924
+ 53,
1925
+ 175,
1926
+ 188,
1927
+ 85
1928
+ ];
1929
+ },
1930
+ {
1931
+ kind: 'account';
1932
+ path: 'tokenQuoteProgram';
1933
+ },
1934
+ {
1935
+ kind: 'account';
1936
+ path: 'quoteMint';
1937
+ }
1938
+ ];
1939
+ program: {
1940
+ kind: 'const';
1941
+ value: [
1942
+ 140,
1943
+ 151,
1944
+ 37,
1945
+ 143,
1946
+ 78,
1947
+ 36,
1948
+ 137,
1949
+ 241,
1950
+ 187,
1951
+ 61,
1952
+ 16,
1953
+ 41,
1954
+ 20,
1955
+ 142,
1956
+ 13,
1957
+ 131,
1958
+ 11,
1959
+ 90,
1960
+ 19,
1961
+ 153,
1962
+ 218,
1963
+ 255,
1964
+ 16,
1965
+ 132,
1966
+ 4,
1967
+ 142,
1968
+ 123,
1969
+ 216,
1970
+ 219,
1971
+ 233,
1972
+ 248,
1973
+ 89
1974
+ ];
1975
+ };
1976
+ };
1977
+ },
1978
+ {
1979
+ name: 'quoteVault';
1980
+ docs: ['The vault token account for quote token'];
1981
+ writable: true;
1982
+ relations: ['virtualPool'];
1983
+ },
1984
+ {
1985
+ name: 'quoteMint';
1986
+ docs: ['The mint of token'];
1987
+ relations: ['config'];
1988
+ },
1989
+ {
1990
+ name: 'tokenQuoteProgram';
1991
+ docs: ['Token b program'];
1992
+ },
1993
+ {
1994
+ name: 'eventAuthority';
1995
+ pda: {
1996
+ seeds: [
1997
+ {
1998
+ kind: 'const';
1999
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
2000
+ }
2001
+ ];
2002
+ };
2003
+ },
2004
+ {
2005
+ name: 'program';
2006
+ }
2007
+ ];
2008
+ args: [];
2009
+ },
2010
+ {
2011
+ name: 'swap';
2012
+ docs: ['TRADING BOTS FUNCTIONS ////'];
2013
+ discriminator: [248, 198, 158, 145, 225, 117, 135, 200];
2014
+ accounts: [
2015
+ {
2016
+ name: 'poolAuthority';
2017
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
2018
+ },
2019
+ {
2020
+ name: 'config';
2021
+ docs: ['config key'];
2022
+ relations: ['pool'];
2023
+ },
2024
+ {
2025
+ name: 'pool';
2026
+ docs: ['Pool account'];
2027
+ writable: true;
2028
+ },
2029
+ {
2030
+ name: 'inputTokenAccount';
2031
+ docs: ['The user token account for input token'];
2032
+ writable: true;
2033
+ },
2034
+ {
2035
+ name: 'outputTokenAccount';
2036
+ docs: ['The user token account for output token'];
2037
+ writable: true;
2038
+ },
2039
+ {
2040
+ name: 'baseVault';
2041
+ docs: ['The vault token account for base token'];
2042
+ writable: true;
2043
+ relations: ['pool'];
2044
+ },
2045
+ {
2046
+ name: 'quoteVault';
2047
+ docs: ['The vault token account for quote token'];
2048
+ writable: true;
2049
+ relations: ['pool'];
2050
+ },
2051
+ {
2052
+ name: 'baseMint';
2053
+ docs: ['The mint of base token'];
2054
+ },
2055
+ {
2056
+ name: 'quoteMint';
2057
+ docs: ['The mint of quote token'];
2058
+ },
2059
+ {
2060
+ name: 'payer';
2061
+ docs: ['The user performing the swap'];
2062
+ signer: true;
2063
+ },
2064
+ {
2065
+ name: 'tokenBaseProgram';
2066
+ docs: ['Token base program'];
2067
+ },
2068
+ {
2069
+ name: 'tokenQuoteProgram';
2070
+ docs: ['Token quote program'];
2071
+ },
2072
+ {
2073
+ name: 'referralTokenAccount';
2074
+ docs: ['referral token account'];
2075
+ writable: true;
2076
+ optional: true;
2077
+ },
2078
+ {
2079
+ name: 'eventAuthority';
2080
+ pda: {
2081
+ seeds: [
2082
+ {
2083
+ kind: 'const';
2084
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
2085
+ }
2086
+ ];
2087
+ };
2088
+ },
2089
+ {
2090
+ name: 'program';
2091
+ }
2092
+ ];
2093
+ args: [
2094
+ {
2095
+ name: 'params';
2096
+ type: {
2097
+ defined: {
2098
+ name: 'swapParameters';
2099
+ };
2100
+ };
2101
+ }
2102
+ ];
2103
+ },
2104
+ {
2105
+ name: 'transferPoolCreator';
2106
+ discriminator: [20, 7, 169, 33, 58, 147, 166, 33];
2107
+ accounts: [
2108
+ {
2109
+ name: 'virtualPool';
2110
+ writable: true;
2111
+ },
2112
+ {
2113
+ name: 'config';
2114
+ relations: ['virtualPool'];
2115
+ },
2116
+ {
2117
+ name: 'creator';
2118
+ signer: true;
2119
+ relations: ['virtualPool'];
2120
+ },
2121
+ {
2122
+ name: 'newCreator';
2123
+ },
2124
+ {
2125
+ name: 'eventAuthority';
2126
+ pda: {
2127
+ seeds: [
2128
+ {
2129
+ kind: 'const';
2130
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
2131
+ }
2132
+ ];
2133
+ };
2134
+ },
2135
+ {
2136
+ name: 'program';
2137
+ }
2138
+ ];
2139
+ args: [];
2140
+ },
2141
+ {
2142
+ name: 'withdrawLeftover';
2143
+ discriminator: [20, 198, 202, 237, 235, 243, 183, 66];
2144
+ accounts: [
2145
+ {
2146
+ name: 'poolAuthority';
2147
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
2148
+ },
2149
+ {
2150
+ name: 'config';
2151
+ relations: ['virtualPool'];
2152
+ },
2153
+ {
2154
+ name: 'virtualPool';
2155
+ writable: true;
2156
+ },
2157
+ {
2158
+ name: 'tokenBaseAccount';
2159
+ docs: ['The receiver token account, withdraw to ATA'];
2160
+ writable: true;
2161
+ pda: {
2162
+ seeds: [
2163
+ {
2164
+ kind: 'account';
2165
+ path: 'leftoverReceiver';
2166
+ },
2167
+ {
2168
+ kind: 'account';
2169
+ path: 'tokenBaseProgram';
2170
+ },
2171
+ {
2172
+ kind: 'account';
2173
+ path: 'baseMint';
2174
+ }
2175
+ ];
2176
+ program: {
2177
+ kind: 'const';
2178
+ value: [
2179
+ 140,
2180
+ 151,
2181
+ 37,
2182
+ 143,
2183
+ 78,
2184
+ 36,
2185
+ 137,
2186
+ 241,
2187
+ 187,
2188
+ 61,
2189
+ 16,
2190
+ 41,
2191
+ 20,
2192
+ 142,
2193
+ 13,
2194
+ 131,
2195
+ 11,
2196
+ 90,
2197
+ 19,
2198
+ 153,
2199
+ 218,
2200
+ 255,
2201
+ 16,
2202
+ 132,
2203
+ 4,
2204
+ 142,
2205
+ 123,
2206
+ 216,
2207
+ 219,
2208
+ 233,
2209
+ 248,
2210
+ 89
2211
+ ];
2212
+ };
2213
+ };
2214
+ },
2215
+ {
2216
+ name: 'baseVault';
2217
+ docs: ['The vault token account for output token'];
2218
+ writable: true;
2219
+ relations: ['virtualPool'];
2220
+ },
2221
+ {
2222
+ name: 'baseMint';
2223
+ docs: ['The mint of quote token'];
2224
+ relations: ['virtualPool'];
2225
+ },
2226
+ {
2227
+ name: 'leftoverReceiver';
2228
+ relations: ['config'];
2229
+ },
2230
+ {
2231
+ name: 'tokenBaseProgram';
2232
+ docs: ['Token base program'];
2233
+ },
2234
+ {
2235
+ name: 'eventAuthority';
2236
+ pda: {
2237
+ seeds: [
2238
+ {
2239
+ kind: 'const';
2240
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
2241
+ }
2242
+ ];
2243
+ };
2244
+ },
2245
+ {
2246
+ name: 'program';
2247
+ }
2248
+ ];
2249
+ args: [];
2250
+ },
2251
+ {
2252
+ name: 'withdrawMigrationFee';
2253
+ docs: ['BOTH partner and creator FUNCTIONS ///'];
2254
+ discriminator: [237, 142, 45, 23, 129, 6, 222, 162];
2255
+ accounts: [
2256
+ {
2257
+ name: 'poolAuthority';
2258
+ address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
2259
+ },
2260
+ {
2261
+ name: 'config';
2262
+ relations: ['virtualPool'];
2263
+ },
2264
+ {
2265
+ name: 'virtualPool';
2266
+ writable: true;
2267
+ },
2268
+ {
2269
+ name: 'tokenQuoteAccount';
2270
+ docs: ['The receiver token account'];
2271
+ writable: true;
2272
+ },
2273
+ {
2274
+ name: 'quoteVault';
2275
+ docs: ['The vault token account for output token'];
2276
+ writable: true;
2277
+ relations: ['virtualPool'];
2278
+ },
2279
+ {
2280
+ name: 'quoteMint';
2281
+ docs: ['The mint of quote token'];
2282
+ relations: ['config'];
2283
+ },
2284
+ {
2285
+ name: 'sender';
2286
+ signer: true;
2287
+ },
2288
+ {
2289
+ name: 'tokenQuoteProgram';
2290
+ docs: ['Token b program'];
2291
+ },
2292
+ {
2293
+ name: 'eventAuthority';
2294
+ pda: {
2295
+ seeds: [
2296
+ {
2297
+ kind: 'const';
2298
+ value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
2299
+ }
2300
+ ];
2301
+ };
2302
+ },
2303
+ {
2304
+ name: 'program';
2305
+ }
2306
+ ];
2307
+ args: [
2308
+ {
2309
+ name: 'flag';
2310
+ type: 'u8';
2311
+ }
2312
+ ];
2313
+ }
2314
+ ];
2315
+ accounts: [
2316
+ {
2317
+ name: 'claimFeeOperator';
2318
+ discriminator: [166, 48, 134, 86, 34, 200, 188, 150];
2319
+ },
2320
+ {
2321
+ name: 'config';
2322
+ discriminator: [155, 12, 170, 224, 30, 250, 204, 130];
2323
+ },
2324
+ {
2325
+ name: 'lockEscrow';
2326
+ discriminator: [190, 106, 121, 6, 200, 182, 21, 75];
2327
+ },
2328
+ {
2329
+ name: 'meteoraDammMigrationMetadata';
2330
+ discriminator: [17, 155, 141, 215, 207, 4, 133, 156];
2331
+ },
2332
+ {
2333
+ name: 'meteoraDammV2Metadata';
2334
+ discriminator: [104, 221, 219, 203, 10, 142, 250, 163];
2335
+ },
2336
+ {
2337
+ name: 'partnerMetadata';
2338
+ discriminator: [68, 68, 130, 19, 16, 209, 98, 156];
2339
+ },
2340
+ {
2341
+ name: 'poolConfig';
2342
+ discriminator: [26, 108, 14, 123, 116, 230, 129, 43];
2343
+ },
2344
+ {
2345
+ name: 'virtualPool';
2346
+ discriminator: [213, 224, 5, 209, 98, 69, 119, 92];
2347
+ },
2348
+ {
2349
+ name: 'virtualPoolMetadata';
2350
+ discriminator: [217, 37, 82, 250, 43, 47, 228, 254];
2351
+ }
2352
+ ];
2353
+ events: [
2354
+ {
2355
+ name: 'evtClaimCreatorTradingFee';
2356
+ discriminator: [154, 228, 215, 202, 133, 155, 214, 138];
2357
+ },
2358
+ {
2359
+ name: 'evtClaimProtocolFee';
2360
+ discriminator: [186, 244, 75, 251, 188, 13, 25, 33];
2361
+ },
2362
+ {
2363
+ name: 'evtClaimTradingFee';
2364
+ discriminator: [26, 83, 117, 240, 92, 202, 112, 254];
2365
+ },
2366
+ {
2367
+ name: 'evtCloseClaimFeeOperator';
2368
+ discriminator: [111, 39, 37, 55, 110, 216, 194, 23];
2369
+ },
2370
+ {
2371
+ name: 'evtCreateClaimFeeOperator';
2372
+ discriminator: [21, 6, 153, 120, 68, 116, 28, 177];
2373
+ },
2374
+ {
2375
+ name: 'evtCreateConfig';
2376
+ discriminator: [131, 207, 180, 174, 180, 73, 165, 54];
2377
+ },
2378
+ {
2379
+ name: 'evtCreateConfigV2';
2380
+ discriminator: [163, 74, 66, 187, 119, 195, 26, 144];
2381
+ },
2382
+ {
2383
+ name: 'evtCreateDammV2MigrationMetadata';
2384
+ discriminator: [103, 111, 132, 168, 140, 253, 150, 114];
2385
+ },
2386
+ {
2387
+ name: 'evtCreateMeteoraMigrationMetadata';
2388
+ discriminator: [99, 167, 133, 63, 214, 143, 175, 139];
2389
+ },
2390
+ {
2391
+ name: 'evtCreatorWithdrawSurplus';
2392
+ discriminator: [152, 73, 21, 15, 66, 87, 53, 157];
2393
+ },
2394
+ {
2395
+ name: 'evtCurveComplete';
2396
+ discriminator: [229, 231, 86, 84, 156, 134, 75, 24];
2397
+ },
2398
+ {
2399
+ name: 'evtInitializePool';
2400
+ discriminator: [228, 50, 246, 85, 203, 66, 134, 37];
2401
+ },
2402
+ {
2403
+ name: 'evtPartnerMetadata';
2404
+ discriminator: [200, 127, 6, 55, 13, 32, 8, 150];
2405
+ },
2406
+ {
2407
+ name: 'evtPartnerWithdrawMigrationFee';
2408
+ discriminator: [181, 105, 127, 67, 8, 187, 120, 57];
2409
+ },
2410
+ {
2411
+ name: 'evtPartnerWithdrawSurplus';
2412
+ discriminator: [195, 56, 152, 9, 232, 72, 35, 22];
2413
+ },
2414
+ {
2415
+ name: 'evtProtocolWithdrawSurplus';
2416
+ discriminator: [109, 111, 28, 221, 134, 195, 230, 203];
2417
+ },
2418
+ {
2419
+ name: 'evtSwap';
2420
+ discriminator: [27, 60, 21, 213, 138, 170, 187, 147];
2421
+ },
2422
+ {
2423
+ name: 'evtUpdatePoolCreator';
2424
+ discriminator: [107, 225, 165, 237, 91, 158, 213, 220];
2425
+ },
2426
+ {
2427
+ name: 'evtVirtualPoolMetadata';
2428
+ discriminator: [188, 18, 72, 76, 195, 91, 38, 74];
2429
+ },
2430
+ {
2431
+ name: 'evtWithdrawLeftover';
2432
+ discriminator: [191, 189, 104, 143, 111, 156, 94, 229];
2433
+ },
2434
+ {
2435
+ name: 'evtWithdrawMigrationFee';
2436
+ discriminator: [26, 203, 84, 85, 161, 23, 100, 214];
2437
+ }
2438
+ ];
2439
+ errors: [
2440
+ {
2441
+ code: 6000;
2442
+ name: 'mathOverflow';
2443
+ msg: 'Math operation overflow';
2444
+ },
2445
+ {
2446
+ code: 6001;
2447
+ name: 'invalidFee';
2448
+ msg: 'Invalid fee setup';
2449
+ },
2450
+ {
2451
+ code: 6002;
2452
+ name: 'exceededSlippage';
2453
+ msg: 'Exceeded slippage tolerance';
2454
+ },
2455
+ {
2456
+ code: 6003;
2457
+ name: 'exceedMaxFeeBps';
2458
+ msg: 'Exceeded max fee bps';
2459
+ },
2460
+ {
2461
+ code: 6004;
2462
+ name: 'invalidAdmin';
2463
+ msg: 'Invalid admin';
2464
+ },
2465
+ {
2466
+ code: 6005;
2467
+ name: 'amountIsZero';
2468
+ msg: 'Amount is zero';
2469
+ },
2470
+ {
2471
+ code: 6006;
2472
+ name: 'typeCastFailed';
2473
+ msg: 'Type cast error';
2474
+ },
2475
+ {
2476
+ code: 6007;
2477
+ name: 'invalidActivationType';
2478
+ msg: 'Invalid activation type';
2479
+ },
2480
+ {
2481
+ code: 6008;
2482
+ name: 'invalidQuoteMint';
2483
+ msg: 'Invalid quote mint';
2484
+ },
2485
+ {
2486
+ code: 6009;
2487
+ name: 'invalidCollectFeeMode';
2488
+ msg: 'Invalid collect fee mode';
2489
+ },
2490
+ {
2491
+ code: 6010;
2492
+ name: 'invalidMigrationFeeOption';
2493
+ msg: 'Invalid migration fee option';
2494
+ },
2495
+ {
2496
+ code: 6011;
2497
+ name: 'invalidInput';
2498
+ msg: 'Invalid input';
2499
+ },
2500
+ {
2501
+ code: 6012;
2502
+ name: 'notEnoughLiquidity';
2503
+ msg: 'Not enough liquidity';
2504
+ },
2505
+ {
2506
+ code: 6013;
2507
+ name: 'poolIsCompleted';
2508
+ msg: 'Pool is completed';
2509
+ },
2510
+ {
2511
+ code: 6014;
2512
+ name: 'poolIsIncompleted';
2513
+ msg: 'Pool is incompleted';
2514
+ },
2515
+ {
2516
+ code: 6015;
2517
+ name: 'invalidMigrationOption';
2518
+ msg: 'Invalid migration option';
2519
+ },
2520
+ {
2521
+ code: 6016;
2522
+ name: 'invalidTokenDecimals';
2523
+ msg: 'Invalid activation type';
2524
+ },
2525
+ {
2526
+ code: 6017;
2527
+ name: 'invalidTokenType';
2528
+ msg: 'Invalid token type';
2529
+ },
2530
+ {
2531
+ code: 6018;
2532
+ name: 'invalidFeePercentage';
2533
+ msg: 'Invalid fee percentage';
2534
+ },
2535
+ {
2536
+ code: 6019;
2537
+ name: 'invalidQuoteThreshold';
2538
+ msg: 'Invalid quote threshold';
2539
+ },
2540
+ {
2541
+ code: 6020;
2542
+ name: 'invalidTokenSupply';
2543
+ msg: 'Invalid token supply';
2544
+ },
2545
+ {
2546
+ code: 6021;
2547
+ name: 'invalidCurve';
2548
+ msg: 'Invalid curve';
2549
+ },
2550
+ {
2551
+ code: 6022;
2552
+ name: 'notPermitToDoThisAction';
2553
+ msg: 'Not permit to do this action';
2554
+ },
2555
+ {
2556
+ code: 6023;
2557
+ name: 'invalidOwnerAccount';
2558
+ msg: 'Invalid owner account';
2559
+ },
2560
+ {
2561
+ code: 6024;
2562
+ name: 'invalidConfigAccount';
2563
+ msg: 'Invalid config account';
2564
+ },
2565
+ {
2566
+ code: 6025;
2567
+ name: 'surplusHasBeenWithdraw';
2568
+ msg: 'Surplus has been withdraw';
2569
+ },
2570
+ {
2571
+ code: 6026;
2572
+ name: 'leftoverHasBeenWithdraw';
2573
+ msg: 'Leftover has been withdraw';
2574
+ },
2575
+ {
2576
+ code: 6027;
2577
+ name: 'totalBaseTokenExceedMaxSupply';
2578
+ msg: 'Total base token is exceeded max supply';
2579
+ },
2580
+ {
2581
+ code: 6028;
2582
+ name: 'unsupportNativeMintToken2022';
2583
+ msg: 'Unsupport native mint token 2022';
2584
+ },
2585
+ {
2586
+ code: 6029;
2587
+ name: 'insufficientLiquidityForMigration';
2588
+ msg: 'Insufficient liquidity for migration';
2589
+ },
2590
+ {
2591
+ code: 6030;
2592
+ name: 'missingPoolConfigInRemainingAccount';
2593
+ msg: 'Missing pool config in remaining account';
2594
+ },
2595
+ {
2596
+ code: 6031;
2597
+ name: 'invalidVestingParameters';
2598
+ msg: 'Invalid vesting parameters';
2599
+ },
2600
+ {
2601
+ code: 6032;
2602
+ name: 'invalidLeftoverAddress';
2603
+ msg: 'Invalid leftover address';
2604
+ },
2605
+ {
2606
+ code: 6033;
2607
+ name: 'swapAmountIsOverAThreshold';
2608
+ msg: 'Swap amount is over a threshold';
2609
+ },
2610
+ {
2611
+ code: 6034;
2612
+ name: 'invalidFeeScheduler';
2613
+ msg: 'Invalid fee scheduler';
2614
+ },
2615
+ {
2616
+ code: 6035;
2617
+ name: 'invalidCreatorTradingFeePercentage';
2618
+ msg: 'Invalid creator trading fee percentage';
2619
+ },
2620
+ {
2621
+ code: 6036;
2622
+ name: 'invalidNewCreator';
2623
+ msg: 'Invalid new creator';
2624
+ },
2625
+ {
2626
+ code: 6037;
2627
+ name: 'invalidTokenAuthorityOption';
2628
+ msg: 'Invalid token authority option';
2629
+ },
2630
+ {
2631
+ code: 6038;
2632
+ name: 'invalidAccount';
2633
+ msg: 'Invalid account for the instruction';
2634
+ },
2635
+ {
2636
+ code: 6039;
2637
+ name: 'invalidMigratorFeePercentage';
2638
+ msg: 'Invalid migrator fee percentage';
2639
+ },
2640
+ {
2641
+ code: 6040;
2642
+ name: 'migrationFeeHasBeenWithdraw';
2643
+ msg: 'Migration fee has been withdraw';
2644
+ },
2645
+ {
2646
+ code: 6041;
2647
+ name: 'invalidBaseFeeMode';
2648
+ msg: 'Invalid base fee mode';
2649
+ },
2650
+ {
2651
+ code: 6042;
2652
+ name: 'invalidFeeRateLimiter';
2653
+ msg: 'Invalid fee rate limiter';
2654
+ },
2655
+ {
2656
+ code: 6043;
2657
+ name: 'failToValidateSingleSwapInstruction';
2658
+ msg: 'Fail to validate single swap instruction in rate limiter';
2659
+ },
2660
+ {
2661
+ code: 6044;
2662
+ name: 'invalidMigratedPoolFee';
2663
+ msg: 'Invalid migrated pool fee params';
2664
+ }
2665
+ ];
2666
+ types: [
2667
+ {
2668
+ name: 'baseFeeConfig';
2669
+ serialization: 'bytemuck';
2670
+ repr: {
2671
+ kind: 'c';
2672
+ };
2673
+ type: {
2674
+ kind: 'struct';
2675
+ fields: [
2676
+ {
2677
+ name: 'cliffFeeNumerator';
2678
+ type: 'u64';
2679
+ },
2680
+ {
2681
+ name: 'secondFactor';
2682
+ type: 'u64';
2683
+ },
2684
+ {
2685
+ name: 'thirdFactor';
2686
+ type: 'u64';
2687
+ },
2688
+ {
2689
+ name: 'firstFactor';
2690
+ type: 'u16';
2691
+ },
2692
+ {
2693
+ name: 'baseFeeMode';
2694
+ type: 'u8';
2695
+ },
2696
+ {
2697
+ name: 'padding0';
2698
+ type: {
2699
+ array: ['u8', 5];
2700
+ };
2701
+ }
2702
+ ];
2703
+ };
2704
+ },
2705
+ {
2706
+ name: 'baseFeeParameters';
2707
+ type: {
2708
+ kind: 'struct';
2709
+ fields: [
2710
+ {
2711
+ name: 'cliffFeeNumerator';
2712
+ type: 'u64';
2713
+ },
2714
+ {
2715
+ name: 'firstFactor';
2716
+ type: 'u16';
2717
+ },
2718
+ {
2719
+ name: 'secondFactor';
2720
+ type: 'u64';
2721
+ },
2722
+ {
2723
+ name: 'thirdFactor';
2724
+ type: 'u64';
2725
+ },
2726
+ {
2727
+ name: 'baseFeeMode';
2728
+ type: 'u8';
2729
+ }
2730
+ ];
2731
+ };
2732
+ },
2733
+ {
2734
+ name: 'claimFeeOperator';
2735
+ docs: ['Parameter that set by the protocol'];
2736
+ serialization: 'bytemuck';
2737
+ repr: {
2738
+ kind: 'c';
2739
+ };
2740
+ type: {
2741
+ kind: 'struct';
2742
+ fields: [
2743
+ {
2744
+ name: 'operator';
2745
+ docs: ['operator'];
2746
+ type: 'pubkey';
2747
+ },
2748
+ {
2749
+ name: 'padding';
2750
+ docs: ['Reserve'];
2751
+ type: {
2752
+ array: ['u8', 128];
2753
+ };
2754
+ }
2755
+ ];
2756
+ };
2757
+ },
2758
+ {
2759
+ name: 'config';
2760
+ type: {
2761
+ kind: 'struct';
2762
+ fields: [
2763
+ {
2764
+ name: 'poolFees';
2765
+ type: {
2766
+ defined: {
2767
+ name: 'poolFees';
2768
+ };
2769
+ };
2770
+ },
2771
+ {
2772
+ name: 'activationDuration';
2773
+ type: 'u64';
2774
+ },
2775
+ {
2776
+ name: 'vaultConfigKey';
2777
+ type: 'pubkey';
2778
+ },
2779
+ {
2780
+ name: 'poolCreatorAuthority';
2781
+ type: 'pubkey';
2782
+ },
2783
+ {
2784
+ name: 'activationType';
2785
+ type: 'u8';
2786
+ },
2787
+ {
2788
+ name: 'partnerFeeNumerator';
2789
+ type: 'u64';
2790
+ },
2791
+ {
2792
+ name: 'padding';
2793
+ type: {
2794
+ array: ['u8', 219];
2795
+ };
2796
+ }
2797
+ ];
2798
+ };
2799
+ },
2800
+ {
2801
+ name: 'configParameters';
2802
+ type: {
2803
+ kind: 'struct';
2804
+ fields: [
2805
+ {
2806
+ name: 'poolFees';
2807
+ type: {
2808
+ defined: {
2809
+ name: 'poolFeeParameters';
2810
+ };
2811
+ };
2812
+ },
2813
+ {
2814
+ name: 'collectFeeMode';
2815
+ type: 'u8';
2816
+ },
2817
+ {
2818
+ name: 'migrationOption';
2819
+ type: 'u8';
2820
+ },
2821
+ {
2822
+ name: 'activationType';
2823
+ type: 'u8';
2824
+ },
2825
+ {
2826
+ name: 'tokenType';
2827
+ type: 'u8';
2828
+ },
2829
+ {
2830
+ name: 'tokenDecimal';
2831
+ type: 'u8';
2832
+ },
2833
+ {
2834
+ name: 'partnerLpPercentage';
2835
+ type: 'u8';
2836
+ },
2837
+ {
2838
+ name: 'partnerLockedLpPercentage';
2839
+ type: 'u8';
2840
+ },
2841
+ {
2842
+ name: 'creatorLpPercentage';
2843
+ type: 'u8';
2844
+ },
2845
+ {
2846
+ name: 'creatorLockedLpPercentage';
2847
+ type: 'u8';
2848
+ },
2849
+ {
2850
+ name: 'migrationQuoteThreshold';
2851
+ type: 'u64';
2852
+ },
2853
+ {
2854
+ name: 'sqrtStartPrice';
2855
+ type: 'u128';
2856
+ },
2857
+ {
2858
+ name: 'lockedVesting';
2859
+ type: {
2860
+ defined: {
2861
+ name: 'lockedVestingParams';
2862
+ };
2863
+ };
2864
+ },
2865
+ {
2866
+ name: 'migrationFeeOption';
2867
+ type: 'u8';
2868
+ },
2869
+ {
2870
+ name: 'tokenSupply';
2871
+ type: {
2872
+ option: {
2873
+ defined: {
2874
+ name: 'tokenSupplyParams';
2875
+ };
2876
+ };
2877
+ };
2878
+ },
2879
+ {
2880
+ name: 'creatorTradingFeePercentage';
2881
+ type: 'u8';
2882
+ },
2883
+ {
2884
+ name: 'tokenUpdateAuthority';
2885
+ type: 'u8';
2886
+ },
2887
+ {
2888
+ name: 'migrationFee';
2889
+ type: {
2890
+ defined: {
2891
+ name: 'migrationFee';
2892
+ };
2893
+ };
2894
+ },
2895
+ {
2896
+ name: 'migratedPoolFee';
2897
+ type: {
2898
+ defined: {
2899
+ name: 'migratedPoolFee';
2900
+ };
2901
+ };
2902
+ },
2903
+ {
2904
+ name: 'padding';
2905
+ docs: ['padding for future use'];
2906
+ type: {
2907
+ array: ['u64', 7];
2908
+ };
2909
+ },
2910
+ {
2911
+ name: 'curve';
2912
+ type: {
2913
+ vec: {
2914
+ defined: {
2915
+ name: 'liquidityDistributionParameters';
2916
+ };
2917
+ };
2918
+ };
2919
+ }
2920
+ ];
2921
+ };
2922
+ },
2923
+ {
2924
+ name: 'createPartnerMetadataParameters';
2925
+ type: {
2926
+ kind: 'struct';
2927
+ fields: [
2928
+ {
2929
+ name: 'padding';
2930
+ type: {
2931
+ array: ['u8', 96];
2932
+ };
2933
+ },
2934
+ {
2935
+ name: 'name';
2936
+ type: 'string';
2937
+ },
2938
+ {
2939
+ name: 'website';
2940
+ type: 'string';
2941
+ },
2942
+ {
2943
+ name: 'logo';
2944
+ type: 'string';
2945
+ }
2946
+ ];
2947
+ };
2948
+ },
2949
+ {
2950
+ name: 'createVirtualPoolMetadataParameters';
2951
+ type: {
2952
+ kind: 'struct';
2953
+ fields: [
2954
+ {
2955
+ name: 'padding';
2956
+ type: {
2957
+ array: ['u8', 96];
2958
+ };
2959
+ },
2960
+ {
2961
+ name: 'name';
2962
+ type: 'string';
2963
+ },
2964
+ {
2965
+ name: 'website';
2966
+ type: 'string';
2967
+ },
2968
+ {
2969
+ name: 'logo';
2970
+ type: 'string';
2971
+ }
2972
+ ];
2973
+ };
2974
+ },
2975
+ {
2976
+ name: 'dynamicFeeConfig';
2977
+ serialization: 'bytemuck';
2978
+ repr: {
2979
+ kind: 'c';
2980
+ };
2981
+ type: {
2982
+ kind: 'struct';
2983
+ fields: [
2984
+ {
2985
+ name: 'initialized';
2986
+ type: 'u8';
2987
+ },
2988
+ {
2989
+ name: 'padding';
2990
+ type: {
2991
+ array: ['u8', 7];
2992
+ };
2993
+ },
2994
+ {
2995
+ name: 'maxVolatilityAccumulator';
2996
+ type: 'u32';
2997
+ },
2998
+ {
2999
+ name: 'variableFeeControl';
3000
+ type: 'u32';
3001
+ },
3002
+ {
3003
+ name: 'binStep';
3004
+ type: 'u16';
3005
+ },
3006
+ {
3007
+ name: 'filterPeriod';
3008
+ type: 'u16';
3009
+ },
3010
+ {
3011
+ name: 'decayPeriod';
3012
+ type: 'u16';
3013
+ },
3014
+ {
3015
+ name: 'reductionFactor';
3016
+ type: 'u16';
3017
+ },
3018
+ {
3019
+ name: 'padding2';
3020
+ type: {
3021
+ array: ['u8', 8];
3022
+ };
3023
+ },
3024
+ {
3025
+ name: 'binStepU128';
3026
+ type: 'u128';
3027
+ }
3028
+ ];
3029
+ };
3030
+ },
3031
+ {
3032
+ name: 'dynamicFeeParameters';
3033
+ type: {
3034
+ kind: 'struct';
3035
+ fields: [
3036
+ {
3037
+ name: 'binStep';
3038
+ type: 'u16';
3039
+ },
3040
+ {
3041
+ name: 'binStepU128';
3042
+ type: 'u128';
3043
+ },
3044
+ {
3045
+ name: 'filterPeriod';
3046
+ type: 'u16';
3047
+ },
3048
+ {
3049
+ name: 'decayPeriod';
3050
+ type: 'u16';
3051
+ },
3052
+ {
3053
+ name: 'reductionFactor';
3054
+ type: 'u16';
3055
+ },
3056
+ {
3057
+ name: 'maxVolatilityAccumulator';
3058
+ type: 'u32';
3059
+ },
3060
+ {
3061
+ name: 'variableFeeControl';
3062
+ type: 'u32';
3063
+ }
3064
+ ];
3065
+ };
3066
+ },
3067
+ {
3068
+ name: 'evtClaimCreatorTradingFee';
3069
+ type: {
3070
+ kind: 'struct';
3071
+ fields: [
3072
+ {
3073
+ name: 'pool';
3074
+ type: 'pubkey';
3075
+ },
3076
+ {
3077
+ name: 'tokenBaseAmount';
3078
+ type: 'u64';
3079
+ },
3080
+ {
3081
+ name: 'tokenQuoteAmount';
3082
+ type: 'u64';
3083
+ }
3084
+ ];
3085
+ };
3086
+ },
3087
+ {
3088
+ name: 'evtClaimProtocolFee';
3089
+ type: {
3090
+ kind: 'struct';
3091
+ fields: [
3092
+ {
3093
+ name: 'pool';
3094
+ type: 'pubkey';
3095
+ },
3096
+ {
3097
+ name: 'tokenBaseAmount';
3098
+ type: 'u64';
3099
+ },
3100
+ {
3101
+ name: 'tokenQuoteAmount';
3102
+ type: 'u64';
3103
+ }
3104
+ ];
3105
+ };
3106
+ },
3107
+ {
3108
+ name: 'evtClaimTradingFee';
3109
+ type: {
3110
+ kind: 'struct';
3111
+ fields: [
3112
+ {
3113
+ name: 'pool';
3114
+ type: 'pubkey';
3115
+ },
3116
+ {
3117
+ name: 'tokenBaseAmount';
3118
+ type: 'u64';
3119
+ },
3120
+ {
3121
+ name: 'tokenQuoteAmount';
3122
+ type: 'u64';
3123
+ }
3124
+ ];
3125
+ };
3126
+ },
3127
+ {
3128
+ name: 'evtCloseClaimFeeOperator';
3129
+ docs: ['Close claim fee operator'];
3130
+ type: {
3131
+ kind: 'struct';
3132
+ fields: [
3133
+ {
3134
+ name: 'claimFeeOperator';
3135
+ type: 'pubkey';
3136
+ },
3137
+ {
3138
+ name: 'operator';
3139
+ type: 'pubkey';
3140
+ }
3141
+ ];
3142
+ };
3143
+ },
3144
+ {
3145
+ name: 'evtCreateClaimFeeOperator';
3146
+ docs: ['Create claim fee operator'];
3147
+ type: {
3148
+ kind: 'struct';
3149
+ fields: [
3150
+ {
3151
+ name: 'operator';
3152
+ type: 'pubkey';
3153
+ }
3154
+ ];
3155
+ };
3156
+ },
3157
+ {
3158
+ name: 'evtCreateConfig';
3159
+ docs: ['Create config'];
3160
+ type: {
3161
+ kind: 'struct';
3162
+ fields: [
3163
+ {
3164
+ name: 'config';
3165
+ type: 'pubkey';
3166
+ },
3167
+ {
3168
+ name: 'quoteMint';
3169
+ type: 'pubkey';
3170
+ },
3171
+ {
3172
+ name: 'feeClaimer';
3173
+ type: 'pubkey';
3174
+ },
3175
+ {
3176
+ name: 'owner';
3177
+ type: 'pubkey';
3178
+ },
3179
+ {
3180
+ name: 'poolFees';
3181
+ type: {
3182
+ defined: {
3183
+ name: 'poolFeeParameters';
3184
+ };
3185
+ };
3186
+ },
3187
+ {
3188
+ name: 'collectFeeMode';
3189
+ type: 'u8';
3190
+ },
3191
+ {
3192
+ name: 'migrationOption';
3193
+ type: 'u8';
3194
+ },
3195
+ {
3196
+ name: 'activationType';
3197
+ type: 'u8';
3198
+ },
3199
+ {
3200
+ name: 'tokenDecimal';
3201
+ type: 'u8';
3202
+ },
3203
+ {
3204
+ name: 'tokenType';
3205
+ type: 'u8';
3206
+ },
3207
+ {
3208
+ name: 'partnerLockedLpPercentage';
3209
+ type: 'u8';
3210
+ },
3211
+ {
3212
+ name: 'partnerLpPercentage';
3213
+ type: 'u8';
3214
+ },
3215
+ {
3216
+ name: 'creatorLockedLpPercentage';
3217
+ type: 'u8';
3218
+ },
3219
+ {
3220
+ name: 'creatorLpPercentage';
3221
+ type: 'u8';
3222
+ },
3223
+ {
3224
+ name: 'swapBaseAmount';
3225
+ type: 'u64';
3226
+ },
3227
+ {
3228
+ name: 'migrationQuoteThreshold';
3229
+ type: 'u64';
3230
+ },
3231
+ {
3232
+ name: 'migrationBaseAmount';
3233
+ type: 'u64';
3234
+ },
3235
+ {
3236
+ name: 'sqrtStartPrice';
3237
+ type: 'u128';
3238
+ },
3239
+ {
3240
+ name: 'lockedVesting';
3241
+ type: {
3242
+ defined: {
3243
+ name: 'lockedVestingParams';
3244
+ };
3245
+ };
3246
+ },
3247
+ {
3248
+ name: 'migrationFeeOption';
3249
+ type: 'u8';
3250
+ },
3251
+ {
3252
+ name: 'fixedTokenSupplyFlag';
3253
+ type: 'u8';
3254
+ },
3255
+ {
3256
+ name: 'preMigrationTokenSupply';
3257
+ type: 'u64';
3258
+ },
3259
+ {
3260
+ name: 'postMigrationTokenSupply';
3261
+ type: 'u64';
3262
+ },
3263
+ {
3264
+ name: 'curve';
3265
+ type: {
3266
+ vec: {
3267
+ defined: {
3268
+ name: 'liquidityDistributionParameters';
3269
+ };
3270
+ };
3271
+ };
3272
+ }
3273
+ ];
3274
+ };
3275
+ },
3276
+ {
3277
+ name: 'evtCreateConfigV2';
3278
+ type: {
3279
+ kind: 'struct';
3280
+ fields: [
3281
+ {
3282
+ name: 'config';
3283
+ type: 'pubkey';
3284
+ },
3285
+ {
3286
+ name: 'quoteMint';
3287
+ type: 'pubkey';
3288
+ },
3289
+ {
3290
+ name: 'feeClaimer';
3291
+ type: 'pubkey';
3292
+ },
3293
+ {
3294
+ name: 'leftoverReceiver';
3295
+ type: 'pubkey';
3296
+ },
3297
+ {
3298
+ name: 'configParameters';
3299
+ type: {
3300
+ defined: {
3301
+ name: 'configParameters';
3302
+ };
3303
+ };
3304
+ }
3305
+ ];
3306
+ };
3307
+ },
3308
+ {
3309
+ name: 'evtCreateDammV2MigrationMetadata';
3310
+ type: {
3311
+ kind: 'struct';
3312
+ fields: [
3313
+ {
3314
+ name: 'virtualPool';
3315
+ type: 'pubkey';
3316
+ }
3317
+ ];
3318
+ };
3319
+ },
3320
+ {
3321
+ name: 'evtCreateMeteoraMigrationMetadata';
3322
+ type: {
3323
+ kind: 'struct';
3324
+ fields: [
3325
+ {
3326
+ name: 'virtualPool';
3327
+ type: 'pubkey';
3328
+ }
3329
+ ];
3330
+ };
3331
+ },
3332
+ {
3333
+ name: 'evtCreatorWithdrawSurplus';
3334
+ type: {
3335
+ kind: 'struct';
3336
+ fields: [
3337
+ {
3338
+ name: 'pool';
3339
+ type: 'pubkey';
3340
+ },
3341
+ {
3342
+ name: 'surplusAmount';
3343
+ type: 'u64';
3344
+ }
3345
+ ];
3346
+ };
3347
+ },
3348
+ {
3349
+ name: 'evtCurveComplete';
3350
+ type: {
3351
+ kind: 'struct';
3352
+ fields: [
3353
+ {
3354
+ name: 'pool';
3355
+ type: 'pubkey';
3356
+ },
3357
+ {
3358
+ name: 'config';
3359
+ type: 'pubkey';
3360
+ },
3361
+ {
3362
+ name: 'baseReserve';
3363
+ type: 'u64';
3364
+ },
3365
+ {
3366
+ name: 'quoteReserve';
3367
+ type: 'u64';
3368
+ }
3369
+ ];
3370
+ };
3371
+ },
3372
+ {
3373
+ name: 'evtInitializePool';
3374
+ type: {
3375
+ kind: 'struct';
3376
+ fields: [
3377
+ {
3378
+ name: 'pool';
3379
+ type: 'pubkey';
3380
+ },
3381
+ {
3382
+ name: 'config';
3383
+ type: 'pubkey';
3384
+ },
3385
+ {
3386
+ name: 'creator';
3387
+ type: 'pubkey';
3388
+ },
3389
+ {
3390
+ name: 'baseMint';
3391
+ type: 'pubkey';
3392
+ },
3393
+ {
3394
+ name: 'poolType';
3395
+ type: 'u8';
3396
+ },
3397
+ {
3398
+ name: 'activationPoint';
3399
+ type: 'u64';
3400
+ }
3401
+ ];
3402
+ };
3403
+ },
3404
+ {
3405
+ name: 'evtPartnerMetadata';
3406
+ docs: ['Create partner metadata'];
3407
+ type: {
3408
+ kind: 'struct';
3409
+ fields: [
3410
+ {
3411
+ name: 'partnerMetadata';
3412
+ type: 'pubkey';
3413
+ },
3414
+ {
3415
+ name: 'feeClaimer';
3416
+ type: 'pubkey';
3417
+ }
3418
+ ];
3419
+ };
3420
+ },
3421
+ {
3422
+ name: 'evtPartnerWithdrawMigrationFee';
3423
+ type: {
3424
+ kind: 'struct';
3425
+ fields: [
3426
+ {
3427
+ name: 'pool';
3428
+ type: 'pubkey';
3429
+ },
3430
+ {
3431
+ name: 'fee';
3432
+ type: 'u64';
3433
+ }
3434
+ ];
3435
+ };
3436
+ },
3437
+ {
3438
+ name: 'evtPartnerWithdrawSurplus';
3439
+ type: {
3440
+ kind: 'struct';
3441
+ fields: [
3442
+ {
3443
+ name: 'pool';
3444
+ type: 'pubkey';
3445
+ },
3446
+ {
3447
+ name: 'surplusAmount';
3448
+ type: 'u64';
3449
+ }
3450
+ ];
3451
+ };
3452
+ },
3453
+ {
3454
+ name: 'evtProtocolWithdrawSurplus';
3455
+ type: {
3456
+ kind: 'struct';
3457
+ fields: [
3458
+ {
3459
+ name: 'pool';
3460
+ type: 'pubkey';
3461
+ },
3462
+ {
3463
+ name: 'surplusAmount';
3464
+ type: 'u64';
3465
+ }
3466
+ ];
3467
+ };
3468
+ },
3469
+ {
3470
+ name: 'evtSwap';
3471
+ type: {
3472
+ kind: 'struct';
3473
+ fields: [
3474
+ {
3475
+ name: 'pool';
3476
+ type: 'pubkey';
3477
+ },
3478
+ {
3479
+ name: 'config';
3480
+ type: 'pubkey';
3481
+ },
3482
+ {
3483
+ name: 'tradeDirection';
3484
+ type: 'u8';
3485
+ },
3486
+ {
3487
+ name: 'hasReferral';
3488
+ type: 'bool';
3489
+ },
3490
+ {
3491
+ name: 'params';
3492
+ type: {
3493
+ defined: {
3494
+ name: 'swapParameters';
3495
+ };
3496
+ };
3497
+ },
3498
+ {
3499
+ name: 'swapResult';
3500
+ type: {
3501
+ defined: {
3502
+ name: 'swapResult';
3503
+ };
3504
+ };
3505
+ },
3506
+ {
3507
+ name: 'amountIn';
3508
+ type: 'u64';
3509
+ },
3510
+ {
3511
+ name: 'currentTimestamp';
3512
+ type: 'u64';
3513
+ }
3514
+ ];
3515
+ };
3516
+ },
3517
+ {
3518
+ name: 'evtUpdatePoolCreator';
3519
+ type: {
3520
+ kind: 'struct';
3521
+ fields: [
3522
+ {
3523
+ name: 'pool';
3524
+ type: 'pubkey';
3525
+ },
3526
+ {
3527
+ name: 'creator';
3528
+ type: 'pubkey';
3529
+ },
3530
+ {
3531
+ name: 'newCreator';
3532
+ type: 'pubkey';
3533
+ }
3534
+ ];
3535
+ };
3536
+ },
3537
+ {
3538
+ name: 'evtVirtualPoolMetadata';
3539
+ docs: ['Create virtual pool metadata'];
3540
+ type: {
3541
+ kind: 'struct';
3542
+ fields: [
3543
+ {
3544
+ name: 'virtualPoolMetadata';
3545
+ type: 'pubkey';
3546
+ },
3547
+ {
3548
+ name: 'virtualPool';
3549
+ type: 'pubkey';
3550
+ }
3551
+ ];
3552
+ };
3553
+ },
3554
+ {
3555
+ name: 'evtWithdrawLeftover';
3556
+ type: {
3557
+ kind: 'struct';
3558
+ fields: [
3559
+ {
3560
+ name: 'pool';
3561
+ type: 'pubkey';
3562
+ },
3563
+ {
3564
+ name: 'leftoverReceiver';
3565
+ type: 'pubkey';
3566
+ },
3567
+ {
3568
+ name: 'leftoverAmount';
3569
+ type: 'u64';
3570
+ }
3571
+ ];
3572
+ };
3573
+ },
3574
+ {
3575
+ name: 'evtWithdrawMigrationFee';
3576
+ type: {
3577
+ kind: 'struct';
3578
+ fields: [
3579
+ {
3580
+ name: 'pool';
3581
+ type: 'pubkey';
3582
+ },
3583
+ {
3584
+ name: 'fee';
3585
+ type: 'u64';
3586
+ },
3587
+ {
3588
+ name: 'flag';
3589
+ type: 'u8';
3590
+ }
3591
+ ];
3592
+ };
3593
+ },
3594
+ {
3595
+ name: 'initializePoolParameters';
3596
+ type: {
3597
+ kind: 'struct';
3598
+ fields: [
3599
+ {
3600
+ name: 'name';
3601
+ type: 'string';
3602
+ },
3603
+ {
3604
+ name: 'symbol';
3605
+ type: 'string';
3606
+ },
3607
+ {
3608
+ name: 'uri';
3609
+ type: 'string';
3610
+ }
3611
+ ];
3612
+ };
3613
+ },
3614
+ {
3615
+ name: 'liquidityDistributionConfig';
3616
+ serialization: 'bytemuck';
3617
+ repr: {
3618
+ kind: 'c';
3619
+ };
3620
+ type: {
3621
+ kind: 'struct';
3622
+ fields: [
3623
+ {
3624
+ name: 'sqrtPrice';
3625
+ type: 'u128';
3626
+ },
3627
+ {
3628
+ name: 'liquidity';
3629
+ type: 'u128';
3630
+ }
3631
+ ];
3632
+ };
3633
+ },
3634
+ {
3635
+ name: 'liquidityDistributionParameters';
3636
+ type: {
3637
+ kind: 'struct';
3638
+ fields: [
3639
+ {
3640
+ name: 'sqrtPrice';
3641
+ type: 'u128';
3642
+ },
3643
+ {
3644
+ name: 'liquidity';
3645
+ type: 'u128';
3646
+ }
3647
+ ];
3648
+ };
3649
+ },
3650
+ {
3651
+ name: 'lockEscrow';
3652
+ docs: ['State of lock escrow account'];
3653
+ type: {
3654
+ kind: 'struct';
3655
+ fields: [
3656
+ {
3657
+ name: 'pool';
3658
+ type: 'pubkey';
3659
+ },
3660
+ {
3661
+ name: 'owner';
3662
+ type: 'pubkey';
3663
+ },
3664
+ {
3665
+ name: 'escrowVault';
3666
+ type: 'pubkey';
3667
+ },
3668
+ {
3669
+ name: 'bump';
3670
+ type: 'u8';
3671
+ },
3672
+ {
3673
+ name: 'totalLockedAmount';
3674
+ type: 'u64';
3675
+ },
3676
+ {
3677
+ name: 'lpPerToken';
3678
+ type: 'u128';
3679
+ },
3680
+ {
3681
+ name: 'unclaimedFeePending';
3682
+ type: 'u64';
3683
+ },
3684
+ {
3685
+ name: 'aFee';
3686
+ type: 'u64';
3687
+ },
3688
+ {
3689
+ name: 'bFee';
3690
+ type: 'u64';
3691
+ }
3692
+ ];
3693
+ };
3694
+ },
3695
+ {
3696
+ name: 'lockedVestingConfig';
3697
+ serialization: 'bytemuck';
3698
+ repr: {
3699
+ kind: 'c';
3700
+ };
3701
+ type: {
3702
+ kind: 'struct';
3703
+ fields: [
3704
+ {
3705
+ name: 'amountPerPeriod';
3706
+ type: 'u64';
3707
+ },
3708
+ {
3709
+ name: 'cliffDurationFromMigrationTime';
3710
+ type: 'u64';
3711
+ },
3712
+ {
3713
+ name: 'frequency';
3714
+ type: 'u64';
3715
+ },
3716
+ {
3717
+ name: 'numberOfPeriod';
3718
+ type: 'u64';
3719
+ },
3720
+ {
3721
+ name: 'cliffUnlockAmount';
3722
+ type: 'u64';
3723
+ },
3724
+ {
3725
+ name: 'padding';
3726
+ type: 'u64';
3727
+ }
3728
+ ];
3729
+ };
3730
+ },
3731
+ {
3732
+ name: 'lockedVestingParams';
3733
+ type: {
3734
+ kind: 'struct';
3735
+ fields: [
3736
+ {
3737
+ name: 'amountPerPeriod';
3738
+ type: 'u64';
3739
+ },
3740
+ {
3741
+ name: 'cliffDurationFromMigrationTime';
3742
+ type: 'u64';
3743
+ },
3744
+ {
3745
+ name: 'frequency';
3746
+ type: 'u64';
3747
+ },
3748
+ {
3749
+ name: 'numberOfPeriod';
3750
+ type: 'u64';
3751
+ },
3752
+ {
3753
+ name: 'cliffUnlockAmount';
3754
+ type: 'u64';
3755
+ }
3756
+ ];
3757
+ };
3758
+ },
3759
+ {
3760
+ name: 'meteoraDammMigrationMetadata';
3761
+ serialization: 'bytemuck';
3762
+ repr: {
3763
+ kind: 'c';
3764
+ };
3765
+ type: {
3766
+ kind: 'struct';
3767
+ fields: [
3768
+ {
3769
+ name: 'virtualPool';
3770
+ docs: ['pool'];
3771
+ type: 'pubkey';
3772
+ },
3773
+ {
3774
+ name: 'padding0';
3775
+ docs: ['!!! BE CAREFUL to use tomestone field, previous is pool creator'];
3776
+ type: {
3777
+ array: ['u8', 32];
3778
+ };
3779
+ },
3780
+ {
3781
+ name: 'partner';
3782
+ docs: ['partner'];
3783
+ type: 'pubkey';
3784
+ },
3785
+ {
3786
+ name: 'lpMint';
3787
+ docs: ['lp mint'];
3788
+ type: 'pubkey';
3789
+ },
3790
+ {
3791
+ name: 'partnerLockedLp';
3792
+ docs: ['partner locked lp'];
3793
+ type: 'u64';
3794
+ },
3795
+ {
3796
+ name: 'partnerLp';
3797
+ docs: ['partner lp'];
3798
+ type: 'u64';
3799
+ },
3800
+ {
3801
+ name: 'creatorLockedLp';
3802
+ docs: ['creator locked lp'];
3803
+ type: 'u64';
3804
+ },
3805
+ {
3806
+ name: 'creatorLp';
3807
+ docs: ['creator lp'];
3808
+ type: 'u64';
3809
+ },
3810
+ {
3811
+ name: 'padding0';
3812
+ docs: ['padding'];
3813
+ type: 'u8';
3814
+ },
3815
+ {
3816
+ name: 'creatorLockedStatus';
3817
+ docs: ['flag to check whether lp is locked for creator'];
3818
+ type: 'u8';
3819
+ },
3820
+ {
3821
+ name: 'partnerLockedStatus';
3822
+ docs: ['flag to check whether lp is locked for partner'];
3823
+ type: 'u8';
3824
+ },
3825
+ {
3826
+ name: 'creatorClaimStatus';
3827
+ docs: ['flag to check whether creator has claimed lp token'];
3828
+ type: 'u8';
3829
+ },
3830
+ {
3831
+ name: 'partnerClaimStatus';
3832
+ docs: ['flag to check whether partner has claimed lp token'];
3833
+ type: 'u8';
3834
+ },
3835
+ {
3836
+ name: 'padding';
3837
+ docs: ['Reserve'];
3838
+ type: {
3839
+ array: ['u8', 107];
3840
+ };
3841
+ }
3842
+ ];
3843
+ };
3844
+ },
3845
+ {
3846
+ name: 'meteoraDammV2Metadata';
3847
+ serialization: 'bytemuck';
3848
+ repr: {
3849
+ kind: 'c';
3850
+ };
3851
+ type: {
3852
+ kind: 'struct';
3853
+ fields: [
3854
+ {
3855
+ name: 'virtualPool';
3856
+ docs: ['pool'];
3857
+ type: 'pubkey';
3858
+ },
3859
+ {
3860
+ name: 'padding0';
3861
+ docs: ['!!! BE CAREFUL to use tomestone field, previous is pool creator'];
3862
+ type: {
3863
+ array: ['u8', 32];
3864
+ };
3865
+ },
3866
+ {
3867
+ name: 'partner';
3868
+ docs: ['partner'];
3869
+ type: 'pubkey';
3870
+ },
3871
+ {
3872
+ name: 'padding';
3873
+ docs: ['Reserve'];
3874
+ type: {
3875
+ array: ['u8', 126];
3876
+ };
3877
+ }
3878
+ ];
3879
+ };
3880
+ },
3881
+ {
3882
+ name: 'migratedPoolFee';
3883
+ type: {
3884
+ kind: 'struct';
3885
+ fields: [
3886
+ {
3887
+ name: 'collectFeeMode';
3888
+ type: 'u8';
3889
+ },
3890
+ {
3891
+ name: 'dynamicFee';
3892
+ type: 'u8';
3893
+ },
3894
+ {
3895
+ name: 'poolFeeBps';
3896
+ type: 'u16';
3897
+ }
3898
+ ];
3899
+ };
3900
+ },
3901
+ {
3902
+ name: 'migrationFee';
3903
+ type: {
3904
+ kind: 'struct';
3905
+ fields: [
3906
+ {
3907
+ name: 'feePercentage';
3908
+ type: 'u8';
3909
+ },
3910
+ {
3911
+ name: 'creatorFeePercentage';
3912
+ type: 'u8';
3913
+ }
3914
+ ];
3915
+ };
3916
+ },
3917
+ {
3918
+ name: 'partnerMetadata';
3919
+ docs: ['Metadata for a partner.'];
3920
+ type: {
3921
+ kind: 'struct';
3922
+ fields: [
3923
+ {
3924
+ name: 'feeClaimer';
3925
+ docs: ['fee claimer'];
3926
+ type: 'pubkey';
3927
+ },
3928
+ {
3929
+ name: 'padding';
3930
+ docs: ['padding for future use'];
3931
+ type: {
3932
+ array: ['u128', 6];
3933
+ };
3934
+ },
3935
+ {
3936
+ name: 'name';
3937
+ docs: ['Name of partner.'];
3938
+ type: 'string';
3939
+ },
3940
+ {
3941
+ name: 'website';
3942
+ docs: ['Website of partner.'];
3943
+ type: 'string';
3944
+ },
3945
+ {
3946
+ name: 'logo';
3947
+ docs: ['Logo of partner'];
3948
+ type: 'string';
3949
+ }
3950
+ ];
3951
+ };
3952
+ },
3953
+ {
3954
+ name: 'poolConfig';
3955
+ serialization: 'bytemuck';
3956
+ repr: {
3957
+ kind: 'c';
3958
+ };
3959
+ type: {
3960
+ kind: 'struct';
3961
+ fields: [
3962
+ {
3963
+ name: 'quoteMint';
3964
+ docs: ['quote mint'];
3965
+ type: 'pubkey';
3966
+ },
3967
+ {
3968
+ name: 'feeClaimer';
3969
+ docs: ['Address to get the fee'];
3970
+ type: 'pubkey';
3971
+ },
3972
+ {
3973
+ name: 'leftoverReceiver';
3974
+ docs: ['Address to receive extra base token after migration, in case token is fixed supply'];
3975
+ type: 'pubkey';
3976
+ },
3977
+ {
3978
+ name: 'poolFees';
3979
+ docs: ['Pool fee'];
3980
+ type: {
3981
+ defined: {
3982
+ name: 'poolFeesConfig';
3983
+ };
3984
+ };
3985
+ },
3986
+ {
3987
+ name: 'collectFeeMode';
3988
+ docs: ['Collect fee mode'];
3989
+ type: 'u8';
3990
+ },
3991
+ {
3992
+ name: 'migrationOption';
3993
+ docs: ['migration option'];
3994
+ type: 'u8';
3995
+ },
3996
+ {
3997
+ name: 'activationType';
3998
+ docs: ['whether mode slot or timestamp'];
3999
+ type: 'u8';
4000
+ },
4001
+ {
4002
+ name: 'tokenDecimal';
4003
+ docs: ['token decimals'];
4004
+ type: 'u8';
4005
+ },
4006
+ {
4007
+ name: 'version';
4008
+ docs: ['version'];
4009
+ type: 'u8';
4010
+ },
4011
+ {
4012
+ name: 'tokenType';
4013
+ docs: ['token type of base token'];
4014
+ type: 'u8';
4015
+ },
4016
+ {
4017
+ name: 'quoteTokenFlag';
4018
+ docs: ['quote token flag'];
4019
+ type: 'u8';
4020
+ },
4021
+ {
4022
+ name: 'partnerLockedLpPercentage';
4023
+ docs: ['partner locked lp percentage'];
4024
+ type: 'u8';
4025
+ },
4026
+ {
4027
+ name: 'partnerLpPercentage';
4028
+ docs: ['partner lp percentage'];
4029
+ type: 'u8';
4030
+ },
4031
+ {
4032
+ name: 'creatorLockedLpPercentage';
4033
+ docs: ['creator post migration fee percentage'];
4034
+ type: 'u8';
4035
+ },
4036
+ {
4037
+ name: 'creatorLpPercentage';
4038
+ docs: ['creator lp percentage'];
4039
+ type: 'u8';
4040
+ },
4041
+ {
4042
+ name: 'migrationFeeOption';
4043
+ docs: ['migration fee option'];
4044
+ type: 'u8';
4045
+ },
4046
+ {
4047
+ name: 'fixedTokenSupplyFlag';
4048
+ docs: ['flag to indicate whether token is dynamic supply (0) or fixed supply (1)'];
4049
+ type: 'u8';
4050
+ },
4051
+ {
4052
+ name: 'creatorTradingFeePercentage';
4053
+ docs: ['creator trading fee percentage'];
4054
+ type: 'u8';
4055
+ },
4056
+ {
4057
+ name: 'tokenUpdateAuthority';
4058
+ docs: ['token update authority'];
4059
+ type: 'u8';
4060
+ },
4061
+ {
4062
+ name: 'migrationFeePercentage';
4063
+ docs: ['migration fee percentage'];
4064
+ type: 'u8';
4065
+ },
4066
+ {
4067
+ name: 'creatorMigrationFeePercentage';
4068
+ docs: ['creator migration fee percentage'];
4069
+ type: 'u8';
4070
+ },
4071
+ {
4072
+ name: 'padding0';
4073
+ docs: ['padding 0'];
4074
+ type: {
4075
+ array: ['u8', 7];
4076
+ };
4077
+ },
4078
+ {
4079
+ name: 'swapBaseAmount';
4080
+ docs: ['swap base amount'];
4081
+ type: 'u64';
4082
+ },
4083
+ {
4084
+ name: 'migrationQuoteThreshold';
4085
+ docs: ['migration quote threshold (in quote token)'];
4086
+ type: 'u64';
4087
+ },
4088
+ {
4089
+ name: 'migrationBaseThreshold';
4090
+ docs: ['migration base threshold (in base token)'];
4091
+ type: 'u64';
4092
+ },
4093
+ {
4094
+ name: 'migrationSqrtPrice';
4095
+ docs: ['migration sqrt price'];
4096
+ type: 'u128';
4097
+ },
4098
+ {
4099
+ name: 'lockedVestingConfig';
4100
+ docs: ['locked vesting config'];
4101
+ type: {
4102
+ defined: {
4103
+ name: 'lockedVestingConfig';
4104
+ };
4105
+ };
4106
+ },
4107
+ {
4108
+ name: 'preMigrationTokenSupply';
4109
+ docs: ['pre migration token supply'];
4110
+ type: 'u64';
4111
+ },
4112
+ {
4113
+ name: 'postMigrationTokenSupply';
4114
+ docs: ['post migration token supply'];
4115
+ type: 'u64';
4116
+ },
4117
+ {
4118
+ name: 'migratedCollectFeeMode';
4119
+ docs: ['migrated pool collect fee mode'];
4120
+ type: 'u8';
4121
+ },
4122
+ {
4123
+ name: 'migratedDynamicFee';
4124
+ docs: ['migrated dynamic fee option.'];
4125
+ type: 'u8';
4126
+ },
4127
+ {
4128
+ name: 'migratedPoolFeeBps';
4129
+ docs: ['migrated pool fee in bps'];
4130
+ type: 'u16';
4131
+ },
4132
+ {
4133
+ name: 'padding1';
4134
+ docs: ['padding 1'];
4135
+ type: {
4136
+ array: ['u8', 12];
4137
+ };
4138
+ },
4139
+ {
4140
+ name: 'padding2';
4141
+ docs: ['padding 2'];
4142
+ type: 'u128';
4143
+ },
4144
+ {
4145
+ name: 'sqrtStartPrice';
4146
+ docs: ['minimum price'];
4147
+ type: 'u128';
4148
+ },
4149
+ {
4150
+ name: 'curve';
4151
+ docs: ['curve, only use 20 point firstly, we can extend that latter'];
4152
+ type: {
4153
+ array: [
4154
+ {
4155
+ defined: {
4156
+ name: 'liquidityDistributionConfig';
4157
+ };
4158
+ },
4159
+ 20
4160
+ ];
4161
+ };
4162
+ }
4163
+ ];
4164
+ };
4165
+ },
4166
+ {
4167
+ name: 'poolFeeParameters';
4168
+ docs: ['Information regarding fee charges'];
4169
+ type: {
4170
+ kind: 'struct';
4171
+ fields: [
4172
+ {
4173
+ name: 'baseFee';
4174
+ docs: ['Base fee'];
4175
+ type: {
4176
+ defined: {
4177
+ name: 'baseFeeParameters';
4178
+ };
4179
+ };
4180
+ },
4181
+ {
4182
+ name: 'dynamicFee';
4183
+ docs: ['dynamic fee'];
4184
+ type: {
4185
+ option: {
4186
+ defined: {
4187
+ name: 'dynamicFeeParameters';
4188
+ };
4189
+ };
4190
+ };
4191
+ }
4192
+ ];
4193
+ };
4194
+ },
4195
+ {
4196
+ name: 'poolFees';
4197
+ docs: ['Information regarding fee charges'];
4198
+ type: {
4199
+ kind: 'struct';
4200
+ fields: [
4201
+ {
4202
+ name: 'tradeFeeNumerator';
4203
+ type: 'u64';
4204
+ },
4205
+ {
4206
+ name: 'tradeFeeDenominator';
4207
+ type: 'u64';
4208
+ },
4209
+ {
4210
+ name: 'protocolTradeFeeNumerator';
4211
+ type: 'u64';
4212
+ },
4213
+ {
4214
+ name: 'protocolTradeFeeDenominator';
4215
+ type: 'u64';
4216
+ }
4217
+ ];
4218
+ };
4219
+ },
4220
+ {
4221
+ name: 'poolFeesConfig';
4222
+ serialization: 'bytemuck';
4223
+ repr: {
4224
+ kind: 'c';
4225
+ };
4226
+ type: {
4227
+ kind: 'struct';
4228
+ fields: [
4229
+ {
4230
+ name: 'baseFee';
4231
+ type: {
4232
+ defined: {
4233
+ name: 'baseFeeConfig';
4234
+ };
4235
+ };
4236
+ },
4237
+ {
4238
+ name: 'dynamicFee';
4239
+ type: {
4240
+ defined: {
4241
+ name: 'dynamicFeeConfig';
4242
+ };
4243
+ };
4244
+ },
4245
+ {
4246
+ name: 'padding0';
4247
+ type: {
4248
+ array: ['u64', 5];
4249
+ };
4250
+ },
4251
+ {
4252
+ name: 'padding1';
4253
+ type: {
4254
+ array: ['u8', 6];
4255
+ };
4256
+ },
4257
+ {
4258
+ name: 'protocolFeePercent';
4259
+ type: 'u8';
4260
+ },
4261
+ {
4262
+ name: 'referralFeePercent';
4263
+ type: 'u8';
4264
+ }
4265
+ ];
4266
+ };
4267
+ },
4268
+ {
4269
+ name: 'poolMetrics';
4270
+ serialization: 'bytemuck';
4271
+ repr: {
4272
+ kind: 'c';
4273
+ };
4274
+ type: {
4275
+ kind: 'struct';
4276
+ fields: [
4277
+ {
4278
+ name: 'totalProtocolBaseFee';
4279
+ type: 'u64';
4280
+ },
4281
+ {
4282
+ name: 'totalProtocolQuoteFee';
4283
+ type: 'u64';
4284
+ },
4285
+ {
4286
+ name: 'totalTradingBaseFee';
4287
+ type: 'u64';
4288
+ },
4289
+ {
4290
+ name: 'totalTradingQuoteFee';
4291
+ type: 'u64';
4292
+ }
4293
+ ];
4294
+ };
4295
+ },
4296
+ {
4297
+ name: 'swapParameters';
4298
+ type: {
4299
+ kind: 'struct';
4300
+ fields: [
4301
+ {
4302
+ name: 'amountIn';
4303
+ type: 'u64';
4304
+ },
4305
+ {
4306
+ name: 'minimumAmountOut';
4307
+ type: 'u64';
4308
+ }
4309
+ ];
4310
+ };
4311
+ },
4312
+ {
4313
+ name: 'swapResult';
4314
+ docs: ['Encodes all results of swapping'];
4315
+ type: {
4316
+ kind: 'struct';
4317
+ fields: [
4318
+ {
4319
+ name: 'actualInputAmount';
4320
+ type: 'u64';
4321
+ },
4322
+ {
4323
+ name: 'outputAmount';
4324
+ type: 'u64';
4325
+ },
4326
+ {
4327
+ name: 'nextSqrtPrice';
4328
+ type: 'u128';
4329
+ },
4330
+ {
4331
+ name: 'tradingFee';
4332
+ type: 'u64';
4333
+ },
4334
+ {
4335
+ name: 'protocolFee';
4336
+ type: 'u64';
4337
+ },
4338
+ {
4339
+ name: 'referralFee';
4340
+ type: 'u64';
4341
+ }
4342
+ ];
4343
+ };
4344
+ },
4345
+ {
4346
+ name: 'tokenSupplyParams';
4347
+ type: {
4348
+ kind: 'struct';
4349
+ fields: [
4350
+ {
4351
+ name: 'preMigrationTokenSupply';
4352
+ docs: ['pre migration token supply'];
4353
+ type: 'u64';
4354
+ },
4355
+ {
4356
+ name: 'postMigrationTokenSupply';
4357
+ docs: [
4358
+ 'post migration token supply',
4359
+ 'becase DBC allow user to swap over the migration quote threshold, so in extreme case user may swap more than allowed buffer on curve',
4360
+ 'that result the total supply in post migration may be increased a bit (between pre_migration_token_supply and post_migration_token_supply)'
4361
+ ];
4362
+ type: 'u64';
4363
+ }
4364
+ ];
4365
+ };
4366
+ },
4367
+ {
4368
+ name: 'virtualPool';
4369
+ serialization: 'bytemuck';
4370
+ repr: {
4371
+ kind: 'c';
4372
+ };
4373
+ type: {
4374
+ kind: 'struct';
4375
+ fields: [
4376
+ {
4377
+ name: 'volatilityTracker';
4378
+ docs: ['volatility tracker'];
4379
+ type: {
4380
+ defined: {
4381
+ name: 'volatilityTracker';
4382
+ };
4383
+ };
4384
+ },
4385
+ {
4386
+ name: 'config';
4387
+ docs: ['config key'];
4388
+ type: 'pubkey';
4389
+ },
4390
+ {
4391
+ name: 'creator';
4392
+ docs: ['creator'];
4393
+ type: 'pubkey';
4394
+ },
4395
+ {
4396
+ name: 'baseMint';
4397
+ docs: ['base mint'];
4398
+ type: 'pubkey';
4399
+ },
4400
+ {
4401
+ name: 'baseVault';
4402
+ docs: ['base vault'];
4403
+ type: 'pubkey';
4404
+ },
4405
+ {
4406
+ name: 'quoteVault';
4407
+ docs: ['quote vault'];
4408
+ type: 'pubkey';
4409
+ },
4410
+ {
4411
+ name: 'baseReserve';
4412
+ docs: ['base reserve'];
4413
+ type: 'u64';
4414
+ },
4415
+ {
4416
+ name: 'quoteReserve';
4417
+ docs: ['quote reserve'];
4418
+ type: 'u64';
4419
+ },
4420
+ {
4421
+ name: 'protocolBaseFee';
4422
+ docs: ['protocol base fee'];
4423
+ type: 'u64';
4424
+ },
4425
+ {
4426
+ name: 'protocolQuoteFee';
4427
+ docs: ['protocol quote fee'];
4428
+ type: 'u64';
4429
+ },
4430
+ {
4431
+ name: 'partnerBaseFee';
4432
+ docs: ['partner base fee'];
4433
+ type: 'u64';
4434
+ },
4435
+ {
4436
+ name: 'partnerQuoteFee';
4437
+ docs: ['trading quote fee'];
4438
+ type: 'u64';
4439
+ },
4440
+ {
4441
+ name: 'sqrtPrice';
4442
+ docs: ['current price'];
4443
+ type: 'u128';
4444
+ },
4445
+ {
4446
+ name: 'activationPoint';
4447
+ docs: ['Activation point'];
4448
+ type: 'u64';
4449
+ },
4450
+ {
4451
+ name: 'poolType';
4452
+ docs: ['pool type, spl token or token2022'];
4453
+ type: 'u8';
4454
+ },
4455
+ {
4456
+ name: 'isMigrated';
4457
+ docs: ['is migrated'];
4458
+ type: 'u8';
4459
+ },
4460
+ {
4461
+ name: 'isPartnerWithdrawSurplus';
4462
+ docs: ['is partner withdraw surplus'];
4463
+ type: 'u8';
4464
+ },
4465
+ {
4466
+ name: 'isProtocolWithdrawSurplus';
4467
+ docs: ['is protocol withdraw surplus'];
4468
+ type: 'u8';
4469
+ },
4470
+ {
4471
+ name: 'migrationProgress';
4472
+ docs: ['migration progress'];
4473
+ type: 'u8';
4474
+ },
4475
+ {
4476
+ name: 'isWithdrawLeftover';
4477
+ docs: ['is withdraw leftover'];
4478
+ type: 'u8';
4479
+ },
4480
+ {
4481
+ name: 'isCreatorWithdrawSurplus';
4482
+ docs: ['is creator withdraw surplus'];
4483
+ type: 'u8';
4484
+ },
4485
+ {
4486
+ name: 'migrationFeeWithdrawStatus';
4487
+ docs: ['migration fee withdraw status, first bit is for partner, second bit is for creator'];
4488
+ type: 'u8';
4489
+ },
4490
+ {
4491
+ name: 'metrics';
4492
+ docs: ['pool metrics'];
4493
+ type: {
4494
+ defined: {
4495
+ name: 'poolMetrics';
4496
+ };
4497
+ };
4498
+ },
4499
+ {
4500
+ name: 'finishCurveTimestamp';
4501
+ docs: ['The time curve is finished'];
4502
+ type: 'u64';
4503
+ },
4504
+ {
4505
+ name: 'creatorBaseFee';
4506
+ docs: ['creator base fee'];
4507
+ type: 'u64';
4508
+ },
4509
+ {
4510
+ name: 'creatorQuoteFee';
4511
+ docs: ['creator quote fee'];
4512
+ type: 'u64';
4513
+ },
4514
+ {
4515
+ name: 'padding1';
4516
+ docs: ['Padding for further use'];
4517
+ type: {
4518
+ array: ['u64', 7];
4519
+ };
4520
+ }
4521
+ ];
4522
+ };
4523
+ },
4524
+ {
4525
+ name: 'virtualPoolMetadata';
4526
+ docs: ['Metadata for a virtual pool.'];
4527
+ type: {
4528
+ kind: 'struct';
4529
+ fields: [
4530
+ {
4531
+ name: 'virtualPool';
4532
+ docs: ['virtual pool'];
4533
+ type: 'pubkey';
4534
+ },
4535
+ {
4536
+ name: 'padding';
4537
+ docs: ['padding for future use'];
4538
+ type: {
4539
+ array: ['u128', 6];
4540
+ };
4541
+ },
4542
+ {
4543
+ name: 'name';
4544
+ docs: ['Name of project.'];
4545
+ type: 'string';
4546
+ },
4547
+ {
4548
+ name: 'website';
4549
+ docs: ['Website of project.'];
4550
+ type: 'string';
4551
+ },
4552
+ {
4553
+ name: 'logo';
4554
+ docs: ['Logo of project'];
4555
+ type: 'string';
4556
+ }
4557
+ ];
4558
+ };
4559
+ },
4560
+ {
4561
+ name: 'volatilityTracker';
4562
+ serialization: 'bytemuck';
4563
+ repr: {
4564
+ kind: 'c';
4565
+ };
4566
+ type: {
4567
+ kind: 'struct';
4568
+ fields: [
4569
+ {
4570
+ name: 'lastUpdateTimestamp';
4571
+ type: 'u64';
4572
+ },
4573
+ {
4574
+ name: 'padding';
4575
+ type: {
4576
+ array: ['u8', 8];
4577
+ };
4578
+ },
4579
+ {
4580
+ name: 'sqrtPriceReference';
4581
+ type: 'u128';
4582
+ },
4583
+ {
4584
+ name: 'volatilityAccumulator';
4585
+ type: 'u128';
4586
+ },
4587
+ {
4588
+ name: 'volatilityReference';
4589
+ type: 'u128';
4590
+ }
4591
+ ];
4592
+ };
4593
+ }
4594
+ ];
4595
+ };
4596
+ //# sourceMappingURL=idl.d.ts.map