adds slot reservation to the new tests after rebasing
This commit is contained in:
parent
7a28634d88
commit
82886b2b5b
|
@ -454,6 +454,7 @@ ethersuite "On-Chain Market":
|
||||||
|
|
||||||
test "can query past SlotFilled events since given timestamp":
|
test "can query past SlotFilled events since given timestamp":
|
||||||
await market.requestStorage(request)
|
await market.requestStorage(request)
|
||||||
|
await market.reserveSlot(request.id, 0.u256)
|
||||||
await market.fillSlot(request.id, 0.u256, proof, request.ask.collateral)
|
await market.fillSlot(request.id, 0.u256, proof, request.ask.collateral)
|
||||||
|
|
||||||
# The SlotFilled event will be included in the same block as
|
# The SlotFilled event will be included in the same block as
|
||||||
|
@ -467,6 +468,8 @@ ethersuite "On-Chain Market":
|
||||||
let (_, fromTime) =
|
let (_, fromTime) =
|
||||||
await ethProvider.blockNumberAndTimestamp(BlockTag.latest)
|
await ethProvider.blockNumberAndTimestamp(BlockTag.latest)
|
||||||
|
|
||||||
|
await market.reserveSlot(request.id, 1.u256)
|
||||||
|
await market.reserveSlot(request.id, 2.u256)
|
||||||
await market.fillSlot(request.id, 1.u256, proof, request.ask.collateral)
|
await market.fillSlot(request.id, 1.u256, proof, request.ask.collateral)
|
||||||
await market.fillSlot(request.id, 2.u256, proof, request.ask.collateral)
|
await market.fillSlot(request.id, 2.u256, proof, request.ask.collateral)
|
||||||
|
|
||||||
|
@ -481,6 +484,9 @@ ethersuite "On-Chain Market":
|
||||||
test "queryPastSlotFilledEvents returns empty sequence of events when " &
|
test "queryPastSlotFilledEvents returns empty sequence of events when " &
|
||||||
"no SlotFilled events have occurred since given timestamp":
|
"no SlotFilled events have occurred since given timestamp":
|
||||||
await market.requestStorage(request)
|
await market.requestStorage(request)
|
||||||
|
await market.reserveSlot(request.id, 0.u256)
|
||||||
|
await market.reserveSlot(request.id, 1.u256)
|
||||||
|
await market.reserveSlot(request.id, 2.u256)
|
||||||
await market.fillSlot(request.id, 0.u256, proof, request.ask.collateral)
|
await market.fillSlot(request.id, 0.u256, proof, request.ask.collateral)
|
||||||
await market.fillSlot(request.id, 1.u256, proof, request.ask.collateral)
|
await market.fillSlot(request.id, 1.u256, proof, request.ask.collateral)
|
||||||
await market.fillSlot(request.id, 2.u256, proof, request.ask.collateral)
|
await market.fillSlot(request.id, 2.u256, proof, request.ask.collateral)
|
||||||
|
|
Loading…
Reference in New Issue