Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Latest commit

 

History

History
266 lines (227 loc) · 7.42 KB

IProtocol.md

File metadata and controls

266 lines (227 loc) · 7.42 KB

IProtocol.sol

View Source: contracts/interfaces/IProtocol.sol

↗ Extends: IMember, IAccessControl ↘ Derived Contracts: Protocol

IProtocol

Events

event ContractAdded(bytes32  namespace, address  contractAddress);
event ContractUpgraded(bytes32  namespace, address indexed previous, address indexed current);
event MemberAdded(address  member);
event MemberRemoved(address  member);
event Initialized(address[]  addresses, uint256[]  values);

Functions

addContract

function addContract(bytes32 namespace, address contractAddress) external nonpayable

Arguments

Name Type Description
namespace bytes32
contractAddress address
Source Code
function addContract(bytes32 namespace, address contractAddress) external;

initialize

function initialize(address[] addresses, uint256[] values) external nonpayable

Arguments

Name Type Description
addresses address[]
values uint256[]
Source Code
function initialize(address[] memory addresses, uint256[] memory values) external;

upgradeContract

function upgradeContract(bytes32 namespace, address previous, address current) external nonpayable

Arguments

Name Type Description
namespace bytes32
previous address
current address
Source Code
function upgradeContract(
    bytes32 namespace,
    address previous,
    address current
  ) external;

addMember

function addMember(address member) external nonpayable

Arguments

Name Type Description
member address
Source Code
function addMember(address member) external;

removeMember

function removeMember(address member) external nonpayable

Arguments

Name Type Description
member address
Source Code
function removeMember(address member) external;

Contracts