github.com/MetalBlockchain/subnet-evm@v0.4.9/contract-examples/contracts/ExampleTxAllowList.sol (about)

     1  //SPDX-License-Identifier: MIT
     2  pragma solidity ^0.8.0;
     3  
     4  import "@openzeppelin/contracts/access/Ownable.sol";
     5  import "./AllowList.sol";
     6  
     7  // ExampleDeployerList shows how ContractDeployerAllowList precompile can be used in a smart contract
     8  // All methods of [allowList] can be directly called. There are example calls as tasks in hardhat.config.ts file.
     9  contract ExampleTxAllowList is AllowList {
    10    // Precompiled Allow List Contract Address
    11    address constant DEPLOYER_LIST = 0x0200000000000000000000000000000000000002;
    12  
    13    constructor() AllowList(DEPLOYER_LIST) {}
    14  }