@streamflow/distributor 7.3.2 → 7.3.3

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.
@@ -38,10 +38,12 @@ exports.layout = borsh.struct([
38
38
  borsh.u64("startVestingTs"),
39
39
  borsh.u64("endVestingTs"),
40
40
  borsh.u64("clawbackStartTs"),
41
- borsh.bool("claimsClosable"),
41
+ borsh.bool("claimsClosableByAdmin"),
42
42
  borsh.option(borsh.bool(), "canUpdateDuration"),
43
43
  borsh.option(borsh.u64(), "totalAmountUnlocked"),
44
44
  borsh.option(borsh.u64(), "totalAmountLocked"),
45
+ borsh.option(borsh.bool(), "claimsClosableByClaimant"),
46
+ borsh.option(borsh.u16(), "claimsLimit"),
45
47
  ]);
46
48
  /**
47
49
  * READ THE FOLLOWING:
@@ -89,10 +91,12 @@ function newDistributor(args, accounts, programId = programId_1.PROGRAM_ID) {
89
91
  startVestingTs: args.startVestingTs,
90
92
  endVestingTs: args.endVestingTs,
91
93
  clawbackStartTs: args.clawbackStartTs,
92
- claimsClosable: args.claimsClosable,
94
+ claimsClosableByAdmin: args.claimsClosable,
93
95
  canUpdateDuration: null,
94
96
  totalAmountUnlocked: null,
95
97
  totalAmountLocked: null,
98
+ claimsClosableByClaimant: null,
99
+ claimsLimit: null,
96
100
  }, buffer);
97
101
  const data = buffer_1.Buffer.concat([identifier, buffer]).slice(0, 8 + len);
98
102
  const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
@@ -11,10 +11,12 @@ export const layout = borsh.struct([
11
11
  borsh.u64("startVestingTs"),
12
12
  borsh.u64("endVestingTs"),
13
13
  borsh.u64("clawbackStartTs"),
14
- borsh.bool("claimsClosable"),
14
+ borsh.bool("claimsClosableByAdmin"),
15
15
  borsh.option(borsh.bool(), "canUpdateDuration"),
16
16
  borsh.option(borsh.u64(), "totalAmountUnlocked"),
17
17
  borsh.option(borsh.u64(), "totalAmountLocked"),
18
+ borsh.option(borsh.bool(), "claimsClosableByClaimant"),
19
+ borsh.option(borsh.u16(), "claimsLimit"),
18
20
  ]);
19
21
  /**
20
22
  * READ THE FOLLOWING:
@@ -62,10 +64,12 @@ export function newDistributor(args, accounts, programId = PROGRAM_ID) {
62
64
  startVestingTs: args.startVestingTs,
63
65
  endVestingTs: args.endVestingTs,
64
66
  clawbackStartTs: args.clawbackStartTs,
65
- claimsClosable: args.claimsClosable,
67
+ claimsClosableByAdmin: args.claimsClosable,
66
68
  canUpdateDuration: null,
67
69
  totalAmountUnlocked: null,
68
70
  totalAmountLocked: null,
71
+ claimsClosableByClaimant: null,
72
+ claimsLimit: null,
69
73
  }, buffer);
70
74
  const data = Buffer.concat([identifier, buffer]).slice(0, 8 + len);
71
75
  const ix = new TransactionInstruction({ keys, programId, data });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/distributor",
3
- "version": "7.3.2",
3
+ "version": "7.3.3",
4
4
  "description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/esm/index.js",
@@ -26,9 +26,9 @@
26
26
  "lint": "eslint --fix .",
27
27
  "prepublishOnly": "npm run lint && npm run build"
28
28
  },
29
- "gitHead": "f124c062b751ea955dc18caeb1ccee5e6e7b0301",
29
+ "gitHead": "90f5dd237df691890a73caa634d604a2c3ae54ea",
30
30
  "devDependencies": {
31
- "@streamflow/eslint-config": "7.3.2",
31
+ "@streamflow/eslint-config": "7.3.3",
32
32
  "@types/bn.js": "5.1.1",
33
33
  "date-fns": "2.28.0",
34
34
  "typescript": "^5.6.3"
@@ -40,7 +40,7 @@
40
40
  "@solana/spl-token": "0.4.9",
41
41
  "@solana/wallet-adapter-base": "0.9.19",
42
42
  "@solana/web3.js": "1.95.4",
43
- "@streamflow/common": "7.3.2",
43
+ "@streamflow/common": "7.3.3",
44
44
  "bn.js": "5.2.1",
45
45
  "borsh": "^2.0.0",
46
46
  "bs58": "5.0.0",