chore: bump dependencies

This commit is contained in:
Adam Uhlíř 2023-08-09 15:16:55 +02:00
parent d6fbfdc5d8
commit 9e95b28be5
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B
7 changed files with 1106 additions and 21637 deletions

View File

@ -1,4 +1,3 @@
require("@nomiclabs/hardhat-waffle")
require("hardhat-deploy")
require("hardhat-deploy-ethers")

22708
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,18 +11,18 @@
"deploy": "hardhat deploy"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.2.1",
"@nomiclabs/hardhat-waffle": "^2.0.3",
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomiclabs/hardhat-waffle": "^2.0.6",
"@openzeppelin/contracts": "^4.8.0",
"@stdlib/stats-binomial-test": "^0.0.7",
"chai": "^4.3.7",
"ethereum-waffle": "^3.4.4",
"ethers": "^5.7.2",
"ethers": "^6.7.0",
"hardhat": "^2.17.1",
"hardhat-deploy": "^0.11.34",
"hardhat-deploy-ethers": "^0.3.0-beta.13",
"hardhat-deploy-ethers": "^0.4.1",
"prettier": "^2.8.2",
"prettier-plugin-solidity": "^1.1.1",
"solhint": "^3.3.7"
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.5.1"
}
}

View File

@ -1,7 +1,5 @@
const { ethers } = require("hardhat")
const { hexlify, randomBytes } = ethers.utils
const { AddressZero } = ethers.constants
const { BigNumber } = ethers
const { AddressZero, hexlify, randomBytes } = ethers
const { expect } = require("chai")
const { exampleConfiguration, exampleRequest } = require("./examples")
const { periodic, hours } = require("./time")
@ -752,10 +750,10 @@ describe("Marketplace", function () {
await marketplace.fillSlot(slot.request, slot.index, proof)
await waitUntilProofIsRequired(id)
const challenge1 = await marketplace.getChallenge(id)
expect(BigNumber.from(challenge1).gt(0))
expect(BigInt(challenge1) > 0n)
await advanceTimeTo(request.expiry + 1)
const challenge2 = await marketplace.getChallenge(id)
expect(BigNumber.from(challenge2).isZero())
expect(BigInt(challenge2) === 0n)
})
it("does not provide pointer once cancelled", async function () {
@ -763,10 +761,10 @@ describe("Marketplace", function () {
await marketplace.fillSlot(slot.request, slot.index, proof)
await waitUntilProofIsRequired(id)
const challenge1 = await marketplace.getChallenge(id)
expect(BigNumber.from(challenge1).gt(0))
expect(BigInt(challenge1) > 0n)
await advanceTimeTo(request.expiry + 1)
const challenge2 = await marketplace.getChallenge(id)
expect(BigNumber.from(challenge2).isZero())
expect(BigInt(challenge2) === 0n)
})
})
@ -820,9 +818,7 @@ describe("Marketplace", function () {
(request.ask.collateral * (100 - slashPercentage)) / 100
expect(
BigNumber.from(expectedBalance).eq(
await marketplace.getSlotCollateral(id)
)
BigInt(expectedBalance) === await marketplace.getSlotCollateral(id)
)
})
})

View File

@ -1,6 +1,6 @@
const { expect } = require("chai")
const { ethers } = require("hardhat")
const { hexlify, randomBytes } = ethers.utils
const { hexlify, randomBytes } = ethers
const {
snapshot,
revert,

View File

@ -1,7 +1,7 @@
const { ethers } = require("hardhat")
const { hours } = require("./time")
const { currentTime } = require("./evm")
const { hexlify, randomBytes } = ethers.utils
const { hexlify, randomBytes } = ethers
const exampleConfiguration = () => ({
collateral: {

View File

@ -1,5 +1,5 @@
const { ethers } = require("hardhat")
const { keccak256, defaultAbiCoder } = ethers.utils
const { keccak256, defaultAbiCoder } = ethers
function requestId(request) {
const Ask = "tuple(int64, uint256, uint256, uint256, uint256, uint256, int64)"