@streamflow/distributor 10.0.3 → 11.0.0-alpha.p334.45cbb4e

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.
@@ -8,7 +8,7 @@ type AlignedDistributor = {
8
8
  "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2";
9
9
  "metadata": {
10
10
  "name": "alignedDistributor";
11
- "version": "1.5.1";
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
- 32
1210
+ 27
1094
1211
  ];
1095
1212
  };
1096
1213
  },
@@ -1338,26 +1455,84 @@ type AlignedDistributor = {
1338
1455
  "type": "u16";
1339
1456
  },
1340
1457
  {
1341
- "name": "buffer2";
1458
+ "name": "creationFee";
1342
1459
  "docs": [
1343
- "Buffer for additional fields"
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": "buffer3";
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
- 32
1535
+ 13
1361
1536
  ];
1362
1537
  };
1363
1538
  }
@@ -2,7 +2,7 @@
2
2
  "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3
3
  "metadata": {
4
4
  "name": "aligned_distributor",
5
- "version": "1.5.1",
5
+ "version": "2.0.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Proxy for merkle distributor that updates Vesting duration according to token market performance."
8
8
  },
@@ -50,6 +50,34 @@
50
50
  }
51
51
  ]
52
52
  },
53
+ {
54
+ "name": "claim_sol_fees",
55
+ "discriminator": [
56
+ 127,
57
+ 0,
58
+ 119,
59
+ 89,
60
+ 193,
61
+ 27,
62
+ 209,
63
+ 142
64
+ ],
65
+ "accounts": [
66
+ {
67
+ "name": "aligned_distributor",
68
+ "docs": [
69
+ "The [MerkleDistributor]."
70
+ ],
71
+ "writable": true
72
+ },
73
+ {
74
+ "name": "treasury",
75
+ "writable": true,
76
+ "address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw"
77
+ }
78
+ ],
79
+ "args": []
80
+ },
53
81
  {
54
82
  "name": "clawback",
55
83
  "discriminator": [
@@ -553,6 +581,76 @@
553
581
  "docs": [
554
582
  "The [Token] program."
555
583
  ]
584
+ },
585
+ {
586
+ "name": "partner_oracle_config",
587
+ "pda": {
588
+ "seeds": [
589
+ {
590
+ "kind": "const",
591
+ "value": [
592
+ 97,
593
+ 105,
594
+ 114,
595
+ 100,
596
+ 114,
597
+ 111,
598
+ 112,
599
+ 95,
600
+ 99,
601
+ 111,
602
+ 110,
603
+ 102,
604
+ 105,
605
+ 103
606
+ ]
607
+ }
608
+ ],
609
+ "program": {
610
+ "kind": "const",
611
+ "value": [
612
+ 12,
613
+ 48,
614
+ 148,
615
+ 48,
616
+ 221,
617
+ 89,
618
+ 2,
619
+ 209,
620
+ 180,
621
+ 126,
622
+ 151,
623
+ 216,
624
+ 166,
625
+ 3,
626
+ 112,
627
+ 50,
628
+ 177,
629
+ 192,
630
+ 141,
631
+ 218,
632
+ 37,
633
+ 78,
634
+ 51,
635
+ 109,
636
+ 243,
637
+ 106,
638
+ 174,
639
+ 122,
640
+ 93,
641
+ 121,
642
+ 191,
643
+ 119
644
+ ]
645
+ }
646
+ }
647
+ },
648
+ {
649
+ "name": "partner_oracle",
650
+ "docs": [
651
+ "Partner Oracle program that stores fees"
652
+ ],
653
+ "address": "pardpVtPjC8nLj1Dwncew62mUzfChdCX1EaoZe8oCAa"
556
654
  }
557
655
  ],
558
656
  "args": [
@@ -928,6 +1026,11 @@
928
1026
  "code": 6013,
929
1027
  "name": "InvalidMint",
930
1028
  "msg": "Invalid Mint"
1029
+ },
1030
+ {
1031
+ "code": 6014,
1032
+ "name": "NoFeesToClaim",
1033
+ "msg": "No fees to claim"
931
1034
  }
932
1035
  ],
933
1036
  "types": [
@@ -1076,6 +1179,20 @@
1076
1179
  ],
1077
1180
  "type": "pubkey"
1078
1181
  },
1182
+ {
1183
+ "name": "price_oracle_fee",
1184
+ "docs": [
1185
+ "Fee for custom price oracle used in dynamic airdrops"
1186
+ ],
1187
+ "type": "u32"
1188
+ },
1189
+ {
1190
+ "name": "price_oracle_fee_claimed",
1191
+ "docs": [
1192
+ "Whether fee for the price oracle has been claimed"
1193
+ ],
1194
+ "type": "bool"
1195
+ },
1079
1196
  {
1080
1197
  "name": "buffer_2",
1081
1198
  "docs": [
@@ -1084,7 +1201,7 @@
1084
1201
  "type": {
1085
1202
  "array": [
1086
1203
  "u8",
1087
- 32
1204
+ 27
1088
1205
  ]
1089
1206
  }
1090
1207
  },
@@ -1332,26 +1449,84 @@
1332
1449
  "type": "u16"
1333
1450
  },
1334
1451
  {
1335
- "name": "buffer_2",
1452
+ "name": "creation_fee",
1336
1453
  "docs": [
1337
- "Buffer for additional fields"
1454
+ "Creation SOL fee"
1338
1455
  ],
1339
- "type": {
1340
- "array": [
1341
- "u8",
1342
- 20
1343
- ]
1344
- }
1456
+ "type": "u32"
1345
1457
  },
1346
1458
  {
1347
- "name": "buffer_3",
1459
+ "name": "creation_fee_claimed",
1460
+ "docs": [
1461
+ "Whether creation SOL was claimed"
1462
+ ],
1463
+ "type": "bool"
1464
+ },
1465
+ {
1466
+ "name": "claim_min_fee",
1467
+ "docs": [
1468
+ "Dynamic claim fee in SOL, min"
1469
+ ],
1470
+ "type": "u32"
1471
+ },
1472
+ {
1473
+ "name": "claim_max_fee",
1474
+ "docs": [
1475
+ "Dynamic claim fee in SOL, max"
1476
+ ],
1477
+ "type": "u32"
1478
+ },
1479
+ {
1480
+ "name": "allocation_factor",
1481
+ "docs": [
1482
+ "Factor to multiply claimable SOL lamports by when calculating fee"
1483
+ ],
1484
+ "type": "f64"
1485
+ },
1486
+ {
1487
+ "name": "claim_fee_claimed",
1488
+ "docs": [
1489
+ "Whether all claim fees were claimed, true by default since no claim fee is taken on creation"
1490
+ ],
1491
+ "type": "bool"
1492
+ },
1493
+ {
1494
+ "name": "token_price_lamports",
1495
+ "docs": [
1496
+ "Last observed token price in lamports per 1 whole token for claim fee calculation"
1497
+ ],
1498
+ "type": "u64"
1499
+ },
1500
+ {
1501
+ "name": "clawback_token_fee_percent",
1502
+ "docs": [
1503
+ "Token % fee on clawback"
1504
+ ],
1505
+ "type": "f64"
1506
+ },
1507
+ {
1508
+ "name": "clawback_fee_claimed",
1509
+ "docs": [
1510
+ "Whether clawback token % fee has been claimed"
1511
+ ],
1512
+ "type": "bool"
1513
+ },
1514
+ {
1515
+ "name": "program_version",
1516
+ "docs": [
1517
+ "Program version that initiated the Distributor account"
1518
+ ],
1519
+ "type": "u8"
1520
+ },
1521
+ {
1522
+ "name": "buffer",
1348
1523
  "docs": [
1349
1524
  "Buffer for additional fields"
1350
1525
  ],
1351
1526
  "type": {
1352
1527
  "array": [
1353
1528
  "u8",
1354
- 32
1529
+ 13
1355
1530
  ]
1356
1531
  }
1357
1532
  }