@pump-fun/pump-sdk 1.4.3-devnet.1 → 1.4.4-devnet.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/idl/pump.ts CHANGED
@@ -5,45 +5,177 @@
5
5
  * IDL can be found at `target/idl/pump.json`.
6
6
  */
7
7
  export type Pump = {
8
- address: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P";
9
- metadata: {
10
- name: "pump";
11
- version: "0.1.0";
12
- spec: "0.1.0";
13
- description: "Created with Anchor";
14
- };
15
- instructions: [
16
- {
17
- name: "buy";
18
- docs: ["Buys tokens from a bonding curve."];
19
- discriminator: [102, 6, 61, 18, 1, 218, 235, 234];
20
- accounts: [
21
- {
22
- name: "global";
23
- pda: {
24
- seeds: [
25
- {
26
- kind: "const";
27
- value: [103, 108, 111, 98, 97, 108];
8
+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
9
+ "metadata": {
10
+ "name": "pump",
11
+ "version": "0.1.0",
12
+ "spec": "0.1.0",
13
+ "description": "Created with Anchor"
14
+ },
15
+ "instructions": [
16
+ {
17
+ "name": "adminSetCreator",
18
+ "docs": [
19
+ "Allows Global::admin_set_creator_authority to override the bonding curve creator"
20
+ ],
21
+ "discriminator": [
22
+ 69,
23
+ 25,
24
+ 171,
25
+ 142,
26
+ 57,
27
+ 239,
28
+ 13,
29
+ 4
30
+ ],
31
+ "accounts": [
32
+ {
33
+ "name": "adminSetCreatorAuthority",
34
+ "signer": true,
35
+ "relations": [
36
+ "global"
37
+ ]
38
+ },
39
+ {
40
+ "name": "global",
41
+ "pda": {
42
+ "seeds": [
43
+ {
44
+ "kind": "const",
45
+ "value": [
46
+ 103,
47
+ 108,
48
+ 111,
49
+ 98,
50
+ 97,
51
+ 108
52
+ ]
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ {
58
+ "name": "mint"
59
+ },
60
+ {
61
+ "name": "bondingCurve",
62
+ "writable": true,
63
+ "pda": {
64
+ "seeds": [
65
+ {
66
+ "kind": "const",
67
+ "value": [
68
+ 98,
69
+ 111,
70
+ 110,
71
+ 100,
72
+ 105,
73
+ 110,
74
+ 103,
75
+ 45,
76
+ 99,
77
+ 117,
78
+ 114,
79
+ 118,
80
+ 101
81
+ ]
28
82
  },
29
- ];
30
- };
83
+ {
84
+ "kind": "account",
85
+ "path": "mint"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ {
91
+ "name": "eventAuthority",
92
+ "pda": {
93
+ "seeds": [
94
+ {
95
+ "kind": "const",
96
+ "value": [
97
+ 95,
98
+ 95,
99
+ 101,
100
+ 118,
101
+ 101,
102
+ 110,
103
+ 116,
104
+ 95,
105
+ 97,
106
+ 117,
107
+ 116,
108
+ 104,
109
+ 111,
110
+ 114,
111
+ 105,
112
+ 116,
113
+ 121
114
+ ]
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "name": "program"
121
+ }
122
+ ],
123
+ "args": [
124
+ {
125
+ "name": "creator",
126
+ "type": "pubkey"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "name": "buy",
132
+ "docs": [
133
+ "Buys tokens from a bonding curve."
134
+ ],
135
+ "discriminator": [
136
+ 102,
137
+ 6,
138
+ 61,
139
+ 18,
140
+ 1,
141
+ 218,
142
+ 235,
143
+ 234
144
+ ],
145
+ "accounts": [
146
+ {
147
+ "name": "global",
148
+ "pda": {
149
+ "seeds": [
150
+ {
151
+ "kind": "const",
152
+ "value": [
153
+ 103,
154
+ 108,
155
+ 111,
156
+ 98,
157
+ 97,
158
+ 108
159
+ ]
160
+ }
161
+ ]
162
+ }
31
163
  },
32
164
  {
33
- name: "feeRecipient";
34
- writable: true;
165
+ "name": "feeRecipient",
166
+ "writable": true
35
167
  },
36
168
  {
37
- name: "mint";
169
+ "name": "mint"
38
170
  },
39
171
  {
40
- name: "bondingCurve";
41
- writable: true;
42
- pda: {
43
- seeds: [
172
+ "name": "bondingCurve",
173
+ "writable": true,
174
+ "pda": {
175
+ "seeds": [
44
176
  {
45
- kind: "const";
46
- value: [
177
+ "kind": "const",
178
+ "value": [
47
179
  98,
48
180
  111,
49
181
  110,
@@ -56,28 +188,28 @@ export type Pump = {
56
188
  117,
57
189
  114,
58
190
  118,
59
- 101,
60
- ];
191
+ 101
192
+ ]
61
193
  },
62
194
  {
63
- kind: "account";
64
- path: "mint";
65
- },
66
- ];
67
- };
195
+ "kind": "account",
196
+ "path": "mint"
197
+ }
198
+ ]
199
+ }
68
200
  },
69
201
  {
70
- name: "associatedBondingCurve";
71
- writable: true;
72
- pda: {
73
- seeds: [
202
+ "name": "associatedBondingCurve",
203
+ "writable": true,
204
+ "pda": {
205
+ "seeds": [
74
206
  {
75
- kind: "account";
76
- path: "bondingCurve";
207
+ "kind": "account",
208
+ "path": "bondingCurve"
77
209
  },
78
210
  {
79
- kind: "const";
80
- value: [
211
+ "kind": "const",
212
+ "value": [
81
213
  6,
82
214
  221,
83
215
  246,
@@ -109,17 +241,17 @@ export type Pump = {
109
241
  126,
110
242
  255,
111
243
  0,
112
- 169,
113
- ];
244
+ 169
245
+ ]
114
246
  },
115
247
  {
116
- kind: "account";
117
- path: "mint";
118
- },
119
- ];
120
- program: {
121
- kind: "const";
122
- value: [
248
+ "kind": "account",
249
+ "path": "mint"
250
+ }
251
+ ],
252
+ "program": {
253
+ "kind": "const",
254
+ "value": [
123
255
  140,
124
256
  151,
125
257
  37,
@@ -151,36 +283,36 @@ export type Pump = {
151
283
  219,
152
284
  233,
153
285
  248,
154
- 89,
155
- ];
156
- };
157
- };
286
+ 89
287
+ ]
288
+ }
289
+ }
158
290
  },
159
291
  {
160
- name: "associatedUser";
161
- writable: true;
292
+ "name": "associatedUser",
293
+ "writable": true
162
294
  },
163
295
  {
164
- name: "user";
165
- writable: true;
166
- signer: true;
296
+ "name": "user",
297
+ "writable": true,
298
+ "signer": true
167
299
  },
168
300
  {
169
- name: "systemProgram";
170
- address: "11111111111111111111111111111111";
301
+ "name": "systemProgram",
302
+ "address": "11111111111111111111111111111111"
171
303
  },
172
304
  {
173
- name: "tokenProgram";
174
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
305
+ "name": "tokenProgram",
306
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
175
307
  },
176
308
  {
177
- name: "creatorVault";
178
- writable: true;
179
- pda: {
180
- seeds: [
309
+ "name": "creatorVault",
310
+ "writable": true,
311
+ "pda": {
312
+ "seeds": [
181
313
  {
182
- kind: "const";
183
- value: [
314
+ "kind": "const",
315
+ "value": [
184
316
  99,
185
317
  114,
186
318
  101,
@@ -193,24 +325,24 @@ export type Pump = {
193
325
  97,
194
326
  117,
195
327
  108,
196
- 116,
197
- ];
328
+ 116
329
+ ]
198
330
  },
199
331
  {
200
- kind: "account";
201
- path: "bonding_curve.creator";
202
- account: "bondingCurve";
203
- },
204
- ];
205
- };
332
+ "kind": "account",
333
+ "path": "bonding_curve.creator",
334
+ "account": "bondingCurve"
335
+ }
336
+ ]
337
+ }
206
338
  },
207
339
  {
208
- name: "eventAuthority";
209
- pda: {
210
- seeds: [
340
+ "name": "eventAuthority",
341
+ "pda": {
342
+ "seeds": [
211
343
  {
212
- kind: "const";
213
- value: [
344
+ "kind": "const",
345
+ "value": [
214
346
  95,
215
347
  95,
216
348
  101,
@@ -227,47 +359,56 @@ export type Pump = {
227
359
  114,
228
360
  105,
229
361
  116,
230
- 121,
231
- ];
232
- },
233
- ];
234
- };
235
- },
236
- {
237
- name: "program";
238
- },
239
- ];
240
- args: [
241
- {
242
- name: "amount";
243
- type: "u64";
244
- },
245
- {
246
- name: "maxSolCost";
247
- type: "u64";
248
- },
249
- ];
250
- },
251
- {
252
- name: "collectCreatorFee";
253
- docs: [
254
- "Collects creator_fee from creator_vault to the coin creator account",
255
- ];
256
- discriminator: [20, 22, 86, 123, 198, 28, 219, 132];
257
- accounts: [
258
- {
259
- name: "creator";
260
- writable: true;
261
- signer: true;
262
- },
263
- {
264
- name: "creatorVault";
265
- writable: true;
266
- pda: {
267
- seeds: [
268
- {
269
- kind: "const";
270
- value: [
362
+ 121
363
+ ]
364
+ }
365
+ ]
366
+ }
367
+ },
368
+ {
369
+ "name": "program"
370
+ }
371
+ ],
372
+ "args": [
373
+ {
374
+ "name": "amount",
375
+ "type": "u64"
376
+ },
377
+ {
378
+ "name": "maxSolCost",
379
+ "type": "u64"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "name": "collectCreatorFee",
385
+ "docs": [
386
+ "Collects creator_fee from creator_vault to the coin creator account"
387
+ ],
388
+ "discriminator": [
389
+ 20,
390
+ 22,
391
+ 86,
392
+ 123,
393
+ 198,
394
+ 28,
395
+ 219,
396
+ 132
397
+ ],
398
+ "accounts": [
399
+ {
400
+ "name": "creator",
401
+ "writable": true,
402
+ "signer": true
403
+ },
404
+ {
405
+ "name": "creatorVault",
406
+ "writable": true,
407
+ "pda": {
408
+ "seeds": [
409
+ {
410
+ "kind": "const",
411
+ "value": [
271
412
  99,
272
413
  114,
273
414
  101,
@@ -280,27 +421,27 @@ export type Pump = {
280
421
  97,
281
422
  117,
282
423
  108,
283
- 116,
284
- ];
424
+ 116
425
+ ]
285
426
  },
286
427
  {
287
- kind: "account";
288
- path: "creator";
289
- },
290
- ];
291
- };
428
+ "kind": "account",
429
+ "path": "creator"
430
+ }
431
+ ]
432
+ }
292
433
  },
293
434
  {
294
- name: "systemProgram";
295
- address: "11111111111111111111111111111111";
435
+ "name": "systemProgram",
436
+ "address": "11111111111111111111111111111111"
296
437
  },
297
438
  {
298
- name: "eventAuthority";
299
- pda: {
300
- seeds: [
439
+ "name": "eventAuthority",
440
+ "pda": {
441
+ "seeds": [
301
442
  {
302
- kind: "const";
303
- value: [
443
+ "kind": "const",
444
+ "value": [
304
445
  95,
305
446
  95,
306
447
  101,
@@ -317,35 +458,46 @@ export type Pump = {
317
458
  114,
318
459
  105,
319
460
  116,
320
- 121,
321
- ];
322
- },
323
- ];
324
- };
325
- },
326
- {
327
- name: "program";
328
- },
329
- ];
330
- args: [];
331
- },
332
- {
333
- name: "create";
334
- docs: ["Creates a new coin and bonding curve."];
335
- discriminator: [24, 30, 200, 40, 5, 28, 7, 119];
336
- accounts: [
337
- {
338
- name: "mint";
339
- writable: true;
340
- signer: true;
341
- },
342
- {
343
- name: "mintAuthority";
344
- pda: {
345
- seeds: [
346
- {
347
- kind: "const";
348
- value: [
461
+ 121
462
+ ]
463
+ }
464
+ ]
465
+ }
466
+ },
467
+ {
468
+ "name": "program"
469
+ }
470
+ ],
471
+ "args": []
472
+ },
473
+ {
474
+ "name": "create",
475
+ "docs": [
476
+ "Creates a new coin and bonding curve."
477
+ ],
478
+ "discriminator": [
479
+ 24,
480
+ 30,
481
+ 200,
482
+ 40,
483
+ 5,
484
+ 28,
485
+ 7,
486
+ 119
487
+ ],
488
+ "accounts": [
489
+ {
490
+ "name": "mint",
491
+ "writable": true,
492
+ "signer": true
493
+ },
494
+ {
495
+ "name": "mintAuthority",
496
+ "pda": {
497
+ "seeds": [
498
+ {
499
+ "kind": "const",
500
+ "value": [
349
501
  109,
350
502
  105,
351
503
  110,
@@ -359,20 +511,20 @@ export type Pump = {
359
511
  114,
360
512
  105,
361
513
  116,
362
- 121,
363
- ];
364
- },
365
- ];
366
- };
514
+ 121
515
+ ]
516
+ }
517
+ ]
518
+ }
367
519
  },
368
520
  {
369
- name: "bondingCurve";
370
- writable: true;
371
- pda: {
372
- seeds: [
521
+ "name": "bondingCurve",
522
+ "writable": true,
523
+ "pda": {
524
+ "seeds": [
373
525
  {
374
- kind: "const";
375
- value: [
526
+ "kind": "const",
527
+ "value": [
376
528
  98,
377
529
  111,
378
530
  110,
@@ -385,28 +537,28 @@ export type Pump = {
385
537
  117,
386
538
  114,
387
539
  118,
388
- 101,
389
- ];
540
+ 101
541
+ ]
390
542
  },
391
543
  {
392
- kind: "account";
393
- path: "mint";
394
- },
395
- ];
396
- };
544
+ "kind": "account",
545
+ "path": "mint"
546
+ }
547
+ ]
548
+ }
397
549
  },
398
550
  {
399
- name: "associatedBondingCurve";
400
- writable: true;
401
- pda: {
402
- seeds: [
551
+ "name": "associatedBondingCurve",
552
+ "writable": true,
553
+ "pda": {
554
+ "seeds": [
403
555
  {
404
- kind: "account";
405
- path: "bondingCurve";
556
+ "kind": "account",
557
+ "path": "bondingCurve"
406
558
  },
407
559
  {
408
- kind: "const";
409
- value: [
560
+ "kind": "const",
561
+ "value": [
410
562
  6,
411
563
  221,
412
564
  246,
@@ -438,17 +590,17 @@ export type Pump = {
438
590
  126,
439
591
  255,
440
592
  0,
441
- 169,
442
- ];
593
+ 169
594
+ ]
443
595
  },
444
596
  {
445
- kind: "account";
446
- path: "mint";
447
- },
448
- ];
449
- program: {
450
- kind: "const";
451
- value: [
597
+ "kind": "account",
598
+ "path": "mint"
599
+ }
600
+ ],
601
+ "program": {
602
+ "kind": "const",
603
+ "value": [
452
604
  140,
453
605
  151,
454
606
  37,
@@ -480,38 +632,54 @@ export type Pump = {
480
632
  219,
481
633
  233,
482
634
  248,
483
- 89,
484
- ];
485
- };
486
- };
635
+ 89
636
+ ]
637
+ }
638
+ }
487
639
  },
488
640
  {
489
- name: "global";
490
- pda: {
491
- seeds: [
641
+ "name": "global",
642
+ "pda": {
643
+ "seeds": [
492
644
  {
493
- kind: "const";
494
- value: [103, 108, 111, 98, 97, 108];
495
- },
496
- ];
497
- };
645
+ "kind": "const",
646
+ "value": [
647
+ 103,
648
+ 108,
649
+ 111,
650
+ 98,
651
+ 97,
652
+ 108
653
+ ]
654
+ }
655
+ ]
656
+ }
498
657
  },
499
658
  {
500
- name: "mplTokenMetadata";
501
- address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s";
659
+ "name": "mplTokenMetadata",
660
+ "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
502
661
  },
503
662
  {
504
- name: "metadata";
505
- writable: true;
506
- pda: {
507
- seeds: [
663
+ "name": "metadata",
664
+ "writable": true,
665
+ "pda": {
666
+ "seeds": [
508
667
  {
509
- kind: "const";
510
- value: [109, 101, 116, 97, 100, 97, 116, 97];
668
+ "kind": "const",
669
+ "value": [
670
+ 109,
671
+ 101,
672
+ 116,
673
+ 97,
674
+ 100,
675
+ 97,
676
+ 116,
677
+ 97
678
+ ]
511
679
  },
512
680
  {
513
- kind: "const";
514
- value: [
681
+ "kind": "const",
682
+ "value": [
515
683
  11,
516
684
  112,
517
685
  101,
@@ -543,48 +711,48 @@ export type Pump = {
543
711
  3,
544
712
  248,
545
713
  41,
546
- 70,
547
- ];
714
+ 70
715
+ ]
548
716
  },
549
717
  {
550
- kind: "account";
551
- path: "mint";
552
- },
553
- ];
554
- program: {
555
- kind: "account";
556
- path: "mplTokenMetadata";
557
- };
558
- };
718
+ "kind": "account",
719
+ "path": "mint"
720
+ }
721
+ ],
722
+ "program": {
723
+ "kind": "account",
724
+ "path": "mplTokenMetadata"
725
+ }
726
+ }
559
727
  },
560
728
  {
561
- name: "user";
562
- writable: true;
563
- signer: true;
729
+ "name": "user",
730
+ "writable": true,
731
+ "signer": true
564
732
  },
565
733
  {
566
- name: "systemProgram";
567
- address: "11111111111111111111111111111111";
734
+ "name": "systemProgram",
735
+ "address": "11111111111111111111111111111111"
568
736
  },
569
737
  {
570
- name: "tokenProgram";
571
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
738
+ "name": "tokenProgram",
739
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
572
740
  },
573
741
  {
574
- name: "associatedTokenProgram";
575
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
742
+ "name": "associatedTokenProgram",
743
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
576
744
  },
577
745
  {
578
- name: "rent";
579
- address: "SysvarRent111111111111111111111111111111111";
746
+ "name": "rent",
747
+ "address": "SysvarRent111111111111111111111111111111111"
580
748
  },
581
749
  {
582
- name: "eventAuthority";
583
- pda: {
584
- seeds: [
750
+ "name": "eventAuthority",
751
+ "pda": {
752
+ "seeds": [
585
753
  {
586
- kind: "const";
587
- value: [
754
+ "kind": "const",
755
+ "value": [
588
756
  95,
589
757
  95,
590
758
  101,
@@ -601,59 +769,70 @@ export type Pump = {
601
769
  114,
602
770
  105,
603
771
  116,
604
- 121,
605
- ];
606
- },
607
- ];
608
- };
772
+ 121
773
+ ]
774
+ }
775
+ ]
776
+ }
609
777
  },
610
778
  {
611
- name: "program";
612
- },
613
- ];
614
- args: [
779
+ "name": "program"
780
+ }
781
+ ],
782
+ "args": [
615
783
  {
616
- name: "name";
617
- type: "string";
784
+ "name": "name",
785
+ "type": "string"
618
786
  },
619
787
  {
620
- name: "symbol";
621
- type: "string";
788
+ "name": "symbol",
789
+ "type": "string"
622
790
  },
623
791
  {
624
- name: "uri";
625
- type: "string";
792
+ "name": "uri",
793
+ "type": "string"
626
794
  },
627
795
  {
628
- name: "creator";
629
- type: "pubkey";
630
- },
631
- ];
796
+ "name": "creator",
797
+ "type": "pubkey"
798
+ }
799
+ ]
632
800
  },
633
801
  {
634
- name: "extendAccount";
635
- docs: ["Extends the size of program-owned accounts"];
636
- discriminator: [234, 102, 194, 203, 150, 72, 62, 229];
637
- accounts: [
802
+ "name": "extendAccount",
803
+ "docs": [
804
+ "Extends the size of program-owned accounts"
805
+ ],
806
+ "discriminator": [
807
+ 234,
808
+ 102,
809
+ 194,
810
+ 203,
811
+ 150,
812
+ 72,
813
+ 62,
814
+ 229
815
+ ],
816
+ "accounts": [
638
817
  {
639
- name: "account";
640
- writable: true;
818
+ "name": "account",
819
+ "writable": true
641
820
  },
642
821
  {
643
- name: "user";
644
- signer: true;
822
+ "name": "user",
823
+ "signer": true
645
824
  },
646
825
  {
647
- name: "systemProgram";
648
- address: "11111111111111111111111111111111";
826
+ "name": "systemProgram",
827
+ "address": "11111111111111111111111111111111"
649
828
  },
650
829
  {
651
- name: "eventAuthority";
652
- pda: {
653
- seeds: [
830
+ "name": "eventAuthority",
831
+ "pda": {
832
+ "seeds": [
654
833
  {
655
- kind: "const";
656
- value: [
834
+ "kind": "const",
835
+ "value": [
657
836
  95,
658
837
  95,
659
838
  101,
@@ -670,79 +849,117 @@ export type Pump = {
670
849
  114,
671
850
  105,
672
851
  116,
673
- 121,
674
- ];
675
- },
676
- ];
677
- };
678
- },
679
- {
680
- name: "program";
681
- },
682
- ];
683
- args: [];
684
- },
685
- {
686
- name: "initialize";
687
- docs: ["Creates the global state."];
688
- discriminator: [175, 175, 109, 31, 13, 152, 155, 237];
689
- accounts: [
690
- {
691
- name: "global";
692
- writable: true;
693
- pda: {
694
- seeds: [
695
- {
696
- kind: "const";
697
- value: [103, 108, 111, 98, 97, 108];
698
- },
699
- ];
700
- };
701
- },
702
- {
703
- name: "user";
704
- writable: true;
705
- signer: true;
706
- },
707
- {
708
- name: "systemProgram";
709
- address: "11111111111111111111111111111111";
710
- },
711
- ];
712
- args: [];
713
- },
714
- {
715
- name: "migrate";
716
- docs: ["Migrates liquidity to pump_amm if the bonding curve is complete"];
717
- discriminator: [155, 234, 231, 146, 236, 158, 162, 30];
718
- accounts: [
719
- {
720
- name: "global";
721
- pda: {
722
- seeds: [
723
- {
724
- kind: "const";
725
- value: [103, 108, 111, 98, 97, 108];
726
- },
727
- ];
728
- };
852
+ 121
853
+ ]
854
+ }
855
+ ]
856
+ }
857
+ },
858
+ {
859
+ "name": "program"
860
+ }
861
+ ],
862
+ "args": []
863
+ },
864
+ {
865
+ "name": "initialize",
866
+ "docs": [
867
+ "Creates the global state."
868
+ ],
869
+ "discriminator": [
870
+ 175,
871
+ 175,
872
+ 109,
873
+ 31,
874
+ 13,
875
+ 152,
876
+ 155,
877
+ 237
878
+ ],
879
+ "accounts": [
880
+ {
881
+ "name": "global",
882
+ "writable": true,
883
+ "pda": {
884
+ "seeds": [
885
+ {
886
+ "kind": "const",
887
+ "value": [
888
+ 103,
889
+ 108,
890
+ 111,
891
+ 98,
892
+ 97,
893
+ 108
894
+ ]
895
+ }
896
+ ]
897
+ }
898
+ },
899
+ {
900
+ "name": "user",
901
+ "writable": true,
902
+ "signer": true
903
+ },
904
+ {
905
+ "name": "systemProgram",
906
+ "address": "11111111111111111111111111111111"
907
+ }
908
+ ],
909
+ "args": []
910
+ },
911
+ {
912
+ "name": "migrate",
913
+ "docs": [
914
+ "Migrates liquidity to pump_amm if the bonding curve is complete"
915
+ ],
916
+ "discriminator": [
917
+ 155,
918
+ 234,
919
+ 231,
920
+ 146,
921
+ 236,
922
+ 158,
923
+ 162,
924
+ 30
925
+ ],
926
+ "accounts": [
927
+ {
928
+ "name": "global",
929
+ "pda": {
930
+ "seeds": [
931
+ {
932
+ "kind": "const",
933
+ "value": [
934
+ 103,
935
+ 108,
936
+ 111,
937
+ 98,
938
+ 97,
939
+ 108
940
+ ]
941
+ }
942
+ ]
943
+ }
729
944
  },
730
945
  {
731
- name: "withdrawAuthority";
732
- writable: true;
733
- relations: ["global"];
946
+ "name": "withdrawAuthority",
947
+ "writable": true,
948
+ "relations": [
949
+ "global"
950
+ ]
734
951
  },
735
952
  {
736
- name: "mint";
953
+ "name": "mint"
737
954
  },
738
955
  {
739
- name: "bondingCurve";
740
- writable: true;
741
- pda: {
742
- seeds: [
956
+ "name": "bondingCurve",
957
+ "writable": true,
958
+ "pda": {
959
+ "seeds": [
743
960
  {
744
- kind: "const";
745
- value: [
961
+ "kind": "const",
962
+ "value": [
746
963
  98,
747
964
  111,
748
965
  110,
@@ -755,28 +972,28 @@ export type Pump = {
755
972
  117,
756
973
  114,
757
974
  118,
758
- 101,
759
- ];
975
+ 101
976
+ ]
760
977
  },
761
978
  {
762
- kind: "account";
763
- path: "mint";
764
- },
765
- ];
766
- };
979
+ "kind": "account",
980
+ "path": "mint"
981
+ }
982
+ ]
983
+ }
767
984
  },
768
985
  {
769
- name: "associatedBondingCurve";
770
- writable: true;
771
- pda: {
772
- seeds: [
986
+ "name": "associatedBondingCurve",
987
+ "writable": true,
988
+ "pda": {
989
+ "seeds": [
773
990
  {
774
- kind: "account";
775
- path: "bondingCurve";
991
+ "kind": "account",
992
+ "path": "bondingCurve"
776
993
  },
777
994
  {
778
- kind: "const";
779
- value: [
995
+ "kind": "const",
996
+ "value": [
780
997
  6,
781
998
  221,
782
999
  246,
@@ -808,17 +1025,17 @@ export type Pump = {
808
1025
  126,
809
1026
  255,
810
1027
  0,
811
- 169,
812
- ];
1028
+ 169
1029
+ ]
813
1030
  },
814
1031
  {
815
- kind: "account";
816
- path: "mint";
817
- },
818
- ];
819
- program: {
820
- kind: "const";
821
- value: [
1032
+ "kind": "account",
1033
+ "path": "mint"
1034
+ }
1035
+ ],
1036
+ "program": {
1037
+ "kind": "const",
1038
+ "value": [
822
1039
  140,
823
1040
  151,
824
1041
  37,
@@ -850,67 +1067,75 @@ export type Pump = {
850
1067
  219,
851
1068
  233,
852
1069
  248,
853
- 89,
854
- ];
855
- };
856
- };
1070
+ 89
1071
+ ]
1072
+ }
1073
+ }
857
1074
  },
858
1075
  {
859
- name: "user";
860
- signer: true;
1076
+ "name": "user",
1077
+ "signer": true
861
1078
  },
862
1079
  {
863
- name: "systemProgram";
864
- address: "11111111111111111111111111111111";
1080
+ "name": "systemProgram",
1081
+ "address": "11111111111111111111111111111111"
865
1082
  },
866
1083
  {
867
- name: "tokenProgram";
868
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1084
+ "name": "tokenProgram",
1085
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
869
1086
  },
870
1087
  {
871
- name: "pumpAmm";
872
- address: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA";
1088
+ "name": "pumpAmm",
1089
+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
873
1090
  },
874
1091
  {
875
- name: "pool";
876
- writable: true;
877
- pda: {
878
- seeds: [
1092
+ "name": "pool",
1093
+ "writable": true,
1094
+ "pda": {
1095
+ "seeds": [
879
1096
  {
880
- kind: "const";
881
- value: [112, 111, 111, 108];
1097
+ "kind": "const",
1098
+ "value": [
1099
+ 112,
1100
+ 111,
1101
+ 111,
1102
+ 108
1103
+ ]
882
1104
  },
883
1105
  {
884
- kind: "const";
885
- value: [0, 0];
1106
+ "kind": "const",
1107
+ "value": [
1108
+ 0,
1109
+ 0
1110
+ ]
886
1111
  },
887
1112
  {
888
- kind: "account";
889
- path: "poolAuthority";
1113
+ "kind": "account",
1114
+ "path": "poolAuthority"
890
1115
  },
891
1116
  {
892
- kind: "account";
893
- path: "mint";
1117
+ "kind": "account",
1118
+ "path": "mint"
894
1119
  },
895
1120
  {
896
- kind: "account";
897
- path: "wsolMint";
898
- },
899
- ];
900
- program: {
901
- kind: "account";
902
- path: "pumpAmm";
903
- };
904
- };
1121
+ "kind": "account",
1122
+ "path": "wsolMint"
1123
+ }
1124
+ ],
1125
+ "program": {
1126
+ "kind": "account",
1127
+ "path": "pumpAmm"
1128
+ }
1129
+ }
905
1130
  },
906
1131
  {
907
- name: "poolAuthority";
908
- writable: true;
909
- pda: {
910
- seeds: [
1132
+ "name": "poolAuthority",
1133
+ "writable": true,
1134
+ "pda": {
1135
+ "seeds": [
911
1136
  {
912
- kind: "const";
913
- value: [
1137
+ "kind": "const",
1138
+ "value": [
914
1139
  112,
915
1140
  111,
916
1141
  111,
@@ -924,71 +1149,71 @@ export type Pump = {
924
1149
  114,
925
1150
  105,
926
1151
  116,
927
- 121,
928
- ];
1152
+ 121
1153
+ ]
929
1154
  },
930
1155
  {
931
- kind: "account";
932
- path: "mint";
933
- },
934
- ];
935
- };
1156
+ "kind": "account",
1157
+ "path": "mint"
1158
+ }
1159
+ ]
1160
+ }
936
1161
  },
937
1162
  {
938
- name: "poolAuthorityMintAccount";
939
- writable: true;
940
- pda: {
941
- seeds: [
1163
+ "name": "poolAuthorityMintAccount",
1164
+ "writable": true,
1165
+ "pda": {
1166
+ "seeds": [
942
1167
  {
943
- kind: "account";
944
- path: "poolAuthority";
1168
+ "kind": "account",
1169
+ "path": "poolAuthority"
945
1170
  },
946
1171
  {
947
- kind: "account";
948
- path: "tokenProgram";
1172
+ "kind": "account",
1173
+ "path": "tokenProgram"
949
1174
  },
950
1175
  {
951
- kind: "account";
952
- path: "mint";
953
- },
954
- ];
955
- program: {
956
- kind: "account";
957
- path: "associatedTokenProgram";
958
- };
959
- };
1176
+ "kind": "account",
1177
+ "path": "mint"
1178
+ }
1179
+ ],
1180
+ "program": {
1181
+ "kind": "account",
1182
+ "path": "associatedTokenProgram"
1183
+ }
1184
+ }
960
1185
  },
961
1186
  {
962
- name: "poolAuthorityWsolAccount";
963
- writable: true;
964
- pda: {
965
- seeds: [
1187
+ "name": "poolAuthorityWsolAccount",
1188
+ "writable": true,
1189
+ "pda": {
1190
+ "seeds": [
966
1191
  {
967
- kind: "account";
968
- path: "poolAuthority";
1192
+ "kind": "account",
1193
+ "path": "poolAuthority"
969
1194
  },
970
1195
  {
971
- kind: "account";
972
- path: "tokenProgram";
1196
+ "kind": "account",
1197
+ "path": "tokenProgram"
973
1198
  },
974
1199
  {
975
- kind: "account";
976
- path: "wsolMint";
977
- },
978
- ];
979
- program: {
980
- kind: "account";
981
- path: "associatedTokenProgram";
982
- };
983
- };
1200
+ "kind": "account",
1201
+ "path": "wsolMint"
1202
+ }
1203
+ ],
1204
+ "program": {
1205
+ "kind": "account",
1206
+ "path": "associatedTokenProgram"
1207
+ }
1208
+ }
984
1209
  },
985
1210
  {
986
- name: "ammGlobalConfig";
987
- pda: {
988
- seeds: [
1211
+ "name": "ammGlobalConfig",
1212
+ "pda": {
1213
+ "seeds": [
989
1214
  {
990
- kind: "const";
991
- value: [
1215
+ "kind": "const",
1216
+ "value": [
992
1217
  103,
993
1218
  108,
994
1219
  111,
@@ -1001,28 +1226,28 @@ export type Pump = {
1001
1226
  110,
1002
1227
  102,
1003
1228
  105,
1004
- 103,
1005
- ];
1006
- },
1007
- ];
1008
- program: {
1009
- kind: "account";
1010
- path: "pumpAmm";
1011
- };
1012
- };
1229
+ 103
1230
+ ]
1231
+ }
1232
+ ],
1233
+ "program": {
1234
+ "kind": "account",
1235
+ "path": "pumpAmm"
1236
+ }
1237
+ }
1013
1238
  },
1014
1239
  {
1015
- name: "wsolMint";
1016
- address: "So11111111111111111111111111111111111111112";
1240
+ "name": "wsolMint",
1241
+ "address": "So11111111111111111111111111111111111111112"
1017
1242
  },
1018
1243
  {
1019
- name: "lpMint";
1020
- writable: true;
1021
- pda: {
1022
- seeds: [
1244
+ "name": "lpMint",
1245
+ "writable": true,
1246
+ "pda": {
1247
+ "seeds": [
1023
1248
  {
1024
- kind: "const";
1025
- value: [
1249
+ "kind": "const",
1250
+ "value": [
1026
1251
  112,
1027
1252
  111,
1028
1253
  111,
@@ -1034,107 +1259,107 @@ export type Pump = {
1034
1259
  109,
1035
1260
  105,
1036
1261
  110,
1037
- 116,
1038
- ];
1262
+ 116
1263
+ ]
1039
1264
  },
1040
1265
  {
1041
- kind: "account";
1042
- path: "pool";
1043
- },
1044
- ];
1045
- program: {
1046
- kind: "account";
1047
- path: "pumpAmm";
1048
- };
1049
- };
1266
+ "kind": "account",
1267
+ "path": "pool"
1268
+ }
1269
+ ],
1270
+ "program": {
1271
+ "kind": "account",
1272
+ "path": "pumpAmm"
1273
+ }
1274
+ }
1050
1275
  },
1051
1276
  {
1052
- name: "userPoolTokenAccount";
1053
- writable: true;
1054
- pda: {
1055
- seeds: [
1277
+ "name": "userPoolTokenAccount",
1278
+ "writable": true,
1279
+ "pda": {
1280
+ "seeds": [
1056
1281
  {
1057
- kind: "account";
1058
- path: "poolAuthority";
1282
+ "kind": "account",
1283
+ "path": "poolAuthority"
1059
1284
  },
1060
1285
  {
1061
- kind: "account";
1062
- path: "token2022Program";
1286
+ "kind": "account",
1287
+ "path": "token2022Program"
1063
1288
  },
1064
1289
  {
1065
- kind: "account";
1066
- path: "lpMint";
1067
- },
1068
- ];
1069
- program: {
1070
- kind: "account";
1071
- path: "associatedTokenProgram";
1072
- };
1073
- };
1290
+ "kind": "account",
1291
+ "path": "lpMint"
1292
+ }
1293
+ ],
1294
+ "program": {
1295
+ "kind": "account",
1296
+ "path": "associatedTokenProgram"
1297
+ }
1298
+ }
1074
1299
  },
1075
1300
  {
1076
- name: "poolBaseTokenAccount";
1077
- writable: true;
1078
- pda: {
1079
- seeds: [
1301
+ "name": "poolBaseTokenAccount",
1302
+ "writable": true,
1303
+ "pda": {
1304
+ "seeds": [
1080
1305
  {
1081
- kind: "account";
1082
- path: "pool";
1306
+ "kind": "account",
1307
+ "path": "pool"
1083
1308
  },
1084
1309
  {
1085
- kind: "account";
1086
- path: "tokenProgram";
1310
+ "kind": "account",
1311
+ "path": "tokenProgram"
1087
1312
  },
1088
1313
  {
1089
- kind: "account";
1090
- path: "mint";
1091
- },
1092
- ];
1093
- program: {
1094
- kind: "account";
1095
- path: "associatedTokenProgram";
1096
- };
1097
- };
1314
+ "kind": "account",
1315
+ "path": "mint"
1316
+ }
1317
+ ],
1318
+ "program": {
1319
+ "kind": "account",
1320
+ "path": "associatedTokenProgram"
1321
+ }
1322
+ }
1098
1323
  },
1099
1324
  {
1100
- name: "poolQuoteTokenAccount";
1101
- writable: true;
1102
- pda: {
1103
- seeds: [
1325
+ "name": "poolQuoteTokenAccount",
1326
+ "writable": true,
1327
+ "pda": {
1328
+ "seeds": [
1104
1329
  {
1105
- kind: "account";
1106
- path: "pool";
1330
+ "kind": "account",
1331
+ "path": "pool"
1107
1332
  },
1108
1333
  {
1109
- kind: "account";
1110
- path: "tokenProgram";
1334
+ "kind": "account",
1335
+ "path": "tokenProgram"
1111
1336
  },
1112
1337
  {
1113
- kind: "account";
1114
- path: "wsolMint";
1115
- },
1116
- ];
1117
- program: {
1118
- kind: "account";
1119
- path: "associatedTokenProgram";
1120
- };
1121
- };
1338
+ "kind": "account",
1339
+ "path": "wsolMint"
1340
+ }
1341
+ ],
1342
+ "program": {
1343
+ "kind": "account",
1344
+ "path": "associatedTokenProgram"
1345
+ }
1346
+ }
1122
1347
  },
1123
1348
  {
1124
- name: "token2022Program";
1125
- address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
1349
+ "name": "token2022Program",
1350
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1126
1351
  },
1127
1352
  {
1128
- name: "associatedTokenProgram";
1129
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1353
+ "name": "associatedTokenProgram",
1354
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1130
1355
  },
1131
1356
  {
1132
- name: "pumpAmmEventAuthority";
1133
- pda: {
1134
- seeds: [
1357
+ "name": "pumpAmmEventAuthority",
1358
+ "pda": {
1359
+ "seeds": [
1135
1360
  {
1136
- kind: "const";
1137
- value: [
1361
+ "kind": "const",
1362
+ "value": [
1138
1363
  95,
1139
1364
  95,
1140
1365
  101,
@@ -1151,23 +1376,23 @@ export type Pump = {
1151
1376
  114,
1152
1377
  105,
1153
1378
  116,
1154
- 121,
1155
- ];
1156
- },
1157
- ];
1158
- program: {
1159
- kind: "account";
1160
- path: "pumpAmm";
1161
- };
1162
- };
1163
- },
1164
- {
1165
- name: "eventAuthority";
1166
- pda: {
1167
- seeds: [
1168
- {
1169
- kind: "const";
1170
- value: [
1379
+ 121
1380
+ ]
1381
+ }
1382
+ ],
1383
+ "program": {
1384
+ "kind": "account",
1385
+ "path": "pumpAmm"
1386
+ }
1387
+ }
1388
+ },
1389
+ {
1390
+ "name": "eventAuthority",
1391
+ "pda": {
1392
+ "seeds": [
1393
+ {
1394
+ "kind": "const",
1395
+ "value": [
1171
1396
  95,
1172
1397
  95,
1173
1398
  101,
@@ -1184,49 +1409,67 @@ export type Pump = {
1184
1409
  114,
1185
1410
  105,
1186
1411
  116,
1187
- 121,
1188
- ];
1189
- },
1190
- ];
1191
- };
1192
- },
1193
- {
1194
- name: "program";
1195
- },
1196
- ];
1197
- args: [];
1198
- },
1199
- {
1200
- name: "sell";
1201
- docs: ["Sells tokens into a bonding curve."];
1202
- discriminator: [51, 230, 133, 164, 1, 127, 131, 173];
1203
- accounts: [
1204
- {
1205
- name: "global";
1206
- pda: {
1207
- seeds: [
1208
- {
1209
- kind: "const";
1210
- value: [103, 108, 111, 98, 97, 108];
1211
- },
1212
- ];
1213
- };
1412
+ 121
1413
+ ]
1414
+ }
1415
+ ]
1416
+ }
1417
+ },
1418
+ {
1419
+ "name": "program"
1420
+ }
1421
+ ],
1422
+ "args": []
1423
+ },
1424
+ {
1425
+ "name": "sell",
1426
+ "docs": [
1427
+ "Sells tokens into a bonding curve."
1428
+ ],
1429
+ "discriminator": [
1430
+ 51,
1431
+ 230,
1432
+ 133,
1433
+ 164,
1434
+ 1,
1435
+ 127,
1436
+ 131,
1437
+ 173
1438
+ ],
1439
+ "accounts": [
1440
+ {
1441
+ "name": "global",
1442
+ "pda": {
1443
+ "seeds": [
1444
+ {
1445
+ "kind": "const",
1446
+ "value": [
1447
+ 103,
1448
+ 108,
1449
+ 111,
1450
+ 98,
1451
+ 97,
1452
+ 108
1453
+ ]
1454
+ }
1455
+ ]
1456
+ }
1214
1457
  },
1215
1458
  {
1216
- name: "feeRecipient";
1217
- writable: true;
1459
+ "name": "feeRecipient",
1460
+ "writable": true
1218
1461
  },
1219
1462
  {
1220
- name: "mint";
1463
+ "name": "mint"
1221
1464
  },
1222
1465
  {
1223
- name: "bondingCurve";
1224
- writable: true;
1225
- pda: {
1226
- seeds: [
1466
+ "name": "bondingCurve",
1467
+ "writable": true,
1468
+ "pda": {
1469
+ "seeds": [
1227
1470
  {
1228
- kind: "const";
1229
- value: [
1471
+ "kind": "const",
1472
+ "value": [
1230
1473
  98,
1231
1474
  111,
1232
1475
  110,
@@ -1239,28 +1482,28 @@ export type Pump = {
1239
1482
  117,
1240
1483
  114,
1241
1484
  118,
1242
- 101,
1243
- ];
1485
+ 101
1486
+ ]
1244
1487
  },
1245
1488
  {
1246
- kind: "account";
1247
- path: "mint";
1248
- },
1249
- ];
1250
- };
1489
+ "kind": "account",
1490
+ "path": "mint"
1491
+ }
1492
+ ]
1493
+ }
1251
1494
  },
1252
1495
  {
1253
- name: "associatedBondingCurve";
1254
- writable: true;
1255
- pda: {
1256
- seeds: [
1496
+ "name": "associatedBondingCurve",
1497
+ "writable": true,
1498
+ "pda": {
1499
+ "seeds": [
1257
1500
  {
1258
- kind: "account";
1259
- path: "bondingCurve";
1501
+ "kind": "account",
1502
+ "path": "bondingCurve"
1260
1503
  },
1261
1504
  {
1262
- kind: "const";
1263
- value: [
1505
+ "kind": "const",
1506
+ "value": [
1264
1507
  6,
1265
1508
  221,
1266
1509
  246,
@@ -1292,17 +1535,17 @@ export type Pump = {
1292
1535
  126,
1293
1536
  255,
1294
1537
  0,
1295
- 169,
1296
- ];
1538
+ 169
1539
+ ]
1297
1540
  },
1298
1541
  {
1299
- kind: "account";
1300
- path: "mint";
1301
- },
1302
- ];
1303
- program: {
1304
- kind: "const";
1305
- value: [
1542
+ "kind": "account",
1543
+ "path": "mint"
1544
+ }
1545
+ ],
1546
+ "program": {
1547
+ "kind": "const",
1548
+ "value": [
1306
1549
  140,
1307
1550
  151,
1308
1551
  37,
@@ -1334,32 +1577,32 @@ export type Pump = {
1334
1577
  219,
1335
1578
  233,
1336
1579
  248,
1337
- 89,
1338
- ];
1339
- };
1340
- };
1580
+ 89
1581
+ ]
1582
+ }
1583
+ }
1341
1584
  },
1342
1585
  {
1343
- name: "associatedUser";
1344
- writable: true;
1586
+ "name": "associatedUser",
1587
+ "writable": true
1345
1588
  },
1346
1589
  {
1347
- name: "user";
1348
- writable: true;
1349
- signer: true;
1590
+ "name": "user",
1591
+ "writable": true,
1592
+ "signer": true
1350
1593
  },
1351
1594
  {
1352
- name: "systemProgram";
1353
- address: "11111111111111111111111111111111";
1595
+ "name": "systemProgram",
1596
+ "address": "11111111111111111111111111111111"
1354
1597
  },
1355
1598
  {
1356
- name: "creatorVault";
1357
- writable: true;
1358
- pda: {
1359
- seeds: [
1599
+ "name": "creatorVault",
1600
+ "writable": true,
1601
+ "pda": {
1602
+ "seeds": [
1360
1603
  {
1361
- kind: "const";
1362
- value: [
1604
+ "kind": "const",
1605
+ "value": [
1363
1606
  99,
1364
1607
  114,
1365
1608
  101,
@@ -1372,28 +1615,28 @@ export type Pump = {
1372
1615
  97,
1373
1616
  117,
1374
1617
  108,
1375
- 116,
1376
- ];
1618
+ 116
1619
+ ]
1377
1620
  },
1378
1621
  {
1379
- kind: "account";
1380
- path: "bonding_curve.creator";
1381
- account: "bondingCurve";
1382
- },
1383
- ];
1384
- };
1622
+ "kind": "account",
1623
+ "path": "bonding_curve.creator",
1624
+ "account": "bondingCurve"
1625
+ }
1626
+ ]
1627
+ }
1385
1628
  },
1386
1629
  {
1387
- name: "tokenProgram";
1388
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1630
+ "name": "tokenProgram",
1631
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1389
1632
  },
1390
1633
  {
1391
- name: "eventAuthority";
1392
- pda: {
1393
- seeds: [
1634
+ "name": "eventAuthority",
1635
+ "pda": {
1636
+ "seeds": [
1394
1637
  {
1395
- kind: "const";
1396
- value: [
1638
+ "kind": "const",
1639
+ "value": [
1397
1640
  95,
1398
1641
  95,
1399
1642
  101,
@@ -1410,64 +1653,91 @@ export type Pump = {
1410
1653
  114,
1411
1654
  105,
1412
1655
  116,
1413
- 121,
1414
- ];
1415
- },
1416
- ];
1417
- };
1418
- },
1419
- {
1420
- name: "program";
1421
- },
1422
- ];
1423
- args: [
1424
- {
1425
- name: "amount";
1426
- type: "u64";
1427
- },
1428
- {
1429
- name: "minSolOutput";
1430
- type: "u64";
1431
- },
1432
- ];
1433
- },
1434
- {
1435
- name: "setCreator";
1436
- docs: [
1437
- "Allows Global::set_creator_authority to set the bonding curve creator from Metaplex metadata or input argument",
1438
- ];
1439
- discriminator: [254, 148, 255, 112, 207, 142, 170, 165];
1440
- accounts: [
1441
- {
1442
- name: "setCreatorAuthority";
1443
- signer: true;
1444
- relations: ["global"];
1445
- },
1446
- {
1447
- name: "global";
1448
- pda: {
1449
- seeds: [
1450
- {
1451
- kind: "const";
1452
- value: [103, 108, 111, 98, 97, 108];
1453
- },
1454
- ];
1455
- };
1656
+ 121
1657
+ ]
1658
+ }
1659
+ ]
1660
+ }
1661
+ },
1662
+ {
1663
+ "name": "program"
1664
+ }
1665
+ ],
1666
+ "args": [
1667
+ {
1668
+ "name": "amount",
1669
+ "type": "u64"
1670
+ },
1671
+ {
1672
+ "name": "minSolOutput",
1673
+ "type": "u64"
1674
+ }
1675
+ ]
1676
+ },
1677
+ {
1678
+ "name": "setCreator",
1679
+ "docs": [
1680
+ "Allows Global::set_creator_authority to set the bonding curve creator from Metaplex metadata or input argument"
1681
+ ],
1682
+ "discriminator": [
1683
+ 254,
1684
+ 148,
1685
+ 255,
1686
+ 112,
1687
+ 207,
1688
+ 142,
1689
+ 170,
1690
+ 165
1691
+ ],
1692
+ "accounts": [
1693
+ {
1694
+ "name": "setCreatorAuthority",
1695
+ "signer": true,
1696
+ "relations": [
1697
+ "global"
1698
+ ]
1699
+ },
1700
+ {
1701
+ "name": "global",
1702
+ "pda": {
1703
+ "seeds": [
1704
+ {
1705
+ "kind": "const",
1706
+ "value": [
1707
+ 103,
1708
+ 108,
1709
+ 111,
1710
+ 98,
1711
+ 97,
1712
+ 108
1713
+ ]
1714
+ }
1715
+ ]
1716
+ }
1456
1717
  },
1457
1718
  {
1458
- name: "mint";
1719
+ "name": "mint"
1459
1720
  },
1460
1721
  {
1461
- name: "metadata";
1462
- pda: {
1463
- seeds: [
1722
+ "name": "metadata",
1723
+ "pda": {
1724
+ "seeds": [
1464
1725
  {
1465
- kind: "const";
1466
- value: [109, 101, 116, 97, 100, 97, 116, 97];
1726
+ "kind": "const",
1727
+ "value": [
1728
+ 109,
1729
+ 101,
1730
+ 116,
1731
+ 97,
1732
+ 100,
1733
+ 97,
1734
+ 116,
1735
+ 97
1736
+ ]
1467
1737
  },
1468
1738
  {
1469
- kind: "const";
1470
- value: [
1739
+ "kind": "const",
1740
+ "value": [
1471
1741
  11,
1472
1742
  112,
1473
1743
  101,
@@ -1499,17 +1769,17 @@ export type Pump = {
1499
1769
  3,
1500
1770
  248,
1501
1771
  41,
1502
- 70,
1503
- ];
1772
+ 70
1773
+ ]
1504
1774
  },
1505
1775
  {
1506
- kind: "account";
1507
- path: "mint";
1508
- },
1509
- ];
1510
- program: {
1511
- kind: "const";
1512
- value: [
1776
+ "kind": "account",
1777
+ "path": "mint"
1778
+ }
1779
+ ],
1780
+ "program": {
1781
+ "kind": "const",
1782
+ "value": [
1513
1783
  11,
1514
1784
  112,
1515
1785
  101,
@@ -1541,19 +1811,19 @@ export type Pump = {
1541
1811
  3,
1542
1812
  248,
1543
1813
  41,
1544
- 70,
1545
- ];
1546
- };
1547
- };
1814
+ 70
1815
+ ]
1816
+ }
1817
+ }
1548
1818
  },
1549
1819
  {
1550
- name: "bondingCurve";
1551
- writable: true;
1552
- pda: {
1553
- seeds: [
1820
+ "name": "bondingCurve",
1821
+ "writable": true,
1822
+ "pda": {
1823
+ "seeds": [
1554
1824
  {
1555
- kind: "const";
1556
- value: [
1825
+ "kind": "const",
1826
+ "value": [
1557
1827
  98,
1558
1828
  111,
1559
1829
  110,
@@ -1566,23 +1836,23 @@ export type Pump = {
1566
1836
  117,
1567
1837
  114,
1568
1838
  118,
1569
- 101,
1570
- ];
1839
+ 101
1840
+ ]
1571
1841
  },
1572
1842
  {
1573
- kind: "account";
1574
- path: "mint";
1575
- },
1576
- ];
1577
- };
1843
+ "kind": "account",
1844
+ "path": "mint"
1845
+ }
1846
+ ]
1847
+ }
1578
1848
  },
1579
1849
  {
1580
- name: "eventAuthority";
1581
- pda: {
1582
- seeds: [
1850
+ "name": "eventAuthority",
1851
+ "pda": {
1852
+ "seeds": [
1583
1853
  {
1584
- kind: "const";
1585
- value: [
1854
+ "kind": "const",
1855
+ "value": [
1586
1856
  95,
1587
1857
  95,
1588
1858
  101,
@@ -1599,44 +1869,62 @@ export type Pump = {
1599
1869
  114,
1600
1870
  105,
1601
1871
  116,
1602
- 121,
1603
- ];
1604
- },
1605
- ];
1606
- };
1607
- },
1608
- {
1609
- name: "program";
1610
- },
1611
- ];
1612
- args: [
1613
- {
1614
- name: "creator";
1615
- type: "pubkey";
1616
- },
1617
- ];
1618
- },
1619
- {
1620
- name: "setMetaplexCreator";
1621
- docs: [
1622
- "Syncs the bonding curve creator with the Metaplex metadata creator if it exists",
1623
- ];
1624
- discriminator: [138, 96, 174, 217, 48, 85, 197, 246];
1625
- accounts: [
1626
- {
1627
- name: "mint";
1628
- },
1629
- {
1630
- name: "metadata";
1631
- pda: {
1632
- seeds: [
1633
- {
1634
- kind: "const";
1635
- value: [109, 101, 116, 97, 100, 97, 116, 97];
1872
+ 121
1873
+ ]
1874
+ }
1875
+ ]
1876
+ }
1877
+ },
1878
+ {
1879
+ "name": "program"
1880
+ }
1881
+ ],
1882
+ "args": [
1883
+ {
1884
+ "name": "creator",
1885
+ "type": "pubkey"
1886
+ }
1887
+ ]
1888
+ },
1889
+ {
1890
+ "name": "setMetaplexCreator",
1891
+ "docs": [
1892
+ "Syncs the bonding curve creator with the Metaplex metadata creator if it exists"
1893
+ ],
1894
+ "discriminator": [
1895
+ 138,
1896
+ 96,
1897
+ 174,
1898
+ 217,
1899
+ 48,
1900
+ 85,
1901
+ 197,
1902
+ 246
1903
+ ],
1904
+ "accounts": [
1905
+ {
1906
+ "name": "mint"
1907
+ },
1908
+ {
1909
+ "name": "metadata",
1910
+ "pda": {
1911
+ "seeds": [
1912
+ {
1913
+ "kind": "const",
1914
+ "value": [
1915
+ 109,
1916
+ 101,
1917
+ 116,
1918
+ 97,
1919
+ 100,
1920
+ 97,
1921
+ 116,
1922
+ 97
1923
+ ]
1636
1924
  },
1637
1925
  {
1638
- kind: "const";
1639
- value: [
1926
+ "kind": "const",
1927
+ "value": [
1640
1928
  11,
1641
1929
  112,
1642
1930
  101,
@@ -1668,17 +1956,17 @@ export type Pump = {
1668
1956
  3,
1669
1957
  248,
1670
1958
  41,
1671
- 70,
1672
- ];
1959
+ 70
1960
+ ]
1673
1961
  },
1674
1962
  {
1675
- kind: "account";
1676
- path: "mint";
1677
- },
1678
- ];
1679
- program: {
1680
- kind: "const";
1681
- value: [
1963
+ "kind": "account",
1964
+ "path": "mint"
1965
+ }
1966
+ ],
1967
+ "program": {
1968
+ "kind": "const",
1969
+ "value": [
1682
1970
  11,
1683
1971
  112,
1684
1972
  101,
@@ -1710,19 +1998,19 @@ export type Pump = {
1710
1998
  3,
1711
1999
  248,
1712
2000
  41,
1713
- 70,
1714
- ];
1715
- };
1716
- };
2001
+ 70
2002
+ ]
2003
+ }
2004
+ }
1717
2005
  },
1718
2006
  {
1719
- name: "bondingCurve";
1720
- writable: true;
1721
- pda: {
1722
- seeds: [
2007
+ "name": "bondingCurve",
2008
+ "writable": true,
2009
+ "pda": {
2010
+ "seeds": [
1723
2011
  {
1724
- kind: "const";
1725
- value: [
2012
+ "kind": "const",
2013
+ "value": [
1726
2014
  98,
1727
2015
  111,
1728
2016
  110,
@@ -1735,23 +2023,23 @@ export type Pump = {
1735
2023
  117,
1736
2024
  114,
1737
2025
  118,
1738
- 101,
1739
- ];
2026
+ 101
2027
+ ]
1740
2028
  },
1741
2029
  {
1742
- kind: "account";
1743
- path: "mint";
1744
- },
1745
- ];
1746
- };
2030
+ "kind": "account",
2031
+ "path": "mint"
2032
+ }
2033
+ ]
2034
+ }
1747
2035
  },
1748
2036
  {
1749
- name: "eventAuthority";
1750
- pda: {
1751
- seeds: [
2037
+ "name": "eventAuthority",
2038
+ "pda": {
2039
+ "seeds": [
1752
2040
  {
1753
- kind: "const";
1754
- value: [
2041
+ "kind": "const",
2042
+ "value": [
1755
2043
  95,
1756
2044
  95,
1757
2045
  101,
@@ -1768,48 +2056,68 @@ export type Pump = {
1768
2056
  114,
1769
2057
  105,
1770
2058
  116,
1771
- 121,
1772
- ];
1773
- },
1774
- ];
1775
- };
1776
- },
1777
- {
1778
- name: "program";
1779
- },
1780
- ];
1781
- args: [];
1782
- },
1783
- {
1784
- name: "setParams";
1785
- docs: ["Sets the global state parameters."];
1786
- discriminator: [27, 234, 178, 52, 147, 2, 187, 141];
1787
- accounts: [
1788
- {
1789
- name: "global";
1790
- writable: true;
1791
- pda: {
1792
- seeds: [
1793
- {
1794
- kind: "const";
1795
- value: [103, 108, 111, 98, 97, 108];
1796
- },
1797
- ];
1798
- };
2059
+ 121
2060
+ ]
2061
+ }
2062
+ ]
2063
+ }
2064
+ },
2065
+ {
2066
+ "name": "program"
2067
+ }
2068
+ ],
2069
+ "args": []
2070
+ },
2071
+ {
2072
+ "name": "setParams",
2073
+ "docs": [
2074
+ "Sets the global state parameters."
2075
+ ],
2076
+ "discriminator": [
2077
+ 27,
2078
+ 234,
2079
+ 178,
2080
+ 52,
2081
+ 147,
2082
+ 2,
2083
+ 187,
2084
+ 141
2085
+ ],
2086
+ "accounts": [
2087
+ {
2088
+ "name": "global",
2089
+ "writable": true,
2090
+ "pda": {
2091
+ "seeds": [
2092
+ {
2093
+ "kind": "const",
2094
+ "value": [
2095
+ 103,
2096
+ 108,
2097
+ 111,
2098
+ 98,
2099
+ 97,
2100
+ 108
2101
+ ]
2102
+ }
2103
+ ]
2104
+ }
1799
2105
  },
1800
2106
  {
1801
- name: "authority";
1802
- writable: true;
1803
- signer: true;
1804
- relations: ["global"];
2107
+ "name": "authority",
2108
+ "writable": true,
2109
+ "signer": true,
2110
+ "relations": [
2111
+ "global"
2112
+ ]
1805
2113
  },
1806
2114
  {
1807
- name: "eventAuthority";
1808
- pda: {
1809
- seeds: [
2115
+ "name": "eventAuthority",
2116
+ "pda": {
2117
+ "seeds": [
1810
2118
  {
1811
- kind: "const";
1812
- value: [
2119
+ "kind": "const",
2120
+ "value": [
1813
2121
  95,
1814
2122
  95,
1815
2123
  101,
@@ -1826,90 +2134,112 @@ export type Pump = {
1826
2134
  114,
1827
2135
  105,
1828
2136
  116,
1829
- 121,
1830
- ];
1831
- },
1832
- ];
1833
- };
2137
+ 121
2138
+ ]
2139
+ }
2140
+ ]
2141
+ }
1834
2142
  },
1835
2143
  {
1836
- name: "program";
1837
- },
1838
- ];
1839
- args: [
2144
+ "name": "program"
2145
+ }
2146
+ ],
2147
+ "args": [
1840
2148
  {
1841
- name: "initialVirtualTokenReserves";
1842
- type: "u64";
2149
+ "name": "initialVirtualTokenReserves",
2150
+ "type": "u64"
1843
2151
  },
1844
2152
  {
1845
- name: "initialVirtualSolReserves";
1846
- type: "u64";
2153
+ "name": "initialVirtualSolReserves",
2154
+ "type": "u64"
1847
2155
  },
1848
2156
  {
1849
- name: "initialRealTokenReserves";
1850
- type: "u64";
2157
+ "name": "initialRealTokenReserves",
2158
+ "type": "u64"
1851
2159
  },
1852
2160
  {
1853
- name: "tokenTotalSupply";
1854
- type: "u64";
2161
+ "name": "tokenTotalSupply",
2162
+ "type": "u64"
1855
2163
  },
1856
2164
  {
1857
- name: "feeBasisPoints";
1858
- type: "u64";
2165
+ "name": "feeBasisPoints",
2166
+ "type": "u64"
1859
2167
  },
1860
2168
  {
1861
- name: "withdrawAuthority";
1862
- type: "pubkey";
2169
+ "name": "withdrawAuthority",
2170
+ "type": "pubkey"
1863
2171
  },
1864
2172
  {
1865
- name: "enableMigrate";
1866
- type: "bool";
2173
+ "name": "enableMigrate",
2174
+ "type": "bool"
1867
2175
  },
1868
2176
  {
1869
- name: "poolMigrationFee";
1870
- type: "u64";
2177
+ "name": "poolMigrationFee",
2178
+ "type": "u64"
1871
2179
  },
1872
2180
  {
1873
- name: "creatorFeeBasisPoints";
1874
- type: "u64";
2181
+ "name": "creatorFeeBasisPoints",
2182
+ "type": "u64"
1875
2183
  },
1876
2184
  {
1877
- name: "setCreatorAuthority";
1878
- type: "pubkey";
2185
+ "name": "setCreatorAuthority",
2186
+ "type": "pubkey"
1879
2187
  },
1880
- ];
2188
+ {
2189
+ "name": "adminSetCreatorAuthority",
2190
+ "type": "pubkey"
2191
+ }
2192
+ ]
1881
2193
  },
1882
2194
  {
1883
- name: "updateGlobalAuthority";
1884
- discriminator: [227, 181, 74, 196, 208, 21, 97, 213];
1885
- accounts: [
2195
+ "name": "updateGlobalAuthority",
2196
+ "discriminator": [
2197
+ 227,
2198
+ 181,
2199
+ 74,
2200
+ 196,
2201
+ 208,
2202
+ 21,
2203
+ 97,
2204
+ 213
2205
+ ],
2206
+ "accounts": [
1886
2207
  {
1887
- name: "global";
1888
- writable: true;
1889
- pda: {
1890
- seeds: [
2208
+ "name": "global",
2209
+ "writable": true,
2210
+ "pda": {
2211
+ "seeds": [
1891
2212
  {
1892
- kind: "const";
1893
- value: [103, 108, 111, 98, 97, 108];
1894
- },
1895
- ];
1896
- };
2213
+ "kind": "const",
2214
+ "value": [
2215
+ 103,
2216
+ 108,
2217
+ 111,
2218
+ 98,
2219
+ 97,
2220
+ 108
2221
+ ]
2222
+ }
2223
+ ]
2224
+ }
1897
2225
  },
1898
2226
  {
1899
- name: "authority";
1900
- signer: true;
1901
- relations: ["global"];
2227
+ "name": "authority",
2228
+ "signer": true,
2229
+ "relations": [
2230
+ "global"
2231
+ ]
1902
2232
  },
1903
2233
  {
1904
- name: "newAuthority";
2234
+ "name": "newAuthority"
1905
2235
  },
1906
2236
  {
1907
- name: "eventAuthority";
1908
- pda: {
1909
- seeds: [
2237
+ "name": "eventAuthority",
2238
+ "pda": {
2239
+ "seeds": [
1910
2240
  {
1911
- kind: "const";
1912
- value: [
2241
+ "kind": "const",
2242
+ "value": [
1913
2243
  95,
1914
2244
  95,
1915
2245
  101,
@@ -1926,710 +2256,881 @@ export type Pump = {
1926
2256
  114,
1927
2257
  105,
1928
2258
  116,
1929
- 121,
1930
- ];
1931
- },
1932
- ];
1933
- };
1934
- },
1935
- {
1936
- name: "program";
1937
- },
1938
- ];
1939
- args: [];
2259
+ 121
2260
+ ]
2261
+ }
2262
+ ]
2263
+ }
2264
+ },
2265
+ {
2266
+ "name": "program"
2267
+ }
2268
+ ],
2269
+ "args": []
2270
+ }
2271
+ ],
2272
+ "accounts": [
2273
+ {
2274
+ "name": "bondingCurve",
2275
+ "discriminator": [
2276
+ 23,
2277
+ 183,
2278
+ 248,
2279
+ 55,
2280
+ 96,
2281
+ 216,
2282
+ 172,
2283
+ 96
2284
+ ]
2285
+ },
2286
+ {
2287
+ "name": "global",
2288
+ "discriminator": [
2289
+ 167,
2290
+ 232,
2291
+ 232,
2292
+ 177,
2293
+ 200,
2294
+ 108,
2295
+ 114,
2296
+ 127
2297
+ ]
2298
+ }
2299
+ ],
2300
+ "events": [
2301
+ {
2302
+ "name": "adminSetCreatorEvent",
2303
+ "discriminator": [
2304
+ 64,
2305
+ 69,
2306
+ 192,
2307
+ 104,
2308
+ 29,
2309
+ 30,
2310
+ 25,
2311
+ 107
2312
+ ]
2313
+ },
2314
+ {
2315
+ "name": "collectCreatorFeeEvent",
2316
+ "discriminator": [
2317
+ 122,
2318
+ 2,
2319
+ 127,
2320
+ 1,
2321
+ 14,
2322
+ 191,
2323
+ 12,
2324
+ 175
2325
+ ]
2326
+ },
2327
+ {
2328
+ "name": "completeEvent",
2329
+ "discriminator": [
2330
+ 95,
2331
+ 114,
2332
+ 97,
2333
+ 156,
2334
+ 212,
2335
+ 46,
2336
+ 152,
2337
+ 8
2338
+ ]
2339
+ },
2340
+ {
2341
+ "name": "completePumpAmmMigrationEvent",
2342
+ "discriminator": [
2343
+ 189,
2344
+ 233,
2345
+ 93,
2346
+ 185,
2347
+ 92,
2348
+ 148,
2349
+ 234,
2350
+ 148
2351
+ ]
2352
+ },
2353
+ {
2354
+ "name": "createEvent",
2355
+ "discriminator": [
2356
+ 27,
2357
+ 114,
2358
+ 169,
2359
+ 77,
2360
+ 222,
2361
+ 235,
2362
+ 99,
2363
+ 118
2364
+ ]
2365
+ },
2366
+ {
2367
+ "name": "extendAccountEvent",
2368
+ "discriminator": [
2369
+ 97,
2370
+ 97,
2371
+ 215,
2372
+ 144,
2373
+ 93,
2374
+ 146,
2375
+ 22,
2376
+ 124
2377
+ ]
2378
+ },
2379
+ {
2380
+ "name": "setCreatorEvent",
2381
+ "discriminator": [
2382
+ 237,
2383
+ 52,
2384
+ 123,
2385
+ 37,
2386
+ 245,
2387
+ 251,
2388
+ 72,
2389
+ 210
2390
+ ]
2391
+ },
2392
+ {
2393
+ "name": "setMetaplexCreatorEvent",
2394
+ "discriminator": [
2395
+ 142,
2396
+ 203,
2397
+ 6,
2398
+ 32,
2399
+ 127,
2400
+ 105,
2401
+ 191,
2402
+ 162
2403
+ ]
2404
+ },
2405
+ {
2406
+ "name": "setParamsEvent",
2407
+ "discriminator": [
2408
+ 223,
2409
+ 195,
2410
+ 159,
2411
+ 246,
2412
+ 62,
2413
+ 48,
2414
+ 143,
2415
+ 131
2416
+ ]
2417
+ },
2418
+ {
2419
+ "name": "tradeEvent",
2420
+ "discriminator": [
2421
+ 189,
2422
+ 219,
2423
+ 127,
2424
+ 211,
2425
+ 78,
2426
+ 230,
2427
+ 97,
2428
+ 238
2429
+ ]
1940
2430
  },
1941
- ];
1942
- accounts: [
1943
2431
  {
1944
- name: "bondingCurve";
1945
- discriminator: [23, 183, 248, 55, 96, 216, 172, 96];
1946
- },
2432
+ "name": "updateGlobalAuthorityEvent",
2433
+ "discriminator": [
2434
+ 182,
2435
+ 195,
2436
+ 137,
2437
+ 42,
2438
+ 35,
2439
+ 206,
2440
+ 207,
2441
+ 247
2442
+ ]
2443
+ }
2444
+ ],
2445
+ "errors": [
1947
2446
  {
1948
- name: "global";
1949
- discriminator: [167, 232, 232, 177, 200, 108, 114, 127];
2447
+ "code": 6000,
2448
+ "name": "notAuthorized",
2449
+ "msg": "The given account is not authorized to execute this instruction."
1950
2450
  },
1951
- ];
1952
- events: [
1953
2451
  {
1954
- name: "collectCreatorFeeEvent";
1955
- discriminator: [122, 2, 127, 1, 14, 191, 12, 175];
2452
+ "code": 6001,
2453
+ "name": "alreadyInitialized",
2454
+ "msg": "The program is already initialized."
1956
2455
  },
1957
2456
  {
1958
- name: "completeEvent";
1959
- discriminator: [95, 114, 97, 156, 212, 46, 152, 8];
2457
+ "code": 6002,
2458
+ "name": "tooMuchSolRequired",
2459
+ "msg": "slippage: Too much SOL required to buy the given amount of tokens."
1960
2460
  },
1961
2461
  {
1962
- name: "completePumpAmmMigrationEvent";
1963
- discriminator: [189, 233, 93, 185, 92, 148, 234, 148];
2462
+ "code": 6003,
2463
+ "name": "tooLittleSolReceived",
2464
+ "msg": "slippage: Too little SOL received to sell the given amount of tokens."
1964
2465
  },
1965
2466
  {
1966
- name: "createEvent";
1967
- discriminator: [27, 114, 169, 77, 222, 235, 99, 118];
2467
+ "code": 6004,
2468
+ "name": "mintDoesNotMatchBondingCurve",
2469
+ "msg": "The mint does not match the bonding curve."
1968
2470
  },
1969
2471
  {
1970
- name: "extendAccountEvent";
1971
- discriminator: [97, 97, 215, 144, 93, 146, 22, 124];
2472
+ "code": 6005,
2473
+ "name": "bondingCurveComplete",
2474
+ "msg": "The bonding curve has completed and liquidity migrated to raydium."
1972
2475
  },
1973
2476
  {
1974
- name: "setCreatorEvent";
1975
- discriminator: [237, 52, 123, 37, 245, 251, 72, 210];
2477
+ "code": 6006,
2478
+ "name": "bondingCurveNotComplete",
2479
+ "msg": "The bonding curve has not completed."
1976
2480
  },
1977
2481
  {
1978
- name: "setMetaplexCreatorEvent";
1979
- discriminator: [142, 203, 6, 32, 127, 105, 191, 162];
2482
+ "code": 6007,
2483
+ "name": "notInitialized",
2484
+ "msg": "The program is not initialized."
1980
2485
  },
1981
2486
  {
1982
- name: "setParamsEvent";
1983
- discriminator: [223, 195, 159, 246, 62, 48, 143, 131];
2487
+ "code": 6008,
2488
+ "name": "withdrawTooFrequent",
2489
+ "msg": "Withdraw too frequent"
1984
2490
  },
1985
2491
  {
1986
- name: "tradeEvent";
1987
- discriminator: [189, 219, 127, 211, 78, 230, 97, 238];
2492
+ "code": 6009,
2493
+ "name": "newSizeShouldBeGreaterThanCurrentSize",
2494
+ "msg": "new_size should be > current_size"
1988
2495
  },
1989
2496
  {
1990
- name: "updateGlobalAuthorityEvent";
1991
- discriminator: [182, 195, 137, 42, 35, 206, 207, 247];
2497
+ "code": 6010,
2498
+ "name": "accountTypeNotSupported",
2499
+ "msg": "Account type not supported"
1992
2500
  },
1993
- ];
1994
- errors: [
1995
2501
  {
1996
- code: 6000;
1997
- name: "notAuthorized";
1998
- msg: "The given account is not authorized to execute this instruction.";
2502
+ "code": 6011,
2503
+ "name": "initialRealTokenReservesShouldBeLessThanTokenTotalSupply",
2504
+ "msg": "initial_real_token_reserves should be less than token_total_supply"
1999
2505
  },
2000
2506
  {
2001
- code: 6001;
2002
- name: "alreadyInitialized";
2003
- msg: "The program is already initialized.";
2507
+ "code": 6012,
2508
+ "name": "initialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves",
2509
+ "msg": "initial_virtual_token_reserves should be greater than initial_real_token_reserves"
2004
2510
  },
2005
2511
  {
2006
- code: 6002;
2007
- name: "tooMuchSolRequired";
2008
- msg: "slippage: Too much SOL required to buy the given amount of tokens.";
2512
+ "code": 6013,
2513
+ "name": "feeBasisPointsGreaterThanMaximum",
2514
+ "msg": "fee_basis_points greater than maximum"
2009
2515
  },
2010
2516
  {
2011
- code: 6003;
2012
- name: "tooLittleSolReceived";
2013
- msg: "slippage: Too little SOL received to sell the given amount of tokens.";
2517
+ "code": 6014,
2518
+ "name": "allZerosWithdrawAuthority",
2519
+ "msg": "Withdraw authority cannot be set to System Program ID"
2014
2520
  },
2015
2521
  {
2016
- code: 6004;
2017
- name: "mintDoesNotMatchBondingCurve";
2018
- msg: "The mint does not match the bonding curve.";
2522
+ "code": 6015,
2523
+ "name": "poolMigrationFeeShouldBeLessThanFinalRealSolReserves",
2524
+ "msg": "pool_migration_fee should be less than final_real_sol_reserves"
2019
2525
  },
2020
2526
  {
2021
- code: 6005;
2022
- name: "bondingCurveComplete";
2023
- msg: "The bonding curve has completed and liquidity migrated to raydium.";
2527
+ "code": 6016,
2528
+ "name": "poolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees",
2529
+ "msg": "pool_migration_fee should be greater than creator_fee + MAX_MIGRATE_FEES"
2024
2530
  },
2025
2531
  {
2026
- code: 6006;
2027
- name: "bondingCurveNotComplete";
2028
- msg: "The bonding curve has not completed.";
2532
+ "code": 6017,
2533
+ "name": "disabledWithdraw",
2534
+ "msg": "Migrate instruction is disabled"
2029
2535
  },
2030
2536
  {
2031
- code: 6007;
2032
- name: "notInitialized";
2033
- msg: "The program is not initialized.";
2537
+ "code": 6018,
2538
+ "name": "disabledMigrate",
2539
+ "msg": "Migrate instruction is disabled"
2034
2540
  },
2035
2541
  {
2036
- code: 6008;
2037
- name: "withdrawTooFrequent";
2038
- msg: "Withdraw too frequent";
2542
+ "code": 6019,
2543
+ "name": "invalidCreator",
2544
+ "msg": "Invalid creator pubkey"
2039
2545
  },
2040
2546
  {
2041
- code: 6009;
2042
- name: "newSizeShouldBeGreaterThanCurrentSize";
2043
- msg: "new_size should be > current_size";
2547
+ "code": 6020,
2548
+ "name": "buyZeroAmount",
2549
+ "msg": "Buy zero amount"
2044
2550
  },
2045
2551
  {
2046
- code: 6010;
2047
- name: "accountTypeNotSupported";
2048
- msg: "Account type not supported";
2552
+ "code": 6021,
2553
+ "name": "notEnoughTokensToBuy",
2554
+ "msg": "Not enough tokens to buy"
2049
2555
  },
2050
2556
  {
2051
- code: 6011;
2052
- name: "initialRealTokenReservesShouldBeLessThanTokenTotalSupply";
2053
- msg: "initial_real_token_reserves should be less than token_total_supply";
2557
+ "code": 6022,
2558
+ "name": "sellZeroAmount",
2559
+ "msg": "Sell zero amount"
2054
2560
  },
2055
2561
  {
2056
- code: 6012;
2057
- name: "initialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves";
2058
- msg: "initial_virtual_token_reserves should be greater than initial_real_token_reserves";
2562
+ "code": 6023,
2563
+ "name": "notEnoughTokensToSell",
2564
+ "msg": "Not enough tokens to sell"
2059
2565
  },
2060
2566
  {
2061
- code: 6013;
2062
- name: "feeBasisPointsGreaterThanMaximum";
2063
- msg: "fee_basis_points greater than maximum";
2567
+ "code": 6024,
2568
+ "name": "overflow",
2569
+ "msg": "overflow"
2064
2570
  },
2065
2571
  {
2066
- code: 6014;
2067
- name: "allZerosWithdrawAuthority";
2068
- msg: "Withdraw authority cannot be set to System Program ID";
2572
+ "code": 6025,
2573
+ "name": "truncation",
2574
+ "msg": "truncation"
2069
2575
  },
2070
2576
  {
2071
- code: 6015;
2072
- name: "poolMigrationFeeShouldBeLessThanFinalRealSolReserves";
2073
- msg: "pool_migration_fee should be less than final_real_sol_reserves";
2577
+ "code": 6026,
2578
+ "name": "divisionByZero",
2579
+ "msg": "Division by zero"
2074
2580
  },
2075
2581
  {
2076
- code: 6016;
2077
- name: "poolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees";
2078
- msg: "pool_migration_fee should be greater than creator_fee + MAX_MIGRATE_FEES";
2582
+ "code": 6027,
2583
+ "name": "notEnoughRemainingAccounts",
2584
+ "msg": "Not enough remaining accounts"
2079
2585
  },
2080
2586
  {
2081
- code: 6017;
2082
- name: "disabledWithdraw";
2083
- msg: "Migrate instruction is disabled";
2587
+ "code": 6028,
2588
+ "name": "allFeeRecipientsShouldBeNonZero",
2589
+ "msg": "All fee recipients should be non-zero"
2084
2590
  },
2085
2591
  {
2086
- code: 6018;
2087
- name: "disabledMigrate";
2088
- msg: "Migrate instruction is disabled";
2592
+ "code": 6029,
2593
+ "name": "unsortedNotUniqueFeeRecipients",
2594
+ "msg": "Unsorted or not unique fee recipients"
2089
2595
  },
2090
2596
  {
2091
- code: 6019;
2092
- name: "invalidCreator";
2093
- msg: "Invalid creator pubkey";
2094
- },
2095
- {
2096
- code: 6020;
2097
- name: "buyZeroAmount";
2098
- msg: "Buy zero amount";
2099
- },
2100
- {
2101
- code: 6021;
2102
- name: "notEnoughTokensToBuy";
2103
- msg: "Not enough tokens to buy";
2104
- },
2105
- {
2106
- code: 6022;
2107
- name: "sellZeroAmount";
2108
- msg: "Sell zero amount";
2109
- },
2597
+ "code": 6030,
2598
+ "name": "creatorShouldNotBeZero",
2599
+ "msg": "Creator should not be zero"
2600
+ }
2601
+ ],
2602
+ "types": [
2110
2603
  {
2111
- code: 6023;
2112
- name: "notEnoughTokensToSell";
2113
- msg: "Not enough tokens to sell";
2114
- },
2115
- {
2116
- code: 6024;
2117
- name: "overflow";
2118
- msg: "overflow";
2119
- },
2120
- {
2121
- code: 6025;
2122
- name: "truncation";
2123
- msg: "truncation";
2124
- },
2125
- {
2126
- code: 6026;
2127
- name: "divisionByZero";
2128
- msg: "Division by zero";
2129
- },
2130
- {
2131
- code: 6027;
2132
- name: "notEnoughRemainingAccounts";
2133
- msg: "Not enough remaining accounts";
2134
- },
2135
- {
2136
- code: 6028;
2137
- name: "allFeeRecipientsShouldBeNonZero";
2138
- msg: "All fee recipients should be non-zero";
2139
- },
2140
- {
2141
- code: 6029;
2142
- name: "unsortedNotUniqueFeeRecipients";
2143
- msg: "Unsorted or not unique fee recipients";
2144
- },
2145
- {
2146
- code: 6030;
2147
- name: "creatorShouldNotBeZero";
2148
- msg: "Creator should not be zero";
2604
+ "name": "adminSetCreatorEvent",
2605
+ "type": {
2606
+ "kind": "struct",
2607
+ "fields": [
2608
+ {
2609
+ "name": "timestamp",
2610
+ "type": "i64"
2611
+ },
2612
+ {
2613
+ "name": "adminSetCreatorAuthority",
2614
+ "type": "pubkey"
2615
+ },
2616
+ {
2617
+ "name": "mint",
2618
+ "type": "pubkey"
2619
+ },
2620
+ {
2621
+ "name": "bondingCurve",
2622
+ "type": "pubkey"
2623
+ },
2624
+ {
2625
+ "name": "oldCreator",
2626
+ "type": "pubkey"
2627
+ },
2628
+ {
2629
+ "name": "newCreator",
2630
+ "type": "pubkey"
2631
+ }
2632
+ ]
2633
+ }
2149
2634
  },
2150
- ];
2151
- types: [
2152
2635
  {
2153
- name: "bondingCurve";
2154
- type: {
2155
- kind: "struct";
2156
- fields: [
2636
+ "name": "bondingCurve",
2637
+ "type": {
2638
+ "kind": "struct",
2639
+ "fields": [
2157
2640
  {
2158
- name: "virtualTokenReserves";
2159
- type: "u64";
2641
+ "name": "virtualTokenReserves",
2642
+ "type": "u64"
2160
2643
  },
2161
2644
  {
2162
- name: "virtualSolReserves";
2163
- type: "u64";
2645
+ "name": "virtualSolReserves",
2646
+ "type": "u64"
2164
2647
  },
2165
2648
  {
2166
- name: "realTokenReserves";
2167
- type: "u64";
2649
+ "name": "realTokenReserves",
2650
+ "type": "u64"
2168
2651
  },
2169
2652
  {
2170
- name: "realSolReserves";
2171
- type: "u64";
2653
+ "name": "realSolReserves",
2654
+ "type": "u64"
2172
2655
  },
2173
2656
  {
2174
- name: "tokenTotalSupply";
2175
- type: "u64";
2657
+ "name": "tokenTotalSupply",
2658
+ "type": "u64"
2176
2659
  },
2177
2660
  {
2178
- name: "complete";
2179
- type: "bool";
2661
+ "name": "complete",
2662
+ "type": "bool"
2180
2663
  },
2181
2664
  {
2182
- name: "creator";
2183
- type: "pubkey";
2184
- },
2185
- ];
2186
- };
2665
+ "name": "creator",
2666
+ "type": "pubkey"
2667
+ }
2668
+ ]
2669
+ }
2187
2670
  },
2188
2671
  {
2189
- name: "collectCreatorFeeEvent";
2190
- type: {
2191
- kind: "struct";
2192
- fields: [
2672
+ "name": "collectCreatorFeeEvent",
2673
+ "type": {
2674
+ "kind": "struct",
2675
+ "fields": [
2193
2676
  {
2194
- name: "timestamp";
2195
- type: "i64";
2677
+ "name": "timestamp",
2678
+ "type": "i64"
2196
2679
  },
2197
2680
  {
2198
- name: "creator";
2199
- type: "pubkey";
2681
+ "name": "creator",
2682
+ "type": "pubkey"
2200
2683
  },
2201
2684
  {
2202
- name: "creatorFee";
2203
- type: "u64";
2204
- },
2205
- ];
2206
- };
2685
+ "name": "creatorFee",
2686
+ "type": "u64"
2687
+ }
2688
+ ]
2689
+ }
2207
2690
  },
2208
2691
  {
2209
- name: "completeEvent";
2210
- type: {
2211
- kind: "struct";
2212
- fields: [
2692
+ "name": "completeEvent",
2693
+ "type": {
2694
+ "kind": "struct",
2695
+ "fields": [
2213
2696
  {
2214
- name: "user";
2215
- type: "pubkey";
2697
+ "name": "user",
2698
+ "type": "pubkey"
2216
2699
  },
2217
2700
  {
2218
- name: "mint";
2219
- type: "pubkey";
2701
+ "name": "mint",
2702
+ "type": "pubkey"
2220
2703
  },
2221
2704
  {
2222
- name: "bondingCurve";
2223
- type: "pubkey";
2705
+ "name": "bondingCurve",
2706
+ "type": "pubkey"
2224
2707
  },
2225
2708
  {
2226
- name: "timestamp";
2227
- type: "i64";
2228
- },
2229
- ];
2230
- };
2709
+ "name": "timestamp",
2710
+ "type": "i64"
2711
+ }
2712
+ ]
2713
+ }
2231
2714
  },
2232
2715
  {
2233
- name: "completePumpAmmMigrationEvent";
2234
- type: {
2235
- kind: "struct";
2236
- fields: [
2716
+ "name": "completePumpAmmMigrationEvent",
2717
+ "type": {
2718
+ "kind": "struct",
2719
+ "fields": [
2237
2720
  {
2238
- name: "user";
2239
- type: "pubkey";
2721
+ "name": "user",
2722
+ "type": "pubkey"
2240
2723
  },
2241
2724
  {
2242
- name: "mint";
2243
- type: "pubkey";
2725
+ "name": "mint",
2726
+ "type": "pubkey"
2244
2727
  },
2245
2728
  {
2246
- name: "mintAmount";
2247
- type: "u64";
2729
+ "name": "mintAmount",
2730
+ "type": "u64"
2248
2731
  },
2249
2732
  {
2250
- name: "solAmount";
2251
- type: "u64";
2733
+ "name": "solAmount",
2734
+ "type": "u64"
2252
2735
  },
2253
2736
  {
2254
- name: "poolMigrationFee";
2255
- type: "u64";
2737
+ "name": "poolMigrationFee",
2738
+ "type": "u64"
2256
2739
  },
2257
2740
  {
2258
- name: "bondingCurve";
2259
- type: "pubkey";
2741
+ "name": "bondingCurve",
2742
+ "type": "pubkey"
2260
2743
  },
2261
2744
  {
2262
- name: "timestamp";
2263
- type: "i64";
2745
+ "name": "timestamp",
2746
+ "type": "i64"
2264
2747
  },
2265
2748
  {
2266
- name: "pool";
2267
- type: "pubkey";
2268
- },
2269
- ];
2270
- };
2749
+ "name": "pool",
2750
+ "type": "pubkey"
2751
+ }
2752
+ ]
2753
+ }
2271
2754
  },
2272
2755
  {
2273
- name: "createEvent";
2274
- type: {
2275
- kind: "struct";
2276
- fields: [
2756
+ "name": "createEvent",
2757
+ "type": {
2758
+ "kind": "struct",
2759
+ "fields": [
2277
2760
  {
2278
- name: "name";
2279
- type: "string";
2761
+ "name": "name",
2762
+ "type": "string"
2280
2763
  },
2281
2764
  {
2282
- name: "symbol";
2283
- type: "string";
2765
+ "name": "symbol",
2766
+ "type": "string"
2284
2767
  },
2285
2768
  {
2286
- name: "uri";
2287
- type: "string";
2769
+ "name": "uri",
2770
+ "type": "string"
2288
2771
  },
2289
2772
  {
2290
- name: "mint";
2291
- type: "pubkey";
2773
+ "name": "mint",
2774
+ "type": "pubkey"
2292
2775
  },
2293
2776
  {
2294
- name: "bondingCurve";
2295
- type: "pubkey";
2777
+ "name": "bondingCurve",
2778
+ "type": "pubkey"
2296
2779
  },
2297
2780
  {
2298
- name: "user";
2299
- type: "pubkey";
2781
+ "name": "user",
2782
+ "type": "pubkey"
2300
2783
  },
2301
2784
  {
2302
- name: "creator";
2303
- type: "pubkey";
2785
+ "name": "creator",
2786
+ "type": "pubkey"
2304
2787
  },
2305
2788
  {
2306
- name: "timestamp";
2307
- type: "i64";
2789
+ "name": "timestamp",
2790
+ "type": "i64"
2308
2791
  },
2309
2792
  {
2310
- name: "virtualTokenReserves";
2311
- type: "u64";
2793
+ "name": "virtualTokenReserves",
2794
+ "type": "u64"
2312
2795
  },
2313
2796
  {
2314
- name: "virtualSolReserves";
2315
- type: "u64";
2797
+ "name": "virtualSolReserves",
2798
+ "type": "u64"
2316
2799
  },
2317
2800
  {
2318
- name: "realTokenReserves";
2319
- type: "u64";
2801
+ "name": "realTokenReserves",
2802
+ "type": "u64"
2320
2803
  },
2321
2804
  {
2322
- name: "tokenTotalSupply";
2323
- type: "u64";
2324
- },
2325
- ];
2326
- };
2805
+ "name": "tokenTotalSupply",
2806
+ "type": "u64"
2807
+ }
2808
+ ]
2809
+ }
2327
2810
  },
2328
2811
  {
2329
- name: "extendAccountEvent";
2330
- type: {
2331
- kind: "struct";
2332
- fields: [
2812
+ "name": "extendAccountEvent",
2813
+ "type": {
2814
+ "kind": "struct",
2815
+ "fields": [
2333
2816
  {
2334
- name: "account";
2335
- type: "pubkey";
2817
+ "name": "account",
2818
+ "type": "pubkey"
2336
2819
  },
2337
2820
  {
2338
- name: "user";
2339
- type: "pubkey";
2821
+ "name": "user",
2822
+ "type": "pubkey"
2340
2823
  },
2341
2824
  {
2342
- name: "currentSize";
2343
- type: "u64";
2825
+ "name": "currentSize",
2826
+ "type": "u64"
2344
2827
  },
2345
2828
  {
2346
- name: "newSize";
2347
- type: "u64";
2829
+ "name": "newSize",
2830
+ "type": "u64"
2348
2831
  },
2349
2832
  {
2350
- name: "timestamp";
2351
- type: "i64";
2352
- },
2353
- ];
2354
- };
2833
+ "name": "timestamp",
2834
+ "type": "i64"
2835
+ }
2836
+ ]
2837
+ }
2355
2838
  },
2356
2839
  {
2357
- name: "global";
2358
- type: {
2359
- kind: "struct";
2360
- fields: [
2840
+ "name": "global",
2841
+ "type": {
2842
+ "kind": "struct",
2843
+ "fields": [
2361
2844
  {
2362
- name: "initialized";
2363
- docs: ["Unused"];
2364
- type: "bool";
2845
+ "name": "initialized",
2846
+ "docs": [
2847
+ "Unused"
2848
+ ],
2849
+ "type": "bool"
2365
2850
  },
2366
2851
  {
2367
- name: "authority";
2368
- type: "pubkey";
2852
+ "name": "authority",
2853
+ "type": "pubkey"
2369
2854
  },
2370
2855
  {
2371
- name: "feeRecipient";
2372
- type: "pubkey";
2856
+ "name": "feeRecipient",
2857
+ "type": "pubkey"
2373
2858
  },
2374
2859
  {
2375
- name: "initialVirtualTokenReserves";
2376
- type: "u64";
2860
+ "name": "initialVirtualTokenReserves",
2861
+ "type": "u64"
2377
2862
  },
2378
2863
  {
2379
- name: "initialVirtualSolReserves";
2380
- type: "u64";
2864
+ "name": "initialVirtualSolReserves",
2865
+ "type": "u64"
2381
2866
  },
2382
2867
  {
2383
- name: "initialRealTokenReserves";
2384
- type: "u64";
2868
+ "name": "initialRealTokenReserves",
2869
+ "type": "u64"
2385
2870
  },
2386
2871
  {
2387
- name: "tokenTotalSupply";
2388
- type: "u64";
2872
+ "name": "tokenTotalSupply",
2873
+ "type": "u64"
2389
2874
  },
2390
2875
  {
2391
- name: "feeBasisPoints";
2392
- type: "u64";
2876
+ "name": "feeBasisPoints",
2877
+ "type": "u64"
2393
2878
  },
2394
2879
  {
2395
- name: "withdrawAuthority";
2396
- type: "pubkey";
2880
+ "name": "withdrawAuthority",
2881
+ "type": "pubkey"
2397
2882
  },
2398
2883
  {
2399
- name: "enableMigrate";
2400
- docs: ["Unused"];
2401
- type: "bool";
2884
+ "name": "enableMigrate",
2885
+ "docs": [
2886
+ "Unused"
2887
+ ],
2888
+ "type": "bool"
2402
2889
  },
2403
2890
  {
2404
- name: "poolMigrationFee";
2405
- type: "u64";
2891
+ "name": "poolMigrationFee",
2892
+ "type": "u64"
2406
2893
  },
2407
2894
  {
2408
- name: "creatorFeeBasisPoints";
2409
- type: "u64";
2895
+ "name": "creatorFeeBasisPoints",
2896
+ "type": "u64"
2410
2897
  },
2411
2898
  {
2412
- name: "feeRecipients";
2413
- type: {
2414
- array: ["pubkey", 7];
2415
- };
2899
+ "name": "feeRecipients",
2900
+ "type": {
2901
+ "array": [
2902
+ "pubkey",
2903
+ 7
2904
+ ]
2905
+ }
2416
2906
  },
2417
2907
  {
2418
- name: "setCreatorAuthority";
2419
- type: "pubkey";
2908
+ "name": "setCreatorAuthority",
2909
+ "type": "pubkey"
2420
2910
  },
2421
- ];
2422
- };
2911
+ {
2912
+ "name": "adminSetCreatorAuthority",
2913
+ "type": "pubkey"
2914
+ }
2915
+ ]
2916
+ }
2423
2917
  },
2424
2918
  {
2425
- name: "setCreatorEvent";
2426
- type: {
2427
- kind: "struct";
2428
- fields: [
2919
+ "name": "setCreatorEvent",
2920
+ "type": {
2921
+ "kind": "struct",
2922
+ "fields": [
2429
2923
  {
2430
- name: "timestamp";
2431
- type: "i64";
2924
+ "name": "timestamp",
2925
+ "type": "i64"
2432
2926
  },
2433
2927
  {
2434
- name: "mint";
2435
- type: "pubkey";
2928
+ "name": "mint",
2929
+ "type": "pubkey"
2436
2930
  },
2437
2931
  {
2438
- name: "bondingCurve";
2439
- type: "pubkey";
2932
+ "name": "bondingCurve",
2933
+ "type": "pubkey"
2440
2934
  },
2441
2935
  {
2442
- name: "creator";
2443
- type: "pubkey";
2444
- },
2445
- ];
2446
- };
2936
+ "name": "creator",
2937
+ "type": "pubkey"
2938
+ }
2939
+ ]
2940
+ }
2447
2941
  },
2448
2942
  {
2449
- name: "setMetaplexCreatorEvent";
2450
- type: {
2451
- kind: "struct";
2452
- fields: [
2943
+ "name": "setMetaplexCreatorEvent",
2944
+ "type": {
2945
+ "kind": "struct",
2946
+ "fields": [
2453
2947
  {
2454
- name: "timestamp";
2455
- type: "i64";
2948
+ "name": "timestamp",
2949
+ "type": "i64"
2456
2950
  },
2457
2951
  {
2458
- name: "mint";
2459
- type: "pubkey";
2952
+ "name": "mint",
2953
+ "type": "pubkey"
2460
2954
  },
2461
2955
  {
2462
- name: "bondingCurve";
2463
- type: "pubkey";
2956
+ "name": "bondingCurve",
2957
+ "type": "pubkey"
2464
2958
  },
2465
2959
  {
2466
- name: "metadata";
2467
- type: "pubkey";
2960
+ "name": "metadata",
2961
+ "type": "pubkey"
2468
2962
  },
2469
2963
  {
2470
- name: "creator";
2471
- type: "pubkey";
2472
- },
2473
- ];
2474
- };
2964
+ "name": "creator",
2965
+ "type": "pubkey"
2966
+ }
2967
+ ]
2968
+ }
2475
2969
  },
2476
2970
  {
2477
- name: "setParamsEvent";
2478
- type: {
2479
- kind: "struct";
2480
- fields: [
2971
+ "name": "setParamsEvent",
2972
+ "type": {
2973
+ "kind": "struct",
2974
+ "fields": [
2481
2975
  {
2482
- name: "initialVirtualTokenReserves";
2483
- type: "u64";
2976
+ "name": "initialVirtualTokenReserves",
2977
+ "type": "u64"
2484
2978
  },
2485
2979
  {
2486
- name: "initialVirtualSolReserves";
2487
- type: "u64";
2980
+ "name": "initialVirtualSolReserves",
2981
+ "type": "u64"
2488
2982
  },
2489
2983
  {
2490
- name: "initialRealTokenReserves";
2491
- type: "u64";
2984
+ "name": "initialRealTokenReserves",
2985
+ "type": "u64"
2492
2986
  },
2493
2987
  {
2494
- name: "finalRealSolReserves";
2495
- type: "u64";
2988
+ "name": "finalRealSolReserves",
2989
+ "type": "u64"
2496
2990
  },
2497
2991
  {
2498
- name: "tokenTotalSupply";
2499
- type: "u64";
2992
+ "name": "tokenTotalSupply",
2993
+ "type": "u64"
2500
2994
  },
2501
2995
  {
2502
- name: "feeBasisPoints";
2503
- type: "u64";
2996
+ "name": "feeBasisPoints",
2997
+ "type": "u64"
2504
2998
  },
2505
2999
  {
2506
- name: "withdrawAuthority";
2507
- type: "pubkey";
3000
+ "name": "withdrawAuthority",
3001
+ "type": "pubkey"
2508
3002
  },
2509
3003
  {
2510
- name: "enableMigrate";
2511
- type: "bool";
3004
+ "name": "enableMigrate",
3005
+ "type": "bool"
2512
3006
  },
2513
3007
  {
2514
- name: "poolMigrationFee";
2515
- type: "u64";
3008
+ "name": "poolMigrationFee",
3009
+ "type": "u64"
2516
3010
  },
2517
3011
  {
2518
- name: "creatorFeeBasisPoints";
2519
- type: "u64";
3012
+ "name": "creatorFeeBasisPoints",
3013
+ "type": "u64"
2520
3014
  },
2521
3015
  {
2522
- name: "feeRecipients";
2523
- type: {
2524
- array: ["pubkey", 8];
2525
- };
3016
+ "name": "feeRecipients",
3017
+ "type": {
3018
+ "array": [
3019
+ "pubkey",
3020
+ 8
3021
+ ]
3022
+ }
2526
3023
  },
2527
3024
  {
2528
- name: "timestamp";
2529
- type: "i64";
3025
+ "name": "timestamp",
3026
+ "type": "i64"
2530
3027
  },
2531
3028
  {
2532
- name: "setCreatorAuthority";
2533
- type: "pubkey";
3029
+ "name": "setCreatorAuthority",
3030
+ "type": "pubkey"
2534
3031
  },
2535
- ];
2536
- };
3032
+ {
3033
+ "name": "adminSetCreatorAuthority",
3034
+ "type": "pubkey"
3035
+ }
3036
+ ]
3037
+ }
2537
3038
  },
2538
3039
  {
2539
- name: "tradeEvent";
2540
- type: {
2541
- kind: "struct";
2542
- fields: [
3040
+ "name": "tradeEvent",
3041
+ "type": {
3042
+ "kind": "struct",
3043
+ "fields": [
2543
3044
  {
2544
- name: "mint";
2545
- type: "pubkey";
3045
+ "name": "mint",
3046
+ "type": "pubkey"
2546
3047
  },
2547
3048
  {
2548
- name: "solAmount";
2549
- type: "u64";
3049
+ "name": "solAmount",
3050
+ "type": "u64"
2550
3051
  },
2551
3052
  {
2552
- name: "tokenAmount";
2553
- type: "u64";
3053
+ "name": "tokenAmount",
3054
+ "type": "u64"
2554
3055
  },
2555
3056
  {
2556
- name: "isBuy";
2557
- type: "bool";
3057
+ "name": "isBuy",
3058
+ "type": "bool"
2558
3059
  },
2559
3060
  {
2560
- name: "user";
2561
- type: "pubkey";
3061
+ "name": "user",
3062
+ "type": "pubkey"
2562
3063
  },
2563
3064
  {
2564
- name: "timestamp";
2565
- type: "i64";
3065
+ "name": "timestamp",
3066
+ "type": "i64"
2566
3067
  },
2567
3068
  {
2568
- name: "virtualSolReserves";
2569
- type: "u64";
3069
+ "name": "virtualSolReserves",
3070
+ "type": "u64"
2570
3071
  },
2571
3072
  {
2572
- name: "virtualTokenReserves";
2573
- type: "u64";
3073
+ "name": "virtualTokenReserves",
3074
+ "type": "u64"
2574
3075
  },
2575
3076
  {
2576
- name: "realSolReserves";
2577
- type: "u64";
3077
+ "name": "realSolReserves",
3078
+ "type": "u64"
2578
3079
  },
2579
3080
  {
2580
- name: "realTokenReserves";
2581
- type: "u64";
3081
+ "name": "realTokenReserves",
3082
+ "type": "u64"
2582
3083
  },
2583
3084
  {
2584
- name: "feeRecipient";
2585
- type: "pubkey";
3085
+ "name": "feeRecipient",
3086
+ "type": "pubkey"
2586
3087
  },
2587
3088
  {
2588
- name: "feeBasisPoints";
2589
- type: "u64";
3089
+ "name": "feeBasisPoints",
3090
+ "type": "u64"
2590
3091
  },
2591
3092
  {
2592
- name: "fee";
2593
- type: "u64";
3093
+ "name": "fee",
3094
+ "type": "u64"
2594
3095
  },
2595
3096
  {
2596
- name: "creator";
2597
- type: "pubkey";
3097
+ "name": "creator",
3098
+ "type": "pubkey"
2598
3099
  },
2599
3100
  {
2600
- name: "creatorFeeBasisPoints";
2601
- type: "u64";
3101
+ "name": "creatorFeeBasisPoints",
3102
+ "type": "u64"
2602
3103
  },
2603
3104
  {
2604
- name: "creatorFee";
2605
- type: "u64";
2606
- },
2607
- ];
2608
- };
3105
+ "name": "creatorFee",
3106
+ "type": "u64"
3107
+ }
3108
+ ]
3109
+ }
2609
3110
  },
2610
3111
  {
2611
- name: "updateGlobalAuthorityEvent";
2612
- type: {
2613
- kind: "struct";
2614
- fields: [
3112
+ "name": "updateGlobalAuthorityEvent",
3113
+ "type": {
3114
+ "kind": "struct",
3115
+ "fields": [
2615
3116
  {
2616
- name: "global";
2617
- type: "pubkey";
3117
+ "name": "global",
3118
+ "type": "pubkey"
2618
3119
  },
2619
3120
  {
2620
- name: "authority";
2621
- type: "pubkey";
3121
+ "name": "authority",
3122
+ "type": "pubkey"
2622
3123
  },
2623
3124
  {
2624
- name: "newAuthority";
2625
- type: "pubkey";
3125
+ "name": "newAuthority",
3126
+ "type": "pubkey"
2626
3127
  },
2627
3128
  {
2628
- name: "timestamp";
2629
- type: "i64";
2630
- },
2631
- ];
2632
- };
2633
- },
2634
- ];
3129
+ "name": "timestamp",
3130
+ "type": "i64"
3131
+ }
3132
+ ]
3133
+ }
3134
+ }
3135
+ ]
2635
3136
  };