DCIPs/assets/eip-6366/contracts/interfaces/IEIP6366Meta.sol

34 lines
872 B
Solidity

// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.7;
/**
* @dev Defined the interface of the metadata of EIP6366, SHOULD NOT expect to be implemented
*/
interface IEIP6366Meta {
struct PermissionDescription {
uint256 permission;
string name;
string description;
}
event UpdatePermissionDescription(
uint256 indexed _permission,
string indexed _name,
string indexed _description
);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function getDescription(
uint256 _permission
) external view returns (PermissionDescription memory description);
function setDescription(
uint256 _permission,
string memory _name,
string memory _description
) external returns (bool success);
}