@streamflow/distributor 11.4.0 → 12.0.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
  }
@@ -2,7 +2,7 @@
2
2
  "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3
3
  "metadata": {
4
4
  "name": "aligned_distributor",
5
- "version": "2.0.0",
5
+ "version": "1.9.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
  },
@@ -154,9 +154,9 @@
154
154
  {
155
155
  "name": "admin",
156
156
  "docs": [
157
- "Only Admin can trigger the clawback of funds"
157
+ "Admin or anybody in case distributor has been clawed back (usually by clawback authority).",
158
+ "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"
158
159
  ],
159
- "writable": true,
160
160
  "signer": true
161
161
  },
162
162
  {
@@ -1031,6 +1031,16 @@
1031
1031
  "code": 6014,
1032
1032
  "name": "NoFeesToClaim",
1033
1033
  "msg": "No fees to claim"
1034
+ },
1035
+ {
1036
+ "code": 6015,
1037
+ "name": "DurationNotUpdated",
1038
+ "msg": "Update won't lead to any changes in unlock schedule"
1039
+ },
1040
+ {
1041
+ "code": 6016,
1042
+ "name": "ClawbackAlreadyClaimed",
1043
+ "msg": "Clawback already claimed"
1034
1044
  }
1035
1045
  ],
1036
1046
  "types": [
@@ -1519,14 +1529,56 @@
1519
1529
  "type": "u8"
1520
1530
  },
1521
1531
  {
1522
- "name": "buffer",
1532
+ "name": "auto_claim",
1523
1533
  "docs": [
1524
- "Buffer for additional fields"
1534
+ "Whether Distributor supports auto-claim"
1535
+ ],
1536
+ "type": "bool"
1537
+ },
1538
+ {
1539
+ "name": "align_buffer_1",
1540
+ "docs": [
1541
+ "Extra buffer to keep alignment, may be reused"
1525
1542
  ],
1526
1543
  "type": {
1527
1544
  "array": [
1528
1545
  "u8",
1529
- 13
1546
+ 4
1547
+ ]
1548
+ }
1549
+ },
1550
+ {
1551
+ "name": "fee_partner",
1552
+ "docs": [
1553
+ "Partner wallet whose fee schedule was applied, if different from the creator"
1554
+ ],
1555
+ "type": "pubkey"
1556
+ },
1557
+ {
1558
+ "name": "clawback_request_ts",
1559
+ "docs": [
1560
+ "Timestamp when clawback was requested by the fee partner"
1561
+ ],
1562
+ "type": "u64"
1563
+ },
1564
+ {
1565
+ "name": "buffer_1",
1566
+ "docs": [
1567
+ "Buffers for additional fields"
1568
+ ],
1569
+ "type": {
1570
+ "array": [
1571
+ "u8",
1572
+ 32
1573
+ ]
1574
+ }
1575
+ },
1576
+ {
1577
+ "name": "buffer_2",
1578
+ "type": {
1579
+ "array": [
1580
+ "u8",
1581
+ 32
1530
1582
  ]
1531
1583
  }
1532
1584
  }