@pump-fun/pump-sdk 1.20.0-devnet.2 → 1.20.0-devnet.4

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