chore: bump dependencies
This commit is contained in:
parent
d6fbfdc5d8
commit
9e95b28be5
|
@ -1,4 +1,3 @@
|
|||
require("@nomiclabs/hardhat-waffle")
|
||||
require("hardhat-deploy")
|
||||
require("hardhat-deploy-ethers")
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const { expect } = require("chai")
|
||||
const { ethers } = require("hardhat")
|
||||
const { hexlify, randomBytes } = ethers.utils
|
||||
const { hexlify, randomBytes } = ethers
|
||||
const {
|
||||
snapshot,
|
||||
revert,
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue