Skip to content

Commit

Permalink
backwards compatible newDistributor call (works on both devnet and ma…
Browse files Browse the repository at this point in the history
…innet) (#202)
  • Loading branch information
Yolley authored Sep 23, 2024
1 parent 234546e commit b6e4a0d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "6.4.3",
"version": "6.4.4",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/common",
"version": "6.4.3",
"version": "6.4.4",
"description": "Common utilities and types used by streamflow packages.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/distributor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/distributor",
"version": "6.4.3",
"version": "6.4.4",
"description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export const layout = borsh.struct([
borsh.u64("endVestingTs"),
borsh.u64("clawbackStartTs"),
borsh.bool("claimsClosable"),
borsh.option(borsh.bool(), "canUpdateDuration"),
borsh.option(borsh.u64(), "totalAmountUnlocked"),
borsh.option(borsh.u64(), "totalAmountLocked"),
]);

/**
Expand Down Expand Up @@ -102,6 +105,9 @@ export function newDistributor(
endVestingTs: args.endVestingTs,
clawbackStartTs: args.clawbackStartTs,
claimsClosable: args.claimsClosable,
canUpdateDuration: null,
totalAmountUnlocked: null,
totalAmountLocked: null,
},
buffer,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/eslint-config",
"version": "6.4.2",
"version": "6.4.4",
"license": "ISC",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/stream",
"version": "6.4.3",
"version": "6.4.4",
"description": "JavaScript SDK to interact with Streamflow protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand Down

0 comments on commit b6e4a0d

Please sign in to comment.