diff --git a/packages/contracts-lib/package.json b/packages/contracts-lib/package.json index 35028a64..f1fa8680 100644 --- a/packages/contracts-lib/package.json +++ b/packages/contracts-lib/package.json @@ -1,6 +1,6 @@ { "name": "dms-osx-lib", - "version": "1.0.9", + "version": "1.0.10", "description": "", "main": "dist/bundle-cjs.js", "module": "dist/bundle-esm.js", diff --git a/packages/contracts/deploy/bosagora_devnet/00_linkCollection.ts b/packages/contracts/deploy/bosagora_devnet/00_linkCollection.ts index 1f4cd059..807255b0 100644 --- a/packages/contracts/deploy/bosagora_devnet/00_linkCollection.ts +++ b/packages/contracts/deploy/bosagora_devnet/00_linkCollection.ts @@ -48,11 +48,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { console.log(`Add email-address of foundation (tx: ${tx1.hash})...`); await tx1.wait(); - const tx2 = await linkCollectionContract.connect(await ethers.getSigner(linkValidator1)).voteRequest(reqId1, 1); + const tx2 = await linkCollectionContract.connect(await ethers.getSigner(linkValidator1)).voteRequest(reqId1); console.log(`Vote of validator1 (tx: ${tx2.hash})...`); await tx2.wait(); - const tx3 = await linkCollectionContract.connect(await ethers.getSigner(linkValidator2)).voteRequest(reqId1, 1); + const tx3 = await linkCollectionContract.connect(await ethers.getSigner(linkValidator2)).voteRequest(reqId1); console.log(`Vote of validator2 (tx: ${tx3.hash})...`); await tx3.wait(); @@ -84,13 +84,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const tx6 = await linkCollectionContract .connect(await ethers.getSigner(linkValidator1)) - .voteRequest(reqId2, 1); + .voteRequest(reqId2); console.log(`Vote of validator1 (tx: ${tx6.hash})...`); await tx6.wait(); const tx7 = await linkCollectionContract .connect(await ethers.getSigner(linkValidator2)) - .voteRequest(reqId2, 1); + .voteRequest(reqId2); console.log(`Vote of validator2 (tx: ${tx7.hash})...`); await tx7.wait(); diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 44809ca0..2698c848 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,6 +1,6 @@ { "name": "dms-osx-artifacts", - "version": "1.0.9", + "version": "1.0.10", "description": "Smart contracts that decentralized mileage systems", "files": [ "**/*.sol" @@ -54,7 +54,7 @@ "hardhat": "^2.12.7", "hardhat-deploy": "^0.9.26", "hardhat-gas-reporter": "^1.0.7", - "del-osx-artifacts": "^1.0.6", + "del-osx-artifacts": "^1.0.7", "mocha": "10.1.0", "prettier": "^2.5.1", "prettier-plugin-solidity": "^1.1.1", diff --git a/packages/contracts/test/Ledger.test.ts b/packages/contracts/test/Ledger.test.ts index 7561ed09..83c634de 100644 --- a/packages/contracts/test/Ledger.test.ts +++ b/packages/contracts/test/Ledger.test.ts @@ -253,7 +253,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, foundationAccount, foundation.address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); @@ -351,7 +351,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, hash, users[0].address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); @@ -842,7 +842,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, hash, users[0].address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); }); @@ -859,7 +859,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, foundationAccount, foundation.address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); @@ -967,7 +967,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, hash, users[0].address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); }); @@ -1206,7 +1206,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, foundationAccount, foundation.address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); @@ -1298,7 +1298,7 @@ describe("Test for Ledger", () => { ) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(requestId, hash, users[0].address); - await linkCollectionContract.connect(validator1).voteRequest(requestId, 1); + await linkCollectionContract.connect(validator1).voteRequest(requestId); await linkCollectionContract.connect(validator1).countVote(requestId); }); }); diff --git a/packages/faker/package.json b/packages/faker/package.json index a7061e35..d7ba297b 100644 --- a/packages/faker/package.json +++ b/packages/faker/package.json @@ -46,7 +46,7 @@ "assert": "^2.0.0", "axios": "^0.26.0", "chai": "^4.3.7", - "dms-osx-artifacts": "^1.0.6", + "dms-osx-artifacts": "^1.0.10", "dotenv": "^10.0.0", "ethereum-waffle": "^4.0.10", "ethers": "^5.7.0", @@ -54,7 +54,7 @@ "hardhat": "^2.12.7", "hardhat-gas-reporter": "^1.0.7", "ip": "^1.1.5", - "del-osx-artifacts": "^1.0.6", + "del-osx-artifacts": "^1.0.7", "node-cron": "^3.0.0", "prettier": "^2.5.1", "prettier-plugin-solidity": "^1.1.1", diff --git a/packages/relay/package.json b/packages/relay/package.json index 38547ad3..6b5dee6b 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -56,7 +56,7 @@ "chai": "^4.3.7", "chai-http": "^4.3.7", "cors": "^2.8.5", - "dms-osx-artifacts": "^1.0.6", + "dms-osx-artifacts": "^1.0.10", "dotenv": "^10.0.0", "ethereum-waffle": "^4.0.10", "ethers": "^5.7.0", @@ -66,7 +66,7 @@ "hardhat": "^2.12.7", "hardhat-gas-reporter": "^1.0.7", "ip": "^1.1.5", - "del-osx-artifacts": "^1.0.6", + "del-osx-artifacts": "^1.0.7", "moment": "^2.29.1", "prettier": "^2.5.1", "prettier-plugin-solidity": "^1.1.1", diff --git a/packages/relay/test/Endpoints.test.ts b/packages/relay/test/Endpoints.test.ts index 25cb71e4..2c5449dc 100644 --- a/packages/relay/test/Endpoints.test.ts +++ b/packages/relay/test/Endpoints.test.ts @@ -247,7 +247,7 @@ describe("Test of Server", function () { await expect(linkCollectionContract.connect(relay).addRequest(reqId, hash, users[0].address, signature)) .to.emit(linkCollectionContract, "AddedRequestItem") .withArgs(reqId, hash, users[0].address); - await linkCollectionContract.connect(validator1).voteRequest(reqId, 1); + await linkCollectionContract.connect(validator1).voteRequest(reqId); await linkCollectionContract.connect(validator1).countVote(reqId); }); }); diff --git a/yarn.lock b/yarn.lock index 8aa410b4..c94ded92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3207,10 +3207,10 @@ define-properties@^1.1.2, define-properties@^1.1.3, define-properties@^1.1.4, de has-property-descriptors "^1.0.0" object-keys "^1.1.1" -del-osx-artifacts@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/del-osx-artifacts/-/del-osx-artifacts-1.0.6.tgz#b32f4989c38158c57d55a3af4cbe8f5777f752e8" - integrity sha512-p0W5LJi8MhAgtGDB7yK1rwhTZYUkaH+hywMxal1Pbi7WBB4LbP0CgAKV8azblIEG1TwHMZiZdpteKu5sooxIKA== +del-osx-artifacts@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/del-osx-artifacts/-/del-osx-artifacts-1.0.7.tgz#fc5c6da574da9b4781786d93c1b7dcb39bd0e215" + integrity sha512-OeUswmSreXiaGlFQ9gBR2ngWdlfckQFZQBT1+fSVkhOj4gbiVKNY2FwsTi4lwqel7fol94LP0xO/ulwNmgJDVA== delay@^5.0.0: version "5.0.0"