-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathIDiamondCut.sol
36 lines (22 loc) · 1.11 KB
/
IDiamondCut.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8;
import "../libraries/Diamond.sol";
interface IDiamondCut {
function proposeDiamondCut(Diamond.FacetCut[] calldata _facetCuts, address _initAddress) external;
function cancelDiamondCutProposal() external;
function executeDiamondCutProposal(Diamond.DiamondCutData calldata _diamondCut) external;
function emergencyFreezeDiamond() external;
function unfreezeDiamond() external;
function approveEmergencyDiamondCutAsSecurityCouncilMember(bytes32 _diamondCutHash) external;
event DiamondCutProposal(Diamond.FacetCut[] _facetCuts, address _initAddress);
event DiamondCutProposalCancelation(uint256 currentProposalId, bytes32 indexed proposedDiamondCutHash);
event DiamondCutProposalExecution(Diamond.DiamondCutData _diamondCut);
event EmergencyFreeze();
event Unfreeze(uint256 lastDiamondFreezeTimestamp);
event EmergencyDiamondCutApproved(
address indexed _address,
uint256 currentProposalId,
uint256 securityCouncilEmergencyApprovals,
bytes32 indexed proposedDiamondCutHash
);
}