ETH Price: $2,673.44 (-0.82%)

Contract

0x37723287Ae6F34866d82EE623401f92Ec9013154
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Commit204533932024-08-04 6:27:5955 days ago1722752879IN
Radicle: Registrar
0 ETH0.000070981
Register165095802023-01-29 2:45:23608 days ago1674960323IN
Radicle: Registrar
0 ETH0.0016285116.09685034
Commit165095552023-01-29 2:40:23608 days ago1674960023IN
Radicle: Registrar
0 ETH0.0014341420.2042829
Register164704812023-01-23 15:44:23614 days ago1674488663IN
Radicle: Registrar
0 ETH0.0024472524.20384095
Commit164704682023-01-23 15:41:47614 days ago1674488507IN
Radicle: Registrar
0 ETH0.0016938723.86346253
Register164655152023-01-22 23:06:59615 days ago1674428819IN
Radicle: Registrar
0 ETH0.001523415.06144822
Commit164654932023-01-22 23:02:23615 days ago1674428543IN
Radicle: Registrar
0 ETH0.0009881913.92171288
Commit164647622023-01-22 20:34:35615 days ago1674419675IN
Radicle: Registrar
0 ETH0.0012347217.39782737
Register164397052023-01-19 8:37:23618 days ago1674117443IN
Radicle: Registrar
0 ETH0.0015515.32807613
Commit164396932023-01-19 8:34:59618 days ago1674117299IN
Radicle: Registrar
0 ETH0.0010778415.1847128
Register164304672023-01-18 1:41:23619 days ago1674006083IN
Radicle: Registrar
0 ETH0.00177517.54482388
Commit164304542023-01-18 1:38:47619 days ago1674005927IN
Radicle: Registrar
0 ETH0.0012513417.62905833
Register164074002023-01-14 20:21:11623 days ago1673727671IN
Radicle: Registrar
0 ETH0.0018100417.88419796
Commit164073882023-01-14 20:18:47623 days ago1673727527IN
Radicle: Registrar
0 ETH0.0014240320.0618867
Register163911072023-01-12 13:45:23625 days ago1673531123IN
Radicle: Registrar
0 ETH0.0025651625.36404882
Commit163910922023-01-12 13:42:23625 days ago1673530943IN
Radicle: Registrar
0 ETH0.0017331224.41635809
Register163751392023-01-10 8:13:35627 days ago1673338415IN
Radicle: Registrar
0 ETH0.001532615.15235893
Commit163751272023-01-10 8:11:11627 days ago1673338271IN
Radicle: Registrar
0 ETH0.0010061114.17425507
Register163467072023-01-06 8:59:59631 days ago1672995599IN
Radicle: Registrar
0 ETH0.0016539516.33715506
Commit163466922023-01-06 8:56:47631 days ago1672995407IN
Radicle: Registrar
0 ETH0.001140816.07177354
Register163464922023-01-06 8:16:35631 days ago1672992995IN
Radicle: Registrar
0 ETH0.0015171915
Commit163464772023-01-06 8:13:35631 days ago1672992815IN
Radicle: Registrar
0 ETH0.0009937414
Register163400812023-01-05 10:45:47632 days ago1672915547IN
Radicle: Registrar
0 ETH0.0016621416.43898188
Commit163400542023-01-05 10:40:23632 days ago1672915223IN
Radicle: Registrar
0 ETH0.0011355216
Register163396982023-01-05 9:28:59632 days ago1672910939IN
Radicle: Registrar
0 ETH0.0016518816.33360861
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
118637392021-02-15 21:19:311321 days ago1613423971
Radicle: Registrar
 Contract Creation0 ETH
118637392021-02-15 21:19:311321 days ago1613423971  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Registrar

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : Registrar.sol
// SPDX-License-Identifier: GPL-3.0-only
// solhint-disable no-empty-blocks
pragma solidity ^0.7.5;

import "@ensdomains/ens/contracts/ENS.sol";
import "./Governance/RadicleToken.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

// commitments are kept in a seperate contract to allow the state to be reused
// between different versions of the registrar
contract Commitments {
    address public owner;
    modifier auth {
        require(msg.sender == owner, "Commitments: unauthorized");
        _;
    }
    event SetOwner(address usr);

    /// Mapping from the commitment to the block number in which the commitment was made
    mapping(bytes32 => uint256) public commited;

    constructor() {
        owner = msg.sender;
    }

    function setOwner(address usr) external auth {
        owner = usr;
        emit SetOwner(usr);
    }

    function commit(bytes32 commitment) external auth {
        commited[commitment] = block.number;
    }
}

contract Registrar {
    // --- DATA ---

    /// The ENS registry.
    ENS public immutable ens;

    /// The Radicle ERC20 token.
    RadicleToken public immutable rad;

    /// @notice EIP-712 name for this contract
    string public constant NAME = "Registrar";

    /// The commitment storage contract
    Commitments public immutable commitments = new Commitments();

    /// The namehash of the `eth` TLD in the ENS registry, eg. namehash("eth").
    bytes32 public constant ETH_NODE = keccak256(abi.encodePacked(bytes32(0), keccak256("eth")));

    /// The namehash of the node in the `eth` TLD, eg. namehash("radicle.eth").
    bytes32 public immutable radNode;

    /// The token ID for the node in the `eth` TLD, eg. sha256("radicle").
    uint256 public immutable tokenId;

    /// The minimum number of blocks that must have passed between a commitment and name registration
    uint256 public minCommitmentAge;

    /// Registration fee in *Radicle* (uRads).
    uint256 public registrationFeeRad = 10e18;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant COMMIT_TYPEHASH =
        keccak256("Commit(bytes32 commitment,uint256 nonce,uint256 expiry,uint256 submissionFee)");

    /// @notice A record of states for signing / validating signatures
    mapping(address => uint256) public nonces;

    // --- LOGS ---

    /// @notice A name was registered.
    event NameRegistered(string indexed name, bytes32 indexed label, address indexed owner);

    /// @notice A commitment was made
    event CommitmentMade(bytes32 commitment, uint256 blockNumber);

    /// @notice The contract admin was changed
    event AdminChanged(address newAdmin);

    /// @notice The registration fee was changed
    event RegistrationRadFeeChanged(uint256 amt);

    /// @notice The ownership of the domain was changed
    event DomainOwnershipChanged(address newOwner);

    /// @notice The resolver changed
    event ResolverChanged(address resolver);

    /// @notice The ttl changed
    event TTLChanged(uint64 amt);

    /// @notice The minimum age for a commitment was changed
    event MinCommitmentAgeChanged(uint256 amt);

    // --- AUTH ---

    /// The contract admin who can set fees.
    address public admin;

    /// Protects admin-only functions.
    modifier adminOnly {
        require(msg.sender == admin, "Registrar: only the admin can perform this action");
        _;
    }

    // --- INIT ---

    constructor(
        ENS _ens,
        RadicleToken _rad,
        address _admin,
        uint256 _minCommitmentAge,
        bytes32 _radNode,
        uint256 _tokenId
    ) {
        ens = _ens;
        rad = _rad;
        admin = _admin;
        minCommitmentAge = _minCommitmentAge;
        radNode = _radNode;
        tokenId = _tokenId;
    }

    // --- USER FACING METHODS ---

    /// Commit to a future name registration
    function commit(bytes32 commitment) public {
        _commit(msg.sender, commitment);
    }

    /// Commit to a future name and submit permit in the same transaction
    function commitWithPermit(
        bytes32 commitment,
        address owner,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external {
        rad.permit(owner, address(this), value, deadline, v, r, s);
        _commit(msg.sender, commitment);
    }

    /// Commit to a future name with a 712-signed message
    function commitBySig(
        bytes32 commitment,
        uint256 nonce,
        uint256 expiry,
        uint256 submissionFee,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        bytes32 domainSeparator =
            keccak256(
                abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(NAME)), getChainId(), address(this))
            );
        bytes32 structHash =
            keccak256(abi.encode(COMMIT_TYPEHASH, commitment, nonce, expiry, submissionFee));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "Registrar::commitBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Registrar::commitBySig: invalid nonce");
        require(block.timestamp <= expiry, "Registrar::commitBySig: signature expired");
        rad.transferFrom(signatory, msg.sender, submissionFee);
        _commit(signatory, commitment);
    }

    /// Commit to a future name with a 712-signed message and submit permit in the same transaction
    function commitBySigWithPermit(
        bytes32 commitment,
        uint256 nonce,
        uint256 expiry,
        uint256 submissionFee,
        uint8 v,
        bytes32 r,
        bytes32 s,
        address owner,
        uint256 value,
        uint256 deadline,
        uint8 permitV,
        bytes32 permitR,
        bytes32 permitS
    ) public {
        rad.permit(owner, address(this), value, deadline, permitV, permitR, permitS);
        commitBySig(commitment, nonce, expiry, submissionFee, v, r, s);
    }

    function _commit(address payer, bytes32 commitment) internal {
        require(commitments.commited(commitment) == 0, "Registrar::commit: already commited");

        rad.burnFrom(payer, registrationFeeRad);
        commitments.commit(commitment);

        emit CommitmentMade(commitment, block.number);
    }

    /// Register a subdomain
    function register(
        string calldata name,
        address owner,
        uint256 salt
    ) external {
        bytes32 label = keccak256(bytes(name));
        bytes32 commitment = keccak256(abi.encodePacked(name, owner, salt));
        uint256 commited = commitments.commited(commitment);

        require(valid(name), "Registrar::register: invalid name");
        require(available(name), "Registrar::register: name has already been registered");
        require(commited != 0, "Registrar::register: must commit before registration");
        require(
            commited + minCommitmentAge < block.number,
            "Registrar::register: commitment too new"
        );

        ens.setSubnodeRecord(radNode, label, owner, ens.resolver(radNode), ens.ttl(radNode));

        emit NameRegistered(name, label, owner);
    }

    /// Check whether a name is valid.
    function valid(string memory name) public pure returns (bool) {
        uint256 len = bytes(name).length;
        return len >= 2 && len <= 128;
    }

    /// Check whether a name is available for registration.
    function available(string memory name) public view returns (bool) {
        bytes32 label = keccak256(bytes(name));
        bytes32 node = namehash(radNode, label);
        return ens.owner(node) == address(0);
    }

    /// Get the "namehash" of a label.
    function namehash(bytes32 parent, bytes32 label) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(parent, label));
    }

    // --- ADMIN METHODS ---

    /// Set the owner of the domain.
    function setDomainOwner(address newOwner) public adminOnly {
        IERC721 ethRegistrar = IERC721(ens.owner(ETH_NODE));

        ens.setOwner(radNode, newOwner);
        ethRegistrar.transferFrom(address(this), newOwner, tokenId);
        commitments.setOwner(newOwner);

        emit DomainOwnershipChanged(newOwner);
    }

    /// Set a new resolver for radicle.eth.
    function setDomainResolver(address resolver) public adminOnly {
        ens.setResolver(radNode, resolver);
        emit ResolverChanged(resolver);
    }

    /// Set a new ttl for radicle.eth
    function setDomainTTL(uint64 ttl) public adminOnly {
        ens.setTTL(radNode, ttl);
        emit TTLChanged(ttl);
    }

    /// Set the minimum commitment age
    function setMinCommitmentAge(uint256 amt) public adminOnly {
        minCommitmentAge = amt;
        emit MinCommitmentAgeChanged(amt);
    }

    /// Set a new registration fee
    function setRadRegistrationFee(uint256 amt) public adminOnly {
        registrationFeeRad = amt;
        emit RegistrationRadFeeChanged(amt);
    }

    /// Set a new admin
    function setAdmin(address newAdmin) public adminOnly {
        admin = newAdmin;
        emit AdminChanged(newAdmin);
    }

    function getChainId() internal pure returns (uint256) {
        uint256 chainId;
        // solhint-disable no-inline-assembly
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}

File 2 of 5 : ENS.sol
pragma solidity >=0.4.24;

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;
    function setSubnodeRecord(bytes32 node, bytes32 label, address owner, address resolver, uint64 ttl) external;
    function setSubnodeOwner(bytes32 node, bytes32 label, address owner) external returns(bytes32);
    function setResolver(bytes32 node, address resolver) external;
    function setOwner(bytes32 node, address owner) external;
    function setTTL(bytes32 node, uint64 ttl) external;
    function setApprovalForAll(address operator, bool approved) external;
    function owner(bytes32 node) external view returns (address);
    function resolver(bytes32 node) external view returns (address);
    function ttl(bytes32 node) external view returns (uint64);
    function recordExists(bytes32 node) external view returns (bool);
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 3 of 5 : RadicleToken.sol
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2020 Compound Labs, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from this
// software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

pragma solidity ^0.7.5;
pragma experimental ABIEncoderV2;

contract RadicleToken {
    /// @notice EIP-20 token name for this token
    string public constant NAME = "Radicle";

    /// @notice EIP-20 token symbol for this token
    string public constant SYMBOL = "RAD";

    /// @notice EIP-20 token decimals for this token
    uint8 public constant DECIMALS = 18;

    /// @notice Total number of tokens in circulation
    uint256 public totalSupply = 100000000e18; // 100 million tokens

    // Allowance amounts on behalf of others
    mapping(address => mapping(address => uint96)) internal allowances;

    // Official record of token balances for each account
    mapping(address => uint96) internal balances;

    /// @notice A record of each accounts delegate
    mapping(address => address) public delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping(address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice The EIP-712 typehash for EIP-2612 permit
    bytes32 public constant PERMIT_TYPEHASH =
        keccak256(
            "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
        );
    /// @notice A record of states for signing / validating signatures
    mapping(address => uint256) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(
        address indexed delegator,
        address indexed fromDelegate,
        address indexed toDelegate
    );

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(
        address indexed delegate,
        uint256 previousBalance,
        uint256 newBalance
    );

    /// @notice The standard EIP-20 transfer event
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @notice The standard EIP-20 approval event
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /**
     * @notice Construct a new token
     * @param account The initial account to grant all the tokens
     */
    constructor(address account) {
        balances[account] = uint96(totalSupply);
        emit Transfer(address(0), account, totalSupply);
    }

    /* @notice Token name */
    function name() public pure returns (string memory) {
        return NAME;
    }

    /* @notice Token symbol */
    function symbol() public pure returns (string memory) {
        return SYMBOL;
    }

    /* @notice Token decimals */
    function decimals() public pure returns (uint8) {
        return DECIMALS;
    }

    /* @notice domainSeparator */
    // solhint-disable func-name-mixedcase
    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        return
            keccak256(
                abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(NAME)), getChainId(), address(this))
            );
    }

    /**
     * @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
     * @param account The address of the account holding the funds
     * @param spender The address of the account spending the funds
     * @return The number of tokens approved
     */
    function allowance(address account, address spender) external view returns (uint256) {
        return allowances[account][spender];
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * @param spender The address of the account which may transfer tokens
     * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint256 rawAmount) external returns (bool) {
        _approve(msg.sender, spender, rawAmount);
        return true;
    }

    function _approve(
        address owner,
        address spender,
        uint256 rawAmount
    ) internal {
        uint96 amount;
        if (rawAmount == uint256(-1)) {
            amount = uint96(-1);
        } else {
            amount = safe96(rawAmount, "RadicleToken::approve: amount exceeds 96 bits");
        }

        allowances[owner][spender] = amount;

        emit Approval(owner, spender, amount);
    }

    /**
     * @notice Get the number of tokens held by the `account`
     * @param account The address of the account to get the balance of
     * @return The number of tokens held
     */
    function balanceOf(address account) external view returns (uint256) {
        return balances[account];
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint256 rawAmount) external returns (bool) {
        uint96 amount = safe96(rawAmount, "RadicleToken::transfer: amount exceeds 96 bits");
        _transferTokens(msg.sender, dst, amount);
        return true;
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(
        address src,
        address dst,
        uint256 rawAmount
    ) external returns (bool) {
        address spender = msg.sender;
        uint96 spenderAllowance = allowances[src][spender];
        uint96 amount = safe96(rawAmount, "RadicleToken::approve: amount exceeds 96 bits");

        if (spender != src && spenderAllowance != uint96(-1)) {
            uint96 newAllowance =
                sub96(
                    spenderAllowance,
                    amount,
                    "RadicleToken::transferFrom: transfer amount exceeds spender allowance"
                );
            allowances[src][spender] = newAllowance;

            emit Approval(src, spender, newAllowance);
        }

        _transferTokens(src, dst, amount);
        return true;
    }

    /**
     * @notice Burn `rawAmount` tokens from `account`
     * @param account The address of the account to burn
     * @param rawAmount The number of tokens to burn
     */
    function burnFrom(address account, uint256 rawAmount) public {
        require(account != address(0), "RadicleToken::burnFrom: cannot burn from the zero address");
        uint96 amount = safe96(rawAmount, "RadicleToken::burnFrom: amount exceeds 96 bits");

        address spender = msg.sender;
        uint96 spenderAllowance = allowances[account][spender];
        if (spender != account && spenderAllowance != uint96(-1)) {
            uint96 newAllowance =
                sub96(
                    spenderAllowance,
                    amount,
                    "RadicleToken::burnFrom: burn amount exceeds allowance"
                );
            allowances[account][spender] = newAllowance;
            emit Approval(account, spender, newAllowance);
        }

        balances[account] = sub96(
            balances[account],
            amount,
            "RadicleToken::burnFrom: burn amount exceeds balance"
        );
        emit Transfer(account, address(0), amount);

        _moveDelegates(delegates[account], address(0), amount);

        totalSupply -= rawAmount;
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR(), structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "RadicleToken::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "RadicleToken::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "RadicleToken::delegateBySig: signature expired");
        _delegate(signatory, delegatee);
    }

    /**
     * @notice Approves spender to spend on behalf of owner.
     * @param owner The signer of the permit
     * @param spender The address to approve
     * @param deadline The time at which the signature expires
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        bytes32 structHash =
            keccak256(
                abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)
            );
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR(), structHash));
        require(owner == ecrecover(digest, v, r, s), "RadicleToken::permit: invalid signature");
        require(owner != address(0), "RadicleToken::permit: invalid signature");
        require(block.timestamp <= deadline, "RadicleToken::permit: signature expired");
        _approve(owner, spender, value);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint256 blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, "RadicleToken::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee) internal {
        address currentDelegate = delegates[delegator];
        uint96 delegatorBalance = balances[delegator];
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _transferTokens(
        address src,
        address dst,
        uint96 amount
    ) internal {
        require(
            src != address(0),
            "RadicleToken::_transferTokens: cannot transfer from the zero address"
        );
        require(
            dst != address(0),
            "RadicleToken::_transferTokens: cannot transfer to the zero address"
        );

        balances[src] = sub96(
            balances[src],
            amount,
            "RadicleToken::_transferTokens: transfer amount exceeds balance"
        );
        balances[dst] = add96(
            balances[dst],
            amount,
            "RadicleToken::_transferTokens: transfer amount overflows"
        );
        emit Transfer(src, dst, amount);

        _moveDelegates(delegates[src], delegates[dst], amount);
    }

    function _moveDelegates(
        address srcRep,
        address dstRep,
        uint96 amount
    ) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew =
                    sub96(srcRepOld, amount, "RadicleToken::_moveVotes: vote amount underflows");
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew =
                    add96(dstRepOld, amount, "RadicleToken::_moveVotes: vote amount overflows");
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint96 oldVotes,
        uint96 newVotes
    ) internal {
        uint32 blockNumber =
            safe32(block.number, "RadicleToken::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint256 n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal pure returns (uint256) {
        uint256 chainId;
        // solhint-disable no-inline-assembly
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}

File 4 of 5 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../../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 5 of 5 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ENS","name":"_ens","type":"address"},{"internalType":"contract RadicleToken","name":"_rad","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint256","name":"_minCommitmentAge","type":"uint256"},{"internalType":"bytes32","name":"_radNode","type":"bytes32"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"commitment","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"CommitmentMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"DomainOwnershipChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"}],"name":"MinCommitmentAgeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"bytes32","name":"label","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"NameRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"}],"name":"RegistrationRadFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"resolver","type":"address"}],"name":"ResolverChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"amt","type":"uint64"}],"name":"TTLChanged","type":"event"},{"inputs":[],"name":"COMMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_NODE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":"commitment","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"submissionFee","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"commitBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"commitment","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"submissionFee","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"permitV","type":"uint8"},{"internalType":"bytes32","name":"permitR","type":"bytes32"},{"internalType":"bytes32","name":"permitS","type":"bytes32"}],"name":"commitBySigWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"commitment","type":"bytes32"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"commitWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"commitments","outputs":[{"internalType":"contract Commitments","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ens","outputs":[{"internalType":"contract ENS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minCommitmentAge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"parent","type":"bytes32"},{"internalType":"bytes32","name":"label","type":"bytes32"}],"name":"namehash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rad","outputs":[{"internalType":"contract RadicleToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"radNode","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"salt","type":"uint256"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"registrationFeeRad","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setDomainOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"resolver","type":"address"}],"name":"setDomainResolver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"ttl","type":"uint64"}],"name":"setDomainTTL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"setMinCommitmentAge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"setRadRegistrationFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"valid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]

610120604052604051610011906100e8565b604051809103906000f08015801561002d573d6000803e3d6000fd5b5060601b6001600160601b03191660c052678ac7230489e8000060015534801561005657600080fd5b50604051620022e8380380620022e8833981810160405260c081101561007b57600080fd5b5080516020820151604083015160608085015160808087015160a0978801516001600160601b031997851b88169092529490921b909416909452600380546001600160a01b039092166001600160a01b031990921691909117905560009190915560e052610100526100f6565b61028f806200205983390190565b60805160601c60a05160601c60c05160601c60e05161010051611ea2620001b76000398061079952806110b55250806109ba5280610bb15280610c835280610dcb5280610ff4528061185b52806118ad528061193c525080611122528061159252806116285280611ad55280611c325250806107225280610cf25280610ea152806114795280611ba152508061093952806109fa5280610b825280610dff5280610f76528061102f528061182c528061187e528061196c5250611ea26000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80637f5dace5116100f9578063bcb995a511610097578063d28d5bda11610071578063d28d5bda14610629578063d393c87114610631578063f14fcbc8146106b0578063f851a440146106cd576101a9565b8063bcb995a5146105b7578063c3ab4933146105dd578063cc473be314610621576101a9565b80639791c097116100d35780639791c097146103d2578063a3f4df7e1461048c578063aeb8ce9b14610509578063ba83a292146105af576101a9565b80637f5dace5146103495780638d5d2295146103515780638d839ffe146103ca576101a9565b806337479beb11610166578063549ea66311610140578063549ea663146102b0578063704b6c02146102d757806371dafbc9146102fd5780637ecebe0014610323576101a9565b806337479beb1461027c5780633f15457f146102845780634b83562f146102a8576101a9565b8063054fa711146101ae57806317d70f7c146101fd5780631d9273c71461021757806320606b701461023a57806327fc3d1d146102425780632e4c5d901461025f575b600080fd5b6101fb600480360360e08110156101c457600080fd5b508035906001600160a01b036020820135169060408101359060608101359060ff6080820135169060a08101359060c001356106d5565b005b610205610797565b60408051918252519081900360200190f35b6102056004803603604081101561022d57600080fd5b50803590602001356107bb565b6102056107e7565b6101fb6004803603602081101561025857600080fd5b503561080b565b6101fb6004803603602081101561027557600080fd5b503561088f565b610205610913565b61028c610937565b604080516001600160a01b039092168252519081900360200190f35b61020561095b565b6101fb600480360360208110156102c657600080fd5b503567ffffffffffffffff16610961565b6101fb600480360360208110156102ed57600080fd5b50356001600160a01b0316610a9a565b6101fb6004803603602081101561031357600080fd5b50356001600160a01b0316610b37565b6102056004803603602081101561033957600080fd5b50356001600160a01b0316610c6f565b610205610c81565b6101fb60048036036101a081101561036857600080fd5b5080359060208101359060408101359060608101359060ff608082013581169160a08101359160c0820135916001600160a01b0360e0820135169161010082013591610120810135916101408201351690610160810135906101800135610ca5565b610205610d72565b610478600480360360208110156103e857600080fd5b81019060208101813564010000000081111561040357600080fd5b82018360208201111561041557600080fd5b8035906020019184600183028401116401000000008311171561043757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d78945050505050565b604080519115158252519081900360200190f35b610494610d96565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104ce5781810151838201526020016104b6565b50505050905090810190601f1680156104fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104786004803603602081101561051f57600080fd5b81019060208101813564010000000081111561053a57600080fd5b82018360208201111561054c57600080fd5b8035906020019184600183028401116401000000008311171561056e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dbb945050505050565b61028c610e9f565b6101fb600480360360208110156105cd57600080fd5b50356001600160a01b0316610ec3565b6101fb600480360360e08110156105f357600080fd5b5080359060208101359060408101359060608101359060ff6080820135169060a08101359060c001356111e8565b610205611543565b61028c611590565b6101fb6004803603606081101561064757600080fd5b81019060208101813564010000000081111561066257600080fd5b82018360208201111561067457600080fd5b8035906020019184600183028401116401000000008311171561069657600080fd5b91935091506001600160a01b0381351690602001356115b4565b6101fb600480360360208110156106c657600080fd5b5035611ab7565b61028c611ac4565b6040805163d505accf60e01b81526001600160a01b038881166004830152306024830152604482018890526064820187905260ff8616608483015260a4820185905260c4820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163d505accf9160e48082019260009290919082900301818387803b15801561076c57600080fd5b505af1158015610780573d6000803e3d6000fd5b5050505061078e3388611ad3565b50505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6003546001600160a01b031633146108545760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60018190556040805182815290517f9a4b19759350abf038e619df6da804ddf6c7d73a4d97a82aa1ea30c9ca62fe959181900360200190a150565b6003546001600160a01b031633146108d85760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60008190556040805182815290517f210f9274971b034334309e1fd5829c1b0d08995e62bd36a8b83530d4f0f5ce259181900360200190a150565b7f403889cd76bbba37fc006a28a34b70915227355ee70cf7dd7e62d9282a3e166f81565b7f000000000000000000000000000000000000000000000000000000000000000081565b60015481565b6003546001600160a01b031633146109aa5760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60408051630295720760e31b81527f0000000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff8316602482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916314ab903891604480830192600092919082900301818387803b158015610a4157600080fd5b505af1158015610a55573d6000803e3d6000fd5b50506040805167ffffffffffffffff8516815290517ffc9c008b22e011f6ccd229aa5ac49f4bda529f0f6e7591ed11be63b7fa0a848c9350908190036020019150a150565b6003546001600160a01b03163314610ae35760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b600380546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f7ce7ec0b50378fb6c0186ffb5f48325f6593fcb4ca4386f21861af3129188f5c9181900360200190a150565b6003546001600160a01b03163314610b805760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631896f70a7f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015610c1757600080fd5b505af1158015610c2b573d6000803e3d6000fd5b5050604080516001600160a01b038516815290517f9126d3d22dcb1dbfaccf7ae16a8189957e5259f20d952b7acfa778962adb6dc79350908190036020019150a150565b60026020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6040805163d505accf60e01b81526001600160a01b038881166004830152306024830152604482018890526064820187905260ff8616608483015260a4820185905260c4820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163d505accf9160e48082019260009290919082900301818387803b158015610d3c57600080fd5b505af1158015610d50573d6000803e3d6000fd5b50505050610d638d8d8d8d8d8d8d6111e8565b50505050505050505050505050565b60005481565b805160009060028110801590610d8f575060808111155b9392505050565b604051806040016040528060098152602001682932b3b4b9ba3930b960b91b81525081565b8051602082012060009081610df07f0000000000000000000000000000000000000000000000000000000000000000836107bb565b905060006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166302571be3836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d6020811015610e8b57600080fd5b50516001600160a01b031614949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6003546001600160a01b03163314610f0c5760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60408051600060208083018290527f4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f083850152835180840385018152606084018086528151918301919091206302571be360e01b9091526064840152925190926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926302571be39260848083019392829003018186803b158015610fb857600080fd5b505afa158015610fcc573d6000803e3d6000fd5b505050506040513d6020811015610fe257600080fd5b505160408051635b0fc9c360e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b03858116602483015291519293507f000000000000000000000000000000000000000000000000000000000000000090911691635b0fc9c39160448082019260009290919082900301818387803b15801561107957600080fd5b505af115801561108d573d6000803e3d6000fd5b5050604080516323b872dd60e01b81523060048201526001600160a01b0386811660248301527f00000000000000000000000000000000000000000000000000000000000000006044830152915191851693506323b872dd925060648082019260009290919082900301818387803b15801561110857600080fd5b505af115801561111c573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166313af4035836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561118f57600080fd5b505af11580156111a3573d6000803e3d6000fd5b5050604080516001600160a01b038616815290517fcd45874ed6915156c39f29b349cd0bda2e2dc1067781ea0799a0dbcb5da368809350908190036020019150a15050565b6040805180820190915260098152682932b3b4b9ba3930b960b91b60209091015260007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667f237b4bd968dd8bab5e0d673abd9d0e0e6aead9d4d09d6535a789006d3bdc373f611255611cec565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207f403889cd76bbba37fc006a28a34b70915227355ee70cf7dd7e62d9282a3e166f60c084015260e083018c905261010083018b905261012083018a90526101408084018a9052825180850390910181526101608401835280519085012061190160f01b61018085015261018284018290526101a2808501829052835180860390910181526101c285018085528151918701919091206000918290526101e2860180865281905260ff8b1661020287015261022286018a90526102428601899052935192965090949293909260019261026280840193601f198301929081900390910190855afa158015611388573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113da5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ddf6029913960400191505060405180910390fd5b6001600160a01b03811660009081526002602052604090208054600181019091558a146114385760405162461bcd60e51b8152600401808060200182810382526025815260200180611d3d6025913960400191505060405180910390fd5b884211156114775760405162461bcd60e51b8152600401808060200182810382526029815260200180611d146029913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd82338b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b1580156114ff57600080fd5b505af1158015611513573d6000803e3d6000fd5b505050506040513d602081101561152957600080fd5b506115369050818c611ad3565b5050505050505050505050565b6040805160006020808301919091527f4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0828401528251808303840181526060909201909252805191012081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008484604051808383808284376040519201829003822095506000945089935088925087918791506020018085858082843780830192505050836001600160a01b031660601b815260140182815260200194505050505060405160208183030381529060405280519060200120905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630596087b836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561168a57600080fd5b505afa15801561169e573d6000803e3d6000fd5b505050506040513d60208110156116b457600080fd5b5051604080516020601f8a018190048102820181019092528881529192506116f791908990899081908401838280828437600092019190915250610d7892505050565b6117325760405162461bcd60e51b8152600401808060200182810382526021815260200180611d626021913960400191505060405180910390fd5b61177187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610dbb92505050565b6117ac5760405162461bcd60e51b8152600401808060200182810382526035815260200180611d836035913960400191505060405180910390fd5b806117e85760405162461bcd60e51b8152600401808060200182810382526034815260200180611e396034913960400191505060405180910390fd5b4360005482011061182a5760405162461bcd60e51b8152600401808060200182810382526027815260200180611db86027913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635ef2c7f07f000000000000000000000000000000000000000000000000000000000000000085887f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630178b8bf7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561190057600080fd5b505afa158015611914573d6000803e3d6000fd5b505050506040513d602081101561192a57600080fd5b5051604080516316a25cbd60e01b81527f0000000000000000000000000000000000000000000000000000000000000000600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916316a25cbd916024808301926020929190829003018186803b1580156119b257600080fd5b505afa1580156119c6573d6000803e3d6000fd5b505050506040513d60208110156119dc57600080fd5b5051604080516001600160e01b031960e089901b168152600481019690965260248601949094526001600160a01b0392831660448601529116606484015267ffffffffffffffff1660848301525160a480830192600092919082900301818387803b158015611a4a57600080fd5b505af1158015611a5e573d6000803e3d6000fd5b50505050846001600160a01b0316838888604051808383808284376040519201829003822094507f949d23b49bd03f2681389f579003c80eeb63fea84d0c36204dab1be09378521693506000925050a450505050505050565b611ac13382611ad3565b50565b6003546001600160a01b031681565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630596087b826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611b3757600080fd5b505afa158015611b4b573d6000803e3d6000fd5b505050506040513d6020811015611b6157600080fd5b505115611b9f5760405162461bcd60e51b8152600401808060200182810382526023815260200180611cf16023913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166379cc6790836001546040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015611c1857600080fd5b505af1158015611c2c573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f14fcbc8826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611c9657600080fd5b505af1158015611caa573d6000803e3d6000fd5b50506040805184815243602082015281517f3baaebf455ed10db8339f97876751c37beed8e2130e150d2becc59d4c66159e99450908190039091019150a15050565b469056fe5265676973747261723a3a636f6d6d69743a20616c726561647920636f6d6d697465645265676973747261723a3a636f6d6d697442795369673a207369676e617475726520657870697265645265676973747261723a3a636f6d6d697442795369673a20696e76616c6964206e6f6e63655265676973747261723a3a72656769737465723a20696e76616c6964206e616d655265676973747261723a3a72656769737465723a206e616d652068617320616c7265616479206265656e20726567697374657265645265676973747261723a3a72656769737465723a20636f6d6d69746d656e7420746f6f206e65775265676973747261723a3a636f6d6d697442795369673a20696e76616c6964207369676e61747572655265676973747261723a206f6e6c79207468652061646d696e2063616e20706572666f726d207468697320616374696f6e5265676973747261723a3a72656769737465723a206d75737420636f6d6d6974206265666f726520726567697374726174696f6ea26469706673582212202b02813b8da4edf7bd1e75d0e2c662875987f8a06e760cd93107a0998b7811e564736f6c63430007060033608060405234801561001057600080fd5b50600080546001600160a01b0319163317905561025d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630596087b1461005157806313af4035146100805780638da5cb5b146100a8578063f14fcbc8146100cc575b600080fd5b61006e6004803603602081101561006757600080fd5b50356100e9565b60408051918252519081900360200190f35b6100a66004803603602081101561009657600080fd5b50356001600160a01b03166100fb565b005b6100b06101aa565b604080516001600160a01b039092168252519081900360200190f35b6100a6600480360360208110156100e257600080fd5b50356101b9565b60016020526000908152604090205481565b6000546001600160a01b03163314610156576040805162461bcd60e51b815260206004820152601960248201527810dbdb5b5a5d1b595b9d1cce881d5b985d5d1a1bdc9a5e9959603a1b604482015290519081900360640190fd5b600080546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f167d3e9c1016ab80e58802ca9da10ce5c6a0f4debc46a2e7a2cd9e56899a4fb59181900360200190a150565b6000546001600160a01b031681565b6000546001600160a01b03163314610214576040805162461bcd60e51b815260206004820152601960248201527810dbdb5b5a5d1b595b9d1cce881d5b985d5d1a1bdc9a5e9959603a1b604482015290519081900360640190fd5b600090815260016020526040902043905556fea2646970667358221220a31076716b64b8d383a8613f1baace52dd23e0f260e344998b94263e0a2e789964736f6c6343000706003300000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a30000000000000000000000008da8f82d2bbdd896822de723f55d6edf416130ba000000000000000000000000000000000000000000000000000000000000000a1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e641678525cd7219f29885ca710a6a1450472a2a9644a4aa54f766a5a49891f093aa9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80637f5dace5116100f9578063bcb995a511610097578063d28d5bda11610071578063d28d5bda14610629578063d393c87114610631578063f14fcbc8146106b0578063f851a440146106cd576101a9565b8063bcb995a5146105b7578063c3ab4933146105dd578063cc473be314610621576101a9565b80639791c097116100d35780639791c097146103d2578063a3f4df7e1461048c578063aeb8ce9b14610509578063ba83a292146105af576101a9565b80637f5dace5146103495780638d5d2295146103515780638d839ffe146103ca576101a9565b806337479beb11610166578063549ea66311610140578063549ea663146102b0578063704b6c02146102d757806371dafbc9146102fd5780637ecebe0014610323576101a9565b806337479beb1461027c5780633f15457f146102845780634b83562f146102a8576101a9565b8063054fa711146101ae57806317d70f7c146101fd5780631d9273c71461021757806320606b701461023a57806327fc3d1d146102425780632e4c5d901461025f575b600080fd5b6101fb600480360360e08110156101c457600080fd5b508035906001600160a01b036020820135169060408101359060608101359060ff6080820135169060a08101359060c001356106d5565b005b610205610797565b60408051918252519081900360200190f35b6102056004803603604081101561022d57600080fd5b50803590602001356107bb565b6102056107e7565b6101fb6004803603602081101561025857600080fd5b503561080b565b6101fb6004803603602081101561027557600080fd5b503561088f565b610205610913565b61028c610937565b604080516001600160a01b039092168252519081900360200190f35b61020561095b565b6101fb600480360360208110156102c657600080fd5b503567ffffffffffffffff16610961565b6101fb600480360360208110156102ed57600080fd5b50356001600160a01b0316610a9a565b6101fb6004803603602081101561031357600080fd5b50356001600160a01b0316610b37565b6102056004803603602081101561033957600080fd5b50356001600160a01b0316610c6f565b610205610c81565b6101fb60048036036101a081101561036857600080fd5b5080359060208101359060408101359060608101359060ff608082013581169160a08101359160c0820135916001600160a01b0360e0820135169161010082013591610120810135916101408201351690610160810135906101800135610ca5565b610205610d72565b610478600480360360208110156103e857600080fd5b81019060208101813564010000000081111561040357600080fd5b82018360208201111561041557600080fd5b8035906020019184600183028401116401000000008311171561043757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d78945050505050565b604080519115158252519081900360200190f35b610494610d96565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104ce5781810151838201526020016104b6565b50505050905090810190601f1680156104fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104786004803603602081101561051f57600080fd5b81019060208101813564010000000081111561053a57600080fd5b82018360208201111561054c57600080fd5b8035906020019184600183028401116401000000008311171561056e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dbb945050505050565b61028c610e9f565b6101fb600480360360208110156105cd57600080fd5b50356001600160a01b0316610ec3565b6101fb600480360360e08110156105f357600080fd5b5080359060208101359060408101359060608101359060ff6080820135169060a08101359060c001356111e8565b610205611543565b61028c611590565b6101fb6004803603606081101561064757600080fd5b81019060208101813564010000000081111561066257600080fd5b82018360208201111561067457600080fd5b8035906020019184600183028401116401000000008311171561069657600080fd5b91935091506001600160a01b0381351690602001356115b4565b6101fb600480360360208110156106c657600080fd5b5035611ab7565b61028c611ac4565b6040805163d505accf60e01b81526001600160a01b038881166004830152306024830152604482018890526064820187905260ff8616608483015260a4820185905260c4820184905291517f00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a39092169163d505accf9160e48082019260009290919082900301818387803b15801561076c57600080fd5b505af1158015610780573d6000803e3d6000fd5b5050505061078e3388611ad3565b50505050505050565b7f78525cd7219f29885ca710a6a1450472a2a9644a4aa54f766a5a49891f093aa981565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6003546001600160a01b031633146108545760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60018190556040805182815290517f9a4b19759350abf038e619df6da804ddf6c7d73a4d97a82aa1ea30c9ca62fe959181900360200190a150565b6003546001600160a01b031633146108d85760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60008190556040805182815290517f210f9274971b034334309e1fd5829c1b0d08995e62bd36a8b83530d4f0f5ce259181900360200190a150565b7f403889cd76bbba37fc006a28a34b70915227355ee70cf7dd7e62d9282a3e166f81565b7f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e81565b60015481565b6003546001600160a01b031633146109aa5760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60408051630295720760e31b81527f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e6416600482015267ffffffffffffffff8316602482015290516001600160a01b037f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e16916314ab903891604480830192600092919082900301818387803b158015610a4157600080fd5b505af1158015610a55573d6000803e3d6000fd5b50506040805167ffffffffffffffff8516815290517ffc9c008b22e011f6ccd229aa5ac49f4bda529f0f6e7591ed11be63b7fa0a848c9350908190036020019150a150565b6003546001600160a01b03163314610ae35760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b600380546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f7ce7ec0b50378fb6c0186ffb5f48325f6593fcb4ca4386f21861af3129188f5c9181900360200190a150565b6003546001600160a01b03163314610b805760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b7f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e6001600160a01b0316631896f70a7f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e6416836040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015610c1757600080fd5b505af1158015610c2b573d6000803e3d6000fd5b5050604080516001600160a01b038516815290517f9126d3d22dcb1dbfaccf7ae16a8189957e5259f20d952b7acfa778962adb6dc79350908190036020019150a150565b60026020526000908152604090205481565b7f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e641681565b6040805163d505accf60e01b81526001600160a01b038881166004830152306024830152604482018890526064820187905260ff8616608483015260a4820185905260c4820184905291517f00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a39092169163d505accf9160e48082019260009290919082900301818387803b158015610d3c57600080fd5b505af1158015610d50573d6000803e3d6000fd5b50505050610d638d8d8d8d8d8d8d6111e8565b50505050505050505050505050565b60005481565b805160009060028110801590610d8f575060808111155b9392505050565b604051806040016040528060098152602001682932b3b4b9ba3930b960b91b81525081565b8051602082012060009081610df07f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e6416836107bb565b905060006001600160a01b03167f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e6001600160a01b03166302571be3836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d6020811015610e8b57600080fd5b50516001600160a01b031614949350505050565b7f00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a381565b6003546001600160a01b03163314610f0c5760405162461bcd60e51b8152600401808060200182810382526031815260200180611e086031913960400191505060405180910390fd5b60408051600060208083018290527f4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f083850152835180840385018152606084018086528151918301919091206302571be360e01b9091526064840152925190926001600160a01b037f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e16926302571be39260848083019392829003018186803b158015610fb857600080fd5b505afa158015610fcc573d6000803e3d6000fd5b505050506040513d6020811015610fe257600080fd5b505160408051635b0fc9c360e01b81527f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e641660048201526001600160a01b03858116602483015291519293507f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e90911691635b0fc9c39160448082019260009290919082900301818387803b15801561107957600080fd5b505af115801561108d573d6000803e3d6000fd5b5050604080516323b872dd60e01b81523060048201526001600160a01b0386811660248301527f78525cd7219f29885ca710a6a1450472a2a9644a4aa54f766a5a49891f093aa96044830152915191851693506323b872dd925060648082019260009290919082900301818387803b15801561110857600080fd5b505af115801561111c573d6000803e3d6000fd5b505050507f00000000000000000000000072ebe581b84b6e56bc6589fbd4fb7cd1951cf0746001600160a01b03166313af4035836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561118f57600080fd5b505af11580156111a3573d6000803e3d6000fd5b5050604080516001600160a01b038616815290517fcd45874ed6915156c39f29b349cd0bda2e2dc1067781ea0799a0dbcb5da368809350908190036020019150a15050565b6040805180820190915260098152682932b3b4b9ba3930b960b91b60209091015260007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667f237b4bd968dd8bab5e0d673abd9d0e0e6aead9d4d09d6535a789006d3bdc373f611255611cec565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207f403889cd76bbba37fc006a28a34b70915227355ee70cf7dd7e62d9282a3e166f60c084015260e083018c905261010083018b905261012083018a90526101408084018a9052825180850390910181526101608401835280519085012061190160f01b61018085015261018284018290526101a2808501829052835180860390910181526101c285018085528151918701919091206000918290526101e2860180865281905260ff8b1661020287015261022286018a90526102428601899052935192965090949293909260019261026280840193601f198301929081900390910190855afa158015611388573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113da5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ddf6029913960400191505060405180910390fd5b6001600160a01b03811660009081526002602052604090208054600181019091558a146114385760405162461bcd60e51b8152600401808060200182810382526025815260200180611d3d6025913960400191505060405180910390fd5b884211156114775760405162461bcd60e51b8152600401808060200182810382526029815260200180611d146029913960400191505060405180910390fd5b7f00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a36001600160a01b03166323b872dd82338b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b1580156114ff57600080fd5b505af1158015611513573d6000803e3d6000fd5b505050506040513d602081101561152957600080fd5b506115369050818c611ad3565b5050505050505050505050565b6040805160006020808301919091527f4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0828401528251808303840181526060909201909252805191012081565b7f00000000000000000000000072ebe581b84b6e56bc6589fbd4fb7cd1951cf07481565b60008484604051808383808284376040519201829003822095506000945089935088925087918791506020018085858082843780830192505050836001600160a01b031660601b815260140182815260200194505050505060405160208183030381529060405280519060200120905060007f00000000000000000000000072ebe581b84b6e56bc6589fbd4fb7cd1951cf0746001600160a01b0316630596087b836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561168a57600080fd5b505afa15801561169e573d6000803e3d6000fd5b505050506040513d60208110156116b457600080fd5b5051604080516020601f8a018190048102820181019092528881529192506116f791908990899081908401838280828437600092019190915250610d7892505050565b6117325760405162461bcd60e51b8152600401808060200182810382526021815260200180611d626021913960400191505060405180910390fd5b61177187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610dbb92505050565b6117ac5760405162461bcd60e51b8152600401808060200182810382526035815260200180611d836035913960400191505060405180910390fd5b806117e85760405162461bcd60e51b8152600401808060200182810382526034815260200180611e396034913960400191505060405180910390fd5b4360005482011061182a5760405162461bcd60e51b8152600401808060200182810382526027815260200180611db86027913960400191505060405180910390fd5b7f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e6001600160a01b0316635ef2c7f07f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e641685887f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e6001600160a01b0316630178b8bf7f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e64166040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561190057600080fd5b505afa158015611914573d6000803e3d6000fd5b505050506040513d602081101561192a57600080fd5b5051604080516316a25cbd60e01b81527f1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e6416600482015290516001600160a01b037f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e16916316a25cbd916024808301926020929190829003018186803b1580156119b257600080fd5b505afa1580156119c6573d6000803e3d6000fd5b505050506040513d60208110156119dc57600080fd5b5051604080516001600160e01b031960e089901b168152600481019690965260248601949094526001600160a01b0392831660448601529116606484015267ffffffffffffffff1660848301525160a480830192600092919082900301818387803b158015611a4a57600080fd5b505af1158015611a5e573d6000803e3d6000fd5b50505050846001600160a01b0316838888604051808383808284376040519201829003822094507f949d23b49bd03f2681389f579003c80eeb63fea84d0c36204dab1be09378521693506000925050a450505050505050565b611ac13382611ad3565b50565b6003546001600160a01b031681565b7f00000000000000000000000072ebe581b84b6e56bc6589fbd4fb7cd1951cf0746001600160a01b0316630596087b826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611b3757600080fd5b505afa158015611b4b573d6000803e3d6000fd5b505050506040513d6020811015611b6157600080fd5b505115611b9f5760405162461bcd60e51b8152600401808060200182810382526023815260200180611cf16023913960400191505060405180910390fd5b7f00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a36001600160a01b03166379cc6790836001546040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015611c1857600080fd5b505af1158015611c2c573d6000803e3d6000fd5b505050507f00000000000000000000000072ebe581b84b6e56bc6589fbd4fb7cd1951cf0746001600160a01b031663f14fcbc8826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611c9657600080fd5b505af1158015611caa573d6000803e3d6000fd5b50506040805184815243602082015281517f3baaebf455ed10db8339f97876751c37beed8e2130e150d2becc59d4c66159e99450908190039091019150a15050565b469056fe5265676973747261723a3a636f6d6d69743a20616c726561647920636f6d6d697465645265676973747261723a3a636f6d6d697442795369673a207369676e617475726520657870697265645265676973747261723a3a636f6d6d697442795369673a20696e76616c6964206e6f6e63655265676973747261723a3a72656769737465723a20696e76616c6964206e616d655265676973747261723a3a72656769737465723a206e616d652068617320616c7265616479206265656e20726567697374657265645265676973747261723a3a72656769737465723a20636f6d6d69746d656e7420746f6f206e65775265676973747261723a3a636f6d6d697442795369673a20696e76616c6964207369676e61747572655265676973747261723a206f6e6c79207468652061646d696e2063616e20706572666f726d207468697320616374696f6e5265676973747261723a3a72656769737465723a206d75737420636f6d6d6974206265666f726520726567697374726174696f6ea26469706673582212202b02813b8da4edf7bd1e75d0e2c662875987f8a06e760cd93107a0998b7811e564736f6c63430007060033

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

00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a30000000000000000000000008da8f82d2bbdd896822de723f55d6edf416130ba000000000000000000000000000000000000000000000000000000000000000a1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e641678525cd7219f29885ca710a6a1450472a2a9644a4aa54f766a5a49891f093aa9

-----Decoded View---------------
Arg [0] : _ens (address): 0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e
Arg [1] : _rad (address): 0x31c8EAcBFFdD875c74b94b077895Bd78CF1E64A3
Arg [2] : _admin (address): 0x8dA8f82d2BbDd896822de723F55D6EdF416130ba
Arg [3] : _minCommitmentAge (uint256): 10
Arg [4] : _radNode (bytes32): 0x1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e6416
Arg [5] : _tokenId (uint256): 54423064049897013460714120289430826432511030073785605513604228016609354660521

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e
Arg [1] : 00000000000000000000000031c8eacbffdd875c74b94b077895bd78cf1e64a3
Arg [2] : 0000000000000000000000008da8f82d2bbdd896822de723f55d6edf416130ba
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 1e8e223921cb10fa256008149efd13dc5089bb252c6270e8be840a020e2e6416
Arg [5] : 78525cd7219f29885ca710a6a1450472a2a9644a4aa54f766a5a49891f093aa9


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.