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