@soltracer/nft-staking 0.1.0 → 0.2.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/dist/idl.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "8aDVVqWpDe4e7UqunEixAW1ydn7j22sPTRndyo4Jusbj",
2
+ "address": "DGktkAaRmDAgnb2JKFFMK8SwCjExgh3uw17Gd8Ba67ER",
3
3
  "metadata": {
4
4
  "name": "nft_staking",
5
5
  "version": "0.1.0",
@@ -350,11 +350,245 @@
350
350
  "name": "mpl_core_program"
351
351
  },
352
352
  {
353
- "name": "fee_config"
353
+ "name": "fee_config",
354
+ "pda": {
355
+ "seeds": [
356
+ {
357
+ "kind": "const",
358
+ "value": [
359
+ 102,
360
+ 101,
361
+ 101
362
+ ]
363
+ },
364
+ {
365
+ "kind": "const",
366
+ "value": [
367
+ 182,
368
+ 85,
369
+ 149,
370
+ 145,
371
+ 194,
372
+ 4,
373
+ 158,
374
+ 38,
375
+ 168,
376
+ 72,
377
+ 182,
378
+ 51,
379
+ 132,
380
+ 52,
381
+ 97,
382
+ 170,
383
+ 23,
384
+ 153,
385
+ 124,
386
+ 70,
387
+ 210,
388
+ 226,
389
+ 230,
390
+ 79,
391
+ 131,
392
+ 249,
393
+ 0,
394
+ 153,
395
+ 27,
396
+ 88,
397
+ 92,
398
+ 186
399
+ ]
400
+ }
401
+ ],
402
+ "program": {
403
+ "kind": "const",
404
+ "value": [
405
+ 71,
406
+ 60,
407
+ 51,
408
+ 156,
409
+ 122,
410
+ 30,
411
+ 172,
412
+ 150,
413
+ 96,
414
+ 246,
415
+ 176,
416
+ 17,
417
+ 193,
418
+ 207,
419
+ 109,
420
+ 240,
421
+ 48,
422
+ 80,
423
+ 233,
424
+ 105,
425
+ 46,
426
+ 253,
427
+ 208,
428
+ 131,
429
+ 6,
430
+ 239,
431
+ 22,
432
+ 78,
433
+ 30,
434
+ 164,
435
+ 15,
436
+ 162
437
+ ]
438
+ }
439
+ }
440
+ },
441
+ {
442
+ "name": "program_registry",
443
+ "pda": {
444
+ "seeds": [
445
+ {
446
+ "kind": "const",
447
+ "value": [
448
+ 114,
449
+ 101,
450
+ 103,
451
+ 105,
452
+ 115,
453
+ 116,
454
+ 114,
455
+ 121
456
+ ]
457
+ },
458
+ {
459
+ "kind": "const",
460
+ "value": [
461
+ 182,
462
+ 85,
463
+ 149,
464
+ 145,
465
+ 194,
466
+ 4,
467
+ 158,
468
+ 38,
469
+ 168,
470
+ 72,
471
+ 182,
472
+ 51,
473
+ 132,
474
+ 52,
475
+ 97,
476
+ 170,
477
+ 23,
478
+ 153,
479
+ 124,
480
+ 70,
481
+ 210,
482
+ 226,
483
+ 230,
484
+ 79,
485
+ 131,
486
+ 249,
487
+ 0,
488
+ 153,
489
+ 27,
490
+ 88,
491
+ 92,
492
+ 186
493
+ ]
494
+ }
495
+ ],
496
+ "program": {
497
+ "kind": "const",
498
+ "value": [
499
+ 71,
500
+ 60,
501
+ 51,
502
+ 156,
503
+ 122,
504
+ 30,
505
+ 172,
506
+ 150,
507
+ 96,
508
+ 246,
509
+ 176,
510
+ 17,
511
+ 193,
512
+ 207,
513
+ 109,
514
+ 240,
515
+ 48,
516
+ 80,
517
+ 233,
518
+ 105,
519
+ 46,
520
+ 253,
521
+ 208,
522
+ 131,
523
+ 6,
524
+ 239,
525
+ 22,
526
+ 78,
527
+ 30,
528
+ 164,
529
+ 15,
530
+ 162
531
+ ]
532
+ }
533
+ }
354
534
  },
355
535
  {
356
536
  "name": "treasury",
357
- "writable": true
537
+ "writable": true,
538
+ "pda": {
539
+ "seeds": [
540
+ {
541
+ "kind": "const",
542
+ "value": [
543
+ 116,
544
+ 114,
545
+ 101,
546
+ 97,
547
+ 115,
548
+ 117,
549
+ 114,
550
+ 121
551
+ ]
552
+ }
553
+ ],
554
+ "program": {
555
+ "kind": "const",
556
+ "value": [
557
+ 71,
558
+ 60,
559
+ 51,
560
+ 156,
561
+ 122,
562
+ 30,
563
+ 172,
564
+ 150,
565
+ 96,
566
+ 246,
567
+ 176,
568
+ 17,
569
+ 193,
570
+ 207,
571
+ 109,
572
+ 240,
573
+ 48,
574
+ 80,
575
+ 233,
576
+ 105,
577
+ 46,
578
+ 253,
579
+ 208,
580
+ 131,
581
+ 6,
582
+ 239,
583
+ 22,
584
+ 78,
585
+ 30,
586
+ 164,
587
+ 15,
588
+ 162
589
+ ]
590
+ }
591
+ }
358
592
  },
359
593
  {
360
594
  "name": "referral_account",
@@ -366,6 +600,9 @@
366
600
  {
367
601
  "name": "admin_program"
368
602
  },
603
+ {
604
+ "name": "project"
605
+ },
369
606
  {
370
607
  "name": "staker",
371
608
  "writable": true,
@@ -492,6 +729,10 @@
492
729
  },
493
730
  {
494
731
  "name": "pool_authority",
732
+ "docs": [
733
+ "Must be mutable because Token Metadata BurnV1 marks authority as writable."
734
+ ],
735
+ "writable": true,
495
736
  "pda": {
496
737
  "seeds": [
497
738
  {
@@ -559,11 +800,258 @@
559
800
  "optional": true
560
801
  },
561
802
  {
562
- "name": "fee_config"
803
+ "name": "token_record",
804
+ "docs": [
805
+ "For escrow: the escrow token record. For wallet-lock: the staker's token record."
806
+ ],
807
+ "writable": true,
808
+ "optional": true
809
+ },
810
+ {
811
+ "name": "collection_metadata",
812
+ "writable": true,
813
+ "optional": true
814
+ },
815
+ {
816
+ "name": "fee_config",
817
+ "pda": {
818
+ "seeds": [
819
+ {
820
+ "kind": "const",
821
+ "value": [
822
+ 102,
823
+ 101,
824
+ 101
825
+ ]
826
+ },
827
+ {
828
+ "kind": "const",
829
+ "value": [
830
+ 182,
831
+ 85,
832
+ 149,
833
+ 145,
834
+ 194,
835
+ 4,
836
+ 158,
837
+ 38,
838
+ 168,
839
+ 72,
840
+ 182,
841
+ 51,
842
+ 132,
843
+ 52,
844
+ 97,
845
+ 170,
846
+ 23,
847
+ 153,
848
+ 124,
849
+ 70,
850
+ 210,
851
+ 226,
852
+ 230,
853
+ 79,
854
+ 131,
855
+ 249,
856
+ 0,
857
+ 153,
858
+ 27,
859
+ 88,
860
+ 92,
861
+ 186
862
+ ]
863
+ }
864
+ ],
865
+ "program": {
866
+ "kind": "const",
867
+ "value": [
868
+ 71,
869
+ 60,
870
+ 51,
871
+ 156,
872
+ 122,
873
+ 30,
874
+ 172,
875
+ 150,
876
+ 96,
877
+ 246,
878
+ 176,
879
+ 17,
880
+ 193,
881
+ 207,
882
+ 109,
883
+ 240,
884
+ 48,
885
+ 80,
886
+ 233,
887
+ 105,
888
+ 46,
889
+ 253,
890
+ 208,
891
+ 131,
892
+ 6,
893
+ 239,
894
+ 22,
895
+ 78,
896
+ 30,
897
+ 164,
898
+ 15,
899
+ 162
900
+ ]
901
+ }
902
+ }
903
+ },
904
+ {
905
+ "name": "program_registry",
906
+ "pda": {
907
+ "seeds": [
908
+ {
909
+ "kind": "const",
910
+ "value": [
911
+ 114,
912
+ 101,
913
+ 103,
914
+ 105,
915
+ 115,
916
+ 116,
917
+ 114,
918
+ 121
919
+ ]
920
+ },
921
+ {
922
+ "kind": "const",
923
+ "value": [
924
+ 182,
925
+ 85,
926
+ 149,
927
+ 145,
928
+ 194,
929
+ 4,
930
+ 158,
931
+ 38,
932
+ 168,
933
+ 72,
934
+ 182,
935
+ 51,
936
+ 132,
937
+ 52,
938
+ 97,
939
+ 170,
940
+ 23,
941
+ 153,
942
+ 124,
943
+ 70,
944
+ 210,
945
+ 226,
946
+ 230,
947
+ 79,
948
+ 131,
949
+ 249,
950
+ 0,
951
+ 153,
952
+ 27,
953
+ 88,
954
+ 92,
955
+ 186
956
+ ]
957
+ }
958
+ ],
959
+ "program": {
960
+ "kind": "const",
961
+ "value": [
962
+ 71,
963
+ 60,
964
+ 51,
965
+ 156,
966
+ 122,
967
+ 30,
968
+ 172,
969
+ 150,
970
+ 96,
971
+ 246,
972
+ 176,
973
+ 17,
974
+ 193,
975
+ 207,
976
+ 109,
977
+ 240,
978
+ 48,
979
+ 80,
980
+ 233,
981
+ 105,
982
+ 46,
983
+ 253,
984
+ 208,
985
+ 131,
986
+ 6,
987
+ 239,
988
+ 22,
989
+ 78,
990
+ 30,
991
+ 164,
992
+ 15,
993
+ 162
994
+ ]
995
+ }
996
+ }
563
997
  },
564
998
  {
565
999
  "name": "treasury",
566
- "writable": true
1000
+ "writable": true,
1001
+ "pda": {
1002
+ "seeds": [
1003
+ {
1004
+ "kind": "const",
1005
+ "value": [
1006
+ 116,
1007
+ 114,
1008
+ 101,
1009
+ 97,
1010
+ 115,
1011
+ 117,
1012
+ 114,
1013
+ 121
1014
+ ]
1015
+ }
1016
+ ],
1017
+ "program": {
1018
+ "kind": "const",
1019
+ "value": [
1020
+ 71,
1021
+ 60,
1022
+ 51,
1023
+ 156,
1024
+ 122,
1025
+ 30,
1026
+ 172,
1027
+ 150,
1028
+ 96,
1029
+ 246,
1030
+ 176,
1031
+ 17,
1032
+ 193,
1033
+ 207,
1034
+ 109,
1035
+ 240,
1036
+ 48,
1037
+ 80,
1038
+ 233,
1039
+ 105,
1040
+ 46,
1041
+ 253,
1042
+ 208,
1043
+ 131,
1044
+ 6,
1045
+ 239,
1046
+ 22,
1047
+ 78,
1048
+ 30,
1049
+ 164,
1050
+ 15,
1051
+ 162
1052
+ ]
1053
+ }
1054
+ }
567
1055
  },
568
1056
  {
569
1057
  "name": "referral_account",
@@ -575,6 +1063,9 @@
575
1063
  {
576
1064
  "name": "admin_program"
577
1065
  },
1066
+ {
1067
+ "name": "project"
1068
+ },
578
1069
  {
579
1070
  "name": "staker",
580
1071
  "writable": true,
@@ -828,7 +1319,7 @@
828
1319
  {
829
1320
  "name": "stake_config",
830
1321
  "docs": [
831
- "Global stake config holds the platform's default trait authority."
1322
+ "Global stake config \u2014 holds the platform's default trait authority."
832
1323
  ],
833
1324
  "pda": {
834
1325
  "seeds": [
@@ -862,82 +1353,319 @@
862
1353
  "address": "Sysvar1nstructions1111111111111111111111111"
863
1354
  },
864
1355
  {
865
- "name": "fee_config"
866
- },
867
- {
868
- "name": "treasury",
869
- "writable": true
870
- },
871
- {
872
- "name": "referral_account",
873
- "writable": true
874
- },
875
- {
876
- "name": "sol_usd_price_feed"
877
- },
878
- {
879
- "name": "admin_program"
880
- },
881
- {
882
- "name": "staker",
883
- "writable": true,
884
- "signer": true
885
- },
886
- {
887
- "name": "token_program"
888
- },
889
- {
890
- "name": "associated_token_program",
891
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
892
- },
893
- {
894
- "name": "system_program",
895
- "address": "11111111111111111111111111111111"
896
- }
897
- ],
898
- "args": [
899
- {
900
- "name": "project_id",
901
- "type": "u64"
902
- },
903
- {
904
- "name": "pool_id",
905
- "type": "u64"
906
- },
907
- {
908
- "name": "trait_bonus_rate",
909
- "type": {
910
- "option": "u64"
911
- }
912
- }
913
- ]
914
- },
915
- {
916
- "name": "claim_secondary_rewards",
917
- "discriminator": [
918
- 230,
919
- 86,
920
- 176,
921
- 154,
922
- 170,
923
- 3,
924
- 18,
925
- 254
926
- ],
927
- "accounts": [
928
- {
929
- "name": "pool",
930
- "writable": true,
1356
+ "name": "fee_config",
931
1357
  "pda": {
932
1358
  "seeds": [
933
1359
  {
934
1360
  "kind": "const",
935
1361
  "value": [
936
- 110,
937
1362
  102,
938
- 116,
939
- 95,
940
- 112,
1363
+ 101,
1364
+ 101
1365
+ ]
1366
+ },
1367
+ {
1368
+ "kind": "const",
1369
+ "value": [
1370
+ 182,
1371
+ 85,
1372
+ 149,
1373
+ 145,
1374
+ 194,
1375
+ 4,
1376
+ 158,
1377
+ 38,
1378
+ 168,
1379
+ 72,
1380
+ 182,
1381
+ 51,
1382
+ 132,
1383
+ 52,
1384
+ 97,
1385
+ 170,
1386
+ 23,
1387
+ 153,
1388
+ 124,
1389
+ 70,
1390
+ 210,
1391
+ 226,
1392
+ 230,
1393
+ 79,
1394
+ 131,
1395
+ 249,
1396
+ 0,
1397
+ 153,
1398
+ 27,
1399
+ 88,
1400
+ 92,
1401
+ 186
1402
+ ]
1403
+ }
1404
+ ],
1405
+ "program": {
1406
+ "kind": "const",
1407
+ "value": [
1408
+ 71,
1409
+ 60,
1410
+ 51,
1411
+ 156,
1412
+ 122,
1413
+ 30,
1414
+ 172,
1415
+ 150,
1416
+ 96,
1417
+ 246,
1418
+ 176,
1419
+ 17,
1420
+ 193,
1421
+ 207,
1422
+ 109,
1423
+ 240,
1424
+ 48,
1425
+ 80,
1426
+ 233,
1427
+ 105,
1428
+ 46,
1429
+ 253,
1430
+ 208,
1431
+ 131,
1432
+ 6,
1433
+ 239,
1434
+ 22,
1435
+ 78,
1436
+ 30,
1437
+ 164,
1438
+ 15,
1439
+ 162
1440
+ ]
1441
+ }
1442
+ }
1443
+ },
1444
+ {
1445
+ "name": "program_registry",
1446
+ "pda": {
1447
+ "seeds": [
1448
+ {
1449
+ "kind": "const",
1450
+ "value": [
1451
+ 114,
1452
+ 101,
1453
+ 103,
1454
+ 105,
1455
+ 115,
1456
+ 116,
1457
+ 114,
1458
+ 121
1459
+ ]
1460
+ },
1461
+ {
1462
+ "kind": "const",
1463
+ "value": [
1464
+ 182,
1465
+ 85,
1466
+ 149,
1467
+ 145,
1468
+ 194,
1469
+ 4,
1470
+ 158,
1471
+ 38,
1472
+ 168,
1473
+ 72,
1474
+ 182,
1475
+ 51,
1476
+ 132,
1477
+ 52,
1478
+ 97,
1479
+ 170,
1480
+ 23,
1481
+ 153,
1482
+ 124,
1483
+ 70,
1484
+ 210,
1485
+ 226,
1486
+ 230,
1487
+ 79,
1488
+ 131,
1489
+ 249,
1490
+ 0,
1491
+ 153,
1492
+ 27,
1493
+ 88,
1494
+ 92,
1495
+ 186
1496
+ ]
1497
+ }
1498
+ ],
1499
+ "program": {
1500
+ "kind": "const",
1501
+ "value": [
1502
+ 71,
1503
+ 60,
1504
+ 51,
1505
+ 156,
1506
+ 122,
1507
+ 30,
1508
+ 172,
1509
+ 150,
1510
+ 96,
1511
+ 246,
1512
+ 176,
1513
+ 17,
1514
+ 193,
1515
+ 207,
1516
+ 109,
1517
+ 240,
1518
+ 48,
1519
+ 80,
1520
+ 233,
1521
+ 105,
1522
+ 46,
1523
+ 253,
1524
+ 208,
1525
+ 131,
1526
+ 6,
1527
+ 239,
1528
+ 22,
1529
+ 78,
1530
+ 30,
1531
+ 164,
1532
+ 15,
1533
+ 162
1534
+ ]
1535
+ }
1536
+ }
1537
+ },
1538
+ {
1539
+ "name": "treasury",
1540
+ "writable": true,
1541
+ "pda": {
1542
+ "seeds": [
1543
+ {
1544
+ "kind": "const",
1545
+ "value": [
1546
+ 116,
1547
+ 114,
1548
+ 101,
1549
+ 97,
1550
+ 115,
1551
+ 117,
1552
+ 114,
1553
+ 121
1554
+ ]
1555
+ }
1556
+ ],
1557
+ "program": {
1558
+ "kind": "const",
1559
+ "value": [
1560
+ 71,
1561
+ 60,
1562
+ 51,
1563
+ 156,
1564
+ 122,
1565
+ 30,
1566
+ 172,
1567
+ 150,
1568
+ 96,
1569
+ 246,
1570
+ 176,
1571
+ 17,
1572
+ 193,
1573
+ 207,
1574
+ 109,
1575
+ 240,
1576
+ 48,
1577
+ 80,
1578
+ 233,
1579
+ 105,
1580
+ 46,
1581
+ 253,
1582
+ 208,
1583
+ 131,
1584
+ 6,
1585
+ 239,
1586
+ 22,
1587
+ 78,
1588
+ 30,
1589
+ 164,
1590
+ 15,
1591
+ 162
1592
+ ]
1593
+ }
1594
+ }
1595
+ },
1596
+ {
1597
+ "name": "referral_account",
1598
+ "writable": true
1599
+ },
1600
+ {
1601
+ "name": "sol_usd_price_feed"
1602
+ },
1603
+ {
1604
+ "name": "admin_program"
1605
+ },
1606
+ {
1607
+ "name": "project"
1608
+ },
1609
+ {
1610
+ "name": "staker",
1611
+ "writable": true,
1612
+ "signer": true
1613
+ },
1614
+ {
1615
+ "name": "token_program"
1616
+ },
1617
+ {
1618
+ "name": "associated_token_program",
1619
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1620
+ },
1621
+ {
1622
+ "name": "system_program",
1623
+ "address": "11111111111111111111111111111111"
1624
+ }
1625
+ ],
1626
+ "args": [
1627
+ {
1628
+ "name": "project_id",
1629
+ "type": "u64"
1630
+ },
1631
+ {
1632
+ "name": "pool_id",
1633
+ "type": "u64"
1634
+ },
1635
+ {
1636
+ "name": "trait_bonus_rate",
1637
+ "type": {
1638
+ "option": "u64"
1639
+ }
1640
+ }
1641
+ ]
1642
+ },
1643
+ {
1644
+ "name": "claim_secondary_rewards",
1645
+ "discriminator": [
1646
+ 230,
1647
+ 86,
1648
+ 176,
1649
+ 154,
1650
+ 170,
1651
+ 3,
1652
+ 18,
1653
+ 254
1654
+ ],
1655
+ "accounts": [
1656
+ {
1657
+ "name": "pool",
1658
+ "writable": true,
1659
+ "pda": {
1660
+ "seeds": [
1661
+ {
1662
+ "kind": "const",
1663
+ "value": [
1664
+ 110,
1665
+ 102,
1666
+ 116,
1667
+ 95,
1668
+ 112,
941
1669
  111,
942
1670
  111,
943
1671
  108
@@ -986,6 +1714,7 @@
986
1714
  },
987
1715
  {
988
1716
  "name": "staker_account",
1717
+ "writable": true,
989
1718
  "pda": {
990
1719
  "seeds": [
991
1720
  {
@@ -1078,11 +1807,245 @@
1078
1807
  }
1079
1808
  },
1080
1809
  {
1081
- "name": "fee_config"
1810
+ "name": "fee_config",
1811
+ "pda": {
1812
+ "seeds": [
1813
+ {
1814
+ "kind": "const",
1815
+ "value": [
1816
+ 102,
1817
+ 101,
1818
+ 101
1819
+ ]
1820
+ },
1821
+ {
1822
+ "kind": "const",
1823
+ "value": [
1824
+ 182,
1825
+ 85,
1826
+ 149,
1827
+ 145,
1828
+ 194,
1829
+ 4,
1830
+ 158,
1831
+ 38,
1832
+ 168,
1833
+ 72,
1834
+ 182,
1835
+ 51,
1836
+ 132,
1837
+ 52,
1838
+ 97,
1839
+ 170,
1840
+ 23,
1841
+ 153,
1842
+ 124,
1843
+ 70,
1844
+ 210,
1845
+ 226,
1846
+ 230,
1847
+ 79,
1848
+ 131,
1849
+ 249,
1850
+ 0,
1851
+ 153,
1852
+ 27,
1853
+ 88,
1854
+ 92,
1855
+ 186
1856
+ ]
1857
+ }
1858
+ ],
1859
+ "program": {
1860
+ "kind": "const",
1861
+ "value": [
1862
+ 71,
1863
+ 60,
1864
+ 51,
1865
+ 156,
1866
+ 122,
1867
+ 30,
1868
+ 172,
1869
+ 150,
1870
+ 96,
1871
+ 246,
1872
+ 176,
1873
+ 17,
1874
+ 193,
1875
+ 207,
1876
+ 109,
1877
+ 240,
1878
+ 48,
1879
+ 80,
1880
+ 233,
1881
+ 105,
1882
+ 46,
1883
+ 253,
1884
+ 208,
1885
+ 131,
1886
+ 6,
1887
+ 239,
1888
+ 22,
1889
+ 78,
1890
+ 30,
1891
+ 164,
1892
+ 15,
1893
+ 162
1894
+ ]
1895
+ }
1896
+ }
1897
+ },
1898
+ {
1899
+ "name": "program_registry",
1900
+ "pda": {
1901
+ "seeds": [
1902
+ {
1903
+ "kind": "const",
1904
+ "value": [
1905
+ 114,
1906
+ 101,
1907
+ 103,
1908
+ 105,
1909
+ 115,
1910
+ 116,
1911
+ 114,
1912
+ 121
1913
+ ]
1914
+ },
1915
+ {
1916
+ "kind": "const",
1917
+ "value": [
1918
+ 182,
1919
+ 85,
1920
+ 149,
1921
+ 145,
1922
+ 194,
1923
+ 4,
1924
+ 158,
1925
+ 38,
1926
+ 168,
1927
+ 72,
1928
+ 182,
1929
+ 51,
1930
+ 132,
1931
+ 52,
1932
+ 97,
1933
+ 170,
1934
+ 23,
1935
+ 153,
1936
+ 124,
1937
+ 70,
1938
+ 210,
1939
+ 226,
1940
+ 230,
1941
+ 79,
1942
+ 131,
1943
+ 249,
1944
+ 0,
1945
+ 153,
1946
+ 27,
1947
+ 88,
1948
+ 92,
1949
+ 186
1950
+ ]
1951
+ }
1952
+ ],
1953
+ "program": {
1954
+ "kind": "const",
1955
+ "value": [
1956
+ 71,
1957
+ 60,
1958
+ 51,
1959
+ 156,
1960
+ 122,
1961
+ 30,
1962
+ 172,
1963
+ 150,
1964
+ 96,
1965
+ 246,
1966
+ 176,
1967
+ 17,
1968
+ 193,
1969
+ 207,
1970
+ 109,
1971
+ 240,
1972
+ 48,
1973
+ 80,
1974
+ 233,
1975
+ 105,
1976
+ 46,
1977
+ 253,
1978
+ 208,
1979
+ 131,
1980
+ 6,
1981
+ 239,
1982
+ 22,
1983
+ 78,
1984
+ 30,
1985
+ 164,
1986
+ 15,
1987
+ 162
1988
+ ]
1989
+ }
1990
+ }
1082
1991
  },
1083
1992
  {
1084
1993
  "name": "treasury",
1085
- "writable": true
1994
+ "writable": true,
1995
+ "pda": {
1996
+ "seeds": [
1997
+ {
1998
+ "kind": "const",
1999
+ "value": [
2000
+ 116,
2001
+ 114,
2002
+ 101,
2003
+ 97,
2004
+ 115,
2005
+ 117,
2006
+ 114,
2007
+ 121
2008
+ ]
2009
+ }
2010
+ ],
2011
+ "program": {
2012
+ "kind": "const",
2013
+ "value": [
2014
+ 71,
2015
+ 60,
2016
+ 51,
2017
+ 156,
2018
+ 122,
2019
+ 30,
2020
+ 172,
2021
+ 150,
2022
+ 96,
2023
+ 246,
2024
+ 176,
2025
+ 17,
2026
+ 193,
2027
+ 207,
2028
+ 109,
2029
+ 240,
2030
+ 48,
2031
+ 80,
2032
+ 233,
2033
+ 105,
2034
+ 46,
2035
+ 253,
2036
+ 208,
2037
+ 131,
2038
+ 6,
2039
+ 239,
2040
+ 22,
2041
+ 78,
2042
+ 30,
2043
+ 164,
2044
+ 15,
2045
+ 162
2046
+ ]
2047
+ }
2048
+ }
1086
2049
  },
1087
2050
  {
1088
2051
  "name": "referral_account",
@@ -1094,6 +2057,9 @@
1094
2057
  {
1095
2058
  "name": "admin_program"
1096
2059
  },
2060
+ {
2061
+ "name": "project"
2062
+ },
1097
2063
  {
1098
2064
  "name": "staker",
1099
2065
  "writable": true,
@@ -1263,6 +2229,18 @@
1263
2229
  ]
1264
2230
  }
1265
2231
  },
2232
+ {
2233
+ "name": "reward_vault",
2234
+ "docs": [
2235
+ "Reward vault \u2014 required for token-reward pools. Must be drained before closure.",
2236
+ "Pass the pool_authority ATA for the reward mint. Omit for SOL-reward pools."
2237
+ ],
2238
+ "optional": true
2239
+ },
2240
+ {
2241
+ "name": "token_program",
2242
+ "optional": true
2243
+ },
1266
2244
  {
1267
2245
  "name": "authority",
1268
2246
  "writable": true,
@@ -1436,14 +2414,14 @@
1436
2414
  {
1437
2415
  "name": "reward_mint",
1438
2416
  "docs": [
1439
- "Reward mint the token paid out as rewards (can be any SPL token).",
2417
+ "Reward mint \u2014 the token paid out as rewards (can be any SPL token).",
1440
2418
  "Ignored if reward_type == Points."
1441
2419
  ]
1442
2420
  },
1443
2421
  {
1444
2422
  "name": "reward_vault",
1445
2423
  "docs": [
1446
- "Reward vault ATA owned by pool_authority created for token rewards."
2424
+ "Reward vault ATA owned by pool_authority \u2014 created for token rewards."
1447
2425
  ],
1448
2426
  "writable": true,
1449
2427
  "pda": {
@@ -1504,11 +2482,108 @@
1504
2482
  "name": "project_management_program"
1505
2483
  },
1506
2484
  {
1507
- "name": "authority",
1508
- "writable": true,
1509
- "signer": true
1510
- },
1511
- {
2485
+ "name": "utility_config",
2486
+ "pda": {
2487
+ "seeds": [
2488
+ {
2489
+ "kind": "const",
2490
+ "value": [
2491
+ 117,
2492
+ 116,
2493
+ 105,
2494
+ 108,
2495
+ 105,
2496
+ 116,
2497
+ 121
2498
+ ]
2499
+ },
2500
+ {
2501
+ "kind": "arg",
2502
+ "path": "project_id"
2503
+ },
2504
+ {
2505
+ "kind": "const",
2506
+ "value": [
2507
+ 182,
2508
+ 85,
2509
+ 149,
2510
+ 145,
2511
+ 194,
2512
+ 4,
2513
+ 158,
2514
+ 38,
2515
+ 168,
2516
+ 72,
2517
+ 182,
2518
+ 51,
2519
+ 132,
2520
+ 52,
2521
+ 97,
2522
+ 170,
2523
+ 23,
2524
+ 153,
2525
+ 124,
2526
+ 70,
2527
+ 210,
2528
+ 226,
2529
+ 230,
2530
+ 79,
2531
+ 131,
2532
+ 249,
2533
+ 0,
2534
+ 153,
2535
+ 27,
2536
+ 88,
2537
+ 92,
2538
+ 186
2539
+ ]
2540
+ }
2541
+ ],
2542
+ "program": {
2543
+ "kind": "const",
2544
+ "value": [
2545
+ 121,
2546
+ 79,
2547
+ 236,
2548
+ 61,
2549
+ 182,
2550
+ 18,
2551
+ 189,
2552
+ 248,
2553
+ 249,
2554
+ 169,
2555
+ 55,
2556
+ 18,
2557
+ 89,
2558
+ 83,
2559
+ 5,
2560
+ 231,
2561
+ 222,
2562
+ 189,
2563
+ 185,
2564
+ 107,
2565
+ 205,
2566
+ 114,
2567
+ 8,
2568
+ 14,
2569
+ 150,
2570
+ 1,
2571
+ 213,
2572
+ 147,
2573
+ 115,
2574
+ 98,
2575
+ 138,
2576
+ 118
2577
+ ]
2578
+ }
2579
+ }
2580
+ },
2581
+ {
2582
+ "name": "authority",
2583
+ "writable": true,
2584
+ "signer": true
2585
+ },
2586
+ {
1512
2587
  "name": "token_program"
1513
2588
  },
1514
2589
  {
@@ -2292,11 +3367,245 @@
2292
3367
  }
2293
3368
  },
2294
3369
  {
2295
- "name": "fee_config"
3370
+ "name": "fee_config",
3371
+ "pda": {
3372
+ "seeds": [
3373
+ {
3374
+ "kind": "const",
3375
+ "value": [
3376
+ 102,
3377
+ 101,
3378
+ 101
3379
+ ]
3380
+ },
3381
+ {
3382
+ "kind": "const",
3383
+ "value": [
3384
+ 182,
3385
+ 85,
3386
+ 149,
3387
+ 145,
3388
+ 194,
3389
+ 4,
3390
+ 158,
3391
+ 38,
3392
+ 168,
3393
+ 72,
3394
+ 182,
3395
+ 51,
3396
+ 132,
3397
+ 52,
3398
+ 97,
3399
+ 170,
3400
+ 23,
3401
+ 153,
3402
+ 124,
3403
+ 70,
3404
+ 210,
3405
+ 226,
3406
+ 230,
3407
+ 79,
3408
+ 131,
3409
+ 249,
3410
+ 0,
3411
+ 153,
3412
+ 27,
3413
+ 88,
3414
+ 92,
3415
+ 186
3416
+ ]
3417
+ }
3418
+ ],
3419
+ "program": {
3420
+ "kind": "const",
3421
+ "value": [
3422
+ 71,
3423
+ 60,
3424
+ 51,
3425
+ 156,
3426
+ 122,
3427
+ 30,
3428
+ 172,
3429
+ 150,
3430
+ 96,
3431
+ 246,
3432
+ 176,
3433
+ 17,
3434
+ 193,
3435
+ 207,
3436
+ 109,
3437
+ 240,
3438
+ 48,
3439
+ 80,
3440
+ 233,
3441
+ 105,
3442
+ 46,
3443
+ 253,
3444
+ 208,
3445
+ 131,
3446
+ 6,
3447
+ 239,
3448
+ 22,
3449
+ 78,
3450
+ 30,
3451
+ 164,
3452
+ 15,
3453
+ 162
3454
+ ]
3455
+ }
3456
+ }
3457
+ },
3458
+ {
3459
+ "name": "program_registry",
3460
+ "pda": {
3461
+ "seeds": [
3462
+ {
3463
+ "kind": "const",
3464
+ "value": [
3465
+ 114,
3466
+ 101,
3467
+ 103,
3468
+ 105,
3469
+ 115,
3470
+ 116,
3471
+ 114,
3472
+ 121
3473
+ ]
3474
+ },
3475
+ {
3476
+ "kind": "const",
3477
+ "value": [
3478
+ 182,
3479
+ 85,
3480
+ 149,
3481
+ 145,
3482
+ 194,
3483
+ 4,
3484
+ 158,
3485
+ 38,
3486
+ 168,
3487
+ 72,
3488
+ 182,
3489
+ 51,
3490
+ 132,
3491
+ 52,
3492
+ 97,
3493
+ 170,
3494
+ 23,
3495
+ 153,
3496
+ 124,
3497
+ 70,
3498
+ 210,
3499
+ 226,
3500
+ 230,
3501
+ 79,
3502
+ 131,
3503
+ 249,
3504
+ 0,
3505
+ 153,
3506
+ 27,
3507
+ 88,
3508
+ 92,
3509
+ 186
3510
+ ]
3511
+ }
3512
+ ],
3513
+ "program": {
3514
+ "kind": "const",
3515
+ "value": [
3516
+ 71,
3517
+ 60,
3518
+ 51,
3519
+ 156,
3520
+ 122,
3521
+ 30,
3522
+ 172,
3523
+ 150,
3524
+ 96,
3525
+ 246,
3526
+ 176,
3527
+ 17,
3528
+ 193,
3529
+ 207,
3530
+ 109,
3531
+ 240,
3532
+ 48,
3533
+ 80,
3534
+ 233,
3535
+ 105,
3536
+ 46,
3537
+ 253,
3538
+ 208,
3539
+ 131,
3540
+ 6,
3541
+ 239,
3542
+ 22,
3543
+ 78,
3544
+ 30,
3545
+ 164,
3546
+ 15,
3547
+ 162
3548
+ ]
3549
+ }
3550
+ }
2296
3551
  },
2297
3552
  {
2298
3553
  "name": "treasury",
2299
- "writable": true
3554
+ "writable": true,
3555
+ "pda": {
3556
+ "seeds": [
3557
+ {
3558
+ "kind": "const",
3559
+ "value": [
3560
+ 116,
3561
+ 114,
3562
+ 101,
3563
+ 97,
3564
+ 115,
3565
+ 117,
3566
+ 114,
3567
+ 121
3568
+ ]
3569
+ }
3570
+ ],
3571
+ "program": {
3572
+ "kind": "const",
3573
+ "value": [
3574
+ 71,
3575
+ 60,
3576
+ 51,
3577
+ 156,
3578
+ 122,
3579
+ 30,
3580
+ 172,
3581
+ 150,
3582
+ 96,
3583
+ 246,
3584
+ 176,
3585
+ 17,
3586
+ 193,
3587
+ 207,
3588
+ 109,
3589
+ 240,
3590
+ 48,
3591
+ 80,
3592
+ 233,
3593
+ 105,
3594
+ 46,
3595
+ 253,
3596
+ 208,
3597
+ 131,
3598
+ 6,
3599
+ 239,
3600
+ 22,
3601
+ 78,
3602
+ 30,
3603
+ 164,
3604
+ 15,
3605
+ 162
3606
+ ]
3607
+ }
3608
+ }
2300
3609
  },
2301
3610
  {
2302
3611
  "name": "referral_account",
@@ -2308,6 +3617,9 @@
2308
3617
  {
2309
3618
  "name": "admin_program"
2310
3619
  },
3620
+ {
3621
+ "name": "project"
3622
+ },
2311
3623
  {
2312
3624
  "name": "staker",
2313
3625
  "writable": true,
@@ -2479,11 +3791,245 @@
2479
3791
  "name": "bubblegum_program"
2480
3792
  },
2481
3793
  {
2482
- "name": "fee_config"
3794
+ "name": "fee_config",
3795
+ "pda": {
3796
+ "seeds": [
3797
+ {
3798
+ "kind": "const",
3799
+ "value": [
3800
+ 102,
3801
+ 101,
3802
+ 101
3803
+ ]
3804
+ },
3805
+ {
3806
+ "kind": "const",
3807
+ "value": [
3808
+ 182,
3809
+ 85,
3810
+ 149,
3811
+ 145,
3812
+ 194,
3813
+ 4,
3814
+ 158,
3815
+ 38,
3816
+ 168,
3817
+ 72,
3818
+ 182,
3819
+ 51,
3820
+ 132,
3821
+ 52,
3822
+ 97,
3823
+ 170,
3824
+ 23,
3825
+ 153,
3826
+ 124,
3827
+ 70,
3828
+ 210,
3829
+ 226,
3830
+ 230,
3831
+ 79,
3832
+ 131,
3833
+ 249,
3834
+ 0,
3835
+ 153,
3836
+ 27,
3837
+ 88,
3838
+ 92,
3839
+ 186
3840
+ ]
3841
+ }
3842
+ ],
3843
+ "program": {
3844
+ "kind": "const",
3845
+ "value": [
3846
+ 71,
3847
+ 60,
3848
+ 51,
3849
+ 156,
3850
+ 122,
3851
+ 30,
3852
+ 172,
3853
+ 150,
3854
+ 96,
3855
+ 246,
3856
+ 176,
3857
+ 17,
3858
+ 193,
3859
+ 207,
3860
+ 109,
3861
+ 240,
3862
+ 48,
3863
+ 80,
3864
+ 233,
3865
+ 105,
3866
+ 46,
3867
+ 253,
3868
+ 208,
3869
+ 131,
3870
+ 6,
3871
+ 239,
3872
+ 22,
3873
+ 78,
3874
+ 30,
3875
+ 164,
3876
+ 15,
3877
+ 162
3878
+ ]
3879
+ }
3880
+ }
3881
+ },
3882
+ {
3883
+ "name": "program_registry",
3884
+ "pda": {
3885
+ "seeds": [
3886
+ {
3887
+ "kind": "const",
3888
+ "value": [
3889
+ 114,
3890
+ 101,
3891
+ 103,
3892
+ 105,
3893
+ 115,
3894
+ 116,
3895
+ 114,
3896
+ 121
3897
+ ]
3898
+ },
3899
+ {
3900
+ "kind": "const",
3901
+ "value": [
3902
+ 182,
3903
+ 85,
3904
+ 149,
3905
+ 145,
3906
+ 194,
3907
+ 4,
3908
+ 158,
3909
+ 38,
3910
+ 168,
3911
+ 72,
3912
+ 182,
3913
+ 51,
3914
+ 132,
3915
+ 52,
3916
+ 97,
3917
+ 170,
3918
+ 23,
3919
+ 153,
3920
+ 124,
3921
+ 70,
3922
+ 210,
3923
+ 226,
3924
+ 230,
3925
+ 79,
3926
+ 131,
3927
+ 249,
3928
+ 0,
3929
+ 153,
3930
+ 27,
3931
+ 88,
3932
+ 92,
3933
+ 186
3934
+ ]
3935
+ }
3936
+ ],
3937
+ "program": {
3938
+ "kind": "const",
3939
+ "value": [
3940
+ 71,
3941
+ 60,
3942
+ 51,
3943
+ 156,
3944
+ 122,
3945
+ 30,
3946
+ 172,
3947
+ 150,
3948
+ 96,
3949
+ 246,
3950
+ 176,
3951
+ 17,
3952
+ 193,
3953
+ 207,
3954
+ 109,
3955
+ 240,
3956
+ 48,
3957
+ 80,
3958
+ 233,
3959
+ 105,
3960
+ 46,
3961
+ 253,
3962
+ 208,
3963
+ 131,
3964
+ 6,
3965
+ 239,
3966
+ 22,
3967
+ 78,
3968
+ 30,
3969
+ 164,
3970
+ 15,
3971
+ 162
3972
+ ]
3973
+ }
3974
+ }
2483
3975
  },
2484
3976
  {
2485
3977
  "name": "treasury",
2486
- "writable": true
3978
+ "writable": true,
3979
+ "pda": {
3980
+ "seeds": [
3981
+ {
3982
+ "kind": "const",
3983
+ "value": [
3984
+ 116,
3985
+ 114,
3986
+ 101,
3987
+ 97,
3988
+ 115,
3989
+ 117,
3990
+ 114,
3991
+ 121
3992
+ ]
3993
+ }
3994
+ ],
3995
+ "program": {
3996
+ "kind": "const",
3997
+ "value": [
3998
+ 71,
3999
+ 60,
4000
+ 51,
4001
+ 156,
4002
+ 122,
4003
+ 30,
4004
+ 172,
4005
+ 150,
4006
+ 96,
4007
+ 246,
4008
+ 176,
4009
+ 17,
4010
+ 193,
4011
+ 207,
4012
+ 109,
4013
+ 240,
4014
+ 48,
4015
+ 80,
4016
+ 233,
4017
+ 105,
4018
+ 46,
4019
+ 253,
4020
+ 208,
4021
+ 131,
4022
+ 6,
4023
+ 239,
4024
+ 22,
4025
+ 78,
4026
+ 30,
4027
+ 164,
4028
+ 15,
4029
+ 162
4030
+ ]
4031
+ }
4032
+ }
2487
4033
  },
2488
4034
  {
2489
4035
  "name": "referral_account",
@@ -2495,6 +4041,107 @@
2495
4041
  {
2496
4042
  "name": "admin_program"
2497
4043
  },
4044
+ {
4045
+ "name": "project"
4046
+ },
4047
+ {
4048
+ "name": "utility_config",
4049
+ "pda": {
4050
+ "seeds": [
4051
+ {
4052
+ "kind": "const",
4053
+ "value": [
4054
+ 117,
4055
+ 116,
4056
+ 105,
4057
+ 108,
4058
+ 105,
4059
+ 116,
4060
+ 121
4061
+ ]
4062
+ },
4063
+ {
4064
+ "kind": "account",
4065
+ "path": "pool.project_id",
4066
+ "account": "StakePool"
4067
+ },
4068
+ {
4069
+ "kind": "const",
4070
+ "value": [
4071
+ 182,
4072
+ 85,
4073
+ 149,
4074
+ 145,
4075
+ 194,
4076
+ 4,
4077
+ 158,
4078
+ 38,
4079
+ 168,
4080
+ 72,
4081
+ 182,
4082
+ 51,
4083
+ 132,
4084
+ 52,
4085
+ 97,
4086
+ 170,
4087
+ 23,
4088
+ 153,
4089
+ 124,
4090
+ 70,
4091
+ 210,
4092
+ 226,
4093
+ 230,
4094
+ 79,
4095
+ 131,
4096
+ 249,
4097
+ 0,
4098
+ 153,
4099
+ 27,
4100
+ 88,
4101
+ 92,
4102
+ 186
4103
+ ]
4104
+ }
4105
+ ],
4106
+ "program": {
4107
+ "kind": "const",
4108
+ "value": [
4109
+ 121,
4110
+ 79,
4111
+ 236,
4112
+ 61,
4113
+ 182,
4114
+ 18,
4115
+ 189,
4116
+ 248,
4117
+ 249,
4118
+ 169,
4119
+ 55,
4120
+ 18,
4121
+ 89,
4122
+ 83,
4123
+ 5,
4124
+ 231,
4125
+ 222,
4126
+ 189,
4127
+ 185,
4128
+ 107,
4129
+ 205,
4130
+ 114,
4131
+ 8,
4132
+ 14,
4133
+ 150,
4134
+ 1,
4135
+ 213,
4136
+ 147,
4137
+ 115,
4138
+ 98,
4139
+ 138,
4140
+ 118
4141
+ ]
4142
+ }
4143
+ }
4144
+ },
2498
4145
  {
2499
4146
  "name": "staker",
2500
4147
  "writable": true,
@@ -2666,62 +4313,398 @@
2666
4313
  }
2667
4314
  },
2668
4315
  {
2669
- "name": "pool_authority",
4316
+ "name": "pool_authority",
4317
+ "pda": {
4318
+ "seeds": [
4319
+ {
4320
+ "kind": "const",
4321
+ "value": [
4322
+ 112,
4323
+ 111,
4324
+ 111,
4325
+ 108,
4326
+ 95,
4327
+ 97,
4328
+ 117,
4329
+ 116,
4330
+ 104,
4331
+ 111,
4332
+ 114,
4333
+ 105,
4334
+ 116,
4335
+ 121
4336
+ ]
4337
+ },
4338
+ {
4339
+ "kind": "arg",
4340
+ "path": "pool_id"
4341
+ }
4342
+ ]
4343
+ }
4344
+ },
4345
+ {
4346
+ "name": "nft_asset",
4347
+ "writable": true
4348
+ },
4349
+ {
4350
+ "name": "collection",
4351
+ "writable": true
4352
+ },
4353
+ {
4354
+ "name": "mpl_core_program"
4355
+ },
4356
+ {
4357
+ "name": "fee_config",
4358
+ "pda": {
4359
+ "seeds": [
4360
+ {
4361
+ "kind": "const",
4362
+ "value": [
4363
+ 102,
4364
+ 101,
4365
+ 101
4366
+ ]
4367
+ },
4368
+ {
4369
+ "kind": "const",
4370
+ "value": [
4371
+ 182,
4372
+ 85,
4373
+ 149,
4374
+ 145,
4375
+ 194,
4376
+ 4,
4377
+ 158,
4378
+ 38,
4379
+ 168,
4380
+ 72,
4381
+ 182,
4382
+ 51,
4383
+ 132,
4384
+ 52,
4385
+ 97,
4386
+ 170,
4387
+ 23,
4388
+ 153,
4389
+ 124,
4390
+ 70,
4391
+ 210,
4392
+ 226,
4393
+ 230,
4394
+ 79,
4395
+ 131,
4396
+ 249,
4397
+ 0,
4398
+ 153,
4399
+ 27,
4400
+ 88,
4401
+ 92,
4402
+ 186
4403
+ ]
4404
+ }
4405
+ ],
4406
+ "program": {
4407
+ "kind": "const",
4408
+ "value": [
4409
+ 71,
4410
+ 60,
4411
+ 51,
4412
+ 156,
4413
+ 122,
4414
+ 30,
4415
+ 172,
4416
+ 150,
4417
+ 96,
4418
+ 246,
4419
+ 176,
4420
+ 17,
4421
+ 193,
4422
+ 207,
4423
+ 109,
4424
+ 240,
4425
+ 48,
4426
+ 80,
4427
+ 233,
4428
+ 105,
4429
+ 46,
4430
+ 253,
4431
+ 208,
4432
+ 131,
4433
+ 6,
4434
+ 239,
4435
+ 22,
4436
+ 78,
4437
+ 30,
4438
+ 164,
4439
+ 15,
4440
+ 162
4441
+ ]
4442
+ }
4443
+ }
4444
+ },
4445
+ {
4446
+ "name": "program_registry",
4447
+ "pda": {
4448
+ "seeds": [
4449
+ {
4450
+ "kind": "const",
4451
+ "value": [
4452
+ 114,
4453
+ 101,
4454
+ 103,
4455
+ 105,
4456
+ 115,
4457
+ 116,
4458
+ 114,
4459
+ 121
4460
+ ]
4461
+ },
4462
+ {
4463
+ "kind": "const",
4464
+ "value": [
4465
+ 182,
4466
+ 85,
4467
+ 149,
4468
+ 145,
4469
+ 194,
4470
+ 4,
4471
+ 158,
4472
+ 38,
4473
+ 168,
4474
+ 72,
4475
+ 182,
4476
+ 51,
4477
+ 132,
4478
+ 52,
4479
+ 97,
4480
+ 170,
4481
+ 23,
4482
+ 153,
4483
+ 124,
4484
+ 70,
4485
+ 210,
4486
+ 226,
4487
+ 230,
4488
+ 79,
4489
+ 131,
4490
+ 249,
4491
+ 0,
4492
+ 153,
4493
+ 27,
4494
+ 88,
4495
+ 92,
4496
+ 186
4497
+ ]
4498
+ }
4499
+ ],
4500
+ "program": {
4501
+ "kind": "const",
4502
+ "value": [
4503
+ 71,
4504
+ 60,
4505
+ 51,
4506
+ 156,
4507
+ 122,
4508
+ 30,
4509
+ 172,
4510
+ 150,
4511
+ 96,
4512
+ 246,
4513
+ 176,
4514
+ 17,
4515
+ 193,
4516
+ 207,
4517
+ 109,
4518
+ 240,
4519
+ 48,
4520
+ 80,
4521
+ 233,
4522
+ 105,
4523
+ 46,
4524
+ 253,
4525
+ 208,
4526
+ 131,
4527
+ 6,
4528
+ 239,
4529
+ 22,
4530
+ 78,
4531
+ 30,
4532
+ 164,
4533
+ 15,
4534
+ 162
4535
+ ]
4536
+ }
4537
+ }
4538
+ },
4539
+ {
4540
+ "name": "treasury",
4541
+ "writable": true,
4542
+ "pda": {
4543
+ "seeds": [
4544
+ {
4545
+ "kind": "const",
4546
+ "value": [
4547
+ 116,
4548
+ 114,
4549
+ 101,
4550
+ 97,
4551
+ 115,
4552
+ 117,
4553
+ 114,
4554
+ 121
4555
+ ]
4556
+ }
4557
+ ],
4558
+ "program": {
4559
+ "kind": "const",
4560
+ "value": [
4561
+ 71,
4562
+ 60,
4563
+ 51,
4564
+ 156,
4565
+ 122,
4566
+ 30,
4567
+ 172,
4568
+ 150,
4569
+ 96,
4570
+ 246,
4571
+ 176,
4572
+ 17,
4573
+ 193,
4574
+ 207,
4575
+ 109,
4576
+ 240,
4577
+ 48,
4578
+ 80,
4579
+ 233,
4580
+ 105,
4581
+ 46,
4582
+ 253,
4583
+ 208,
4584
+ 131,
4585
+ 6,
4586
+ 239,
4587
+ 22,
4588
+ 78,
4589
+ 30,
4590
+ 164,
4591
+ 15,
4592
+ 162
4593
+ ]
4594
+ }
4595
+ }
4596
+ },
4597
+ {
4598
+ "name": "referral_account",
4599
+ "writable": true
4600
+ },
4601
+ {
4602
+ "name": "sol_usd_price_feed"
4603
+ },
4604
+ {
4605
+ "name": "admin_program"
4606
+ },
4607
+ {
4608
+ "name": "project"
4609
+ },
4610
+ {
4611
+ "name": "utility_config",
2670
4612
  "pda": {
2671
4613
  "seeds": [
2672
4614
  {
2673
4615
  "kind": "const",
2674
4616
  "value": [
2675
- 112,
2676
- 111,
2677
- 111,
2678
- 108,
2679
- 95,
2680
- 97,
2681
4617
  117,
2682
4618
  116,
2683
- 104,
2684
- 111,
2685
- 114,
4619
+ 105,
4620
+ 108,
2686
4621
  105,
2687
4622
  116,
2688
4623
  121
2689
4624
  ]
2690
4625
  },
2691
4626
  {
2692
- "kind": "arg",
2693
- "path": "pool_id"
4627
+ "kind": "account",
4628
+ "path": "pool.project_id",
4629
+ "account": "StakePool"
4630
+ },
4631
+ {
4632
+ "kind": "const",
4633
+ "value": [
4634
+ 182,
4635
+ 85,
4636
+ 149,
4637
+ 145,
4638
+ 194,
4639
+ 4,
4640
+ 158,
4641
+ 38,
4642
+ 168,
4643
+ 72,
4644
+ 182,
4645
+ 51,
4646
+ 132,
4647
+ 52,
4648
+ 97,
4649
+ 170,
4650
+ 23,
4651
+ 153,
4652
+ 124,
4653
+ 70,
4654
+ 210,
4655
+ 226,
4656
+ 230,
4657
+ 79,
4658
+ 131,
4659
+ 249,
4660
+ 0,
4661
+ 153,
4662
+ 27,
4663
+ 88,
4664
+ 92,
4665
+ 186
4666
+ ]
2694
4667
  }
2695
- ]
4668
+ ],
4669
+ "program": {
4670
+ "kind": "const",
4671
+ "value": [
4672
+ 121,
4673
+ 79,
4674
+ 236,
4675
+ 61,
4676
+ 182,
4677
+ 18,
4678
+ 189,
4679
+ 248,
4680
+ 249,
4681
+ 169,
4682
+ 55,
4683
+ 18,
4684
+ 89,
4685
+ 83,
4686
+ 5,
4687
+ 231,
4688
+ 222,
4689
+ 189,
4690
+ 185,
4691
+ 107,
4692
+ 205,
4693
+ 114,
4694
+ 8,
4695
+ 14,
4696
+ 150,
4697
+ 1,
4698
+ 213,
4699
+ 147,
4700
+ 115,
4701
+ 98,
4702
+ 138,
4703
+ 118
4704
+ ]
4705
+ }
2696
4706
  }
2697
4707
  },
2698
- {
2699
- "name": "nft_asset",
2700
- "writable": true
2701
- },
2702
- {
2703
- "name": "collection"
2704
- },
2705
- {
2706
- "name": "mpl_core_program"
2707
- },
2708
- {
2709
- "name": "fee_config"
2710
- },
2711
- {
2712
- "name": "treasury",
2713
- "writable": true
2714
- },
2715
- {
2716
- "name": "referral_account",
2717
- "writable": true
2718
- },
2719
- {
2720
- "name": "sol_usd_price_feed"
2721
- },
2722
- {
2723
- "name": "admin_program"
2724
- },
2725
4708
  {
2726
4709
  "name": "staker",
2727
4710
  "writable": true,
@@ -2923,11 +4906,245 @@
2923
4906
  "writable": true
2924
4907
  },
2925
4908
  {
2926
- "name": "fee_config"
4909
+ "name": "fee_config",
4910
+ "pda": {
4911
+ "seeds": [
4912
+ {
4913
+ "kind": "const",
4914
+ "value": [
4915
+ 102,
4916
+ 101,
4917
+ 101
4918
+ ]
4919
+ },
4920
+ {
4921
+ "kind": "const",
4922
+ "value": [
4923
+ 182,
4924
+ 85,
4925
+ 149,
4926
+ 145,
4927
+ 194,
4928
+ 4,
4929
+ 158,
4930
+ 38,
4931
+ 168,
4932
+ 72,
4933
+ 182,
4934
+ 51,
4935
+ 132,
4936
+ 52,
4937
+ 97,
4938
+ 170,
4939
+ 23,
4940
+ 153,
4941
+ 124,
4942
+ 70,
4943
+ 210,
4944
+ 226,
4945
+ 230,
4946
+ 79,
4947
+ 131,
4948
+ 249,
4949
+ 0,
4950
+ 153,
4951
+ 27,
4952
+ 88,
4953
+ 92,
4954
+ 186
4955
+ ]
4956
+ }
4957
+ ],
4958
+ "program": {
4959
+ "kind": "const",
4960
+ "value": [
4961
+ 71,
4962
+ 60,
4963
+ 51,
4964
+ 156,
4965
+ 122,
4966
+ 30,
4967
+ 172,
4968
+ 150,
4969
+ 96,
4970
+ 246,
4971
+ 176,
4972
+ 17,
4973
+ 193,
4974
+ 207,
4975
+ 109,
4976
+ 240,
4977
+ 48,
4978
+ 80,
4979
+ 233,
4980
+ 105,
4981
+ 46,
4982
+ 253,
4983
+ 208,
4984
+ 131,
4985
+ 6,
4986
+ 239,
4987
+ 22,
4988
+ 78,
4989
+ 30,
4990
+ 164,
4991
+ 15,
4992
+ 162
4993
+ ]
4994
+ }
4995
+ }
4996
+ },
4997
+ {
4998
+ "name": "program_registry",
4999
+ "pda": {
5000
+ "seeds": [
5001
+ {
5002
+ "kind": "const",
5003
+ "value": [
5004
+ 114,
5005
+ 101,
5006
+ 103,
5007
+ 105,
5008
+ 115,
5009
+ 116,
5010
+ 114,
5011
+ 121
5012
+ ]
5013
+ },
5014
+ {
5015
+ "kind": "const",
5016
+ "value": [
5017
+ 182,
5018
+ 85,
5019
+ 149,
5020
+ 145,
5021
+ 194,
5022
+ 4,
5023
+ 158,
5024
+ 38,
5025
+ 168,
5026
+ 72,
5027
+ 182,
5028
+ 51,
5029
+ 132,
5030
+ 52,
5031
+ 97,
5032
+ 170,
5033
+ 23,
5034
+ 153,
5035
+ 124,
5036
+ 70,
5037
+ 210,
5038
+ 226,
5039
+ 230,
5040
+ 79,
5041
+ 131,
5042
+ 249,
5043
+ 0,
5044
+ 153,
5045
+ 27,
5046
+ 88,
5047
+ 92,
5048
+ 186
5049
+ ]
5050
+ }
5051
+ ],
5052
+ "program": {
5053
+ "kind": "const",
5054
+ "value": [
5055
+ 71,
5056
+ 60,
5057
+ 51,
5058
+ 156,
5059
+ 122,
5060
+ 30,
5061
+ 172,
5062
+ 150,
5063
+ 96,
5064
+ 246,
5065
+ 176,
5066
+ 17,
5067
+ 193,
5068
+ 207,
5069
+ 109,
5070
+ 240,
5071
+ 48,
5072
+ 80,
5073
+ 233,
5074
+ 105,
5075
+ 46,
5076
+ 253,
5077
+ 208,
5078
+ 131,
5079
+ 6,
5080
+ 239,
5081
+ 22,
5082
+ 78,
5083
+ 30,
5084
+ 164,
5085
+ 15,
5086
+ 162
5087
+ ]
5088
+ }
5089
+ }
2927
5090
  },
2928
5091
  {
2929
5092
  "name": "treasury",
2930
- "writable": true
5093
+ "writable": true,
5094
+ "pda": {
5095
+ "seeds": [
5096
+ {
5097
+ "kind": "const",
5098
+ "value": [
5099
+ 116,
5100
+ 114,
5101
+ 101,
5102
+ 97,
5103
+ 115,
5104
+ 117,
5105
+ 114,
5106
+ 121
5107
+ ]
5108
+ }
5109
+ ],
5110
+ "program": {
5111
+ "kind": "const",
5112
+ "value": [
5113
+ 71,
5114
+ 60,
5115
+ 51,
5116
+ 156,
5117
+ 122,
5118
+ 30,
5119
+ 172,
5120
+ 150,
5121
+ 96,
5122
+ 246,
5123
+ 176,
5124
+ 17,
5125
+ 193,
5126
+ 207,
5127
+ 109,
5128
+ 240,
5129
+ 48,
5130
+ 80,
5131
+ 233,
5132
+ 105,
5133
+ 46,
5134
+ 253,
5135
+ 208,
5136
+ 131,
5137
+ 6,
5138
+ 239,
5139
+ 22,
5140
+ 78,
5141
+ 30,
5142
+ 164,
5143
+ 15,
5144
+ 162
5145
+ ]
5146
+ }
5147
+ }
2931
5148
  },
2932
5149
  {
2933
5150
  "name": "referral_account",
@@ -2939,6 +5156,107 @@
2939
5156
  {
2940
5157
  "name": "admin_program"
2941
5158
  },
5159
+ {
5160
+ "name": "project"
5161
+ },
5162
+ {
5163
+ "name": "utility_config",
5164
+ "pda": {
5165
+ "seeds": [
5166
+ {
5167
+ "kind": "const",
5168
+ "value": [
5169
+ 117,
5170
+ 116,
5171
+ 105,
5172
+ 108,
5173
+ 105,
5174
+ 116,
5175
+ 121
5176
+ ]
5177
+ },
5178
+ {
5179
+ "kind": "account",
5180
+ "path": "pool.project_id",
5181
+ "account": "StakePool"
5182
+ },
5183
+ {
5184
+ "kind": "const",
5185
+ "value": [
5186
+ 182,
5187
+ 85,
5188
+ 149,
5189
+ 145,
5190
+ 194,
5191
+ 4,
5192
+ 158,
5193
+ 38,
5194
+ 168,
5195
+ 72,
5196
+ 182,
5197
+ 51,
5198
+ 132,
5199
+ 52,
5200
+ 97,
5201
+ 170,
5202
+ 23,
5203
+ 153,
5204
+ 124,
5205
+ 70,
5206
+ 210,
5207
+ 226,
5208
+ 230,
5209
+ 79,
5210
+ 131,
5211
+ 249,
5212
+ 0,
5213
+ 153,
5214
+ 27,
5215
+ 88,
5216
+ 92,
5217
+ 186
5218
+ ]
5219
+ }
5220
+ ],
5221
+ "program": {
5222
+ "kind": "const",
5223
+ "value": [
5224
+ 121,
5225
+ 79,
5226
+ 236,
5227
+ 61,
5228
+ 182,
5229
+ 18,
5230
+ 189,
5231
+ 248,
5232
+ 249,
5233
+ 169,
5234
+ 55,
5235
+ 18,
5236
+ 89,
5237
+ 83,
5238
+ 5,
5239
+ 231,
5240
+ 222,
5241
+ 189,
5242
+ 185,
5243
+ 107,
5244
+ 205,
5245
+ 114,
5246
+ 8,
5247
+ 14,
5248
+ 150,
5249
+ 1,
5250
+ 213,
5251
+ 147,
5252
+ 115,
5253
+ 98,
5254
+ 138,
5255
+ 118
5256
+ ]
5257
+ }
5258
+ }
5259
+ },
2942
5260
  {
2943
5261
  "name": "nft_edition",
2944
5262
  "writable": true
@@ -2950,6 +5268,22 @@
2950
5268
  "name": "sysvar_instructions",
2951
5269
  "address": "Sysvar1nstructions1111111111111111111111111"
2952
5270
  },
5271
+ {
5272
+ "name": "token_record",
5273
+ "docs": [
5274
+ "Seeds: [\"metadata\", mpl_token_metadata_id, mint, \"token_record\", token_account]"
5275
+ ],
5276
+ "writable": true,
5277
+ "optional": true
5278
+ },
5279
+ {
5280
+ "name": "destination_token_record",
5281
+ "docs": [
5282
+ "Seeds: [\"metadata\", mpl_token_metadata_id, mint, \"token_record\", escrow_token_account]"
5283
+ ],
5284
+ "writable": true,
5285
+ "optional": true
5286
+ },
2953
5287
  {
2954
5288
  "name": "staker",
2955
5289
  "writable": true,
@@ -3214,23 +5548,6 @@
3214
5548
  {
3215
5549
  "name": "reward_mint"
3216
5550
  },
3217
- {
3218
- "name": "fee_config"
3219
- },
3220
- {
3221
- "name": "treasury",
3222
- "writable": true
3223
- },
3224
- {
3225
- "name": "referral_account",
3226
- "writable": true
3227
- },
3228
- {
3229
- "name": "sol_usd_price_feed"
3230
- },
3231
- {
3232
- "name": "admin_program"
3233
- },
3234
5551
  {
3235
5552
  "name": "staker",
3236
5553
  "writable": true,
@@ -3399,6 +5716,10 @@
3399
5716
  },
3400
5717
  {
3401
5718
  "name": "pool_authority",
5719
+ "docs": [
5720
+ "Must be mutable because mpl-core Transfer debits lamports from the authority/payer."
5721
+ ],
5722
+ "writable": true,
3402
5723
  "pda": {
3403
5724
  "seeds": [
3404
5725
  {
@@ -3432,7 +5753,8 @@
3432
5753
  "writable": true
3433
5754
  },
3434
5755
  {
3435
- "name": "collection"
5756
+ "name": "collection",
5757
+ "writable": true
3436
5758
  },
3437
5759
  {
3438
5760
  "name": "mpl_core_program"
@@ -3507,23 +5829,6 @@
3507
5829
  {
3508
5830
  "name": "reward_mint"
3509
5831
  },
3510
- {
3511
- "name": "fee_config"
3512
- },
3513
- {
3514
- "name": "treasury",
3515
- "writable": true
3516
- },
3517
- {
3518
- "name": "referral_account",
3519
- "writable": true
3520
- },
3521
- {
3522
- "name": "sol_usd_price_feed"
3523
- },
3524
- {
3525
- "name": "admin_program"
3526
- },
3527
5832
  {
3528
5833
  "name": "staker",
3529
5834
  "writable": true,
@@ -3691,7 +5996,7 @@
3691
5996
  {
3692
5997
  "name": "staker_nft_account",
3693
5998
  "docs": [
3694
- "User's NFT token account destination for unstaked NFT."
5999
+ "User's NFT token account \u2014 destination for unstaked NFT."
3695
6000
  ],
3696
6001
  "writable": true
3697
6002
  },
@@ -3774,23 +6079,6 @@
3774
6079
  {
3775
6080
  "name": "reward_mint"
3776
6081
  },
3777
- {
3778
- "name": "fee_config"
3779
- },
3780
- {
3781
- "name": "treasury",
3782
- "writable": true
3783
- },
3784
- {
3785
- "name": "referral_account",
3786
- "writable": true
3787
- },
3788
- {
3789
- "name": "sol_usd_price_feed"
3790
- },
3791
- {
3792
- "name": "admin_program"
3793
- },
3794
6082
  {
3795
6083
  "name": "nft_metadata",
3796
6084
  "writable": true
@@ -3806,6 +6094,16 @@
3806
6094
  "name": "sysvar_instructions",
3807
6095
  "address": "Sysvar1nstructions1111111111111111111111111"
3808
6096
  },
6097
+ {
6098
+ "name": "token_record",
6099
+ "writable": true,
6100
+ "optional": true
6101
+ },
6102
+ {
6103
+ "name": "destination_token_record",
6104
+ "writable": true,
6105
+ "optional": true
6106
+ },
3809
6107
  {
3810
6108
  "name": "staker",
3811
6109
  "writable": true,
@@ -3841,6 +6139,108 @@
3841
6139
  }
3842
6140
  ]
3843
6141
  },
6142
+ {
6143
+ "name": "update_pool_secondary_reward",
6144
+ "discriminator": [
6145
+ 166,
6146
+ 51,
6147
+ 97,
6148
+ 200,
6149
+ 97,
6150
+ 226,
6151
+ 3,
6152
+ 41
6153
+ ],
6154
+ "accounts": [
6155
+ {
6156
+ "name": "pool",
6157
+ "pda": {
6158
+ "seeds": [
6159
+ {
6160
+ "kind": "const",
6161
+ "value": [
6162
+ 110,
6163
+ 102,
6164
+ 116,
6165
+ 95,
6166
+ 112,
6167
+ 111,
6168
+ 111,
6169
+ 108
6170
+ ]
6171
+ },
6172
+ {
6173
+ "kind": "arg",
6174
+ "path": "project_id"
6175
+ },
6176
+ {
6177
+ "kind": "arg",
6178
+ "path": "pool_id"
6179
+ }
6180
+ ]
6181
+ }
6182
+ },
6183
+ {
6184
+ "name": "pool_secondary",
6185
+ "writable": true,
6186
+ "pda": {
6187
+ "seeds": [
6188
+ {
6189
+ "kind": "const",
6190
+ "value": [
6191
+ 112,
6192
+ 111,
6193
+ 111,
6194
+ 108,
6195
+ 95,
6196
+ 115,
6197
+ 101,
6198
+ 99,
6199
+ 111,
6200
+ 110,
6201
+ 100,
6202
+ 97,
6203
+ 114,
6204
+ 121
6205
+ ]
6206
+ },
6207
+ {
6208
+ "kind": "arg",
6209
+ "path": "pool_id"
6210
+ }
6211
+ ]
6212
+ }
6213
+ },
6214
+ {
6215
+ "name": "authority",
6216
+ "signer": true
6217
+ }
6218
+ ],
6219
+ "args": [
6220
+ {
6221
+ "name": "project_id",
6222
+ "type": "u64"
6223
+ },
6224
+ {
6225
+ "name": "pool_id",
6226
+ "type": "u64"
6227
+ },
6228
+ {
6229
+ "name": "reward_index",
6230
+ "type": "u8"
6231
+ },
6232
+ {
6233
+ "name": "base_rate",
6234
+ "type": "u64"
6235
+ },
6236
+ {
6237
+ "name": "lock_tier_rates",
6238
+ "type": {
6239
+ "vec": "u64"
6240
+ }
6241
+ }
6242
+ ]
6243
+ },
3844
6244
  {
3845
6245
  "name": "update_stake_pool",
3846
6246
  "discriminator": [
@@ -3983,6 +6383,7 @@
3983
6383
  "accounts": [
3984
6384
  {
3985
6385
  "name": "pool",
6386
+ "writable": true,
3986
6387
  "pda": {
3987
6388
  "seeds": [
3988
6389
  {
@@ -4401,6 +6802,60 @@
4401
6802
  ]
4402
6803
  }
4403
6804
  ],
6805
+ "events": [
6806
+ {
6807
+ "name": "NftStaked",
6808
+ "discriminator": [
6809
+ 150,
6810
+ 229,
6811
+ 155,
6812
+ 99,
6813
+ 88,
6814
+ 181,
6815
+ 254,
6816
+ 61
6817
+ ]
6818
+ },
6819
+ {
6820
+ "name": "NftUnstaked",
6821
+ "discriminator": [
6822
+ 253,
6823
+ 242,
6824
+ 47,
6825
+ 131,
6826
+ 231,
6827
+ 214,
6828
+ 72,
6829
+ 117
6830
+ ]
6831
+ },
6832
+ {
6833
+ "name": "RewardsClaimed",
6834
+ "discriminator": [
6835
+ 75,
6836
+ 98,
6837
+ 88,
6838
+ 18,
6839
+ 219,
6840
+ 112,
6841
+ 88,
6842
+ 121
6843
+ ]
6844
+ },
6845
+ {
6846
+ "name": "SecondaryRewardsClaimed",
6847
+ "discriminator": [
6848
+ 168,
6849
+ 230,
6850
+ 110,
6851
+ 31,
6852
+ 141,
6853
+ 168,
6854
+ 20,
6855
+ 77
6856
+ ]
6857
+ }
6858
+ ],
4404
6859
  "errors": [
4405
6860
  {
4406
6861
  "code": 6000,
@@ -4571,6 +7026,71 @@
4571
7026
  "code": 6033,
4572
7027
  "name": "NoSecondaryRewardsConfigured",
4573
7028
  "msg": "No secondary rewards configured for this pool"
7029
+ },
7030
+ {
7031
+ "code": 6034,
7032
+ "name": "SecondaryAccountRequired",
7033
+ "msg": "Secondary reward account required when entry has secondary rates"
7034
+ },
7035
+ {
7036
+ "code": 6035,
7037
+ "name": "CnftRequiresGate",
7038
+ "msg": "cNFT pools require a Merkle gate for collection verification"
7039
+ },
7040
+ {
7041
+ "code": 6036,
7042
+ "name": "InvalidFeeConfig",
7043
+ "msg": "Invalid fee configuration for NFT staking"
7044
+ },
7045
+ {
7046
+ "code": 6037,
7047
+ "name": "UtilityNotActive",
7048
+ "msg": "Utility is not active for this project \u2014 check subscription status"
7049
+ },
7050
+ {
7051
+ "code": 6038,
7052
+ "name": "InvalidMint",
7053
+ "msg": "Reward mint does not match the pool's configured reward mint"
7054
+ },
7055
+ {
7056
+ "code": 6039,
7057
+ "name": "VaultNotEmpty",
7058
+ "msg": "Reward vault must be empty before this operation"
7059
+ },
7060
+ {
7061
+ "code": 6040,
7062
+ "name": "VaultUnderCollateralized",
7063
+ "msg": "Withdrawal would leave the reward vault under-collateralized for outstanding obligations"
7064
+ },
7065
+ {
7066
+ "code": 6041,
7067
+ "name": "RewardMintImmutable",
7068
+ "msg": "reward_mint is immutable once the pool is created"
7069
+ },
7070
+ {
7071
+ "code": 6042,
7072
+ "name": "RewardEndAtNotFuture",
7073
+ "msg": "reward_end_at must be strictly in the future"
7074
+ },
7075
+ {
7076
+ "code": 6043,
7077
+ "name": "PoolHasOutstandingObligations",
7078
+ "msg": "Pool still has outstanding reward obligations"
7079
+ },
7080
+ {
7081
+ "code": 6044,
7082
+ "name": "SecondaryRewardRetired",
7083
+ "msg": "Secondary reward is retired and cannot be modified"
7084
+ },
7085
+ {
7086
+ "code": 6045,
7087
+ "name": "SecondaryRewardAlreadyRetired",
7088
+ "msg": "Secondary reward is already retired"
7089
+ },
7090
+ {
7091
+ "code": 6046,
7092
+ "name": "SecondaryRewardMintImmutable",
7093
+ "msg": "Secondary reward mint is immutable \u2014 retire and add a new slot instead"
4574
7094
  }
4575
7095
  ],
4576
7096
  "types": [
@@ -4594,11 +7114,63 @@
4594
7114
  ]
4595
7115
  }
4596
7116
  },
7117
+ {
7118
+ "name": "NftStaked",
7119
+ "type": {
7120
+ "kind": "struct",
7121
+ "fields": [
7122
+ {
7123
+ "name": "pool_id",
7124
+ "type": "u64"
7125
+ },
7126
+ {
7127
+ "name": "staker",
7128
+ "type": "pubkey"
7129
+ },
7130
+ {
7131
+ "name": "mint",
7132
+ "type": "pubkey"
7133
+ },
7134
+ {
7135
+ "name": "lock_tier",
7136
+ "type": "u8"
7137
+ },
7138
+ {
7139
+ "name": "timestamp",
7140
+ "type": "i64"
7141
+ }
7142
+ ]
7143
+ }
7144
+ },
7145
+ {
7146
+ "name": "NftUnstaked",
7147
+ "type": {
7148
+ "kind": "struct",
7149
+ "fields": [
7150
+ {
7151
+ "name": "pool_id",
7152
+ "type": "u64"
7153
+ },
7154
+ {
7155
+ "name": "staker",
7156
+ "type": "pubkey"
7157
+ },
7158
+ {
7159
+ "name": "mint",
7160
+ "type": "pubkey"
7161
+ },
7162
+ {
7163
+ "name": "timestamp",
7164
+ "type": "i64"
7165
+ }
7166
+ ]
7167
+ }
7168
+ },
4597
7169
  {
4598
7170
  "name": "PoolSecondaryRewards",
4599
7171
  "docs": [
4600
7172
  "Separate PDA holding secondary reward configs for a pool.",
4601
- "Exists only when the pool has secondary rewards zero migration needed."
7173
+ "Exists only when the pool has secondary rewards \u2014 zero migration needed."
4602
7174
  ],
4603
7175
  "type": {
4604
7176
  "kind": "struct",
@@ -4617,6 +7189,13 @@
4617
7189
  }
4618
7190
  }
4619
7191
  },
7192
+ {
7193
+ "name": "is_initialized",
7194
+ "docs": [
7195
+ "Explicit init sentinel \u2014 avoids ambiguous pool_id == 0 check for pool 0 (STAKE-H1)"
7196
+ ],
7197
+ "type": "bool"
7198
+ },
4620
7199
  {
4621
7200
  "name": "bump",
4622
7201
  "type": "u8"
@@ -4682,6 +7261,30 @@
4682
7261
  ]
4683
7262
  }
4684
7263
  },
7264
+ {
7265
+ "name": "RewardsClaimed",
7266
+ "type": {
7267
+ "kind": "struct",
7268
+ "fields": [
7269
+ {
7270
+ "name": "pool_id",
7271
+ "type": "u64"
7272
+ },
7273
+ {
7274
+ "name": "staker",
7275
+ "type": "pubkey"
7276
+ },
7277
+ {
7278
+ "name": "amount",
7279
+ "type": "u64"
7280
+ },
7281
+ {
7282
+ "name": "timestamp",
7283
+ "type": "i64"
7284
+ }
7285
+ ]
7286
+ }
7287
+ },
4685
7288
  {
4686
7289
  "name": "SecondaryReward",
4687
7290
  "docs": [
@@ -4713,6 +7316,43 @@
4713
7316
  "type": {
4714
7317
  "vec": "u64"
4715
7318
  }
7319
+ },
7320
+ {
7321
+ "name": "is_retired",
7322
+ "docs": [
7323
+ "If `true`, this slot is retired: no new accrual, stakers can still",
7324
+ "claim their already-accrued balance. Authority must re-add a new slot",
7325
+ "(via `add_pool_secondary_reward`) to pay a different mint."
7326
+ ],
7327
+ "type": "bool"
7328
+ }
7329
+ ]
7330
+ }
7331
+ },
7332
+ {
7333
+ "name": "SecondaryRewardsClaimed",
7334
+ "type": {
7335
+ "kind": "struct",
7336
+ "fields": [
7337
+ {
7338
+ "name": "pool_id",
7339
+ "type": "u64"
7340
+ },
7341
+ {
7342
+ "name": "staker",
7343
+ "type": "pubkey"
7344
+ },
7345
+ {
7346
+ "name": "index",
7347
+ "type": "u8"
7348
+ },
7349
+ {
7350
+ "name": "amount",
7351
+ "type": "u64"
7352
+ },
7353
+ {
7354
+ "name": "timestamp",
7355
+ "type": "i64"
4716
7356
  }
4717
7357
  ]
4718
7358
  }
@@ -4720,7 +7360,7 @@
4720
7360
  {
4721
7361
  "name": "StakeEntry",
4722
7362
  "docs": [
4723
- "Per-NFT custody and lock tracking. No reward fields rewards are",
7363
+ "Per-NFT custody and lock tracking. No reward fields \u2014 rewards are",
4724
7364
  "accumulated on the parent StakerAccount via `effective_rate`."
4725
7365
  ],
4726
7366
  "type": {
@@ -4891,6 +7531,15 @@
4891
7531
  ],
4892
7532
  "type": "u64"
4893
7533
  },
7534
+ {
7535
+ "name": "total_obligation_pending",
7536
+ "docs": [
7537
+ "Sum of all settled-but-unclaimed primary rewards across all stakers.",
7538
+ "The reward vault must maintain `balance >= total_obligation_pending`",
7539
+ "at all times after withdrawals."
7540
+ ],
7541
+ "type": "u64"
7542
+ },
4894
7543
  {
4895
7544
  "name": "bump",
4896
7545
  "type": "u8"