2022-02-15 16:01:54 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "./AccountLocks.sol";
|
|
|
|
|
|
|
|
// exposes internal functions for testing
|
|
|
|
contract TestAccountLocks is AccountLocks {
|
2022-09-29 10:18:02 +00:00
|
|
|
function createLock(LockId id, uint256 expiry) public {
|
2022-02-15 16:01:54 +00:00
|
|
|
_createLock(id, expiry);
|
|
|
|
}
|
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function lock(address account, LockId id) public {
|
2022-02-15 16:01:54 +00:00
|
|
|
_lock(account, id);
|
|
|
|
}
|
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function unlock(LockId id) public {
|
2022-02-15 16:01:54 +00:00
|
|
|
_unlock(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
function unlockAccount() public {
|
|
|
|
_unlockAccount();
|
|
|
|
}
|
2022-08-09 11:19:42 +00:00
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function extendLockExpiryTo(LockId lockId, uint256 expiry) public {
|
2022-09-21 09:57:26 +00:00
|
|
|
_extendLockExpiryTo(lockId, expiry);
|
2022-08-09 11:19:42 +00:00
|
|
|
}
|
2022-02-15 16:01:54 +00:00
|
|
|
}
|