ETH Price: $2,361.83 (-5.85%)

Contract

0xF4398a4d8bf5e267abdA3D62C47F8eF5f43e8c34
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...214537802024-12-21 22:12:2367 days ago1734819143IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.000348327.5205527
Safe Transfer Fr...193865392024-03-07 23:20:47355 days ago1709853647IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0048504755.88491935
Set Approval For...167843702023-03-08 15:16:35721 days ago1678288595IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0016077134.64817919
Set Approval For...167835152023-03-08 12:24:11721 days ago1678278251IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0019894742.8756834
Mint167788962023-03-07 20:48:59722 days ago1678222139IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0097857733.81891278
Mint167778092023-03-07 17:08:47722 days ago1678208927IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0209501572.40218973
Add Minters167777462023-03-07 16:55:59722 days ago1678208159IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0025628333.73211605
Add Minters167770552023-03-07 14:36:35722 days ago1678199795IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0033062943.51763392
Set Approval For...167064482023-02-25 16:22:11732 days ago1677342131IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0013964530.09544123
Burn166990212023-02-24 15:15:59733 days ago1677251759IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0025958932.69477155
Mint166989192023-02-24 14:55:35733 days ago1677250535IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0094268632.57856364
Mint166982402023-02-24 12:37:47733 days ago1677242267IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0083624128.89989049
Burn166982092023-02-24 12:31:23733 days ago1677241883IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0024258430.55300769
Mint166979432023-02-24 11:37:59733 days ago1677238679IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0085401529.51413383
Set Approval For...166976052023-02-24 10:28:59733 days ago1677234539IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0012831927.65449885
Mint166931172023-02-23 19:16:23734 days ago1677179783IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0127481744.05675141
Add Minters166904562023-02-23 10:18:59734 days ago1677147539IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0020974327.60650144
Add Minters166904282023-02-23 10:13:23734 days ago1677147203IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0020321626.747456
Safe Transfer Fr...166066062023-02-11 16:06:59746 days ago1676131619IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0028660428.956129
Set Approval For...165998652023-02-10 17:31:59747 days ago1676050319IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0016808536.22445864
Safe Transfer Fr...165998442023-02-10 17:27:35747 days ago1676050055IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0028288131.36365758
Mint165987542023-02-10 13:48:11747 days ago1676036891IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0062477721.38490807
Set Approval For...165418642023-02-02 14:59:11755 days ago1675349951IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0016606535.78929752
Mint165379412023-02-02 1:48:11755 days ago1675302491IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0066878423.1126992
Add Minters165299222023-01-31 22:54:59756 days ago1675205699IN
VerticalCrypto Art Auction: VCA Token
0 ETH0.0027501636.19779457
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VerticalCrypto

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 26 : VerticalCrypto.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import './MintingStation.sol';

/// @title VerticalCrypto
/// @author Simon Fremaux (@dievardump)
contract VerticalCrypto is MintingStation {
    /// @notice constructor
    /// @param name_ name of the contract (see ERC721)
    /// @param symbol_ symbol of the contract (see ERC721)
    /// @param contractURI_ The contract URI (containing its metadata) - can be empty ""
    /// @param openseaProxyRegistry_ OpenSea's proxy registry to allow gas-less listings - can be address(0)
    /// @param owner_ Address to whom transfer ownership (can be address(0), then owner is deployer)
    constructor(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        address openseaProxyRegistry_,
        address owner_,
        address[] memory minters
    )
        ERC721Ownable(
            name_,
            symbol_,
            contractURI_,
            openseaProxyRegistry_,
            owner_
        )
    {
        if (minters.length > 0) {
            _addMinters(minters);
        }
    }
}

File 2 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT

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: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev Safely mints `tokenId` 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);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 6 of 26 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../utils/Context.sol";

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 7 of 26 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 26 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 9 of 26 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 26 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 26 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 26 : Context.sol
// SPDX-License-Identifier: MIT

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 13 of 26 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 14 of 26 : ERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT

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 16 of 26 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 17 of 26 : ERC721Full.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import './ERC721Ownable.sol';
import './ERC721WithMinters.sol';
import './ERC721WithRoyalties.sol';

/// @title ERC721Full
/// @dev This contains all the different overrides needed on
///      ERC721 / Enumerable / URIStorage / Royalties
/// @author Simon Fremaux (@dievardump)
abstract contract ERC721Full is
    ERC721Ownable,
    ERC721Burnable,
    ERC721URIStorage,
    ERC721WithMinters,
    ERC721WithRoyalties
{
    /*
     * bytes4(keccak256('tokenCreator(uint256)')) == 0x40c1a064
     */
    bytes4 private constant _INTERFACE_TOKEN_CREATOR = 0x40c1a064;

    mapping(uint256 => address) private _tokenIdToCreator;

    /// @notice Helper for the owner to add new minter
    /// @dev needs to be owner
    /// @param newMinters list of new minters
    function addMinters(address[] memory newMinters) public onlyOwner {
        _addMinters(newMinters);
    }

    /// @notice Helper for the owner to remove a minter
    /// @dev needs to be owner
    /// @param removedMinters minters to remove
    function removeMinters(address[] memory removedMinters) public onlyOwner {
        for (uint256 i; i < removedMinters.length; i++) {
            _removeMinter(removedMinters[i]);
        }
    }

    /// @notice gets a token creator address
    /// @param tokenId the token id
    /// @return the creator's address
    function tokenCreator(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId), 'Unknown token.');
        return _tokenIdToCreator[tokenId];
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Enumerable, ERC721, ERC721WithRoyalties)
        returns (bool)
    {
        return
            // Taking this from FND contract
            // hoping this is what makes OpenSea display the creator's name in the description
            // and not the collection creator's name
            interfaceId == _INTERFACE_TOKEN_CREATOR ||
            // or ERC721Enumerable
            ERC721Enumerable.supportsInterface(interfaceId) ||
            // or Royalties
            ERC721WithRoyalties.supportsInterface(interfaceId);
    }

    /// @inheritdoc	ERC721Ownable
    function isApprovedForAll(address owner_, address operator)
        public
        view
        override(ERC721, ERC721Ownable)
        returns (bool)
    {
        return ERC721Ownable.isApprovedForAll(owner_, operator);
    }

    /// @inheritdoc	ERC721URIStorage
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        return ERC721URIStorage.tokenURI(tokenId);
    }

    /// @inheritdoc	ERC721
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /// @inheritdoc	ERC721
    function _burn(uint256 tokenId)
        internal
        override(ERC721, ERC721URIStorage)
    {
        // remove royalties
        _removeRoyalty(tokenId);

        // burn ERC721URIStorage
        ERC721URIStorage._burn(tokenId);
    }

    /// @notice internal helper for add minters batch so it can be used in constructor
    function _addMinters(address[] memory newMinters) internal {
        for (uint256 i; i < newMinters.length; i++) {
            _addMinter(newMinters[i]);
        }
    }

    /// @dev sets a token creator
    /// @param tokenId the token id
    /// @param creator the creator's address
    function _setTokenCreator(uint256 tokenId, address creator) internal {
        _tokenIdToCreator[tokenId] = creator;
    }
}

File 18 of 26 : ERC721Ownable.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';

import '../OpenSea/BaseOpenSea.sol';

/// @title ERC721Ownable
/// @author Simon Fremaux (@dievardump)
contract ERC721Ownable is Ownable, ERC721Enumerable, BaseOpenSea {
    /// @notice constructor
    /// @param name_ name of the contract (see ERC721)
    /// @param symbol_ symbol of the contract (see ERC721)
    /// @param contractURI_ The contract URI (containing its metadata) - can be empty ""
    /// @param openseaProxyRegistry_ OpenSea's proxy registry to allow gas-less listings - can be address(0)
    /// @param owner_ Address to whom transfer ownership (can be address(0), then owner is deployer)
    constructor(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        address openseaProxyRegistry_,
        address owner_
    ) ERC721(name_, symbol_) {
        // set contract uri if present
        if (bytes(contractURI_).length > 0) {
            _setContractURI(contractURI_);
        }

        // set OpenSea proxyRegistry for gas-less trading if present
        if (address(0) != openseaProxyRegistry_) {
            _setOpenSeaRegistry(openseaProxyRegistry_);
        }

        // transferOwnership if needed
        if (address(0) != owner_) {
            transferOwnership(owner_);
        }
    }

    /// @notice Allows gas-less trading on OpenSea by safelisting the Proxy of the user
    /// @dev Override isApprovedForAll to check first if current operator is owner's OpenSea proxy
    /// @inheritdoc	ERC721
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        // allows gas less trading on OpenSea
        return
            super.isApprovedForAll(owner, operator) ||
            isOwnersOpenSeaProxy(owner, operator);
    }

    /// @notice Helper for the owner of the contract to set the new contract URI
    /// @dev needs to be owner
    /// @param contractURI_ new contract URI
    function setContractURI(string memory contractURI_) external onlyOwner {
        _setContractURI(contractURI_);
    }

    /// @notice Helper for the owner to set OpenSea's proxy (allowing or not gas-less trading)
    /// @dev needs to be owner
    /// @param osProxyRegistry new opensea proxy registry
    function setOpenSeaRegistry(address osProxyRegistry) external onlyOwner {
        _setOpenSeaRegistry(osProxyRegistry);
    }
}

File 19 of 26 : ERC721WithMinters.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

/// @title ERC721WithMinters
/// @author Simon Fremaux (@dievardump)
abstract contract ERC721WithMinters {
    using EnumerableSet for EnumerableSet.AddressSet;

    /// @notice emitted when a new Minter is added
    /// @param minter the minter address
    event MinterAdded(address indexed minter);

    /// @notice emitted when a Minter is removed
    /// @param minter the minter address
    event MinterRemoved(address indexed minter);

    /// @dev This is used internally to allow an address to access the minting function or not
    EnumerableSet.AddressSet private minters;

    /// @notice Helper to know is an address is minter
    /// @param minter the address to check
    function isMinter(address minter) public view returns (bool) {
        return minters.contains(minter);
    }

    /// @notice Helper to list all minters
    /// @return list of minters
    function listMinters() external view returns (address[] memory list) {
        uint256 count = minters.length();
        list = new address[](count);
        for (uint256 i; i < count; i++) {
            list[i] = minters.at(i);
        }
    }

    /// @notice Helper for the owner to add new minter
    /// @param newMinter new signer
    function _addMinter(address newMinter) internal {
        minters.add(newMinter);
        emit MinterAdded(newMinter);
    }

    /// @notice Helper for the owner to remove a minter
    /// @param removedMinter minter to remove
    function _removeMinter(address removedMinter) internal {
        minters.remove(removedMinter);
        emit MinterRemoved(removedMinter);
    }
}

File 20 of 26 : ERC721WithRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '../Royalties/ERC2981/ERC2981PerTokenRoyalties.sol';
import '../Royalties/RaribleSecondarySales/IRaribleSecondarySales.sol';

/// @dev This is a contract used for royalties on various platforms
/// @author Simon Fremaux (@dievardump)
contract ERC721WithRoyalties is
    ERC2981PerTokenRoyalties,
    IRaribleSecondarySales
{
    /*
     * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f
     * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb
     *
     * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584
     */
    bytes4 private constant _RARIBLE_FEES_ID = 0xb7799584;

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            ERC2981PerTokenRoyalties.supportsInterface(interfaceId) ||
            interfaceId == _RARIBLE_FEES_ID;
    }

    /// @inheritdoc	IRaribleSecondarySales
    function getFeeRecipients(uint256 tokenId)
        public
        view
        override
        returns (address payable[] memory recipients)
    {
        // using ERC2981 implementation to get the recipient & amount
        (address recipient, uint256 amount) = _getTokenRoyalty(tokenId);
        if (amount != 0) {
            recipients = new address payable[](1);
            recipients[0] = payable(recipient);
        }
    }

    /// @inheritdoc	IRaribleSecondarySales
    function getFeeBps(uint256 tokenId)
        public
        view
        override
        returns (uint256[] memory fees)
    {
        // using ERC2981 implementation to get the amount
        (, uint256 amount) = _getTokenRoyalty(tokenId);
        if (amount != 0) {
            fees = new uint256[](1);
            fees[0] = amount;
        }
    }
}

File 21 of 26 : IMintingStation.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IMintingStation
/// @author Simon Fremaux (@dievardump)
interface IMintingStation {
    /// @notice helper to know if an address can mint or not
    /// @param operator the address to check
    function canMint(address operator) external returns (bool);

    /// @notice helper to know if everyone can mint or only minters
    /// @return if minting is open to all or not
    function isMintingOpenToAll() external returns (bool);

    /// @notice Toggle minting open to all state
    /// @param isOpen if the new state is open or not
    function setMintingOpenToAll(bool isOpen) external;

    /// @notice Mint one token for msg.sender
    /// @param tokenURI_ the token URI
    /// @param feeRecipient the recipient of royalties
    /// @param feeAmount the royalties amount. From 0 to 10000
    ///        where 10000 == 100.00%; 1000 == 10.00%; 250 == 2.50%
    /// @return the minted tokenId
    function mint(
        string memory tokenURI_,
        address feeRecipient,
        uint256 feeAmount
    ) external returns (uint256);

    /// @notice Mint one token to user `to`
    /// @param to the token recipient
    /// @param tokenURI_ the token URI
    /// @param feeRecipient the recipient of royalties
    /// @param feeAmount the royalties amount. From 0 to 10000
    ///        where 10000 == 100.00%; 1000 == 10.00%; 250 == 2.50%
    /// @return tokenId the minted tokenId
    function mintTo(
        address to,
        string memory tokenURI_,
        address feeRecipient,
        uint256 feeAmount
    ) external returns (uint256 tokenId);

    /// @notice Mint several tokens for msg.sender
    /// @param tokenURIs_ the token URI for each id
    /// @param feeRecipients the recipients of royalties for each id
    /// @param feeAmounts the royalties amounts for each id. From 0 to 10000
    ///        where 10000 == 100.00%; 1000 == 10.00%; 250 == 2.50%
    /// @return all minted tokenIds
    function mintBatch(
        string[] memory tokenURIs_,
        address[] memory feeRecipients,
        uint256[] memory feeAmounts
    ) external returns (uint256[] memory);

    /// @notice Mint one token to user `to`
    /// @param to the token recipient
    /// @param tokenURIs_ the token URI for each id
    /// @param feeRecipients the recipients of royalties for each id
    /// @param feeAmounts the royalties amounts for each id. From 0 to 10000
    ///        where 10000 == 100.00%; 1000 == 10.00%; 250 == 2.50%
    /// @return all minted tokenIds
    function mintBatchTo(
        address to,
        string[] memory tokenURIs_,
        address[] memory feeRecipients,
        uint256[] memory feeAmounts
    ) external returns (uint256[] memory);

    /// @notice Mint one token to user `to`
    /// @param to the token recipient
    /// @param tokenURIs_ the token URI for each id
    /// @param feeRecipients the recipients of royalties for each id
    /// @param feeAmounts the royalties amounts for each id. From 0 to 10000
    ///        where 10000 == 100.00%; 1000 == 10.00%; 250 == 2.50%
    /// @return tokenIds all minted tokenIds
    function mintBatchToMore(
        address[] memory to,
        string[] memory tokenURIs_,
        address[] memory feeRecipients,
        uint256[] memory feeAmounts
    ) external returns (uint256[] memory tokenIds);
}

File 22 of 26 : MintingStation.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import './IMintingStation.sol';
import './ERC721Helpers/ERC721Full.sol';

/// @title MintingStation
/// @author Simon Fremaux (@dievardump)
abstract contract MintingStation is IMintingStation, ERC721Full {
    /// @dev This contains the last token id that was created
    uint256 public lastTokenId;

    bool internal _mintingOpenToAll;

    /// @notice modifier allowing only safe listed addresses to mint
    ///         safeListed addresses are all user in the Minter or owner
    modifier onlyMinter(address minter) {
        require(_mintingOpenToAll || canMint(minter), 'Not minter.');
        _;
    }

    /// @notice helper to know if an address can mint or not
    /// @param operator the address to check
    function canMint(address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return isMinter(operator) || operator == owner();
    }

    /// @notice helper to know if everyone can mint or only minters
    /// @inheritdoc	IMintingStation
    function isMintingOpenToAll() public view override returns (bool) {
        return _mintingOpenToAll;
    }

    /// @notice Toggle minting open to all state
    /// @param isOpen if the new state is open or not
    /// @inheritdoc	IMintingStation
    function setMintingOpenToAll(bool isOpen) external override onlyOwner {
        _mintingOpenToAll = isOpen;
    }

    /// @dev only a minter can call this
    /// @inheritdoc	IMintingStation
    function mint(
        string memory tokenURI_,
        address royaltiesRecipient,
        uint256 royaltiesAmount
    ) public override onlyMinter(msg.sender) returns (uint256) {
        return
            mintTo(msg.sender, tokenURI_, royaltiesRecipient, royaltiesAmount);
    }

    /// @dev only a minter can call this
    /// @inheritdoc	IMintingStation
    function mintTo(
        address to,
        string memory tokenURI_,
        address royaltiesRecipient,
        uint256 royaltiesAmount
    ) public override onlyMinter(msg.sender) returns (uint256 tokenId) {
        tokenId = lastTokenId + 1;

        // update lastTokenId before _safeMint is called
        lastTokenId = tokenId;

        _mintTo(tokenId, to, tokenURI_, royaltiesRecipient, royaltiesAmount);
    }

    /// @dev only a minter can call this
    /// @inheritdoc	IMintingStation
    function mintBatch(
        string[] memory tokenURIs_,
        address[] memory feeRecipients,
        uint256[] memory feeAmounts
    ) public override onlyMinter(msg.sender) returns (uint256[] memory) {
        return mintBatchTo(msg.sender, tokenURIs_, feeRecipients, feeAmounts);
    }

    /// @dev only a minter can call this
    /// @inheritdoc	IMintingStation
    function mintBatchTo(
        address to,
        string[] memory tokenURIs_,
        address[] memory feeRecipients,
        uint256[] memory feeAmounts
    ) public override onlyMinter(msg.sender) returns (uint256[] memory) {
        // build an array of address with only "to" inside
        uint256 count = tokenURIs_.length;
        address[] memory toBatch = new address[](count);
        for (uint256 i; i < count; i++) {
            toBatch[i] = to;
        }

        return mintBatchToMore(toBatch, tokenURIs_, feeRecipients, feeAmounts);
    }

    /// @dev only a minter can call this
    /// @inheritdoc	IMintingStation
    function mintBatchToMore(
        address[] memory to,
        string[] memory tokenURIs_,
        address[] memory feeRecipients,
        uint256[] memory feeAmounts
    )
        public
        override
        onlyMinter(msg.sender)
        returns (uint256[] memory tokenIds)
    {
        require(
            to.length == tokenURIs_.length &&
                to.length == feeRecipients.length &&
                to.length == feeAmounts.length,
            'Length mismatch'
        );

        uint256 tokenId = lastTokenId;
        uint256 count = tokenURIs_.length;
        tokenIds = new uint256[](count);
        for (uint256 i; i < count; i++) {
            tokenId++;
            _mintTo(
                tokenId,
                to[i],
                tokenURIs_[i],
                feeRecipients[i],
                feeAmounts[i]
            );
            tokenIds[i] = tokenId;
        }

        // update lastTokenId
        lastTokenId = tokenId;
    }

    /// @notice Mint `tokenId` to `to` with `tokenURI_` and `royaltiesRecipient` getting secondary sales
    /// @dev Explain to a developer any extra details
    /// @param tokenId the tokenId to mint
    /// @param to the token recipient
    /// @param tokenURI_ the token URI
    /// @param royaltiesRecipient the recipient of royalties
    /// @param royaltiesAmount the royalties amount. From 0 to 10000
    ///        where 10000 == 100.00%; 1000 == 10.00%; 250 == 2.50%
    function _mintTo(
        uint256 tokenId,
        address to,
        string memory tokenURI_,
        address royaltiesRecipient,
        uint256 royaltiesAmount
    ) internal {
        _safeMint(to, tokenId, '');
        _setTokenURI(tokenId, tokenURI_);
        _setTokenCreator(tokenId, to);

        if (royaltiesAmount > 0) {
            _setTokenRoyalty(tokenId, royaltiesRecipient, royaltiesAmount);
        }
    }
}

File 23 of 26 : BaseOpenSea.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title OpenSea contract helper that defines a few things
/// @author Simon Fremaux (@dievardump)
/// @dev This is a contract used to add OpenSea's
///      gas-less trading and contractURI support
contract BaseOpenSea {
    string private _contractURI;
    ProxyRegistry private _proxyRegistry;

    /// @notice Returns the contract URI function. Used on OpenSea to get details
    //          about a contract (owner, royalties etc...)
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    /// @notice Returns the current OS proxyRegistry address registered
    function proxyRegistry() public view returns (address) {
        return address(_proxyRegistry);
    }

    /// @notice Helper for OpenSea gas-less trading
    /// @dev Allows to check if `operator` is owner's OpenSea proxy
    /// @param owner the owner we check for
    /// @param operator the operator (proxy) we check for
    function isOwnersOpenSeaProxy(address owner, address operator)
        public
        view
        returns (bool)
    {
        ProxyRegistry proxyRegistry_ = _proxyRegistry;
        return
            // we have a proxy registry address
            address(proxyRegistry_) != address(0) &&
            // current operator is owner's proxy address
            address(proxyRegistry_.proxies(owner)) == operator;
    }

    /// @dev Internal function to set the _contractURI
    /// @param contractURI_ the new contract uri
    function _setContractURI(string memory contractURI_) internal {
        _contractURI = contractURI_;
    }

    /// @dev Internal function to set the _proxyRegistry
    /// @param proxyRegistryAddress the new proxy registry address
    function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
        _proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 24 of 26 : ERC2981PerTokenRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

import './IERC2981Royalties.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981PerTokenRoyalties is ERC165, IERC2981Royalties {
    struct Royalty {
        address recipient;
        uint256 value;
    }

    mapping(uint256 => Royalty) private _royalties;

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return interfaceId == type(IERC2981Royalties).interfaceId;
    }

    /// @dev Sets token royalties
    /// @param id the token id fir which we register the royalties
    function _removeRoyalty(uint256 id) internal {
        delete _royalties[id];
    }

    /// @dev Sets token royalties
    /// @param id the token id fir which we register the royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setTokenRoyalty(
        uint256 id,
        address recipient,
        uint256 value
    ) internal {
        require(value <= 10000, 'ERC2981Royalties: Too high');

        _royalties[id] = Royalty(recipient, value);
    }

    /// @dev Gets token royalties
    /// @param id the token id for which we check the royalties
    function _getTokenRoyalty(uint256 id)
        internal
        view
        returns (address, uint256)
    {
        Royalty memory royalty = _royalties[id];
        return (royalty.recipient, royalty.value);
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256 tokenId, uint256 value)
        public
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        Royalty memory royalty = _royalties[tokenId];
        return (royalty.recipient, (value * royalty.value) / 10000);
    }
}

File 25 of 26 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 26 of 26 : IRaribleSecondarySales.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IRaribleSecondarySales {
    /// @notice returns a list of royalties recipients
    /// @param tokenId the token Id to check for
    /// @return all the recipients for tokenId
    function getFeeRecipients(uint256 tokenId)
        external
        view
        returns (address payable[] memory);

    /// @notice returns a list of royalties amounts
    /// @param tokenId the token Id to check for
    /// @return all the amounts for tokenId
    function getFeeBps(uint256 tokenId)
        external
        view
        returns (uint256[] memory);
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"address","name":"openseaProxyRegistry_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address[]","name":"minters","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"newMinters","type":"address[]"}],"name":"addMinters","outputs":[],"stateMutability":"nonpayable","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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"fees","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"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":[{"internalType":"address","name":"minter","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingOpenToAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listMinters","outputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"},{"internalType":"address","name":"royaltiesRecipient","type":"address"},{"internalType":"uint256","name":"royaltiesAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"tokenURIs_","type":"string[]"},{"internalType":"address[]","name":"feeRecipients","type":"address[]"},{"internalType":"uint256[]","name":"feeAmounts","type":"uint256[]"}],"name":"mintBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string[]","name":"tokenURIs_","type":"string[]"},{"internalType":"address[]","name":"feeRecipients","type":"address[]"},{"internalType":"uint256[]","name":"feeAmounts","type":"uint256[]"}],"name":"mintBatchTo","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"string[]","name":"tokenURIs_","type":"string[]"},{"internalType":"address[]","name":"feeRecipients","type":"address[]"},{"internalType":"uint256[]","name":"feeAmounts","type":"uint256[]"}],"name":"mintBatchToMore","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"tokenURI_","type":"string"},{"internalType":"address","name":"royaltiesRecipient","type":"address"},{"internalType":"uint256","name":"royaltiesAmount","type":"uint256"}],"name":"mintTo","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"removedMinters","type":"address[]"}],"name":"removeMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isOpen","type":"bool"}],"name":"setMintingOpenToAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"osProxyRegistry","type":"address"}],"name":"setOpenSeaRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003cc538038062003cc583398101604081905262000034916200052e565b858585858584846200004f62000049620000ee565b620000f2565b81516200006490600190602085019062000347565b5080516200007a90600290602084019062000347565b505083511590506200009157620000918362000142565b6001600160a01b03821615620000ac57620000ac826200015b565b6001600160a01b03811615620000c757620000c7816200017d565b5050505050600081511115620000e257620000e28162000203565b50505050505062000728565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516200015790600b90602084019062000347565b5050565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b62000187620000ee565b6001600160a01b03166200019a6200025e565b6001600160a01b031614620001cc5760405162461bcd60e51b8152600401620001c3906200064c565b60405180910390fd5b6001600160a01b038116620001f55760405162461bcd60e51b8152600401620001c39062000606565b6200020081620000f2565b50565b60005b81518110156200015757620002498282815181106200023557634e487b7160e01b600052603260045260246000fd5b60200260200101516200026d60201b60201c565b806200025581620006ea565b91505062000206565b6000546001600160a01b031690565b6200028881600e620002c060201b620013c71790919060201c565b506040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6000620002d7836001600160a01b038416620002e0565b90505b92915050565b6000620002ee83836200032f565b6200032657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002da565b506000620002da565b60009081526001919091016020526040902054151590565b8280546200035590620006ad565b90600052602060002090601f016020900481019282620003795760008555620003c4565b82601f106200039457805160ff1916838001178555620003c4565b82800160010185558215620003c4579182015b82811115620003c4578251825591602001919060010190620003a7565b50620003d2929150620003d6565b5090565b5b80821115620003d25760008155600101620003d7565b80516001600160a01b03811681146200040557600080fd5b919050565b600082601f8301126200041b578081fd5b815160206001600160401b0382111562000439576200043962000712565b8082026200044982820162000681565b83815282810190868401838801850189101562000464578687fd5b8693505b8584101562000491576200047c81620003ed565b83526001939093019291840191840162000468565b50979650505050505050565b600082601f830112620004ae578081fd5b81516001600160401b03811115620004ca57620004ca62000712565b6020620004e0601f8301601f1916820162000681565b8281528582848701011115620004f4578384fd5b835b8381101562000513578581018301518282018401528201620004f6565b838111156200052457848385840101525b5095945050505050565b60008060008060008060c0878903121562000547578182fd5b86516001600160401b03808211156200055e578384fd5b6200056c8a838b016200049d565b9750602089015191508082111562000582578384fd5b620005908a838b016200049d565b96506040890151915080821115620005a6578384fd5b620005b48a838b016200049d565b9550620005c460608a01620003ed565b9450620005d460808a01620003ed565b935060a0890151915080821115620005ea578283fd5b50620005f989828a016200040a565b9150509295509295509295565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6040518181016001600160401b0381118282101715620006a557620006a562000712565b604052919050565b600281046001821680620006c257607f821691505b60208210811415620006e457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200070b57634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b61358d80620007386000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c806371e2a65711610146578063b50cbd9f116100c3578063c87b56dd11610087578063c87b56dd14610529578063e8a3d4851461053c578063e985e9c514610544578063f2fde38b14610557578063f4ed532d1461056a578063f84ddf0b146105725761025e565b8063b50cbd9f146104d5578063b5f49759146104dd578063b88d4fde146104f0578063b9c4d9fb14610503578063c2ba4744146105165761025e565b806394915da61161010a57806394915da61461048157806395d89b4114610494578063a22cb4651461049c578063aa271e1a146104af578063af8e577a146104c25761025e565b806371e2a6571461042d5780637df1bc08146104405780637e8816b9146104535780638da5cb5b14610466578063938e3d7b1461046e5761025e565b806331556a13116101df5780635fc1964f116101a35780635fc1964f146103c65780636102de98146103d95780636352211e146103ec5780636fc6d8bc146103ff57806370a0823114610412578063715018a6146104255761025e565b806331556a131461036757806340c1a0641461037a57806342842e0e1461038d57806342966c68146103a05780634f6ccce7146103b35761025e565b806318160ddd1161022657806318160ddd146102f657806322d8dc231461030b57806323b872dd146103205780632a55205a146103335780632f745c59146103545761025e565b806301ffc9a71461026357806306fdde031461028c578063081812fc146102a1578063095ea7b3146102c15780630ebd4c7f146102d6575b600080fd5b610276610271366004612a9d565b61057a565b6040516102839190612cec565b60405180910390f35b6102946105b6565b6040516102839190612cf7565b6102b46102af366004612b69565b610648565b6040516102839190612bfd565b6102d46102cf366004612957565b610694565b005b6102e96102e4366004612b69565b61072c565b6040516102839190612cb4565b6102fe610797565b60405161028391906133a3565b61031361079d565b6040516102839190612c67565b6102d461032e366004612776565b610864565b610346610341366004612b81565b61089c565b604051610283929190612c4e565b6102fe610362366004612957565b6108f5565b6102e9610375366004612832565b61094a565b6102b4610388366004612b69565b610a47565b6102d461039b366004612776565b610a8a565b6102d46103ae366004612b69565b610aa5565b6102fe6103c1366004612b69565b610ad8565b6102d46103d4366004612982565b610b33565b6102766103e736600461273e565b610bc4565b6102b46103fa366004612b69565b610c76565b6102e961040d3660046129b4565b610cab565b6102fe610420366004612722565b610e80565b6102d4610ec4565b6102d461043b366004612982565b610f0f565b6102d461044e366004612a83565b610f57565b6102fe610461366004612b23565b610fa9565b6102b4610ff4565b6102d461047c366004612af1565b611003565b6102e961048f366004612a00565b61104b565b61029461108d565b6102d46104aa3660046128bc565b61109c565b6102766104bd366004612722565b61116a565b6102fe6104d03660046128f0565b611177565b6102b46111cf565b6102d46104eb366004612722565b6111de565b6102d46104fe3660046127b6565b611226565b610313610511366004612b69565b611265565b610276610524366004612722565b6112e9565b610294610537366004612b69565b61131d565b610294611328565b61027661055236600461273e565b611337565b6102d4610565366004612722565b61134a565b6102766113b8565b6102fe6113c1565b60006001600160e01b03198216631030681960e21b148061059f575061059f826113dc565b806105ae57506105ae82611401565b90505b919050565b6060600180546105c590613486565b80601f01602080910402602001604051908101604052809291908181526020018280546105f190613486565b801561063e5780601f106106135761010080835404028352916020019161063e565b820191906000526020600020905b81548152906001019060200180831161062157829003601f168201915b5050505050905090565b600061065382611429565b6106785760405162461bcd60e51b815260040161066f9061310e565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061069f82610c76565b9050806001600160a01b0316836001600160a01b031614156106d35760405162461bcd60e51b815260040161066f90613227565b806001600160a01b03166106e5611446565b6001600160a01b03161480610701575061070181610552611446565b61071d5760405162461bcd60e51b815260040161066f90612f4a565b610727838361144a565b505050565b60606000610739836114b8565b9150508015610791576040805160018082528183019092529060208083019080368337019050509150808260008151811061078457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b50919050565b60095490565b606060006107ab600e6114f0565b9050806001600160401b038111156107d357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156107fc578160200160208202803683370190505b50915060005b8181101561085f57610815600e826114fb565b83828151811061083557634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610857816134bb565b915050610802565b505090565b61087561086f611446565b82611507565b6108915760405162461bcd60e51b815260040161066f906132b6565b610727838383611584565b6000828152601060209081526040808320815180830190925280546001600160a01b03168083526001909101549282018390528392612710906108df9087613424565b6108e99190613410565b92509250509250929050565b600061090083610e80565b821061091e5760405162461bcd60e51b815260040161066f90612d41565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b601354606090339060ff16806109645750610964816112e9565b6109805760405162461bcd60e51b815260040161066f90613291565b84516000816001600160401b038111156109aa57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109d3578160200160208202803683370190505b50905060005b82811015610a2c5788828281518110610a0257634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610a24816134bb565b9150506109d9565b50610a3981888888610cab565b935050505b50949350505050565b6000610a5282611429565b610a6e5760405162461bcd60e51b815260040161066f90612dde565b506000908152601160205260409020546001600160a01b031690565b61072783838360405180602001604052806000815250611226565b610ab061086f611446565b610acc5760405162461bcd60e51b815260040161066f90613353565b610ad5816116b1565b50565b6000610ae2610797565b8210610b005760405162461bcd60e51b815260040161066f90613307565b60098281548110610b2157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610b3b611446565b6001600160a01b0316610b4c610ff4565b6001600160a01b031614610b725760405162461bcd60e51b815260040161066f9061315a565b60005b8151811015610bc057610bae828281518110610ba157634e487b7160e01b600052603260045260246000fd5b60200260200101516116c3565b80610bb8816134bb565b915050610b75565b5050565b600c546000906001600160a01b03168015801590610c6e5750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401610c139190612bfd565b60206040518083038186803b158015610c2b57600080fd5b505afa158015610c3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c639190612ad5565b6001600160a01b0316145b949350505050565b6000818152600360205260408120546001600160a01b0316806105ae5760405162461bcd60e51b815260040161066f90612ff1565b601354606090339060ff1680610cc55750610cc5816112e9565b610ce15760405162461bcd60e51b815260040161066f90613291565b84518651148015610cf3575083518651145b8015610d00575082518651145b610d1c5760405162461bcd60e51b815260040161066f90613268565b6012548551806001600160401b03811115610d4757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d70578160200160208202803683370190505b50935060005b81811015610e725782610d88816134bb565b935050610e34838a8381518110610daf57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8481518110610dd757634e487b7160e01b600052603260045260246000fd5b60200260200101518a8581518110610dff57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610e2757634e487b7160e01b600052603260045260246000fd5b6020026020010151611706565b82858281518110610e5557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610e6a816134bb565b915050610d76565b505060125550949350505050565b60006001600160a01b038216610ea85760405162461bcd60e51b815260040161066f90612fa7565b506001600160a01b031660009081526004602052604090205490565b610ecc611446565b6001600160a01b0316610edd610ff4565b6001600160a01b031614610f035760405162461bcd60e51b815260040161066f9061315a565b610f0d600061174c565b565b610f17611446565b6001600160a01b0316610f28610ff4565b6001600160a01b031614610f4e5760405162461bcd60e51b815260040161066f9061315a565b610ad58161179c565b610f5f611446565b6001600160a01b0316610f70610ff4565b6001600160a01b031614610f965760405162461bcd60e51b815260040161066f9061315a565b6013805460ff1916911515919091179055565b601354600090339060ff1680610fc35750610fc3816112e9565b610fdf5760405162461bcd60e51b815260040161066f90613291565b610feb33868686611177565b95945050505050565b6000546001600160a01b031690565b61100b611446565b6001600160a01b031661101c610ff4565b6001600160a01b0316146110425760405162461bcd60e51b815260040161066f9061315a565b610ad5816117ea565b601354606090339060ff16806110655750611065816112e9565b6110815760405162461bcd60e51b815260040161066f90613291565b610feb3386868661094a565b6060600280546105c590613486565b6110a4611446565b6001600160a01b0316826001600160a01b031614156110d55760405162461bcd60e51b815260040161066f90612ec7565b80600660006110e2611446565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611126611446565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161115e9190612cec565b60405180910390a35050565b60006105ae600e836117fd565b601354600090339060ff16806111915750611191816112e9565b6111ad5760405162461bcd60e51b815260040161066f90613291565b6012546111bb9060016133f8565b60128190559150610a3e8287878787611706565b600c546001600160a01b031690565b6111e6611446565b6001600160a01b03166111f7610ff4565b6001600160a01b03161461121d5760405162461bcd60e51b815260040161066f9061315a565b610ad581611812565b611237611231611446565b83611507565b6112535760405162461bcd60e51b815260040161066f906132b6565b61125f84848484611834565b50505050565b6060600080611273846114b8565b91509150806000146112e257604080516001808252818301909252906020808301908036833701905050925081836000815181106112c157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b5050919050565b60006112f48261116a565b806105ae5750611302610ff4565b6001600160a01b0316826001600160a01b0316149050919050565b60606105ae82611867565b6060600b80546105c590613486565b60006113438383611980565b9392505050565b611352611446565b6001600160a01b0316611363610ff4565b6001600160a01b0316146113895760405162461bcd60e51b815260040161066f9061315a565b6001600160a01b0381166113af5760405162461bcd60e51b815260040161066f90612e06565b610ad58161174c565b60135460ff1690565b60125481565b6000611343836001600160a01b03841661199c565b60006001600160e01b0319821663780e9d6360e01b14806105ae57506105ae826119e6565b600061140c82611a26565b806105ae5750506001600160e01b031916632dde656160e21b1490565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061147f82610c76565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600090815260106020908152604091829020825180840190935280546001600160a01b03168084526001909101549290910182905291565b60006105ae82611a3f565b60006113438383611a43565b600061151282611429565b61152e5760405162461bcd60e51b815260040161066f90612efe565b600061153983610c76565b9050806001600160a01b0316846001600160a01b031614806115745750836001600160a01b031661156984610648565b6001600160a01b0316145b80610c6e5750610c6e8185611337565b826001600160a01b031661159782610c76565b6001600160a01b0316146115bd5760405162461bcd60e51b815260040161066f9061318f565b6001600160a01b0382166115e35760405162461bcd60e51b815260040161066f90612e83565b6115ee838383611a7b565b6115f960008261144a565b6001600160a01b0383166000908152600460205260408120805460019290611622908490613443565b90915550506001600160a01b03821660009081526004602052604081208054600192906116509084906133f8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116ba81611a86565b610ad581611aa8565b6116ce600e82611ae8565b506040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b611720848660405180602001604052806000815250611afd565b61172a8584611b30565b6117348585611b74565b801561174557611745858383611ba2565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b8151811015610bc0576117d88282815181106117cb57634e487b7160e01b600052603260045260246000fd5b6020026020010151611c0c565b806117e2816134bb565b91505061179f565b8051610bc090600b9060208401906124a7565b6000611343836001600160a01b038416611c4f565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61183f848484611584565b61184b84848484611c67565b61125f5760405162461bcd60e51b815260040161066f90612d8c565b606061187282611429565b61188e5760405162461bcd60e51b815260040161066f906130bd565b6000828152600d6020526040812080546118a790613486565b80601f01602080910402602001604051908101604052809291908181526020018280546118d390613486565b80156119205780601f106118f557610100808354040283529160200191611920565b820191906000526020600020905b81548152906001019060200180831161190357829003601f168201915b505050505090506000611931611d82565b9050805160001415611945575090506105b1565b81511561197757808260405160200161195f929190612bce565b604051602081830303815290604052925050506105b1565b610c6e84611d94565b600061198c8383611e16565b8061134357506113438383610bc4565b60006119a88383611c4f565b6119de57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610944565b506000610944565b60006001600160e01b031982166380ac58cd60e01b1480611a1757506001600160e01b03198216635b5e139f60e01b145b806105ae57506105ae82611e44565b6001600160e01b0319811663152a902d60e11b14919050565b5490565b6000826000018281548110611a6857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b610727838383611e5d565b600090815260106020526040812080546001600160a01b031916815560010155565b611ab181611ee6565b6000818152600d602052604090208054611aca90613486565b159050610ad5576000818152600d60205260408120610ad59161252b565b6000611343836001600160a01b038416611f8d565b611b0783836120aa565b611b146000848484611c67565b6107275760405162461bcd60e51b815260040161066f90612d8c565b611b3982611429565b611b555760405162461bcd60e51b815260040161066f9061303a565b6000828152600d602090815260409091208251610727928401906124a7565b60009182526011602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b612710811115611bc45760405162461bcd60e51b815260040161066f90612d0a565b6040805180820182526001600160a01b03938416815260208082019384526000958652601090529320925183546001600160a01b031916921691909117825551600190910155565b611c17600e826113c7565b506040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b60009081526001919091016020526040902054151590565b6000611c7b846001600160a01b0316612189565b15611d7757836001600160a01b031663150b7a02611c97611446565b8786866040518563ffffffff1660e01b8152600401611cb99493929190612c11565b602060405180830381600087803b158015611cd357600080fd5b505af1925050508015611d03575060408051601f3d908101601f19168201909252611d0091810190612ab9565b60015b611d5d573d808015611d31576040519150601f19603f3d011682016040523d82523d6000602084013e611d36565b606091505b508051611d555760405162461bcd60e51b815260040161066f90612d8c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c6e565b506001949350505050565b60408051602081019091526000815290565b6060611d9f82611429565b611dbb5760405162461bcd60e51b815260040161066f906131d8565b6000611dc5611d82565b90506000815111611de55760405180602001604052806000815250611343565b80611def8461218f565b604051602001611e00929190612bce565b6040516020818303038152906040529392505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981166301ffc9a760e01b14919050565b611e68838383610727565b6001600160a01b038316611e8457611e7f816122a9565b611ea7565b816001600160a01b0316836001600160a01b031614611ea757611ea783826122ed565b6001600160a01b038216611ec357611ebe8161238a565b610727565b826001600160a01b0316826001600160a01b031614610727576107278282612463565b6000611ef182610c76565b9050611eff81600084611a7b565b611f0a60008361144a565b6001600160a01b0381166000908152600460205260408120805460019290611f33908490613443565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260018301602052604081205480156120a0576000611fb1600183613443565b8554909150600090611fc590600190613443565b9050818114612046576000866000018281548110611ff357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061202457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061206557634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610944565b6000915050610944565b6001600160a01b0382166120d05760405162461bcd60e51b815260040161066f90613088565b6120d981611429565b156120f65760405162461bcd60e51b815260040161066f90612e4c565b61210260008383611a7b565b6001600160a01b038216600090815260046020526040812080546001929061212b9084906133f8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6060816121b457506040805180820190915260018152600360fc1b60208201526105b1565b8160005b81156121de57806121c8816134bb565b91506121d79050600a83613410565b91506121b8565b6000816001600160401b0381111561220657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612230576020820181803683370190505b5090505b8415610c6e57612245600183613443565b9150612252600a866134d6565b61225d9060306133f8565b60f81b81838151811061228057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506122a2600a86613410565b9450612234565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b600060016122fa84610e80565b6123049190613443565b600083815260086020526040902054909150808214612357576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061239c90600190613443565b6000838152600a6020526040812054600980549394509092849081106123d257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061240157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061244757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061246e83610e80565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546124b390613486565b90600052602060002090601f0160209004810192826124d5576000855561251b565b82601f106124ee57805160ff191683800117855561251b565b8280016001018555821561251b579182015b8281111561251b578251825591602001919060010190612500565b50612527929150612563565b5090565b50805461253790613486565b6000825580601f106125495750610ad5565b601f016020900490600052602060002090810190610ad591905b5b808211156125275760008155600101612564565b60006001600160401b0383111561259157612591613516565b6125a4601f8401601f19166020016133ac565b90508281528383830111156125b857600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125df578081fd5b813560206125f46125ef836133d5565b6133ac565b8281528181019085830183850287018401881015612610578586fd5b855b858110156126375781356126258161352c565b84529284019290840190600101612612565b5090979650505050505050565b600082601f830112612654578081fd5b813560206126646125ef836133d5565b82815281810190858301855b8581101561263757612687898684358b0101612703565b84529284019290840190600101612670565b600082601f8301126126a9578081fd5b813560206126b96125ef836133d5565b82815281810190858301838502870184018810156126d5578586fd5b855b85811015612637578135845292840192908401906001016126d7565b803580151581146105b157600080fd5b600082601f830112612713578081fd5b61134383833560208501612578565b600060208284031215612733578081fd5b81356113438161352c565b60008060408385031215612750578081fd5b823561275b8161352c565b9150602083013561276b8161352c565b809150509250929050565b60008060006060848603121561278a578081fd5b83356127958161352c565b925060208401356127a58161352c565b929592945050506040919091013590565b600080600080608085870312156127cb578081fd5b84356127d68161352c565b935060208501356127e68161352c565b92506040850135915060608501356001600160401b03811115612807578182fd5b8501601f81018713612817578182fd5b61282687823560208401612578565b91505092959194509250565b60008060008060808587031215612847578384fd5b84356128528161352c565b935060208501356001600160401b038082111561286d578485fd5b61287988838901612644565b9450604087013591508082111561288e578384fd5b61289a888389016125cf565b935060608701359150808211156128af578283fd5b5061282687828801612699565b600080604083850312156128ce578182fd5b82356128d98161352c565b91506128e7602084016126f3565b90509250929050565b60008060008060808587031215612905578182fd5b84356129108161352c565b935060208501356001600160401b0381111561292a578283fd5b61293687828801612703565b93505060408501356129478161352c565b9396929550929360600135925050565b60008060408385031215612969578182fd5b82356129748161352c565b946020939093013593505050565b600060208284031215612993578081fd5b81356001600160401b038111156129a8578182fd5b610c6e848285016125cf565b600080600080608085870312156129c9578182fd5b84356001600160401b03808211156129df578384fd5b6129eb888389016125cf565b9550602087013591508082111561286d578384fd5b600080600060608486031215612a14578081fd5b83356001600160401b0380821115612a2a578283fd5b612a3687838801612644565b94506020860135915080821115612a4b578283fd5b612a57878388016125cf565b93506040860135915080821115612a6c578283fd5b50612a7986828701612699565b9150509250925092565b600060208284031215612a94578081fd5b611343826126f3565b600060208284031215612aae578081fd5b813561134381613541565b600060208284031215612aca578081fd5b815161134381613541565b600060208284031215612ae6578081fd5b81516113438161352c565b600060208284031215612b02578081fd5b81356001600160401b03811115612b17578182fd5b610c6e84828501612703565b600080600060608486031215612b37578081fd5b83356001600160401b03811115612b4c578182fd5b612b5886828701612703565b93505060208401356127a58161352c565b600060208284031215612b7a578081fd5b5035919050565b60008060408385031215612b93578182fd5b50508035926020909101359150565b60008151808452612bba81602086016020860161345a565b601f01601f19169290920160200192915050565b60008351612be081846020880161345a565b835190830190612bf481836020880161345a565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c4490830184612ba2565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015612ca85783516001600160a01b031683529284019291840191600101612c83565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612ca857835183529284019291840191600101612cd0565b901515815260200190565b6000602082526113436020830184612ba2565b6020808252601a908201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d2ab735b737bbb7103a37b5b2b71760911b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600f908201526e098cadccee8d040dad2e6dac2e8c6d608b1b604082015260600190565b6020808252600b908201526a2737ba1036b4b73a32b91760a91b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b90815260200190565b6040518181016001600160401b03811182821017156133cd576133cd613516565b604052919050565b60006001600160401b038211156133ee576133ee613516565b5060209081020190565b6000821982111561340b5761340b6134ea565b500190565b60008261341f5761341f613500565b500490565b600081600019048311821515161561343e5761343e6134ea565b500290565b600082821015613455576134556134ea565b500390565b60005b8381101561347557818101518382015260200161345d565b8381111561125f5750506000910152565b60028104600182168061349a57607f821691505b6020821081141561079157634e487b7160e01b600052602260045260246000fd5b60006000198214156134cf576134cf6134ea565b5060010190565b6000826134e5576134e5613500565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ad557600080fd5b6001600160e01b031981168114610ad557600080fdfea2646970667358221220b9ae15aa662d1e778b51d6a3c97bbb7687f4096e260b57c026d62abf89fabd6764736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000008dc93807b66a0d47f165591848e8e49f99d6d5af00000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000001a566572746963616c43727970746f204172742041756374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000356434100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d626a33527469426147674248585745554c7a765a4447775978356143585a6b7155564a4a35675179676f595900000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000e4f091560461b441ae8dc1c2de961e002facd59c000000000000000000000000733983a4c7e778ca9f57cac6ee361c4a9b24e4b100000000000000000000000014287e62b859a3a5e19b3c2d59ed1f12ac94ba4c00000000000000000000000006ed63eac05a4b2c2f4d383257927b644dc801cf0000000000000000000000005fae9d4b591f213b3ba75287f2cfac0883d17f7a0000000000000000000000002192f2eaba393112e81f2bbf9dc414dd649ac7b5000000000000000000000000d743b27d75a6dcdb34bafc6de0acb8cecb3ac43f000000000000000000000000576a655161b5502dcf40602be1f3519a89b71658000000000000000000000000dd6cb36a0c22fdb2abc5e2ec9d96db68c29f69de

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025e5760003560e01c806371e2a65711610146578063b50cbd9f116100c3578063c87b56dd11610087578063c87b56dd14610529578063e8a3d4851461053c578063e985e9c514610544578063f2fde38b14610557578063f4ed532d1461056a578063f84ddf0b146105725761025e565b8063b50cbd9f146104d5578063b5f49759146104dd578063b88d4fde146104f0578063b9c4d9fb14610503578063c2ba4744146105165761025e565b806394915da61161010a57806394915da61461048157806395d89b4114610494578063a22cb4651461049c578063aa271e1a146104af578063af8e577a146104c25761025e565b806371e2a6571461042d5780637df1bc08146104405780637e8816b9146104535780638da5cb5b14610466578063938e3d7b1461046e5761025e565b806331556a13116101df5780635fc1964f116101a35780635fc1964f146103c65780636102de98146103d95780636352211e146103ec5780636fc6d8bc146103ff57806370a0823114610412578063715018a6146104255761025e565b806331556a131461036757806340c1a0641461037a57806342842e0e1461038d57806342966c68146103a05780634f6ccce7146103b35761025e565b806318160ddd1161022657806318160ddd146102f657806322d8dc231461030b57806323b872dd146103205780632a55205a146103335780632f745c59146103545761025e565b806301ffc9a71461026357806306fdde031461028c578063081812fc146102a1578063095ea7b3146102c15780630ebd4c7f146102d6575b600080fd5b610276610271366004612a9d565b61057a565b6040516102839190612cec565b60405180910390f35b6102946105b6565b6040516102839190612cf7565b6102b46102af366004612b69565b610648565b6040516102839190612bfd565b6102d46102cf366004612957565b610694565b005b6102e96102e4366004612b69565b61072c565b6040516102839190612cb4565b6102fe610797565b60405161028391906133a3565b61031361079d565b6040516102839190612c67565b6102d461032e366004612776565b610864565b610346610341366004612b81565b61089c565b604051610283929190612c4e565b6102fe610362366004612957565b6108f5565b6102e9610375366004612832565b61094a565b6102b4610388366004612b69565b610a47565b6102d461039b366004612776565b610a8a565b6102d46103ae366004612b69565b610aa5565b6102fe6103c1366004612b69565b610ad8565b6102d46103d4366004612982565b610b33565b6102766103e736600461273e565b610bc4565b6102b46103fa366004612b69565b610c76565b6102e961040d3660046129b4565b610cab565b6102fe610420366004612722565b610e80565b6102d4610ec4565b6102d461043b366004612982565b610f0f565b6102d461044e366004612a83565b610f57565b6102fe610461366004612b23565b610fa9565b6102b4610ff4565b6102d461047c366004612af1565b611003565b6102e961048f366004612a00565b61104b565b61029461108d565b6102d46104aa3660046128bc565b61109c565b6102766104bd366004612722565b61116a565b6102fe6104d03660046128f0565b611177565b6102b46111cf565b6102d46104eb366004612722565b6111de565b6102d46104fe3660046127b6565b611226565b610313610511366004612b69565b611265565b610276610524366004612722565b6112e9565b610294610537366004612b69565b61131d565b610294611328565b61027661055236600461273e565b611337565b6102d4610565366004612722565b61134a565b6102766113b8565b6102fe6113c1565b60006001600160e01b03198216631030681960e21b148061059f575061059f826113dc565b806105ae57506105ae82611401565b90505b919050565b6060600180546105c590613486565b80601f01602080910402602001604051908101604052809291908181526020018280546105f190613486565b801561063e5780601f106106135761010080835404028352916020019161063e565b820191906000526020600020905b81548152906001019060200180831161062157829003601f168201915b5050505050905090565b600061065382611429565b6106785760405162461bcd60e51b815260040161066f9061310e565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061069f82610c76565b9050806001600160a01b0316836001600160a01b031614156106d35760405162461bcd60e51b815260040161066f90613227565b806001600160a01b03166106e5611446565b6001600160a01b03161480610701575061070181610552611446565b61071d5760405162461bcd60e51b815260040161066f90612f4a565b610727838361144a565b505050565b60606000610739836114b8565b9150508015610791576040805160018082528183019092529060208083019080368337019050509150808260008151811061078457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b50919050565b60095490565b606060006107ab600e6114f0565b9050806001600160401b038111156107d357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156107fc578160200160208202803683370190505b50915060005b8181101561085f57610815600e826114fb565b83828151811061083557634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610857816134bb565b915050610802565b505090565b61087561086f611446565b82611507565b6108915760405162461bcd60e51b815260040161066f906132b6565b610727838383611584565b6000828152601060209081526040808320815180830190925280546001600160a01b03168083526001909101549282018390528392612710906108df9087613424565b6108e99190613410565b92509250509250929050565b600061090083610e80565b821061091e5760405162461bcd60e51b815260040161066f90612d41565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b601354606090339060ff16806109645750610964816112e9565b6109805760405162461bcd60e51b815260040161066f90613291565b84516000816001600160401b038111156109aa57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109d3578160200160208202803683370190505b50905060005b82811015610a2c5788828281518110610a0257634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610a24816134bb565b9150506109d9565b50610a3981888888610cab565b935050505b50949350505050565b6000610a5282611429565b610a6e5760405162461bcd60e51b815260040161066f90612dde565b506000908152601160205260409020546001600160a01b031690565b61072783838360405180602001604052806000815250611226565b610ab061086f611446565b610acc5760405162461bcd60e51b815260040161066f90613353565b610ad5816116b1565b50565b6000610ae2610797565b8210610b005760405162461bcd60e51b815260040161066f90613307565b60098281548110610b2157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610b3b611446565b6001600160a01b0316610b4c610ff4565b6001600160a01b031614610b725760405162461bcd60e51b815260040161066f9061315a565b60005b8151811015610bc057610bae828281518110610ba157634e487b7160e01b600052603260045260246000fd5b60200260200101516116c3565b80610bb8816134bb565b915050610b75565b5050565b600c546000906001600160a01b03168015801590610c6e5750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401610c139190612bfd565b60206040518083038186803b158015610c2b57600080fd5b505afa158015610c3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c639190612ad5565b6001600160a01b0316145b949350505050565b6000818152600360205260408120546001600160a01b0316806105ae5760405162461bcd60e51b815260040161066f90612ff1565b601354606090339060ff1680610cc55750610cc5816112e9565b610ce15760405162461bcd60e51b815260040161066f90613291565b84518651148015610cf3575083518651145b8015610d00575082518651145b610d1c5760405162461bcd60e51b815260040161066f90613268565b6012548551806001600160401b03811115610d4757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d70578160200160208202803683370190505b50935060005b81811015610e725782610d88816134bb565b935050610e34838a8381518110610daf57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8481518110610dd757634e487b7160e01b600052603260045260246000fd5b60200260200101518a8581518110610dff57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610e2757634e487b7160e01b600052603260045260246000fd5b6020026020010151611706565b82858281518110610e5557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610e6a816134bb565b915050610d76565b505060125550949350505050565b60006001600160a01b038216610ea85760405162461bcd60e51b815260040161066f90612fa7565b506001600160a01b031660009081526004602052604090205490565b610ecc611446565b6001600160a01b0316610edd610ff4565b6001600160a01b031614610f035760405162461bcd60e51b815260040161066f9061315a565b610f0d600061174c565b565b610f17611446565b6001600160a01b0316610f28610ff4565b6001600160a01b031614610f4e5760405162461bcd60e51b815260040161066f9061315a565b610ad58161179c565b610f5f611446565b6001600160a01b0316610f70610ff4565b6001600160a01b031614610f965760405162461bcd60e51b815260040161066f9061315a565b6013805460ff1916911515919091179055565b601354600090339060ff1680610fc35750610fc3816112e9565b610fdf5760405162461bcd60e51b815260040161066f90613291565b610feb33868686611177565b95945050505050565b6000546001600160a01b031690565b61100b611446565b6001600160a01b031661101c610ff4565b6001600160a01b0316146110425760405162461bcd60e51b815260040161066f9061315a565b610ad5816117ea565b601354606090339060ff16806110655750611065816112e9565b6110815760405162461bcd60e51b815260040161066f90613291565b610feb3386868661094a565b6060600280546105c590613486565b6110a4611446565b6001600160a01b0316826001600160a01b031614156110d55760405162461bcd60e51b815260040161066f90612ec7565b80600660006110e2611446565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611126611446565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161115e9190612cec565b60405180910390a35050565b60006105ae600e836117fd565b601354600090339060ff16806111915750611191816112e9565b6111ad5760405162461bcd60e51b815260040161066f90613291565b6012546111bb9060016133f8565b60128190559150610a3e8287878787611706565b600c546001600160a01b031690565b6111e6611446565b6001600160a01b03166111f7610ff4565b6001600160a01b03161461121d5760405162461bcd60e51b815260040161066f9061315a565b610ad581611812565b611237611231611446565b83611507565b6112535760405162461bcd60e51b815260040161066f906132b6565b61125f84848484611834565b50505050565b6060600080611273846114b8565b91509150806000146112e257604080516001808252818301909252906020808301908036833701905050925081836000815181106112c157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b5050919050565b60006112f48261116a565b806105ae5750611302610ff4565b6001600160a01b0316826001600160a01b0316149050919050565b60606105ae82611867565b6060600b80546105c590613486565b60006113438383611980565b9392505050565b611352611446565b6001600160a01b0316611363610ff4565b6001600160a01b0316146113895760405162461bcd60e51b815260040161066f9061315a565b6001600160a01b0381166113af5760405162461bcd60e51b815260040161066f90612e06565b610ad58161174c565b60135460ff1690565b60125481565b6000611343836001600160a01b03841661199c565b60006001600160e01b0319821663780e9d6360e01b14806105ae57506105ae826119e6565b600061140c82611a26565b806105ae5750506001600160e01b031916632dde656160e21b1490565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061147f82610c76565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600090815260106020908152604091829020825180840190935280546001600160a01b03168084526001909101549290910182905291565b60006105ae82611a3f565b60006113438383611a43565b600061151282611429565b61152e5760405162461bcd60e51b815260040161066f90612efe565b600061153983610c76565b9050806001600160a01b0316846001600160a01b031614806115745750836001600160a01b031661156984610648565b6001600160a01b0316145b80610c6e5750610c6e8185611337565b826001600160a01b031661159782610c76565b6001600160a01b0316146115bd5760405162461bcd60e51b815260040161066f9061318f565b6001600160a01b0382166115e35760405162461bcd60e51b815260040161066f90612e83565b6115ee838383611a7b565b6115f960008261144a565b6001600160a01b0383166000908152600460205260408120805460019290611622908490613443565b90915550506001600160a01b03821660009081526004602052604081208054600192906116509084906133f8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116ba81611a86565b610ad581611aa8565b6116ce600e82611ae8565b506040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b611720848660405180602001604052806000815250611afd565b61172a8584611b30565b6117348585611b74565b801561174557611745858383611ba2565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b8151811015610bc0576117d88282815181106117cb57634e487b7160e01b600052603260045260246000fd5b6020026020010151611c0c565b806117e2816134bb565b91505061179f565b8051610bc090600b9060208401906124a7565b6000611343836001600160a01b038416611c4f565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61183f848484611584565b61184b84848484611c67565b61125f5760405162461bcd60e51b815260040161066f90612d8c565b606061187282611429565b61188e5760405162461bcd60e51b815260040161066f906130bd565b6000828152600d6020526040812080546118a790613486565b80601f01602080910402602001604051908101604052809291908181526020018280546118d390613486565b80156119205780601f106118f557610100808354040283529160200191611920565b820191906000526020600020905b81548152906001019060200180831161190357829003601f168201915b505050505090506000611931611d82565b9050805160001415611945575090506105b1565b81511561197757808260405160200161195f929190612bce565b604051602081830303815290604052925050506105b1565b610c6e84611d94565b600061198c8383611e16565b8061134357506113438383610bc4565b60006119a88383611c4f565b6119de57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610944565b506000610944565b60006001600160e01b031982166380ac58cd60e01b1480611a1757506001600160e01b03198216635b5e139f60e01b145b806105ae57506105ae82611e44565b6001600160e01b0319811663152a902d60e11b14919050565b5490565b6000826000018281548110611a6857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b610727838383611e5d565b600090815260106020526040812080546001600160a01b031916815560010155565b611ab181611ee6565b6000818152600d602052604090208054611aca90613486565b159050610ad5576000818152600d60205260408120610ad59161252b565b6000611343836001600160a01b038416611f8d565b611b0783836120aa565b611b146000848484611c67565b6107275760405162461bcd60e51b815260040161066f90612d8c565b611b3982611429565b611b555760405162461bcd60e51b815260040161066f9061303a565b6000828152600d602090815260409091208251610727928401906124a7565b60009182526011602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b612710811115611bc45760405162461bcd60e51b815260040161066f90612d0a565b6040805180820182526001600160a01b03938416815260208082019384526000958652601090529320925183546001600160a01b031916921691909117825551600190910155565b611c17600e826113c7565b506040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b60009081526001919091016020526040902054151590565b6000611c7b846001600160a01b0316612189565b15611d7757836001600160a01b031663150b7a02611c97611446565b8786866040518563ffffffff1660e01b8152600401611cb99493929190612c11565b602060405180830381600087803b158015611cd357600080fd5b505af1925050508015611d03575060408051601f3d908101601f19168201909252611d0091810190612ab9565b60015b611d5d573d808015611d31576040519150601f19603f3d011682016040523d82523d6000602084013e611d36565b606091505b508051611d555760405162461bcd60e51b815260040161066f90612d8c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c6e565b506001949350505050565b60408051602081019091526000815290565b6060611d9f82611429565b611dbb5760405162461bcd60e51b815260040161066f906131d8565b6000611dc5611d82565b90506000815111611de55760405180602001604052806000815250611343565b80611def8461218f565b604051602001611e00929190612bce565b6040516020818303038152906040529392505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981166301ffc9a760e01b14919050565b611e68838383610727565b6001600160a01b038316611e8457611e7f816122a9565b611ea7565b816001600160a01b0316836001600160a01b031614611ea757611ea783826122ed565b6001600160a01b038216611ec357611ebe8161238a565b610727565b826001600160a01b0316826001600160a01b031614610727576107278282612463565b6000611ef182610c76565b9050611eff81600084611a7b565b611f0a60008361144a565b6001600160a01b0381166000908152600460205260408120805460019290611f33908490613443565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260018301602052604081205480156120a0576000611fb1600183613443565b8554909150600090611fc590600190613443565b9050818114612046576000866000018281548110611ff357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061202457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061206557634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610944565b6000915050610944565b6001600160a01b0382166120d05760405162461bcd60e51b815260040161066f90613088565b6120d981611429565b156120f65760405162461bcd60e51b815260040161066f90612e4c565b61210260008383611a7b565b6001600160a01b038216600090815260046020526040812080546001929061212b9084906133f8565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6060816121b457506040805180820190915260018152600360fc1b60208201526105b1565b8160005b81156121de57806121c8816134bb565b91506121d79050600a83613410565b91506121b8565b6000816001600160401b0381111561220657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612230576020820181803683370190505b5090505b8415610c6e57612245600183613443565b9150612252600a866134d6565b61225d9060306133f8565b60f81b81838151811061228057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506122a2600a86613410565b9450612234565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b600060016122fa84610e80565b6123049190613443565b600083815260086020526040902054909150808214612357576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061239c90600190613443565b6000838152600a6020526040812054600980549394509092849081106123d257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061240157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061244757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061246e83610e80565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546124b390613486565b90600052602060002090601f0160209004810192826124d5576000855561251b565b82601f106124ee57805160ff191683800117855561251b565b8280016001018555821561251b579182015b8281111561251b578251825591602001919060010190612500565b50612527929150612563565b5090565b50805461253790613486565b6000825580601f106125495750610ad5565b601f016020900490600052602060002090810190610ad591905b5b808211156125275760008155600101612564565b60006001600160401b0383111561259157612591613516565b6125a4601f8401601f19166020016133ac565b90508281528383830111156125b857600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125df578081fd5b813560206125f46125ef836133d5565b6133ac565b8281528181019085830183850287018401881015612610578586fd5b855b858110156126375781356126258161352c565b84529284019290840190600101612612565b5090979650505050505050565b600082601f830112612654578081fd5b813560206126646125ef836133d5565b82815281810190858301855b8581101561263757612687898684358b0101612703565b84529284019290840190600101612670565b600082601f8301126126a9578081fd5b813560206126b96125ef836133d5565b82815281810190858301838502870184018810156126d5578586fd5b855b85811015612637578135845292840192908401906001016126d7565b803580151581146105b157600080fd5b600082601f830112612713578081fd5b61134383833560208501612578565b600060208284031215612733578081fd5b81356113438161352c565b60008060408385031215612750578081fd5b823561275b8161352c565b9150602083013561276b8161352c565b809150509250929050565b60008060006060848603121561278a578081fd5b83356127958161352c565b925060208401356127a58161352c565b929592945050506040919091013590565b600080600080608085870312156127cb578081fd5b84356127d68161352c565b935060208501356127e68161352c565b92506040850135915060608501356001600160401b03811115612807578182fd5b8501601f81018713612817578182fd5b61282687823560208401612578565b91505092959194509250565b60008060008060808587031215612847578384fd5b84356128528161352c565b935060208501356001600160401b038082111561286d578485fd5b61287988838901612644565b9450604087013591508082111561288e578384fd5b61289a888389016125cf565b935060608701359150808211156128af578283fd5b5061282687828801612699565b600080604083850312156128ce578182fd5b82356128d98161352c565b91506128e7602084016126f3565b90509250929050565b60008060008060808587031215612905578182fd5b84356129108161352c565b935060208501356001600160401b0381111561292a578283fd5b61293687828801612703565b93505060408501356129478161352c565b9396929550929360600135925050565b60008060408385031215612969578182fd5b82356129748161352c565b946020939093013593505050565b600060208284031215612993578081fd5b81356001600160401b038111156129a8578182fd5b610c6e848285016125cf565b600080600080608085870312156129c9578182fd5b84356001600160401b03808211156129df578384fd5b6129eb888389016125cf565b9550602087013591508082111561286d578384fd5b600080600060608486031215612a14578081fd5b83356001600160401b0380821115612a2a578283fd5b612a3687838801612644565b94506020860135915080821115612a4b578283fd5b612a57878388016125cf565b93506040860135915080821115612a6c578283fd5b50612a7986828701612699565b9150509250925092565b600060208284031215612a94578081fd5b611343826126f3565b600060208284031215612aae578081fd5b813561134381613541565b600060208284031215612aca578081fd5b815161134381613541565b600060208284031215612ae6578081fd5b81516113438161352c565b600060208284031215612b02578081fd5b81356001600160401b03811115612b17578182fd5b610c6e84828501612703565b600080600060608486031215612b37578081fd5b83356001600160401b03811115612b4c578182fd5b612b5886828701612703565b93505060208401356127a58161352c565b600060208284031215612b7a578081fd5b5035919050565b60008060408385031215612b93578182fd5b50508035926020909101359150565b60008151808452612bba81602086016020860161345a565b601f01601f19169290920160200192915050565b60008351612be081846020880161345a565b835190830190612bf481836020880161345a565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c4490830184612ba2565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015612ca85783516001600160a01b031683529284019291840191600101612c83565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612ca857835183529284019291840191600101612cd0565b901515815260200190565b6000602082526113436020830184612ba2565b6020808252601a908201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d2ab735b737bbb7103a37b5b2b71760911b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600f908201526e098cadccee8d040dad2e6dac2e8c6d608b1b604082015260600190565b6020808252600b908201526a2737ba1036b4b73a32b91760a91b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b90815260200190565b6040518181016001600160401b03811182821017156133cd576133cd613516565b604052919050565b60006001600160401b038211156133ee576133ee613516565b5060209081020190565b6000821982111561340b5761340b6134ea565b500190565b60008261341f5761341f613500565b500490565b600081600019048311821515161561343e5761343e6134ea565b500290565b600082821015613455576134556134ea565b500390565b60005b8381101561347557818101518382015260200161345d565b8381111561125f5750506000910152565b60028104600182168061349a57607f821691505b6020821081141561079157634e487b7160e01b600052602260045260246000fd5b60006000198214156134cf576134cf6134ea565b5060010190565b6000826134e5576134e5613500565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ad557600080fd5b6001600160e01b031981168114610ad557600080fdfea2646970667358221220b9ae15aa662d1e778b51d6a3c97bbb7687f4096e260b57c026d62abf89fabd6764736f6c63430008000033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000008dc93807b66a0d47f165591848e8e49f99d6d5af00000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000001a566572746963616c43727970746f204172742041756374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000356434100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d626a33527469426147674248585745554c7a765a4447775978356143585a6b7155564a4a35675179676f595900000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000e4f091560461b441ae8dc1c2de961e002facd59c000000000000000000000000733983a4c7e778ca9f57cac6ee361c4a9b24e4b100000000000000000000000014287e62b859a3a5e19b3c2d59ed1f12ac94ba4c00000000000000000000000006ed63eac05a4b2c2f4d383257927b644dc801cf0000000000000000000000005fae9d4b591f213b3ba75287f2cfac0883d17f7a0000000000000000000000002192f2eaba393112e81f2bbf9dc414dd649ac7b5000000000000000000000000d743b27d75a6dcdb34bafc6de0acb8cecb3ac43f000000000000000000000000576a655161b5502dcf40602be1f3519a89b71658000000000000000000000000dd6cb36a0c22fdb2abc5e2ec9d96db68c29f69de

-----Decoded View---------------
Arg [0] : name_ (string): VerticalCrypto Art Auction
Arg [1] : symbol_ (string): VCA
Arg [2] : contractURI_ (string): ipfs://Qmbj3RtiBaGgBHXWEULzvZDGwYx5aCXZkqUVJJ5gQygoYY
Arg [3] : openseaProxyRegistry_ (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [4] : owner_ (address): 0x8dC93807B66A0D47f165591848E8E49F99d6D5AF
Arg [5] : minters (address[]): 0xe4F091560461b441ae8dc1c2dE961E002fAcD59c,0x733983a4c7e778CA9f57cAC6ee361c4A9b24E4b1,0x14287e62B859A3A5E19B3C2D59Ed1F12ac94ba4c,0x06Ed63eaC05A4b2C2f4D383257927B644DC801Cf,0x5Fae9D4B591f213b3bA75287f2cfAc0883D17f7A,0x2192F2eaBa393112e81F2BBf9dc414Dd649Ac7B5,0xd743B27D75A6DcDB34baFc6De0Acb8cecB3aC43F,0x576a655161B5502dCf40602BE1f3519A89b71658,0xDD6CB36A0c22FDB2Abc5e2EC9D96Db68c29F69de

-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000008dc93807b66a0d47f165591848e8e49f99d6d5af
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [6] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [7] : 566572746963616c43727970746f204172742041756374696f6e000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 5643410000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [11] : 697066733a2f2f516d626a33527469426147674248585745554c7a765a444777
Arg [12] : 5978356143585a6b7155564a4a35675179676f59590000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [14] : 000000000000000000000000e4f091560461b441ae8dc1c2de961e002facd59c
Arg [15] : 000000000000000000000000733983a4c7e778ca9f57cac6ee361c4a9b24e4b1
Arg [16] : 00000000000000000000000014287e62b859a3a5e19b3c2d59ed1f12ac94ba4c
Arg [17] : 00000000000000000000000006ed63eac05a4b2c2f4d383257927b644dc801cf
Arg [18] : 0000000000000000000000005fae9d4b591f213b3ba75287f2cfac0883d17f7a
Arg [19] : 0000000000000000000000002192f2eaba393112e81f2bbf9dc414dd649ac7b5
Arg [20] : 000000000000000000000000d743b27d75a6dcdb34bafc6de0acb8cecb3ac43f
Arg [21] : 000000000000000000000000576a655161b5502dcf40602be1f3519a89b71658
Arg [22] : 000000000000000000000000dd6cb36a0c22fdb2abc5e2ec9d96db68c29f69de


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.