dagger-contracts/contracts/TestCollateral.sol
Eric Mastro cfb70897f8 [marketplace] alias bytes32 types
`RequestId`, `SlotId`, `LockId`, `ProofId`, `EndId` types were created to avoid confusion and enforce compiler restrictions.
2022-10-25 12:47:50 +11:00

27 lines
600 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Collateral.sol";
// exposes internal functions for testing
contract TestCollateral is Collateral {
// solhint-disable-next-line no-empty-blocks
constructor(IERC20 token) Collateral(token) {}
function slash(address account, uint256 percentage) public {
_slash(account, percentage);
}
function createLock(LockId id, uint256 expiry) public {
_createLock(id, expiry);
}
function lock(address account, LockId id) public {
_lock(account, id);
}
function unlock(LockId id) public {
_unlock(id);
}
}