@streamflow/distributor 10.0.3 → 11.0.0-alpha.p334.30f5e22
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/cjs/index.cjs +2660 -3339
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/descriptor/aligned_distributor.d.cts +187 -12
- package/dist/cjs/solana/descriptor/merkle_distributor.d.cts +465 -11
- package/dist/cjs/solana/index.cjs +2660 -3339
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +71 -999
- package/dist/esm/index.js +1546 -2205
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/aligned_distributor.d.ts +187 -12
- package/dist/esm/solana/descriptor/idl/aligned_distributor.json +187 -12
- package/dist/esm/solana/descriptor/idl/merkle_distributor.json +465 -11
- package/dist/esm/solana/descriptor/merkle_distributor.d.ts +465 -11
- package/dist/esm/solana/index.d.ts +71 -999
- package/dist/esm/solana/index.js +1547 -2196
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -8,7 +8,7 @@ type AlignedDistributor = {
|
|
|
8
8
|
"address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "alignedDistributor";
|
|
11
|
-
"version": "
|
|
11
|
+
"version": "2.0.0";
|
|
12
12
|
"spec": "0.1.0";
|
|
13
13
|
"description": "Proxy for merkle distributor that updates Vesting duration according to token market performance.";
|
|
14
14
|
};
|
|
@@ -56,6 +56,34 @@ type AlignedDistributor = {
|
|
|
56
56
|
}
|
|
57
57
|
];
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
"name": "claimSolFees";
|
|
61
|
+
"discriminator": [
|
|
62
|
+
127,
|
|
63
|
+
0,
|
|
64
|
+
119,
|
|
65
|
+
89,
|
|
66
|
+
193,
|
|
67
|
+
27,
|
|
68
|
+
209,
|
|
69
|
+
142
|
|
70
|
+
];
|
|
71
|
+
"accounts": [
|
|
72
|
+
{
|
|
73
|
+
"name": "alignedDistributor";
|
|
74
|
+
"docs": [
|
|
75
|
+
"The [MerkleDistributor]."
|
|
76
|
+
];
|
|
77
|
+
"writable": true;
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "treasury";
|
|
81
|
+
"writable": true;
|
|
82
|
+
"address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw";
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
"args": [];
|
|
86
|
+
},
|
|
59
87
|
{
|
|
60
88
|
"name": "clawback";
|
|
61
89
|
"discriminator": [
|
|
@@ -559,6 +587,76 @@ type AlignedDistributor = {
|
|
|
559
587
|
"docs": [
|
|
560
588
|
"The [Token] program."
|
|
561
589
|
];
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "partnerOracleConfig";
|
|
593
|
+
"pda": {
|
|
594
|
+
"seeds": [
|
|
595
|
+
{
|
|
596
|
+
"kind": "const";
|
|
597
|
+
"value": [
|
|
598
|
+
97,
|
|
599
|
+
105,
|
|
600
|
+
114,
|
|
601
|
+
100,
|
|
602
|
+
114,
|
|
603
|
+
111,
|
|
604
|
+
112,
|
|
605
|
+
95,
|
|
606
|
+
99,
|
|
607
|
+
111,
|
|
608
|
+
110,
|
|
609
|
+
102,
|
|
610
|
+
105,
|
|
611
|
+
103
|
|
612
|
+
];
|
|
613
|
+
}
|
|
614
|
+
];
|
|
615
|
+
"program": {
|
|
616
|
+
"kind": "const";
|
|
617
|
+
"value": [
|
|
618
|
+
12,
|
|
619
|
+
48,
|
|
620
|
+
148,
|
|
621
|
+
48,
|
|
622
|
+
221,
|
|
623
|
+
89,
|
|
624
|
+
2,
|
|
625
|
+
209,
|
|
626
|
+
180,
|
|
627
|
+
126,
|
|
628
|
+
151,
|
|
629
|
+
216,
|
|
630
|
+
166,
|
|
631
|
+
3,
|
|
632
|
+
112,
|
|
633
|
+
50,
|
|
634
|
+
177,
|
|
635
|
+
192,
|
|
636
|
+
141,
|
|
637
|
+
218,
|
|
638
|
+
37,
|
|
639
|
+
78,
|
|
640
|
+
51,
|
|
641
|
+
109,
|
|
642
|
+
243,
|
|
643
|
+
106,
|
|
644
|
+
174,
|
|
645
|
+
122,
|
|
646
|
+
93,
|
|
647
|
+
121,
|
|
648
|
+
191,
|
|
649
|
+
119
|
|
650
|
+
];
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"name": "partnerOracle";
|
|
656
|
+
"docs": [
|
|
657
|
+
"Partner Oracle program that stores fees"
|
|
658
|
+
];
|
|
659
|
+
"address": "pardpVtPjC8nLj1Dwncew62mUzfChdCX1EaoZe8oCAa";
|
|
562
660
|
}
|
|
563
661
|
];
|
|
564
662
|
"args": [
|
|
@@ -934,6 +1032,11 @@ type AlignedDistributor = {
|
|
|
934
1032
|
"code": 6013;
|
|
935
1033
|
"name": "invalidMint";
|
|
936
1034
|
"msg": "Invalid Mint";
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"code": 6014;
|
|
1038
|
+
"name": "noFeesToClaim";
|
|
1039
|
+
"msg": "No fees to claim";
|
|
937
1040
|
}
|
|
938
1041
|
];
|
|
939
1042
|
"types": [
|
|
@@ -1082,6 +1185,20 @@ type AlignedDistributor = {
|
|
|
1082
1185
|
];
|
|
1083
1186
|
"type": "pubkey";
|
|
1084
1187
|
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "priceOracleFee";
|
|
1190
|
+
"docs": [
|
|
1191
|
+
"Fee for custom price oracle used in dynamic airdrops"
|
|
1192
|
+
];
|
|
1193
|
+
"type": "u32";
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"name": "priceOracleFeeClaimed";
|
|
1197
|
+
"docs": [
|
|
1198
|
+
"Whether fee for the price oracle has been claimed"
|
|
1199
|
+
];
|
|
1200
|
+
"type": "bool";
|
|
1201
|
+
},
|
|
1085
1202
|
{
|
|
1086
1203
|
"name": "buffer2";
|
|
1087
1204
|
"docs": [
|
|
@@ -1090,7 +1207,7 @@ type AlignedDistributor = {
|
|
|
1090
1207
|
"type": {
|
|
1091
1208
|
"array": [
|
|
1092
1209
|
"u8",
|
|
1093
|
-
|
|
1210
|
+
27
|
|
1094
1211
|
];
|
|
1095
1212
|
};
|
|
1096
1213
|
},
|
|
@@ -1338,26 +1455,84 @@ type AlignedDistributor = {
|
|
|
1338
1455
|
"type": "u16";
|
|
1339
1456
|
},
|
|
1340
1457
|
{
|
|
1341
|
-
"name": "
|
|
1458
|
+
"name": "creationFee";
|
|
1342
1459
|
"docs": [
|
|
1343
|
-
"
|
|
1460
|
+
"Creation SOL fee"
|
|
1344
1461
|
];
|
|
1345
|
-
"type":
|
|
1346
|
-
"array": [
|
|
1347
|
-
"u8",
|
|
1348
|
-
20
|
|
1349
|
-
];
|
|
1350
|
-
};
|
|
1462
|
+
"type": "u32";
|
|
1351
1463
|
},
|
|
1352
1464
|
{
|
|
1353
|
-
"name": "
|
|
1465
|
+
"name": "creationFeeClaimed";
|
|
1466
|
+
"docs": [
|
|
1467
|
+
"Whether creation SOL was claimed"
|
|
1468
|
+
];
|
|
1469
|
+
"type": "bool";
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "claimMinFee";
|
|
1473
|
+
"docs": [
|
|
1474
|
+
"Dynamic claim fee in SOL, min"
|
|
1475
|
+
];
|
|
1476
|
+
"type": "u32";
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "claimMaxFee";
|
|
1480
|
+
"docs": [
|
|
1481
|
+
"Dynamic claim fee in SOL, max"
|
|
1482
|
+
];
|
|
1483
|
+
"type": "u32";
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"name": "allocationFactor";
|
|
1487
|
+
"docs": [
|
|
1488
|
+
"Factor to multiply claimable SOL lamports by when calculating fee"
|
|
1489
|
+
];
|
|
1490
|
+
"type": "f64";
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"name": "claimFeeClaimed";
|
|
1494
|
+
"docs": [
|
|
1495
|
+
"Whether all claim fees were claimed, true by default since no claim fee is taken on creation"
|
|
1496
|
+
];
|
|
1497
|
+
"type": "bool";
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"name": "tokenPriceLamports";
|
|
1501
|
+
"docs": [
|
|
1502
|
+
"Last observed token price in lamports per 1 whole token for claim fee calculation"
|
|
1503
|
+
];
|
|
1504
|
+
"type": "u64";
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"name": "clawbackTokenFeePercent";
|
|
1508
|
+
"docs": [
|
|
1509
|
+
"Token % fee on clawback"
|
|
1510
|
+
];
|
|
1511
|
+
"type": "f64";
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"name": "clawbackFeeClaimed";
|
|
1515
|
+
"docs": [
|
|
1516
|
+
"Whether clawback token % fee has been claimed"
|
|
1517
|
+
];
|
|
1518
|
+
"type": "bool";
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"name": "programVersion";
|
|
1522
|
+
"docs": [
|
|
1523
|
+
"Program version that initiated the Distributor account"
|
|
1524
|
+
];
|
|
1525
|
+
"type": "u8";
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
"name": "buffer";
|
|
1354
1529
|
"docs": [
|
|
1355
1530
|
"Buffer for additional fields"
|
|
1356
1531
|
];
|
|
1357
1532
|
"type": {
|
|
1358
1533
|
"array": [
|
|
1359
1534
|
"u8",
|
|
1360
|
-
|
|
1535
|
+
13
|
|
1361
1536
|
];
|
|
1362
1537
|
};
|
|
1363
1538
|
}
|