ETH Price: $2,503.93 (+3.61%)

Token

Nouns love (NOUN)
 

Overview

Max Total Supply

223 NOUN

Holders

133

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NOUN
0xfe81eea972b83a31520e43b524f40aad3e650126
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NounsToken

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 18 : NounsToken.sol
// SPDX-License-Identifier: GPL-3.0

/// @title The Nouns ERC-721 token

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

pragma solidity ^0.8.6;

import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import { ERC721Checkpointable } from './base/ERC721Checkpointable.sol';
import { INounsDescriptor } from './interfaces/INounsDescriptor.sol';
import { INounsSeeder } from './interfaces/INounsSeeder.sol';
import { INounsToken } from './interfaces/INounsToken.sol';
import { ERC721 } from './base/ERC721.sol';
import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import { IProxyRegistry } from './external/opensea/IProxyRegistry.sol';
import "@openzeppelin/contracts/utils/Strings.sol";


contract NounsToken is INounsToken, Ownable, ERC721Checkpointable {
    using Strings for uint256;

    // nouns fes committee address.
    address public committee;
    
    // The Nouns token URI descriptor
    INounsDescriptor public descriptor;

    // The Nouns token seeder
    INounsSeeder public seeder;

    // The noun seeds
    mapping(uint256 => INounsSeeder.Seed) public seeds;

    // The internal noun ID tracker
    uint256 private _currentNounId;

    // The previous mint time
    uint256 public mintTime;
    
    // Seed data to calculate price
    struct PriceSeed {
        uint256 maxPrice;
        uint256 minPrice;
        uint256 priceDelta;
        uint256 timeDelta;
        uint256 expirationTime;
    }

    // price seed
    PriceSeed public priceSeed;

    // developer address.
    address public developer;
    
    // Mapping from token ID to price
    mapping(uint256 => uint256) private prices;
    
    // OpenSea's Proxy Registry
    IProxyRegistry public immutable proxyRegistry;

    constructor(
        INounsDescriptor _descriptor,
        INounsSeeder _seeder,
        address _developer,
        address _committee,
        PriceSeed memory _priceSeed,
        IProxyRegistry _proxyRegistry
    ) ERC721('Nouns love', 'NOUN') {
        descriptor = _descriptor;
        seeder = _seeder;
        developer = _developer;
        committee = _committee;
        proxyRegistry = _proxyRegistry;

        priceSeed.maxPrice = _priceSeed.maxPrice;
        priceSeed.minPrice = _priceSeed.minPrice;
        priceSeed.priceDelta = _priceSeed.priceDelta;
        priceSeed.timeDelta = _priceSeed.timeDelta;
        priceSeed.expirationTime = _priceSeed.expirationTime;

        mint();
    }

    /**
     * @notice Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator) public view override(IERC721, ERC721) returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading.
        if (proxyRegistry.proxies(owner) == operator) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }

    /**
     * @notice Mint first Noun to the owner,
     * @dev Call _mintTo with the to address(es).
     */
    function mint() public override onlyOwner returns (uint256) {
        require(_currentNounId == 0, 'First mint only'); 
        _mintTo(owner(), _currentNounId++);
        setMintTime();
        return _mintTo(address(this), _currentNounId++);
    }
    /*
     * @notice
     * Buy noun and mint new noun along with a possible developer reward Noun.
     * Developer reward Nouns are minted every 10 Nouns.
     * @dev Call _mintTo with the to address(es).
     */
    function buy(uint256 tokenId) external payable returns (uint256) {
        address from = ownerOf(tokenId);
        address to = msg.sender;
        uint256 currentPrice = price();
        require(from == address(this), 'Owner is not the contract');
        require(tokenId == (_currentNounId - 1), 'Not latest Noun');
        require(msg.value >= currentPrice, 'Must send at least currentPrice');

        prices[tokenId] = msg.value;
        buyTransfer(to, tokenId);
        
        emit NounBought(tokenId, to);
        return _mintNext(address(this));
    }
    /*
     * @notice set previous mint time.
     */
    function setMintTime() private {
        mintTime = block.timestamp;
        emit MintTimeUpdated(mintTime);
    }
    /*
     * @notice get next tokenId.
     */
    function getCurrentToken() external view returns (uint256) {                  
        return _currentNounId;
    }
    /*
     * @notice get previous mint time.
     */
    function getMintTime() external view returns (uint256) {                  
        return mintTime;
    }
    /*
     * @notice maxPrice - (time diff / time step) * price step
     */
    function price() private view returns (uint256) {
        uint256 timeDiff = block.timestamp - mintTime;
        if (timeDiff < priceSeed.timeDelta ) {
            return priceSeed.maxPrice;
        }
        uint256 priceDiff = uint256(timeDiff / priceSeed.timeDelta) * priceSeed.priceDelta;
        if (priceDiff >= priceSeed.maxPrice - priceSeed.minPrice) {
            return priceSeed.minPrice;
        }
        return priceSeed.maxPrice - priceDiff;
    }
    /*
     * @notice anyone can burn a noun after expiration time.
     */
    function burnExpiredToken() public {
        uint256 timeDiff = block.timestamp - mintTime;
        if (timeDiff > priceSeed.expirationTime) {
            burn(_currentNounId - 1);
        }
        _mintNext(address(this));
    }
    
    /**
     * @notice Burn a noun.
     */
    function burn(uint256 nounId) public override onlyOwner {
        require(_exists(nounId), 'NounsToken: URI query for nonexistent token');
        if (_currentNounId - 1 == nounId) {
            _mintNext(address(this));
        }
        _burn(nounId);
        emit NounBurned(nounId);
    }

    /**
     * @notice A distinct Uniform Resource Identifier (URI) for a given asset.
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');
        return dataURI(tokenId);
    }

    /**
     * @notice Similar to `tokenURI`, but always serves a base64 encoded data URI
     * with the JSON contents directly inlined.
     */
    function dataURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');

        string memory nounId = tokenId.toString();
        string memory name = string(abi.encodePacked('Noun lover ', nounId));
        string memory description = string(abi.encodePacked('Noun lover ', nounId, ' is a fun of the Nouns DAO and Nouns Art Festival'));

        return descriptor.genericDataURI(name, description, seeds[tokenId]);
        // return descriptor.dataURI(tokenId, seeds[tokenId]);
    }

    /**
     * @notice Set the nouns fes committee.
     * @dev Only callable by the owner.
     */
    function setCommittee(address _committee) external onlyOwner {
        committee = _committee;
    }
    function _mintNext(address to) internal returns (uint256) {
        if (_currentNounId % 10 == 0) {
            _mintTo(developer, _currentNounId++);
        }
        setMintTime();
        return _mintTo(to, _currentNounId++);
    }
    /**
     * @notice Mint a Noun with `nounId` to the provided `to` address.
     */
    function _mintTo(address to, uint256 nounId) internal returns (uint256) {
        INounsSeeder.Seed memory seed = seeds[nounId] = seeder.generateSeed(nounId, descriptor);

        _mint(owner(), to, nounId);
        emit NounCreated(nounId, seed);

        return nounId;
    }

    /**
     * @notice Transfer eth to committee.
     * @dev Only callable by the Owner.
     */
    function transfer() external onlyOwner {
        address payable payableTo = payable(committee);
        payableTo.transfer(address(this).balance);
    }

    /**
     * @notice Set Price Data.
     * @dev Only callable by the Owner.
     */
    function setPriceData(PriceSeed memory _priceSeed) external onlyOwner {
        require(_priceSeed.maxPrice > _priceSeed.minPrice, 'Max price must be larger than Min Price');
        priceSeed.maxPrice = _priceSeed.maxPrice;
        priceSeed.minPrice = _priceSeed.minPrice;
        priceSeed.priceDelta = _priceSeed.priceDelta;
        priceSeed.timeDelta = _priceSeed.timeDelta;
        priceSeed.expirationTime = _priceSeed.expirationTime;
    }

    /**
     * @notice Get Price Data. 
     */
    function getPriceData() public view returns (PriceSeed memory) {
        return priceSeed;
    }
    /**
     * @notice Get the price of token.
     */
    function tokenPrice(uint256 tokenId) public view returns (uint256) {
        require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');
        return prices[tokenId];
    }
    
    /**
     * @notice Set developer.
     * @dev Only callable by the Owner.
     */
    function setDeveloper(address _developer) external onlyOwner {
        developer = _developer;
    }

}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 18 : ERC721Checkpointable.sol
// SPDX-License-Identifier: BSD-3-Clause

/// @title Vote checkpointing for an ERC-721 token

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

// LICENSE
// ERC721Checkpointable.sol uses and modifies part of Compound Lab's Comp.sol:
// https://github.com/compound-finance/compound-protocol/blob/ae4388e780a8d596d97619d9704a931a2752c2bc/contracts/Governance/Comp.sol
//
// Comp.sol source code Copyright 2020 Compound Labs, Inc. licensed under the BSD-3-Clause license.
// With modifications by Nounders DAO.
//
// Additional conditions of BSD-3-Clause can be found here: https://opensource.org/licenses/BSD-3-Clause
//
// MODIFICATIONS
// Checkpointing logic from Comp.sol has been used with the following modifications:
// - `delegates` is renamed to `_delegates` and is set to private
// - `delegates` is a public function that uses the `_delegates` mapping look-up, but unlike
//   Comp.sol, returns the delegator's own address if there is no delegate.
//   This avoids the delegator needing to "delegate to self" with an additional transaction
// - `_transferTokens()` is renamed `_beforeTokenTransfer()` and adapted to hook into OpenZeppelin's ERC721 hooks.

pragma solidity ^0.8.6;

import './ERC721Enumerable.sol';

abstract contract ERC721Checkpointable is ERC721Enumerable {
    /// @notice Defines decimals as per ERC-20 convention to make integrations with 3rd party governance platforms easier
    uint8 public constant decimals = 0;

    /// @notice A record of each accounts delegate
    mapping(address => address) private _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 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 votes a delegator can delegate, which is the current balance of the delegator.
     * @dev Used when calling `_delegate()`
     */
    function votesToDelegate(address delegator) public view returns (uint96) {
        return safe96(balanceOf(delegator), 'ERC721Checkpointable::votesToDelegate: amount exceeds 96 bits');
    }

    /**
     * @notice Overrides the standard `Comp.sol` delegates mapping to return
     * the delegator's own address if they haven't delegated.
     * This avoids having to delegate to oneself.
     */
    function delegates(address delegator) public view returns (address) {
        address current = _delegates[delegator];
        return current == address(0) ? delegator : current;
    }

    /**
     * @notice Adapted from `_transferTokens()` in `Comp.sol` to update delegate votes.
     * @dev hooks into OpenZeppelin's `ERC721._transfer`
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        super._beforeTokenTransfer(from, to, tokenId);

        /// @notice Differs from `_transferTokens()` to use `delegates` override method to simulate auto-delegation
        _moveDelegates(delegates(from), delegates(to), 1);
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        if (delegatee == address(0)) delegatee = msg.sender;
        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 domainSeparator = keccak256(
            abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this))
        );
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked('\x19\x01', domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), 'ERC721Checkpointable::delegateBySig: invalid signature');
        require(nonce == nonces[signatory]++, 'ERC721Checkpointable::delegateBySig: invalid nonce');
        require(block.timestamp <= expiry, 'ERC721Checkpointable::delegateBySig: signature expired');
        return _delegate(signatory, delegatee);
    }

    /**
     * @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, 'ERC721Checkpointable::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 {
        /// @notice differs from `_delegate()` in `Comp.sol` to use `delegates` override method to simulate auto-delegation
        address currentDelegate = delegates(delegator);

        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        uint96 amount = votesToDelegate(delegator);

        _moveDelegates(currentDelegate, delegatee, 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, 'ERC721Checkpointable::_moveDelegates: 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, 'ERC721Checkpointable::_moveDelegates: amount overflows');
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint96 oldVotes,
        uint96 newVotes
    ) internal {
        uint32 blockNumber = safe32(
            block.number,
            'ERC721Checkpointable::_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 view returns (uint256) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}

File 4 of 18 : INounsDescriptor.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsDescriptor

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

pragma solidity ^0.8.6;

import { INounsSeeder } from './INounsSeeder.sol';

interface INounsDescriptor {
    event PartsLocked();

    event DataURIToggled(bool enabled);

    event BaseURIUpdated(string baseURI);

    function arePartsLocked() external returns (bool);

    function isDataURIEnabled() external returns (bool);

    function baseURI() external returns (string memory);

    function palettes(uint8 paletteIndex, uint256 colorIndex) external view returns (string memory);

    function backgrounds(uint256 index) external view returns (string memory);

    function bodies(uint256 index) external view returns (bytes memory);

    function accessories(uint256 index) external view returns (bytes memory);

    function heads(uint256 index) external view returns (bytes memory);

    function glasses(uint256 index) external view returns (bytes memory);

    function backgroundCount() external view returns (uint256);

    function bodyCount() external view returns (uint256);

    function accessoryCount() external view returns (uint256);

    function headCount() external view returns (uint256);

    function glassesCount() external view returns (uint256);

    function addManyColorsToPalette(uint8 paletteIndex, string[] calldata newColors) external;

    function addManyBackgrounds(string[] calldata backgrounds) external;

    function addManyBodies(bytes[] calldata bodies) external;

    function addManyAccessories(bytes[] calldata accessories) external;

    function addManyHeads(bytes[] calldata heads) external;

    function addManyGlasses(bytes[] calldata glasses) external;

    function addColorToPalette(uint8 paletteIndex, string calldata color) external;

    function addBackground(string calldata background) external;

    function addBody(bytes calldata body) external;

    function addAccessory(bytes calldata accessory) external;

    function addHead(bytes calldata head) external;

    function addGlasses(bytes calldata glasses) external;

    function lockParts() external;

    function toggleDataURIEnabled() external;

    function setBaseURI(string calldata baseURI) external;

    function tokenURI(uint256 tokenId, INounsSeeder.Seed memory seed) external view returns (string memory);

    function dataURI(uint256 tokenId, INounsSeeder.Seed memory seed) external view returns (string memory);

    function genericDataURI(
        string calldata name,
        string calldata description,
        INounsSeeder.Seed memory seed
    ) external view returns (string memory);

    function generateSVGImage(INounsSeeder.Seed memory seed) external view returns (string memory);
}

File 5 of 18 : INounsSeeder.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsSeeder

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

pragma solidity ^0.8.6;

import { INounsDescriptor } from './INounsDescriptor.sol';

interface INounsSeeder {
    struct Seed {
        uint48 background;
        uint48 body;
        uint48 accessory;
        uint48 head;
        uint48 glasses;
    }

    function generateSeed(uint256 nounId, INounsDescriptor descriptor) external view returns (Seed memory);
}

File 6 of 18 : INounsToken.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsToken

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

pragma solidity ^0.8.6;

import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import { INounsDescriptor } from './INounsDescriptor.sol';
import { INounsSeeder } from './INounsSeeder.sol';

interface INounsToken is IERC721 {
    event NounCreated(uint256 indexed tokenId, INounsSeeder.Seed seed);

    event NounBurned(uint256 indexed tokenId);

    event NoundersDAOUpdated(address noundersDAO);

    event NounBought(uint256 indexed tokenId, address newOwner);
    
    event MintTimeUpdated(uint256 mintTime);
    
    function mint() external returns (uint256);

    function burn(uint256 tokenId) external;

    function dataURI(uint256 tokenId) external returns (string memory);

}

File 7 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

/// @title ERC721 Token Implementation

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol
//
// ERC721.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
//
// MODIFICATIONS:
// `_safeMint` and `_mint` contain an additional `creator` argument and
// emit two `Transfer` logs, rather than one. The first log displays the
// transfer (mint) from `address(0)` to the `creator`. The second displays the
// transfer from the `creator` to the `to` address. This enables correct
// attribution on various NFT marketplaces.

pragma solidity ^0.8.6;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/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`, transfers it to `to`, and emits two log events -
     * 1. Credits the `minter` with the mint.
     * 2. Shows transfer from the `minter` 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 creator,
        address to,
        uint256 tokenId
    ) internal virtual {
        _safeMint(creator, 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 creator,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(creator, to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            'ERC721: transfer to non ERC721Receiver implementer'
        );
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to`, and emits two log events -
     * 1. Credits the `creator` with the mint.
     * 2. Shows transfer from the `creator` 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 creator,
        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), creator, tokenId);
        emit Transfer(creator, 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);
    }

    function buyTransfer(
        address to,
        uint256 tokenId
    ) internal virtual {
        address from = address(this);
        require(ERC721.ownerOf(tokenId) == from, 'ERC721: transfer of token that is not address');
        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 8 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 9 of 18 : IProxyRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

interface IProxyRegistry {
    function proxies(address) external view returns (address);
}

File 10 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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 11 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 12 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

/// @title ERC721 Enumerable Extension

/*********************************
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 * β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721Enumerable.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721Enumerable.sol
//
// ERC721Enumerable.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
// MODIFICATIONS:
// Consumes modified `ERC721` contract. See notes in `ERC721.sol`.

pragma solidity ^0.8.0;

import './ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), 'ERC721Enumerable: owner index out of bounds');
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), 'ERC721Enumerable: global index out of bounds');
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 13 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 14 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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 16 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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 17 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract INounsDescriptor","name":"_descriptor","type":"address"},{"internalType":"contract INounsSeeder","name":"_seeder","type":"address"},{"internalType":"address","name":"_developer","type":"address"},{"internalType":"address","name":"_committee","type":"address"},{"components":[{"internalType":"uint256","name":"maxPrice","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"priceDelta","type":"uint256"},{"internalType":"uint256","name":"timeDelta","type":"uint256"},{"internalType":"uint256","name":"expirationTime","type":"uint256"}],"internalType":"struct NounsToken.PriceSeed","name":"_priceSeed","type":"tuple"},{"internalType":"contract IProxyRegistry","name":"_proxyRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintTime","type":"uint256"}],"name":"MintTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"NounBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NounBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint48","name":"background","type":"uint48"},{"internalType":"uint48","name":"body","type":"uint48"},{"internalType":"uint48","name":"accessory","type":"uint48"},{"internalType":"uint48","name":"head","type":"uint48"},{"internalType":"uint48","name":"glasses","type":"uint48"}],"indexed":false,"internalType":"struct INounsSeeder.Seed","name":"seed","type":"tuple"}],"name":"NounCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"noundersDAO","type":"address"}],"name":"NoundersDAOUpdated","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nounId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnExpiredToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"buy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"committee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"contract INounsDescriptor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPriceData","outputs":[{"components":[{"internalType":"uint256","name":"maxPrice","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"priceDelta","type":"uint256"},{"internalType":"uint256","name":"timeDelta","type":"uint256"},{"internalType":"uint256","name":"expirationTime","type":"uint256"}],"internalType":"struct NounsToken.PriceSeed","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceSeed","outputs":[{"internalType":"uint256","name":"maxPrice","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"priceDelta","type":"uint256"},{"internalType":"uint256","name":"timeDelta","type":"uint256"},{"internalType":"uint256","name":"expirationTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"contract IProxyRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seeder","outputs":[{"internalType":"contract INounsSeeder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","outputs":[{"internalType":"uint48","name":"background","type":"uint48"},{"internalType":"uint48","name":"body","type":"uint48"},{"internalType":"uint48","name":"accessory","type":"uint48"},{"internalType":"uint48","name":"head","type":"uint48"},{"internalType":"uint48","name":"glasses","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_committee","type":"address"}],"name":"setCommittee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_developer","type":"address"}],"name":"setDeveloper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"maxPrice","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"priceDelta","type":"uint256"},{"internalType":"uint256","name":"timeDelta","type":"uint256"},{"internalType":"uint256","name":"expirationTime","type":"uint256"}],"internalType":"struct NounsToken.PriceSeed","name":"_priceSeed","type":"tuple"}],"name":"setPriceData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"votesToDelegate","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b506040516200588138038062005881833981016040819052620000349162000f70565b6040518060400160405280600a8152602001694e6f756e73206c6f766560b01b815250604051806040016040528060048152602001632727aaa760e11b8152506200008e620000886200015360201b60201c565b62000157565b8151620000a390600190602085019062000ea1565b508051620000b990600290602084019062000ea1565b5050601080546001600160a01b03199081166001600160a01b038a811691909117909255601180548216898416179055601a80548216888416179055600f805490911691861691909117905550606081811b6001600160601b03191660809081528351601555602084015160165560408401516017559083015160185582015160195562000146620001a7565b50505050505050620012fb565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080546001600160a01b03163314620002085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601354156200024c5760405162461bcd60e51b815260206004820152600f60248201526e4669727374206d696e74206f6e6c7960881b6044820152606401620001ff565b6200027f620002636000546001600160a01b031690565b60138054906000620002758362001282565b90915550620002a8565b506200028a620004c3565b60138054620002a3913091906000620002758362001282565b905090565b60115460105460405163422e2e9960e01b8152600481018490526001600160a01b0391821660248201526000928392169063422e2e999060440160a06040518083038186803b158015620002fb57600080fd5b505afa15801562000310573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200033691906200103f565b6000848152601260209081526040918290208351815485840151868601516060808901516080998a015165ffffffffffff9687166001600160601b0319909616959095176601000000000000948716850217600160601b600160c01b0319166c01000000000000000000000000938716840265ffffffffffff60901b191617600160901b91871682021765ffffffffffff60c01b198116600160c01b9688168702908117988990558a5160a081018c5291881690881617815293870486169784019790975290850484169682019690965293830482169484019490945292900490911691810191909152905062000441620004396000546001600160a01b031690565b8585620004fe565b827f1106ee9d020bfbb5ee34cf5535a5fbf024a011bd130078088cbf124ab309247882604051620004b39190815165ffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b60405180910390a2509092915050565b4260148190556040519081527f821964bd9a1d2293691ad21ae7e91848254493a40c1c13fc88e032e6a14a94c99060200160405180910390a1565b6001600160a01b038216620005565760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001ff565b6000818152600360205260409020546001600160a01b031615620005bd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001ff565b620005cb600083836200067a565b6001600160a01b0382166000908152600460205260408120805460019290620005f690849062001175565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691906000805160206200582a833981519152908290a480826001600160a01b0316846001600160a01b03166000805160206200582a83398151915260405160405180910390a4505050565b62000692838383620006b960201b620024f91760201c565b620006b4620006a18462000795565b620006ac8462000795565b6001620007c9565b505050565b620006d1838383620006b460201b62000e091760201c565b6001600160a01b0383166200072f576200072981600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b62000755565b816001600160a01b0316836001600160a01b031614620007555762000755838262000995565b6001600160a01b0382166200076f57620006b48162000a42565b826001600160a01b0316826001600160a01b031614620006b457620006b4828262000afc565b6001600160a01b038082166000908152600b60205260408120549091168015620007c05780620007c2565b825b9392505050565b816001600160a01b0316836001600160a01b031614158015620007f557506000816001600160601b0316115b15620006b4576001600160a01b03831615620008c6576001600160a01b0383166000908152600d602052604081205463ffffffff1690816200083957600062000888565b6001600160a01b0385166000908152600c60205260408120906200085f600185620011fa565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000620008b282856040518060600160405280603781526020016200584a6037913962000b4d565b9050620008c28684848462000b9c565b5050505b6001600160a01b03821615620006b4576001600160a01b0382166000908152600d602052604081205463ffffffff1690816200090457600062000953565b6001600160a01b0384166000908152600c60205260408120906200092a600185620011fa565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b905060006200097d8285604051806060016040528060368152602001620057b06036913962000d93565b90506200098d8584848462000b9c565b505050505050565b60006001620009af8462000de560201b620014bf1760201c565b620009bb9190620011e0565b60008381526008602052604090205490915080821462000a0f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009062000a5690600190620011e0565b6000838152600a60205260408120546009805493945090928490811062000a815762000a81620012cc565b90600052602060002001549050806009838154811062000aa55762000aa5620012cc565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548062000ae05762000ae0620012b6565b6001900381819060005260206000200160009055905550505050565b600062000b148362000de560201b620014bf1760201c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6000836001600160601b0316836001600160601b03161115829062000b875760405162461bcd60e51b8152600401620001ff9190620010e6565b5062000b94838562001222565b949350505050565b600062000bc343604051806080016040528060448152602001620057e66044913962000e6e565b905060008463ffffffff1611801562000c2057506001600160a01b0385166000908152600c6020526040812063ffffffff83169162000c04600188620011fa565b63ffffffff908116825260208201929092526040016000205416145b1562000c93576001600160a01b0385166000908152600c60205260408120839162000c4d600188620011fa565b63ffffffff168152602081019190915260400160002080546001600160601b039290921664010000000002600160201b600160801b031990921691909117905562000d3e565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600c82528681208b8616825290915294909420925183549451909116640100000000026001600160801b031990941691161791909117905562000d0d84600162001190565b6001600160a01b0386166000908152600d60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008062000da28486620011bb565b9050846001600160601b0316816001600160601b03161015839062000ddc5760405162461bcd60e51b8152600401620001ff9190620010e6565b50949350505050565b60006001600160a01b03821662000e525760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401620001ff565b506001600160a01b031660009081526004602052604090205490565b600081640100000000841062000e995760405162461bcd60e51b8152600401620001ff9190620010e6565b509192915050565b82805462000eaf9062001245565b90600052602060002090601f01602090048101928262000ed3576000855562000f1e565b82601f1062000eee57805160ff191683800117855562000f1e565b8280016001018555821562000f1e579182015b8281111562000f1e57825182559160200191906001019062000f01565b5062000f2c92915062000f30565b5090565b5b8082111562000f2c576000815560010162000f31565b805162000f5481620012e2565b919050565b805165ffffffffffff8116811462000f5457600080fd5b60008060008060008086880361014081121562000f8c57600080fd5b875162000f9981620012e2565b602089015190975062000fac81620012e2565b604089015190965062000fbf81620012e2565b606089015190955062000fd281620012e2565b935060a0607f198201121562000fe757600080fd5b5062000ff26200113e565b608088810151825260a0890151602083015260c0890151604083015260e0890151606083015261010089015190820152915062001033610120880162000f47565b90509295509295509295565b600060a082840312156200105257600080fd5b60405160a081016001600160401b03811182821017156200108357634e487b7160e01b600052604160045260246000fd5b604052620010918362000f59565b8152620010a16020840162000f59565b6020820152620010b46040840162000f59565b6040820152620010c76060840162000f59565b6060820152620010da6080840162000f59565b60808201529392505050565b600060208083528351808285015260005b818110156200111557858101830151858201604001528201620010f7565b8181111562001128576000604083870101525b50601f01601f1916929092016040019392505050565b60405160a081016001600160401b03811182821017156200116f57634e487b7160e01b600052604160045260246000fd5b60405290565b600082198211156200118b576200118b620012a0565b500190565b600063ffffffff808316818516808303821115620011b257620011b2620012a0565b01949350505050565b60006001600160601b03828116848216808303821115620011b257620011b2620012a0565b600082821015620011f557620011f5620012a0565b500390565b600063ffffffff838116908316818110156200121a576200121a620012a0565b039392505050565b60006001600160601b03838116908316818110156200121a576200121a620012a0565b600181811c908216806200125a57607f821691505b602082108114156200127c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620012995762001299620012a0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114620012f857600080fd5b50565b60805160601c61448f620013216000396000818161086601526122df015261448f6000f3fe60806040526004361061033f5760003560e01c80637ecebe00116101b0578063c87b56dd116100ec578063e9580e9111610095578063f0503e801161006f578063f0503e8014610a04578063f1127ed814610ab7578063f2fde38b14610b2c578063ff70fa4914610b4c57600080fd5b8063e9580e91146109af578063e985e9c5146109cf578063ef2d1746146109ef57600080fd5b8063d864e740116100c6578063d864e74014610948578063d96a094a14610968578063e7a324dc1461097b57600080fd5b8063c87b56dd146108e8578063ca4b208b14610908578063d4ddce8a1461092857600080fd5b8063a22cb46511610159578063b50cbd9f11610133578063b50cbd9f14610854578063b88d4fde14610888578063bddae40e146108a8578063c3cda520146108c857600080fd5b8063a22cb465146107bd578063a4a28168146107dd578063b4b5ea571461083457600080fd5b80638a4068dd1161018a5780638a4068dd146107755780638da5cb5b1461078a57806395d89b41146107a857600080fd5b80637ecebe0014610712578063864781221461073f578063864a28ec1461075557600080fd5b8063313ce5671161027f5780635c19a95c116102285780636fcfff45116102025780636fcfff451461065d57806370a08231146106a5578063715018a6146106c5578063782d6fe1146106da57600080fd5b80635c19a95c146105fd5780636352211e1461061d578063684931ed1461063d57600080fd5b80634f6ccce7116102595780634f6ccce71461059d578063587cde1e146105bd5780635ac1e3bb146105dd57600080fd5b8063313ce5671461053657806342842e0e1461055d57806342966c681461057d57600080fd5b80631249c58b116102ec57806323b872dd116102c657806323b872dd146104c15780632f745c59146104e1578063303e74df146105015780633053ea2b1461052157600080fd5b80631249c58b1461046357806318160ddd1461047857806320606b701461048d57600080fd5b806306fdde031161031d57806306fdde03146103e7578063081812fc14610409578063095ea7b31461044157600080fd5b806301ffc9a714610344578063026833c71461037957806303e65c96146103c8575b600080fd5b34801561035057600080fd5b5061036461035f366004613d88565b610b6c565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b506015546016546017546018546019546103a0949392919085565b604080519586526020860194909452928401919091526060830152608082015260a001610370565b3480156103d457600080fd5b506014545b604051908152602001610370565b3480156103f357600080fd5b506103fc610bb0565b6040516103709190614024565b34801561041557600080fd5b50610429610424366004613ef0565b610c42565b6040516001600160a01b039091168152602001610370565b34801561044d57600080fd5b5061046161045c366004613cc3565b610cdc565b005b34801561046f57600080fd5b506103d9610e0e565b34801561048457600080fd5b506009546103d9565b34801561049957600080fd5b506103d97f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b3480156104cd57600080fd5b506104616104dc366004613ba0565b610f0b565b3480156104ed57600080fd5b506103d96104fc366004613cc3565b610f92565b34801561050d57600080fd5b50601054610429906001600160a01b031681565b34801561052d57600080fd5b5061046161103a565b34801561054257600080fd5b5061054b600081565b60405160ff9091168152602001610370565b34801561056957600080fd5b50610461610578366004613ba0565b611076565b34801561058957600080fd5b50610461610598366004613ef0565b611091565b3480156105a957600080fd5b506103d96105b8366004613ef0565b6111bb565b3480156105c957600080fd5b506104296105d8366004613b2d565b61125f565b3480156105e957600080fd5b506103fc6105f8366004613ef0565b611291565b34801561060957600080fd5b50610461610618366004613b2d565b611416565b34801561062957600080fd5b50610429610638366004613ef0565b611434565b34801561064957600080fd5b50601154610429906001600160a01b031681565b34801561066957600080fd5b50610690610678366004613b2d565b600d6020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610370565b3480156106b157600080fd5b506103d96106c0366004613b2d565b6114bf565b3480156106d157600080fd5b50610461611559565b3480156106e657600080fd5b506106fa6106f5366004613cc3565b6115bf565b6040516001600160601b039091168152602001610370565b34801561071e57600080fd5b506103d961072d366004613b2d565b600e6020526000908152604090205481565b34801561074b57600080fd5b506103d960145481565b34801561076157600080fd5b50610461610770366004613e30565b61185f565b34801561078157600080fd5b50610461611959565b34801561079657600080fd5b506000546001600160a01b0316610429565b3480156107b457600080fd5b506103fc6119ee565b3480156107c957600080fd5b506104616107d8366004613c90565b6119fd565b3480156107e957600080fd5b506107f2611ac2565b6040516103709190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b34801561084057600080fd5b506106fa61084f366004613b2d565b611b29565b34801561086057600080fd5b506104297f000000000000000000000000000000000000000000000000000000000000000081565b34801561089457600080fd5b506104616108a3366004613be1565b611ba7565b3480156108b457600080fd5b506104616108c3366004613b2d565b611c35565b3480156108d457600080fd5b506104616108e3366004613cef565b611cb1565b3480156108f457600080fd5b506103fc610903366004613ef0565b611fe3565b34801561091457600080fd5b50601a54610429906001600160a01b031681565b34801561093457600080fd5b506103d9610943366004613ef0565b612067565b34801561095457600080fd5b50600f54610429906001600160a01b031681565b6103d9610976366004613ef0565b6120f2565b34801561098757600080fd5b506103d97fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b3480156109bb57600080fd5b506106fa6109ca366004613b2d565b612274565b3480156109db57600080fd5b506103646109ea366004613b67565b6122a0565b3480156109fb57600080fd5b506013546103d9565b348015610a1057600080fd5b50610a7e610a1f366004613ef0565b60126020526000908152604090205465ffffffffffff80821691660100000000000081048216916c01000000000000000000000000820481169172010000000000000000000000000000000000008104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a001610370565b348015610ac357600080fd5b50610b08610ad2366004613d51565b600c60209081526000928352604080842090915290825290205463ffffffff81169064010000000090046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610370565b348015610b3857600080fd5b50610461610b47366004613b2d565b61239e565b348015610b5857600080fd5b50610461610b67366004613b2d565b61247d565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610baa5750610baa826125b1565b92915050565b606060018054610bbf90614268565b80601f0160208091040260200160405190810160405280929190818152602001828054610beb90614268565b8015610c385780601f10610c0d57610100808354040283529160200191610c38565b820191906000526020600020905b815481529060010190602001808311610c1b57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610cc05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610ce782611434565b9050806001600160a01b0316836001600160a01b03161415610d715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b336001600160a01b0382161480610d8d5750610d8d81336122a0565b610dff5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cb7565b610e09838361264c565b505050565b600080546001600160a01b03163314610e695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b60135415610eb95760405162461bcd60e51b815260206004820152600f60248201527f4669727374206d696e74206f6e6c7900000000000000000000000000000000006044820152606401610cb7565b610ee7610ece6000546001600160a01b031690565b60138054906000610ede836142a3565b919050556126ba565b50610ef0612932565b60138054610f06913091906000610ede836142a3565b905090565b610f15338261296d565b610f875760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb7565b610e09838383612a44565b6000610f9d836114bf565b82106110115760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610cb7565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60006014544261104a91906141e0565b60195490915081111561106957611069600160135461059891906141e0565b61107230612c03565b5050565b610e0983838360405180602001604052806000815250611ba7565b6000546001600160a01b031633146110eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b6000818152600360205260409020546001600160a01b03166111635760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b80600160135461117391906141e0565b14156111845761118230612c03565b505b61118d81612c58565b60405181907f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986390600090a250565b60006111c660095490565b821061123a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610cb7565b6009828154811061124d5761124d614314565b90600052602060002001549050919050565b6001600160a01b038082166000908152600b60205260408120549091168015611288578061128a565b825b9392505050565b6000818152600360205260409020546060906001600160a01b031661130c5760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b600061131783612cff565b905060008160405160200161132c9190613f35565b60405160208183030381529060405290506000826040516020016113509190613f68565b60408051601f1981840301815282825260105460008981526012602052929092207f87db11bd0000000000000000000000000000000000000000000000000000000084529093506001600160a01b03909116916387db11bd916113b99186918691600401614037565b60006040518083038186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261140d9190810190613dc2565b95945050505050565b6001600160a01b0381166114275750335b6114313382612e31565b50565b6000818152600360205260408120546001600160a01b031680610baa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610cb7565b60006001600160a01b03821661153d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610cb7565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146115b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b6115bd6000612eb1565b565b60004382106116365760405162461bcd60e51b815260206004820152603760248201527f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60448201527f7465733a206e6f74207965742064657465726d696e65640000000000000000006064820152608401610cb7565b6001600160a01b0383166000908152600d602052604090205463ffffffff1680611664576000915050610baa565b6001600160a01b0384166000908152600c6020526040812084916116896001856141f7565b63ffffffff908116825260208201929092526040016000205416116116fd576001600160a01b0384166000908152600c60205260408120906116cc6001846141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03169150610baa9050565b6001600160a01b0384166000908152600c6020908152604080832083805290915290205463ffffffff16831015611738576000915050610baa565b6000806117466001846141f7565b90505b8163ffffffff168163ffffffff161115611819576000600261176b84846141f7565b611775919061419e565b61177f90836141f7565b6001600160a01b0388166000908152600c6020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046001600160601b0316918101919091529192508714156117ed57602001519450610baa9350505050565b805163ffffffff1687111561180457819350611812565b61180f6001836141f7565b92505b5050611749565b506001600160a01b0385166000908152600c6020908152604080832063ffffffff909416835292905220546001600160601b036401000000009091041691505092915050565b6000546001600160a01b031633146118b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b60208101518151116119335760405162461bcd60e51b815260206004820152602760248201527f4d6178207072696365206d757374206265206c6172676572207468616e204d6960448201527f6e205072696365000000000000000000000000000000000000000000000000006064820152608401610cb7565b805160155560208101516016556040810151601755606081015160185560800151601955565b6000546001600160a01b031633146119b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b600f546040516001600160a01b039091169081904780156108fc02916000818181858888f19350505050158015611072573d6000803e3d6000fd5b606060028054610bbf90614268565b6001600160a01b038216331415611a565760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb7565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611af46040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a08101825260155481526016546020820152601754918101919091526018546060820152601954608082015290565b6001600160a01b0381166000908152600d602052604081205463ffffffff1680611b5457600061128a565b6001600160a01b0383166000908152600c6020526040812090611b786001846141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03169392505050565b611bb1338361296d565b611c235760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb7565b611c2f84848484612f01565b50505050565b6000546001600160a01b03163314611c8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611cdc610bb0565b80519060200120611cea4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401909252815191909301207f1901000000000000000000000000000000000000000000000000000000000000610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611e31573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611eba5760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527f5369673a20696e76616c6964207369676e6174757265000000000000000000006064820152608401610cb7565b6001600160a01b0381166000908152600e60205260408120805491611ede836142a3565b919050558914611f565760405162461bcd60e51b815260206004820152603260248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527f5369673a20696e76616c6964206e6f6e636500000000000000000000000000006064820152608401610cb7565b87421115611fcc5760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527f5369673a207369676e61747572652065787069726564000000000000000000006064820152608401610cb7565b611fd6818b612e31565b505050505b505050505050565b6000818152600360205260409020546060906001600160a01b031661205e5760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b610baa82611291565b6000818152600360205260408120546001600160a01b03166120df5760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b506000908152601b602052604090205490565b6000806120fe83611434565b905033600061210b612f8a565b90506001600160a01b03831630146121655760405162461bcd60e51b815260206004820152601960248201527f4f776e6572206973206e6f742074686520636f6e7472616374000000000000006044820152606401610cb7565b600160135461217491906141e0565b85146121c25760405162461bcd60e51b815260206004820152600f60248201527f4e6f74206c6174657374204e6f756e00000000000000000000000000000000006044820152606401610cb7565b803410156122125760405162461bcd60e51b815260206004820152601f60248201527f4d7573742073656e64206174206c656173742063757272656e745072696365006044820152606401610cb7565b6000858152601b6020526040902034905561222d8286613005565b6040516001600160a01b038316815285907ff3919fe9a709ec82fb9fd1c54a2af7cf717bfe52a6c9b1f1ed8ea42d52ba392f9060200160405180910390a261140d30612c03565b6000610baa612282836114bf565b6040518060600160405280603d81526020016143e6603d91396131b1565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c45527919060240160206040518083038186803b15801561232157600080fd5b505afa158015612335573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123599190613b4a565b6001600160a01b0316141561237057506001610baa565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff1661128a565b6000546001600160a01b031633146123f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b6001600160a01b0381166124745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cb7565b61143181612eb1565b6000546001600160a01b031633146124d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166125545761254f81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612577565b816001600160a01b0316836001600160a01b0316146125775761257783826131e9565b6001600160a01b03821661258e57610e0981613286565b826001600160a01b0316826001600160a01b031614610e0957610e098282613335565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061261457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610baa57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610baa565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061268182611434565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6011546010546040517f422e2e99000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0391821660248201526000928392169063422e2e999060440160a06040518083038186803b15801561272557600080fd5b505afa158015612739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275d9190613e80565b60008481526012602090815260408083208451815486850151878501516060808a015160809a8b015165ffffffffffff9687166bffffffffffffffffffffffff199096169590951766010000000000009487168502177fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff166c0100000000000000000000000093871684027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff161772010000000000000000000000000000000000009187168202177fffff000000000000ffffffffffffffffffffffffffffffffffffffffffffffff8116600160c01b968816870290811798899055895160a081018b529188169088161781529387048616988401989098529085048416958201959095529483048216938501939093529190041692810192909252549091506128b1906001600160a01b03168585613379565b827f1106ee9d020bfbb5ee34cf5535a5fbf024a011bd130078088cbf124ab3092478826040516129229190815165ffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b60405180910390a2509092915050565b4260148190556040519081527f821964bd9a1d2293691ad21ae7e91848254493a40c1c13fc88e032e6a14a94c99060200160405180910390a1565b6000818152600360205260408120546001600160a01b03166129e65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cb7565b60006129f183611434565b9050806001600160a01b0316846001600160a01b03161480612a2c5750836001600160a01b0316612a2184610c42565b6001600160a01b0316145b80612a3c5750612a3c81856122a0565b949350505050565b826001600160a01b0316612a5782611434565b6001600160a01b031614612ad35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610cb7565b6001600160a01b038216612b355760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb7565b612b4083838361350f565b612b4b60008261264c565b6001600160a01b0383166000908152600460205260408120805460019290612b749084906141e0565b90915550506001600160a01b0382166000908152600460205260408120805460019290612ba2908490614128565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000600a601354612c1491906142be565b612c3a57601a5460138054612c38926001600160a01b0316916000610ede836142a3565b505b612c42612932565b60138054610baa918491906000610ede836142a3565b6000612c6382611434565b9050612c718160008461350f565b612c7c60008361264c565b6001600160a01b0381166000908152600460205260408120805460019290612ca59084906141e0565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081612d3f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612d695780612d53816142a3565b9150612d629050600a8361418a565b9150612d43565b60008167ffffffffffffffff811115612d8457612d8461432a565b6040519080825280601f01601f191660200182016040528015612dae576020820181803683370190505b5090505b8415612a3c57612dc36001836141e0565b9150612dd0600a866142be565b612ddb906030614128565b60f81b818381518110612df057612df0614314565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612e2a600a8661418a565b9450612db2565b6000612e3c8361125f565b6001600160a01b038481166000818152600b602052604080822080546001600160a01b031916888616908117909155905194955093928516927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46000612ea484612274565b9050611c2f828483613532565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612f0c848484612a44565b612f18848484846136e0565b611c2f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb7565b60008060145442612f9b91906141e0565b601854909150811015612fb057505060155490565b60175460185460009190612fc4908461418a565b612fce91906141c1565b601654601554919250612fe0916141e0565b8110612ff0575050601654919050565b601554612ffe9082906141e0565b9250505090565b308061301083611434565b6001600160a01b03161461308c5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f742061646472657373000000000000000000000000000000000000006064820152608401610cb7565b6001600160a01b0383166130ee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb7565b6130f981848461350f565b6001600160a01b03811660009081526004602052604081208054600192906131229084906141e0565b90915550506001600160a01b0383166000908152600460205260408120805460019290613150908490614128565b909155505060008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000816c0100000000000000000000000084106131e15760405162461bcd60e51b8152600401610cb79190614024565b509192915050565b600060016131f6846114bf565b61320091906141e0565b600083815260086020526040902054909150808214613253576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613298906001906141e0565b6000838152600a6020526040812054600980549394509092849081106132c0576132c0614314565b9060005260206000200154905080600983815481106132e1576132e1614314565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613319576133196142fe565b6001900381819060005260206000200160009055905550505050565b6000613340836114bf565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166133cf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb7565b6000818152600360205260409020546001600160a01b0316156134345760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb7565b6134406000838361350f565b6001600160a01b0382166000908152600460205260408120805460019290613469908490614128565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61351a8383836124f9565b610e096135268461125f565b61352f8461125f565b60015b816001600160a01b0316836001600160a01b03161415801561355d57506000816001600160601b0316115b15610e09576001600160a01b03831615613623576001600160a01b0383166000908152600d602052604081205463ffffffff16908161359d5760006135ea565b6001600160a01b0385166000908152600c60205260408120906135c16001856141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000613611828560405180606001604052806037815260200161442360379139613843565b905061361f86848484613885565b5050505b6001600160a01b03821615610e09576001600160a01b0382166000908152600d602052604081205463ffffffff16908161365e5760006136ab565b6001600160a01b0384166000908152600c60205260408120906136826001856141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b905060006136d2828560405180606001604052806036815260200161436c60369139613a9d565b9050611fdb85848484613885565b60006001600160a01b0384163b1561383857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613724903390899088908890600401613fe8565b602060405180830381600087803b15801561373e57600080fd5b505af192505050801561376e575060408051601f3d908101601f1916820190925261376b91810190613da5565b60015b61381e573d80801561379c576040519150601f19603f3d011682016040523d82523d6000602084013e6137a1565b606091505b5080516138165760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a3c565b506001949350505050565b6000836001600160601b0316836001600160601b03161115829061387a5760405162461bcd60e51b8152600401610cb79190614024565b50612a3c838561421c565b60006138a9436040518060800160405280604481526020016143a260449139613aea565b905060008463ffffffff1611801561390357506001600160a01b0385166000908152600c6020526040812063ffffffff8316916138e76001886141f7565b63ffffffff908116825260208201929092526040016000205416145b15613987576001600160a01b0385166000908152600c60205260408120839161392d6001886141f7565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216640100000000027fffffffffffffffffffffffffffffffff000000000000000000000000ffffffff909216919091179055613a48565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600c82528681208b8616825290915294909420925183549451909116640100000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909416911617919091179055613a17846001614140565b6001600160a01b0386166000908152600d60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600080613aaa8486614168565b9050846001600160601b0316816001600160601b031610158390613ae15760405162461bcd60e51b8152600401610cb79190614024565b50949350505050565b60008164010000000084106131e15760405162461bcd60e51b8152600401610cb79190614024565b805165ffffffffffff81168114613b2857600080fd5b919050565b600060208284031215613b3f57600080fd5b813561128a81614340565b600060208284031215613b5c57600080fd5b815161128a81614340565b60008060408385031215613b7a57600080fd5b8235613b8581614340565b91506020830135613b9581614340565b809150509250929050565b600080600060608486031215613bb557600080fd5b8335613bc081614340565b92506020840135613bd081614340565b929592945050506040919091013590565b60008060008060808587031215613bf757600080fd5b8435613c0281614340565b93506020850135613c1281614340565b925060408501359150606085013567ffffffffffffffff811115613c3557600080fd5b8501601f81018713613c4657600080fd5b8035613c59613c5482614100565b6140cf565b818152886020838501011115613c6e57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215613ca357600080fd5b8235613cae81614340565b915060208301358015158114613b9557600080fd5b60008060408385031215613cd657600080fd5b8235613ce181614340565b946020939093013593505050565b60008060008060008060c08789031215613d0857600080fd5b8635613d1381614340565b95506020870135945060408701359350606087013560ff81168114613d3757600080fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215613d6457600080fd5b8235613d6f81614340565b9150602083013563ffffffff81168114613b9557600080fd5b600060208284031215613d9a57600080fd5b813561128a81614355565b600060208284031215613db757600080fd5b815161128a81614355565b600060208284031215613dd457600080fd5b815167ffffffffffffffff811115613deb57600080fd5b8201601f81018413613dfc57600080fd5b8051613e0a613c5482614100565b818152856020838501011115613e1f57600080fd5b61140d82602083016020860161423c565b600060a08284031215613e4257600080fd5b613e4a6140a6565b82358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b600060a08284031215613e9257600080fd5b613e9a6140a6565b613ea383613b12565b8152613eb160208401613b12565b6020820152613ec260408401613b12565b6040820152613ed360608401613b12565b6060820152613ee460808401613b12565b60808201529392505050565b600060208284031215613f0257600080fd5b5035919050565b60008151808452613f2181602086016020860161423c565b601f01601f19169290920160200192915050565b6a02737bab7103637bb32b9160ad1b815260008251613f5b81600b85016020870161423c565b91909101600b0192915050565b6a02737bab7103637bb32b9160ad1b815260008251613f8e81600b85016020870161423c565b7f20697320612066756e206f6620746865204e6f756e732044414f20616e64204e600b9390910192830152507f6f756e732041727420466573746976616c000000000000000000000000000000602b820152603c01919050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261401a6080830184613f09565b9695505050505050565b60208152600061128a6020830184613f09565b60e08152600061404a60e0830186613f09565b828103602084015261405c8186613f09565b915050825465ffffffffffff8082166040850152808260301c166060850152808260601c166080850152808260901c1660a0850152808260c01c1660c08501525050949350505050565b60405160a0810167ffffffffffffffff811182821017156140c9576140c961432a565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156140f8576140f861432a565b604052919050565b600067ffffffffffffffff82111561411a5761411a61432a565b50601f01601f191660200190565b6000821982111561413b5761413b6142d2565b500190565b600063ffffffff80831681851680830382111561415f5761415f6142d2565b01949350505050565b60006001600160601b0380831681851680830382111561415f5761415f6142d2565b600082614199576141996142e8565b500490565b600063ffffffff808416806141b5576141b56142e8565b92169190910492915050565b60008160001904831182151516156141db576141db6142d2565b500290565b6000828210156141f2576141f26142d2565b500390565b600063ffffffff83811690831681811015614214576142146142d2565b039392505050565b60006001600160601b0383811690831681811015614214576142146142d2565b60005b8381101561425757818101518382015260200161423f565b83811115611c2f5750506000910152565b600181811c9082168061427c57607f821691505b6020821081141561429d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142b7576142b76142d2565b5060010190565b6000826142cd576142cd6142e8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461143157600080fd5b6001600160e01b03198116811461143157600080fdfe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a26469706673582212203492b93c6d9ac40aba5dcd6bf705a0903f40c689299b75b90b65d9eb0c9bca6464736f6c63430008060033455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f77730000000000000000000000000cfdb3ba1694c2bb2cfacb0339ad7b1ae5932b63000000000000000000000000cc8a0fb5ab3c7132c1b2a0109142fb112c4ce515000000000000000000000000818fb9d440968db9fcb06eef53c7734ad70f6f0e0000000000000000000000004e4cd175f812f1ba784a69c1f8ac8daa52ad7e2b000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000002d79883d20000000000000000000000000000000000000000000000000000000886c98b76000000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000001518000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x60806040526004361061033f5760003560e01c80637ecebe00116101b0578063c87b56dd116100ec578063e9580e9111610095578063f0503e801161006f578063f0503e8014610a04578063f1127ed814610ab7578063f2fde38b14610b2c578063ff70fa4914610b4c57600080fd5b8063e9580e91146109af578063e985e9c5146109cf578063ef2d1746146109ef57600080fd5b8063d864e740116100c6578063d864e74014610948578063d96a094a14610968578063e7a324dc1461097b57600080fd5b8063c87b56dd146108e8578063ca4b208b14610908578063d4ddce8a1461092857600080fd5b8063a22cb46511610159578063b50cbd9f11610133578063b50cbd9f14610854578063b88d4fde14610888578063bddae40e146108a8578063c3cda520146108c857600080fd5b8063a22cb465146107bd578063a4a28168146107dd578063b4b5ea571461083457600080fd5b80638a4068dd1161018a5780638a4068dd146107755780638da5cb5b1461078a57806395d89b41146107a857600080fd5b80637ecebe0014610712578063864781221461073f578063864a28ec1461075557600080fd5b8063313ce5671161027f5780635c19a95c116102285780636fcfff45116102025780636fcfff451461065d57806370a08231146106a5578063715018a6146106c5578063782d6fe1146106da57600080fd5b80635c19a95c146105fd5780636352211e1461061d578063684931ed1461063d57600080fd5b80634f6ccce7116102595780634f6ccce71461059d578063587cde1e146105bd5780635ac1e3bb146105dd57600080fd5b8063313ce5671461053657806342842e0e1461055d57806342966c681461057d57600080fd5b80631249c58b116102ec57806323b872dd116102c657806323b872dd146104c15780632f745c59146104e1578063303e74df146105015780633053ea2b1461052157600080fd5b80631249c58b1461046357806318160ddd1461047857806320606b701461048d57600080fd5b806306fdde031161031d57806306fdde03146103e7578063081812fc14610409578063095ea7b31461044157600080fd5b806301ffc9a714610344578063026833c71461037957806303e65c96146103c8575b600080fd5b34801561035057600080fd5b5061036461035f366004613d88565b610b6c565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b506015546016546017546018546019546103a0949392919085565b604080519586526020860194909452928401919091526060830152608082015260a001610370565b3480156103d457600080fd5b506014545b604051908152602001610370565b3480156103f357600080fd5b506103fc610bb0565b6040516103709190614024565b34801561041557600080fd5b50610429610424366004613ef0565b610c42565b6040516001600160a01b039091168152602001610370565b34801561044d57600080fd5b5061046161045c366004613cc3565b610cdc565b005b34801561046f57600080fd5b506103d9610e0e565b34801561048457600080fd5b506009546103d9565b34801561049957600080fd5b506103d97f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b3480156104cd57600080fd5b506104616104dc366004613ba0565b610f0b565b3480156104ed57600080fd5b506103d96104fc366004613cc3565b610f92565b34801561050d57600080fd5b50601054610429906001600160a01b031681565b34801561052d57600080fd5b5061046161103a565b34801561054257600080fd5b5061054b600081565b60405160ff9091168152602001610370565b34801561056957600080fd5b50610461610578366004613ba0565b611076565b34801561058957600080fd5b50610461610598366004613ef0565b611091565b3480156105a957600080fd5b506103d96105b8366004613ef0565b6111bb565b3480156105c957600080fd5b506104296105d8366004613b2d565b61125f565b3480156105e957600080fd5b506103fc6105f8366004613ef0565b611291565b34801561060957600080fd5b50610461610618366004613b2d565b611416565b34801561062957600080fd5b50610429610638366004613ef0565b611434565b34801561064957600080fd5b50601154610429906001600160a01b031681565b34801561066957600080fd5b50610690610678366004613b2d565b600d6020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610370565b3480156106b157600080fd5b506103d96106c0366004613b2d565b6114bf565b3480156106d157600080fd5b50610461611559565b3480156106e657600080fd5b506106fa6106f5366004613cc3565b6115bf565b6040516001600160601b039091168152602001610370565b34801561071e57600080fd5b506103d961072d366004613b2d565b600e6020526000908152604090205481565b34801561074b57600080fd5b506103d960145481565b34801561076157600080fd5b50610461610770366004613e30565b61185f565b34801561078157600080fd5b50610461611959565b34801561079657600080fd5b506000546001600160a01b0316610429565b3480156107b457600080fd5b506103fc6119ee565b3480156107c957600080fd5b506104616107d8366004613c90565b6119fd565b3480156107e957600080fd5b506107f2611ac2565b6040516103709190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b34801561084057600080fd5b506106fa61084f366004613b2d565b611b29565b34801561086057600080fd5b506104297f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b34801561089457600080fd5b506104616108a3366004613be1565b611ba7565b3480156108b457600080fd5b506104616108c3366004613b2d565b611c35565b3480156108d457600080fd5b506104616108e3366004613cef565b611cb1565b3480156108f457600080fd5b506103fc610903366004613ef0565b611fe3565b34801561091457600080fd5b50601a54610429906001600160a01b031681565b34801561093457600080fd5b506103d9610943366004613ef0565b612067565b34801561095457600080fd5b50600f54610429906001600160a01b031681565b6103d9610976366004613ef0565b6120f2565b34801561098757600080fd5b506103d97fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b3480156109bb57600080fd5b506106fa6109ca366004613b2d565b612274565b3480156109db57600080fd5b506103646109ea366004613b67565b6122a0565b3480156109fb57600080fd5b506013546103d9565b348015610a1057600080fd5b50610a7e610a1f366004613ef0565b60126020526000908152604090205465ffffffffffff80821691660100000000000081048216916c01000000000000000000000000820481169172010000000000000000000000000000000000008104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a001610370565b348015610ac357600080fd5b50610b08610ad2366004613d51565b600c60209081526000928352604080842090915290825290205463ffffffff81169064010000000090046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610370565b348015610b3857600080fd5b50610461610b47366004613b2d565b61239e565b348015610b5857600080fd5b50610461610b67366004613b2d565b61247d565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610baa5750610baa826125b1565b92915050565b606060018054610bbf90614268565b80601f0160208091040260200160405190810160405280929190818152602001828054610beb90614268565b8015610c385780601f10610c0d57610100808354040283529160200191610c38565b820191906000526020600020905b815481529060010190602001808311610c1b57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610cc05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610ce782611434565b9050806001600160a01b0316836001600160a01b03161415610d715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b336001600160a01b0382161480610d8d5750610d8d81336122a0565b610dff5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cb7565b610e09838361264c565b505050565b600080546001600160a01b03163314610e695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b60135415610eb95760405162461bcd60e51b815260206004820152600f60248201527f4669727374206d696e74206f6e6c7900000000000000000000000000000000006044820152606401610cb7565b610ee7610ece6000546001600160a01b031690565b60138054906000610ede836142a3565b919050556126ba565b50610ef0612932565b60138054610f06913091906000610ede836142a3565b905090565b610f15338261296d565b610f875760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb7565b610e09838383612a44565b6000610f9d836114bf565b82106110115760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610cb7565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60006014544261104a91906141e0565b60195490915081111561106957611069600160135461059891906141e0565b61107230612c03565b5050565b610e0983838360405180602001604052806000815250611ba7565b6000546001600160a01b031633146110eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b6000818152600360205260409020546001600160a01b03166111635760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b80600160135461117391906141e0565b14156111845761118230612c03565b505b61118d81612c58565b60405181907f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986390600090a250565b60006111c660095490565b821061123a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610cb7565b6009828154811061124d5761124d614314565b90600052602060002001549050919050565b6001600160a01b038082166000908152600b60205260408120549091168015611288578061128a565b825b9392505050565b6000818152600360205260409020546060906001600160a01b031661130c5760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b600061131783612cff565b905060008160405160200161132c9190613f35565b60405160208183030381529060405290506000826040516020016113509190613f68565b60408051601f1981840301815282825260105460008981526012602052929092207f87db11bd0000000000000000000000000000000000000000000000000000000084529093506001600160a01b03909116916387db11bd916113b99186918691600401614037565b60006040518083038186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261140d9190810190613dc2565b95945050505050565b6001600160a01b0381166114275750335b6114313382612e31565b50565b6000818152600360205260408120546001600160a01b031680610baa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610cb7565b60006001600160a01b03821661153d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610cb7565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146115b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b6115bd6000612eb1565b565b60004382106116365760405162461bcd60e51b815260206004820152603760248201527f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60448201527f7465733a206e6f74207965742064657465726d696e65640000000000000000006064820152608401610cb7565b6001600160a01b0383166000908152600d602052604090205463ffffffff1680611664576000915050610baa565b6001600160a01b0384166000908152600c6020526040812084916116896001856141f7565b63ffffffff908116825260208201929092526040016000205416116116fd576001600160a01b0384166000908152600c60205260408120906116cc6001846141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03169150610baa9050565b6001600160a01b0384166000908152600c6020908152604080832083805290915290205463ffffffff16831015611738576000915050610baa565b6000806117466001846141f7565b90505b8163ffffffff168163ffffffff161115611819576000600261176b84846141f7565b611775919061419e565b61177f90836141f7565b6001600160a01b0388166000908152600c6020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046001600160601b0316918101919091529192508714156117ed57602001519450610baa9350505050565b805163ffffffff1687111561180457819350611812565b61180f6001836141f7565b92505b5050611749565b506001600160a01b0385166000908152600c6020908152604080832063ffffffff909416835292905220546001600160601b036401000000009091041691505092915050565b6000546001600160a01b031633146118b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b60208101518151116119335760405162461bcd60e51b815260206004820152602760248201527f4d6178207072696365206d757374206265206c6172676572207468616e204d6960448201527f6e205072696365000000000000000000000000000000000000000000000000006064820152608401610cb7565b805160155560208101516016556040810151601755606081015160185560800151601955565b6000546001600160a01b031633146119b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b600f546040516001600160a01b039091169081904780156108fc02916000818181858888f19350505050158015611072573d6000803e3d6000fd5b606060028054610bbf90614268565b6001600160a01b038216331415611a565760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb7565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611af46040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a08101825260155481526016546020820152601754918101919091526018546060820152601954608082015290565b6001600160a01b0381166000908152600d602052604081205463ffffffff1680611b5457600061128a565b6001600160a01b0383166000908152600c6020526040812090611b786001846141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03169392505050565b611bb1338361296d565b611c235760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb7565b611c2f84848484612f01565b50505050565b6000546001600160a01b03163314611c8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611cdc610bb0565b80519060200120611cea4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401909252815191909301207f1901000000000000000000000000000000000000000000000000000000000000610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611e31573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611eba5760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527f5369673a20696e76616c6964207369676e6174757265000000000000000000006064820152608401610cb7565b6001600160a01b0381166000908152600e60205260408120805491611ede836142a3565b919050558914611f565760405162461bcd60e51b815260206004820152603260248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527f5369673a20696e76616c6964206e6f6e636500000000000000000000000000006064820152608401610cb7565b87421115611fcc5760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527f5369673a207369676e61747572652065787069726564000000000000000000006064820152608401610cb7565b611fd6818b612e31565b505050505b505050505050565b6000818152600360205260409020546060906001600160a01b031661205e5760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b610baa82611291565b6000818152600360205260408120546001600160a01b03166120df5760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b6064820152608401610cb7565b506000908152601b602052604090205490565b6000806120fe83611434565b905033600061210b612f8a565b90506001600160a01b03831630146121655760405162461bcd60e51b815260206004820152601960248201527f4f776e6572206973206e6f742074686520636f6e7472616374000000000000006044820152606401610cb7565b600160135461217491906141e0565b85146121c25760405162461bcd60e51b815260206004820152600f60248201527f4e6f74206c6174657374204e6f756e00000000000000000000000000000000006044820152606401610cb7565b803410156122125760405162461bcd60e51b815260206004820152601f60248201527f4d7573742073656e64206174206c656173742063757272656e745072696365006044820152606401610cb7565b6000858152601b6020526040902034905561222d8286613005565b6040516001600160a01b038316815285907ff3919fe9a709ec82fb9fd1c54a2af7cf717bfe52a6c9b1f1ed8ea42d52ba392f9060200160405180910390a261140d30612c03565b6000610baa612282836114bf565b6040518060600160405280603d81526020016143e6603d91396131b1565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1169063c45527919060240160206040518083038186803b15801561232157600080fd5b505afa158015612335573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123599190613b4a565b6001600160a01b0316141561237057506001610baa565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff1661128a565b6000546001600160a01b031633146123f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b6001600160a01b0381166124745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cb7565b61143181612eb1565b6000546001600160a01b031633146124d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb7565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166125545761254f81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612577565b816001600160a01b0316836001600160a01b0316146125775761257783826131e9565b6001600160a01b03821661258e57610e0981613286565b826001600160a01b0316826001600160a01b031614610e0957610e098282613335565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061261457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610baa57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610baa565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061268182611434565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6011546010546040517f422e2e99000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0391821660248201526000928392169063422e2e999060440160a06040518083038186803b15801561272557600080fd5b505afa158015612739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275d9190613e80565b60008481526012602090815260408083208451815486850151878501516060808a015160809a8b015165ffffffffffff9687166bffffffffffffffffffffffff199096169590951766010000000000009487168502177fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff166c0100000000000000000000000093871684027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff161772010000000000000000000000000000000000009187168202177fffff000000000000ffffffffffffffffffffffffffffffffffffffffffffffff8116600160c01b968816870290811798899055895160a081018b529188169088161781529387048616988401989098529085048416958201959095529483048216938501939093529190041692810192909252549091506128b1906001600160a01b03168585613379565b827f1106ee9d020bfbb5ee34cf5535a5fbf024a011bd130078088cbf124ab3092478826040516129229190815165ffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b60405180910390a2509092915050565b4260148190556040519081527f821964bd9a1d2293691ad21ae7e91848254493a40c1c13fc88e032e6a14a94c99060200160405180910390a1565b6000818152600360205260408120546001600160a01b03166129e65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cb7565b60006129f183611434565b9050806001600160a01b0316846001600160a01b03161480612a2c5750836001600160a01b0316612a2184610c42565b6001600160a01b0316145b80612a3c5750612a3c81856122a0565b949350505050565b826001600160a01b0316612a5782611434565b6001600160a01b031614612ad35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610cb7565b6001600160a01b038216612b355760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb7565b612b4083838361350f565b612b4b60008261264c565b6001600160a01b0383166000908152600460205260408120805460019290612b749084906141e0565b90915550506001600160a01b0382166000908152600460205260408120805460019290612ba2908490614128565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000600a601354612c1491906142be565b612c3a57601a5460138054612c38926001600160a01b0316916000610ede836142a3565b505b612c42612932565b60138054610baa918491906000610ede836142a3565b6000612c6382611434565b9050612c718160008461350f565b612c7c60008361264c565b6001600160a01b0381166000908152600460205260408120805460019290612ca59084906141e0565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081612d3f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612d695780612d53816142a3565b9150612d629050600a8361418a565b9150612d43565b60008167ffffffffffffffff811115612d8457612d8461432a565b6040519080825280601f01601f191660200182016040528015612dae576020820181803683370190505b5090505b8415612a3c57612dc36001836141e0565b9150612dd0600a866142be565b612ddb906030614128565b60f81b818381518110612df057612df0614314565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612e2a600a8661418a565b9450612db2565b6000612e3c8361125f565b6001600160a01b038481166000818152600b602052604080822080546001600160a01b031916888616908117909155905194955093928516927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46000612ea484612274565b9050611c2f828483613532565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612f0c848484612a44565b612f18848484846136e0565b611c2f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb7565b60008060145442612f9b91906141e0565b601854909150811015612fb057505060155490565b60175460185460009190612fc4908461418a565b612fce91906141c1565b601654601554919250612fe0916141e0565b8110612ff0575050601654919050565b601554612ffe9082906141e0565b9250505090565b308061301083611434565b6001600160a01b03161461308c5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f742061646472657373000000000000000000000000000000000000006064820152608401610cb7565b6001600160a01b0383166130ee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb7565b6130f981848461350f565b6001600160a01b03811660009081526004602052604081208054600192906131229084906141e0565b90915550506001600160a01b0383166000908152600460205260408120805460019290613150908490614128565b909155505060008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000816c0100000000000000000000000084106131e15760405162461bcd60e51b8152600401610cb79190614024565b509192915050565b600060016131f6846114bf565b61320091906141e0565b600083815260086020526040902054909150808214613253576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613298906001906141e0565b6000838152600a6020526040812054600980549394509092849081106132c0576132c0614314565b9060005260206000200154905080600983815481106132e1576132e1614314565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613319576133196142fe565b6001900381819060005260206000200160009055905550505050565b6000613340836114bf565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166133cf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb7565b6000818152600360205260409020546001600160a01b0316156134345760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb7565b6134406000838361350f565b6001600160a01b0382166000908152600460205260408120805460019290613469908490614128565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61351a8383836124f9565b610e096135268461125f565b61352f8461125f565b60015b816001600160a01b0316836001600160a01b03161415801561355d57506000816001600160601b0316115b15610e09576001600160a01b03831615613623576001600160a01b0383166000908152600d602052604081205463ffffffff16908161359d5760006135ea565b6001600160a01b0385166000908152600c60205260408120906135c16001856141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000613611828560405180606001604052806037815260200161442360379139613843565b905061361f86848484613885565b5050505b6001600160a01b03821615610e09576001600160a01b0382166000908152600d602052604081205463ffffffff16908161365e5760006136ab565b6001600160a01b0384166000908152600c60205260408120906136826001856141f7565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b905060006136d2828560405180606001604052806036815260200161436c60369139613a9d565b9050611fdb85848484613885565b60006001600160a01b0384163b1561383857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613724903390899088908890600401613fe8565b602060405180830381600087803b15801561373e57600080fd5b505af192505050801561376e575060408051601f3d908101601f1916820190925261376b91810190613da5565b60015b61381e573d80801561379c576040519150601f19603f3d011682016040523d82523d6000602084013e6137a1565b606091505b5080516138165760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a3c565b506001949350505050565b6000836001600160601b0316836001600160601b03161115829061387a5760405162461bcd60e51b8152600401610cb79190614024565b50612a3c838561421c565b60006138a9436040518060800160405280604481526020016143a260449139613aea565b905060008463ffffffff1611801561390357506001600160a01b0385166000908152600c6020526040812063ffffffff8316916138e76001886141f7565b63ffffffff908116825260208201929092526040016000205416145b15613987576001600160a01b0385166000908152600c60205260408120839161392d6001886141f7565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216640100000000027fffffffffffffffffffffffffffffffff000000000000000000000000ffffffff909216919091179055613a48565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600c82528681208b8616825290915294909420925183549451909116640100000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909416911617919091179055613a17846001614140565b6001600160a01b0386166000908152600d60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600080613aaa8486614168565b9050846001600160601b0316816001600160601b031610158390613ae15760405162461bcd60e51b8152600401610cb79190614024565b50949350505050565b60008164010000000084106131e15760405162461bcd60e51b8152600401610cb79190614024565b805165ffffffffffff81168114613b2857600080fd5b919050565b600060208284031215613b3f57600080fd5b813561128a81614340565b600060208284031215613b5c57600080fd5b815161128a81614340565b60008060408385031215613b7a57600080fd5b8235613b8581614340565b91506020830135613b9581614340565b809150509250929050565b600080600060608486031215613bb557600080fd5b8335613bc081614340565b92506020840135613bd081614340565b929592945050506040919091013590565b60008060008060808587031215613bf757600080fd5b8435613c0281614340565b93506020850135613c1281614340565b925060408501359150606085013567ffffffffffffffff811115613c3557600080fd5b8501601f81018713613c4657600080fd5b8035613c59613c5482614100565b6140cf565b818152886020838501011115613c6e57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215613ca357600080fd5b8235613cae81614340565b915060208301358015158114613b9557600080fd5b60008060408385031215613cd657600080fd5b8235613ce181614340565b946020939093013593505050565b60008060008060008060c08789031215613d0857600080fd5b8635613d1381614340565b95506020870135945060408701359350606087013560ff81168114613d3757600080fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215613d6457600080fd5b8235613d6f81614340565b9150602083013563ffffffff81168114613b9557600080fd5b600060208284031215613d9a57600080fd5b813561128a81614355565b600060208284031215613db757600080fd5b815161128a81614355565b600060208284031215613dd457600080fd5b815167ffffffffffffffff811115613deb57600080fd5b8201601f81018413613dfc57600080fd5b8051613e0a613c5482614100565b818152856020838501011115613e1f57600080fd5b61140d82602083016020860161423c565b600060a08284031215613e4257600080fd5b613e4a6140a6565b82358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b600060a08284031215613e9257600080fd5b613e9a6140a6565b613ea383613b12565b8152613eb160208401613b12565b6020820152613ec260408401613b12565b6040820152613ed360608401613b12565b6060820152613ee460808401613b12565b60808201529392505050565b600060208284031215613f0257600080fd5b5035919050565b60008151808452613f2181602086016020860161423c565b601f01601f19169290920160200192915050565b6a02737bab7103637bb32b9160ad1b815260008251613f5b81600b85016020870161423c565b91909101600b0192915050565b6a02737bab7103637bb32b9160ad1b815260008251613f8e81600b85016020870161423c565b7f20697320612066756e206f6620746865204e6f756e732044414f20616e64204e600b9390910192830152507f6f756e732041727420466573746976616c000000000000000000000000000000602b820152603c01919050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261401a6080830184613f09565b9695505050505050565b60208152600061128a6020830184613f09565b60e08152600061404a60e0830186613f09565b828103602084015261405c8186613f09565b915050825465ffffffffffff8082166040850152808260301c166060850152808260601c166080850152808260901c1660a0850152808260c01c1660c08501525050949350505050565b60405160a0810167ffffffffffffffff811182821017156140c9576140c961432a565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156140f8576140f861432a565b604052919050565b600067ffffffffffffffff82111561411a5761411a61432a565b50601f01601f191660200190565b6000821982111561413b5761413b6142d2565b500190565b600063ffffffff80831681851680830382111561415f5761415f6142d2565b01949350505050565b60006001600160601b0380831681851680830382111561415f5761415f6142d2565b600082614199576141996142e8565b500490565b600063ffffffff808416806141b5576141b56142e8565b92169190910492915050565b60008160001904831182151516156141db576141db6142d2565b500290565b6000828210156141f2576141f26142d2565b500390565b600063ffffffff83811690831681811015614214576142146142d2565b039392505050565b60006001600160601b0383811690831681811015614214576142146142d2565b60005b8381101561425757818101518382015260200161423f565b83811115611c2f5750506000910152565b600181811c9082168061427c57607f821691505b6020821081141561429d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142b7576142b76142d2565b5060010190565b6000826142cd576142cd6142e8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461143157600080fd5b6001600160e01b03198116811461143157600080fdfe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a26469706673582212203492b93c6d9ac40aba5dcd6bf705a0903f40c689299b75b90b65d9eb0c9bca6464736f6c63430008060033

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

0000000000000000000000000cfdb3ba1694c2bb2cfacb0339ad7b1ae5932b63000000000000000000000000cc8a0fb5ab3c7132c1b2a0109142fb112c4ce515000000000000000000000000818fb9d440968db9fcb06eef53c7734ad70f6f0e0000000000000000000000004e4cd175f812f1ba784a69c1f8ac8daa52ad7e2b000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000002d79883d20000000000000000000000000000000000000000000000000000000886c98b76000000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000001518000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _descriptor (address): 0x0Cfdb3Ba1694c2bb2CFACB0339ad7b1Ae5932B63
Arg [1] : _seeder (address): 0xCC8a0FB5ab3C7132c1b2A0109142Fb112c4Ce515
Arg [2] : _developer (address): 0x818Fb9d440968dB9fCB06EEF53C7734Ad70f6F0e
Arg [3] : _committee (address): 0x4E4cD175f812f1Ba784a69C1f8AC8dAa52AD7e2B
Arg [4] : _priceSeed (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [5] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000cfdb3ba1694c2bb2cfacb0339ad7b1ae5932b63
Arg [1] : 000000000000000000000000cc8a0fb5ab3c7132c1b2a0109142fb112c4ce515
Arg [2] : 000000000000000000000000818fb9d440968db9fcb06eef53c7734ad70f6f0e
Arg [3] : 0000000000000000000000004e4cd175f812f1ba784a69c1f8ac8daa52ad7e2b
Arg [4] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [5] : 00000000000000000000000000000000000000000000000000002d79883d2000
Arg [6] : 0000000000000000000000000000000000000000000000000000886c98b76000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [8] : 0000000000000000000000000000000000000000000000000000000000001518
Arg [9] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.