codex-contracts-eth/test
Eric Mastro 716b864f02 [marketplace] update state getter
Update `Marketplace.state` getter to to take `isCancelled` into account. This state can then be used internally and externally.

Add checks to `proofEnd`, `isProofRequired`, `willProofBeRequired`, and `getChallenge` that understands if the request is in a state to accept proofs. If not, return other values.

Add `slotMustAcceptProofs` modifier, originally introduced in a later PR, which requires the request to be in state of the request accepting proofs.

Add tests for all the above.
2022-09-20 15:59:03 +10:00
..
AccountLocks.test.js [marketplace] address various PR comments 2022-09-20 15:59:03 +10:00
Collateral.test.js Fix tests after OpenZeppelin update 2022-03-15 17:01:04 +01:00
Marketplace.test.js [marketplace] update state getter 2022-09-20 15:59:03 +10:00
Proofs.test.js [proofs] Submitting proof emits event containing proof 2022-04-12 09:04:29 +02:00
Storage.test.js [marketplace] update state getter 2022-09-20 15:59:03 +10:00
evm.js [proofs] Test that pointer increases by one every block 2022-04-05 11:36:31 +02:00
examples.js [marketplace] Specify size per slot, instead of total size 2022-08-08 11:51:14 +02:00
ids.js [marketplace] Specify size per slot, instead of total size 2022-08-08 11:51:14 +02:00
marketplace.js [marketplace] address various PR comments 2022-09-20 15:59:03 +10:00
price.js [marketplace] Reward is paid out per second per slot 2022-08-08 11:51:14 +02:00
time.js Move periodOf(), periodStart(), periodEnd() into time module 2022-03-15 10:01:12 +01:00