ExpiringMultiPartyMock
ExpiringMultiPartyMock#
Functions#
constructor(address _financialProductLibraryAddress, uint256 _expirationTimestamp, struct FixedPoint.Unsigned _collateralRequirement, bytes32 _priceIdentifier, address _timerAddress) (public)transformPrice(struct FixedPoint.Unsigned price, uint256 requestTime) โ struct FixedPoint.Unsigned (public)transformCollateralRequirement(struct FixedPoint.Unsigned price) โ struct FixedPoint.Unsigned (public)transformPriceIdentifier(uint256 requestTime) โ bytes32 (public)setCurrentTime(uint256 time) (external)Sets the current time.
Will revert if not running in test mode.
Parameters:#
- time: timestamp to set current Testable time to.
getCurrentTime() โ uint256 (public)Gets the current time. Will return the last time set in setCurrentTime if running in test mode.
Otherwise, it will return the block timestamp.
Modifiers#
onlyIfTest()Reverts if not running in test mode.