2021-05-10 09:13:22 +02:00
|
|
|
pragma solidity >=0.6.12;
|
|
|
|
|
|
|
|
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
|
2023-03-25 13:32:56 +01:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-03-26 10:58:23 +02:00
|
|
|
// File-version: 4
|
2021-05-10 09:13:22 +02:00
|
|
|
|
2023-03-25 13:32:56 +01:00
|
|
|
interface IWriter {
|
2023-03-25 12:14:46 +01:00
|
|
|
// A writer has been added by _executor
|
2023-03-26 10:58:23 +02:00
|
|
|
event WriterAdded(address _writer);
|
2023-03-25 12:14:46 +01:00
|
|
|
|
|
|
|
// A writer has been removed by _executor
|
2023-03-26 10:58:23 +02:00
|
|
|
event WriterDeleted(address _writer);
|
2023-02-11 05:53:46 +01:00
|
|
|
|
2023-03-25 12:14:46 +01:00
|
|
|
// Add a new writer to the contract.
|
2021-10-23 20:42:52 +02:00
|
|
|
function addWriter(address _writer) external returns (bool);
|
2023-03-25 12:14:46 +01:00
|
|
|
|
|
|
|
// Remove existing writer from the contract.
|
2021-10-23 20:42:52 +02:00
|
|
|
function deleteWriter(address _writer) external returns (bool);
|
2023-03-25 12:14:46 +01:00
|
|
|
|
|
|
|
// Check whether the given address is a writer.
|
2023-06-06 15:46:55 +02:00
|
|
|
function isWriter(address _writer) external view returns (bool);
|
2021-05-10 09:13:22 +02:00
|
|
|
}
|