mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-15 09:05:04 +00:00
cfb70897f8
`RequestId`, `SlotId`, `LockId`, `ProofId`, `EndId` types were created to avoid confusion and enforce compiler restrictions.
28 lines
587 B
Solidity
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(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);
|
|
}
|
|
|
|
function unlockAccount() public {
|
|
_unlockAccount();
|
|
}
|
|
|
|
function extendLockExpiryTo(LockId lockId, uint256 expiry) public {
|
|
_extendLockExpiryTo(lockId, expiry);
|
|
}
|
|
}
|