mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 23:13:09 +00:00
17 lines
455 B
Nim
17 lines
455 B
Nim
|
|
import pkg/codex/sales/salesagent
|
||
|
|
|
||
|
|
type
|
||
|
|
MockSalesAgent = ref object of SalesAgent
|
||
|
|
fulfilledCalled*: bool
|
||
|
|
failedCalled*: bool
|
||
|
|
slotFilledCalled*: bool
|
||
|
|
|
||
|
|
method onFulfilled*(agent: SalesAgent, requestId: RequestId) =
|
||
|
|
fulfilledCalled = true
|
||
|
|
|
||
|
|
method onFailed*(agent: SalesAgent, requestId: RequestId) =
|
||
|
|
failedCalled = true
|
||
|
|
|
||
|
|
method onSlotFilled*(agent: SalesAgent, requestId: RequestId, slotIndex: UInt256) {.base.} =
|
||
|
|
slotFilledCalled = true
|