mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-01-10 03:45:41 +00:00
8be756808c
- Remove `FundsWithdrawn` event - do not copy request to memory - todo for changing withdraw amount to not include proof payments - test lock expiry border - in tests, move `RequestState` to exported const in marketplace.js - move test for state checks on `fillSlot` to the “filling a slot” section.
14 lines
269 B
JavaScript
14 lines
269 B
JavaScript
const RequestState = {
|
|
New: 0,
|
|
Started: 1,
|
|
Cancelled: 2,
|
|
Finished: 3,
|
|
Failed: 4,
|
|
}
|
|
|
|
async function waitUntilExpired(expiry) {
|
|
await ethers.provider.send("hardhat_mine", [ethers.utils.hexValue(expiry)])
|
|
}
|
|
|
|
module.exports = { waitUntilExpired, RequestState }
|