codex-contracts-eth/contracts/TestAccountLocks.sol
Eric Mastro 3a97330e72 [marketplace] extend lock expiry
Add ability to extend lock expiry once all slots are filled.

Tests to support lock expiry.
2022-09-20 15:59:03 +10:00

28 lines
587 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./AccountLocks.sol";
// exposes internal functions for testing
contract TestAccountLocks is AccountLocks {
function createLock(bytes32 id, uint256 expiry) public {
_createLock(id, expiry);
}
function lock(address account, bytes32 id) public {
_lock(account, id);
}
function unlock(bytes32 id) public {
_unlock(id);
}
function unlockAccount() public {
_unlockAccount();
}
function extendLockExpiry(bytes32 lockId, uint256 expiry) public {
_extendLockExpiry(lockId, expiry);
}
}