ETH Price: $3,257.72 (+3.70%)
Gas: 5 Gwei

Token

 

Overview

Max Total Supply

1,469

Holders

90

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ownrshp.eth
0x928E29d8fA345FFb8149E50c5A9DbD1acd779D55
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:
ApolloEditionsNFT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 20000 runs

Other Settings:
london EvmVersion
File 1 of 13 : ApolloEditionsNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC721A} from "@ERC721A/contracts/interfaces/IERC721A.sol";
import {IDelegationRegistry} from "@delegate-registry/contracts/IDelegationRegistry.sol";

error EditionNotLive();
error NotEnoughCredits();
error NotTokenOwner();
error ApolloNotSet();
error InvalidInput();
error NotMinter();

interface WarmInterface {
    function getColdWallets(address hotWallet) external view returns (address[] memory);
}

contract ApolloEditionsNFT is ERC1155, Ownable {
    string private _baseURI;
    string private _contractURI = "ipfs://QmVG1tqvfuyFuBGwzWDtHMzqxuPc1Z7UtYHR8V6hRgdKV4";
    address public apolloNFT = 0x1bB602b7a2ef2aECBA8FE3Df4b501C4C567B697d;
    address public minterContract;
    address public delegateContract = 0x00000000000076A84feF008CDAbe6409d2FE638B;
    address public warmContract = 0xC3AA9bc72Bd623168860a1e5c6a4530d3D80456c;
    address public firstMinter = 0x31E0E16b46F5345ea8696B3f9C9083400aB1bE24;

    mapping(uint256 => bool) public liveEditions;
    mapping(uint256 => uint256) private _totalSupply;
    mapping(uint256 => uint256) public lastUsedPeriod;
    mapping(uint256 => uint256) public creditsRemaining;

    uint256 public currentPeriod = 1;
    uint256 public apolloCredits = 2;

    constructor(string memory baseURI) ERC1155(baseURI) {
        _baseURI = baseURI;
        _totalSupply[1] += 1;
        _mint(firstMinter, 1, 1, "");
    }

    modifier isMinterContract() {
        if (msg.sender != minterContract) {
            revert NotMinter();
        }
        _;
    }

    function setApolloNFT(address _apolloNFT) external onlyOwner {
        apolloNFT = _apolloNFT;
    }

    function setEditionLive(uint256 editionId, bool live) external onlyOwner {
        liveEditions[editionId] = live;
    }

    function setEditionsLive(uint256[] memory editionIds, bool live) external onlyOwner {
        for (uint256 i = 0; i < editionIds.length; i++) {
            liveEditions[editionIds[i]] = live;
        }
    }

    function setMinterContract(address newMinterContract) external onlyOwner {
        minterContract = newMinterContract;
    }

    function setURI(string memory newuri) external onlyOwner {
        _baseURI = newuri;
    }

    function setContractURI(string memory newuri) external onlyOwner {
        _contractURI = newuri;
    }

    function setApolloCredits(uint256 newApolloCredits) external onlyOwner {
        apolloCredits = newApolloCredits;
    }

    function setDelegateContract(address newDelegateContract) external onlyOwner {
        delegateContract = newDelegateContract;
    }

    function setWarmContract(address newWarmContract) external onlyOwner {
        warmContract = newWarmContract;
    }

    function incrementPeriod() external onlyOwner {
        currentPeriod++;
    }

    function uri(uint256) public view override returns (string memory) {
        return _baseURI;
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function totalSupply(uint256 editionId) public view returns (uint256) {
        return _totalSupply[editionId];
    }

    function getCreditsRemaining(uint256[] memory apolloIds) public view returns (uint256[] memory) {
        if (apolloNFT == address(0)) revert ApolloNotSet();

        IERC721A apolloContract = IERC721A(apolloNFT);

        uint256[] memory _creditsRemaining = new uint256[](apolloIds.length);

        for (uint256 i = 0; i < apolloIds.length; i++) {
            if (apolloIds[i] > apolloContract.totalSupply()) {
                _creditsRemaining[i] = 0;
            } else if (apolloContract.totalSupply() == 0) {
                _creditsRemaining[i] = 0;
            } else if (lastUsedPeriod[apolloIds[i]] < currentPeriod) {
                _creditsRemaining[i] = apolloCredits;
            } else {
                _creditsRemaining[i] = creditsRemaining[apolloIds[i]];
            }
        }

        return _creditsRemaining;
    }

    function mint(uint256[][2] memory editionIds, uint256[][2] memory apolloIds, address[] memory vaults) public {
        if (editionIds[0].length != editionIds[1].length) revert InvalidInput();

        uint256 editionsSum = 0;
        for (uint256 i = 0; i < editionIds[1].length; i++) {
            editionsSum += editionIds[1][i];
        }

        uint256 apolloSum = 0;
        for (uint256 i = 0; i < apolloIds[1].length; i++) {
            apolloSum += apolloIds[1][i];
        }

        if (apolloSum != editionsSum) revert InvalidInput();

        verifyOwnership(apolloIds[0], vaults);
        uint256[] memory _remainingCredits = getCreditsRemaining(apolloIds[0]);

        for (uint256 i = 0; i < apolloIds[0].length; i++) {
            if (_remainingCredits[i] < apolloIds[1][i]) revert NotEnoughCredits();
            if (lastUsedPeriod[apolloIds[0][i]] < currentPeriod) {
                lastUsedPeriod[apolloIds[0][i]] = currentPeriod;
            }
            creditsRemaining[apolloIds[0][i]] = _remainingCredits[i] - apolloIds[1][i];
        }

        for (uint256 i = 0; i < editionIds[0].length; i++) {
            if (!liveEditions[editionIds[0][i]]) revert EditionNotLive();
            _totalSupply[editionIds[0][i]] += editionIds[1][i];
            _mint(msg.sender, editionIds[0][i], editionIds[1][i], "");
        }
    }

    function contractMint(address recepient, uint256[][2] memory editionIds) public isMinterContract {
        if (editionIds[0].length != editionIds[1].length) revert InvalidInput();

        for (uint256 i = 0; i < editionIds[0].length; i++) {
            if (!liveEditions[editionIds[0][i]]) revert EditionNotLive();
            _totalSupply[editionIds[0][i]] += editionIds[1][i];
            _mint(recepient, editionIds[0][i], editionIds[1][i], "");
        }
    }

    function verifyOwnership(uint256[] memory apolloIds, address[] memory vaults) public view {
        IERC721A apolloContract = IERC721A(apolloNFT);
        IDelegationRegistry delegateInterface = IDelegationRegistry(delegateContract);

        for (uint256 i = 0; i < apolloIds.length; i++) {
            bool verified = false;
            if (apolloContract.ownerOf(apolloIds[i]) == msg.sender) {
                verified = true;
            }

            if (verified == false && delegateContract != address(0)) {
                for (uint256 vaultsI = 0; vaultsI < vaults.length; vaultsI++) {
                    if (
                        delegateInterface.checkDelegateForToken(
                            msg.sender, vaults[vaultsI], address(apolloContract), apolloIds[i]
                        ) == true
                    ) {
                        verified = true;
                        vaultsI = vaults.length;
                    }
                }
            }

            if (verified == false && warmContract != address(0)) {
                address[] memory coldWallets = WarmInterface(warmContract).getColdWallets(msg.sender);
                for (uint256 coldI = 0; coldI < coldWallets.length; coldI++) {
                    if (apolloContract.ownerOf(apolloIds[i]) == coldWallets[coldI]) {
                        verified = true;
                        coldI = coldWallets.length;
                    }
                }
            }

            if (verified == false) revert NotTokenOwner();
        }
    }
}

File 2 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 4 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

File 5 of 13 : IDelegationRegistry.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.17;

/**
 * @title An immutable registry contract to be deployed as a standalone primitive
 * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations
 * from here and integrate those permissions into their flow
 */
interface IDelegationRegistry {
    /// @notice Delegation type
    enum DelegationType {
        NONE,
        ALL,
        CONTRACT,
        TOKEN
    }

    /// @notice Info about a single delegation, used for onchain enumeration
    struct DelegationInfo {
        DelegationType type_;
        address vault;
        address delegate;
        address contract_;
        uint256 tokenId;
    }

    /// @notice Info about a single contract-level delegation
    struct ContractDelegation {
        address contract_;
        address delegate;
    }

    /// @notice Info about a single token-level delegation
    struct TokenDelegation {
        address contract_;
        uint256 tokenId;
        address delegate;
    }

    /// @notice Emitted when a user delegates their entire wallet
    event DelegateForAll(address vault, address delegate, bool value);

    /// @notice Emitted when a user delegates a specific contract
    event DelegateForContract(address vault, address delegate, address contract_, bool value);

    /// @notice Emitted when a user delegates a specific token
    event DelegateForToken(address vault, address delegate, address contract_, uint256 tokenId, bool value);

    /// @notice Emitted when a user revokes all delegations
    event RevokeAllDelegates(address vault);

    /// @notice Emitted when a user revoes all delegations for a given delegate
    event RevokeDelegate(address vault, address delegate);

    /**
     * -----------  WRITE -----------
     */

    /**
     * @notice Allow the delegate to act on your behalf for all contracts
     * @param delegate The hotwallet to act on your behalf
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForAll(address delegate, bool value) external;

    /**
     * @notice Allow the delegate to act on your behalf for a specific contract
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForContract(address delegate, address contract_, bool value) external;

    /**
     * @notice Allow the delegate to act on your behalf for a specific token
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param tokenId The token id for the token you're delegating
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForToken(address delegate, address contract_, uint256 tokenId, bool value) external;

    /**
     * @notice Revoke all delegates
     */
    function revokeAllDelegates() external;

    /**
     * @notice Revoke a specific delegate for all their permissions
     * @param delegate The hotwallet to revoke
     */
    function revokeDelegate(address delegate) external;

    /**
     * @notice Remove yourself as a delegate for a specific vault
     * @param vault The vault which delegated to the msg.sender, and should be removed
     */
    function revokeSelf(address vault) external;

    /**
     * -----------  READ -----------
     */

    /**
     * @notice Returns all active delegations a given delegate is able to claim on behalf of
     * @param delegate The delegate that you would like to retrieve delegations for
     * @return info Array of DelegationInfo structs
     */
    function getDelegationsByDelegate(address delegate) external view returns (DelegationInfo[] memory);

    /**
     * @notice Returns an array of wallet-level delegates for a given vault
     * @param vault The cold wallet who issued the delegation
     * @return addresses Array of wallet-level delegates for a given vault
     */
    function getDelegatesForAll(address vault) external view returns (address[] memory);

    /**
     * @notice Returns an array of contract-level delegates for a given vault and contract
     * @param vault The cold wallet who issued the delegation
     * @param contract_ The address for the contract you're delegating
     * @return addresses Array of contract-level delegates for a given vault and contract
     */
    function getDelegatesForContract(address vault, address contract_) external view returns (address[] memory);

    /**
     * @notice Returns an array of contract-level delegates for a given vault's token
     * @param vault The cold wallet who issued the delegation
     * @param contract_ The address for the contract holding the token
     * @param tokenId The token id for the token you're delegating
     * @return addresses Array of contract-level delegates for a given vault's token
     */
    function getDelegatesForToken(address vault, address contract_, uint256 tokenId)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns all contract-level delegations for a given vault
     * @param vault The cold wallet who issued the delegations
     * @return delegations Array of ContractDelegation structs
     */
    function getContractLevelDelegations(address vault)
        external
        view
        returns (ContractDelegation[] memory delegations);

    /**
     * @notice Returns all token-level delegations for a given vault
     * @param vault The cold wallet who issued the delegations
     * @return delegations Array of TokenDelegation structs
     */
    function getTokenLevelDelegations(address vault) external view returns (TokenDelegation[] memory delegations);

    /**
     * @notice Returns true if the address is delegated to act on the entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForAll(address delegate, address vault) external view returns (bool);

    /**
     * @notice Returns true if the address is delegated to act on your behalf for a token contract or an entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForContract(address delegate, address vault, address contract_)
        external
        view
        returns (bool);

    /**
     * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param tokenId The token id for the token you're delegating
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForToken(address delegate, address vault, address contract_, uint256 tokenId)
        external
        view
        returns (bool);
}

File 6 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 7 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 13 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 10 of 13 : 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 11 of 13 : 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 12 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

Settings
{
  "remappings": [
    "@ERC721A/contracts/=lib/ERC721A/contracts/",
    "@apollo-nft-contracts/=lib/apollo-nft-contracts/src/",
    "@delegate-registry/contracts/=lib/delegate-registry/src/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ERC721A/=lib/ERC721A/contracts/",
    "ERC721A/contracts/=lib/ERC721A/contracts/",
    "apollo-nft-contracts/=lib/apollo-nft-contracts/",
    "delegate-registry/=lib/delegate-registry/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApolloNotSet","type":"error"},{"inputs":[],"name":"EditionNotLive","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"NotEnoughCredits","type":"error"},{"inputs":[],"name":"NotMinter","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"apolloCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apolloNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recepient","type":"address"},{"internalType":"uint256[][2]","name":"editionIds","type":"uint256[][2]"}],"name":"contractMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creditsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegateContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"apolloIds","type":"uint256[]"}],"name":"getCreditsRemaining","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastUsedPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"liveEditions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[][2]","name":"editionIds","type":"uint256[][2]"},{"internalType":"uint256[][2]","name":"apolloIds","type":"uint256[][2]"},{"internalType":"address[]","name":"vaults","type":"address[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newApolloCredits","type":"uint256"}],"name":"setApolloCredits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_apolloNFT","type":"address"}],"name":"setApolloNFT","outputs":[],"stateMutability":"nonpayable","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":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDelegateContract","type":"address"}],"name":"setDelegateContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"editionId","type":"uint256"},{"internalType":"bool","name":"live","type":"bool"}],"name":"setEditionLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"editionIds","type":"uint256[]"},{"internalType":"bool","name":"live","type":"bool"}],"name":"setEditionsLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMinterContract","type":"address"}],"name":"setMinterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWarmContract","type":"address"}],"name":"setWarmContract","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":[{"internalType":"uint256","name":"editionId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"apolloIds","type":"uint256[]"},{"internalType":"address[]","name":"vaults","type":"address[]"}],"name":"verifyOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"warmContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040526035608081815290620040e660a039600590620000229082620005d1565b50600680546001600160a01b0319908116731bb602b7a2ef2aecba8fe3df4b501c4c567b697d179091556008805482166d76a84fef008cdabe6409d2fe638b17905560098054821673c3aa9bc72bd623168860a1e5c6a4530d3d80456c179055600a80549091167331e0e16b46f5345ea8696b3f9c9083400ab1be241790556001600f556002601055348015620000b857600080fd5b506040516200411b3803806200411b833981016040819052620000db91620006f2565b80620000e78162000179565b50620000f3336200018b565b6004620001018282620005d1565b5060016000818152600c6020527fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c80549091906200014190849062000794565b9091555050600a5460408051602081019091526000815262000172916001600160a01b0316906001908190620001dd565b506200093b565b6002620001878282620005d1565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416620002435760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b3360006200025185620002ff565b905060006200026085620002ff565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906200029490849062000794565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620002f68360008989898962000355565b50505050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200033c576200033c620007bc565b602090810291909101015292915050565b505050505050565b62000374846001600160a01b03166200052160201b62001c2b1760201c565b156200034d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620003b0908990899088908890889060040162000800565b6020604051808303816000875af1925050508015620003ee575060408051601f3d908101601f19168201909252620003eb9181019062000847565b60015b620004ae57620003fd6200087a565b806308c379a0036200043d57506200041462000897565b806200042157506200043f565b8060405162461bcd60e51b81526004016200023a919062000926565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016200023a565b6001600160e01b0319811663f23a6e6160e01b14620002f65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016200023a565b6001600160a01b03163b151590565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200055b57607f821691505b6020821081036200057c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005cc57600081815260208120601f850160051c81016020861015620005ab5750805b601f850160051c820191505b818110156200034d57828155600101620005b7565b505050565b81516001600160401b03811115620005ed57620005ed62000530565b6200060581620005fe845462000546565b8462000582565b602080601f8311600181146200063d5760008415620006245750858301515b600019600386901b1c1916600185901b1785556200034d565b600085815260208120601f198616915b828110156200066e578886015182559484019460019091019084016200064d565b50858210156200068d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b601f8201601f191681016001600160401b0381118282101715620006c557620006c562000530565b6040525050565b60005b83811015620006e9578181015183820152602001620006cf565b50506000910152565b6000602082840312156200070557600080fd5b81516001600160401b03808211156200071d57600080fd5b818401915084601f8301126200073257600080fd5b81518181111562000747576200074762000530565b604051915062000762601f8201601f1916602001836200069d565b8082528560208285010111156200077857600080fd5b6200078b816020840160208601620006cc565b50949350505050565b80820180821115620007b657634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052603260045260246000fd5b60008151808452620007ec816020860160208601620006cc565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906200083c90830184620007d2565b979650505050505050565b6000602082840312156200085a57600080fd5b81516001600160e01b0319811681146200087357600080fd5b9392505050565b600060033d1115620008945760046000803e5060005160e01c5b90565b600060443d1015620008a65790565b6040516003193d81016004833e81513d6001600160401b038083116024840183101715620008d657505050505090565b8285019150815181811115620008ef5750505050505090565b843d87010160208285010111156200090a5750505050505090565b6200091b602082860101876200069d565b509095945050505050565b602081526000620008736020830184620007d2565b61379b806200094b6000396000f3fe608060405234801561001057600080fd5b50600436106102765760003560e01c80636b9d22c111610160578063a6aff8ef116100d8578063dc0183ab1161008c578063e985e9c511610071578063e985e9c5146105b3578063f242432a146105fc578063f2fde38b1461060f57600080fd5b8063dc0183ab146105a3578063e8a3d485146105ab57600080fd5b8063bd85b039116100bd578063bd85b03914610567578063caca87ef14610587578063d4d161431461059057600080fd5b8063a6aff8ef14610534578063b0d34a1e1461055457600080fd5b806392f002331161012f578063938e3d7b11610114578063938e3d7b146104fb57806394cafa4c1461050e578063a22cb4651461052157600080fd5b806392f00233146104c85780639374968a146104e857600080fd5b80636b9d22c11461046f578063715018a6146104825780638da5cb5b1461048a57806390be8ba7146104a857600080fd5b8063334e4856116101f35780633e3484f7116101c25780634e1273f4116101a75780634e1273f4146104195780636422541f1461043957806369f57fc61461045c57600080fd5b80633e3484f7146103e65780634376bb8f146103f957600080fd5b8063334e4856146103805780633570398d1461039357806338478ae7146103b35780633c2b0725146103c657600080fd5b806309cf81c71161024a5780630e2fda881161022f5780630e2fda881461033a5780630e89341c1461034d5780632eb2c2d61461036d57600080fd5b806309cf81c7146102e25780630c223c6f1461032757600080fd5b8062fdd58e1461027b57806301ffc9a7146102a157806302fe5305146102c457806306040618146102d9575b600080fd5b61028e610289366004612a16565b610622565b6040519081526020015b60405180910390f35b6102b46102af366004612a70565b610702565b6040519015158152602001610298565b6102d76102d2366004612b8a565b6107e5565b005b61028e600f5481565b600a546103029073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610298565b6102d7610335366004612be9565b6107fd565b6102d7610348366004612c19565b610843565b61036061035b366004612c36565b610892565b6040516102989190612cb3565b6102d761037b366004612d7b565b610926565b6102d761038e366004612e98565b6109ef565b6009546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6102d76103c1366004612c19565b610e75565b6008546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6102d76103f4366004612c19565b610ec4565b61028e610407366004612c36565b600e6020526000908152604090205481565b61042c610427366004612efc565b610f13565b6040516102989190612f91565b6102b4610447366004612c36565b600b6020526000908152604090205460ff1681565b6102d761046a366004612fa4565b61106b565b6102d761047d366004613077565b6110db565b6102d76114ff565b60035473ffffffffffffffffffffffffffffffffffffffff16610302565b6006546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6007546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6102d76104f6366004612c36565b611513565b6102d7610509366004612b8a565b611520565b6102d761051c3660046130ff565b611534565b6102d761052f366004613145565b6116fd565b61028e610542366004612c36565b600d6020526000908152604090205481565b6102d7610562366004612c19565b611708565b61028e610575366004612c36565b6000908152600c602052604090205490565b61028e60105481565b61042c61059e366004613173565b611757565b6102d7611a01565b610360611a20565b6102b46105c13660046131a8565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102d761060a3660046131d6565b611ab2565b6102d761061d366004612c19565b611b74565b600073ffffffffffffffffffffffffffffffffffffffff83166106cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060008181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061079557507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806106fc57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106fc565b6107ed611c47565b60046107f982826132d8565b5050565b610805611c47565b6000918252600b602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b61084b611c47565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060600480546108a19061323f565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd9061323f565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff851633148061094f575061094f85336105c1565b6109db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f76656400000000000000000000000000000000000060648201526084016106c3565b6109e88585858585611cc8565b5050505050565b60065460085473ffffffffffffffffffffffffffffffffffffffff918216911660005b84518110156109e85760003373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16636352211e888581518110610a6257610a626133f2565b60200260200101516040518263ffffffff1660e01b8152600401610a8891815260200190565b602060405180830381865afa158015610aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac99190613421565b73ffffffffffffffffffffffffffffffffffffffff1603610ae8575060015b80158015610b0d575060085473ffffffffffffffffffffffffffffffffffffffff1615155b15610c3c5760005b8551811015610c3a578373ffffffffffffffffffffffffffffffffffffffff1663aba69cf833888481518110610b4d57610b4d6133f2565b6020026020010151888b8881518110610b6857610b686133f2565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff94851660048201529284166024840152921660448201526064810191909152608401602060405180830381865afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c17919061343e565b1515600103610c2857505083516001905b80610c328161348a565b915050610b15565b505b80158015610c61575060095473ffffffffffffffffffffffffffffffffffffffff1615155b15610e26576009546040517fa3ba430100000000000000000000000000000000000000000000000000000000815233600482015260009173ffffffffffffffffffffffffffffffffffffffff169063a3ba430190602401600060405180830381865afa158015610cd5573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610d1b91908101906134c2565b905060005b8151811015610e2357818181518110610d3b57610d3b6133f2565b602002602001015173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16636352211e8a8781518110610d8757610d876133f2565b60200260200101516040518263ffffffff1660e01b8152600401610dad91815260200190565b602060405180830381865afa158015610dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dee9190613421565b73ffffffffffffffffffffffffffffffffffffffff1603610e1157508051600192505b80610e1b8161348a565b915050610d20565b50505b801515600003610e62576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5080610e6d8161348a565b915050610a12565b610e7d611c47565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610ecc611c47565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60608151835114610fa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016106c3565b6000835167ffffffffffffffff811115610fc257610fc2612a94565b604051908082528060200260200182016040528015610feb578160200160208202803683370190505b50905060005b84518110156110635761103685828151811061100f5761100f6133f2565b6020026020010151858381518110611029576110296133f2565b6020026020010151610622565b828281518110611048576110486133f2565b602090810291909101015261105c8161348a565b9050610ff1565b509392505050565b611073611c47565b60005b82518110156110d65781600b6000858481518110611096576110966133f2565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806110ce9061348a565b915050611076565b505050565b6020830151518351511461111b576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b60208501515181101561116a576020850151805182908110611143576111436133f2565b6020026020010151826111569190613567565b9150806111628161348a565b91505061111f565b506000805b6020850151518110156111ba576020850151805182908110611193576111936133f2565b6020026020010151826111a69190613567565b9150806111b28161348a565b91505061116f565b508181146111f4576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b835161120090846109ef565b835160009061120e90611757565b905060005b85515181101561138a576020860151805182908110611234576112346133f2565b602002602001015182828151811061124e5761124e6133f2565b6020026020010151101561128e576040517f3866fc6c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f5486518051600d91600091859081106112ab576112ab6133f2565b6020026020010151815260200190815260200160002054101561130057600f5486518051600d91600091859081106112e5576112e56133f2565b60200260200101518152602001908152602001600020819055505b6020860151805182908110611317576113176133f2565b6020026020010151828281518110611331576113316133f2565b6020026020010151611343919061357a565b86518051600e916000918590811061135d5761135d6133f2565b602002602001015181526020019081526020016000208190555080806113829061348a565b915050611213565b5060005b8651518110156114f65786518051600b91600091849081106113b2576113b26133f2565b60209081029190910181015182528101919091526040016000205460ff16611406576040517fd213f95000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602087015180518290811061141d5761141d6133f2565b6020026020010151600c60008960006002811061143c5761143c6133f2565b60200201518481518110611452576114526133f2565b6020026020010151815260200190815260200160002060008282546114779190613567565b9091555050865180516114e491339184908110611496576114966133f2565b6020026020010151896001600281106114b1576114b16133f2565b602002015184815181106114c7576114c76133f2565b602002602001015160405180602001604052806000815250612002565b806114ee8161348a565b91505061138e565b50505050505050565b611507611c47565b611511600061216a565b565b61151b611c47565b601055565b611528611c47565b60056107f982826132d8565b60075473ffffffffffffffffffffffffffffffffffffffff163314611585576040517ff8d2906c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602081015151815151146115c5576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8151518110156110d65781518051600b91600091849081106115ec576115ec6133f2565b60209081029190910181015182528101919091526040016000205460ff16611640576040517fd213f95000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6020820151805182908110611657576116576133f2565b6020026020010151600c600084600060028110611676576116766133f2565b6020020151848151811061168c5761168c6133f2565b6020026020010151815260200190815260200160002060008282546116b19190613567565b9091555050815180516116eb918591849081106116d0576116d06133f2565b6020026020010151846001600281106114b1576114b16133f2565b806116f58161348a565b9150506115c8565b6107f93383836121e1565b611710611c47565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60065460609073ffffffffffffffffffffffffffffffffffffffff166117a9576040517fef7b44b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600654825173ffffffffffffffffffffffffffffffffffffffff9091169060009067ffffffffffffffff8111156117e2576117e2612a94565b60405190808252806020026020018201604052801561180b578160200160208202803683370190505b50905060005b8451811015611063578273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611865573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611889919061358d565b85828151811061189b5761189b6133f2565b602002602001015111156118ce5760008282815181106118bd576118bd6133f2565b6020026020010181815250506119ef565b8273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d919061358d565b6000036119585760008282815181106118bd576118bd6133f2565b600f54600d6000878481518110611971576119716133f2565b602002602001015181526020019081526020016000205410156119a3576010548282815181106118bd576118bd6133f2565b600e60008683815181106119b9576119b96133f2565b60200260200101518152602001908152602001600020548282815181106119e2576119e26133f2565b6020026020010181815250505b806119f98161348a565b915050611811565b611a09611c47565b600f8054906000611a198361348a565b9190505550565b606060058054611a2f9061323f565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5b9061323f565b8015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b5050505050905090565b73ffffffffffffffffffffffffffffffffffffffff8516331480611adb5750611adb85336105c1565b611b67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f76656400000000000000000000000000000000000060648201526084016106c3565b6109e88585858585612334565b611b7c611c47565b73ffffffffffffffffffffffffffffffffffffffff8116611c1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106c3565b611c288161216a565b50565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60035473ffffffffffffffffffffffffffffffffffffffff163314611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c3565b8151835114611d59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016106c3565b73ffffffffffffffffffffffffffffffffffffffff8416611dfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106c3565b3360005b8451811015611f6d576000858281518110611e1d57611e1d6133f2565b602002602001015190506000858381518110611e3b57611e3b6133f2565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e168352909352919091205490915081811015611f08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016106c3565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b16825281208054849290611f52908490613567565b9250508190555050505080611f669061348a565b9050611e00565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fe49291906135a6565b60405180910390a4611ffa818787878787612572565b505050505050565b73ffffffffffffffffffffffffffffffffffffffff84166120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106c3565b3360006120b1856127fc565b905060006120be856127fc565b905060008681526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b168452909152812080548792906120fd908490613567565b9091555050604080518781526020810187905273ffffffffffffffffffffffffffffffffffffffff808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46114f683600089898989612847565b6003805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361229c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016106c3565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff84166123d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106c3565b3360006123e3856127fc565b905060006123f0856127fc565b905060008681526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8c168452909152902054858110156124b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016106c3565b60008781526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8d8116855292528083208985039055908a168252812080548892906124fa908490613567565b9091555050604080518881526020810188905273ffffffffffffffffffffffffffffffffffffffff808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612567848a8a8a8a8a612847565b505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611ffa576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906125e990899089908890889088906004016135d4565b6020604051808303816000875af1925050508015612642575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261263f9181019061363f565b60015b61272b5761264e61365c565b806308c379a0036126a15750612662613678565b8061266d57506126a3565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c39190612cb3565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016106c3565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146114f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016106c3565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612836576128366133f2565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611ffa576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906128be9089908990889088908890600401613720565b6020604051808303816000875af1925050508015612917575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526129149181019061363f565b60015b6129235761264e61365c565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146114f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016106c3565b73ffffffffffffffffffffffffffffffffffffffff81168114611c2857600080fd5b60008060408385031215612a2957600080fd5b8235612a34816129f4565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c2857600080fd5b600060208284031215612a8257600080fd5b8135612a8d81612a42565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715612b0757612b07612a94565b6040525050565b600067ffffffffffffffff831115612b2857612b28612a94565b604051612b5d60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8701160182612ac3565b809150838152848484011115612b7257600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612b9c57600080fd5b813567ffffffffffffffff811115612bb357600080fd5b8201601f81018413612bc457600080fd5b612bd384823560208401612b0e565b949350505050565b8015158114611c2857600080fd5b60008060408385031215612bfc57600080fd5b823591506020830135612c0e81612bdb565b809150509250929050565b600060208284031215612c2b57600080fd5b8135612a8d816129f4565b600060208284031215612c4857600080fd5b5035919050565b6000815180845260005b81811015612c7557602081850181015186830182015201612c59565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081526000612a8d6020830184612c4f565b600067ffffffffffffffff821115612ce057612ce0612a94565b5060051b60200190565b600082601f830112612cfb57600080fd5b81356020612d0882612cc6565b604051612d158282612ac3565b83815260059390931b8501820192828101915086841115612d3557600080fd5b8286015b84811015612d505780358352918301918301612d39565b509695505050505050565b600082601f830112612d6c57600080fd5b612a8d83833560208501612b0e565b600080600080600060a08688031215612d9357600080fd5b8535612d9e816129f4565b94506020860135612dae816129f4565b9350604086013567ffffffffffffffff80821115612dcb57600080fd5b612dd789838a01612cea565b94506060880135915080821115612ded57600080fd5b612df989838a01612cea565b93506080880135915080821115612e0f57600080fd5b50612e1c88828901612d5b565b9150509295509295909350565b600082601f830112612e3a57600080fd5b81356020612e4782612cc6565b604051612e548282612ac3565b83815260059390931b8501820192828101915086841115612e7457600080fd5b8286015b84811015612d50578035612e8b816129f4565b8352918301918301612e78565b60008060408385031215612eab57600080fd5b823567ffffffffffffffff80821115612ec357600080fd5b612ecf86838701612cea565b93506020850135915080821115612ee557600080fd5b50612ef285828601612e29565b9150509250929050565b60008060408385031215612f0f57600080fd5b823567ffffffffffffffff80821115612f2757600080fd5b612f3386838701612e29565b93506020850135915080821115612f4957600080fd5b50612ef285828601612cea565b600081518084526020808501945080840160005b83811015612f8657815187529582019590820190600101612f6a565b509495945050505050565b602081526000612a8d6020830184612f56565b60008060408385031215612fb757600080fd5b823567ffffffffffffffff811115612fce57600080fd5b612fda85828601612cea565b9250506020830135612c0e81612bdb565b600082601f830112612ffc57600080fd5b6040516040810167ffffffffffffffff828210818311171561302057613020612a94565b6040918252829185018681111561303657600080fd5b855b8181101561306b578035838111156130505760008081fd5b61305c89828a01612cea565b85525060209384019301613038565b50929695505050505050565b60008060006060848603121561308c57600080fd5b833567ffffffffffffffff808211156130a457600080fd5b6130b087838801612feb565b945060208601359150808211156130c657600080fd5b6130d287838801612feb565b935060408601359150808211156130e857600080fd5b506130f586828701612e29565b9150509250925092565b6000806040838503121561311257600080fd5b823561311d816129f4565b9150602083013567ffffffffffffffff81111561313957600080fd5b612ef285828601612feb565b6000806040838503121561315857600080fd5b8235613163816129f4565b91506020830135612c0e81612bdb565b60006020828403121561318557600080fd5b813567ffffffffffffffff81111561319c57600080fd5b612bd384828501612cea565b600080604083850312156131bb57600080fd5b82356131c6816129f4565b91506020830135612c0e816129f4565b600080600080600060a086880312156131ee57600080fd5b85356131f9816129f4565b94506020860135613209816129f4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561323357600080fd5b612e1c88828901612d5b565b600181811c9082168061325357607f821691505b60208210810361328c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156110d657600081815260208120601f850160051c810160208610156132b95750805b601f850160051c820191505b81811015611ffa578281556001016132c5565b815167ffffffffffffffff8111156132f2576132f2612a94565b61330681613300845461323f565b84613292565b602080601f83116001811461335957600084156133235750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611ffa565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b828110156133a657888601518255948401946001909101908401613387565b50858210156133e257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561343357600080fd5b8151612a8d816129f4565b60006020828403121561345057600080fd5b8151612a8d81612bdb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134bb576134bb61345b565b5060010190565b600060208083850312156134d557600080fd5b825167ffffffffffffffff8111156134ec57600080fd5b8301601f810185136134fd57600080fd5b805161350881612cc6565b6040516135158282612ac3565b82815260059290921b830184019184810191508783111561353557600080fd5b928401925b8284101561355c57835161354d816129f4565b8252928401929084019061353a565b979650505050505050565b808201808211156106fc576106fc61345b565b818103818111156106fc576106fc61345b565b60006020828403121561359f57600080fd5b5051919050565b6040815260006135b96040830185612f56565b82810360208401526135cb8185612f56565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261360d60a0830186612f56565b828103606084015261361f8186612f56565b905082810360808401526136338185612c4f565b98975050505050505050565b60006020828403121561365157600080fd5b8151612a8d81612a42565b600060033d11156136755760046000803e5060005160e01c5b90565b600060443d10156136865790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff81602484011181841117156136d457505050505090565b82850191508151818111156136ec5750505050505090565b843d87010160208285010111156137065750505050505090565b61371560208286010187612ac3565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261355c60a0830184612c4f56fea26469706673582212201f8a50a5357af21b8d9a7dbbda63631660db29de96435bd2b000a53d7f2cf20364736f6c63430008110033697066733a2f2f516d56473174717666757946754247777a574474484d7a7178755063315a375574594852385636685267644b56340000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6468465159557636624a6e6a6b686f747363775076326b585439516353644159426e593179627947677067322f7b69647d000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102765760003560e01c80636b9d22c111610160578063a6aff8ef116100d8578063dc0183ab1161008c578063e985e9c511610071578063e985e9c5146105b3578063f242432a146105fc578063f2fde38b1461060f57600080fd5b8063dc0183ab146105a3578063e8a3d485146105ab57600080fd5b8063bd85b039116100bd578063bd85b03914610567578063caca87ef14610587578063d4d161431461059057600080fd5b8063a6aff8ef14610534578063b0d34a1e1461055457600080fd5b806392f002331161012f578063938e3d7b11610114578063938e3d7b146104fb57806394cafa4c1461050e578063a22cb4651461052157600080fd5b806392f00233146104c85780639374968a146104e857600080fd5b80636b9d22c11461046f578063715018a6146104825780638da5cb5b1461048a57806390be8ba7146104a857600080fd5b8063334e4856116101f35780633e3484f7116101c25780634e1273f4116101a75780634e1273f4146104195780636422541f1461043957806369f57fc61461045c57600080fd5b80633e3484f7146103e65780634376bb8f146103f957600080fd5b8063334e4856146103805780633570398d1461039357806338478ae7146103b35780633c2b0725146103c657600080fd5b806309cf81c71161024a5780630e2fda881161022f5780630e2fda881461033a5780630e89341c1461034d5780632eb2c2d61461036d57600080fd5b806309cf81c7146102e25780630c223c6f1461032757600080fd5b8062fdd58e1461027b57806301ffc9a7146102a157806302fe5305146102c457806306040618146102d9575b600080fd5b61028e610289366004612a16565b610622565b6040519081526020015b60405180910390f35b6102b46102af366004612a70565b610702565b6040519015158152602001610298565b6102d76102d2366004612b8a565b6107e5565b005b61028e600f5481565b600a546103029073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610298565b6102d7610335366004612be9565b6107fd565b6102d7610348366004612c19565b610843565b61036061035b366004612c36565b610892565b6040516102989190612cb3565b6102d761037b366004612d7b565b610926565b6102d761038e366004612e98565b6109ef565b6009546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6102d76103c1366004612c19565b610e75565b6008546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6102d76103f4366004612c19565b610ec4565b61028e610407366004612c36565b600e6020526000908152604090205481565b61042c610427366004612efc565b610f13565b6040516102989190612f91565b6102b4610447366004612c36565b600b6020526000908152604090205460ff1681565b6102d761046a366004612fa4565b61106b565b6102d761047d366004613077565b6110db565b6102d76114ff565b60035473ffffffffffffffffffffffffffffffffffffffff16610302565b6006546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6007546103029073ffffffffffffffffffffffffffffffffffffffff1681565b6102d76104f6366004612c36565b611513565b6102d7610509366004612b8a565b611520565b6102d761051c3660046130ff565b611534565b6102d761052f366004613145565b6116fd565b61028e610542366004612c36565b600d6020526000908152604090205481565b6102d7610562366004612c19565b611708565b61028e610575366004612c36565b6000908152600c602052604090205490565b61028e60105481565b61042c61059e366004613173565b611757565b6102d7611a01565b610360611a20565b6102b46105c13660046131a8565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102d761060a3660046131d6565b611ab2565b6102d761061d366004612c19565b611b74565b600073ffffffffffffffffffffffffffffffffffffffff83166106cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060008181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061079557507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806106fc57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106fc565b6107ed611c47565b60046107f982826132d8565b5050565b610805611c47565b6000918252600b602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b61084b611c47565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060600480546108a19061323f565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd9061323f565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff851633148061094f575061094f85336105c1565b6109db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f76656400000000000000000000000000000000000060648201526084016106c3565b6109e88585858585611cc8565b5050505050565b60065460085473ffffffffffffffffffffffffffffffffffffffff918216911660005b84518110156109e85760003373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16636352211e888581518110610a6257610a626133f2565b60200260200101516040518263ffffffff1660e01b8152600401610a8891815260200190565b602060405180830381865afa158015610aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac99190613421565b73ffffffffffffffffffffffffffffffffffffffff1603610ae8575060015b80158015610b0d575060085473ffffffffffffffffffffffffffffffffffffffff1615155b15610c3c5760005b8551811015610c3a578373ffffffffffffffffffffffffffffffffffffffff1663aba69cf833888481518110610b4d57610b4d6133f2565b6020026020010151888b8881518110610b6857610b686133f2565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff94851660048201529284166024840152921660448201526064810191909152608401602060405180830381865afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c17919061343e565b1515600103610c2857505083516001905b80610c328161348a565b915050610b15565b505b80158015610c61575060095473ffffffffffffffffffffffffffffffffffffffff1615155b15610e26576009546040517fa3ba430100000000000000000000000000000000000000000000000000000000815233600482015260009173ffffffffffffffffffffffffffffffffffffffff169063a3ba430190602401600060405180830381865afa158015610cd5573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610d1b91908101906134c2565b905060005b8151811015610e2357818181518110610d3b57610d3b6133f2565b602002602001015173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16636352211e8a8781518110610d8757610d876133f2565b60200260200101516040518263ffffffff1660e01b8152600401610dad91815260200190565b602060405180830381865afa158015610dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dee9190613421565b73ffffffffffffffffffffffffffffffffffffffff1603610e1157508051600192505b80610e1b8161348a565b915050610d20565b50505b801515600003610e62576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5080610e6d8161348a565b915050610a12565b610e7d611c47565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610ecc611c47565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60608151835114610fa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016106c3565b6000835167ffffffffffffffff811115610fc257610fc2612a94565b604051908082528060200260200182016040528015610feb578160200160208202803683370190505b50905060005b84518110156110635761103685828151811061100f5761100f6133f2565b6020026020010151858381518110611029576110296133f2565b6020026020010151610622565b828281518110611048576110486133f2565b602090810291909101015261105c8161348a565b9050610ff1565b509392505050565b611073611c47565b60005b82518110156110d65781600b6000858481518110611096576110966133f2565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806110ce9061348a565b915050611076565b505050565b6020830151518351511461111b576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b60208501515181101561116a576020850151805182908110611143576111436133f2565b6020026020010151826111569190613567565b9150806111628161348a565b91505061111f565b506000805b6020850151518110156111ba576020850151805182908110611193576111936133f2565b6020026020010151826111a69190613567565b9150806111b28161348a565b91505061116f565b508181146111f4576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b835161120090846109ef565b835160009061120e90611757565b905060005b85515181101561138a576020860151805182908110611234576112346133f2565b602002602001015182828151811061124e5761124e6133f2565b6020026020010151101561128e576040517f3866fc6c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f5486518051600d91600091859081106112ab576112ab6133f2565b6020026020010151815260200190815260200160002054101561130057600f5486518051600d91600091859081106112e5576112e56133f2565b60200260200101518152602001908152602001600020819055505b6020860151805182908110611317576113176133f2565b6020026020010151828281518110611331576113316133f2565b6020026020010151611343919061357a565b86518051600e916000918590811061135d5761135d6133f2565b602002602001015181526020019081526020016000208190555080806113829061348a565b915050611213565b5060005b8651518110156114f65786518051600b91600091849081106113b2576113b26133f2565b60209081029190910181015182528101919091526040016000205460ff16611406576040517fd213f95000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602087015180518290811061141d5761141d6133f2565b6020026020010151600c60008960006002811061143c5761143c6133f2565b60200201518481518110611452576114526133f2565b6020026020010151815260200190815260200160002060008282546114779190613567565b9091555050865180516114e491339184908110611496576114966133f2565b6020026020010151896001600281106114b1576114b16133f2565b602002015184815181106114c7576114c76133f2565b602002602001015160405180602001604052806000815250612002565b806114ee8161348a565b91505061138e565b50505050505050565b611507611c47565b611511600061216a565b565b61151b611c47565b601055565b611528611c47565b60056107f982826132d8565b60075473ffffffffffffffffffffffffffffffffffffffff163314611585576040517ff8d2906c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602081015151815151146115c5576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8151518110156110d65781518051600b91600091849081106115ec576115ec6133f2565b60209081029190910181015182528101919091526040016000205460ff16611640576040517fd213f95000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6020820151805182908110611657576116576133f2565b6020026020010151600c600084600060028110611676576116766133f2565b6020020151848151811061168c5761168c6133f2565b6020026020010151815260200190815260200160002060008282546116b19190613567565b9091555050815180516116eb918591849081106116d0576116d06133f2565b6020026020010151846001600281106114b1576114b16133f2565b806116f58161348a565b9150506115c8565b6107f93383836121e1565b611710611c47565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60065460609073ffffffffffffffffffffffffffffffffffffffff166117a9576040517fef7b44b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600654825173ffffffffffffffffffffffffffffffffffffffff9091169060009067ffffffffffffffff8111156117e2576117e2612a94565b60405190808252806020026020018201604052801561180b578160200160208202803683370190505b50905060005b8451811015611063578273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611865573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611889919061358d565b85828151811061189b5761189b6133f2565b602002602001015111156118ce5760008282815181106118bd576118bd6133f2565b6020026020010181815250506119ef565b8273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d919061358d565b6000036119585760008282815181106118bd576118bd6133f2565b600f54600d6000878481518110611971576119716133f2565b602002602001015181526020019081526020016000205410156119a3576010548282815181106118bd576118bd6133f2565b600e60008683815181106119b9576119b96133f2565b60200260200101518152602001908152602001600020548282815181106119e2576119e26133f2565b6020026020010181815250505b806119f98161348a565b915050611811565b611a09611c47565b600f8054906000611a198361348a565b9190505550565b606060058054611a2f9061323f565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5b9061323f565b8015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b5050505050905090565b73ffffffffffffffffffffffffffffffffffffffff8516331480611adb5750611adb85336105c1565b611b67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f76656400000000000000000000000000000000000060648201526084016106c3565b6109e88585858585612334565b611b7c611c47565b73ffffffffffffffffffffffffffffffffffffffff8116611c1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106c3565b611c288161216a565b50565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60035473ffffffffffffffffffffffffffffffffffffffff163314611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c3565b8151835114611d59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016106c3565b73ffffffffffffffffffffffffffffffffffffffff8416611dfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106c3565b3360005b8451811015611f6d576000858281518110611e1d57611e1d6133f2565b602002602001015190506000858381518110611e3b57611e3b6133f2565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e168352909352919091205490915081811015611f08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016106c3565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b16825281208054849290611f52908490613567565b9250508190555050505080611f669061348a565b9050611e00565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fe49291906135a6565b60405180910390a4611ffa818787878787612572565b505050505050565b73ffffffffffffffffffffffffffffffffffffffff84166120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106c3565b3360006120b1856127fc565b905060006120be856127fc565b905060008681526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b168452909152812080548792906120fd908490613567565b9091555050604080518781526020810187905273ffffffffffffffffffffffffffffffffffffffff808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46114f683600089898989612847565b6003805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361229c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016106c3565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff84166123d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106c3565b3360006123e3856127fc565b905060006123f0856127fc565b905060008681526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8c168452909152902054858110156124b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016106c3565b60008781526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8d8116855292528083208985039055908a168252812080548892906124fa908490613567565b9091555050604080518881526020810188905273ffffffffffffffffffffffffffffffffffffffff808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612567848a8a8a8a8a612847565b505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611ffa576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906125e990899089908890889088906004016135d4565b6020604051808303816000875af1925050508015612642575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261263f9181019061363f565b60015b61272b5761264e61365c565b806308c379a0036126a15750612662613678565b8061266d57506126a3565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c39190612cb3565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016106c3565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146114f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016106c3565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612836576128366133f2565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611ffa576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906128be9089908990889088908890600401613720565b6020604051808303816000875af1925050508015612917575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526129149181019061363f565b60015b6129235761264e61365c565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146114f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016106c3565b73ffffffffffffffffffffffffffffffffffffffff81168114611c2857600080fd5b60008060408385031215612a2957600080fd5b8235612a34816129f4565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c2857600080fd5b600060208284031215612a8257600080fd5b8135612a8d81612a42565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715612b0757612b07612a94565b6040525050565b600067ffffffffffffffff831115612b2857612b28612a94565b604051612b5d60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8701160182612ac3565b809150838152848484011115612b7257600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612b9c57600080fd5b813567ffffffffffffffff811115612bb357600080fd5b8201601f81018413612bc457600080fd5b612bd384823560208401612b0e565b949350505050565b8015158114611c2857600080fd5b60008060408385031215612bfc57600080fd5b823591506020830135612c0e81612bdb565b809150509250929050565b600060208284031215612c2b57600080fd5b8135612a8d816129f4565b600060208284031215612c4857600080fd5b5035919050565b6000815180845260005b81811015612c7557602081850181015186830182015201612c59565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081526000612a8d6020830184612c4f565b600067ffffffffffffffff821115612ce057612ce0612a94565b5060051b60200190565b600082601f830112612cfb57600080fd5b81356020612d0882612cc6565b604051612d158282612ac3565b83815260059390931b8501820192828101915086841115612d3557600080fd5b8286015b84811015612d505780358352918301918301612d39565b509695505050505050565b600082601f830112612d6c57600080fd5b612a8d83833560208501612b0e565b600080600080600060a08688031215612d9357600080fd5b8535612d9e816129f4565b94506020860135612dae816129f4565b9350604086013567ffffffffffffffff80821115612dcb57600080fd5b612dd789838a01612cea565b94506060880135915080821115612ded57600080fd5b612df989838a01612cea565b93506080880135915080821115612e0f57600080fd5b50612e1c88828901612d5b565b9150509295509295909350565b600082601f830112612e3a57600080fd5b81356020612e4782612cc6565b604051612e548282612ac3565b83815260059390931b8501820192828101915086841115612e7457600080fd5b8286015b84811015612d50578035612e8b816129f4565b8352918301918301612e78565b60008060408385031215612eab57600080fd5b823567ffffffffffffffff80821115612ec357600080fd5b612ecf86838701612cea565b93506020850135915080821115612ee557600080fd5b50612ef285828601612e29565b9150509250929050565b60008060408385031215612f0f57600080fd5b823567ffffffffffffffff80821115612f2757600080fd5b612f3386838701612e29565b93506020850135915080821115612f4957600080fd5b50612ef285828601612cea565b600081518084526020808501945080840160005b83811015612f8657815187529582019590820190600101612f6a565b509495945050505050565b602081526000612a8d6020830184612f56565b60008060408385031215612fb757600080fd5b823567ffffffffffffffff811115612fce57600080fd5b612fda85828601612cea565b9250506020830135612c0e81612bdb565b600082601f830112612ffc57600080fd5b6040516040810167ffffffffffffffff828210818311171561302057613020612a94565b6040918252829185018681111561303657600080fd5b855b8181101561306b578035838111156130505760008081fd5b61305c89828a01612cea565b85525060209384019301613038565b50929695505050505050565b60008060006060848603121561308c57600080fd5b833567ffffffffffffffff808211156130a457600080fd5b6130b087838801612feb565b945060208601359150808211156130c657600080fd5b6130d287838801612feb565b935060408601359150808211156130e857600080fd5b506130f586828701612e29565b9150509250925092565b6000806040838503121561311257600080fd5b823561311d816129f4565b9150602083013567ffffffffffffffff81111561313957600080fd5b612ef285828601612feb565b6000806040838503121561315857600080fd5b8235613163816129f4565b91506020830135612c0e81612bdb565b60006020828403121561318557600080fd5b813567ffffffffffffffff81111561319c57600080fd5b612bd384828501612cea565b600080604083850312156131bb57600080fd5b82356131c6816129f4565b91506020830135612c0e816129f4565b600080600080600060a086880312156131ee57600080fd5b85356131f9816129f4565b94506020860135613209816129f4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561323357600080fd5b612e1c88828901612d5b565b600181811c9082168061325357607f821691505b60208210810361328c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156110d657600081815260208120601f850160051c810160208610156132b95750805b601f850160051c820191505b81811015611ffa578281556001016132c5565b815167ffffffffffffffff8111156132f2576132f2612a94565b61330681613300845461323f565b84613292565b602080601f83116001811461335957600084156133235750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611ffa565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b828110156133a657888601518255948401946001909101908401613387565b50858210156133e257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561343357600080fd5b8151612a8d816129f4565b60006020828403121561345057600080fd5b8151612a8d81612bdb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134bb576134bb61345b565b5060010190565b600060208083850312156134d557600080fd5b825167ffffffffffffffff8111156134ec57600080fd5b8301601f810185136134fd57600080fd5b805161350881612cc6565b6040516135158282612ac3565b82815260059290921b830184019184810191508783111561353557600080fd5b928401925b8284101561355c57835161354d816129f4565b8252928401929084019061353a565b979650505050505050565b808201808211156106fc576106fc61345b565b818103818111156106fc576106fc61345b565b60006020828403121561359f57600080fd5b5051919050565b6040815260006135b96040830185612f56565b82810360208401526135cb8185612f56565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261360d60a0830186612f56565b828103606084015261361f8186612f56565b905082810360808401526136338185612c4f565b98975050505050505050565b60006020828403121561365157600080fd5b8151612a8d81612a42565b600060033d11156136755760046000803e5060005160e01c5b90565b600060443d10156136865790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff81602484011181841117156136d457505050505090565b82850191508151818111156136ec5750505050505090565b843d87010160208285010111156137065750505050505090565b61371560208286010187612ac3565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261355c60a0830184612c4f56fea26469706673582212201f8a50a5357af21b8d9a7dbbda63631660db29de96435bd2b000a53d7f2cf20364736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f516d6468465159557636624a6e6a6b686f747363775076326b585439516353644159426e593179627947677067322f7b69647d000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://QmdhFQYUv6bJnjkhotscwPv2kXT9QcSdAYBnY1ybyGgpg2/{id}

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [2] : 697066733a2f2f516d6468465159557636624a6e6a6b686f747363775076326b
Arg [3] : 585439516353644159426e593179627947677067322f7b69647d000000000000


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.