From 0605376298916185bcb7d68bc777d1431bf51e12 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Fri, 15 Mar 2024 22:38:59 +0200 Subject: [PATCH 1/2] remove hardcoded date --- scripts/deploy-contracts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-contracts.js b/scripts/deploy-contracts.js index 8c6044ef..6cf34db3 100644 --- a/scripts/deploy-contracts.js +++ b/scripts/deploy-contracts.js @@ -837,9 +837,10 @@ async function main() { ); const block = await provider.getBlock("latest") const blockTimestamp = block.timestamp - const endDate = "2024-03-14" - const endDateUnix = parseInt(new Date(endDate).getTime() / 1000) + const endDateUnix = Math.floor(Date.now() / 1000) + 365*24*60*60 + console.info(endDateUnix) const vestingPeriod = endDateUnix - blockTimestamp + console.info(vestingPeriod) const deployVestingWallet0 = await VestingWallet0.connect(owner).deploy(addresses.Splitter, blockTimestamp, vestingPeriod, options) await deployVestingWallet0.deployTransaction.wait(); addresses.VestingWallet0 = deployVestingWallet0.address; From c515aa46b62419ea5dbdf910a2a1f051080cfdf8 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Fri, 15 Mar 2024 13:43:01 -0700 Subject: [PATCH 2/2] v2.0.4 --- .bumpversion.cfg | 2 +- package-lock.json | 2 +- package.json | 2 +- scripts/deploy-contracts.js | 2 -- setup.cfg | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index b64b6f38..cd7f4021 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = v2.0.3 +current_version = v2.0.4 commit = True tag = True diff --git a/package-lock.json b/package-lock.json index 6f258b39..603803e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oceanprotocol/contracts", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 76e4b7de..af8c12f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oceanprotocol/contracts", - "version": "2.0.3", + "version": "2.0.4", "description": "Ocean Protocol Smartcontracts", "bugs": { "url": "https://github.com/oceanprotocol/contracts/issues" diff --git a/scripts/deploy-contracts.js b/scripts/deploy-contracts.js index 6cf34db3..bbfebda6 100644 --- a/scripts/deploy-contracts.js +++ b/scripts/deploy-contracts.js @@ -838,9 +838,7 @@ async function main() { const block = await provider.getBlock("latest") const blockTimestamp = block.timestamp const endDateUnix = Math.floor(Date.now() / 1000) + 365*24*60*60 - console.info(endDateUnix) const vestingPeriod = endDateUnix - blockTimestamp - console.info(vestingPeriod) const deployVestingWallet0 = await VestingWallet0.connect(owner).deploy(addresses.Splitter, blockTimestamp, vestingPeriod, options) await deployVestingWallet0.deployTransaction.wait(); addresses.VestingWallet0 = deployVestingWallet0.address; diff --git a/setup.cfg b/setup.cfg index de98d650..35e009ea 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ocean-contracts -version = v2.0.3 +version = v2.0.4 author = leucothia author_email = devops@oceanprotocol.com description = 🐳 Ocean Protocol L1 - v4