41 lines
1.4 KiB
Solidity
41 lines
1.4 KiB
Solidity
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
pragma solidity >=0.5.4 <0.9.0;
|
|
|
|
interface IGuardianStorage {
|
|
|
|
/**
|
|
* @notice Lets an authorised module add a guardian to a wallet.
|
|
* @param _wallet The target wallet.
|
|
* @param _guardian The guardian to add.
|
|
*/
|
|
function addGuardian(address _wallet, address _guardian) external;
|
|
|
|
/**
|
|
* @notice Lets an authorised module revoke a guardian from a wallet.
|
|
* @param _wallet The target wallet.
|
|
* @param _guardian The guardian to revoke.
|
|
*/
|
|
function revokeGuardian(address _wallet, address _guardian) external;
|
|
|
|
/**
|
|
* @notice Checks if an account is a guardian for a wallet.
|
|
* @param _wallet The target wallet.
|
|
* @param _guardian The account.
|
|
* @return true if the account is a guardian for a wallet.
|
|
*/
|
|
function isGuardian(address _wallet, address _guardian) external view returns (bool);
|
|
|
|
function isLocked(address _wallet) external view returns (bool);
|
|
|
|
function getLock(address _wallet) external view returns (uint256);
|
|
|
|
function getLocker(address _wallet) external view returns (address);
|
|
|
|
function setLock(address _wallet, uint256 _releaseAfter) external;
|
|
|
|
function getGuardians(address _wallet) external view returns (address[] memory);
|
|
|
|
function guardianCount(address _wallet) external view returns (uint256);
|
|
} |