cic-contracts/AccountRegistry.sol

20 lines
730 B
Solidity
Raw Normal View History

2020-12-11 07:48:54 +01:00
pragma solidity >=0.6.12;
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
// SPDX-License-Identifier: GPL-3.0-or-later
2020-12-11 10:20:56 +01:00
// File-version: 2
2020-12-11 07:48:54 +01:00
2020-12-11 18:04:32 +01:00
2020-12-11 16:29:36 +01:00
interface AccountRegistry {
2020-12-11 07:48:54 +01:00
event AccountAdded(address indexed addedAccount, uint256 indexed accountIndex);
2020-12-11 10:20:56 +01:00
function accounts(uint256 _idx) external view returns (address);
function accountsIndex(address _account) external view returns (uint256);
function count() external view returns (uint256);
function addWriter(address _writer) external returns (bool);
function deleteWriter(address _writer) external returns (bool);
function add(address _account) external returns (bool);
function have(address _account) external view returns (bool);
2020-12-11 07:48:54 +01:00
}