Contract 0x24bf911ebF9cc5Ce5d65041b9343D7c5F9565509

 
Ad
Crypto.com
Txn Hash Method
Block
From
To
Value
0xe95cc82e36586f50326c75a774d03beb00959b5629f3ba3f64c0288f8efb71e6Commit132094252021-09-12 6:49:087 days 10 hrs ago0x3055911db7a99e4c57c3b1eafb63ddff17d9c62e IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00144360492330.985960702
0xb8587480ecfefb0dfd6fcf312ab1175f8244939a712ad6bfdacb533d83732a1aCommit131716752021-09-06 10:42:0613 days 6 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00451913397
0x32f3b2f7d328f03d862cc02c48d9b5feb992f08b15e0bbb87ad6946d1ca78daeRegister With Co...131716732021-09-06 10:41:4113 days 6 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090.027839995950546 Ether0.00280407318783.626291722
0xd5f70fc2cfae0e09854dff43191d486df8b81e9e809315e782efe6eceeaac00aRegister With Co...131716732021-09-06 10:41:4113 days 6 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090.027839995950546 Ether0.02093074092883.626291722
0xfb38e10d220e7cd91bed1236d31e492234f019183f6b9e23ceffe40866dd9d6bCommit131716592021-09-06 10:38:2713 days 6 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00459471319498.622275527
0x130c7586c69baead047d506c944b6fe179e68b6f6e76d509ae1d842320ce5eceCommit131716372021-09-06 10:32:5113 days 6 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00440600381994.571761986
0xe363072adca97c6413a7a9763fdc7b1e8cbb839fdac6f800be60920c9b102d0eCommit131716122021-09-06 10:27:0313 days 6 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00442584717995.022160716
0x0bbdbbae32d0599399a585913d1cb6be051124067878bf1220f47ce6ffdddb00Commit131675922021-09-05 19:30:5013 days 21 hrs ago0xe476a11d61db28d4c9a9f75c1402c3d17b5fa5be IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.004890966577 104.981145284
0x52825d99dd5226073a78f6b691370feb5742d0ed5bb0b4f808863fcce16619b1Commit131666002021-09-05 15:41:3214 days 1 hr ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.009865690583211.760084636
0x96cd1c787a4586f4541f4cd0a370b119e71ccd02d4697e3a6110d23e278aeec7Commit131630192021-09-05 2:30:2614 days 14 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00448861876696.345033511
0xe0823c61ccd82b0bfbdafd2f43f75948c77ba2e2dd17627f8b64a253e1fe6659Commit131629512021-09-05 2:10:4814 days 15 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00442950115495.076115705
0xbf9d2e75352e9e32ea0adad8dbd9094d84a509f4dca9f7d1d553c0b465ca30f6Commit131625072021-09-05 0:38:5614 days 16 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.005176538432111.110743581
0xaccfab2364270c0832dd2cf6b5e660f0f4a1b9297369354a01523def6fca6b96Commit131624522021-09-05 0:27:1814 days 16 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.005176538432111.110743581
0x346ab49701dd482addce11b5af9c29510c04c9e659d9393c59419148594d5e20Commit131624262021-09-05 0:22:3614 days 16 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.005240481152112.483228922
0xc5c5786e6983f5dc8f48a4999dd4873afedf8c8317812c88e1b7b7e066cf84e0Commit131604192021-09-04 16:56:4815 days 23 mins ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.007505803629161.106776906
0x4161269d26fae3aa58a985e9663ab128f31870b01071a40c875236b1115eed5aCommit131603882021-09-04 16:51:4415 days 28 mins ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.010332029882221.769728541
0xccb7e0d72863a21238272cb9fdc20aee5ebf5fd80479eb2db4c9ccff50129396Commit131570032021-09-04 4:11:5015 days 13 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.004881492448104.831793156
0x1c6d2e33df2b349d3d7f8d4823154247197c1541f979f97f0afcf1f531ef77cfCommit131569842021-09-04 4:07:4715 days 13 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.004717950726101.267482156
0xc96e4ae9c25f35eecf36e6da86b9e946ec3e04bf91289d9d43fc69e6b976bdc7Commit131569522021-09-04 4:01:5215 days 13 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.005016243167107.670118852
0x2bfb4f91d72e4bfc18d70dfdb4a7bab50f2b5465ab5d1aace748d31a1f54e6beCommit131555962021-09-03 22:58:2715 days 18 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.005518980936118.46103022
0x6d9b5248b06634401948126cdcb9113ccdd67d0911c5ab76a4bc91738f4459edCommit131555702021-09-03 22:51:5215 days 18 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00625300762134.216394864
0xf7d836690877da2105c40cfa0bdc89bdc861d9081de6e8b390cd8c1eff1b3241Commit131555562021-09-03 22:47:3215 days 18 hrs ago0x8eacaab03003aed32e16126224cd7e8e5eec2588 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.00458853840898.515112783
0x9f977bf6bb7349d6908dc83fec7dfc36712d944c9fbf127026838fefc669d051Register With Co...131484172021-09-02 20:22:4816 days 20 hrs agoENS Name kowtow.eth IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090.029101972414775 Ether0.033925263646 126.398621628
0x03f1a601ffcaaab2539f7dfbbd444623ea10de4aa6403615df6146520eede768Commit131483762021-09-02 20:13:2916 days 21 hrs agoENS Name kowtow.eth IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090 Ether0.004864553915 104.414216126
0xb773a47832f10a9d023ca578dc8ab1690e8c86ba43659dd3a0fcdfcd59384fd9Register With Co...131338252021-08-31 14:23:5719 days 2 hrs ago0x489ff094958b8ead5d6d9e3dc5b1e76d64b093c5 IN  0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090.032080424476172 Ether0.02724216502 99.993631676
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd5f70fc2cfae0e09854dff43191d486df8b81e9e809315e782efe6eceeaac00a131716732021-09-06 10:41:4113 days 6 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x8eacaab03003aed32e16126224cd7e8e5eec25880.002530908722776913 Ether
0x9f977bf6bb7349d6908dc83fec7dfc36712d944c9fbf127026838fefc669d051131484172021-09-02 20:22:4816 days 20 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name kowtow.eth0.002645633855888704 Ether
0xb773a47832f10a9d023ca578dc8ab1690e8c86ba43659dd3a0fcdfcd59384fd9131338252021-08-31 14:23:5719 days 2 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x489ff094958b8ead5d6d9e3dc5b1e76d64b093c50.002916402225106593 Ether
0x10fd134446b3be828f96b0d3b61b03a44dc83fa091f524c9db5894270541ff40131318152021-08-31 6:43:3519 days 10 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name deezcoinz.eth0.00308811332346157 Ether
0x513d3a9ff39d9e75f6f9570231d2dfee38935e38555041e2f59dcf69ce616e01131213222021-08-29 16:02:1321 days 1 hr ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090xe2d4be1375ca37143fedd47e168cb2d4b3a8dadd0.003141739581206113 Ether
0xd850beeedf6856928c780b8321838863cbacf0e2e8a982715f9d3bcd0413ece5131069112021-08-27 10:16:4523 days 7 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090xe38dd3819a09570335330a0cdb1955233f9550960.003209076303975275 Ether
0x67856a9546520fa93471a22f89b7b15cf63bdb38ee38a5bf483b38c84efd7a77131064902021-08-27 8:43:4823 days 8 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name lebensversicherung.eth0.003199143971008785 Ether
0xd64c89a78a6d0bf9fb0556f7775762c1e0416a465472cbddd4eadc950d88eaf3131064632021-08-27 8:34:4223 days 8 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name lebensversicherung.eth0.003199143971008785 Ether
0xa1ae1f5422a0a6b26c9f21047b82edb5a9af903fd77c0e3bf48ec006cba8a931131063882021-08-27 8:21:1123 days 8 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name lebensversicherung.eth0.003199143971008785 Ether
0xfa0ea03871b636fef98bd37070849c6add8f3f7b2048628e8b6d221305d05ea1131046672021-08-27 2:01:1323 days 15 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x93d46185c77f348b3f11bac55bfeacf61163b3e50.003200606581038352 Ether
0xca42cc01fbe4ae962febd4358fe16df91477bccd0daf0f42df896fbd7c1aabda131017912021-08-26 15:22:2424 days 1 hr ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x5bdce50b4e404f7a7e367bffe2dde10fed137ad10.003224840337315191 Ether
0x047685e61e531325613a1644a67688c29e80ccc12cfc005a975b48585759cd4e131016192021-08-26 14:42:1324 days 2 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x93d46185c77f348b3f11bac55bfeacf61163b3e50.003203018061038687 Ether
0xb98c32cdaa8dc536fc46442f138e4b879356c9b8b0cb9e0958efa85c50c8315b131015532021-08-26 14:28:2624 days 2 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x93d46185c77f348b3f11bac55bfeacf61163b3e50.003185626453442069 Ether
0x2ce475d21005046fb08d74ca2677a69fdead1b187b92abbccecfd9095480a5b0131002512021-08-26 9:48:5524 days 7 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name lebensversicherung.eth0.003218711452820574 Ether
0x3260591b8be94dcf7ce43fe3644bae03ce203dc4905612694655b267241f6b08131001382021-08-26 9:24:1224 days 7 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name lebensversicherung.eth0.003218711452820574 Ether
0xc8de5123fb48c8bf1743a17534724519ec12f628ccd51654249c6b341c1d09c7130991752021-08-26 5:50:2524 days 11 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090xc01c1cb84702b7f167231fa200dac02badb02af40.015140470114578809 Ether
0xb849e1e9394c22e9326e6b94abc5f3387c76f12d8c89b9c384db11d471620f40130990162021-08-26 5:11:4124 days 12 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090xc01c1cb84702b7f167231fa200dac02badb02af40.003172347283201786 Ether
0x6d45f58f979d295f42c5efdfdb35c64e54a487869e09549ef9c8d595308f6200130989162021-08-26 4:50:5924 days 12 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090xc01c1cb84702b7f167231fa200dac02badb02af40.003175570805595996 Ether
0xd865fb65f4439e095a7efe2e0f39b4989c8bdd368703d4582f9283ba54070005130988962021-08-26 4:45:3324 days 12 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090xc01c1cb84702b7f167231fa200dac02badb02af40.003175570805595996 Ether
0xe0bbd6d655459f6862fa0a6e9200203b1afac70ec845af6147167208f584d8bb130711312021-08-21 21:43:1728 days 19 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f9565509ENS Name unionblock.eth0.003083621285073286 Ether
0xd76d08be4df1831574eb4403fa0fd3c15a4a746bdd79a9fe640cb388958d5369130646002021-08-20 21:34:1629 days 19 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x5bdce50b4e404f7a7e367bffe2dde10fed137ad10.003062843922133287 Ether
0x48206824b68fda501875d5c8ecc76071532c3450a8680c90fc873fee31c5cf54130643222021-08-20 20:36:4229 days 20 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x5bdce50b4e404f7a7e367bffe2dde10fed137ad10.00322854982266423 Ether
0x559f4f7bc4303f3b8288d877f6e48e25c303e48802cb46dd020b8c6ef9d6994d130640862021-08-20 19:49:1729 days 21 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x5bdce50b4e404f7a7e367bffe2dde10fed137ad10.003074201623420386 Ether
0x601f03b0bd22838adc522dfd12d64f9ae299c160bbf8b62a876dcad172c71386130627772021-08-20 14:57:2830 days 2 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x93d46185c77f348b3f11bac55bfeacf61163b3e50.003113431737865162 Ether
0xce29dec69bcf7a4bf2606fa873da28a007085e855fc95a53c5ca28cef9419bb5130472622021-08-18 5:06:2332 days 12 hrs ago 0x24bf911ebf9cc5ce5d65041b9343d7c5f95655090x3055911db7a99e4c57c3b1eafb63ddff17d9c62e0.003290835416956577 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ETHRegistrarController

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 4 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 5 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 6 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 9 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 10 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 11 of 17 : BaseRegistrar.sol
pragma solidity ^0.8.4;

import "../registry/ENS.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract BaseRegistrar is Ownable, IERC721 {
    event ControllerAdded(address indexed controller);
    event ControllerRemoved(address indexed controller);
    event NameRegistered(uint256 indexed id, address indexed owner);

    // The ENS registry
    ENS public ens;

    // The namehash of the TLD this registrar owns (eg, .eth)
    bytes32 public baseNode;

    // A map of addresses that are authorised to register names.
    mapping(address=>bool) public controllers;

    // Authorises a controller, who can register domains.
    function addController(address controller) virtual external;

    // Revoke controller permission for an address.
    function removeController(address controller) virtual external;

    // Set the resolver for the TLD this registrar manages.
    function setResolver(address resolver) virtual external;

    // Returns true iff the specified name is available for registration.
    function available(uint256 id) virtual public view returns(bool);

    /**
     * @dev Register a name.
     */
    function register(uint256 id, address owner) virtual external;

    /**
     * @dev Reclaim ownership of a name in ENS, if you own it in the registrar.
     */
    function reclaim(uint256 id, address owner) virtual external;
}

File 12 of 17 : BaseRegistrarImplementation.sol
pragma solidity >=0.8.4;

import "../registry/ENS.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

import "./BaseRegistrar.sol";
contract BaseRegistrarImplementation is ERC721, BaseRegistrar  {
    bytes4 constant private INTERFACE_META_ID = bytes4(keccak256("supportsInterface(bytes4)"));
    bytes4 constant private ERC721_ID = bytes4(
        keccak256("balanceOf(address)") ^
        keccak256("ownerOf(uint256)") ^
        keccak256("approve(address,uint256)") ^
        keccak256("getApproved(uint256)") ^
        keccak256("setApprovalForAll(address,bool)") ^
        keccak256("isApprovedForAll(address,address)") ^
        keccak256("transferFrom(address,address,uint256)") ^
        keccak256("safeTransferFrom(address,address,uint256)") ^
        keccak256("safeTransferFrom(address,address,uint256,bytes)")
    );
    bytes4 constant private RECLAIM_ID = bytes4(keccak256("reclaim(uint256,address)"));

    constructor(ENS _ens, bytes32 _baseNode) ERC721("","") {
        ens = _ens;
        baseNode = _baseNode;
    }

    modifier live {
        require(ens.owner(baseNode) == address(this));
        _;
    }

    modifier onlyController {
        require(controllers[msg.sender]);
        _;
    }

    // Authorises a controller, who can register domains.
    function addController(address controller) external override onlyOwner {
        controllers[controller] = true;
        emit ControllerAdded(controller);
    }

    // Revoke controller permission for an address.
    function removeController(address controller) external override onlyOwner {
        controllers[controller] = false;
        emit ControllerRemoved(controller);
    }

    // Set the resolver for the TLD this registrar manages.
    function setResolver(address resolver) external override onlyOwner {
        ens.setResolver(baseNode, resolver);
    }

    // Returns true iff the specified name is available for registration.
    function available(uint256 id) public view override returns(bool) {
        // Not available if it's registered here
        return !_exists(id);
    }

    /**
     * @dev Register a name.
     * @param id The token ID (keccak256 of the label).
     * @param owner The address that should own the registration.
     */
    function register(uint256 id, address owner) external override {
       _register(id, owner, true);
    }

    /**
     * @dev Register a name, without modifying the registry.
     * @param id The token ID (keccak256 of the label).
     * @param owner The address that should own the registration.
     */
    function registerOnly(uint256 id, address owner) external {
       _register(id, owner, false);
    }

    function _register(uint256 id, address owner, bool updateRegistry) internal live onlyController {
        require(available(id));

        _mint(owner, id);
        if(updateRegistry) {
            ens.setSubnodeOwner(baseNode, bytes32(id), owner);
        }

        emit NameRegistered(id, owner);
    }

    /**
     * @dev Reclaim ownership of a name in ENS, if you own it in the registrar.
     */
    function reclaim(uint256 id, address owner) external override live {
        require(_isApprovedOrOwner(msg.sender, id));
        ens.setSubnodeOwner(baseNode, bytes32(id), owner);
    }

    function supportsInterface(bytes4 interfaceID) public override(ERC721, IERC165) view returns (bool) {
        return interfaceID == INTERFACE_META_ID ||
               interfaceID == ERC721_ID ||
               interfaceID == RECLAIM_ID;
    }
}

File 13 of 17 : ETHRegistrarController.sol
pragma solidity >=0.8.4;

import "./PriceOracle.sol";
import "./BaseRegistrarImplementation.sol";
import "./StringUtils.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../resolvers/Resolver.sol";

/**
 * @dev A registrar controller for registering names at fixed cost.
 */
contract ETHRegistrarController is Ownable {
    using StringUtils for *;

    bytes4 constant private INTERFACE_META_ID = bytes4(keccak256("supportsInterface(bytes4)"));
    bytes4 constant private COMMITMENT_CONTROLLER_ID = bytes4(
        keccak256("price(string)") ^
        keccak256("available(string)") ^
        keccak256("makeCommitment(string,address,bytes32)") ^
        keccak256("commit(bytes32)") ^
        keccak256("register(string,address,bytes32)")
    );

    bytes4 constant private COMMITMENT_WITH_CONFIG_CONTROLLER_ID = bytes4(
        keccak256("registerWithConfig(string,address,bytes32,address,address)") ^
        keccak256("makeCommitmentWithConfig(string,address,bytes32,address,address)")
    );

    BaseRegistrarImplementation base;
    PriceOracle prices;
    uint public minCommitmentAge;
    uint public maxCommitmentAge;

    mapping(bytes32=>uint) public commitments;

    event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint cost);
    event NewPriceOracle(address indexed oracle);

    constructor(BaseRegistrarImplementation _base, PriceOracle _prices, uint _minCommitmentAge, uint _maxCommitmentAge) public {
        require(_maxCommitmentAge > _minCommitmentAge);

        base = _base;
        prices = _prices;
        minCommitmentAge = _minCommitmentAge;
        maxCommitmentAge = _maxCommitmentAge;
    }

    function price(string memory name) view public returns(uint) {
        return prices.price(name);
    }

    function valid(string memory name) public pure returns(bool) {
        return name.strlen() >= 1;
    }

    function available(string memory name) public view returns(bool) {
        bytes32 label = keccak256(bytes(name));
        return valid(name) && base.available(uint256(label));
    }

    function makeCommitment(string memory name, address owner, bytes32 secret) pure public returns(bytes32) {
        return makeCommitmentWithConfig(name, owner, secret, address(0), address(0));
    }

    function makeCommitmentWithConfig(string memory name, address owner, bytes32 secret, address resolver, address addr) pure public returns(bytes32) {
        bytes32 label = keccak256(bytes(name));
        if (resolver == address(0) && addr == address(0)) {
            return keccak256(abi.encodePacked(label, owner, secret));
        }
        require(resolver != address(0));
        return keccak256(abi.encodePacked(label, owner, resolver, addr, secret));
    }

    function commit(bytes32 commitment) public {
        require(commitments[commitment] + maxCommitmentAge < block.timestamp);
        commitments[commitment] = block.timestamp;
    }

    function register(string calldata name, address owner, bytes32 secret) external payable {
      registerWithConfig(name, owner, secret, address(0), address(0));
    }

    function registerWithConfig(string memory name, address owner, bytes32 secret, address resolver, address addr) public payable {
        bytes32 commitment = makeCommitmentWithConfig(name, owner, secret, resolver, addr);
        uint cost = _consumeCommitment(name, commitment);

        bytes32 label = keccak256(bytes(name));
        uint256 tokenId = uint256(label);

        if(resolver != address(0)) {
            // Set this contract as the (temporary) owner, giving it
            // permission to set up the resolver.
            base.register(tokenId, address(this));

            // The nodehash of this label
            bytes32 nodehash = keccak256(abi.encodePacked(base.baseNode(), label));

            // Set the resolver
            base.ens().setResolver(nodehash, resolver);

            // Configure the resolver
            if (addr != address(0)) {
                Resolver(resolver).setAddr(nodehash, addr);
            }

            // Now transfer full ownership to the expected owner
            base.reclaim(tokenId, owner);
            base.transferFrom(address(this), owner, tokenId);
        } else {
            require(addr == address(0));
            base.register(tokenId, owner);
        }

        emit NameRegistered(name, label, owner, cost);

        // Refund any extra payment
        if(msg.value > cost) {
            payable(msg.sender).transfer(msg.value - cost);
        }
    }

    function setPriceOracle(PriceOracle _prices) public onlyOwner {
        prices = _prices;
        emit NewPriceOracle(address(prices));
    }

    function setCommitmentAges(uint _minCommitmentAge, uint _maxCommitmentAge) public onlyOwner {
        minCommitmentAge = _minCommitmentAge;
        maxCommitmentAge = _maxCommitmentAge;
    }

    function withdraw() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);        
    }

    function supportsInterface(bytes4 interfaceID) external pure returns (bool) {
        return interfaceID == INTERFACE_META_ID ||
               interfaceID == COMMITMENT_CONTROLLER_ID ||
               interfaceID == COMMITMENT_WITH_CONFIG_CONTROLLER_ID;
    }

    function _consumeCommitment(string memory name, bytes32 commitment) internal returns (uint256) {
        // Require a valid commitment
        require(commitments[commitment] + minCommitmentAge <= block.timestamp);

        // If the commitment is too old, or the name is registered, stop
        require(commitments[commitment] + maxCommitmentAge > block.timestamp);
        require(available(name));

        delete(commitments[commitment]);

        uint cost = price(name);
        require(msg.value >= cost);

        return cost;
    }
}

File 14 of 17 : PriceOracle.sol
pragma solidity >=0.8.4;

interface PriceOracle {
    /**
     * @dev Returns the price to register a name.
     * @param name The name being registered.
     * @return The price of this registration, in wei.
     */
    function price(string calldata name) external view returns(uint);
}

File 15 of 17 : StringUtils.sol
pragma solidity >=0.8.4;

library StringUtils {
    /**
     * @dev Returns the length of a given string
     *
     * @param s The string to measure the length of
     * @return The length of the input string
     */
    function strlen(string memory s) internal pure returns (uint) {
        uint len;
        uint i = 0;
        uint bytelength = bytes(s).length;
        for(len = 0; i < bytelength; len++) {
            bytes1 b = bytes(s)[i];
            if(b < 0x80) {
                i += 1;
            } else if (b < 0xE0) {
                i += 2;
            } else if (b < 0xF0) {
                i += 3;
            } else if (b < 0xF8) {
                i += 4;
            } else if (b < 0xFC) {
                i += 5;
            } else {
                i += 6;
            }
        }
        return len;
    }
}

File 16 of 17 : ENS.sol
pragma solidity >=0.8.4;

interface ENS {

    // Logged when the owner of a node assigns a new owner to a subnode.
    event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);

    // Logged when the owner of a node transfers ownership to a new account.
    event Transfer(bytes32 indexed node, address owner);

    // Logged when the resolver for a node changes.
    event NewResolver(bytes32 indexed node, address resolver);

    // Logged when the TTL of a node changes
    event NewTTL(bytes32 indexed node, uint64 ttl);

    // Logged when an operator is added or removed.
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    function setRecord(bytes32 node, address owner, address resolver, uint64 ttl) external virtual;
    function setSubnodeRecord(bytes32 node, bytes32 label, address owner, address resolver, uint64 ttl) external virtual;
    function setSubnodeOwner(bytes32 node, bytes32 label, address owner) external virtual returns(bytes32);
    function setResolver(bytes32 node, address resolver) external virtual;
    function setOwner(bytes32 node, address owner) external virtual;
    function setTTL(bytes32 node, uint64 ttl) external virtual;
    function setApprovalForAll(address operator, bool approved) external virtual;
    function owner(bytes32 node) external virtual view returns (address);
    function resolver(bytes32 node) external virtual view returns (address);
    function ttl(bytes32 node) external virtual view returns (uint64);
    function recordExists(bytes32 node) external virtual view returns (bool);
    function isApprovedForAll(address owner, address operator) external virtual view returns (bool);
}

File 17 of 17 : Resolver.sol
pragma solidity >=0.8.4;
pragma experimental ABIEncoderV2;

/**
 * A generic resolver interface which includes all the functions including the ones deprecated
 */
interface Resolver{
    event AddrChanged(bytes32 indexed node, address a);
    event AddressChanged(bytes32 indexed node, uint coinType, bytes newAddress);
    event NameChanged(bytes32 indexed node, string name);
    event ABIChanged(bytes32 indexed node, uint256 indexed contentType);
    event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y);
    event TextChanged(bytes32 indexed node, string indexed indexedKey, string key);
    event ContenthashChanged(bytes32 indexed node, bytes hash);
    /* Deprecated events */
    event ContentChanged(bytes32 indexed node, bytes32 hash);

    function ABI(bytes32 node, uint256 contentTypes) external view returns (uint256, bytes memory);
    function addr(bytes32 node) external view returns (address);
    function addr(bytes32 node, uint coinType) external view returns(bytes memory);
    function contenthash(bytes32 node) external view returns (bytes memory);
    function dnsrr(bytes32 node) external view returns (bytes memory);
    function name(bytes32 node) external view returns (string memory);
    function pubkey(bytes32 node) external view returns (bytes32 x, bytes32 y);
    function text(bytes32 node, string calldata key) external view returns (string memory);
    function interfaceImplementer(bytes32 node, bytes4 interfaceID) external view returns (address);
    function setABI(bytes32 node, uint256 contentType, bytes calldata data) external;
    function setAddr(bytes32 node, address addr) external;
    function setAddr(bytes32 node, uint coinType, bytes calldata a) external;
    function setContenthash(bytes32 node, bytes calldata hash) external;
    function setDnsrr(bytes32 node, bytes calldata data) external;
    function setName(bytes32 node, string calldata _name) external;
    function setPubkey(bytes32 node, bytes32 x, bytes32 y) external;
    function setText(bytes32 node, string calldata key, string calldata value) external;
    function setInterface(bytes32 node, bytes4 interfaceID, address implementer) external;
    function supportsInterface(bytes4 interfaceID) external pure returns (bool);
    function multicall(bytes[] calldata data) external returns(bytes[] memory results);

    /* Deprecated functions */
    function content(bytes32 node) external view returns (bytes32);
    function multihash(bytes32 node) external view returns (bytes memory);
    function setContent(bytes32 node, bytes32 hash) external;
    function setMultihash(bytes32 node, bytes calldata hash) external;
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract BaseRegistrarImplementation","name":"_base","type":"address"},{"internalType":"contract PriceOracle","name":"_prices","type":"address"},{"internalType":"uint256","name":"_minCommitmentAge","type":"uint256"},{"internalType":"uint256","name":"_maxCommitmentAge","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"bytes32","name":"label","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"NameRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oracle","type":"address"}],"name":"NewPriceOracle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"available","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"commitment","type":"bytes32"}],"name":"commit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"commitments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes32","name":"secret","type":"bytes32"}],"name":"makeCommitment","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes32","name":"secret","type":"bytes32"},{"internalType":"address","name":"resolver","type":"address"},{"internalType":"address","name":"addr","type":"address"}],"name":"makeCommitmentWithConfig","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxCommitmentAge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minCommitmentAge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes32","name":"secret","type":"bytes32"}],"name":"register","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes32","name":"secret","type":"bytes32"},{"internalType":"address","name":"resolver","type":"address"},{"internalType":"address","name":"addr","type":"address"}],"name":"registerWithConfig","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minCommitmentAge","type":"uint256"},{"internalType":"uint256","name":"_maxCommitmentAge","type":"uint256"}],"name":"setCommitmentAges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract PriceOracle","name":"_prices","type":"address"}],"name":"setPriceOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"valid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620026ab380380620026ab83398181016040528101906200003791906200020f565b620000576200004b620000fe60201b60201c565b6200010660201b60201c565b8181116200006457600080fd5b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160038190555080600481905550505050506200032f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001db81620002e1565b92915050565b600081519050620001f281620002fb565b92915050565b600081519050620002098162000315565b92915050565b600080600080608085870312156200022657600080fd5b60006200023687828801620001ca565b94505060206200024987828801620001e1565b93505060406200025c87828801620001f8565b92505060606200026f87828801620001f8565b91505092959194509250565b60006200028882620002b7565b9050919050565b60006200029c826200027b565b9050919050565b6000620002b0826200027b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620002ec816200028f565b8114620002f857600080fd5b50565b6200030681620002a3565b81146200031257600080fd5b50565b6200032081620002d7565b81146200032c57600080fd5b50565b61236c806200033f6000396000f3fe6080604052600436106101095760003560e01c80638da5cb5b11610095578063f14fcbc811610064578063f14fcbc81461035c578063f2fde38b14610385578063f34b95b3146103ae578063f49826be146103ca578063fe2c61981461040757610109565b80638da5cb5b1461028c5780639791c097146102b7578063aeb8ce9b146102f4578063ce1e09c01461033157610109565b80636acb4f91116100dc5780636acb4f91146101c8578063715018a6146101e45780637e324479146101fb578063839df945146102245780638d839ffe1461026157610109565b806301ffc9a71461010e5780633ccfd60b1461014b5780633d86c52f14610162578063530e784f1461019f575b600080fd5b34801561011a57600080fd5b506101356004803603810190610130919061195e565b610444565b6040516101429190611de4565b60405180910390f35b34801561015757600080fd5b50610160610628565b005b34801561016e57600080fd5b5061018960048036038101906101849190611aed565b6106ed565b6040516101969190611dff565b60405180910390f35b3480156101ab57600080fd5b506101c660048036038101906101c191906119b0565b610810565b005b6101e260048036038101906101dd9190611aed565b610935565b005b3480156101f057600080fd5b506101f9610f4b565b005b34801561020757600080fd5b50610222600480360381019061021d9190611ba5565b610fd3565b005b34801561023057600080fd5b5061024b6004803603810190610246919061190c565b611061565b6040516102589190611ed5565b60405180910390f35b34801561026d57600080fd5b50610276611079565b6040516102839190611ed5565b60405180910390f35b34801561029857600080fd5b506102a161107f565b6040516102ae9190611d92565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190611a45565b6110a8565b6040516102eb9190611de4565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190611a45565b6110be565b6040516103289190611de4565b60405180910390f35b34801561033d57600080fd5b50610346611192565b6040516103539190611ed5565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e919061190c565b611198565b005b34801561039157600080fd5b506103ac60048036038101906103a791906118ba565b6111df565b005b6103c860048036038101906103c391906119d9565b6112d7565b005b3480156103d657600080fd5b506103f160048036038101906103ec9190611a86565b61132f565b6040516103fe9190611dff565b60405180910390f35b34801561041357600080fd5b5061042e60048036038101906104299190611a45565b611348565b60405161043b9190611ed5565b60405180910390f35b60007f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e27bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061059757507ff34b95b3ccb4c902ea244fa34aa19f86f7ea6c04d87ada0fa3d1437f04bbd1447ff14fcbc8f6996b31406143e2613e60bde3c1118cfe166c0aa27ba40ef1033df57ff49826be766d3cc8dc7e4aab3f18eb3d339eb3bce85a7b9144119bbe997b2cc37faeb8ce9b70d5d3f3fba501c34cd61a54703dbe3cfb25bd75d3574635f9ea76837ffe2c619874d0eefe2754e000f94bf8e8d25af34324c98305907f8d29c90ee618181818187bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061062157507f3d86c52f15403f1a062ec90b8fe0792e3be0a9cb236cd8ee4ec4b45821bd2faa7f6acb4f918674e987c0300e8b629769f4d160a3155e20d335a569b3815537c15d187bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6106306113fc565b73ffffffffffffffffffffffffffffffffffffffff1661064e61107f565b73ffffffffffffffffffffffffffffffffffffffff16146106a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069b90611eb5565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156106ea573d6000803e3d6000fd5b50565b60008086805190602001209050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480156107625750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561079a5780868660405160200161077c93929190611d29565b60405160208183030381529060405280519060200120915050610807565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156107d457600080fd5b80868585886040516020016107ed959493929190611cca565b604051602081830303815290604052805190602001209150505b95945050505050565b6108186113fc565b73ffffffffffffffffffffffffffffffffffffffff1661083661107f565b73ffffffffffffffffffffffffffffffffffffffff161461088c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088390611eb5565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff261845a790fe29bbd6631e2ca4a5bdc83e6eed7c3271d9590d97287e00e912360405160405180910390a250565b600061094486868686866106ed565b905060006109528783611404565b905060008780519060200120905060008160001c9050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610dcb57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dbbdf08382306040518363ffffffff1660e01b81526004016109f9929190611ef0565b600060405180830381600087803b158015610a1357600080fd5b505af1158015610a27573d6000803e3d6000fd5b505050506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ddf7fcb06040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd9190611935565b83604051602001610adf929190611d66565b604051602081830303815290604052805190602001209050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633f15457f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5f57600080fd5b505afa158015610b73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b979190611987565b73ffffffffffffffffffffffffffffffffffffffff16631896f70a82896040518363ffffffff1660e01b8152600401610bd1929190611e1a565b600060405180830381600087803b158015610beb57600080fd5b505af1158015610bff573d6000803e3d6000fd5b50505050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610ca5578673ffffffffffffffffffffffffffffffffffffffff1663d5fa2b0082886040518363ffffffff1660e01b8152600401610c72929190611e1a565b600060405180830381600087803b158015610c8c57600080fd5b505af1158015610ca0573d6000803e3d6000fd5b505050505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166328ed4f6c838b6040518363ffffffff1660e01b8152600401610d02929190611ef0565b600060405180830381600087803b158015610d1c57600080fd5b505af1158015610d30573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd308b856040518463ffffffff1660e01b8152600401610d9393929190611dad565b600060405180830381600087803b158015610dad57600080fd5b505af1158015610dc1573d6000803e3d6000fd5b5050505050610e94565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614610e0457600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dbbdf083828a6040518363ffffffff1660e01b8152600401610e61929190611ef0565b600060405180830381600087803b158015610e7b57600080fd5b505af1158015610e8f573d6000803e3d6000fd5b505050505b8773ffffffffffffffffffffffffffffffffffffffff16827f0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa8b86604051610edd929190611e65565b60405180910390a382341115610f40573373ffffffffffffffffffffffffffffffffffffffff166108fc8434610f139190611fe1565b9081150290604051600060405180830381858888f19350505050158015610f3e573d6000803e3d6000fd5b505b505050505050505050565b610f536113fc565b73ffffffffffffffffffffffffffffffffffffffff16610f7161107f565b73ffffffffffffffffffffffffffffffffffffffff1614610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90611eb5565b60405180910390fd5b610fd160006114ac565b565b610fdb6113fc565b73ffffffffffffffffffffffffffffffffffffffff16610ff961107f565b73ffffffffffffffffffffffffffffffffffffffff161461104f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104690611eb5565b60405180910390fd5b81600381905550806004819055505050565b60056020528060005260406000206000915090505481565b60035481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060016110b583611570565b10159050919050565b600080828051906020012090506110d4836110a8565b801561118a5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396e494e88260001c6040518263ffffffff1660e01b81526004016111399190611ed5565b60206040518083038186803b15801561115157600080fd5b505afa158015611165573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118991906118e3565b5b915050919050565b60045481565b4260045460056000848152602001908152602001600020546111ba9190611f8b565b106111c457600080fd5b42600560008381526020019081526020016000208190555050565b6111e76113fc565b73ffffffffffffffffffffffffffffffffffffffff1661120561107f565b73ffffffffffffffffffffffffffffffffffffffff161461125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290611eb5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c290611e95565b60405180910390fd5b6112d4816114ac565b50565b61132984848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508383600080610935565b50505050565b600061133f8484846000806106ed565b90509392505050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe2c6198836040518263ffffffff1660e01b81526004016113a59190611e43565b60206040518083038186803b1580156113bd57600080fd5b505afa1580156113d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f59190611b7c565b9050919050565b600033905090565b60004260035460056000858152602001908152602001600020546114289190611f8b565b111561143357600080fd5b4260045460056000858152602001908152602001600020546114559190611f8b565b1161145f57600080fd5b611468836110be565b61147157600080fd5b6005600083815260200190815260200160002060009055600061149384611348565b9050803410156114a257600080fd5b8091505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060008084519050600092505b808210156117405760008583815181106115c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b9050608060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610156116115760018361160a9190611f8b565b925061172c565b60e060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610156116535760028361164c9190611f8b565b925061172b565b60f060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610156116955760038361168e9190611f8b565b925061172a565b60f8801b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610156116d6576004836116cf9190611f8b565b9250611729565b60fc60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015611718576005836117119190611f8b565b9250611728565b6006836117259190611f8b565b92505b5b5b5b5b5082806117389061212a565b93505061157f565b829350505050919050565b600061175e61175984611f3e565b611f19565b90508281526020810184848401111561177657600080fd5b6117818482856120b7565b509392505050565b60008135905061179881612295565b92915050565b6000815190506117ad816122ac565b92915050565b6000813590506117c2816122c3565b92915050565b6000815190506117d7816122c3565b92915050565b6000813590506117ec816122da565b92915050565b600081519050611801816122f1565b92915050565b60008135905061181681612308565b92915050565b60008083601f84011261182e57600080fd5b8235905067ffffffffffffffff81111561184757600080fd5b60208301915083600182028301111561185f57600080fd5b9250929050565b600082601f83011261187757600080fd5b813561188784826020860161174b565b91505092915050565b60008135905061189f8161231f565b92915050565b6000815190506118b48161231f565b92915050565b6000602082840312156118cc57600080fd5b60006118da84828501611789565b91505092915050565b6000602082840312156118f557600080fd5b60006119038482850161179e565b91505092915050565b60006020828403121561191e57600080fd5b600061192c848285016117b3565b91505092915050565b60006020828403121561194757600080fd5b6000611955848285016117c8565b91505092915050565b60006020828403121561197057600080fd5b600061197e848285016117dd565b91505092915050565b60006020828403121561199957600080fd5b60006119a7848285016117f2565b91505092915050565b6000602082840312156119c257600080fd5b60006119d084828501611807565b91505092915050565b600080600080606085870312156119ef57600080fd5b600085013567ffffffffffffffff811115611a0957600080fd5b611a158782880161181c565b94509450506020611a2887828801611789565b9250506040611a39878288016117b3565b91505092959194509250565b600060208284031215611a5757600080fd5b600082013567ffffffffffffffff811115611a7157600080fd5b611a7d84828501611866565b91505092915050565b600080600060608486031215611a9b57600080fd5b600084013567ffffffffffffffff811115611ab557600080fd5b611ac186828701611866565b9350506020611ad286828701611789565b9250506040611ae3868287016117b3565b9150509250925092565b600080600080600060a08688031215611b0557600080fd5b600086013567ffffffffffffffff811115611b1f57600080fd5b611b2b88828901611866565b9550506020611b3c88828901611789565b9450506040611b4d888289016117b3565b9350506060611b5e88828901611789565b9250506080611b6f88828901611789565b9150509295509295909350565b600060208284031215611b8e57600080fd5b6000611b9c848285016118a5565b91505092915050565b60008060408385031215611bb857600080fd5b6000611bc685828601611890565b9250506020611bd785828601611890565b9150509250929050565b611bea81612015565b82525050565b611c01611bfc82612015565b612173565b82525050565b611c1081612027565b82525050565b611c1f81612033565b82525050565b611c36611c3182612033565b612185565b82525050565b6000611c4782611f6f565b611c518185611f7a565b9350611c618185602086016120c6565b611c6a816121ff565b840191505092915050565b6000611c82602683611f7a565b9150611c8d8261221d565b604082019050919050565b6000611ca5602083611f7a565b9150611cb08261226c565b602082019050919050565b611cc4816120ad565b82525050565b6000611cd68288611c25565b602082019150611ce68287611bf0565b601482019150611cf68286611bf0565b601482019150611d068285611bf0565b601482019150611d168284611c25565b6020820191508190509695505050505050565b6000611d358286611c25565b602082019150611d458285611bf0565b601482019150611d558284611c25565b602082019150819050949350505050565b6000611d728285611c25565b602082019150611d828284611c25565b6020820191508190509392505050565b6000602082019050611da76000830184611be1565b92915050565b6000606082019050611dc26000830186611be1565b611dcf6020830185611be1565b611ddc6040830184611cbb565b949350505050565b6000602082019050611df96000830184611c07565b92915050565b6000602082019050611e146000830184611c16565b92915050565b6000604082019050611e2f6000830185611c16565b611e3c6020830184611be1565b9392505050565b60006020820190508181036000830152611e5d8184611c3c565b905092915050565b60006040820190508181036000830152611e7f8185611c3c565b9050611e8e6020830184611cbb565b9392505050565b60006020820190508181036000830152611eae81611c75565b9050919050565b60006020820190508181036000830152611ece81611c98565b9050919050565b6000602082019050611eea6000830184611cbb565b92915050565b6000604082019050611f056000830185611cbb565b611f126020830184611be1565b9392505050565b6000611f23611f34565b9050611f2f82826120f9565b919050565b6000604051905090565b600067ffffffffffffffff821115611f5957611f586121d0565b5b611f62826121ff565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b6000611f96826120ad565b9150611fa1836120ad565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611fd657611fd56121a1565b5b828201905092915050565b6000611fec826120ad565b9150611ff7836120ad565b92508282101561200a576120096121a1565b5b828203905092915050565b60006120208261208d565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061207482612015565b9050919050565b600061208682612015565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156120e45780820151818401526020810190506120c9565b838111156120f3576000848401525b50505050565b612102826121ff565b810181811067ffffffffffffffff82111715612121576121206121d0565b5b80604052505050565b6000612135826120ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612168576121676121a1565b5b600182019050919050565b600061217e8261218f565b9050919050565b6000819050919050565b600061219a82612210565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61229e81612015565b81146122a957600080fd5b50565b6122b581612027565b81146122c057600080fd5b50565b6122cc81612033565b81146122d757600080fd5b50565b6122e38161203d565b81146122ee57600080fd5b50565b6122fa81612069565b811461230557600080fd5b50565b6123118161207b565b811461231c57600080fd5b50565b612328816120ad565b811461233357600080fd5b5056fea26469706673582212208a4b7bd23298ce16c7f661b93c3f7a84a2269ec7db94984486f4f58891661e5464736f6c634300080400330000000000000000000000008436f16c090b0a6b2a7ae4cfcc82e007302a4b38000000000000000000000000976e50a38d7f15ffb9db95ff0562b87436bc764e000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000015180

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000008436f16c090b0a6b2a7ae4cfcc82e007302a4b38000000000000000000000000976e50a38d7f15ffb9db95ff0562b87436bc764e000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000015180

-----Decoded View---------------
Arg [0] : _base (address): 0x8436f16c090b0a6b2a7ae4cfcc82e007302a4b38
Arg [1] : _prices (address): 0x976e50a38d7f15ffb9db95ff0562b87436bc764e
Arg [2] : _minCommitmentAge (uint256): 60
Arg [3] : _maxCommitmentAge (uint256): 86400

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008436f16c090b0a6b2a7ae4cfcc82e007302a4b38
Arg [1] : 000000000000000000000000976e50a38d7f15ffb9db95ff0562b87436bc764e
Arg [2] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000015180


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.