@streamflow/distributor 11.4.0 → 12.1.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.
@@ -8,7 +8,7 @@ type AlignedDistributor = {
8
8
  "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2";
9
9
  "metadata": {
10
10
  "name": "alignedDistributor";
11
- "version": "2.0.0";
11
+ "version": "1.9.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
  };
@@ -160,9 +160,9 @@ type AlignedDistributor = {
160
160
  {
161
161
  "name": "admin";
162
162
  "docs": [
163
- "Only Admin can trigger the clawback of funds"
163
+ "Admin or anybody in case distributor has been clawed back (usually by clawback authority).",
164
+ "Since receiver is set by the admin, it's generally safe to call clawback by anyone here if the merkle distributor has been clawed back"
164
165
  ];
165
- "writable": true;
166
166
  "signer": true;
167
167
  },
168
168
  {
@@ -1037,6 +1037,16 @@ type AlignedDistributor = {
1037
1037
  "code": 6014;
1038
1038
  "name": "noFeesToClaim";
1039
1039
  "msg": "No fees to claim";
1040
+ },
1041
+ {
1042
+ "code": 6015;
1043
+ "name": "durationNotUpdated";
1044
+ "msg": "Update won't lead to any changes in unlock schedule";
1045
+ },
1046
+ {
1047
+ "code": 6016;
1048
+ "name": "clawbackAlreadyClaimed";
1049
+ "msg": "Clawback already claimed";
1040
1050
  }
1041
1051
  ];
1042
1052
  "types": [
@@ -1525,14 +1535,56 @@ type AlignedDistributor = {
1525
1535
  "type": "u8";
1526
1536
  },
1527
1537
  {
1528
- "name": "buffer";
1538
+ "name": "autoClaim";
1529
1539
  "docs": [
1530
- "Buffer for additional fields"
1540
+ "Whether Distributor supports auto-claim"
1541
+ ];
1542
+ "type": "bool";
1543
+ },
1544
+ {
1545
+ "name": "alignBuffer1";
1546
+ "docs": [
1547
+ "Extra buffer to keep alignment, may be reused"
1531
1548
  ];
1532
1549
  "type": {
1533
1550
  "array": [
1534
1551
  "u8",
1535
- 13
1552
+ 4
1553
+ ];
1554
+ };
1555
+ },
1556
+ {
1557
+ "name": "feePartner";
1558
+ "docs": [
1559
+ "Partner wallet whose fee schedule was applied, if different from the creator"
1560
+ ];
1561
+ "type": "pubkey";
1562
+ },
1563
+ {
1564
+ "name": "clawbackRequestTs";
1565
+ "docs": [
1566
+ "Timestamp when clawback was requested by the fee partner"
1567
+ ];
1568
+ "type": "u64";
1569
+ },
1570
+ {
1571
+ "name": "buffer1";
1572
+ "docs": [
1573
+ "Buffers for additional fields"
1574
+ ];
1575
+ "type": {
1576
+ "array": [
1577
+ "u8",
1578
+ 32
1579
+ ];
1580
+ };
1581
+ },
1582
+ {
1583
+ "name": "buffer2";
1584
+ "type": {
1585
+ "array": [
1586
+ "u8",
1587
+ 32
1536
1588
  ];
1537
1589
  };
1538
1590
  }