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")
|
||||||
require("hardhat-deploy-ethers")
|
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"
|
"deploy": "hardhat deploy"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nomiclabs/hardhat-ethers": "^2.2.1",
|
"@nomicfoundation/hardhat-ethers": "^3.0.4",
|
||||||
"@nomiclabs/hardhat-waffle": "^2.0.3",
|
"@nomiclabs/hardhat-waffle": "^2.0.6",
|
||||||
"@openzeppelin/contracts": "^4.8.0",
|
"@openzeppelin/contracts": "^4.8.0",
|
||||||
"@stdlib/stats-binomial-test": "^0.0.7",
|
"@stdlib/stats-binomial-test": "^0.0.7",
|
||||||
"chai": "^4.3.7",
|
"chai": "^4.3.7",
|
||||||
"ethereum-waffle": "^3.4.4",
|
"ethereum-waffle": "^3.4.4",
|
||||||
"ethers": "^5.7.2",
|
"ethers": "^6.7.0",
|
||||||
"hardhat": "^2.17.1",
|
"hardhat": "^2.17.1",
|
||||||
"hardhat-deploy": "^0.11.34",
|
"hardhat-deploy": "^0.11.34",
|
||||||
"hardhat-deploy-ethers": "^0.3.0-beta.13",
|
"hardhat-deploy-ethers": "^0.4.1",
|
||||||
"prettier": "^2.8.2",
|
"prettier": "^2.8.2",
|
||||||
"prettier-plugin-solidity": "^1.1.1",
|
"prettier-plugin-solidity": "^1.1.3",
|
||||||
"solhint": "^3.3.7"
|
"solhint": "^3.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
const { ethers } = require("hardhat")
|
const { ethers } = require("hardhat")
|
||||||
const { hexlify, randomBytes } = ethers.utils
|
const { AddressZero, hexlify, randomBytes } = ethers
|
||||||
const { AddressZero } = ethers.constants
|
|
||||||
const { BigNumber } = ethers
|
|
||||||
const { expect } = require("chai")
|
const { expect } = require("chai")
|
||||||
const { exampleConfiguration, exampleRequest } = require("./examples")
|
const { exampleConfiguration, exampleRequest } = require("./examples")
|
||||||
const { periodic, hours } = require("./time")
|
const { periodic, hours } = require("./time")
|
||||||
|
@ -752,10 +750,10 @@ describe("Marketplace", function () {
|
||||||
await marketplace.fillSlot(slot.request, slot.index, proof)
|
await marketplace.fillSlot(slot.request, slot.index, proof)
|
||||||
await waitUntilProofIsRequired(id)
|
await waitUntilProofIsRequired(id)
|
||||||
const challenge1 = await marketplace.getChallenge(id)
|
const challenge1 = await marketplace.getChallenge(id)
|
||||||
expect(BigNumber.from(challenge1).gt(0))
|
expect(BigInt(challenge1) > 0n)
|
||||||
await advanceTimeTo(request.expiry + 1)
|
await advanceTimeTo(request.expiry + 1)
|
||||||
const challenge2 = await marketplace.getChallenge(id)
|
const challenge2 = await marketplace.getChallenge(id)
|
||||||
expect(BigNumber.from(challenge2).isZero())
|
expect(BigInt(challenge2) === 0n)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("does not provide pointer once cancelled", async function () {
|
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 marketplace.fillSlot(slot.request, slot.index, proof)
|
||||||
await waitUntilProofIsRequired(id)
|
await waitUntilProofIsRequired(id)
|
||||||
const challenge1 = await marketplace.getChallenge(id)
|
const challenge1 = await marketplace.getChallenge(id)
|
||||||
expect(BigNumber.from(challenge1).gt(0))
|
expect(BigInt(challenge1) > 0n)
|
||||||
await advanceTimeTo(request.expiry + 1)
|
await advanceTimeTo(request.expiry + 1)
|
||||||
const challenge2 = await marketplace.getChallenge(id)
|
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
|
(request.ask.collateral * (100 - slashPercentage)) / 100
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
BigNumber.from(expectedBalance).eq(
|
BigInt(expectedBalance) === await marketplace.getSlotCollateral(id)
|
||||||
await marketplace.getSlotCollateral(id)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const { expect } = require("chai")
|
const { expect } = require("chai")
|
||||||
const { ethers } = require("hardhat")
|
const { ethers } = require("hardhat")
|
||||||
const { hexlify, randomBytes } = ethers.utils
|
const { hexlify, randomBytes } = ethers
|
||||||
const {
|
const {
|
||||||
snapshot,
|
snapshot,
|
||||||
revert,
|
revert,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const { ethers } = require("hardhat")
|
const { ethers } = require("hardhat")
|
||||||
const { hours } = require("./time")
|
const { hours } = require("./time")
|
||||||
const { currentTime } = require("./evm")
|
const { currentTime } = require("./evm")
|
||||||
const { hexlify, randomBytes } = ethers.utils
|
const { hexlify, randomBytes } = ethers
|
||||||
|
|
||||||
const exampleConfiguration = () => ({
|
const exampleConfiguration = () => ({
|
||||||
collateral: {
|
collateral: {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const { ethers } = require("hardhat")
|
const { ethers } = require("hardhat")
|
||||||
const { keccak256, defaultAbiCoder } = ethers.utils
|
const { keccak256, defaultAbiCoder } = ethers
|
||||||
|
|
||||||
function requestId(request) {
|
function requestId(request) {
|
||||||
const Ask = "tuple(int64, uint256, uint256, uint256, uint256, uint256, int64)"
|
const Ask = "tuple(int64, uint256, uint256, uint256, uint256, uint256, int64)"
|
||||||
|
|
Loading…
Reference in New Issue