ETH Price: $2,579.17 (+0.96%)

Token

Formacar Action NFT Pass 2 (FCNFT2)
 

Overview

Max Total Supply

58 FCNFT2

Holders

58

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
alienovicho.eth
Balance
1 FCNFT2
0xdf3031b20f90f9A4A436aBC4C6c567C8ddFf5651
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:
FormacarNftPass

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : FormacarNftPass.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";


interface IPrevNftPass
{
	function symbol() external view returns (string memory);
	function totalSupply() external view returns (uint256);
	function balanceOf(address owner) external view returns (uint256 balance);
}


contract FormacarNftPass is ERC721
{


uint private _tokenCounter;
string private _baseUriString;

address public owner;
address private _previousOwner;

mapping (address => bool) public admins;

mapping (address => bool) public transferAllowedFor;
bool public transfersAllowed;

bool public mintAndSendNftPassAllowed;

bool public paidMintAllowed;
bool public inviteMintAllowed;

address public treasury;
uint public treasuryReserve = 100;
uint public maxTotalSupply = 10000;

uint public mintPrice = 0.03 ether;
bytes32 public inviteMerkleRoot;

mapping (bytes32 => bool) public usedInvites;
uint public usedInvitesCount;

IPrevNftPass public immutable PREV_NFTPASS;


constructor(
	address owner_,
	address[] memory admins_,
	string memory baseURI_
)
	ERC721('Formacar Action NFT Pass 2', 'FCNFT2')
{
	require(owner_ != address(0), 'FNP: invalid owner');
	owner = owner_;
	transferAllowedFor[owner_] = true;
	treasury = owner_;

	for (uint i; i < admins_.length; i++)
	{
		address admin = admins_[i];
		require (admin != address(0), 'FNP: invalid admin');

		admins[admin] = true;
		transferAllowedFor[admin] = true;
	}

	_baseUriString = baseURI_;

	// https://etherscan.io/token/0xdE0ADc2d817502ed86Df91c7217Ddbde79163399
	PREV_NFTPASS = IPrevNftPass(address(0xdE0ADc2d817502ed86Df91c7217Ddbde79163399));
	require(keccak256(bytes(PREV_NFTPASS.symbol())) == keccak256(bytes('FCNFT'))
		&& PREV_NFTPASS.totalSupply() > 0, 'FNP: invalid previous nft pass contract');
}


modifier onlyOwner()
{ require(msg.sender == owner, 'FNP: only owner'); _; }

function _isAdmin(address account) private view returns (bool)
{ return admins[account] || account == owner; }

modifier onlyAdmin()
{ require(_isAdmin(msg.sender), 'FNP: only admin'); _; }


function transferOwnership(address account) external onlyOwner
{
	require(account != address(0) && account != owner, 'FNP: invalid address');

	_previousOwner = msg.sender;
	owner = account;
}

function rollbackOwnership() external
{
	require(msg.sender == _previousOwner, 'FNP: only previous owner');

	owner = msg.sender;
	_previousOwner = address(0);
}

function setAdmin(address account, bool itIs) external onlyOwner
{
	require(account != address(0), 'FNP: invalid address');
	admins[account] = itIs;
}

function setTreasury(address account) external onlyOwner
{
	require(account != address(0), 'FNP: invalid address');

	treasury = account;
	transferAllowedFor[account] = true;
}

function setMaxTotalSupply(uint count) external onlyOwner
{
	require(count > treasuryReserve, 'FNP: treasury reserve');
	maxTotalSupply = count;
}

function setTreasuryReserve(uint count) external onlyOwner
{
	require(count < maxTotalSupply, 'FNP: max total supply');
	treasuryReserve = count;
}

function setBaseURI(string memory newUri) external onlyOwner
{ _baseUriString = newUri; }

function setInviteMerkleRoot(bytes32 root) external onlyOwner
{ inviteMerkleRoot = root; }

function setMintPrice(uint amount) external onlyOwner
{ mintPrice = amount; }

function toggleTransfersAllowed() external onlyOwner
{ transfersAllowed = !transfersAllowed; }

function toggleMintAndSendNftPassAllowed() external onlyOwner
{ mintAndSendNftPassAllowed = !mintAndSendNftPassAllowed; }

function togglePaidMintAllowed() external onlyOwner
{ paidMintAllowed = !paidMintAllowed; }

function toggleInviteMintAllowed() external onlyOwner
{ inviteMintAllowed = !inviteMintAllowed; }

function setTransferAllowedFor(address[] calldata accounts, bool[] calldata alloweds) external onlyAdmin
{
	require(accounts.length > 0 && alloweds.length == accounts.length, 'FNP: invalid arrays');

	for (uint i; i < accounts.length; i++)
	{
		require(accounts[i] != address(0), 'FNP: invalid address');
		transferAllowedFor[accounts[i]] = alloweds[i];
	}
}


// Global check in both contracts
function hasNftPass(address account) public view returns (bool)
{ return balanceOf(account) > 0 || PREV_NFTPASS.balanceOf(account) > 0; }

function totalSupply() external view returns (uint)
{ return _tokenCounter; }

// Override base uri getter
function _baseURI() internal view virtual override returns (string memory)
{ return _baseUriString; }


// Override transfer
function _transfer(address from, address to, uint256 tokenId) internal virtual override
{
	require(transfersAllowed || transferAllowedFor[from], 'FNP: transfer not allowed yet');
	require(from != treasury || _isAdmin(msg.sender), 'FNP: only admin can transfer from treasury');

	super._transfer(from, to, tokenId);
}


function inviteMint(bytes32 secret, bytes32[] calldata merkleProof) external
{
	require(inviteMintAllowed, 'FNP: not allowed');
	require(!hasNftPass(msg.sender), 'FNP: you already have NFT Pass');
	require(_tokenCounter < maxTotalSupply - treasuryReserve, 'FNP: supply limit');

	bytes32 hashedSecret = keccak256(abi.encodePacked(secret));
	bytes32 leaf = keccak256(abi.encodePacked(hashedSecret));
	require(MerkleProof.verify(merkleProof, inviteMerkleRoot, leaf), 'FNP: invalid invite');
	require(!usedInvites[leaf], 'FNP: invite already used');

	usedInvites[leaf] = true;
	usedInvitesCount++;

	_safeMint(msg.sender, ++_tokenCounter);
}

function paidMint() external payable
{
	require(paidMintAllowed, 'FNP: not allowed');
	require(msg.value >= mintPrice, 'FNP: pay amount not enough');
	require(!hasNftPass(msg.sender), 'FNP: you already have NFT Pass');
	require(_tokenCounter < maxTotalSupply - treasuryReserve, 'FNP: supply limit');

	_safeMint(msg.sender, ++_tokenCounter);
}

function treasuryMint(uint count) external onlyOwner
{
	require(_tokenCounter < maxTotalSupply, 'FNP: supply limit');
	require(count > 0, 'FNP: invalid count');

	if (_tokenCounter + count > maxTotalSupply)
		count = maxTotalSupply - _tokenCounter;

	for (uint i; i < count; i++)
		_safeMint(treasury, ++_tokenCounter);
}

function sendNftPass(address to, uint tokenId) public
{ safeTransferFrom(treasury, to, tokenId); }

function sendNftPassMulti(address[] calldata tos, uint[] calldata tokenIds) external
{
	require(tos.length > 0 && tos.length == tokenIds.length, 'FNP: invalid arrays');

	for (uint i; i < tos.length; i++)
		sendNftPass(tos[i], tokenIds[i]);
}

function mintAndSendNftPass(address to) external onlyAdmin
{
	require(_tokenCounter < maxTotalSupply, 'FNP: supply limit');
	require(mintAndSendNftPassAllowed, 'FNP: not allowed');

	_safeMint(to, ++_tokenCounter);
}

function mintAndSendNftPassMulti(address[] calldata tos) external onlyAdmin
{
	require(tos.length > 0, 'FNP: invalid array');
	require(tos.length + _tokenCounter <= maxTotalSupply, 'FNP: supply limit');
	require(mintAndSendNftPassAllowed, 'FNP: not allowed');

	for (uint i; i < tos.length; i++)
		_safeMint(tos[i], ++_tokenCounter);
}


function withdrawEther() external onlyOwner
{ payable(msg.sender).transfer(address(this).balance); }

fallback() external payable {}
receive() external payable {}


}

File 2 of 12 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 4 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 6 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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 7 of 12 : 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 8 of 12 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 9 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

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

File 11 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 12 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address[]","name":"admins_","type":"address[]"},{"internalType":"string","name":"baseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"PREV_NFTPASS","outputs":[{"internalType":"contract IPrevNftPass","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"hasNftPass","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inviteMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"secret","type":"bytes32"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"inviteMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"inviteMintAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintAndSendNftPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintAndSendNftPassAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"}],"name":"mintAndSendNftPassMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paidMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"paidMintAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rollbackOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"sendNftPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"sendNftPassMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"itIs","type":"bool"}],"name":"setAdmin","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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setInviteMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"setMaxTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool[]","name":"alloweds","type":"bool[]"}],"name":"setTransferAllowedFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"setTreasuryReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleInviteMintAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintAndSendNftPassAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePaidMintAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleTransfersAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferAllowedFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedInvites","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usedInvitesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040526064600d55612710600e55666a94d74f430000600f553480156200002757600080fd5b50604051620035f6380380620035f68339810160408190526200004a91620005c7565b604080518082018252601a81527f466f726d6163617220416374696f6e204e4654205061737320320000000000006020808301918252835180850190945260068452652321a7232a1960d11b908401528151919291620000ad9160009162000426565b508051620000c390600190602084019062000426565b5050506001600160a01b038316620001175760405162461bcd60e51b81526020600482015260126024820152712327281d1034b73b30b634b21037bbb732b960711b60448201526064015b60405180910390fd5b600880546001600160a01b0319166001600160a01b0385169081179091556000818152600b60205260408120805460ff19166001179055600c8054600160201b600160c01b031916640100000000909302929092179091555b825181101562000244576000838281518110620001915762000191620006bc565b6020026020010151905060006001600160a01b0316816001600160a01b03161415620001f55760405162461bcd60e51b81526020600482015260126024820152712327281d1034b73b30b634b21030b236b4b760711b60448201526064016200010e565b6001600160a01b03166000908152600a602090815260408083208054600160ff199182168117909255600b909352922080549091169091179055806200023b81620006d2565b91505062000170565b5080516200025a90600790602084019062000426565b5073de0adc2d817502ed86df91c7217ddbde79163399608090815260408051808201825260058152641190d3919560da1b602090910152905181516395d89b4160e01b815291517f1f6bc200522eef52b83405b14231a32dd0b95ffc6030646edb8edabe5a902a4b926001600160a01b03909216916395d89b41916004808301926000929190829003018186803b158015620002f557600080fd5b505afa1580156200030a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620003349190810190620006fc565b80519060200120148015620003bf575060006080516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200038257600080fd5b505afa15801562000397573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003bd91906200073c565b115b6200041d5760405162461bcd60e51b815260206004820152602760248201527f464e503a20696e76616c69642070726576696f7573206e6674207061737320636044820152661bdb9d1c9858dd60ca1b60648201526084016200010e565b50505062000793565b828054620004349062000756565b90600052602060002090601f016020900481019282620004585760008555620004a3565b82601f106200047357805160ff1916838001178555620004a3565b82800160010185558215620004a3579182015b82811115620004a357825182559160200191906001019062000486565b50620004b1929150620004b5565b5090565b5b80821115620004b15760008155600101620004b6565b80516001600160a01b0381168114620004e457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200052a576200052a620004e9565b604052919050565b600082601f8301126200054457600080fd5b81516001600160401b03811115620005605762000560620004e9565b602062000576601f8301601f19168201620004ff565b82815285828487010111156200058b57600080fd5b60005b83811015620005ab5785810183015182820184015282016200058e565b83811115620005bd5760008385840101525b5095945050505050565b600080600060608486031215620005dd57600080fd5b620005e884620004cc565b602085810151919450906001600160401b03808211156200060857600080fd5b818701915087601f8301126200061d57600080fd5b815181811115620006325762000632620004e9565b8060051b62000643858201620004ff565b918252838101850191858101908b8411156200065e57600080fd5b948601945b8386101562000687576200067786620004cc565b8252948601949086019062000663565b60408b0151909850955050505080831115620006a257600080fd5b5050620006b28682870162000532565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620006f557634e487b7160e01b600052601160045260246000fd5b5060010190565b6000602082840312156200070f57600080fd5b81516001600160401b038111156200072657600080fd5b620007348482850162000532565b949350505050565b6000602082840312156200074f57600080fd5b5051919050565b600181811c908216806200076b57607f821691505b602082108114156200078d57634e487b7160e01b600052602260045260246000fd5b50919050565b608051612e40620007b66000396000818161044801526111290152612e406000f3fe6080604052600436106102df5760003560e01c80638d9c8edc1161017e578063d3b2efbe116100d3578063f0f442601161008f578063f2fde38b1161006c578063f2fde38b146108ee578063f4a0a5281461090e578063f65e73021461092e578063fe9768e61461094e57005b8063f0f442601461088d578063f17d2e35146108ad578063f1c52c86146108ce57005b8063d3b2efbe146107ad578063d8ee98ea146107cd578063e0ec688a146107ec578063e985e9c51461081c578063efdc778814610865578063f0238a111461088557005b8063adc606131161013a578063c5acafa911610117578063c5acafa914610742578063c87b56dd14610758578063ce81460d14610778578063cf0c89111461079857005b8063adc60613146106f3578063b0660c3d14610708578063b88d4fde1461072257005b80638d9c8edc146106445780638da5cb5b1461065957806395c3b5b31461067957806395d89b41146106a9578063a22cb465146106be578063a75d79ba146106de57005b806342842e0e116102345780636352211e116101f05780636e3a81e3116101cd5780636e3a81e3146105da57806370a08231146105fa5780637362377b1461061a5780638928d2921461062f57005b80636352211e14610584578063638e5708146105a45780636817c76c146105c457005b806342842e0e146104b6578063429b62e5146104d65780634b0bddd21461050657806355f804b31461052657806359297dbf1461054657806361d027b31461055c57005b80631ecd794f1161029b578063259024081161027857806325902408146104365780632783d3881461046a5780632ab4d052146104805780633f3e4c111461049657005b80631ecd794f146103d657806323b872dd146103f6578063245028de1461041657005b8063018e5263146102e857806301ffc9a71461030857806306fdde031461033d578063081812fc1461035f578063095ea7b31461039757806318160ddd146103b757005b366102e657005b005b3480156102f457600080fd5b506102e66103033660046126a7565b61096e565b34801561031457600080fd5b506103286103233660046126d8565b610a06565b60405190151581526020015b60405180910390f35b34801561034957600080fd5b50610352610a58565b604051610334919061274d565b34801561036b57600080fd5b5061037f61037a366004612760565b610aea565b6040516001600160a01b039091168152602001610334565b3480156103a357600080fd5b506102e66103b2366004612779565b610b11565b3480156103c357600080fd5b506006545b604051908152602001610334565b3480156103e257600080fd5b506102e66103f1366004612760565b610c27565b34801561040257600080fd5b506102e66104113660046127a3565b610c9f565b34801561042257600080fd5b506102e661043136600461282b565b610cd0565b34801561044257600080fd5b5061037f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561047657600080fd5b506103c860105481565b34801561048c57600080fd5b506103c8600e5481565b3480156104a257600080fd5b506102e66104b1366004612760565b610de2565b3480156104c257600080fd5b506102e66104d13660046127a3565b610e5a565b3480156104e257600080fd5b506103286104f13660046126a7565b600a6020526000908152604090205460ff1681565b34801561051257600080fd5b506102e661052136600461287d565b610e75565b34801561053257600080fd5b506102e661054136600461293c565b610ef0565b34801561055257600080fd5b506103c8600d5481565b34801561056857600080fd5b50600c5461037f9064010000000090046001600160a01b031681565b34801561059057600080fd5b5061037f61059f366004612760565b610f31565b3480156105b057600080fd5b506102e66105bf366004612985565b610f91565b3480156105d057600080fd5b506103c8600f5481565b3480156105e657600080fd5b506103286105f53660046126a7565b6110f4565b34801561060657600080fd5b506103c86106153660046126a7565b6111ac565b34801561062657600080fd5b506102e6611232565b34801561063b57600080fd5b506102e6611288565b34801561065057600080fd5b506102e66112cf565b34801561066557600080fd5b5060085461037f906001600160a01b031681565b34801561068557600080fd5b506103286106943660046126a7565b600b6020526000908152604090205460ff1681565b3480156106b557600080fd5b5061035261131a565b3480156106ca57600080fd5b506102e66106d936600461287d565b611329565b3480156106ea57600080fd5b506102e6611334565b3480156106ff57600080fd5b506102e661137d565b34801561071457600080fd5b50600c546103289060ff1681565b34801561072e57600080fd5b506102e661073d3660046129f1565b6113f7565b34801561074e57600080fd5b506103c860125481565b34801561076457600080fd5b50610352610773366004612760565b61142f565b34801561078457600080fd5b506102e6610793366004612760565b611496565b3480156107a457600080fd5b506102e66114c5565b3480156107b957600080fd5b506102e66107c8366004612a6d565b611503565b3480156107d957600080fd5b50600c5461032890610100900460ff1681565b3480156107f857600080fd5b50610328610807366004612760565b60116020526000908152604090205460ff1681565b34801561082857600080fd5b50610328610837366004612ab9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561087157600080fd5b506102e6610880366004612760565b611724565b6102e6611825565b34801561089957600080fd5b506102e66108a83660046126a7565b61193a565b3480156108b957600080fd5b50600c54610328906301000000900460ff1681565b3480156108da57600080fd5b506102e66108e9366004612779565b6119cf565b3480156108fa57600080fd5b506102e66109093660046126a7565b6119ee565b34801561091a57600080fd5b506102e6610929366004612760565b611a8a565b34801561093a57600080fd5b50600c546103289062010000900460ff1681565b34801561095a57600080fd5b506102e6610969366004612985565b611ab9565b61097733611b6e565b61099c5760405162461bcd60e51b815260040161099390612ae3565b60405180910390fd5b600e54600654106109bf5760405162461bcd60e51b815260040161099390612b0c565b600c54610100900460ff166109e65760405162461bcd60e51b815260040161099390612b37565b610a03816006600081546109f990612b77565b9182905550611ba5565b50565b60006001600160e01b031982166380ac58cd60e01b1480610a3757506001600160e01b03198216635b5e139f60e01b145b80610a5257506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610a6790612b92565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9390612b92565b8015610ae05780601f10610ab557610100808354040283529160200191610ae0565b820191906000526020600020905b815481529060010190602001808311610ac357829003601f168201915b5050505050905090565b6000610af582611bbf565b506000908152600460205260409020546001600160a01b031690565b6000610b1c82610f31565b9050806001600160a01b0316836001600160a01b03161415610b8a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610993565b336001600160a01b0382161480610ba65750610ba68133610837565b610c185760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610993565b610c228383611c1e565b505050565b6008546001600160a01b03163314610c515760405162461bcd60e51b815260040161099390612bcd565b600e548110610c9a5760405162461bcd60e51b8152602060048201526015602482015274464e503a206d617820746f74616c20737570706c7960581b6044820152606401610993565b600d55565b610ca93382611c8c565b610cc55760405162461bcd60e51b815260040161099390612bf6565b610c22838383611d0b565b610cd933611b6e565b610cf55760405162461bcd60e51b815260040161099390612ae3565b80610d375760405162461bcd60e51b8152602060048201526012602482015271464e503a20696e76616c696420617272617960701b6044820152606401610993565b600e54600654610d479083612c43565b1115610d655760405162461bcd60e51b815260040161099390612b0c565b600c54610100900460ff16610d8c5760405162461bcd60e51b815260040161099390612b37565b60005b81811015610c2257610dd0838383818110610dac57610dac612c5b565b9050602002016020810190610dc191906126a7565b6006600081546109f990612b77565b80610dda81612b77565b915050610d8f565b6008546001600160a01b03163314610e0c5760405162461bcd60e51b815260040161099390612bcd565b600d548111610e555760405162461bcd60e51b8152602060048201526015602482015274464e503a207472656173757279207265736572766560581b6044820152606401610993565b600e55565b610c22838383604051806020016040528060008152506113f7565b6008546001600160a01b03163314610e9f5760405162461bcd60e51b815260040161099390612bcd565b6001600160a01b038216610ec55760405162461bcd60e51b815260040161099390612c71565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b6008546001600160a01b03163314610f1a5760405162461bcd60e51b815260040161099390612bcd565b8051610f2d9060079060208401906125f2565b5050565b6000818152600260205260408120546001600160a01b031680610a525760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610993565b610f9a33611b6e565b610fb65760405162461bcd60e51b815260040161099390612ae3565b8215801590610fc457508083145b6110065760405162461bcd60e51b8152602060048201526013602482015272464e503a20696e76616c69642061727261797360681b6044820152606401610993565b60005b838110156110ed57600085858381811061102557611025612c5b565b905060200201602081019061103a91906126a7565b6001600160a01b031614156110615760405162461bcd60e51b815260040161099390612c71565b82828281811061107357611073612c5b565b90506020020160208101906110889190612c9f565b600b600087878581811061109e5761109e612c5b565b90506020020160208101906110b391906126a7565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806110e581612b77565b915050611009565b5050505050565b600080611100836111ac565b1180610a5257506040516370a0823160e01b81526001600160a01b0383811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a59190612cba565b1192915050565b60006001600160a01b0382166112165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610993565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b0316331461125c5760405162461bcd60e51b815260040161099390612bcd565b60405133904780156108fc02916000818181858888f19350505050158015610a03573d6000803e3d6000fd5b6008546001600160a01b031633146112b25760405162461bcd60e51b815260040161099390612bcd565b600c805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b031633146112f95760405162461bcd60e51b815260040161099390612bcd565b600c805463ff00000019811663010000009182900460ff1615909102179055565b606060018054610a6790612b92565b610f2d338383611e13565b6008546001600160a01b0316331461135e5760405162461bcd60e51b815260040161099390612bcd565b600c805462ff0000198116620100009182900460ff1615909102179055565b6009546001600160a01b031633146113d75760405162461bcd60e51b815260206004820152601860248201527f464e503a206f6e6c792070726576696f7573206f776e657200000000000000006044820152606401610993565b600880546001600160a01b03199081163317909155600980549091169055565b6114013383611c8c565b61141d5760405162461bcd60e51b815260040161099390612bf6565b61142984848484611ee2565b50505050565b606061143a82611bbf565b6000611444611f15565b90506000815111611464576040518060200160405280600081525061148f565b8061146e84611f24565b60405160200161147f929190612cd3565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146114c05760405162461bcd60e51b815260040161099390612bcd565b601055565b6008546001600160a01b031633146114ef5760405162461bcd60e51b815260040161099390612bcd565b600c805460ff19811660ff90911615179055565b600c546301000000900460ff1661152c5760405162461bcd60e51b815260040161099390612b37565b611535336110f4565b156115825760405162461bcd60e51b815260206004820152601e60248201527f464e503a20796f7520616c72656164792068617665204e4654205061737300006044820152606401610993565b600d54600e546115929190612d02565b600654106115b25760405162461bcd60e51b815260040161099390612b0c565b6000836040516020016115c791815260200190565b60408051601f198184030181528282528051602091820120908301819052925060009101604051602081830303815290604052805190602001209050611644848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506010549150849050611fc1565b6116865760405162461bcd60e51b8152602060048201526013602482015272464e503a20696e76616c696420696e7669746560681b6044820152606401610993565b60008181526011602052604090205460ff16156116e55760405162461bcd60e51b815260206004820152601860248201527f464e503a20696e7669746520616c7265616479207573656400000000000000006044820152606401610993565b6000818152601160205260408120805460ff19166001179055601280549161170c83612b77565b91905055506110ed336006600081546109f990612b77565b6008546001600160a01b0316331461174e5760405162461bcd60e51b815260040161099390612bcd565b600e54600654106117715760405162461bcd60e51b815260040161099390612b0c565b600081116117b65760405162461bcd60e51b81526020600482015260126024820152711193940e881a5b9d985b1a590818dbdd5b9d60721b6044820152606401610993565b600e54816006546117c79190612c43565b11156117e057600654600e546117dd9190612d02565b90505b60005b81811015610f2d57611813600c60049054906101000a90046001600160a01b03166006600081546109f990612b77565b8061181d81612b77565b9150506117e3565b600c5462010000900460ff1661184d5760405162461bcd60e51b815260040161099390612b37565b600f5434101561189f5760405162461bcd60e51b815260206004820152601a60248201527f464e503a2070617920616d6f756e74206e6f7420656e6f7567680000000000006044820152606401610993565b6118a8336110f4565b156118f55760405162461bcd60e51b815260206004820152601e60248201527f464e503a20796f7520616c72656164792068617665204e4654205061737300006044820152606401610993565b600d54600e546119059190612d02565b600654106119255760405162461bcd60e51b815260040161099390612b0c565b611938336006600081546109f990612b77565b565b6008546001600160a01b031633146119645760405162461bcd60e51b815260040161099390612bcd565b6001600160a01b03811661198a5760405162461bcd60e51b815260040161099390612c71565b600c8054640100000000600160c01b0319166401000000006001600160a01b03939093169283021790556000908152600b60205260409020805460ff19166001179055565b600c54610f2d9064010000000090046001600160a01b03168383610e5a565b6008546001600160a01b03163314611a185760405162461bcd60e51b815260040161099390612bcd565b6001600160a01b03811615801590611a3e57506008546001600160a01b03828116911614155b611a5a5760405162461bcd60e51b815260040161099390612c71565b60098054336001600160a01b031991821617909155600880549091166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611ab45760405162461bcd60e51b815260040161099390612bcd565b600f55565b8215801590611ac757508281145b611b095760405162461bcd60e51b8152602060048201526013602482015272464e503a20696e76616c69642061727261797360681b6044820152606401610993565b60005b838110156110ed57611b5c858583818110611b2957611b29612c5b565b9050602002016020810190611b3e91906126a7565b848484818110611b5057611b50612c5b565b905060200201356119cf565b80611b6681612b77565b915050611b0c565b6001600160a01b0381166000908152600a602052604081205460ff1680610a525750506008546001600160a01b0390811691161490565b610f2d828260405180602001604052806000815250611fd7565b6000818152600260205260409020546001600160a01b0316610a035760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610993565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c5382610f31565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c9883610f31565b9050806001600160a01b0316846001600160a01b03161480611cdf57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611d035750836001600160a01b0316611cf884610aea565b6001600160a01b0316145b949350505050565b600c5460ff1680611d3457506001600160a01b0383166000908152600b602052604090205460ff165b611d805760405162461bcd60e51b815260206004820152601d60248201527f464e503a207472616e73666572206e6f7420616c6c6f776564207965740000006044820152606401610993565b600c546001600160a01b0384811664010000000090920416141580611da95750611da933611b6e565b611e085760405162461bcd60e51b815260206004820152602a60248201527f464e503a206f6e6c792061646d696e2063616e207472616e736665722066726f6044820152696d20747265617375727960b01b6064820152608401610993565b610c2283838361200a565b816001600160a01b0316836001600160a01b03161415611e755760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610993565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611eed848484611d0b565b611ef98484848461217b565b6114295760405162461bcd60e51b815260040161099390612d19565b606060078054610a6790612b92565b60606000611f3183612288565b600101905060008167ffffffffffffffff811115611f5157611f516128b0565b6040519080825280601f01601f191660200182016040528015611f7b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611fb457611fb9565b611f85565b509392505050565b600082611fce8584612360565b14949350505050565b611fe183836123a5565b611fee600084848461217b565b610c225760405162461bcd60e51b815260040161099390612d19565b826001600160a01b031661201d82610f31565b6001600160a01b0316146120435760405162461bcd60e51b815260040161099390612d6b565b6001600160a01b0382166120a55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610993565b6120b2838383600161253e565b826001600160a01b03166120c582610f31565b6001600160a01b0316146120eb5760405162461bcd60e51b815260040161099390612d6b565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561227d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121bf903390899088908890600401612db0565b602060405180830381600087803b1580156121d957600080fd5b505af1925050508015612209575060408051601f3d908101601f1916820190925261220691810190612ded565b60015b612263573d808015612237576040519150601f19603f3d011682016040523d82523d6000602084013e61223c565b606091505b50805161225b5760405162461bcd60e51b815260040161099390612d19565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d03565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106122c75772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106122f3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061231157662386f26fc10000830492506010015b6305f5e1008310612329576305f5e100830492506008015b612710831061233d57612710830492506004015b6064831061234f576064830492506002015b600a8310610a525760010192915050565b600081815b8451811015611fb9576123918286838151811061238457612384612c5b565b60200260200101516125c6565b91508061239d81612b77565b915050612365565b6001600160a01b0382166123fb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610993565b6000818152600260205260409020546001600160a01b0316156124605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610993565b61246e60008383600161253e565b6000818152600260205260409020546001600160a01b0316156124d35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610993565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001811115611429576001600160a01b03841615612584576001600160a01b0384166000908152600360205260408120805483929061257e908490612d02565b90915550505b6001600160a01b03831615611429576001600160a01b038316600090815260036020526040812080548392906125bb908490612c43565b909155505050505050565b60008183106125e257600082815260208490526040902061148f565b5060009182526020526040902090565b8280546125fe90612b92565b90600052602060002090601f0160209004810192826126205760008555612666565b82601f1061263957805160ff1916838001178555612666565b82800160010185558215612666579182015b8281111561266657825182559160200191906001019061264b565b50612672929150612676565b5090565b5b808211156126725760008155600101612677565b80356001600160a01b03811681146126a257600080fd5b919050565b6000602082840312156126b957600080fd5b61148f8261268b565b6001600160e01b031981168114610a0357600080fd5b6000602082840312156126ea57600080fd5b813561148f816126c2565b60005b838110156127105781810151838201526020016126f8565b838111156114295750506000910152565b600081518084526127398160208601602086016126f5565b601f01601f19169290920160200192915050565b60208152600061148f6020830184612721565b60006020828403121561277257600080fd5b5035919050565b6000806040838503121561278c57600080fd5b6127958361268b565b946020939093013593505050565b6000806000606084860312156127b857600080fd5b6127c18461268b565b92506127cf6020850161268b565b9150604084013590509250925092565b60008083601f8401126127f157600080fd5b50813567ffffffffffffffff81111561280957600080fd5b6020830191508360208260051b850101111561282457600080fd5b9250929050565b6000806020838503121561283e57600080fd5b823567ffffffffffffffff81111561285557600080fd5b612861858286016127df565b90969095509350505050565b803580151581146126a257600080fd5b6000806040838503121561289057600080fd5b6128998361268b565b91506128a76020840161286d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156128e1576128e16128b0565b604051601f8501601f19908116603f01168101908282118183101715612909576129096128b0565b8160405280935085815286868601111561292257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561294e57600080fd5b813567ffffffffffffffff81111561296557600080fd5b8201601f8101841361297657600080fd5b611d03848235602084016128c6565b6000806000806040858703121561299b57600080fd5b843567ffffffffffffffff808211156129b357600080fd5b6129bf888389016127df565b909650945060208701359150808211156129d857600080fd5b506129e5878288016127df565b95989497509550505050565b60008060008060808587031215612a0757600080fd5b612a108561268b565b9350612a1e6020860161268b565b925060408501359150606085013567ffffffffffffffff811115612a4157600080fd5b8501601f81018713612a5257600080fd5b612a61878235602084016128c6565b91505092959194509250565b600080600060408486031215612a8257600080fd5b83359250602084013567ffffffffffffffff811115612aa057600080fd5b612aac868287016127df565b9497909650939450505050565b60008060408385031215612acc57600080fd5b612ad58361268b565b91506128a76020840161268b565b6020808252600f908201526e2327281d1037b7363c9030b236b4b760891b604082015260600190565b6020808252601190820152701193940e881cdd5c1c1b1e481b1a5b5a5d607a1b604082015260600190565b60208082526010908201526f1193940e881b9bdd08185b1b1bddd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612b8b57612b8b612b61565b5060010190565b600181811c90821680612ba657607f821691505b60208210811415612bc757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e2327281d1037b7363c9037bbb732b960891b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60008219821115612c5657612c56612b61565b500190565b634e487b7160e01b600052603260045260246000fd5b602080825260149082015273464e503a20696e76616c6964206164647265737360601b604082015260600190565b600060208284031215612cb157600080fd5b61148f8261286d565b600060208284031215612ccc57600080fd5b5051919050565b60008351612ce58184602088016126f5565b835190830190612cf98183602088016126f5565b01949350505050565b600082821015612d1457612d14612b61565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612de390830184612721565b9695505050505050565b600060208284031215612dff57600080fd5b815161148f816126c256fea26469706673582212207edb130e40df4004a72f4d3da27b2d4b4c36ba748791a1c5895bc1ae3523c59464736f6c6343000809003300000000000000000000000048a856143cdd279911712054d721bd2ccad95bba000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000041c925a6feab96cb76b2d856f21372237c000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f676f6f676c652e636f6d2f00000000000000000000000000

Deployed Bytecode

0x6080604052600436106102df5760003560e01c80638d9c8edc1161017e578063d3b2efbe116100d3578063f0f442601161008f578063f2fde38b1161006c578063f2fde38b146108ee578063f4a0a5281461090e578063f65e73021461092e578063fe9768e61461094e57005b8063f0f442601461088d578063f17d2e35146108ad578063f1c52c86146108ce57005b8063d3b2efbe146107ad578063d8ee98ea146107cd578063e0ec688a146107ec578063e985e9c51461081c578063efdc778814610865578063f0238a111461088557005b8063adc606131161013a578063c5acafa911610117578063c5acafa914610742578063c87b56dd14610758578063ce81460d14610778578063cf0c89111461079857005b8063adc60613146106f3578063b0660c3d14610708578063b88d4fde1461072257005b80638d9c8edc146106445780638da5cb5b1461065957806395c3b5b31461067957806395d89b41146106a9578063a22cb465146106be578063a75d79ba146106de57005b806342842e0e116102345780636352211e116101f05780636e3a81e3116101cd5780636e3a81e3146105da57806370a08231146105fa5780637362377b1461061a5780638928d2921461062f57005b80636352211e14610584578063638e5708146105a45780636817c76c146105c457005b806342842e0e146104b6578063429b62e5146104d65780634b0bddd21461050657806355f804b31461052657806359297dbf1461054657806361d027b31461055c57005b80631ecd794f1161029b578063259024081161027857806325902408146104365780632783d3881461046a5780632ab4d052146104805780633f3e4c111461049657005b80631ecd794f146103d657806323b872dd146103f6578063245028de1461041657005b8063018e5263146102e857806301ffc9a71461030857806306fdde031461033d578063081812fc1461035f578063095ea7b31461039757806318160ddd146103b757005b366102e657005b005b3480156102f457600080fd5b506102e66103033660046126a7565b61096e565b34801561031457600080fd5b506103286103233660046126d8565b610a06565b60405190151581526020015b60405180910390f35b34801561034957600080fd5b50610352610a58565b604051610334919061274d565b34801561036b57600080fd5b5061037f61037a366004612760565b610aea565b6040516001600160a01b039091168152602001610334565b3480156103a357600080fd5b506102e66103b2366004612779565b610b11565b3480156103c357600080fd5b506006545b604051908152602001610334565b3480156103e257600080fd5b506102e66103f1366004612760565b610c27565b34801561040257600080fd5b506102e66104113660046127a3565b610c9f565b34801561042257600080fd5b506102e661043136600461282b565b610cd0565b34801561044257600080fd5b5061037f7f000000000000000000000000de0adc2d817502ed86df91c7217ddbde7916339981565b34801561047657600080fd5b506103c860105481565b34801561048c57600080fd5b506103c8600e5481565b3480156104a257600080fd5b506102e66104b1366004612760565b610de2565b3480156104c257600080fd5b506102e66104d13660046127a3565b610e5a565b3480156104e257600080fd5b506103286104f13660046126a7565b600a6020526000908152604090205460ff1681565b34801561051257600080fd5b506102e661052136600461287d565b610e75565b34801561053257600080fd5b506102e661054136600461293c565b610ef0565b34801561055257600080fd5b506103c8600d5481565b34801561056857600080fd5b50600c5461037f9064010000000090046001600160a01b031681565b34801561059057600080fd5b5061037f61059f366004612760565b610f31565b3480156105b057600080fd5b506102e66105bf366004612985565b610f91565b3480156105d057600080fd5b506103c8600f5481565b3480156105e657600080fd5b506103286105f53660046126a7565b6110f4565b34801561060657600080fd5b506103c86106153660046126a7565b6111ac565b34801561062657600080fd5b506102e6611232565b34801561063b57600080fd5b506102e6611288565b34801561065057600080fd5b506102e66112cf565b34801561066557600080fd5b5060085461037f906001600160a01b031681565b34801561068557600080fd5b506103286106943660046126a7565b600b6020526000908152604090205460ff1681565b3480156106b557600080fd5b5061035261131a565b3480156106ca57600080fd5b506102e66106d936600461287d565b611329565b3480156106ea57600080fd5b506102e6611334565b3480156106ff57600080fd5b506102e661137d565b34801561071457600080fd5b50600c546103289060ff1681565b34801561072e57600080fd5b506102e661073d3660046129f1565b6113f7565b34801561074e57600080fd5b506103c860125481565b34801561076457600080fd5b50610352610773366004612760565b61142f565b34801561078457600080fd5b506102e6610793366004612760565b611496565b3480156107a457600080fd5b506102e66114c5565b3480156107b957600080fd5b506102e66107c8366004612a6d565b611503565b3480156107d957600080fd5b50600c5461032890610100900460ff1681565b3480156107f857600080fd5b50610328610807366004612760565b60116020526000908152604090205460ff1681565b34801561082857600080fd5b50610328610837366004612ab9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561087157600080fd5b506102e6610880366004612760565b611724565b6102e6611825565b34801561089957600080fd5b506102e66108a83660046126a7565b61193a565b3480156108b957600080fd5b50600c54610328906301000000900460ff1681565b3480156108da57600080fd5b506102e66108e9366004612779565b6119cf565b3480156108fa57600080fd5b506102e66109093660046126a7565b6119ee565b34801561091a57600080fd5b506102e6610929366004612760565b611a8a565b34801561093a57600080fd5b50600c546103289062010000900460ff1681565b34801561095a57600080fd5b506102e6610969366004612985565b611ab9565b61097733611b6e565b61099c5760405162461bcd60e51b815260040161099390612ae3565b60405180910390fd5b600e54600654106109bf5760405162461bcd60e51b815260040161099390612b0c565b600c54610100900460ff166109e65760405162461bcd60e51b815260040161099390612b37565b610a03816006600081546109f990612b77565b9182905550611ba5565b50565b60006001600160e01b031982166380ac58cd60e01b1480610a3757506001600160e01b03198216635b5e139f60e01b145b80610a5257506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610a6790612b92565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9390612b92565b8015610ae05780601f10610ab557610100808354040283529160200191610ae0565b820191906000526020600020905b815481529060010190602001808311610ac357829003601f168201915b5050505050905090565b6000610af582611bbf565b506000908152600460205260409020546001600160a01b031690565b6000610b1c82610f31565b9050806001600160a01b0316836001600160a01b03161415610b8a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610993565b336001600160a01b0382161480610ba65750610ba68133610837565b610c185760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610993565b610c228383611c1e565b505050565b6008546001600160a01b03163314610c515760405162461bcd60e51b815260040161099390612bcd565b600e548110610c9a5760405162461bcd60e51b8152602060048201526015602482015274464e503a206d617820746f74616c20737570706c7960581b6044820152606401610993565b600d55565b610ca93382611c8c565b610cc55760405162461bcd60e51b815260040161099390612bf6565b610c22838383611d0b565b610cd933611b6e565b610cf55760405162461bcd60e51b815260040161099390612ae3565b80610d375760405162461bcd60e51b8152602060048201526012602482015271464e503a20696e76616c696420617272617960701b6044820152606401610993565b600e54600654610d479083612c43565b1115610d655760405162461bcd60e51b815260040161099390612b0c565b600c54610100900460ff16610d8c5760405162461bcd60e51b815260040161099390612b37565b60005b81811015610c2257610dd0838383818110610dac57610dac612c5b565b9050602002016020810190610dc191906126a7565b6006600081546109f990612b77565b80610dda81612b77565b915050610d8f565b6008546001600160a01b03163314610e0c5760405162461bcd60e51b815260040161099390612bcd565b600d548111610e555760405162461bcd60e51b8152602060048201526015602482015274464e503a207472656173757279207265736572766560581b6044820152606401610993565b600e55565b610c22838383604051806020016040528060008152506113f7565b6008546001600160a01b03163314610e9f5760405162461bcd60e51b815260040161099390612bcd565b6001600160a01b038216610ec55760405162461bcd60e51b815260040161099390612c71565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b6008546001600160a01b03163314610f1a5760405162461bcd60e51b815260040161099390612bcd565b8051610f2d9060079060208401906125f2565b5050565b6000818152600260205260408120546001600160a01b031680610a525760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610993565b610f9a33611b6e565b610fb65760405162461bcd60e51b815260040161099390612ae3565b8215801590610fc457508083145b6110065760405162461bcd60e51b8152602060048201526013602482015272464e503a20696e76616c69642061727261797360681b6044820152606401610993565b60005b838110156110ed57600085858381811061102557611025612c5b565b905060200201602081019061103a91906126a7565b6001600160a01b031614156110615760405162461bcd60e51b815260040161099390612c71565b82828281811061107357611073612c5b565b90506020020160208101906110889190612c9f565b600b600087878581811061109e5761109e612c5b565b90506020020160208101906110b391906126a7565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806110e581612b77565b915050611009565b5050505050565b600080611100836111ac565b1180610a5257506040516370a0823160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000de0adc2d817502ed86df91c7217ddbde79163399909116906370a082319060240160206040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a59190612cba565b1192915050565b60006001600160a01b0382166112165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610993565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b0316331461125c5760405162461bcd60e51b815260040161099390612bcd565b60405133904780156108fc02916000818181858888f19350505050158015610a03573d6000803e3d6000fd5b6008546001600160a01b031633146112b25760405162461bcd60e51b815260040161099390612bcd565b600c805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b031633146112f95760405162461bcd60e51b815260040161099390612bcd565b600c805463ff00000019811663010000009182900460ff1615909102179055565b606060018054610a6790612b92565b610f2d338383611e13565b6008546001600160a01b0316331461135e5760405162461bcd60e51b815260040161099390612bcd565b600c805462ff0000198116620100009182900460ff1615909102179055565b6009546001600160a01b031633146113d75760405162461bcd60e51b815260206004820152601860248201527f464e503a206f6e6c792070726576696f7573206f776e657200000000000000006044820152606401610993565b600880546001600160a01b03199081163317909155600980549091169055565b6114013383611c8c565b61141d5760405162461bcd60e51b815260040161099390612bf6565b61142984848484611ee2565b50505050565b606061143a82611bbf565b6000611444611f15565b90506000815111611464576040518060200160405280600081525061148f565b8061146e84611f24565b60405160200161147f929190612cd3565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146114c05760405162461bcd60e51b815260040161099390612bcd565b601055565b6008546001600160a01b031633146114ef5760405162461bcd60e51b815260040161099390612bcd565b600c805460ff19811660ff90911615179055565b600c546301000000900460ff1661152c5760405162461bcd60e51b815260040161099390612b37565b611535336110f4565b156115825760405162461bcd60e51b815260206004820152601e60248201527f464e503a20796f7520616c72656164792068617665204e4654205061737300006044820152606401610993565b600d54600e546115929190612d02565b600654106115b25760405162461bcd60e51b815260040161099390612b0c565b6000836040516020016115c791815260200190565b60408051601f198184030181528282528051602091820120908301819052925060009101604051602081830303815290604052805190602001209050611644848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506010549150849050611fc1565b6116865760405162461bcd60e51b8152602060048201526013602482015272464e503a20696e76616c696420696e7669746560681b6044820152606401610993565b60008181526011602052604090205460ff16156116e55760405162461bcd60e51b815260206004820152601860248201527f464e503a20696e7669746520616c7265616479207573656400000000000000006044820152606401610993565b6000818152601160205260408120805460ff19166001179055601280549161170c83612b77565b91905055506110ed336006600081546109f990612b77565b6008546001600160a01b0316331461174e5760405162461bcd60e51b815260040161099390612bcd565b600e54600654106117715760405162461bcd60e51b815260040161099390612b0c565b600081116117b65760405162461bcd60e51b81526020600482015260126024820152711193940e881a5b9d985b1a590818dbdd5b9d60721b6044820152606401610993565b600e54816006546117c79190612c43565b11156117e057600654600e546117dd9190612d02565b90505b60005b81811015610f2d57611813600c60049054906101000a90046001600160a01b03166006600081546109f990612b77565b8061181d81612b77565b9150506117e3565b600c5462010000900460ff1661184d5760405162461bcd60e51b815260040161099390612b37565b600f5434101561189f5760405162461bcd60e51b815260206004820152601a60248201527f464e503a2070617920616d6f756e74206e6f7420656e6f7567680000000000006044820152606401610993565b6118a8336110f4565b156118f55760405162461bcd60e51b815260206004820152601e60248201527f464e503a20796f7520616c72656164792068617665204e4654205061737300006044820152606401610993565b600d54600e546119059190612d02565b600654106119255760405162461bcd60e51b815260040161099390612b0c565b611938336006600081546109f990612b77565b565b6008546001600160a01b031633146119645760405162461bcd60e51b815260040161099390612bcd565b6001600160a01b03811661198a5760405162461bcd60e51b815260040161099390612c71565b600c8054640100000000600160c01b0319166401000000006001600160a01b03939093169283021790556000908152600b60205260409020805460ff19166001179055565b600c54610f2d9064010000000090046001600160a01b03168383610e5a565b6008546001600160a01b03163314611a185760405162461bcd60e51b815260040161099390612bcd565b6001600160a01b03811615801590611a3e57506008546001600160a01b03828116911614155b611a5a5760405162461bcd60e51b815260040161099390612c71565b60098054336001600160a01b031991821617909155600880549091166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611ab45760405162461bcd60e51b815260040161099390612bcd565b600f55565b8215801590611ac757508281145b611b095760405162461bcd60e51b8152602060048201526013602482015272464e503a20696e76616c69642061727261797360681b6044820152606401610993565b60005b838110156110ed57611b5c858583818110611b2957611b29612c5b565b9050602002016020810190611b3e91906126a7565b848484818110611b5057611b50612c5b565b905060200201356119cf565b80611b6681612b77565b915050611b0c565b6001600160a01b0381166000908152600a602052604081205460ff1680610a525750506008546001600160a01b0390811691161490565b610f2d828260405180602001604052806000815250611fd7565b6000818152600260205260409020546001600160a01b0316610a035760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610993565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c5382610f31565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c9883610f31565b9050806001600160a01b0316846001600160a01b03161480611cdf57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611d035750836001600160a01b0316611cf884610aea565b6001600160a01b0316145b949350505050565b600c5460ff1680611d3457506001600160a01b0383166000908152600b602052604090205460ff165b611d805760405162461bcd60e51b815260206004820152601d60248201527f464e503a207472616e73666572206e6f7420616c6c6f776564207965740000006044820152606401610993565b600c546001600160a01b0384811664010000000090920416141580611da95750611da933611b6e565b611e085760405162461bcd60e51b815260206004820152602a60248201527f464e503a206f6e6c792061646d696e2063616e207472616e736665722066726f6044820152696d20747265617375727960b01b6064820152608401610993565b610c2283838361200a565b816001600160a01b0316836001600160a01b03161415611e755760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610993565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611eed848484611d0b565b611ef98484848461217b565b6114295760405162461bcd60e51b815260040161099390612d19565b606060078054610a6790612b92565b60606000611f3183612288565b600101905060008167ffffffffffffffff811115611f5157611f516128b0565b6040519080825280601f01601f191660200182016040528015611f7b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611fb457611fb9565b611f85565b509392505050565b600082611fce8584612360565b14949350505050565b611fe183836123a5565b611fee600084848461217b565b610c225760405162461bcd60e51b815260040161099390612d19565b826001600160a01b031661201d82610f31565b6001600160a01b0316146120435760405162461bcd60e51b815260040161099390612d6b565b6001600160a01b0382166120a55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610993565b6120b2838383600161253e565b826001600160a01b03166120c582610f31565b6001600160a01b0316146120eb5760405162461bcd60e51b815260040161099390612d6b565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561227d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121bf903390899088908890600401612db0565b602060405180830381600087803b1580156121d957600080fd5b505af1925050508015612209575060408051601f3d908101601f1916820190925261220691810190612ded565b60015b612263573d808015612237576040519150601f19603f3d011682016040523d82523d6000602084013e61223c565b606091505b50805161225b5760405162461bcd60e51b815260040161099390612d19565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d03565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106122c75772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106122f3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061231157662386f26fc10000830492506010015b6305f5e1008310612329576305f5e100830492506008015b612710831061233d57612710830492506004015b6064831061234f576064830492506002015b600a8310610a525760010192915050565b600081815b8451811015611fb9576123918286838151811061238457612384612c5b565b60200260200101516125c6565b91508061239d81612b77565b915050612365565b6001600160a01b0382166123fb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610993565b6000818152600260205260409020546001600160a01b0316156124605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610993565b61246e60008383600161253e565b6000818152600260205260409020546001600160a01b0316156124d35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610993565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001811115611429576001600160a01b03841615612584576001600160a01b0384166000908152600360205260408120805483929061257e908490612d02565b90915550505b6001600160a01b03831615611429576001600160a01b038316600090815260036020526040812080548392906125bb908490612c43565b909155505050505050565b60008183106125e257600082815260208490526040902061148f565b5060009182526020526040902090565b8280546125fe90612b92565b90600052602060002090601f0160209004810192826126205760008555612666565b82601f1061263957805160ff1916838001178555612666565b82800160010185558215612666579182015b8281111561266657825182559160200191906001019061264b565b50612672929150612676565b5090565b5b808211156126725760008155600101612677565b80356001600160a01b03811681146126a257600080fd5b919050565b6000602082840312156126b957600080fd5b61148f8261268b565b6001600160e01b031981168114610a0357600080fd5b6000602082840312156126ea57600080fd5b813561148f816126c2565b60005b838110156127105781810151838201526020016126f8565b838111156114295750506000910152565b600081518084526127398160208601602086016126f5565b601f01601f19169290920160200192915050565b60208152600061148f6020830184612721565b60006020828403121561277257600080fd5b5035919050565b6000806040838503121561278c57600080fd5b6127958361268b565b946020939093013593505050565b6000806000606084860312156127b857600080fd5b6127c18461268b565b92506127cf6020850161268b565b9150604084013590509250925092565b60008083601f8401126127f157600080fd5b50813567ffffffffffffffff81111561280957600080fd5b6020830191508360208260051b850101111561282457600080fd5b9250929050565b6000806020838503121561283e57600080fd5b823567ffffffffffffffff81111561285557600080fd5b612861858286016127df565b90969095509350505050565b803580151581146126a257600080fd5b6000806040838503121561289057600080fd5b6128998361268b565b91506128a76020840161286d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156128e1576128e16128b0565b604051601f8501601f19908116603f01168101908282118183101715612909576129096128b0565b8160405280935085815286868601111561292257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561294e57600080fd5b813567ffffffffffffffff81111561296557600080fd5b8201601f8101841361297657600080fd5b611d03848235602084016128c6565b6000806000806040858703121561299b57600080fd5b843567ffffffffffffffff808211156129b357600080fd5b6129bf888389016127df565b909650945060208701359150808211156129d857600080fd5b506129e5878288016127df565b95989497509550505050565b60008060008060808587031215612a0757600080fd5b612a108561268b565b9350612a1e6020860161268b565b925060408501359150606085013567ffffffffffffffff811115612a4157600080fd5b8501601f81018713612a5257600080fd5b612a61878235602084016128c6565b91505092959194509250565b600080600060408486031215612a8257600080fd5b83359250602084013567ffffffffffffffff811115612aa057600080fd5b612aac868287016127df565b9497909650939450505050565b60008060408385031215612acc57600080fd5b612ad58361268b565b91506128a76020840161268b565b6020808252600f908201526e2327281d1037b7363c9030b236b4b760891b604082015260600190565b6020808252601190820152701193940e881cdd5c1c1b1e481b1a5b5a5d607a1b604082015260600190565b60208082526010908201526f1193940e881b9bdd08185b1b1bddd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612b8b57612b8b612b61565b5060010190565b600181811c90821680612ba657607f821691505b60208210811415612bc757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e2327281d1037b7363c9037bbb732b960891b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60008219821115612c5657612c56612b61565b500190565b634e487b7160e01b600052603260045260246000fd5b602080825260149082015273464e503a20696e76616c6964206164647265737360601b604082015260600190565b600060208284031215612cb157600080fd5b61148f8261286d565b600060208284031215612ccc57600080fd5b5051919050565b60008351612ce58184602088016126f5565b835190830190612cf98183602088016126f5565b01949350505050565b600082821015612d1457612d14612b61565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612de390830184612721565b9695505050505050565b600060208284031215612dff57600080fd5b815161148f816126c256fea26469706673582212207edb130e40df4004a72f4d3da27b2d4b4c36ba748791a1c5895bc1ae3523c59464736f6c63430008090033

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

00000000000000000000000048a856143cdd279911712054d721bd2ccad95bba000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000041c925a6feab96cb76b2d856f21372237c000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f676f6f676c652e636f6d2f00000000000000000000000000

-----Decoded View---------------
Arg [0] : owner_ (address): 0x48a856143Cdd279911712054d721bD2CcAd95BbA
Arg [1] : admins_ (address[]): 0x41c925A6FeAb96cb76B2D856F21372237c000000
Arg [2] : baseURI_ (string): https://google.com/

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000048a856143cdd279911712054d721bd2ccad95bba
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 00000000000000000000000041c925a6feab96cb76b2d856f21372237c000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [6] : 68747470733a2f2f676f6f676c652e636f6d2f00000000000000000000000000


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.