diff --git a/package-lock.json b/package-lock.json index 27e2dbd..2015556 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,6 @@ "eslint-plugin-standard": "^5.0.0", "mocha": "^10.2.0", "mock-local-storage": "^1.1.23", - "moment": "2.29.4", "prettier": "^2.8.4", "release-it": "^15.7.0", "source-map-support": "^0.5.21", @@ -9202,15 +9201,6 @@ "global": "^4.3.2" } }, - "node_modules/moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -21471,12 +21461,6 @@ "global": "^4.3.2" } }, - "moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "dev": true - }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 13370ec..f34d9aa 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "eslint-plugin-standard": "^5.0.0", "mocha": "^10.2.0", "mock-local-storage": "^1.1.23", - "moment": "2.29.4", "prettier": "^2.8.4", "release-it": "^15.7.0", "source-map-support": "^0.5.21", diff --git a/test/integration/veDelegation.test.ts b/test/integration/veDelegation.test.ts index 38be14e..3c77687 100644 --- a/test/integration/veDelegation.test.ts +++ b/test/integration/veDelegation.test.ts @@ -13,7 +13,6 @@ import { homedir } from 'os' import fs from 'fs' import { fetch } from 'cross-fetch' import veDelegation from '@oceanprotocol/contracts/artifacts/contracts/ve/veDelegation.vy/veDelegation.json' -import moment from 'moment' const data = JSON.parse( fs.readFileSync( @@ -140,18 +139,7 @@ describe('veOcean tests', async () => { assert(info[0].lockedAmount === currentBalance) assert(info[0].unlockTime === currentLock) - console.log('Alice', Alice) - - const estGas = await calculateEstimatedGas( - Alice, - delegateContract.methods.setApprovalForAll, - Alice, - 0 - ) - console.log('estGas', estGas) - console.log('info[0].unlockTime.unix', moment().unix()) const lockTime = await veOcean.lockEnd(Alice) - console.log('lockTime', lockTime) const tx1 = await delegateContract.methods .setApprovalForAll(Alice, true) @@ -161,7 +149,7 @@ describe('veOcean tests', async () => { console.log('TX1: ', tx1) const tx = await delegateContract.methods - .create_boost(Bob, Alice, 1000, 0, lockTime, 0) + .create_boost(Alice, Bob, 100, 0, lockTime, 0) .send({ from: Bob })