ETH Price: $3,101.38 (+5.22%)
Gas: 2 Gwei

Token

Gnars (GNAR)
 

Overview

Max Total Supply

4,236 GNAR

Holders

721

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
willywonka.eth
Balance
6 GNAR
0x05a1ff0a32bc24265bcb39499d0c5d9a6cb2011c
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

One gnar, less often, forever. An extension of Nouns DAO dedicated to supporting the artistry of extreme athletes.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SkateContractV2

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

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

/// @title The Gnars ERC-721 token

// LICENSE
// SkateContractV2.sol is a modified version of Nounders DAO's NounsToken.sol:
// https://github.com/nounsDAO/nouns-monorepo/blob/master/packages/nouns-contracts/contracts/NounsToken.sol
//
// NounsToken.sol source code Copyright Nounders DAO licensed under the GPL-3.0 license.
// With modifications by Gnars.

pragma solidity 0.8.6;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC721} from "./base/ERC721.sol";
import {ERC721Checkpointable} from "./base/ERC721Checkpointable.sol";
import {ISkateContractV2} from "../interfaces/ISkateContractV2.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IGnarSeederV2} from "../interfaces/IGNARSeederV2.sol";
import {IGnarDescriptorV2} from "../interfaces/IGNARDescriptorV2.sol";
import {IProxyRegistry} from "../interfaces/IProxyRegistry.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

contract SkateContractV2 is ISkateContractV2, Ownable, ERC721Checkpointable {
    using Strings for uint256;

    // The nounders DAO address (creators org)
    address public noundersDAO;

    // An address who has permissions to mint Gnar
    address public minter;

    // The Gnar token URI descriptor
    IGnarDescriptorV2 public descriptor;

    // The Gnar token seeder
    IGnarSeederV2 public seeder;

    // Whether the minter can be updated
    bool public isMinterLocked;

    // Whether the descriptor can be updated
    bool public isDescriptorLocked;

    // Whether the seeder can be updated
    bool public isSeederLocked;

    // The Gnar seeds
    mapping(uint256 => IGnarSeederV2.Seed) public seeds;

    uint256 public initialGnarId;

    // The internal Gnar ID tracker
    uint256 private currentGnarId;

    // OpenSea's Proxy Registry
    IProxyRegistry public immutable proxyRegistry;

    // Store custom descriptions for Gnars
    mapping(uint256 => string) public customDescription;

    /**
     * @notice Require that the minter has not been locked.
     */
    modifier whenMinterNotLocked() {
        require(!isMinterLocked, "Minter is locked");
        _;
    }

    /**
     * @notice Require that the descriptor has not been locked.
     */
    modifier whenDescriptorNotLocked() {
        require(!isDescriptorLocked, "Descriptor is locked");
        _;
    }

    /**
     * @notice Require that the seeder has not been locked.
     */
    modifier whenSeederNotLocked() {
        require(!isSeederLocked, "Seeder is locked");
        _;
    }

    /**
     * @notice Require that the sender is the nounders DAO.
     */
    modifier onlyNoundersDAO() {
        require(msg.sender == noundersDAO, "Sender is not the nounders DAO");
        _;
    }

    /**
     * @notice Require that the sender is the minter.
     */
    modifier onlyMinter() {
        require(msg.sender == minter, "Sender is not the minter");
        _;
    }

    constructor(
        address _noundersDAO,
        address _minter,
        IGnarDescriptorV2 _descriptor,
        IGnarSeederV2 _seeder,
        IProxyRegistry _proxyRegistry,
        uint256 _initialGnarId
    ) ERC721("Gnars", "GNAR") {
        require(
            _noundersDAO != address(0) &&
                _minter != address(0) &&
                address(_descriptor) != address(0) &&
                address(_seeder) != address(0) &&
                address(_proxyRegistry) != address(0),
            "ZERO ADDRESS"
        );

        noundersDAO = _noundersDAO;
        minter = _minter;
        descriptor = _descriptor;
        seeder = _seeder;
        proxyRegistry = _proxyRegistry;
        initialGnarId = _initialGnarId;
        currentGnarId = _initialGnarId;
    }

    /**
     * @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 a Gnar to the minter, along with a possible nounders reward
     * Noun. Nounders reward Gnars are minted every 10 Gnars, starting at 0.
     * @dev Call _mintTo with the to address(es).
     */
    function mint() public override onlyMinter returns (uint256) {
        if ((currentGnarId - initialGnarId) % 10 == 0) {
            _mintTo(noundersDAO, currentGnarId++);
        }
        return _mintTo(minter, currentGnarId++);
    }

    /**
     * @notice Burn a Gnar.
     */
    function burn(uint256 gnarId) public override onlyMinter {
        require(minter == ownerOf(gnarId), "Can burn its own token only");

        _burn(gnarId);
        emit GnarBurned(gnarId);
    }

    /**
     * @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), "GnarToken: URI query for nonexistent token");
    //     return descriptor.tokenURI(tokenId, seeds[tokenId]);
    // }
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "GnarToken: URI query for nonexistent token");
        string memory gnarId = tokenId.toString();
        string memory name = string(abi.encodePacked("Gnar ", gnarId));
        string memory description = viewDescription(tokenId);
        return descriptor.genericDataURI(name, description, seeds[tokenId]);
    }

    /**
     * @notice Set the token minter.
     * @dev Only callable by the owner when not locked.
     */
    function setMinter(address _minter) external override onlyOwner whenMinterNotLocked {
        require(_minter != address(0), "ZERO ADDRESS");

        minter = _minter;

        emit MinterUpdated(_minter);
    }

    /**
     * @notice Lock the minter.
     * @dev This cannot be reversed and is only callable by the owner when not locked.
     */
    function lockMinter() external override onlyOwner whenMinterNotLocked {
        isMinterLocked = true;

        emit MinterLocked();
    }

    /**
     * @notice Set the token URI descriptor.
     * @dev Only callable by the owner when not locked.
     */
    function setDescriptor(IGnarDescriptorV2 _descriptor) external override onlyOwner whenDescriptorNotLocked {
        require(address(_descriptor) != address(0), "ZERO ADDRESS");

        descriptor = _descriptor;

        emit DescriptorUpdated(_descriptor);
    }

    /**
     * @notice Lock the descriptor.
     * @dev This cannot be reversed and is only callable by the owner when not locked.
     */
    function lockDescriptor() external override onlyOwner whenDescriptorNotLocked {
        isDescriptorLocked = true;

        emit DescriptorLocked();
    }

    /**
     * @notice Set the token seeder.
     * @dev Only callable by the owner when not locked.
     */
    function setSeeder(IGnarSeederV2 _seeder) external override onlyOwner whenSeederNotLocked {
        require(address(_seeder) != address(0), "ZERO ADDRESS");

        seeder = _seeder;

        emit SeederUpdated(_seeder);
    }

    /**
     * @notice Lock the seeder.
     * @dev This cannot be reversed and is only callable by the owner when not locked.
     */
    function lockSeeder() external override onlyOwner whenSeederNotLocked {
        isSeederLocked = true;

        emit SeederLocked();
    }

    /**
     * @notice Mint a Gnar with `gnarId` to the provided `to` address.
     */
    function _mintTo(address to, uint256 gnarId) internal returns (uint256) {
        IGnarSeederV2.Seed memory seed = seeds[gnarId] = seeder.generateSeed(gnarId, descriptor);

        _mint(owner(), to, gnarId);
        emit GnarCreated(gnarId, seed);

        return gnarId;
    }

    /**
     * @notice Set a custom description for a Gnar token on-chain that will display on OpenSea and other sites.
     * Takes the format of "Gnar [tokenId] is a [....]"
     * May be modified at any time
     * Send empty string to revert to default.
     * @dev Only callable by the holder of the token.
     */
    function setCustomDescription(uint256 tokenId, string calldata _description) external returns (string memory) {
        require(msg.sender == ownerOf(tokenId), "not your Gnar");
        customDescription[tokenId] = _description;
        string memory returnMessage = string(abi.encodePacked("Description set to: ", viewDescription(tokenId)));
        return returnMessage;
    }

    function viewDescription(uint256 tokenId) public view returns (string memory) {
        string memory description = "";
        string memory gnarId = tokenId.toString();

        if (bytes(customDescription[tokenId]).length != 0) {
            description = string(abi.encodePacked(description, "Gnar ", gnarId, " is a ", customDescription[tokenId]));
        } else {
            description = string(abi.encodePacked(description, "Gnar ", gnarId, " is a member of Gnars DAO"));
        }
        return description;
    }
}

File 2 of 19 : 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 19 : 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);
    }

    /**
     * @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 4 of 19 : 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 5 of 19 : ISkateContractV2.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for Gnar

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity 0.8.6;

import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IGnarDescriptorV2} from "./IGNARDescriptorV2.sol";
import {IGnarSeederV2} from "./IGNARSeederV2.sol";

interface ISkateContractV2 is IERC721 {
    event GnarCreated(uint256 indexed tokenId, IGnarSeederV2.Seed seed);

    event GnarBurned(uint256 indexed tokenId);

    event MinterUpdated(address minter);

    event MinterLocked();

    event DescriptorUpdated(IGnarDescriptorV2 descriptor);

    event DescriptorLocked();

    event SeederUpdated(IGnarSeederV2 seeder);

    event SeederLocked();

    function mint() external returns (uint256);

    function burn(uint256 tokenId) external;

    function setMinter(address minter) external;

    function lockMinter() external;

    function setDescriptor(IGnarDescriptorV2 descriptor) external;

    function lockDescriptor() external;

    function setSeeder(IGnarSeederV2 seeder) external;

    function lockSeeder() external;
}

File 6 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 7 of 19 : IGNARSeederV2.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.6;

import {IGnarDescriptorV2} from "./IGNARDescriptorV2.sol";

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

    function generateSeed(uint256 gnarId, IGnarDescriptorV2 descriptor) external view returns (Seed memory);
}

File 8 of 19 : IGNARDescriptorV2.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.6;

import {IGnarSeederV2} from "./IGNARSeederV2.sol";
import {IGnarDecorator} from "../interfaces/IGnarDecorator.sol";

interface IGnarDescriptorV2 {
    event PartsLocked();

    event DataURIToggled(bool enabled);

    event BaseURIUpdated(string baseURI);

    event DecoratorUpdated(IGnarDecorator decorator);

    function setDecorator(IGnarDecorator _decorator) external;

    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, IGnarSeederV2.Seed memory seed) external view returns (string memory);

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

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

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

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

pragma solidity ^0.8.6;

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

File 10 of 19 : 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 19 : 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 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 19 : 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 14 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 15 of 19 : 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 16 of 19 : 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);
}

File 17 of 19 : 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 18 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

    /**
     * @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 19 of 19 : IGnarDecorator.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.6;

import {IGnarSeederV2} from "./IGNARSeederV2.sol";

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

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

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

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

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

    function addManyBackgrounds(string[] calldata _backgrounds) external;

    function addManyBodies(string[] calldata _bodies) external;

    function addManyAccessories(string[] calldata _accessories) external;

    function addManyHeads(string[] calldata _heads) external;

    function addManyGlasses(string[] calldata _glasses) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_noundersDAO","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"contract IGnarDescriptorV2","name":"_descriptor","type":"address"},{"internalType":"contract IGnarSeederV2","name":"_seeder","type":"address"},{"internalType":"contract IProxyRegistry","name":"_proxyRegistry","type":"address"},{"internalType":"uint256","name":"_initialGnarId","type":"uint256"}],"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":[],"name":"DescriptorLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IGnarDescriptorV2","name":"descriptor","type":"address"}],"name":"DescriptorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GnarBurned","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 IGnarSeederV2.Seed","name":"seed","type":"tuple"}],"name":"GnarCreated","type":"event"},{"anonymous":false,"inputs":[],"name":"MinterLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"MinterUpdated","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":[],"name":"SeederLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IGnarSeederV2","name":"seeder","type":"address"}],"name":"SeederUpdated","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":"gnarId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"customDescription","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 IGnarDescriptorV2","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":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"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":[],"name":"initialGnarId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isDescriptorLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMinterLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSeederLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockSeeder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"noundersDAO","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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 IGnarSeederV2","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_description","type":"string"}],"name":"setCustomDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGnarDescriptorV2","name":"_descriptor","type":"address"}],"name":"setDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGnarSeederV2","name":"_seeder","type":"address"}],"name":"setSeeder","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":"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":[{"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":"uint256","name":"tokenId","type":"uint256"}],"name":"viewDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"votesToDelegate","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b50604051620041a0380380620041a08339810160408190526200003491620002c0565b60405180604001604052806005815260200164476e61727360d81b8152506040518060400160405280600481526020016323a720a960e11b8152506200008962000083620001c660201b60201c565b620001ca565b81516200009e9060019060208501906200021a565b508051620000b49060029060208401906200021a565b5050506001600160a01b03861615801590620000d857506001600160a01b03851615155b8015620000ed57506001600160a01b03841615155b80156200010257506001600160a01b03831615155b80156200011757506001600160a01b03821615155b620001575760405162461bcd60e51b815260206004820152600c60248201526b5a45524f204144445245535360a01b604482015260640160405180910390fd5b600f80546001600160a01b03199081166001600160a01b0398891617909155601080548216968816969096179095556011805486169487169490941790935560128054909416919094161790915560609190911b6001600160601b03191660805260148190556015556200039e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002289062000348565b90600052602060002090601f0160209004810192826200024c576000855562000297565b82601f106200026757805160ff191683800117855562000297565b8280016001018555821562000297579182015b82811115620002975782518255916020019190600101906200027a565b50620002a5929150620002a9565b5090565b5b80821115620002a55760008155600101620002aa565b60008060008060008060c08789031215620002da57600080fd5b8651620002e78162000385565b6020880151909650620002fa8162000385565b60408801519095506200030d8162000385565b6060880151909450620003208162000385565b6080880151909350620003338162000385565b8092505060a087015190509295509295509295565b600181811c908216806200035d57607f821691505b602082108114156200037f57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200039b57600080fd5b50565b60805160601c613ddc620003c46000396000818161061b0152611d6d0152613ddc6000f3fe608060405234801561001057600080fd5b506004361061030c5760003560e01c806370a082311161019d578063c3cda520116100e9578063e9580e91116100a2578063f1127ed81161007c578063f1127ed814610795578063f2fde38b146107fc578063fca3b5aa1461080f578063ff9361641461082257600080fd5b8063e9580e91146106e1578063e985e9c5146106f4578063f0503e801461070757600080fd5b8063c3cda52014610664578063c87b56dd14610677578063c8fc0c231461068a578063d50b31eb1461069e578063e7a324dc146106b1578063e8ffe464146106d857600080fd5b80638da5cb5b11610156578063b4b5ea5711610130578063b4b5ea5714610603578063b50cbd9f14610616578063b88d4fde1461063d578063c1b8e4e11461065057600080fd5b80638da5cb5b146105d757806395d89b41146105e8578063a22cb465146105f057600080fd5b806370a0823114610556578063715018a61461056957806376daebe114610571578063782d6fe1146105795780637ecebe00146105a45780638123d8cc146105c457600080fd5b8063303e74df1161025c578063587cde1e116102155780636352211e116101ef5780636352211e146104e2578063655932a4146104f5578063684931ed146105085780636fcfff451461051b57600080fd5b8063587cde1e146104b45780635c19a95c146104c75780635f295a67146104da57600080fd5b8063303e74df14610446578063313ce5671461045957806341b5d0de1461047357806342842e0e1461047b57806342966c681461048e5780634f6ccce7146104a157600080fd5b8063095ea7b3116102c95780631e688e10116102a35780631e688e10146103e557806320606b70146103f957806323b872dd146104205780632f745c591461043357600080fd5b8063095ea7b3146103b45780631249c58b146103c757806318160ddd146103dd57600080fd5b806301b9a3971461031157806301ffc9a714610326578063049ee68c1461034e57806306fdde031461036e5780630754617214610376578063081812fc146103a1575b600080fd5b61032461031f36600461324a565b610835565b005b6103396103343660046134a5565b610934565b60405190151581526020015b60405180910390f35b61036161035c3660046135f4565b61095f565b604051610345919061389b565b610361610a08565b601054610389906001600160a01b031681565b6040516001600160a01b039091168152602001610345565b6103896103af3660046135db565b610a9a565b6103246103c23660046133e0565b610b2f565b6103cf610c45565b604051908152602001610345565b6009546103cf565b60125461033990600160a01b900460ff1681565b6103cf7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61032461042e3660046132bd565b610d0d565b6103cf6104413660046133e0565b610d3e565b601154610389906001600160a01b031681565b610461600081565b60405160ff9091168152602001610345565b610324610dd4565b6103246104893660046132bd565b610e8d565b61032461049c3660046135db565b610ea8565b6103cf6104af3660046135db565b610f9a565b6103896104c236600461324a565b61102d565b6103246104d536600461324a565b61105f565b61032461107d565b6103896104f03660046135db565b611132565b600f54610389906001600160a01b031681565b601254610389906001600160a01b031681565b61054161052936600461324a565b600d6020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610345565b6103cf61056436600461324a565b6111a9565b610324611230565b610324611266565b61058c6105873660046133e0565b61131b565b6040516001600160601b039091168152602001610345565b6103cf6105b236600461324a565b600e6020526000908152604090205481565b6103616105d23660046135db565b6115b8565b6000546001600160a01b0316610389565b610361611652565b6103246105fe3660046133ad565b611661565b61058c61061136600461324a565b611726565b6103897f000000000000000000000000000000000000000000000000000000000000000081565b61032461064b3660046132fe565b6117a3565b60125461033990600160a81b900460ff1681565b61032461067236600461340c565b6117db565b6103616106853660046135db565b611ad9565b60125461033990600160b01b900460ff1681565b6103246106ac36600461324a565b611c30565b6103cf7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6103cf60145481565b61058c6106ef36600461324a565b611d1b565b610339610702366004613284565b611d47565b61075c6107153660046135db565b60136020526000908152604090205465ffffffffffff8082169166010000000000008104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a001610345565b6107d86107a336600461346e565b600c60209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610345565b61032461080a36600461324a565b611e2c565b61032461081d36600461324a565b611ec4565b6103616108303660046135db565b611faf565b6000546001600160a01b031633146108685760405162461bcd60e51b815260040161085f9061396f565b60405180910390fd5b601254600160a81b900460ff16156108b95760405162461bcd60e51b815260206004820152601460248201527311195cd8dc9a5c1d1bdc881a5cc81b1bd8dad95960621b604482015260640161085f565b6001600160a01b0381166108df5760405162461bcd60e51b815260040161085f906139a4565b601180546001600160a01b0319166001600160a01b0383169081179091556040519081527f6e66ab22238a5471005895947c8f57db923c2a9c9c73180eff80864c21295c1b906020015b60405180910390a150565b60006001600160e01b0319821663780e9d6360e01b1480610959575061095982612054565b92915050565b606061096a84611132565b6001600160a01b0316336001600160a01b0316146109ba5760405162461bcd60e51b815260206004820152600d60248201526c3737ba103cb7bab91023b730b960991b604482015260640161085f565b60008481526016602052604090206109d3908484613196565b5060006109df85611faf565b6040516020016109ef9190613822565b60408051808303601f1901815291905295945050505050565b606060018054610a1790613b95565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4390613b95565b8015610a905780601f10610a6557610100808354040283529160200191610a90565b820191906000526020600020905b815481529060010190602001808311610a7357829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610b135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161085f565b506000908152600560205260409020546001600160a01b031690565b6000610b3a82611132565b9050806001600160a01b0316836001600160a01b03161415610ba85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161085f565b336001600160a01b0382161480610bc45750610bc48133611d47565b610c365760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161085f565b610c4083836120a4565b505050565b6010546000906001600160a01b03163314610c9d5760405162461bcd60e51b815260206004820152601860248201527729b2b73232b91034b9903737ba103a34329036b4b73a32b960411b604482015260640161085f565b600a601454601554610caf9190613b0d565b610cb99190613beb565b610ce857600f5460158054610ce6926001600160a01b0316916000610cdd83613bd0565b91905055612112565b505b60105460158054610d08926001600160a01b0316916000610cdd83613bd0565b905090565b610d17338261231d565b610d335760405162461bcd60e51b815260040161085f906139ca565b610c408383836123f4565b6000610d49836111a9565b8210610dab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161085f565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b03163314610dfe5760405162461bcd60e51b815260040161085f9061396f565b601254600160a81b900460ff1615610e4f5760405162461bcd60e51b815260206004820152601460248201527311195cd8dc9a5c1d1bdc881a5cc81b1bd8dad95960621b604482015260640161085f565b6012805460ff60a81b1916600160a81b1790556040517f593e31e306c198bef259d839f7c6dc4ff7fc10c07f76fab193a210b03704105f90600090a1565b610c40838383604051806020016040528060008152506117a3565b6010546001600160a01b03163314610efd5760405162461bcd60e51b815260206004820152601860248201527729b2b73232b91034b9903737ba103a34329036b4b73a32b960411b604482015260640161085f565b610f0681611132565b6010546001600160a01b03908116911614610f635760405162461bcd60e51b815260206004820152601b60248201527f43616e206275726e20697473206f776e20746f6b656e206f6e6c790000000000604482015260640161085f565b610f6c8161258d565b60405181907f1079528daa0e7790c419e0adca33d93c2c116d75b7222168bcb53998b3e6c3af90600090a250565b6000610fa560095490565b82106110085760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161085f565b6009828154811061101b5761101b613c41565b90600052602060002001549050919050565b6001600160a01b038082166000908152600b602052604081205490911680156110565780611058565b825b9392505050565b6001600160a01b0381166110705750335b61107a3382612622565b50565b6000546001600160a01b031633146110a75760405162461bcd60e51b815260040161085f9061396f565b601254600160b01b900460ff16156110f45760405162461bcd60e51b815260206004820152601060248201526f14d95959195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6012805460ff60b01b1916600160b01b1790556040517ff59561f22794afcfb1e6be5c4733f5449fd167252a96b74bb06d341fb0dac7ed90600090a1565b6000818152600360205260408120546001600160a01b0316806109595760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161085f565b60006001600160a01b0382166112145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161085f565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461125a5760405162461bcd60e51b815260040161085f9061396f565b61126460006126a2565b565b6000546001600160a01b031633146112905760405162461bcd60e51b815260040161085f9061396f565b601254600160a01b900460ff16156112dd5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6012805460ff60a01b1916600160a01b1790556040517f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6690600090a1565b60004382106113925760405162461bcd60e51b815260206004820152603760248201527f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60448201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000606482015260840161085f565b6001600160a01b0383166000908152600d602052604090205463ffffffff16806113c0576000915050610959565b6001600160a01b0384166000908152600c6020526040812084916113e5600185613b24565b63ffffffff90811682526020820192909252604001600020541611611458576001600160a01b0384166000908152600c6020526040812090611428600184613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b031691506109599050565b6001600160a01b0384166000908152600c6020908152604080832083805290915290205463ffffffff16831015611493576000915050610959565b6000806114a1600184613b24565b90505b8163ffffffff168163ffffffff16111561157357600060026114c68484613b24565b6114d09190613aea565b6114da9083613b24565b6001600160a01b0388166000908152600c6020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250871415611547576020015194506109599350505050565b805163ffffffff1687111561155e5781935061156c565b611569600183613b24565b92505b50506114a4565b506001600160a01b0385166000908152600c6020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b601660205260009081526040902080546115d190613b95565b80601f01602080910402602001604051908101604052809291908181526020018280546115fd90613b95565b801561164a5780601f1061161f5761010080835404028352916020019161164a565b820191906000526020600020905b81548152906001019060200180831161162d57829003601f168201915b505050505081565b606060028054610a1790613b95565b6001600160a01b0382163314156116ba5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161085f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b0381166000908152600d602052604081205463ffffffff1680611751576000611058565b6001600160a01b0383166000908152600c6020526040812090611775600184613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03169392505050565b6117ad338361231d565b6117c95760405162461bcd60e51b815260040161085f906139ca565b6117d5848484846126f2565b50505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611806610a08565b805190602001206118144690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611940573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119c25760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c656761746542796044820152755369673a20696e76616c6964207369676e617475726560501b606482015260840161085f565b6001600160a01b0381166000908152600e602052604081208054916119e683613bd0565b919050558914611a535760405162461bcd60e51b815260206004820152603260248201527f455243373231436865636b706f696e7461626c653a3a64656c656761746542796044820152715369673a20696e76616c6964206e6f6e636560701b606482015260840161085f565b87421115611ac25760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527514da59ce881cda59db985d1d5c9948195e1c1a5c995960521b606482015260840161085f565b611acc818b612622565b505050505b505050505050565b6000818152600360205260409020546060906001600160a01b0316611b535760405162461bcd60e51b815260206004820152602a60248201527f476e6172546f6b656e3a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161085f565b6000611b5e83612725565b9050600081604051602001611b7391906137f5565b60405160208183030381529060405290506000611b8f85611faf565b6011546000878152601360205260409081902090516387db11bd60e01b81529293506001600160a01b03909116916387db11bd91611bd391869186916004016138ae565b60006040518083038186803b158015611beb57600080fd5b505afa158015611bff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c2791908101906134df565b95945050505050565b6000546001600160a01b03163314611c5a5760405162461bcd60e51b815260040161085f9061396f565b601254600160b01b900460ff1615611ca75760405162461bcd60e51b815260206004820152601060248201526f14d95959195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6001600160a01b038116611ccd5760405162461bcd60e51b815260040161085f906139a4565b601280546001600160a01b0319166001600160a01b0383169081179091556040519081527fb3025222d01ce9a26c7f9d52bc3bfd0352366bd90a793c273fbfe1c81e0e288e90602001610929565b6000610959611d29836111a9565b6040518060600160405280603d8152602001613d33603d9139612823565b60405163c455279160e01b81526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c45527919060240160206040518083038186803b158015611daf57600080fd5b505afa158015611dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de79190613267565b6001600160a01b03161415611dfe57506001610959565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16611058565b6000546001600160a01b03163314611e565760405162461bcd60e51b815260040161085f9061396f565b6001600160a01b038116611ebb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085f565b61107a816126a2565b6000546001600160a01b03163314611eee5760405162461bcd60e51b815260040161085f9061396f565b601254600160a01b900460ff1615611f3b5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6001600160a01b038116611f615760405162461bcd60e51b815260040161085f906139a4565b601080546001600160a01b0319166001600160a01b0383169081179091556040519081527fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a90602001610929565b6040805160208101909152600080825260609190611fcc84612725565b6000858152601660205260409020805491925090611fe990613b95565b15905061202857600084815260166020908152604091829020915161201292859285920161369c565b604051602081830303815290604052915061204d565b818160405160200161203b92919061378b565b60405160208183030381529060405291505b5092915050565b60006001600160e01b031982166380ac58cd60e01b148061208557506001600160e01b03198216635b5e139f60e01b145b8061095957506301ffc9a760e01b6001600160e01b0319831614610959565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120d982611132565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60125460115460405163422e2e9960e01b8152600481018490526001600160a01b0391821660248201526000928392169063422e2e999060440160a06040518083038186803b15801561216457600080fd5b505afa158015612178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219c919061354d565b60008481526013602090815260408083208451815486850151878501516060808a015160809a8b015165ffffffffffff9687166bffffffffffffffffffffffff199096169590951766010000000000009487168502176bffffffffffffffffffffffff60601b1916600160601b938716840265ffffffffffff60901b191617600160901b91871682021765ffffffffffff60c01b198116600160c01b968816870290811798899055895160a081018b5291881690881617815293870486169884019890985290850484169582019590955294830482169385019390935291900416928101929092525490915061229c906001600160a01b03168585612852565b827f59c13c378d48e505ccbaff5c4f2ad0558b3ab635ca04a20a3a1b2150227410fb8260405161230d9190815165ffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b60405180910390a2509092915050565b6000818152600360205260408120546001600160a01b03166123965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161085f565b60006123a183611132565b9050806001600160a01b0316846001600160a01b031614806123dc5750836001600160a01b03166123d184610a9a565b6001600160a01b0316145b806123ec57506123ec8185611d47565b949350505050565b826001600160a01b031661240782611132565b6001600160a01b03161461246f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161085f565b6001600160a01b0382166124d15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161085f565b6124dc8383836129c4565b6124e76000826120a4565b6001600160a01b0383166000908152600460205260408120805460019290612510908490613b0d565b90915550506001600160a01b038216600090815260046020526040812080546001929061253e908490613a74565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020613d1383398151915291a4505050565b600061259882611132565b90506125a6816000846129c4565b6125b16000836120a4565b6001600160a01b03811660009081526004602052604081208054600192906125da908490613b0d565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020613d13833981519152908390a45050565b600061262d8361102d565b6001600160a01b038481166000818152600b602052604080822080546001600160a01b031916888616908117909155905194955093928516927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4600061269584611d1b565b90506117d58284836129e7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6126fd8484846123f4565b61270984848484612b93565b6117d55760405162461bcd60e51b815260040161085f9061391d565b6060816127495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612773578061275d81613bd0565b915061276c9050600a83613ad6565b915061274d565b60008167ffffffffffffffff81111561278e5761278e613c57565b6040519080825280601f01601f1916602001820160405280156127b8576020820181803683370190505b5090505b84156123ec576127cd600183613b0d565b91506127da600a86613beb565b6127e5906030613a74565b60f81b8183815181106127fa576127fa613c41565b60200101906001600160f81b031916908160001a90535061281c600a86613ad6565b94506127bc565b600081600160601b841061284a5760405162461bcd60e51b815260040161085f919061389b565b509192915050565b6001600160a01b0382166128a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161085f565b6000818152600360205260409020546001600160a01b03161561290d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161085f565b612919600083836129c4565b6001600160a01b0382166000908152600460205260408120805460019290612942908490613a74565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691909117909155905183929186169190600080516020613d13833981519152908290a480826001600160a01b0316846001600160a01b0316600080516020613d1383398151915260405160405180910390a4505050565b6129cf838383612ca0565b610c406129db8461102d565b6129e48461102d565b60015b816001600160a01b0316836001600160a01b031614158015612a1257506000816001600160601b0316115b15610c40576001600160a01b03831615612ad7576001600160a01b0383166000908152600d602052604081205463ffffffff169081612a52576000612a9e565b6001600160a01b0385166000908152600c6020526040812090612a76600185613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000612ac58285604051806060016040528060378152602001613d7060379139612d58565b9050612ad386848484612d9a565b5050505b6001600160a01b03821615610c40576001600160a01b0382166000908152600d602052604081205463ffffffff169081612b12576000612b5e565b6001600160a01b0384166000908152600c6020526040812090612b36600185613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000612b858285604051806060016040528060368152602001613c9960369139612f92565b9050611ad185848484612d9a565b60006001600160a01b0384163b15612c9557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bd790339089908890889060040161385e565b602060405180830381600087803b158015612bf157600080fd5b505af1925050508015612c21575060408051601f3d908101601f19168201909252612c1e918101906134c2565b60015b612c7b573d808015612c4f576040519150601f19603f3d011682016040523d82523d6000602084013e612c54565b606091505b508051612c735760405162461bcd60e51b815260040161085f9061391d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123ec565b506001949350505050565b6001600160a01b038316612cfb57612cf681600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612d1e565b816001600160a01b0316836001600160a01b031614612d1e57612d1e8382612fdf565b6001600160a01b038216612d3557610c408161307c565b826001600160a01b0316826001600160a01b031614610c4057610c40828261312b565b6000836001600160601b0316836001600160601b031611158290612d8f5760405162461bcd60e51b815260040161085f919061389b565b506123ec8385613b49565b6000612dbe43604051806080016040528060448152602001613ccf6044913961316f565b905060008463ffffffff16118015612e1857506001600160a01b0385166000908152600c6020526040812063ffffffff831691612dfc600188613b24565b63ffffffff908116825260208201929092526040016000205416145b15612e8c576001600160a01b0385166000908152600c602052604081208391612e42600188613b24565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055612f3d565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600c82528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055612f0c846001613a8c565b6001600160a01b0386166000908152600d60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600080612f9f8486613ab4565b9050846001600160601b0316816001600160601b031610158390612fd65760405162461bcd60e51b815260040161085f919061389b565b50949350505050565b60006001612fec846111a9565b612ff69190613b0d565b600083815260086020526040902054909150808214613049576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061308e90600190613b0d565b6000838152600a6020526040812054600980549394509092849081106130b6576130b6613c41565b9060005260206000200154905080600983815481106130d7576130d7613c41565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061310f5761310f613c2b565b6001900381819060005260206000200160009055905550505050565b6000613136836111a9565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b600081600160201b841061284a5760405162461bcd60e51b815260040161085f919061389b565b8280546131a290613b95565b90600052602060002090601f0160209004810192826131c4576000855561320a565b82601f106131dd5782800160ff1982351617855561320a565b8280016001018555821561320a579182015b8281111561320a5782358255916020019190600101906131ef565b5061321692915061321a565b5090565b5b80821115613216576000815560010161321b565b805165ffffffffffff8116811461324557600080fd5b919050565b60006020828403121561325c57600080fd5b813561105881613c6d565b60006020828403121561327957600080fd5b815161105881613c6d565b6000806040838503121561329757600080fd5b82356132a281613c6d565b915060208301356132b281613c6d565b809150509250929050565b6000806000606084860312156132d257600080fd5b83356132dd81613c6d565b925060208401356132ed81613c6d565b929592945050506040919091013590565b6000806000806080858703121561331457600080fd5b843561331f81613c6d565b9350602085013561332f81613c6d565b925060408501359150606085013567ffffffffffffffff81111561335257600080fd5b8501601f8101871361336357600080fd5b803561337661337182613a4c565b613a1b565b81815288602083850101111561338b57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156133c057600080fd5b82356133cb81613c6d565b9150602083013580151581146132b257600080fd5b600080604083850312156133f357600080fd5b82356133fe81613c6d565b946020939093013593505050565b60008060008060008060c0878903121561342557600080fd5b863561343081613c6d565b95506020870135945060408701359350606087013560ff8116811461345457600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561348157600080fd5b823561348c81613c6d565b9150602083013563ffffffff811681146132b257600080fd5b6000602082840312156134b757600080fd5b813561105881613c82565b6000602082840312156134d457600080fd5b815161105881613c82565b6000602082840312156134f157600080fd5b815167ffffffffffffffff81111561350857600080fd5b8201601f8101841361351957600080fd5b805161352761337182613a4c565b81815285602083850101111561353c57600080fd5b611c27826020830160208601613b69565b600060a0828403121561355f57600080fd5b60405160a0810181811067ffffffffffffffff8211171561358257613582613c57565b60405261358e8361322f565b815261359c6020840161322f565b60208201526135ad6040840161322f565b60408201526135be6060840161322f565b60608201526135cf6080840161322f565b60808201529392505050565b6000602082840312156135ed57600080fd5b5035919050565b60008060006040848603121561360957600080fd5b83359250602084013567ffffffffffffffff8082111561362857600080fd5b818601915086601f83011261363c57600080fd5b81358181111561364b57600080fd5b87602082850101111561365d57600080fd5b6020830194508093505050509250925092565b60008151808452613688816020860160208601613b69565b601f01601f19169290920160200192915050565b6000845160206136af8285838a01613b69565b64023b730b9160dd1b91840191825285516136d08160058501848a01613b69565b6501034b99030960d51b600593909101928301528454600b90600090600181811c908083168061370157607f831692505b86831081141561371f57634e487b7160e01b85526022600452602485fd5b808015613733576001811461374857613779565b60ff1985168988015283890187019550613779565b60008c81526020902060005b8581101561376f5781548b82018a0152908401908901613754565b505086848a010195505b50939c9b505050505050505050505050565b6000835161379d818460208801613b69565b64023b730b9160dd1b90830190815283516137bf816005840160208801613b69565b7f2069732061206d656d626572206f6620476e6172732044414f0000000000000060059290910191820152601e01949350505050565b64023b730b9160dd1b815260008251613815816005850160208701613b69565b9190910160050192915050565b7302232b9b1b934b83a34b7b71039b2ba103a379d160651b815260008251613851816014850160208701613b69565b9190910160140192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061389190830184613670565b9695505050505050565b6020815260006110586020830184613670565b60e0815260006138c160e0830186613670565b82810360208401526138d38186613670565b915050825465ffffffffffff8082166040850152808260301c166060850152808260601c166080850152808260901c1660a0850152808260c01c1660c08501525050949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600c908201526b5a45524f204144445245535360a01b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613a4457613a44613c57565b604052919050565b600067ffffffffffffffff821115613a6657613a66613c57565b50601f01601f191660200190565b60008219821115613a8757613a87613bff565b500190565b600063ffffffff808316818516808303821115613aab57613aab613bff565b01949350505050565b60006001600160601b03808316818516808303821115613aab57613aab613bff565b600082613ae557613ae5613c15565b500490565b600063ffffffff80841680613b0157613b01613c15565b92169190910492915050565b600082821015613b1f57613b1f613bff565b500390565b600063ffffffff83811690831681811015613b4157613b41613bff565b039392505050565b60006001600160601b0383811690831681811015613b4157613b41613bff565b60005b83811015613b84578181015183820152602001613b6c565b838111156117d55750506000910152565b600181811c90821680613ba957607f821691505b60208210811415613bca57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613be457613be4613bff565b5060010190565b600082613bfa57613bfa613c15565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461107a57600080fd5b6001600160e01b03198116811461107a57600080fdfe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a2646970667358221220570ed6cd6004b4c343794725ea25d2671985a9ab5c61e19b2b235374be0eb9f364736f6c634300080600330000000000000000000000000658f4ed17289144717713adffc2539ef7c2ef8e000000000000000000000000000000000000000000000000000000000000dead0000000000000000000000000cbcbf0cdbe9842fa53b7c107738714c2a9af1d5000000000000000000000000b69d980feb3c2ee143ca14feb870fe09f8dfa1fc000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000273

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061030c5760003560e01c806370a082311161019d578063c3cda520116100e9578063e9580e91116100a2578063f1127ed81161007c578063f1127ed814610795578063f2fde38b146107fc578063fca3b5aa1461080f578063ff9361641461082257600080fd5b8063e9580e91146106e1578063e985e9c5146106f4578063f0503e801461070757600080fd5b8063c3cda52014610664578063c87b56dd14610677578063c8fc0c231461068a578063d50b31eb1461069e578063e7a324dc146106b1578063e8ffe464146106d857600080fd5b80638da5cb5b11610156578063b4b5ea5711610130578063b4b5ea5714610603578063b50cbd9f14610616578063b88d4fde1461063d578063c1b8e4e11461065057600080fd5b80638da5cb5b146105d757806395d89b41146105e8578063a22cb465146105f057600080fd5b806370a0823114610556578063715018a61461056957806376daebe114610571578063782d6fe1146105795780637ecebe00146105a45780638123d8cc146105c457600080fd5b8063303e74df1161025c578063587cde1e116102155780636352211e116101ef5780636352211e146104e2578063655932a4146104f5578063684931ed146105085780636fcfff451461051b57600080fd5b8063587cde1e146104b45780635c19a95c146104c75780635f295a67146104da57600080fd5b8063303e74df14610446578063313ce5671461045957806341b5d0de1461047357806342842e0e1461047b57806342966c681461048e5780634f6ccce7146104a157600080fd5b8063095ea7b3116102c95780631e688e10116102a35780631e688e10146103e557806320606b70146103f957806323b872dd146104205780632f745c591461043357600080fd5b8063095ea7b3146103b45780631249c58b146103c757806318160ddd146103dd57600080fd5b806301b9a3971461031157806301ffc9a714610326578063049ee68c1461034e57806306fdde031461036e5780630754617214610376578063081812fc146103a1575b600080fd5b61032461031f36600461324a565b610835565b005b6103396103343660046134a5565b610934565b60405190151581526020015b60405180910390f35b61036161035c3660046135f4565b61095f565b604051610345919061389b565b610361610a08565b601054610389906001600160a01b031681565b6040516001600160a01b039091168152602001610345565b6103896103af3660046135db565b610a9a565b6103246103c23660046133e0565b610b2f565b6103cf610c45565b604051908152602001610345565b6009546103cf565b60125461033990600160a01b900460ff1681565b6103cf7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61032461042e3660046132bd565b610d0d565b6103cf6104413660046133e0565b610d3e565b601154610389906001600160a01b031681565b610461600081565b60405160ff9091168152602001610345565b610324610dd4565b6103246104893660046132bd565b610e8d565b61032461049c3660046135db565b610ea8565b6103cf6104af3660046135db565b610f9a565b6103896104c236600461324a565b61102d565b6103246104d536600461324a565b61105f565b61032461107d565b6103896104f03660046135db565b611132565b600f54610389906001600160a01b031681565b601254610389906001600160a01b031681565b61054161052936600461324a565b600d6020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610345565b6103cf61056436600461324a565b6111a9565b610324611230565b610324611266565b61058c6105873660046133e0565b61131b565b6040516001600160601b039091168152602001610345565b6103cf6105b236600461324a565b600e6020526000908152604090205481565b6103616105d23660046135db565b6115b8565b6000546001600160a01b0316610389565b610361611652565b6103246105fe3660046133ad565b611661565b61058c61061136600461324a565b611726565b6103897f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b61032461064b3660046132fe565b6117a3565b60125461033990600160a81b900460ff1681565b61032461067236600461340c565b6117db565b6103616106853660046135db565b611ad9565b60125461033990600160b01b900460ff1681565b6103246106ac36600461324a565b611c30565b6103cf7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6103cf60145481565b61058c6106ef36600461324a565b611d1b565b610339610702366004613284565b611d47565b61075c6107153660046135db565b60136020526000908152604090205465ffffffffffff8082169166010000000000008104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a001610345565b6107d86107a336600461346e565b600c60209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610345565b61032461080a36600461324a565b611e2c565b61032461081d36600461324a565b611ec4565b6103616108303660046135db565b611faf565b6000546001600160a01b031633146108685760405162461bcd60e51b815260040161085f9061396f565b60405180910390fd5b601254600160a81b900460ff16156108b95760405162461bcd60e51b815260206004820152601460248201527311195cd8dc9a5c1d1bdc881a5cc81b1bd8dad95960621b604482015260640161085f565b6001600160a01b0381166108df5760405162461bcd60e51b815260040161085f906139a4565b601180546001600160a01b0319166001600160a01b0383169081179091556040519081527f6e66ab22238a5471005895947c8f57db923c2a9c9c73180eff80864c21295c1b906020015b60405180910390a150565b60006001600160e01b0319821663780e9d6360e01b1480610959575061095982612054565b92915050565b606061096a84611132565b6001600160a01b0316336001600160a01b0316146109ba5760405162461bcd60e51b815260206004820152600d60248201526c3737ba103cb7bab91023b730b960991b604482015260640161085f565b60008481526016602052604090206109d3908484613196565b5060006109df85611faf565b6040516020016109ef9190613822565b60408051808303601f1901815291905295945050505050565b606060018054610a1790613b95565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4390613b95565b8015610a905780601f10610a6557610100808354040283529160200191610a90565b820191906000526020600020905b815481529060010190602001808311610a7357829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610b135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161085f565b506000908152600560205260409020546001600160a01b031690565b6000610b3a82611132565b9050806001600160a01b0316836001600160a01b03161415610ba85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161085f565b336001600160a01b0382161480610bc45750610bc48133611d47565b610c365760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161085f565b610c4083836120a4565b505050565b6010546000906001600160a01b03163314610c9d5760405162461bcd60e51b815260206004820152601860248201527729b2b73232b91034b9903737ba103a34329036b4b73a32b960411b604482015260640161085f565b600a601454601554610caf9190613b0d565b610cb99190613beb565b610ce857600f5460158054610ce6926001600160a01b0316916000610cdd83613bd0565b91905055612112565b505b60105460158054610d08926001600160a01b0316916000610cdd83613bd0565b905090565b610d17338261231d565b610d335760405162461bcd60e51b815260040161085f906139ca565b610c408383836123f4565b6000610d49836111a9565b8210610dab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161085f565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b03163314610dfe5760405162461bcd60e51b815260040161085f9061396f565b601254600160a81b900460ff1615610e4f5760405162461bcd60e51b815260206004820152601460248201527311195cd8dc9a5c1d1bdc881a5cc81b1bd8dad95960621b604482015260640161085f565b6012805460ff60a81b1916600160a81b1790556040517f593e31e306c198bef259d839f7c6dc4ff7fc10c07f76fab193a210b03704105f90600090a1565b610c40838383604051806020016040528060008152506117a3565b6010546001600160a01b03163314610efd5760405162461bcd60e51b815260206004820152601860248201527729b2b73232b91034b9903737ba103a34329036b4b73a32b960411b604482015260640161085f565b610f0681611132565b6010546001600160a01b03908116911614610f635760405162461bcd60e51b815260206004820152601b60248201527f43616e206275726e20697473206f776e20746f6b656e206f6e6c790000000000604482015260640161085f565b610f6c8161258d565b60405181907f1079528daa0e7790c419e0adca33d93c2c116d75b7222168bcb53998b3e6c3af90600090a250565b6000610fa560095490565b82106110085760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161085f565b6009828154811061101b5761101b613c41565b90600052602060002001549050919050565b6001600160a01b038082166000908152600b602052604081205490911680156110565780611058565b825b9392505050565b6001600160a01b0381166110705750335b61107a3382612622565b50565b6000546001600160a01b031633146110a75760405162461bcd60e51b815260040161085f9061396f565b601254600160b01b900460ff16156110f45760405162461bcd60e51b815260206004820152601060248201526f14d95959195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6012805460ff60b01b1916600160b01b1790556040517ff59561f22794afcfb1e6be5c4733f5449fd167252a96b74bb06d341fb0dac7ed90600090a1565b6000818152600360205260408120546001600160a01b0316806109595760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161085f565b60006001600160a01b0382166112145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161085f565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461125a5760405162461bcd60e51b815260040161085f9061396f565b61126460006126a2565b565b6000546001600160a01b031633146112905760405162461bcd60e51b815260040161085f9061396f565b601254600160a01b900460ff16156112dd5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6012805460ff60a01b1916600160a01b1790556040517f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6690600090a1565b60004382106113925760405162461bcd60e51b815260206004820152603760248201527f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60448201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000606482015260840161085f565b6001600160a01b0383166000908152600d602052604090205463ffffffff16806113c0576000915050610959565b6001600160a01b0384166000908152600c6020526040812084916113e5600185613b24565b63ffffffff90811682526020820192909252604001600020541611611458576001600160a01b0384166000908152600c6020526040812090611428600184613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b031691506109599050565b6001600160a01b0384166000908152600c6020908152604080832083805290915290205463ffffffff16831015611493576000915050610959565b6000806114a1600184613b24565b90505b8163ffffffff168163ffffffff16111561157357600060026114c68484613b24565b6114d09190613aea565b6114da9083613b24565b6001600160a01b0388166000908152600c6020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250871415611547576020015194506109599350505050565b805163ffffffff1687111561155e5781935061156c565b611569600183613b24565b92505b50506114a4565b506001600160a01b0385166000908152600c6020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b601660205260009081526040902080546115d190613b95565b80601f01602080910402602001604051908101604052809291908181526020018280546115fd90613b95565b801561164a5780601f1061161f5761010080835404028352916020019161164a565b820191906000526020600020905b81548152906001019060200180831161162d57829003601f168201915b505050505081565b606060028054610a1790613b95565b6001600160a01b0382163314156116ba5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161085f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b0381166000908152600d602052604081205463ffffffff1680611751576000611058565b6001600160a01b0383166000908152600c6020526040812090611775600184613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03169392505050565b6117ad338361231d565b6117c95760405162461bcd60e51b815260040161085f906139ca565b6117d5848484846126f2565b50505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611806610a08565b805190602001206118144690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611940573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119c25760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c656761746542796044820152755369673a20696e76616c6964207369676e617475726560501b606482015260840161085f565b6001600160a01b0381166000908152600e602052604081208054916119e683613bd0565b919050558914611a535760405162461bcd60e51b815260206004820152603260248201527f455243373231436865636b706f696e7461626c653a3a64656c656761746542796044820152715369673a20696e76616c6964206e6f6e636560701b606482015260840161085f565b87421115611ac25760405162461bcd60e51b815260206004820152603660248201527f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960448201527514da59ce881cda59db985d1d5c9948195e1c1a5c995960521b606482015260840161085f565b611acc818b612622565b505050505b505050505050565b6000818152600360205260409020546060906001600160a01b0316611b535760405162461bcd60e51b815260206004820152602a60248201527f476e6172546f6b656e3a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161085f565b6000611b5e83612725565b9050600081604051602001611b7391906137f5565b60405160208183030381529060405290506000611b8f85611faf565b6011546000878152601360205260409081902090516387db11bd60e01b81529293506001600160a01b03909116916387db11bd91611bd391869186916004016138ae565b60006040518083038186803b158015611beb57600080fd5b505afa158015611bff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c2791908101906134df565b95945050505050565b6000546001600160a01b03163314611c5a5760405162461bcd60e51b815260040161085f9061396f565b601254600160b01b900460ff1615611ca75760405162461bcd60e51b815260206004820152601060248201526f14d95959195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6001600160a01b038116611ccd5760405162461bcd60e51b815260040161085f906139a4565b601280546001600160a01b0319166001600160a01b0383169081179091556040519081527fb3025222d01ce9a26c7f9d52bc3bfd0352366bd90a793c273fbfe1c81e0e288e90602001610929565b6000610959611d29836111a9565b6040518060600160405280603d8152602001613d33603d9139612823565b60405163c455279160e01b81526001600160a01b038381166004830152600091818416917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1169063c45527919060240160206040518083038186803b158015611daf57600080fd5b505afa158015611dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de79190613267565b6001600160a01b03161415611dfe57506001610959565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16611058565b6000546001600160a01b03163314611e565760405162461bcd60e51b815260040161085f9061396f565b6001600160a01b038116611ebb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085f565b61107a816126a2565b6000546001600160a01b03163314611eee5760405162461bcd60e51b815260040161085f9061396f565b601254600160a01b900460ff1615611f3b5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d195c881a5cc81b1bd8dad95960821b604482015260640161085f565b6001600160a01b038116611f615760405162461bcd60e51b815260040161085f906139a4565b601080546001600160a01b0319166001600160a01b0383169081179091556040519081527fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a90602001610929565b6040805160208101909152600080825260609190611fcc84612725565b6000858152601660205260409020805491925090611fe990613b95565b15905061202857600084815260166020908152604091829020915161201292859285920161369c565b604051602081830303815290604052915061204d565b818160405160200161203b92919061378b565b60405160208183030381529060405291505b5092915050565b60006001600160e01b031982166380ac58cd60e01b148061208557506001600160e01b03198216635b5e139f60e01b145b8061095957506301ffc9a760e01b6001600160e01b0319831614610959565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120d982611132565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60125460115460405163422e2e9960e01b8152600481018490526001600160a01b0391821660248201526000928392169063422e2e999060440160a06040518083038186803b15801561216457600080fd5b505afa158015612178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219c919061354d565b60008481526013602090815260408083208451815486850151878501516060808a015160809a8b015165ffffffffffff9687166bffffffffffffffffffffffff199096169590951766010000000000009487168502176bffffffffffffffffffffffff60601b1916600160601b938716840265ffffffffffff60901b191617600160901b91871682021765ffffffffffff60c01b198116600160c01b968816870290811798899055895160a081018b5291881690881617815293870486169884019890985290850484169582019590955294830482169385019390935291900416928101929092525490915061229c906001600160a01b03168585612852565b827f59c13c378d48e505ccbaff5c4f2ad0558b3ab635ca04a20a3a1b2150227410fb8260405161230d9190815165ffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b60405180910390a2509092915050565b6000818152600360205260408120546001600160a01b03166123965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161085f565b60006123a183611132565b9050806001600160a01b0316846001600160a01b031614806123dc5750836001600160a01b03166123d184610a9a565b6001600160a01b0316145b806123ec57506123ec8185611d47565b949350505050565b826001600160a01b031661240782611132565b6001600160a01b03161461246f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161085f565b6001600160a01b0382166124d15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161085f565b6124dc8383836129c4565b6124e76000826120a4565b6001600160a01b0383166000908152600460205260408120805460019290612510908490613b0d565b90915550506001600160a01b038216600090815260046020526040812080546001929061253e908490613a74565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020613d1383398151915291a4505050565b600061259882611132565b90506125a6816000846129c4565b6125b16000836120a4565b6001600160a01b03811660009081526004602052604081208054600192906125da908490613b0d565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020613d13833981519152908390a45050565b600061262d8361102d565b6001600160a01b038481166000818152600b602052604080822080546001600160a01b031916888616908117909155905194955093928516927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4600061269584611d1b565b90506117d58284836129e7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6126fd8484846123f4565b61270984848484612b93565b6117d55760405162461bcd60e51b815260040161085f9061391d565b6060816127495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612773578061275d81613bd0565b915061276c9050600a83613ad6565b915061274d565b60008167ffffffffffffffff81111561278e5761278e613c57565b6040519080825280601f01601f1916602001820160405280156127b8576020820181803683370190505b5090505b84156123ec576127cd600183613b0d565b91506127da600a86613beb565b6127e5906030613a74565b60f81b8183815181106127fa576127fa613c41565b60200101906001600160f81b031916908160001a90535061281c600a86613ad6565b94506127bc565b600081600160601b841061284a5760405162461bcd60e51b815260040161085f919061389b565b509192915050565b6001600160a01b0382166128a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161085f565b6000818152600360205260409020546001600160a01b03161561290d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161085f565b612919600083836129c4565b6001600160a01b0382166000908152600460205260408120805460019290612942908490613a74565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691909117909155905183929186169190600080516020613d13833981519152908290a480826001600160a01b0316846001600160a01b0316600080516020613d1383398151915260405160405180910390a4505050565b6129cf838383612ca0565b610c406129db8461102d565b6129e48461102d565b60015b816001600160a01b0316836001600160a01b031614158015612a1257506000816001600160601b0316115b15610c40576001600160a01b03831615612ad7576001600160a01b0383166000908152600d602052604081205463ffffffff169081612a52576000612a9e565b6001600160a01b0385166000908152600c6020526040812090612a76600185613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000612ac58285604051806060016040528060378152602001613d7060379139612d58565b9050612ad386848484612d9a565b5050505b6001600160a01b03821615610c40576001600160a01b0382166000908152600d602052604081205463ffffffff169081612b12576000612b5e565b6001600160a01b0384166000908152600c6020526040812090612b36600185613b24565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000612b858285604051806060016040528060368152602001613c9960369139612f92565b9050611ad185848484612d9a565b60006001600160a01b0384163b15612c9557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bd790339089908890889060040161385e565b602060405180830381600087803b158015612bf157600080fd5b505af1925050508015612c21575060408051601f3d908101601f19168201909252612c1e918101906134c2565b60015b612c7b573d808015612c4f576040519150601f19603f3d011682016040523d82523d6000602084013e612c54565b606091505b508051612c735760405162461bcd60e51b815260040161085f9061391d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123ec565b506001949350505050565b6001600160a01b038316612cfb57612cf681600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612d1e565b816001600160a01b0316836001600160a01b031614612d1e57612d1e8382612fdf565b6001600160a01b038216612d3557610c408161307c565b826001600160a01b0316826001600160a01b031614610c4057610c40828261312b565b6000836001600160601b0316836001600160601b031611158290612d8f5760405162461bcd60e51b815260040161085f919061389b565b506123ec8385613b49565b6000612dbe43604051806080016040528060448152602001613ccf6044913961316f565b905060008463ffffffff16118015612e1857506001600160a01b0385166000908152600c6020526040812063ffffffff831691612dfc600188613b24565b63ffffffff908116825260208201929092526040016000205416145b15612e8c576001600160a01b0385166000908152600c602052604081208391612e42600188613b24565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055612f3d565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600c82528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055612f0c846001613a8c565b6001600160a01b0386166000908152600d60205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600080612f9f8486613ab4565b9050846001600160601b0316816001600160601b031610158390612fd65760405162461bcd60e51b815260040161085f919061389b565b50949350505050565b60006001612fec846111a9565b612ff69190613b0d565b600083815260086020526040902054909150808214613049576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061308e90600190613b0d565b6000838152600a6020526040812054600980549394509092849081106130b6576130b6613c41565b9060005260206000200154905080600983815481106130d7576130d7613c41565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061310f5761310f613c2b565b6001900381819060005260206000200160009055905550505050565b6000613136836111a9565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b600081600160201b841061284a5760405162461bcd60e51b815260040161085f919061389b565b8280546131a290613b95565b90600052602060002090601f0160209004810192826131c4576000855561320a565b82601f106131dd5782800160ff1982351617855561320a565b8280016001018555821561320a579182015b8281111561320a5782358255916020019190600101906131ef565b5061321692915061321a565b5090565b5b80821115613216576000815560010161321b565b805165ffffffffffff8116811461324557600080fd5b919050565b60006020828403121561325c57600080fd5b813561105881613c6d565b60006020828403121561327957600080fd5b815161105881613c6d565b6000806040838503121561329757600080fd5b82356132a281613c6d565b915060208301356132b281613c6d565b809150509250929050565b6000806000606084860312156132d257600080fd5b83356132dd81613c6d565b925060208401356132ed81613c6d565b929592945050506040919091013590565b6000806000806080858703121561331457600080fd5b843561331f81613c6d565b9350602085013561332f81613c6d565b925060408501359150606085013567ffffffffffffffff81111561335257600080fd5b8501601f8101871361336357600080fd5b803561337661337182613a4c565b613a1b565b81815288602083850101111561338b57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156133c057600080fd5b82356133cb81613c6d565b9150602083013580151581146132b257600080fd5b600080604083850312156133f357600080fd5b82356133fe81613c6d565b946020939093013593505050565b60008060008060008060c0878903121561342557600080fd5b863561343081613c6d565b95506020870135945060408701359350606087013560ff8116811461345457600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561348157600080fd5b823561348c81613c6d565b9150602083013563ffffffff811681146132b257600080fd5b6000602082840312156134b757600080fd5b813561105881613c82565b6000602082840312156134d457600080fd5b815161105881613c82565b6000602082840312156134f157600080fd5b815167ffffffffffffffff81111561350857600080fd5b8201601f8101841361351957600080fd5b805161352761337182613a4c565b81815285602083850101111561353c57600080fd5b611c27826020830160208601613b69565b600060a0828403121561355f57600080fd5b60405160a0810181811067ffffffffffffffff8211171561358257613582613c57565b60405261358e8361322f565b815261359c6020840161322f565b60208201526135ad6040840161322f565b60408201526135be6060840161322f565b60608201526135cf6080840161322f565b60808201529392505050565b6000602082840312156135ed57600080fd5b5035919050565b60008060006040848603121561360957600080fd5b83359250602084013567ffffffffffffffff8082111561362857600080fd5b818601915086601f83011261363c57600080fd5b81358181111561364b57600080fd5b87602082850101111561365d57600080fd5b6020830194508093505050509250925092565b60008151808452613688816020860160208601613b69565b601f01601f19169290920160200192915050565b6000845160206136af8285838a01613b69565b64023b730b9160dd1b91840191825285516136d08160058501848a01613b69565b6501034b99030960d51b600593909101928301528454600b90600090600181811c908083168061370157607f831692505b86831081141561371f57634e487b7160e01b85526022600452602485fd5b808015613733576001811461374857613779565b60ff1985168988015283890187019550613779565b60008c81526020902060005b8581101561376f5781548b82018a0152908401908901613754565b505086848a010195505b50939c9b505050505050505050505050565b6000835161379d818460208801613b69565b64023b730b9160dd1b90830190815283516137bf816005840160208801613b69565b7f2069732061206d656d626572206f6620476e6172732044414f0000000000000060059290910191820152601e01949350505050565b64023b730b9160dd1b815260008251613815816005850160208701613b69565b9190910160050192915050565b7302232b9b1b934b83a34b7b71039b2ba103a379d160651b815260008251613851816014850160208701613b69565b9190910160140192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061389190830184613670565b9695505050505050565b6020815260006110586020830184613670565b60e0815260006138c160e0830186613670565b82810360208401526138d38186613670565b915050825465ffffffffffff8082166040850152808260301c166060850152808260601c166080850152808260901c1660a0850152808260c01c1660c08501525050949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600c908201526b5a45524f204144445245535360a01b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613a4457613a44613c57565b604052919050565b600067ffffffffffffffff821115613a6657613a66613c57565b50601f01601f191660200190565b60008219821115613a8757613a87613bff565b500190565b600063ffffffff808316818516808303821115613aab57613aab613bff565b01949350505050565b60006001600160601b03808316818516808303821115613aab57613aab613bff565b600082613ae557613ae5613c15565b500490565b600063ffffffff80841680613b0157613b01613c15565b92169190910492915050565b600082821015613b1f57613b1f613bff565b500390565b600063ffffffff83811690831681811015613b4157613b41613bff565b039392505050565b60006001600160601b0383811690831681811015613b4157613b41613bff565b60005b83811015613b84578181015183820152602001613b6c565b838111156117d55750506000910152565b600181811c90821680613ba957607f821691505b60208210811415613bca57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613be457613be4613bff565b5060010190565b600082613bfa57613bfa613c15565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461107a57600080fd5b6001600160e01b03198116811461107a57600080fdfe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a2646970667358221220570ed6cd6004b4c343794725ea25d2671985a9ab5c61e19b2b235374be0eb9f364736f6c63430008060033

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

0000000000000000000000000658f4ed17289144717713adffc2539ef7c2ef8e000000000000000000000000000000000000000000000000000000000000dead0000000000000000000000000cbcbf0cdbe9842fa53b7c107738714c2a9af1d5000000000000000000000000b69d980feb3c2ee143ca14feb870fe09f8dfa1fc000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000273

-----Decoded View---------------
Arg [0] : _noundersDAO (address): 0x0658f4eD17289144717713ADfFC2539eF7c2EF8e
Arg [1] : _minter (address): 0x000000000000000000000000000000000000dEaD
Arg [2] : _descriptor (address): 0x0CBcBF0cDBe9842fa53b7C107738714c2a9af1d5
Arg [3] : _seeder (address): 0xB69D980fEB3C2EE143cA14feb870FE09f8DFa1fc
Arg [4] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [5] : _initialGnarId (uint256): 627

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000658f4ed17289144717713adffc2539ef7c2ef8e
Arg [1] : 000000000000000000000000000000000000000000000000000000000000dead
Arg [2] : 0000000000000000000000000cbcbf0cdbe9842fa53b7c107738714c2a9af1d5
Arg [3] : 000000000000000000000000b69d980feb3c2ee143ca14feb870fe09f8dfa1fc
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000273


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.