ETH Price: $2,669.13 (+1.85%)

Token

Wizards (WIZ)
 

Overview

Max Total Supply

703 WIZ

Holders

279

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
44 WIZ
0x148ceb46024dccc030a0e978e89eb2afa179ef0f
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
WizardToken

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 10000 runs

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

/// @title Wizards ERC-721 token

pragma solidity ^0.8.6;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IDescriptor} from "./descriptor/IDescriptor.sol";
import {ISeeder} from "./seeder/ISeeder.sol";
import {ERC721} from "../base/ERC721.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IProxyRegistry} from "../external/opensea/IProxyRegistry.sol";
import {IWizardToken} from "./IWizards.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "../external/rarible/RoyaltiesV2Impl.sol";
import "../external/rarible/LibPart.sol";
import "../external/rarible/LibRoyaltiesV2.sol";

contract WizardToken is IWizardToken, ERC721, Ownable, RoyaltiesV2Impl {
    // support ERC2981
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

    // The address of the creators of WizardDAO
    address public creatorsDAO;

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

    // The Wizards token URI descriptor
    IDescriptor public descriptor;

    // The Wizards token seeder
    ISeeder 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 max supply wof wizards - 1
    uint256 private supply;

    // The Wizards seeds
    mapping(uint256 => ISeeder.Seed) public seeds;

    // one of one tracker
    mapping(uint256 => uint8) private oneOfOneSupply;

    // The current wizard ID
    uint256 private _currentID;

    // The last wizard one of one ID
    uint48 public lastOneOfOneId;

    // IPFS content hash of contract-level metadata
    string private _contractURIHash =
        "QmYURRfzZH7UkUmffxYifyTbyQu5axg8tt9wG92wpSoigi";

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

    // keep track of amont of one of ones to know when we upload more.
    // allows us to skip expensive one of one minting ops if we need have minted
    // all available one of ones
    uint256 public lastOneOfOneCount;

    /**
     * @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 creators DAO.
     */
    modifier onlyCreatorsDAO() {
        require(msg.sender == creatorsDAO, "Sender is not the creators DAO");
        _;
    }

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

    constructor(
        address _creatorsDAO,
        address _minter,
        IDescriptor _descriptor,
        ISeeder _seeder,
        IProxyRegistry _proxyRegistry,
        uint256 _supply
    ) ERC721("Wizards", "WIZ") {
        creatorsDAO = _creatorsDAO;
        minter = _minter;
        descriptor = _descriptor;
        seeder = _seeder;
        proxyRegistry = _proxyRegistry;
        supply = _supply;
    }

    function setRoyalties(
        uint256 _tokenId,
        address payable _royaltiesReceipientAddress,
        uint96 _percentageBasisPoints
    ) public onlyOwner {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = _percentageBasisPoints;
        _royalties[0].account = _royaltiesReceipientAddress;
        _saveRoyalties(_tokenId, _royalties);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, IERC165)
        returns (bool)
    {
        if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }

        if (interfaceId == type(IERC165).interfaceId) {
            return true;
        }

        if (interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }

        return super.supportsInterface(interfaceId);
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        LibPart.Part[] memory _royalties = royalties[_tokenId];
        if (_royalties.length > 0) {
            // take a 10% royalty on secondary markets.
            return (
                _royalties[0].account,
                (_salePrice * _royalties[0].value) / 10000
            );
        }

        return (address(0), 0);
    }

    /**
     * @notice The IPFS URI of contract-level metadata.
     */
    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked("ipfs://", _contractURIHash));
    }

    /**
     * @notice Set the _contractURIHash.
     * @dev Only callable by the owner.
     */
    function setContractURIHash(string memory newContractURIHash)
        external
        onlyOwner
    {
        _contractURIHash = newContractURIHash;
    }

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

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

    /**
     * @notice Mint a Wizard to the minter, along with a possible creators reward
     * Wizard. Creators reward Wizard are minted every 6 Wizards, starting at 0,
     * so that at the start of each auction one is minted to the creators,
     * until 54 creator Wizards have been minted. 1 wizard every day for 54 days.
     * @dev Call _mintTo with the to address(es).
     */
    function mint() public override onlyMinter returns (uint256) {
        // we start minting for creators at 0 so _currentID should fall
        // below (6*54)-6 which is 318.
        if (_currentID <= 318 && _currentID % 6 == 0) {
            _mintTo(creatorsDAO, _currentID++, false, 0);
        }

        return _mintTo(minter, _currentID++, false, 0);
    }

    /**
     * @notice Mint a one of one Wizard to the minter.
     * @dev Call _mintTo with the to address(es) with the one of one id to mint.
     */
    function mintOneOfOne(uint48 oneOfOneId)
        public
        override
        onlyMinter
        returns (uint256, bool)
    {
        uint256 oneCount = descriptor.oneOfOnesCount();

        // validation; ensure a valid one of one index is requested
        require(
            uint256(oneOfOneId) < oneCount && oneOfOneId >= 0,
            "one of one does not exist"
        );

        if (lastOneOfOneCount == oneCount) {
            // mint a generated wizard if we are out of one of ones.
            // skip expensive ops below.
            return (_mintTo(minter, _currentID++, false, 0), false);
        }

        // check if oneOfOneId > 0 in mapping if is 0 use it. if 1 then iterate from
        // 0 -> oneCount and find a oneOfOne with no value set. if we don't get any with a value set
        // then just mint a regular wizard
        uint8 oo = oneOfOneSupply[oneOfOneId];
        if (oo == 0) {
            uint256 wizardId = _mintTo(minter, _currentID++, true, oneOfOneId);
            // set that we have minted a one of one at index
            oneOfOneSupply[oneOfOneId] = 1;
            lastOneOfOneId = oneOfOneId;
            return (wizardId, true);
        }

        // find a unused one of one to mint
        for (uint256 i = 0; i < oneCount; i++) {
            uint8 ofo = oneOfOneSupply[i];
            if (ofo == 0) {
                uint256 wizardId = _mintTo(
                    minter,
                    _currentID++,
                    true,
                    uint48(i)
                );
                oneOfOneSupply[i] = 1;
                lastOneOfOneId = uint48(i);
                return (wizardId, true);
            }
        }

        // we have spent all one of ones in the descriptor. record descriptor count
        // so next time we try to mint a one of one and it hasn't changed (we know
        // because we check oneOfOne supply above) we can skip the expensive map
        // iteration above.
        lastOneOfOneCount = oneCount;

        // mint a generated wizard if we are out of one of ones.
        return (_mintTo(minter, _currentID++, false, 0), false);
    }

    /**
     * @notice Burn a wizard.
     */
    function burn(uint256 wizardId) public override onlyMinter {
        _burn(wizardId);
        emit WizardBurned(wizardId);
    }

    /**
     * @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)
    {
        // if this throws an error then this wizard was burned or does not exist yet.
        require(
            _exists(tokenId),
            "WizardsToken: URI query for nonexistent token"
        );
        return descriptor.tokenURI(tokenId, seeds[tokenId]);
    }

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

    /**
     * @notice Set the WizardsDAO address.
     * @dev Only callable by WizardsDAO.
     */
    function setCreatorsDAO(address _creatorsDAO)
        external
        override
        onlyCreatorsDAO
    {
        creatorsDAO = _creatorsDAO;
        emit CreatorsDAOUpdated(_creatorsDAO);
    }

    /**
     * @notice Set the token minter.
     * @dev Only callable by the owner when not locked.
     */
    function setMinter(address _minter)
        external
        override
        onlyOwner
        whenMinterNotLocked
    {
        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(IDescriptor _descriptor)
        external
        override
        onlyOwner
        whenDescriptorNotLocked
    {
        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(ISeeder _seeder)
        external
        override
        onlyOwner
        whenSeederNotLocked
    {
        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 Set the wizard total supply.
     * @dev Only callable by the owner.
     */
    function setSupply(uint256 _supply) external override onlyOwner {
        supply = _supply;
        emit SupplyUpdated(_supply);
    }

    /**
     * @notice Mint a Wizard with `wizardId` to the provided `to` address.
     */
    function _mintTo(
        address to,
        uint256 wizardId,
        bool isOneOfOne,
        uint48 oneOfOneIndex
    ) internal returns (uint256) {
        // wizardId starts at 0 so should be less than 2000
        require(wizardId < supply, "All wizards have been minted");

        ISeeder.Seed memory seed = seeds[wizardId] = seeder.generateSeed(
            wizardId,
            descriptor,
            isOneOfOne,
            oneOfOneIndex
        );

        _mint(owner(), to, wizardId);
        emit WizardCreated(wizardId, seed);

        return wizardId;
    }
}

File 2 of 20 : 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 20 : IDescriptor.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for Descriptor

pragma solidity ^0.8.6;

import { ISeeder } from '../seeder/ISeeder.sol';

interface IDescriptor {
    event PartsLocked();

    event DataURIToggled(bool enabled);

    event BaseURIUpdated(string baseURI);

    function arePartsLocked() external returns (bool);

    function isDataURIEnabled() external returns (bool);    

    function baseURI() external returns (string memory);

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

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

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


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

    function backgroundCount() external view returns (uint256);

    function addManyBackgrounds(string[] calldata backgrounds) external;

    function addBackground(string calldata background) external;    

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

    function oneOfOnesCount() external view returns (uint256);

    function addOneOfOne(bytes calldata _oneOfOne) external;

    function addManyOneOfOnes(bytes[] calldata _oneOfOnes) external;    


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

    function skinsCount() external view returns (uint256);

    function addManySkins(bytes[] calldata skins) external;

    function addSkin(bytes calldata skin) external;


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

    function hatsCount() external view returns (uint256);

    function addManyHats(bytes[] calldata hats) external;

    function addHat(bytes calldata hat) external;

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

    function clothesCount() external view returns (uint256);

    function addManyClothes(bytes[] calldata ears) external;

    function addClothes(bytes calldata ear) external;


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

    function mouthsCount() external view returns (uint256);

    function addManyMouths(bytes[] calldata mouths) external;

    function addMouth(bytes calldata mouth) external;

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

    function eyesCount() external view returns (uint256);

    function addManyEyes(bytes[] calldata eyes) external;

    function addEyes(bytes calldata eye) external;


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

    function accessoryCount() external view returns (uint256);

    function addManyAccessories(bytes[] calldata noses) external;

    function addAccessory(bytes calldata nose) external;


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

    function bgItemsCount() external view returns (uint256);

    function addManyBgItems(bytes[] calldata noses) external;

    function addBgItem(bytes calldata nose) external;


    function lockParts() external;

    function toggleDataURIEnabled() external;

    function setBaseURI(string calldata baseURI) external;

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

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

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

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

File 4 of 20 : ISeeder.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for Seeder

pragma solidity ^0.8.6;

import { IDescriptor } from '../descriptor/IDescriptor.sol';

// "Skin", "Cloth", "Eye", "Mouth", "Acc", "Item", "Hat"
interface ISeeder {
    struct Seed {
        uint48 background;
        uint48 skin;
        uint48 clothes;
        uint48 eyes;
        uint48 mouth;
        uint48 accessory;
        uint48 bgItem;
        uint48 hat;
        bool oneOfOne;
        uint48 oneOfOneIndex;
    }

    function generateSeed(uint256 wizardId, IDescriptor descriptor, bool isOneOfOne, uint48 isOneOfOneIndex) external view returns (Seed memory);
}

File 5 of 20 : 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 6 of 20 : 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 20 : IProxyRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

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

File 8 of 20 : IWizards.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Wizards ERC-721 token

pragma solidity ^0.8.6;

import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {ISeeder} from "./seeder/ISeeder.sol";
import {IDescriptor} from "./descriptor/IDescriptor.sol";

interface IWizardToken is IERC721 {
    event SupplyUpdated(uint256 indexed supply);

    event WizardCreated(uint256 indexed tokenId, ISeeder.Seed seed);

    event WizardBurned(uint256 indexed tokenId);

    event CreatorsDAOUpdated(address creatorsDAO);

    event MinterUpdated(address minter);

    event MinterLocked();

    event DescriptorUpdated(IDescriptor descriptor);

    event DescriptorLocked();

    event SeederUpdated(ISeeder seeder);

    event SeederLocked();

    function mint() external returns (uint256);

    function mintOneOfOne(uint48 oneOfOneId) external returns (uint256, bool);

    function burn(uint256 tokenId) external;

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

    function setCreatorsDAO(address creatorsDAO) external;

    function setMinter(address minter) external;

    function lockMinter() external;

    function setDescriptor(IDescriptor descriptor) external;

    function lockDescriptor() external;

    function setSeeder(ISeeder seeder) external;

    function lockSeeder() external;

    function setSupply(uint256 supply) external;
}

File 9 of 20 : 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 10 of 20 : RoyaltiesV2Impl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

import "./AbstractRoyalties.sol";
import "./RoyaltiesV2.sol";

contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {
    function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) {
        return royalties[id];
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) override internal {
        emit RoyaltiesSet(_id, _royalties);
    }
}

File 11 of 20 : LibPart.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

File 12 of 20 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

library LibRoyaltiesV2 {
    /*
    * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
    */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}

File 13 of 20 : 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 14 of 20 : 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 15 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 16 of 20 : 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 17 of 20 : 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 18 of 20 : 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 19 of 20 : AbstractRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

import "./LibPart.sol";

abstract contract AbstractRoyalties {
    mapping (uint256 => LibPart.Part[]) public royalties;

    function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal {
        for (uint i = 0; i < _royalties.length; i++) {
            require(_royalties[i].account != address(0x0), "Recipient should be present");
            require(_royalties[i].value != 0, "Royalty value should be positive");
            royalties[_id].push(_royalties[i]);
        }
        _onRoyaltiesSet(_id, _royalties);
    }

    function _updateAccount(uint256 _id, address _from, address _to) internal {
        uint length = royalties[_id].length;
        for(uint i = 0; i < length; i++) {
            if (royalties[_id][i].account == _from) {
                royalties[_id][i].account = payable(address(uint160(_to)));
            }
        }
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) virtual internal;
}

File 20 of 20 : RoyaltiesV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

import "./LibPart.sol";

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_creatorsDAO","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"contract IDescriptor","name":"_descriptor","type":"address"},{"internalType":"contract ISeeder","name":"_seeder","type":"address"},{"internalType":"contract IProxyRegistry","name":"_proxyRegistry","type":"address"},{"internalType":"uint256","name":"_supply","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":false,"internalType":"address","name":"creatorsDAO","type":"address"}],"name":"CreatorsDAOUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"DescriptorLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IDescriptor","name":"descriptor","type":"address"}],"name":"DescriptorUpdated","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":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[],"name":"SeederLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ISeeder","name":"seeder","type":"address"}],"name":"SeederUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"SupplyUpdated","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WizardBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint48","name":"background","type":"uint48"},{"internalType":"uint48","name":"skin","type":"uint48"},{"internalType":"uint48","name":"clothes","type":"uint48"},{"internalType":"uint48","name":"eyes","type":"uint48"},{"internalType":"uint48","name":"mouth","type":"uint48"},{"internalType":"uint48","name":"accessory","type":"uint48"},{"internalType":"uint48","name":"bgItem","type":"uint48"},{"internalType":"uint48","name":"hat","type":"uint48"},{"internalType":"bool","name":"oneOfOne","type":"bool"},{"internalType":"uint48","name":"oneOfOneIndex","type":"uint48"}],"indexed":false,"internalType":"struct ISeeder.Seed","name":"seed","type":"tuple"}],"name":"WizardCreated","type":"event"},{"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":"wizardId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorsDAO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"contract IDescriptor","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":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"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":"lastOneOfOneCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastOneOfOneId","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"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":[{"internalType":"uint48","name":"oneOfOneId","type":"uint48"}],"name":"mintOneOfOne","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"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":[],"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":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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 ISeeder","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":"skin","type":"uint48"},{"internalType":"uint48","name":"clothes","type":"uint48"},{"internalType":"uint48","name":"eyes","type":"uint48"},{"internalType":"uint48","name":"mouth","type":"uint48"},{"internalType":"uint48","name":"accessory","type":"uint48"},{"internalType":"uint48","name":"bgItem","type":"uint48"},{"internalType":"uint48","name":"hat","type":"uint48"},{"internalType":"bool","name":"oneOfOne","type":"bool"},{"internalType":"uint48","name":"oneOfOneIndex","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":"string","name":"newContractURIHash","type":"string"}],"name":"setContractURIHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_creatorsDAO","type":"address"}],"name":"setCreatorsDAO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IDescriptor","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_royaltiesReceipientAddress","type":"address"},{"internalType":"uint96","name":"_percentageBasisPoints","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISeeder","name":"_seeder","type":"address"}],"name":"setSeeder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","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":"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"}]

610100604052602e60a0818152906200444760c03980516200002a9160119160209091019062000198565b503480156200003857600080fd5b5060405162004475380380620044758339810160408190526200005b916200023e565b604080518082018252600781526657697a6172647360c81b6020808301918252835180850190945260038452622ba4ad60e91b908401528151919291620000a59160009162000198565b508051620000bb90600190602084019062000198565b505050620000d8620000d26200014260201b60201c565b62000146565b600880546001600160a01b03199081166001600160a01b039889161790915560098054821696881696909617909555600a8054861694871694909417909355600b8054909416919094161790915560609190911b6001600160601b031916608052600c556200031c565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a690620002c6565b90600052602060002090601f016020900481019282620001ca576000855562000215565b82601f10620001e557805160ff191683800117855562000215565b8280016001018555821562000215579182015b8281111562000215578251825591602001919060010190620001f8565b506200022392915062000227565b5090565b5b8082111562000223576000815560010162000228565b60008060008060008060c087890312156200025857600080fd5b8651620002658162000303565b6020880151909650620002788162000303565b60408801519095506200028b8162000303565b60608801519094506200029e8162000303565b6080880151909350620002b18162000303565b8092505060a087015190509295509295509295565b600181811c90821680620002db57607f821691505b60208210811415620002fd57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200031957600080fd5b50565b60805160601c61410562000342600039600081816105ec01526122c301526141056000f3fe608060405234801561001057600080fd5b506004361061030a5760003560e01c8063715018a61161019c578063baedc1c4116100ee578063d50b31eb11610097578063f0503e8011610071578063f0503e80146106eb578063f2fde38b14610809578063fca3b5aa1461081c57600080fd5b8063d50b31eb146106bd578063e8a3d485146106d0578063e985e9c5146106d857600080fd5b8063c87b56dd116100c8578063c87b56dd14610663578063c8fc0c2314610676578063cad96cca1461069d57600080fd5b8063baedc1c414610621578063c1b8e4e114610634578063c50b7bc81461065a57600080fd5b806395d89b4111610150578063ad1a26ca1161012a578063ad1a26ca146105d4578063b50cbd9f146105e7578063b88d4fde1461060e57600080fd5b806395d89b41146105a65780639d36f4ca146105ae578063a22cb465146105c157600080fd5b80638924af74116101815780638924af741461052e5780638c825c081461056d5780638da5cb5b1461059557600080fd5b8063715018a61461051e57806376daebe11461052657600080fd5b80632a55205a1161026057806342966c68116102095780636352211e116101e35780636352211e146104e5578063684931ed146104f857806370a082311461050b57600080fd5b806342966c68146104b75780635ac1e3bb146104ca5780635f295a67146104dd57600080fd5b806340854e271161023a57806340854e271461047357806341b5d0de1461049c57806342842e0e146104a457600080fd5b80632a55205a1461041b578063303e74df1461044d5780633b4c4b251461046057600080fd5b8063095ea7b3116102c257806318160ddd1161029c57806318160ddd146103db5780631e688e10146103e357806323b872dd1461040857600080fd5b8063095ea7b31461039f5780631249c58b146103b2578063143094db146103c857600080fd5b806306fdde03116102f357806306fdde031461034c5780630754617214610361578063081812fc1461038c57600080fd5b806301b9a3971461030f57806301ffc9a714610324575b600080fd5b61032261031d36600461367c565b61082f565b005b61033761033236600461380a565b610967565b60405190151581526020015b60405180910390f35b610354610a6e565b6040516103439190613c88565b600954610374906001600160a01b031681565b6040516001600160a01b039091168152602001610343565b61037461039a3660046139cc565b610b00565b6103226103ad3660046137de565b610ba6565b6103ba610cd8565b604051908152602001610343565b6103226103d63660046139fe565b610dad565b600f546103ba565b600b546103379074010000000000000000000000000000000000000000900460ff1681565b6103226104163660046136ef565b610ec5565b61042e610429366004613a51565b610f4c565b604080516001600160a01b039093168352602083019190915201610343565b600a54610374906001600160a01b031681565b61032261046e3660046139cc565b61106d565b6010546104859065ffffffffffff1681565b60405165ffffffffffff9091168152602001610343565b6103226110fa565b6103226104b23660046136ef565b61122b565b6103226104c53660046139cc565b611246565b6103546104d83660046139cc565b6112d7565b6103226114b1565b6103746104f33660046139cc565b6115e4565b600b54610374906001600160a01b031681565b6103ba61051936600461367c565b61166f565b610322611709565b61032261176f565b61054161053c366004613a51565b61189e565b604080516001600160a01b0390931683526bffffffffffffffffffffffff909116602083015201610343565b61058061057b366004613a73565b6118fd565b60408051928352901515602083015201610343565b6006546001600160a01b0316610374565b610354611c73565b6103226105bc36600461367c565b611c82565b6103226105cf3660046137b0565b611d42565b600854610374906001600160a01b031681565b6103747f000000000000000000000000000000000000000000000000000000000000000081565b61032261061c366004613730565b611e25565b61032261062f366004613844565b611ead565b600b54610337907501000000000000000000000000000000000000000000900460ff1681565b6103ba60125481565b6103546106713660046139cc565b611f1e565b600b5461033790760100000000000000000000000000000000000000000000900460ff1681565b6106b06106ab3660046139cc565b61208a565b6040516103439190613c75565b6103226106cb36600461367c565b61212f565b61035461225c565b6103376106e63660046136b6565b612284565b6107a76106f93660046139cc565b600d602052600090815260409020805460019091015465ffffffffffff8083169266010000000000008082048316936c0100000000000000000000000080840485169472010000000000000000000000000000000000008086048216957801000000000000000000000000000000000000000000000000900482169482851694908104831693810483169291810460ff1691730100000000000000000000000000000000000000909104168a565b6040805165ffffffffffff9b8c168152998b1660208b0152978a16978901979097529488166060880152928716608087015290861660a0860152851660c0850152841660e0840152151561010083015290911661012082015261014001610343565b61032261081736600461367c565b612385565b61032261082a36600461367c565b612467565b6006546001600160a01b0316331461088e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b547501000000000000000000000000000000000000000000900460ff16156108fa5760405162461bcd60e51b815260206004820152601460248201527f44657363726970746f72206973206c6f636b65640000000000000000000000006044820152606401610885565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f6e66ab22238a5471005895947c8f57db923c2a9c9c73180eff80864c21295c1b906020015b60405180910390a150565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f44c74bcc0000000000000000000000000000000000000000000000000000000014156109bb57506001919050565b7fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a7000000000000000000000000000000000000000000000000000000001415610a0d57506001919050565b7fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001415610a5f57506001919050565b610a6882612592565b92915050565b606060008054610a7d90613f0d565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa990613f0d565b8015610af65780601f10610acb57610100808354040283529160200191610af6565b820191906000526020600020905b815481529060010190602001808311610ad957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b8a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610885565b506000908152600460205260409020546001600160a01b031690565b6000610bb1826115e4565b9050806001600160a01b0316836001600160a01b03161415610c3b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610885565b336001600160a01b0382161480610c575750610c578133612284565b610cc95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610885565b610cd38383612675565b505050565b6009546000906001600160a01b03163314610d355760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420746865206d696e74657200000000000000006044820152606401610885565b61013e600f5411158015610d5557506006600f54610d539190613f9a565b155b15610d8857600854600f8054610d86926001600160a01b0316916000610d7a83613f61565b919050556000806126fb565b505b600954600f8054610da8926001600160a01b0316916000610d7a83613f61565b905090565b6006546001600160a01b03163314610e075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610e1e5790505090508181600081518110610e5b57610e5b61400c565b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff16815250508281600081518110610e9d57610e9d61400c565b60209081029190910101516001600160a01b039091169052610ebf8482612bd9565b50505050565b610ecf3382612d78565b610f415760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610885565b610cd3838383612e58565b6000828152600760209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610fdf57600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101610f7a565b50505050905060008151111561105d57806000815181106110025761100261400c565b602002602001015160000151612710826000815181106110245761102461400c565b6020026020010151602001516bffffffffffffffffffffffff16866110499190613e8d565b6110539190613e79565b9250925050611066565b60008092509250505b9250929050565b6006546001600160a01b031633146110c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600c81905560405181907fea4bfee7f9fb38136c61cc04b6e56efc93eaf1beef326dbc47495b358385914c90600090a250565b6006546001600160a01b031633146111545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b547501000000000000000000000000000000000000000000900460ff16156111c05760405162461bcd60e51b815260206004820152601460248201527f44657363726970746f72206973206c6f636b65640000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790556040517f593e31e306c198bef259d839f7c6dc4ff7fc10c07f76fab193a210b03704105f90600090a1565b610cd383838360405180602001604052806000815250611e25565b6009546001600160a01b031633146112a05760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420746865206d696e74657200000000000000006044820152606401610885565b6112a98161303d565b60405181907fdbe63f1c27babbb668c6712beea279fdacbf8eece4d96ba925e7a533346d84ca90600090a250565b6000818152600260205260409020546060906001600160a01b03166113645760405162461bcd60e51b815260206004820152602d60248201527f57697a61726473546f6b656e3a2055524920717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610885565b600a546000838152600d60205260409081902090517f40a2977500000000000000000000000000000000000000000000000000000000815260048101859052815465ffffffffffff8082166024840152603082811c82166044850152606083811c83166064860152609084811c8416608487015260c09490941c831660a486015260019095015480831660c48601529081901c821660e48501529384901c81166101048401529083901c60ff16151561012483015260989290921c9091166101448201526001600160a01b03909116906340a2977590610164015b60006040518083038186803b15801561145757600080fd5b505afa15801561146b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a68919081019061388d565b6006546001600160a01b0316331461150b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b54760100000000000000000000000000000000000000000000900460ff16156115785760405162461bcd60e51b815260206004820152601060248201527f536565646572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff167601000000000000000000000000000000000000000000001790556040517ff59561f22794afcfb1e6be5c4733f5449fd167252a96b74bb06d341fb0dac7ed90600090a1565b6000818152600260205260408120546001600160a01b031680610a685760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610885565b60006001600160a01b0382166116ed5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610885565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b61176d60006130f0565b565b6006546001600160a01b031633146117c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b5474010000000000000000000000000000000000000000900460ff16156118345760405162461bcd60e51b815260206004820152601060248201527f4d696e746572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790556040517f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6690600090a1565b600760205281600052604060002081815481106118ba57600080fd5b6000918252602090912001546001600160a01b03811692507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16905082565b60095460009081906001600160a01b0316331461195c5760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420746865206d696e74657200000000000000006044820152606401610885565b600a54604080517f50271c1600000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916350271c16916004808301926020929190829003018186803b1580156119ba57600080fd5b505afa1580156119ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f291906139e5565b9050808465ffffffffffff16108015611a09575060015b611a555760405162461bcd60e51b815260206004820152601960248201527f6f6e65206f66206f6e6520646f6573206e6f74206578697374000000000000006044820152606401610885565b806012541415611a8a57600954600f8054611a7f926001600160a01b0316916000610d7a83613f61565b946000945092505050565b65ffffffffffff84166000908152600e602052604090205460ff1680611b5857600954600f8054600092611adb926001600160a01b03909116919084611acf83613f61565b919050556001896126fb565b65ffffffffffff87166000818152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155601080547fffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000169092179091559095509350611c6e92505050565b60005b82811015611c3f576000818152600e602052604090205460ff1680611c2c57600954600f8054600092611bab926001600160a01b03909116919084611b9f83613f61565b919050556001866126fb565b6000848152600e60205260409020805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155601080547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001665ffffffffffff909616959095179094559650919450611c6e9350505050565b5080611c3781613f61565b915050611b5b565b506012829055600954600f8054611c65926001600160a01b0316916000610d7a83613f61565b60009350935050505b915091565b606060018054610a7d90613f0d565b6008546001600160a01b03163314611cdc5760405162461bcd60e51b815260206004820152601e60248201527f53656e646572206973206e6f74207468652063726561746f72732044414f00006044820152606401610885565b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f25e7d5026e0fd314deaf23ad9dd18d9accf2131502d2711ba2aa789853ac7c929060200161095c565b6001600160a01b038216331415611d9b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610885565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611e2f3383612d78565b611ea15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610885565b610ebf8484848461315a565b6006546001600160a01b03163314611f075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b8051611f1a90601190602084019061358a565b5050565b6000818152600260205260409020546060906001600160a01b0316611fab5760405162461bcd60e51b815260206004820152602d60248201527f57697a61726473546f6b656e3a2055524920717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610885565b600a546000838152600d60205260409081902090517f81d23bd200000000000000000000000000000000000000000000000000000000815260048101859052815465ffffffffffff8082166024840152603082811c82166044850152606083811c83166064860152609084811c8416608487015260c09490941c831660a486015260019095015480831660c48601529081901c821660e48501529384901c81166101048401529083901c60ff16151561012483015260989290921c9091166101448201526001600160a01b03909116906381d23bd2906101640161143f565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561212457600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16818301528252600190920191016120bf565b505050509050919050565b6006546001600160a01b031633146121895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b54760100000000000000000000000000000000000000000000900460ff16156121f65760405162461bcd60e51b815260206004820152601060248201527f536565646572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527fb3025222d01ce9a26c7f9d52bc3bfd0352366bd90a793c273fbfe1c81e0e288e9060200161095c565b606060116040516020016122709190613b37565b604051602081830303815290604052905090565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c45527919060240160206040518083038186803b15801561230557600080fd5b505afa158015612319573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233d9190613699565b6001600160a01b0316141561235457506001610a68565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6006546001600160a01b031633146123df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b6001600160a01b03811661245b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610885565b612464816130f0565b50565b6006546001600160a01b031633146124c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b5474010000000000000000000000000000000000000000900460ff161561252c5760405162461bcd60e51b815260206004820152601060248201527f4d696e746572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a9060200161095c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061262557507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a6857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a68565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906126c2826115e4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000600c54841061274e5760405162461bcd60e51b815260206004820152601c60248201527f416c6c2077697a617264732068617665206265656e206d696e746564000000006044820152606401610885565b600b54600a546040517f66438bc2000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b039182166024820152851515604482015265ffffffffffff8516606482015260009291909116906366438bc2906084016101406040518083038186803b1580156127d157600080fd5b505afa1580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128099190613904565b600d600087815260200190815260200160002060008201518160000160006101000a81548165ffffffffffff021916908365ffffffffffff16021790555060208201518160000160066101000a81548165ffffffffffff021916908365ffffffffffff160217905550604082015181600001600c6101000a81548165ffffffffffff021916908365ffffffffffff16021790555060608201518160000160126101000a81548165ffffffffffff021916908365ffffffffffff16021790555060808201518160000160186101000a81548165ffffffffffff021916908365ffffffffffff16021790555060a08201518160010160006101000a81548165ffffffffffff021916908365ffffffffffff16021790555060c08201518160010160066101000a81548165ffffffffffff021916908365ffffffffffff16021790555060e082015181600101600c6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506101008201518160010160126101000a81548160ff0219169083151502179055506101208201518160010160136101000a81548165ffffffffffff021916908365ffffffffffff1602179055509050604051806101400160405290816000820160009054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160069054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201600c9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160129054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160189054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160009054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160069054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160018201600c9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160129054906101000a900460ff161515151581526020016001820160139054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815250509050612b94612b8d6006546001600160a01b031690565b87876131e3565b847fed9371a1c5090c1e97f8c79affd027822d569076959d7d72f1b48d2b957c066582604051612bc49190613c9b565b60405180910390a2849150505b949350505050565b60005b8151811015612d6d5760006001600160a01b0316828281518110612c0257612c0261400c565b6020026020010151600001516001600160a01b03161415612c655760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e7400000000006044820152606401610885565b818181518110612c7757612c7761400c565b6020026020010151602001516bffffffffffffffffffffffff1660001415612ce15760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f7369746976656044820152606401610885565b60008381526007602052604090208251839083908110612d0357612d0361400c565b6020908102919091018101518254600181018455600093845292829020815191909201516bffffffffffffffffffffffff1674010000000000000000000000000000000000000000026001600160a01b039091161791015580612d6581613f61565b915050612bdc565b50611f1a8282613385565b6000818152600260205260408120546001600160a01b0316612e025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610885565b6000612e0d836115e4565b9050806001600160a01b0316846001600160a01b03161480612e485750836001600160a01b0316612e3d84610b00565b6001600160a01b0316145b80612bd15750612bd18185612284565b826001600160a01b0316612e6b826115e4565b6001600160a01b031614612ee75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610885565b6001600160a01b038216612f625760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610885565b612f6d600082612675565b6001600160a01b0383166000908152600360205260408120805460019290612f96908490613eca565b90915550506001600160a01b0382166000908152600360205260408120805460019290612fc4908490613e61565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613048826115e4565b9050613055600083612675565b6001600160a01b038116600090815260036020526040812080546001929061307e908490613eca565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613165848484612e58565b613171848484846133c2565b610ebf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610885565b6001600160a01b0382166132395760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610885565b6000818152600260205260409020546001600160a01b03161561329e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610885565b6001600160a01b03821660009081526003602052604081208054600192906132c7908490613e61565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516133b6929190613d89565b60405180910390a15050565b60006001600160a01b0384163b15613582576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061341f903390899088908890600401613c39565b602060405180830381600087803b15801561343957600080fd5b505af1925050508015613487575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261348491810190613827565b60015b613537573d8080156134b5576040519150601f19603f3d011682016040523d82523d6000602084013e6134ba565b606091505b50805161352f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610885565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612bd1565b506001612bd1565b82805461359690613f0d565b90600052602060002090601f0160209004810192826135b857600085556135fe565b82601f106135d157805160ff19168380011785556135fe565b828001600101855582156135fe579182015b828111156135fe5782518255916020019190600101906135e3565b5061360a92915061360e565b5090565b5b8082111561360a576000815560010161360f565b600061363661363184613e1b565b613dcc565b905082815283838301111561364a57600080fd5b828260208301376000602084830101529392505050565b805161366c8161407f565b919050565b805161366c816140bb565b60006020828403121561368e57600080fd5b813561237e8161406a565b6000602082840312156136ab57600080fd5b815161237e8161406a565b600080604083850312156136c957600080fd5b82356136d48161406a565b915060208301356136e48161406a565b809150509250929050565b60008060006060848603121561370457600080fd5b833561370f8161406a565b9250602084013561371f8161406a565b929592945050506040919091013590565b6000806000806080858703121561374657600080fd5b84356137518161406a565b935060208501356137618161406a565b925060408501359150606085013567ffffffffffffffff81111561378457600080fd5b8501601f8101871361379557600080fd5b6137a487823560208401613623565b91505092959194509250565b600080604083850312156137c357600080fd5b82356137ce8161406a565b915060208301356136e48161407f565b600080604083850312156137f157600080fd5b82356137fc8161406a565b946020939093013593505050565b60006020828403121561381c57600080fd5b813561237e8161408d565b60006020828403121561383957600080fd5b815161237e8161408d565b60006020828403121561385657600080fd5b813567ffffffffffffffff81111561386d57600080fd5b8201601f8101841361387e57600080fd5b612bd184823560208401613623565b60006020828403121561389f57600080fd5b815167ffffffffffffffff8111156138b657600080fd5b8201601f810184136138c757600080fd5b80516138d561363182613e1b565b8181528560208385010111156138ea57600080fd5b6138fb826020830160208601613ee1565b95945050505050565b6000610140828403121561391757600080fd5b61391f613da2565b61392883613671565b815261393660208401613671565b602082015261394760408401613671565b604082015261395860608401613671565b606082015261396960808401613671565b608082015261397a60a08401613671565b60a082015261398b60c08401613671565b60c082015261399c60e08401613671565b60e08201526101006139af818501613661565b908201526101206139c1848201613671565b908201529392505050565b6000602082840312156139de57600080fd5b5035919050565b6000602082840312156139f757600080fd5b5051919050565b600080600060608486031215613a1357600080fd5b833592506020840135613a258161406a565b915060408401356bffffffffffffffffffffffff81168114613a4657600080fd5b809150509250925092565b60008060408385031215613a6457600080fd5b50508035926020909101359150565b600060208284031215613a8557600080fd5b813561237e816140bb565b600081518084526020808501945080840160005b83811015613ae257815180516001600160a01b031688528301516bffffffffffffffffffffffff168388015260409096019590820190600101613aa4565b509495945050505050565b60008151808452613b05816020860160208601613ee1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b7f697066733a2f2f000000000000000000000000000000000000000000000000008152600060076000845481600182811c915080831680613b7957607f831692505b6020808410821415613bb2577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613bc65760018114613bf957613c2a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616888b015287858b01019650613c2a565b60008b81526020902060005b86811015613c205781548c82018b0152908501908301613c05565b505087858b010196505b50949998505050505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c6b6080830184613aed565b9695505050505050565b60208152600061237e6020830184613a90565b60208152600061237e6020830184613aed565b815165ffffffffffff16815261014081016020830151613cc5602084018265ffffffffffff169052565b506040830151613cdf604084018265ffffffffffff169052565b506060830151613cf9606084018265ffffffffffff169052565b506080830151613d13608084018265ffffffffffff169052565b5060a0830151613d2d60a084018265ffffffffffff169052565b5060c0830151613d4760c084018265ffffffffffff169052565b5060e0830151613d6160e084018265ffffffffffff169052565b50610100838101511515908301526101209283015165ffffffffffff16929091019190915290565b828152604060208201526000612bd16040830184613a90565b604051610140810167ffffffffffffffff81118282101715613dc657613dc661403b565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613e1357613e1361403b565b604052919050565b600067ffffffffffffffff821115613e3557613e3561403b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115613e7457613e74613fae565b500190565b600082613e8857613e88613fdd565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ec557613ec5613fae565b500290565b600082821015613edc57613edc613fae565b500390565b60005b83811015613efc578181015183820152602001613ee4565b83811115610ebf5750506000910152565b600181811c90821680613f2157607f821691505b60208210811415613f5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f9357613f93613fae565b5060010190565b600082613fa957613fa9613fdd565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461246457600080fd5b801515811461246457600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461246457600080fd5b65ffffffffffff8116811461246457600080fdfea2646970667358221220689004804b3afd16aabe41870540c16e31cb56b749512b9e9045363ea46fee5464736f6c63430008060033516d59555252667a5a4837556b556d6666785969667954627951753561786738747439774739327770536f696769000000000000000000000000831e5024eee6146c62444cb9d96c5b76f199523c000000000000000000000000b0cbf686d058091ba484d1899f9bc0cb2c233fe000000000000000000000000051b2ccc1c72520d6024443ce11405fd0c7f73a6a000000000000000000000000bd5ccd56400460e8e72209476f65c77774d18482000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000007d0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061030a5760003560e01c8063715018a61161019c578063baedc1c4116100ee578063d50b31eb11610097578063f0503e8011610071578063f0503e80146106eb578063f2fde38b14610809578063fca3b5aa1461081c57600080fd5b8063d50b31eb146106bd578063e8a3d485146106d0578063e985e9c5146106d857600080fd5b8063c87b56dd116100c8578063c87b56dd14610663578063c8fc0c2314610676578063cad96cca1461069d57600080fd5b8063baedc1c414610621578063c1b8e4e114610634578063c50b7bc81461065a57600080fd5b806395d89b4111610150578063ad1a26ca1161012a578063ad1a26ca146105d4578063b50cbd9f146105e7578063b88d4fde1461060e57600080fd5b806395d89b41146105a65780639d36f4ca146105ae578063a22cb465146105c157600080fd5b80638924af74116101815780638924af741461052e5780638c825c081461056d5780638da5cb5b1461059557600080fd5b8063715018a61461051e57806376daebe11461052657600080fd5b80632a55205a1161026057806342966c68116102095780636352211e116101e35780636352211e146104e5578063684931ed146104f857806370a082311461050b57600080fd5b806342966c68146104b75780635ac1e3bb146104ca5780635f295a67146104dd57600080fd5b806340854e271161023a57806340854e271461047357806341b5d0de1461049c57806342842e0e146104a457600080fd5b80632a55205a1461041b578063303e74df1461044d5780633b4c4b251461046057600080fd5b8063095ea7b3116102c257806318160ddd1161029c57806318160ddd146103db5780631e688e10146103e357806323b872dd1461040857600080fd5b8063095ea7b31461039f5780631249c58b146103b2578063143094db146103c857600080fd5b806306fdde03116102f357806306fdde031461034c5780630754617214610361578063081812fc1461038c57600080fd5b806301b9a3971461030f57806301ffc9a714610324575b600080fd5b61032261031d36600461367c565b61082f565b005b61033761033236600461380a565b610967565b60405190151581526020015b60405180910390f35b610354610a6e565b6040516103439190613c88565b600954610374906001600160a01b031681565b6040516001600160a01b039091168152602001610343565b61037461039a3660046139cc565b610b00565b6103226103ad3660046137de565b610ba6565b6103ba610cd8565b604051908152602001610343565b6103226103d63660046139fe565b610dad565b600f546103ba565b600b546103379074010000000000000000000000000000000000000000900460ff1681565b6103226104163660046136ef565b610ec5565b61042e610429366004613a51565b610f4c565b604080516001600160a01b039093168352602083019190915201610343565b600a54610374906001600160a01b031681565b61032261046e3660046139cc565b61106d565b6010546104859065ffffffffffff1681565b60405165ffffffffffff9091168152602001610343565b6103226110fa565b6103226104b23660046136ef565b61122b565b6103226104c53660046139cc565b611246565b6103546104d83660046139cc565b6112d7565b6103226114b1565b6103746104f33660046139cc565b6115e4565b600b54610374906001600160a01b031681565b6103ba61051936600461367c565b61166f565b610322611709565b61032261176f565b61054161053c366004613a51565b61189e565b604080516001600160a01b0390931683526bffffffffffffffffffffffff909116602083015201610343565b61058061057b366004613a73565b6118fd565b60408051928352901515602083015201610343565b6006546001600160a01b0316610374565b610354611c73565b6103226105bc36600461367c565b611c82565b6103226105cf3660046137b0565b611d42565b600854610374906001600160a01b031681565b6103747f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b61032261061c366004613730565b611e25565b61032261062f366004613844565b611ead565b600b54610337907501000000000000000000000000000000000000000000900460ff1681565b6103ba60125481565b6103546106713660046139cc565b611f1e565b600b5461033790760100000000000000000000000000000000000000000000900460ff1681565b6106b06106ab3660046139cc565b61208a565b6040516103439190613c75565b6103226106cb36600461367c565b61212f565b61035461225c565b6103376106e63660046136b6565b612284565b6107a76106f93660046139cc565b600d602052600090815260409020805460019091015465ffffffffffff8083169266010000000000008082048316936c0100000000000000000000000080840485169472010000000000000000000000000000000000008086048216957801000000000000000000000000000000000000000000000000900482169482851694908104831693810483169291810460ff1691730100000000000000000000000000000000000000909104168a565b6040805165ffffffffffff9b8c168152998b1660208b0152978a16978901979097529488166060880152928716608087015290861660a0860152851660c0850152841660e0840152151561010083015290911661012082015261014001610343565b61032261081736600461367c565b612385565b61032261082a36600461367c565b612467565b6006546001600160a01b0316331461088e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b547501000000000000000000000000000000000000000000900460ff16156108fa5760405162461bcd60e51b815260206004820152601460248201527f44657363726970746f72206973206c6f636b65640000000000000000000000006044820152606401610885565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f6e66ab22238a5471005895947c8f57db923c2a9c9c73180eff80864c21295c1b906020015b60405180910390a150565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f44c74bcc0000000000000000000000000000000000000000000000000000000014156109bb57506001919050565b7fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a7000000000000000000000000000000000000000000000000000000001415610a0d57506001919050565b7fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001415610a5f57506001919050565b610a6882612592565b92915050565b606060008054610a7d90613f0d565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa990613f0d565b8015610af65780601f10610acb57610100808354040283529160200191610af6565b820191906000526020600020905b815481529060010190602001808311610ad957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b8a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610885565b506000908152600460205260409020546001600160a01b031690565b6000610bb1826115e4565b9050806001600160a01b0316836001600160a01b03161415610c3b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610885565b336001600160a01b0382161480610c575750610c578133612284565b610cc95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610885565b610cd38383612675565b505050565b6009546000906001600160a01b03163314610d355760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420746865206d696e74657200000000000000006044820152606401610885565b61013e600f5411158015610d5557506006600f54610d539190613f9a565b155b15610d8857600854600f8054610d86926001600160a01b0316916000610d7a83613f61565b919050556000806126fb565b505b600954600f8054610da8926001600160a01b0316916000610d7a83613f61565b905090565b6006546001600160a01b03163314610e075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610e1e5790505090508181600081518110610e5b57610e5b61400c565b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff16815250508281600081518110610e9d57610e9d61400c565b60209081029190910101516001600160a01b039091169052610ebf8482612bd9565b50505050565b610ecf3382612d78565b610f415760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610885565b610cd3838383612e58565b6000828152600760209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610fdf57600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101610f7a565b50505050905060008151111561105d57806000815181106110025761100261400c565b602002602001015160000151612710826000815181106110245761102461400c565b6020026020010151602001516bffffffffffffffffffffffff16866110499190613e8d565b6110539190613e79565b9250925050611066565b60008092509250505b9250929050565b6006546001600160a01b031633146110c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600c81905560405181907fea4bfee7f9fb38136c61cc04b6e56efc93eaf1beef326dbc47495b358385914c90600090a250565b6006546001600160a01b031633146111545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b547501000000000000000000000000000000000000000000900460ff16156111c05760405162461bcd60e51b815260206004820152601460248201527f44657363726970746f72206973206c6f636b65640000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790556040517f593e31e306c198bef259d839f7c6dc4ff7fc10c07f76fab193a210b03704105f90600090a1565b610cd383838360405180602001604052806000815250611e25565b6009546001600160a01b031633146112a05760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420746865206d696e74657200000000000000006044820152606401610885565b6112a98161303d565b60405181907fdbe63f1c27babbb668c6712beea279fdacbf8eece4d96ba925e7a533346d84ca90600090a250565b6000818152600260205260409020546060906001600160a01b03166113645760405162461bcd60e51b815260206004820152602d60248201527f57697a61726473546f6b656e3a2055524920717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610885565b600a546000838152600d60205260409081902090517f40a2977500000000000000000000000000000000000000000000000000000000815260048101859052815465ffffffffffff8082166024840152603082811c82166044850152606083811c83166064860152609084811c8416608487015260c09490941c831660a486015260019095015480831660c48601529081901c821660e48501529384901c81166101048401529083901c60ff16151561012483015260989290921c9091166101448201526001600160a01b03909116906340a2977590610164015b60006040518083038186803b15801561145757600080fd5b505afa15801561146b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a68919081019061388d565b6006546001600160a01b0316331461150b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b54760100000000000000000000000000000000000000000000900460ff16156115785760405162461bcd60e51b815260206004820152601060248201527f536565646572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff167601000000000000000000000000000000000000000000001790556040517ff59561f22794afcfb1e6be5c4733f5449fd167252a96b74bb06d341fb0dac7ed90600090a1565b6000818152600260205260408120546001600160a01b031680610a685760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610885565b60006001600160a01b0382166116ed5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610885565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b61176d60006130f0565b565b6006546001600160a01b031633146117c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b5474010000000000000000000000000000000000000000900460ff16156118345760405162461bcd60e51b815260206004820152601060248201527f4d696e746572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790556040517f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6690600090a1565b600760205281600052604060002081815481106118ba57600080fd5b6000918252602090912001546001600160a01b03811692507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16905082565b60095460009081906001600160a01b0316331461195c5760405162461bcd60e51b815260206004820152601860248201527f53656e646572206973206e6f7420746865206d696e74657200000000000000006044820152606401610885565b600a54604080517f50271c1600000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916350271c16916004808301926020929190829003018186803b1580156119ba57600080fd5b505afa1580156119ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f291906139e5565b9050808465ffffffffffff16108015611a09575060015b611a555760405162461bcd60e51b815260206004820152601960248201527f6f6e65206f66206f6e6520646f6573206e6f74206578697374000000000000006044820152606401610885565b806012541415611a8a57600954600f8054611a7f926001600160a01b0316916000610d7a83613f61565b946000945092505050565b65ffffffffffff84166000908152600e602052604090205460ff1680611b5857600954600f8054600092611adb926001600160a01b03909116919084611acf83613f61565b919050556001896126fb565b65ffffffffffff87166000818152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155601080547fffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000169092179091559095509350611c6e92505050565b60005b82811015611c3f576000818152600e602052604090205460ff1680611c2c57600954600f8054600092611bab926001600160a01b03909116919084611b9f83613f61565b919050556001866126fb565b6000848152600e60205260409020805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155601080547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001665ffffffffffff909616959095179094559650919450611c6e9350505050565b5080611c3781613f61565b915050611b5b565b506012829055600954600f8054611c65926001600160a01b0316916000610d7a83613f61565b60009350935050505b915091565b606060018054610a7d90613f0d565b6008546001600160a01b03163314611cdc5760405162461bcd60e51b815260206004820152601e60248201527f53656e646572206973206e6f74207468652063726561746f72732044414f00006044820152606401610885565b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f25e7d5026e0fd314deaf23ad9dd18d9accf2131502d2711ba2aa789853ac7c929060200161095c565b6001600160a01b038216331415611d9b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610885565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611e2f3383612d78565b611ea15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610885565b610ebf8484848461315a565b6006546001600160a01b03163314611f075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b8051611f1a90601190602084019061358a565b5050565b6000818152600260205260409020546060906001600160a01b0316611fab5760405162461bcd60e51b815260206004820152602d60248201527f57697a61726473546f6b656e3a2055524920717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610885565b600a546000838152600d60205260409081902090517f81d23bd200000000000000000000000000000000000000000000000000000000815260048101859052815465ffffffffffff8082166024840152603082811c82166044850152606083811c83166064860152609084811c8416608487015260c09490941c831660a486015260019095015480831660c48601529081901c821660e48501529384901c81166101048401529083901c60ff16151561012483015260989290921c9091166101448201526001600160a01b03909116906381d23bd2906101640161143f565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561212457600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16818301528252600190920191016120bf565b505050509050919050565b6006546001600160a01b031633146121895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b54760100000000000000000000000000000000000000000000900460ff16156121f65760405162461bcd60e51b815260206004820152601060248201527f536565646572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527fb3025222d01ce9a26c7f9d52bc3bfd0352366bd90a793c273fbfe1c81e0e288e9060200161095c565b606060116040516020016122709190613b37565b604051602081830303815290604052905090565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1169063c45527919060240160206040518083038186803b15801561230557600080fd5b505afa158015612319573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233d9190613699565b6001600160a01b0316141561235457506001610a68565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6006546001600160a01b031633146123df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b6001600160a01b03811661245b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610885565b612464816130f0565b50565b6006546001600160a01b031633146124c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610885565b600b5474010000000000000000000000000000000000000000900460ff161561252c5760405162461bcd60e51b815260206004820152601060248201527f4d696e746572206973206c6f636b6564000000000000000000000000000000006044820152606401610885565b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a9060200161095c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061262557507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a6857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a68565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906126c2826115e4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000600c54841061274e5760405162461bcd60e51b815260206004820152601c60248201527f416c6c2077697a617264732068617665206265656e206d696e746564000000006044820152606401610885565b600b54600a546040517f66438bc2000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b039182166024820152851515604482015265ffffffffffff8516606482015260009291909116906366438bc2906084016101406040518083038186803b1580156127d157600080fd5b505afa1580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128099190613904565b600d600087815260200190815260200160002060008201518160000160006101000a81548165ffffffffffff021916908365ffffffffffff16021790555060208201518160000160066101000a81548165ffffffffffff021916908365ffffffffffff160217905550604082015181600001600c6101000a81548165ffffffffffff021916908365ffffffffffff16021790555060608201518160000160126101000a81548165ffffffffffff021916908365ffffffffffff16021790555060808201518160000160186101000a81548165ffffffffffff021916908365ffffffffffff16021790555060a08201518160010160006101000a81548165ffffffffffff021916908365ffffffffffff16021790555060c08201518160010160066101000a81548165ffffffffffff021916908365ffffffffffff16021790555060e082015181600101600c6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506101008201518160010160126101000a81548160ff0219169083151502179055506101208201518160010160136101000a81548165ffffffffffff021916908365ffffffffffff1602179055509050604051806101400160405290816000820160009054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160069054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201600c9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160129054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160189054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160009054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160069054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160018201600c9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160129054906101000a900460ff161515151581526020016001820160139054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815250509050612b94612b8d6006546001600160a01b031690565b87876131e3565b847fed9371a1c5090c1e97f8c79affd027822d569076959d7d72f1b48d2b957c066582604051612bc49190613c9b565b60405180910390a2849150505b949350505050565b60005b8151811015612d6d5760006001600160a01b0316828281518110612c0257612c0261400c565b6020026020010151600001516001600160a01b03161415612c655760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e7400000000006044820152606401610885565b818181518110612c7757612c7761400c565b6020026020010151602001516bffffffffffffffffffffffff1660001415612ce15760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f7369746976656044820152606401610885565b60008381526007602052604090208251839083908110612d0357612d0361400c565b6020908102919091018101518254600181018455600093845292829020815191909201516bffffffffffffffffffffffff1674010000000000000000000000000000000000000000026001600160a01b039091161791015580612d6581613f61565b915050612bdc565b50611f1a8282613385565b6000818152600260205260408120546001600160a01b0316612e025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610885565b6000612e0d836115e4565b9050806001600160a01b0316846001600160a01b03161480612e485750836001600160a01b0316612e3d84610b00565b6001600160a01b0316145b80612bd15750612bd18185612284565b826001600160a01b0316612e6b826115e4565b6001600160a01b031614612ee75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610885565b6001600160a01b038216612f625760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610885565b612f6d600082612675565b6001600160a01b0383166000908152600360205260408120805460019290612f96908490613eca565b90915550506001600160a01b0382166000908152600360205260408120805460019290612fc4908490613e61565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613048826115e4565b9050613055600083612675565b6001600160a01b038116600090815260036020526040812080546001929061307e908490613eca565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613165848484612e58565b613171848484846133c2565b610ebf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610885565b6001600160a01b0382166132395760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610885565b6000818152600260205260409020546001600160a01b03161561329e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610885565b6001600160a01b03821660009081526003602052604081208054600192906132c7908490613e61565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516133b6929190613d89565b60405180910390a15050565b60006001600160a01b0384163b15613582576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061341f903390899088908890600401613c39565b602060405180830381600087803b15801561343957600080fd5b505af1925050508015613487575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261348491810190613827565b60015b613537573d8080156134b5576040519150601f19603f3d011682016040523d82523d6000602084013e6134ba565b606091505b50805161352f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610885565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612bd1565b506001612bd1565b82805461359690613f0d565b90600052602060002090601f0160209004810192826135b857600085556135fe565b82601f106135d157805160ff19168380011785556135fe565b828001600101855582156135fe579182015b828111156135fe5782518255916020019190600101906135e3565b5061360a92915061360e565b5090565b5b8082111561360a576000815560010161360f565b600061363661363184613e1b565b613dcc565b905082815283838301111561364a57600080fd5b828260208301376000602084830101529392505050565b805161366c8161407f565b919050565b805161366c816140bb565b60006020828403121561368e57600080fd5b813561237e8161406a565b6000602082840312156136ab57600080fd5b815161237e8161406a565b600080604083850312156136c957600080fd5b82356136d48161406a565b915060208301356136e48161406a565b809150509250929050565b60008060006060848603121561370457600080fd5b833561370f8161406a565b9250602084013561371f8161406a565b929592945050506040919091013590565b6000806000806080858703121561374657600080fd5b84356137518161406a565b935060208501356137618161406a565b925060408501359150606085013567ffffffffffffffff81111561378457600080fd5b8501601f8101871361379557600080fd5b6137a487823560208401613623565b91505092959194509250565b600080604083850312156137c357600080fd5b82356137ce8161406a565b915060208301356136e48161407f565b600080604083850312156137f157600080fd5b82356137fc8161406a565b946020939093013593505050565b60006020828403121561381c57600080fd5b813561237e8161408d565b60006020828403121561383957600080fd5b815161237e8161408d565b60006020828403121561385657600080fd5b813567ffffffffffffffff81111561386d57600080fd5b8201601f8101841361387e57600080fd5b612bd184823560208401613623565b60006020828403121561389f57600080fd5b815167ffffffffffffffff8111156138b657600080fd5b8201601f810184136138c757600080fd5b80516138d561363182613e1b565b8181528560208385010111156138ea57600080fd5b6138fb826020830160208601613ee1565b95945050505050565b6000610140828403121561391757600080fd5b61391f613da2565b61392883613671565b815261393660208401613671565b602082015261394760408401613671565b604082015261395860608401613671565b606082015261396960808401613671565b608082015261397a60a08401613671565b60a082015261398b60c08401613671565b60c082015261399c60e08401613671565b60e08201526101006139af818501613661565b908201526101206139c1848201613671565b908201529392505050565b6000602082840312156139de57600080fd5b5035919050565b6000602082840312156139f757600080fd5b5051919050565b600080600060608486031215613a1357600080fd5b833592506020840135613a258161406a565b915060408401356bffffffffffffffffffffffff81168114613a4657600080fd5b809150509250925092565b60008060408385031215613a6457600080fd5b50508035926020909101359150565b600060208284031215613a8557600080fd5b813561237e816140bb565b600081518084526020808501945080840160005b83811015613ae257815180516001600160a01b031688528301516bffffffffffffffffffffffff168388015260409096019590820190600101613aa4565b509495945050505050565b60008151808452613b05816020860160208601613ee1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b7f697066733a2f2f000000000000000000000000000000000000000000000000008152600060076000845481600182811c915080831680613b7957607f831692505b6020808410821415613bb2577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613bc65760018114613bf957613c2a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616888b015287858b01019650613c2a565b60008b81526020902060005b86811015613c205781548c82018b0152908501908301613c05565b505087858b010196505b50949998505050505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c6b6080830184613aed565b9695505050505050565b60208152600061237e6020830184613a90565b60208152600061237e6020830184613aed565b815165ffffffffffff16815261014081016020830151613cc5602084018265ffffffffffff169052565b506040830151613cdf604084018265ffffffffffff169052565b506060830151613cf9606084018265ffffffffffff169052565b506080830151613d13608084018265ffffffffffff169052565b5060a0830151613d2d60a084018265ffffffffffff169052565b5060c0830151613d4760c084018265ffffffffffff169052565b5060e0830151613d6160e084018265ffffffffffff169052565b50610100838101511515908301526101209283015165ffffffffffff16929091019190915290565b828152604060208201526000612bd16040830184613a90565b604051610140810167ffffffffffffffff81118282101715613dc657613dc661403b565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613e1357613e1361403b565b604052919050565b600067ffffffffffffffff821115613e3557613e3561403b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115613e7457613e74613fae565b500190565b600082613e8857613e88613fdd565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ec557613ec5613fae565b500290565b600082821015613edc57613edc613fae565b500390565b60005b83811015613efc578181015183820152602001613ee4565b83811115610ebf5750506000910152565b600181811c90821680613f2157607f821691505b60208210811415613f5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f9357613f93613fae565b5060010190565b600082613fa957613fa9613fdd565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461246457600080fd5b801515811461246457600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461246457600080fd5b65ffffffffffff8116811461246457600080fdfea2646970667358221220689004804b3afd16aabe41870540c16e31cb56b749512b9e9045363ea46fee5464736f6c63430008060033

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

000000000000000000000000831e5024eee6146c62444cb9d96c5b76f199523c000000000000000000000000b0cbf686d058091ba484d1899f9bc0cb2c233fe000000000000000000000000051b2ccc1c72520d6024443ce11405fd0c7f73a6a000000000000000000000000bd5ccd56400460e8e72209476f65c77774d18482000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000007d0

-----Decoded View---------------
Arg [0] : _creatorsDAO (address): 0x831E5024EEe6146C62444Cb9D96C5B76f199523c
Arg [1] : _minter (address): 0xB0cbF686D058091ba484d1899f9Bc0Cb2C233FE0
Arg [2] : _descriptor (address): 0x51B2CCc1c72520D6024443CE11405Fd0C7f73A6a
Arg [3] : _seeder (address): 0xBD5CCd56400460E8E72209476f65c77774d18482
Arg [4] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [5] : _supply (uint256): 2000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000831e5024eee6146c62444cb9d96c5b76f199523c
Arg [1] : 000000000000000000000000b0cbf686d058091ba484d1899f9bc0cb2c233fe0
Arg [2] : 00000000000000000000000051b2ccc1c72520d6024443ce11405fd0c7f73a6a
Arg [3] : 000000000000000000000000bd5ccd56400460e8e72209476f65c77774d18482
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [5] : 00000000000000000000000000000000000000000000000000000000000007d0


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

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