@theliem/xmarket-sdk 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -469,258 +469,6 @@
469
469
  }
470
470
  ]
471
471
  },
472
- {
473
- "name": "claim_revenue",
474
- "discriminator": [
475
- 4,
476
- 22,
477
- 151,
478
- 70,
479
- 183,
480
- 79,
481
- 73,
482
- 189
483
- ],
484
- "accounts": [
485
- {
486
- "name": "creator",
487
- "docs": [
488
- "Must be the presale creator"
489
- ],
490
- "signer": true
491
- },
492
- {
493
- "name": "presale",
494
- "writable": true,
495
- "pda": {
496
- "seeds": [
497
- {
498
- "kind": "const",
499
- "value": [
500
- 112,
501
- 114,
502
- 101,
503
- 115,
504
- 97,
505
- 108,
506
- 101
507
- ]
508
- },
509
- {
510
- "kind": "account",
511
- "path": "presale.question_market_config",
512
- "account": "PresaleAccount"
513
- },
514
- {
515
- "kind": "account",
516
- "path": "presale.presale_index",
517
- "account": "PresaleAccount"
518
- }
519
- ]
520
- }
521
- },
522
- {
523
- "name": "presale_vault",
524
- "docs": [
525
- "Presale USDC vault (source)"
526
- ],
527
- "writable": true,
528
- "pda": {
529
- "seeds": [
530
- {
531
- "kind": "account",
532
- "path": "presale"
533
- },
534
- {
535
- "kind": "account",
536
- "path": "token_program"
537
- },
538
- {
539
- "kind": "account",
540
- "path": "currency_mint"
541
- }
542
- ],
543
- "program": {
544
- "kind": "const",
545
- "value": [
546
- 140,
547
- 151,
548
- 37,
549
- 143,
550
- 78,
551
- 36,
552
- 137,
553
- 241,
554
- 187,
555
- 61,
556
- 16,
557
- 41,
558
- 20,
559
- 142,
560
- 13,
561
- 131,
562
- 11,
563
- 90,
564
- 19,
565
- 153,
566
- 218,
567
- 255,
568
- 16,
569
- 132,
570
- 4,
571
- 142,
572
- 123,
573
- 216,
574
- 219,
575
- 233,
576
- 248,
577
- 89
578
- ]
579
- }
580
- }
581
- },
582
- {
583
- "name": "creator_currency_ata",
584
- "docs": [
585
- "Creator's USDC token account (destination)"
586
- ],
587
- "writable": true
588
- },
589
- {
590
- "name": "currency_mint"
591
- },
592
- {
593
- "name": "token_program",
594
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
595
- },
596
- {
597
- "name": "associated_token_program",
598
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
599
- },
600
- {
601
- "name": "system_program",
602
- "address": "11111111111111111111111111111111"
603
- }
604
- ],
605
- "args": []
606
- },
607
- {
608
- "name": "distribute_botmm_revenue",
609
- "discriminator": [
610
- 153,
611
- 117,
612
- 201,
613
- 183,
614
- 159,
615
- 38,
616
- 86,
617
- 167
618
- ],
619
- "accounts": [
620
- {
621
- "name": "presale",
622
- "writable": true,
623
- "pda": {
624
- "seeds": [
625
- {
626
- "kind": "const",
627
- "value": [
628
- 112,
629
- 114,
630
- 101,
631
- 115,
632
- 97,
633
- 108,
634
- 101
635
- ]
636
- },
637
- {
638
- "kind": "account",
639
- "path": "presale.question_market_config",
640
- "account": "PresaleAccount"
641
- },
642
- {
643
- "kind": "account",
644
- "path": "presale.presale_index",
645
- "account": "PresaleAccount"
646
- }
647
- ]
648
- }
649
- },
650
- {
651
- "name": "presale_vault",
652
- "writable": true,
653
- "pda": {
654
- "seeds": [
655
- {
656
- "kind": "account",
657
- "path": "presale"
658
- },
659
- {
660
- "kind": "account",
661
- "path": "token_program"
662
- },
663
- {
664
- "kind": "account",
665
- "path": "currency_mint"
666
- }
667
- ],
668
- "program": {
669
- "kind": "const",
670
- "value": [
671
- 140,
672
- 151,
673
- 37,
674
- 143,
675
- 78,
676
- 36,
677
- 137,
678
- 241,
679
- 187,
680
- 61,
681
- 16,
682
- 41,
683
- 20,
684
- 142,
685
- 13,
686
- 131,
687
- 11,
688
- 90,
689
- 19,
690
- 153,
691
- 218,
692
- 255,
693
- 16,
694
- 132,
695
- 4,
696
- 142,
697
- 123,
698
- 216,
699
- 219,
700
- 233,
701
- 248,
702
- 89
703
- ]
704
- }
705
- }
706
- },
707
- {
708
- "name": "currency_mint"
709
- },
710
- {
711
- "name": "botmm_token_account",
712
- "docs": [
713
- "BOTMM token account — receives 80% presale revenue"
714
- ],
715
- "writable": true
716
- },
717
- {
718
- "name": "token_program",
719
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
720
- }
721
- ],
722
- "args": []
723
- },
724
472
  {
725
473
  "name": "distribute_presale_revenue",
726
474
  "discriminator": [
@@ -774,7 +522,7 @@
774
522
  {
775
523
  "name": "presale_vault",
776
524
  "docs": [
777
- "Presale USDC vault (source)"
525
+ "Presale USDC vault (source) — closed after distribution"
778
526
  ],
779
527
  "writable": true,
780
528
  "pda": {
@@ -848,6 +596,20 @@
848
596
  ],
849
597
  "writable": true
850
598
  },
599
+ {
600
+ "name": "botmm_token_account",
601
+ "docs": [
602
+ "BOTMM token account (receives remaining ~80%)"
603
+ ],
604
+ "writable": true
605
+ },
606
+ {
607
+ "name": "payer",
608
+ "docs": [
609
+ "Receives lamports from closed presale_vault + presale PDA"
610
+ ],
611
+ "writable": true
612
+ },
851
613
  {
852
614
  "name": "token_program",
853
615
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
@@ -1424,19 +1186,6 @@
1424
1186
  }
1425
1187
  ],
1426
1188
  "events": [
1427
- {
1428
- "name": "BotmmRevenueDistributed",
1429
- "discriminator": [
1430
- 210,
1431
- 71,
1432
- 206,
1433
- 193,
1434
- 64,
1435
- 210,
1436
- 63,
1437
- 185
1438
- ]
1439
- },
1440
1189
  {
1441
1190
  "name": "Bought",
1442
1191
  "discriminator": [
@@ -1527,42 +1276,9 @@
1527
1276
  221,
1528
1277
  99
1529
1278
  ]
1530
- },
1531
- {
1532
- "name": "RevenueClaimed",
1533
- "discriminator": [
1534
- 5,
1535
- 254,
1536
- 104,
1537
- 87,
1538
- 133,
1539
- 137,
1540
- 45,
1541
- 116
1542
- ]
1543
1279
  }
1544
1280
  ],
1545
1281
  "types": [
1546
- {
1547
- "name": "BotmmRevenueDistributed",
1548
- "type": {
1549
- "kind": "struct",
1550
- "fields": [
1551
- {
1552
- "name": "presale",
1553
- "type": "pubkey"
1554
- },
1555
- {
1556
- "name": "botmm",
1557
- "type": "pubkey"
1558
- },
1559
- {
1560
- "name": "amount",
1561
- "type": "u64"
1562
- }
1563
- ]
1564
- }
1565
- },
1566
1282
  {
1567
1283
  "name": "Bought",
1568
1284
  "type": {
@@ -1866,7 +1582,7 @@
1866
1582
  "type": "u64"
1867
1583
  },
1868
1584
  {
1869
- "name": "creator_revenue",
1585
+ "name": "botmm_revenue",
1870
1586
  "type": "u64"
1871
1587
  }
1872
1588
  ]
@@ -1913,26 +1629,6 @@
1913
1629
  ]
1914
1630
  }
1915
1631
  },
1916
- {
1917
- "name": "RevenueClaimed",
1918
- "type": {
1919
- "kind": "struct",
1920
- "fields": [
1921
- {
1922
- "name": "presale",
1923
- "type": "pubkey"
1924
- },
1925
- {
1926
- "name": "creator",
1927
- "type": "pubkey"
1928
- },
1929
- {
1930
- "name": "amount",
1931
- "type": "u64"
1932
- }
1933
- ]
1934
- }
1935
- },
1936
1632
  {
1937
1633
  "name": "UserBuyRecord",
1938
1634
  "type": {
@@ -415,7 +415,7 @@
415
415
  {
416
416
  "name": "presale_vault",
417
417
  "docs": [
418
- "Presale USDC vault"
418
+ "Presale USDC vault — closed inside presale program"
419
419
  ],
420
420
  "writable": true
421
421
  },
@@ -436,6 +436,20 @@
436
436
  ],
437
437
  "writable": true
438
438
  },
439
+ {
440
+ "name": "botmm_token_account",
441
+ "docs": [
442
+ "BOTMM token account (receives ~80%)"
443
+ ],
444
+ "writable": true
445
+ },
446
+ {
447
+ "name": "payer",
448
+ "docs": [
449
+ "Receives lamports from closed presale_vault + presale PDA"
450
+ ],
451
+ "writable": true
452
+ },
439
453
  {
440
454
  "name": "presale_program",
441
455
  "address": "2Rnw1VoEtsUMQ7wkvYZjDehqSqRob6uNkeymDfvKrquB"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theliem/xmarket-sdk",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "description": "XMarket Prediction Market SDK for Solana",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -64,7 +64,7 @@
64
64
  "docs": [
65
65
  "Initialize a shared collateral vault for a given collateral mint (e.g. USDC).",
66
66
  "One vault per collateral type, shared across all conditions.",
67
- "Requires ctf_config authority only CTF owner can create vaults."
67
+ "Requires ctf_config authority \u2014 only CTF owner can create vaults."
68
68
  ],
69
69
  "discriminator": [
70
70
  48,
@@ -96,7 +96,7 @@
96
96
  {
97
97
  "name": "ctf_config",
98
98
  "docs": [
99
- "CTF config verifies authority is the CTF owner"
99
+ "CTF config \u2014 verifies authority is the CTF owner"
100
100
  ],
101
101
  "pda": {
102
102
  "seeds": [
@@ -230,7 +230,7 @@
230
230
  {
231
231
  "name": "payer",
232
232
  "docs": [
233
- "Pays tx fee (BE wallet user wallet needs zero SOL)"
233
+ "Pays tx fee (BE wallet \u2014 user wallet needs zero SOL)"
234
234
  ],
235
235
  "writable": true,
236
236
  "signer": true
@@ -479,7 +479,7 @@
479
479
  {
480
480
  "name": "clob_authority",
481
481
  "docs": [
482
- "CLOB config PDA signs via invoke_signed from CLOB program.",
482
+ "CLOB config PDA \u2014 signs via invoke_signed from CLOB program.",
483
483
  "Must match condition.authorized_clob."
484
484
  ],
485
485
  "signer": true
@@ -533,7 +533,7 @@
533
533
  {
534
534
  "name": "vault_token_account",
535
535
  "docs": [
536
- "Read-only balance checked to verify CLOB already deposited collateral."
536
+ "Read-only \u2014 balance checked to verify CLOB already deposited collateral."
537
537
  ]
538
538
  },
539
539
  {
@@ -650,7 +650,7 @@
650
650
  {
651
651
  "name": "condition",
652
652
  "docs": [
653
- "Condition PDA seeds: [CONDITION_SEED, oracle, question_id]"
653
+ "Condition PDA \u2014 seeds: [CONDITION_SEED, oracle, question_id]"
654
654
  ],
655
655
  "writable": true,
656
656
  "pda": {
@@ -683,7 +683,7 @@
683
683
  {
684
684
  "name": "yes_mint",
685
685
  "docs": [
686
- "YES Token-2022 mint deterministic PDA from [YES_MINT_SEED, condition]"
686
+ "YES Token-2022 mint \u2014 deterministic PDA from [YES_MINT_SEED, condition]"
687
687
  ],
688
688
  "writable": true,
689
689
  "pda": {
@@ -711,7 +711,7 @@
711
711
  {
712
712
  "name": "no_mint",
713
713
  "docs": [
714
- "NO Token-2022 mint deterministic PDA from [NO_MINT_SEED, condition]"
714
+ "NO Token-2022 mint \u2014 deterministic PDA from [NO_MINT_SEED, condition]"
715
715
  ],
716
716
  "writable": true,
717
717
  "pda": {
@@ -738,7 +738,7 @@
738
738
  {
739
739
  "name": "mint_authority",
740
740
  "docs": [
741
- "Mint authority PDA signs mint_to / burn during split/merge/redeem",
741
+ "Mint authority PDA \u2014 signs mint_to / burn during split/merge/redeem",
742
742
  "seeds: [MINT_AUTHORITY_SEED, condition]"
743
743
  ],
744
744
  "pda": {
@@ -873,7 +873,7 @@
873
873
  {
874
874
  "name": "payer",
875
875
  "docs": [
876
- "Pays tx fee (BE wallet user wallet needs zero SOL)"
876
+ "Pays tx fee (BE wallet \u2014 user wallet needs zero SOL)"
877
877
  ],
878
878
  "writable": true,
879
879
  "signer": true
@@ -966,7 +966,7 @@
966
966
  {
967
967
  "name": "report_payouts",
968
968
  "docs": [
969
- "Report payouts directly as the oracle resolves the condition.",
969
+ "Report payouts directly as the oracle \u2014 resolves the condition.",
970
970
  "The signer must match condition.oracle."
971
971
  ],
972
972
  "discriminator": [
@@ -1007,7 +1007,7 @@
1007
1007
  {
1008
1008
  "name": "set_payout",
1009
1009
  "docs": [
1010
- "Set payout and mark condition as resolved ONLY callable by QuestionMarket via CPI."
1010
+ "Set payout and mark condition as resolved \u2014 ONLY callable by QuestionMarket via CPI."
1011
1011
  ],
1012
1012
  "discriminator": [
1013
1013
  55,
@@ -1023,7 +1023,7 @@
1023
1023
  {
1024
1024
  "name": "authority",
1025
1025
  "docs": [
1026
- "QuestionMarket config PDA or Oracle config PDA must sign via CPI"
1026
+ "QuestionMarket config PDA or Oracle config PDA \u2014 must sign via CPI"
1027
1027
  ],
1028
1028
  "signer": true
1029
1029
  },
@@ -1061,7 +1061,7 @@
1061
1061
  {
1062
1062
  "name": "user",
1063
1063
  "docs": [
1064
- "Economic actor must hold collateral, receives YES/NO tokens"
1064
+ "Economic actor \u2014 must hold collateral, receives YES/NO tokens"
1065
1065
  ],
1066
1066
  "signer": true
1067
1067
  },
@@ -1306,7 +1306,7 @@
1306
1306
  {
1307
1307
  "name": "transfer_position",
1308
1308
  "docs": [
1309
- "Transfer positions between users ONLY callable by the authorized CLOB program.",
1309
+ "Transfer positions between users \u2014 ONLY callable by the authorized CLOB program.",
1310
1310
  "Used during order matching to redistribute YES/NO tokens."
1311
1311
  ],
1312
1312
  "discriminator": [
@@ -1389,7 +1389,7 @@
1389
1389
  {
1390
1390
  "name": "update_authorized_clob",
1391
1391
  "docs": [
1392
- "Update the authorized CLOB on a condition only callable by the condition's oracle."
1392
+ "Update the authorized CLOB on a condition \u2014 only callable by the condition's oracle."
1393
1393
  ],
1394
1394
  "discriminator": [
1395
1395
  163,
@@ -1405,7 +1405,7 @@
1405
1405
  {
1406
1406
  "name": "oracle",
1407
1407
  "docs": [
1408
- "The oracle that owns this condition must sign"
1408
+ "The oracle that owns this condition \u2014 must sign"
1409
1409
  ],
1410
1410
  "writable": true,
1411
1411
  "signer": true