github.com/MetalBlockchain/subnet-evm@v0.4.9/contract-examples/contracts/IAllowList.sol (about) 1 //SPDX-License-Identifier: MIT 2 pragma solidity ^0.8.0; 3 4 interface IAllowList { 5 // Set [addr] to have the admin role over the precompile contract. 6 function setAdmin(address addr) external; 7 8 // Set [addr] to be enabled on the precompile contract. 9 function setEnabled(address addr) external; 10 11 // Set [addr] to have no role for the precompile contract. 12 function setNone(address addr) external; 13 14 // Read the status of [addr]. 15 function readAllowList(address addr) external view returns (uint256 role); 16 }